@esri/solution-creator 6.0.4-alpha.0 → 6.1.0-alpha.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.
Files changed (37) hide show
  1. package/package.json +15 -15
  2. package/dist/cjs/createItemTemplate.d.ts +0 -117
  3. package/dist/cjs/createItemTemplate.js +0 -484
  4. package/dist/cjs/createItemTemplate.js.map +0 -1
  5. package/dist/cjs/creator.d.ts +0 -107
  6. package/dist/cjs/creator.js +0 -374
  7. package/dist/cjs/creator.js.map +0 -1
  8. package/dist/cjs/helpers/add-content-to-solution.d.ts +0 -159
  9. package/dist/cjs/helpers/add-content-to-solution.js +0 -561
  10. package/dist/cjs/helpers/add-content-to-solution.js.map +0 -1
  11. package/dist/cjs/helpers/template.d.ts +0 -30
  12. package/dist/cjs/helpers/template.js +0 -49
  13. package/dist/cjs/helpers/template.js.map +0 -1
  14. package/dist/cjs/index.d.ts +0 -23
  15. package/dist/cjs/index.js +0 -27
  16. package/dist/cjs/index.js.map +0 -1
  17. package/dist/cjs/module-map.d.ts +0 -23
  18. package/dist/cjs/module-map.js +0 -234
  19. package/dist/cjs/module-map.js.map +0 -1
  20. package/dist/esm/createItemTemplate.d.ts +0 -117
  21. package/dist/esm/createItemTemplate.js +0 -471
  22. package/dist/esm/createItemTemplate.js.map +0 -1
  23. package/dist/esm/creator.d.ts +0 -107
  24. package/dist/esm/creator.js +0 -362
  25. package/dist/esm/creator.js.map +0 -1
  26. package/dist/esm/helpers/add-content-to-solution.d.ts +0 -159
  27. package/dist/esm/helpers/add-content-to-solution.js +0 -540
  28. package/dist/esm/helpers/add-content-to-solution.js.map +0 -1
  29. package/dist/esm/helpers/template.d.ts +0 -30
  30. package/dist/esm/helpers/template.js +0 -44
  31. package/dist/esm/helpers/template.js.map +0 -1
  32. package/dist/esm/index.d.ts +0 -23
  33. package/dist/esm/index.js +0 -24
  34. package/dist/esm/index.js.map +0 -1
  35. package/dist/esm/module-map.d.ts +0 -23
  36. package/dist/esm/module-map.js +0 -230
  37. package/dist/esm/module-map.js.map +0 -1
