@esri/solution-feature-layer 4.1.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- /** @license
2
- * Copyright 2018 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- /**
17
- * Manages the creation and deployment of feature layers and services.
18
- *
19
- * @module feature-layer
20
- */
21
- export * from "./feature-layer";
1
+ /** @license
2
+ * Copyright 2018 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * Manages the creation and deployment of feature layers and services.
18
+ *
19
+ * @module feature-layer
20
+ */
21
+ export * from "./feature-layer";
package/dist/cjs/index.js CHANGED
@@ -1,25 +1,25 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2018 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const tslib_1 = require("tslib");
19
- /**
20
- * Manages the creation and deployment of feature layers and services.
21
- *
22
- * @module feature-layer
23
- */
24
- tslib_1.__exportStar(require("./feature-layer"), exports);
1
+ "use strict";
2
+ /** @license
3
+ * Copyright 2018 Esri
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
19
+ /**
20
+ * Manages the creation and deployment of feature layers and services.
21
+ *
22
+ * @module feature-layer
23
+ */
24
+ tslib_1.__exportStar(require("./feature-layer"), exports);
25
25
  //# sourceMappingURL=index.js.map
@@ -1,56 +1,56 @@
1
- /** @license
2
- * Copyright 2018 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- /**
17
- * Manages the creation and deployment of feature layers and services.
18
- *
19
- * @module feature-layer
20
- */
21
- import * as common from "@esri/solution-common";
22
- /**
23
- * Fills in missing data, including full layer and table definitions, in a feature services' definition.
24
- *
25
- * @param solutionItemId
26
- * @param itemInfo Feature service item
27
- * @param destAuthentication Credentials for requests to the destination organization
28
- * @param srcAuthentication Credentials for requests to source items
29
- * @param templateDictionary Hash mapping property names to replacement values
30
- * @returns A promise that will resolve when fullItem has been updated
31
- */
32
- export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary?: any): Promise<common.IItemTemplate>;
33
- /**
34
- * Creates an item in a specified folder (except for Group item type).
35
- *
36
- * @param itemTemplate Item to be created; n.b.: this item is modified
37
- * @param folderId Id of folder to receive item; null indicates that the item goes into the root
38
- * folder; ignored for Group item type
39
- * @param settings Hash mapping property names to replacement values
40
- * @param authentication Credentials for the request
41
- * @returns A promise that will resolve with the id of the created item
42
- * @private
43
- */
44
- export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
45
- /**
46
- * Feature Layer post-processing actions
47
- *
48
- * @param {string} itemId The item ID
49
- * @param {string} type The template type
50
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
51
- * @param {any} templateDictionary The template dictionary
52
- * @param {UserSession} authentication The destination session info
53
- * @returns Promise resolving to successfulness of update
54
- */
55
- export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: common.IItemTemplate, templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): Promise<common.IUpdateItemResponse>;
56
- export declare function _mostRecentlyEditedLayer(layerOrTableList: any[]): any;
1
+ /** @license
2
+ * Copyright 2018 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * Manages the creation and deployment of feature layers and services.
18
+ *
19
+ * @module feature-layer
20
+ */
21
+ import * as common from "@esri/solution-common";
22
+ /**
23
+ * Fills in missing data, including full layer and table definitions, in a feature services' definition.
24
+ *
25
+ * @param solutionItemId
26
+ * @param itemInfo Feature service item
27
+ * @param destAuthentication Credentials for requests to the destination organization
28
+ * @param srcAuthentication Credentials for requests to source items
29
+ * @param templateDictionary Hash mapping property names to replacement values
30
+ * @returns A promise that will resolve when fullItem has been updated
31
+ */
32
+ export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary?: any): Promise<common.IItemTemplate>;
33
+ /**
34
+ * Creates an item in a specified folder (except for Group item type).
35
+ *
36
+ * @param itemTemplate Item to be created; n.b.: this item is modified
37
+ * @param folderId Id of folder to receive item; null indicates that the item goes into the root
38
+ * folder; ignored for Group item type
39
+ * @param settings Hash mapping property names to replacement values
40
+ * @param authentication Credentials for the request
41
+ * @returns A promise that will resolve with the id of the created item
42
+ * @private
43
+ */
44
+ export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
45
+ /**
46
+ * Feature Layer post-processing actions
47
+ *
48
+ * @param {string} itemId The item ID
49
+ * @param {string} type The template type
50
+ * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
51
+ * @param {any} templateDictionary The template dictionary
52
+ * @param {UserSession} authentication The destination session info
53
+ * @returns Promise resolving to successfulness of update
54
+ */
55
+ export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: common.IItemTemplate, templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): Promise<common.IUpdateItemResponse>;
56
+ export declare function _mostRecentlyEditedLayer(layerOrTableList: any[]): any;