@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.
@@ -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 authentication Credentials for the request
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, authentication: UserSession, options?: ICreateSolutionOptions): Promise<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, authentication: UserSession, isGroup?: boolean): ICreateSolutionOptions;
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 authentication
47
+ * @param srcAuthentication
47
48
  * @internal
48
49
  */
49
- export declare function _addThumbnailFileToCreateOptions(createOptions: ICreateSolutionOptions, authentication: UserSession): Promise<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 authentication Credentials for the request
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, authentication: UserSession): Promise<string>;
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 ocntaining the two values found in the tags, or defaulting to a new GUID and "1.0", respectively,
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
  */