@@ -1,159 +0,0 @@
1
- /** @license
2
- * Copyright 2020 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
- import { ICreateSolutionOptions, IItemTemplate, TPossibleSourceFile, UserSession } from "@esri/solution-common";
17
- /**
18
- * Adds a list of AGO item ids to a solution item.
19
- *
20
- * @param solutionItemId AGO id of solution to receive items
21
- * @param options Customizations for creating the solution
22
- * @param srcAuthentication Credentials for requests to source items
23
- * @param destAuthentication Credentials for the requests to destination solution
24
- * @returns A promise that resolves with the AGO id of the updated solution
25
- * @internal
26
- */
27
- export declare function addContentToSolution(solutionItemId: string, options: ICreateSolutionOptions, srcAuthentication: UserSession, destAuthentication: UserSession): Promise<string>;
28
- /**
29
- * Gets the dependencies of an item by merging its dependencies list with item references in template variables.
30
- *
31
- * @param template Template to examine
32
- * @returns List of dependency ids
33
- * @private
34
- */
35
- export declare function _getDependencies(template: IItemTemplate): string[];
36
- /**
37
- * Extracts AGO ids out of template variables.
38
- *
39
- * @param variables List of template variables to examine
40
- * @returns List of AGO ids referenced in `variables`
41
- * @private
42
- */
43
- export declare function _getIdsOutOfTemplateVariables(variables: string[]): string[];
44
- /**
45
- * Fetches the organization's URL.
46
- *
47
- * @param destAuthentication Credentials for request organization info
48
- * @returns Promise resolving with the organization's URL
49
- * @private
50
- */
51
- export declare function _getOrgUrl(destAuthentication: UserSession): Promise<string>;
52
- /**
53
- * Creates a list of item URLs.
54
- *
55
- * @param templates Templates to check for URLs
56
- * @returns List of URLs
57
- * @private
58
- */
59
- export declare function _getSolutionItemUrls(templates: IItemTemplate[]): string[][];
60
- /**
61
- * Extracts template variables out of a string.
62
- *
63
- * @param text String to examine
64
- * @returns List of template variables found in string
65
- * @private
66
- */
67
- export declare function _getTemplateVariables(text: string): string[];
68
- /**
69
- * Update the items dependencies and groups arrays
70
- *
71
- * @param templates The array of templates to evaluate
72
- * @returns Updated version of the templates
73
- * @private
74
- */
75
- export declare function _postProcessGroupDependencies(templates: IItemTemplate[]): IItemTemplate[];
76
- /**
77
- * Check for feature service items that have been flagged for invalid designations.
78
- * Remove templates that have invalid designations from the solution item and other item dependencies.
79
- * Clean up any references to items with invalid designations in the other templates.
80
- *
81
- * @param templates The array of templates to evaluate
82
- * @param templateDictionary Hash of key details used for variable replacement
83
- * @returns Updated version of the templates
84
- * @private
85
- */
86
- export declare function _postProcessIgnoredItems(templates: IItemTemplate[], templateDictionary: any): IItemTemplate[];
87
- /**
88
- * Retrieves the Form dataFiles from a list of templates and removes them from the templates.
89
- *
90
- * @param templates Templates to be scanned and have their `dataFile` property deleted
91
- * @returns List of Form dataFiles from the templates, which have their `dataFile` property removed;
92
- * the list is in the same order as the templates and has `undefined` for templates that don't have a dataFile
93
- */
94
- export declare function _getDataFilesFromTemplates(templates: IItemTemplate[]): TPossibleSourceFile[];
95
- /**
96
- * Recursively runs through an object to find and replace any strings found in a dictionary.
97
- *
98
- * @param templateDictionary Hash of things to be replaced
99
- * @param obj Object to be examined
100
- * @private
101
- */
102
- export declare function _replaceDictionaryItemsInObject(hash: any, obj: any): any;
103
- /**
104
- * Recursively runs through an object to find and templatize any remaining references to solution's items.
105
- *
106
- * @param ids Ids to be replaced in strings found in object
107
- * @param obj Object to be examined
108
- * @private
109
- */
110
- export declare function _replaceRemainingIdsInObject(ids: string[], obj: any): any;
111
- /**
112
- * Templatizes ids from a list in a string if they're not already templatized.
113
- *
114
- * @param ids Ids to be replaced in source string
115
- * @param str Source string to be examined
116
- * @returns A copy of the source string with any templatization changes
117
- * @private
118
- */
119
- export declare function _replaceRemainingIdsInString(ids: string[], str: string): string;
120
- /**
121
- * Restores the Form dataFiles to the templates.
122
- *
123
- * @param templates Templates to be updated with the dataFiles; the `dataFile` property is added back to the templates
124
- * that originally had it
125
- * @param dataFiles List of Form dataFiles to be restored to the templates; the list is in the same order
126
- * as the templates and has `undefined` for templates that don't have a dataFile
127
- */
128
- export declare function _restoreDataFilesToTemplates(templates: IItemTemplate[], dataFiles: TPossibleSourceFile[]): void;
129
- /**
130
- * Finds and templatizes any URLs in solution items' descriptions.
131
- *
132
- * @param templates The array of templates to evaluate, modified in place
133
- * @private
134
- */
135
- export declare function _simplifyUrlsInItemDescriptions(templates: IItemTemplate[]): void;
136
- /**
137
- * Templatizes occurrences of the URL to the user's organization in the `item` and `data` template sections.
138
- *
139
- * @param templates The array of templates to evaluate; `templates` is modified in place
140
- * @param orgUrl The organization's URL
141
- * @returns Updated templates
142
- * @private
143
- */
144
- export declare function _templatizeOrgUrl(templates: IItemTemplate[], orgUrl: string): IItemTemplate[];
145
- /**
146
- * Finds and templatizes any references to solution's items.
147
- *
148
- * @param templates The array of templates to evaluate, modified in place
149
- * @private
150
- */
151
- export declare function _templatizeSolutionIds(templates: IItemTemplate[]): void;
152
- /**
153
- * Finds and templatizes any references to AGO ids in the workflow configuration.
154
- *
155
- * @param templates The array of templates whose workflow configurations are to be templatized; this array is
156
- * modified in place
157
- * @param templateDictionary Hash of key details used for variable replacement
158
- */
159
- export declare function _templatizeWorkflowConfig(templates: IItemTemplate[], templateDictionary: any): void;