Skip to content

Commit

Permalink
update code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Apr 12, 2019
1 parent a49b043 commit dece3df
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface IAddToServiceDefinitionResult {

/**
* ```js
* import { addToServiceDefinition } from '@esri/arcgis-rest-feature-service-admin';
* import { addToServiceDefinition } from '@esri/arcgis-rest-feature-service';
* //
* addToServiceDefinition(serviceurl, {
* authentication: userSession,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export interface ICreateServiceResult {
* import {
* createFeatureService,
* addToServiceDefinition
* } from '@esri/arcgis-rest-feature-service-admin';
* } from '@esri/arcgis-rest-feature-service';
* //
* createFeatureService({
* authentication: userSession,
Expand Down
2 changes: 1 addition & 1 deletion packages/arcgis-rest-portal/src/groups/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface IGroupAddRequestOptions extends IRequestOptions {

/**
* ```js
* import { createGroup } from "@esri/arcgis-rest-groups";
* import { createGroup } from "@esri/arcgis-rest-portal";
* //
* createGroup({
* group: {
Expand Down
2 changes: 1 addition & 1 deletion packages/arcgis-rest-portal/src/groups/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface IGroupUsersResult {

/**
* ```js
* import { getGroup } from "@esri/arcgis-rest-groups";
* import { getGroup } from "@esri/arcgis-rest-portal";
* //
* getGroup("fxb988") // id
* .then(response)
Expand Down
8 changes: 4 additions & 4 deletions packages/arcgis-rest-portal/src/items/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface IItemDataAddRequestOptions extends IItemIdRequestOptions {

/**
* ```js
* import { addItemJsonData } from '@esri/arcgis-rest-items';
* import { addItemJsonData } from "@esri/arcgis-rest-portal";
* //
* addItemJsonData({
* id: '3ef',
Expand Down Expand Up @@ -61,7 +61,7 @@ export function addItemJsonData(

/**
* ```js
* import { addItemData } from '@esri/arcgis-rest-items';
* import { addItemData } from "@esri/arcgis-rest-portal";
* //
* addItemData({
* id: '3ef',
Expand Down Expand Up @@ -96,7 +96,7 @@ export function addItemData(

/**
* ```js
* import { addItemRelationship } from '@esri/arcgis-rest-items';
* import { addItemRelationship } from "@esri/arcgis-rest-portal";
* //
* addItemRelationship({
* originItemId: '3ef',
Expand Down Expand Up @@ -127,7 +127,7 @@ export function addItemRelationship(

/**
* ```js
* import { addItemResource } from '@esri/arcgis-rest-items';
* import { addItemResource } from "@esri/arcgis-rest-portal";
*
* // Add a file resource
* addItemResource({
Expand Down
6 changes: 3 additions & 3 deletions packages/arcgis-rest-portal/src/items/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface IItemAddRequestOptions extends IItemCrudRequestOptions {

/**
* ```js
* import { createFolder } from '@esri/arcgis-rest-items';
* import { createFolder } from "@esri/arcgis-rest-portal";
* //
* createFolder({
* title: 'Map Collection',
Expand Down Expand Up @@ -57,7 +57,7 @@ export function createFolder(

/**
* ```js
* import { createItemInFolder } from '@esri/arcgis-rest-items';
* import { createItemInFolder } from "@esri/arcgis-rest-portal";
* //
* createItem({
* item: {
Expand Down Expand Up @@ -96,7 +96,7 @@ export function createItemInFolder(

/**
* ```js
* import { createItem } from '@esri/arcgis-rest-items';
* import { createItem } from "@esri/arcgis-rest-portal";
* //
* createItem({
* item: {
Expand Down
8 changes: 4 additions & 4 deletions packages/arcgis-rest-portal/src/items/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {

/**
* ```
* import { getItem } from "@esri/arcgis-rest-items";
* import { getItem } from "@esri/arcgis-rest-portal";
* //
* getItem("ae7")
* .then(response);
Expand Down Expand Up @@ -46,7 +46,7 @@ export function getItem(

/**
* ```
* import { getItemData } from "@esri/arcgis-rest-items";
* import { getItemData } from "@esri/arcgis-rest-portal";
* //
* getItemData("ae7")
* .then(response)
Expand Down Expand Up @@ -94,7 +94,7 @@ export interface IGetRelatedItemsResponse {

/**
* ```
* import { getRelatedItems } from "@esri/arcgis-rest-items";
* import { getRelatedItems } from "@esri/arcgis-rest-portal";
* //
* getRelatedItems({
* id: "ae7",
Expand Down Expand Up @@ -163,7 +163,7 @@ export interface IItemGroupResponse {

/**
* ```js
* import { getItemGroups } from "@esri/arcgis-rest-items";
* import { getItemGroups } from "@esri/arcgis-rest-portal";
* //
* getItemGroups("30e5fe3149c34df1ba922e6f5bbf808f")
* .then(response)
Expand Down
6 changes: 3 additions & 3 deletions packages/arcgis-rest-portal/src/items/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {

/**
* ```js
* import { removeItem } from '@esri/arcgis-rest-items';
* import { removeItem } from "@esri/arcgis-rest-portal";
* //
* removeItem({
* id: "3ef",
Expand All @@ -41,7 +41,7 @@ export function removeItem(

/**
* ```js
* import { removeItemRelationship } from '@esri/arcgis-rest-items';
* import { removeItemRelationship } from "@esri/arcgis-rest-portal";
* //
* removeItemRelationship({
* originItemId: '3ef',
Expand Down Expand Up @@ -94,7 +94,7 @@ export function removeItemResource(

/**
* ```js
* import { removeFolder } from "@esri/arcgis-rest-items";
* import { removeFolder } from "@esri/arcgis-rest-portal";
* //
* removeFolder({
* folderId: "fe4",
Expand Down
2 changes: 1 addition & 1 deletion packages/arcgis-rest-portal/src/items/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface ISearchResult {

/**
* ```js
* import { searchItems } from '@esri/arcgis-rest-items';
* import { searchItems } from "@esri/arcgis-rest-portal";
* //
* searchItems('water')
* .then(response) // response.total => 355
Expand Down
6 changes: 3 additions & 3 deletions packages/arcgis-rest-portal/src/items/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface IItemMoveRequestOptions extends IItemCrudRequestOptions {

/**
* ```js
* import { updateItem } from '@esri/arcgis-rest-items';
* import { updateItem } from "@esri/arcgis-rest-portal";
* //
* updateItem({
* item: {
Expand Down Expand Up @@ -72,7 +72,7 @@ export function updateItem(

/**
* ```js
* import { updateItemResource } from '@esri/arcgis-rest-items';
* import { updateItemResource } from "@esri/arcgis-rest-portal";
* //
* updateItemResource({
* id: '3ef',
Expand Down Expand Up @@ -114,7 +114,7 @@ export function updateItemResource(

/**
* ```js
* import { moveItem } from '@esri/arcgis-rest-items';
* import { moveItem } from "@esri/arcgis-rest-portal";
* //
* moveItem({
* itemId: "3ef",
Expand Down
2 changes: 1 addition & 1 deletion packages/arcgis-rest-portal/src/sharing/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface ISetAccessRequestOptions extends ISharingRequestOptions {

/**
* ```js
* import { setItemAccess } from '@esri/arcgis-rest-sharing';
* import { setItemAccess } from "@esri/arcgis-rest-portal";
* //
* setItemAccess({
* id: "abc123",
Expand Down

0 comments on commit dece3df

Please sign in to comment.