@esri/solution-creator 0.24.0 → 1.1.4
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.
- package/dist/esm/createItemTemplate.d.ts +5 -4
- package/dist/esm/createItemTemplate.js +89 -87
- package/dist/esm/createItemTemplate.js.map +1 -1
- package/dist/esm/creator.d.ts +10 -8
- package/dist/esm/creator.js +78 -72
- package/dist/esm/creator.js.map +1 -1
- package/dist/esm/helpers/add-content-to-solution.d.ts +5 -4
- package/dist/esm/helpers/add-content-to-solution.js +100 -92
- package/dist/esm/helpers/add-content-to-solution.js.map +1 -1
- package/dist/esm/module-map.js +7 -6
- package/dist/esm/module-map.js.map +1 -1
- package/dist/node/createItemTemplate.d.ts +5 -4
- package/dist/node/createItemTemplate.js +102 -100
- package/dist/node/createItemTemplate.js.map +1 -1
- package/dist/node/creator.d.ts +10 -8
- package/dist/node/creator.js +80 -74
- package/dist/node/creator.js.map +1 -1
- package/dist/node/helpers/add-content-to-solution.d.ts +5 -4
- package/dist/node/helpers/add-content-to-solution.js +112 -104
- package/dist/node/helpers/add-content-to-solution.js.map +1 -1
- package/dist/node/index.js +4 -4
- package/dist/node/index.js.map +1 -1
- package/dist/node/module-map.js +13 -12
- package/dist/node/module-map.js.map +1 -1
- package/dist/umd/createItemTemplate.d.ts +5 -4
- package/dist/umd/creator.d.ts +10 -8
- package/dist/umd/creator.umd.js +1240 -1271
- package/dist/umd/creator.umd.js.map +1 -1
- package/dist/umd/creator.umd.min.js +3 -3
- package/dist/umd/creator.umd.min.js.map +1 -1
- package/dist/umd/helpers/add-content-to-solution.d.ts +5 -4
- package/package.json +31 -30
package/dist/umd/creator.d.ts
CHANGED
|
@@ -24,11 +24,12 @@ import { IModel } from "@esri/hub-common";
|
|
|
24
24
|
* Creates a solution item.
|
|
25
25
|
*
|
|
26
26
|
* @param sourceId AGO id of group whose contents are to be added to solution or of an item to convert into a solution
|
|
27
|
-
* @param
|
|
27
|
+
* @param srcAuthentication Credentials for requests to source items
|
|
28
|
+
* @param destAuthentication Credentials for the requests to destination solution
|
|
28
29
|
* @param options Customizations for creating the solution
|
|
29
30
|
* @return A promise that resolves with the AGO id of the new solution
|
|
30
31
|
*/
|
|
31
|
-
export declare function createSolution(sourceId: string,
|
|
32
|
+
export declare function createSolution(sourceId: string, srcAuthentication: UserSession, destAuthentication: UserSession, options?: ICreateSolutionOptions): Promise<string>;
|
|
32
33
|
/**
|
|
33
34
|
* Update the createOptions with the group properties
|
|
34
35
|
*
|
|
@@ -38,25 +39,26 @@ export declare function createSolution(sourceId: string, authentication: UserSes
|
|
|
38
39
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
39
40
|
* @internal
|
|
40
41
|
*/
|
|
41
|
-
export declare function _applySourceToCreateOptions(createOptions: ICreateSolutionOptions, sourceInfo: IGroup | IItem,
|
|
42
|
+
export declare function _applySourceToCreateOptions(createOptions: ICreateSolutionOptions, sourceInfo: IGroup | IItem, srcAuthentication: UserSession, isGroup?: boolean): ICreateSolutionOptions;
|
|
42
43
|
/**
|
|
43
44
|
* Update the createOptions with the thumbnail file
|
|
44
45
|
*
|
|
45
46
|
* @param createOptions
|
|
46
|
-
* @param
|
|
47
|
+
* @param srcAuthentication
|
|
47
48
|
* @internal
|
|
48
49
|
*/
|
|
49
|
-
export declare function _addThumbnailFileToCreateOptions(createOptions: ICreateSolutionOptions,
|
|
50
|
+
export declare function _addThumbnailFileToCreateOptions(createOptions: ICreateSolutionOptions, srcAuthentication: UserSession): Promise<ICreateSolutionOptions>;
|
|
50
51
|
/**
|
|
51
52
|
* Creates a solution item using a list of AGO item ids.
|
|
52
53
|
*
|
|
53
54
|
* @param options Customizations for creating the solution
|
|
54
|
-
* @param
|
|
55
|
+
* @param srcAuthentication Credentials for requests to source items
|
|
56
|
+
* @param destAuthentication Credentials for the requests to destination solution
|
|
55
57
|
* @return A promise that resolves with the AGO id of the new solution; solution item is deleted if its
|
|
56
58
|
* there is a problem updating it
|
|
57
59
|
* @internal
|
|
58
60
|
*/
|
|
59
|
-
export declare function _createSolutionFromItemIds(options: ICreateSolutionOptions,
|
|
61
|
+
export declare function _createSolutionFromItemIds(options: ICreateSolutionOptions, srcAuthentication: UserSession, destAuthentication: UserSession): Promise<string>;
|
|
60
62
|
/**
|
|
61
63
|
* Creates an empty solution item.
|
|
62
64
|
*
|
|
@@ -79,7 +81,7 @@ export declare function _createSolutionItemModel(options: any): IModel;
|
|
|
79
81
|
* Gets the deploy.id and deploy.version tag values.
|
|
80
82
|
*
|
|
81
83
|
* @param tags A list of item tags
|
|
82
|
-
* @return A list
|
|
84
|
+
* @return A list containing the two values found in the tags, or defaulting to a new GUID and "1.0", respectively,
|
|
83
85
|
* as needed
|
|
84
86
|
* @internal
|
|
85
87
|
*/
|