@esri/solution-hub-types 6.0.2-alpha.23 → 6.0.2-alpha.250423
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/package.json +3 -3
- package/dist/cjs/helpers/_post-process-page.d.ts +0 -17
- package/dist/cjs/helpers/_post-process-page.js +0 -33
- package/dist/cjs/helpers/_post-process-page.js.map +0 -1
- package/dist/cjs/helpers/_post-process-site.d.ts +0 -29
- package/dist/cjs/helpers/_post-process-site.js +0 -53
- package/dist/cjs/helpers/_post-process-site.js.map +0 -1
- package/dist/cjs/helpers/_update-site-pages.d.ts +0 -24
- package/dist/cjs/helpers/_update-site-pages.js +0 -43
- package/dist/cjs/helpers/_update-site-pages.js.map +0 -1
- package/dist/cjs/helpers/move-model-to-folder.d.ts +0 -26
- package/dist/cjs/helpers/move-model-to-folder.js +0 -50
- package/dist/cjs/helpers/move-model-to-folder.js.map +0 -1
- package/dist/cjs/helpers/replace-item-ids.d.ts +0 -17
- package/dist/cjs/helpers/replace-item-ids.js +0 -37
- package/dist/cjs/helpers/replace-item-ids.js.map +0 -1
- package/dist/cjs/hub-page-processor.d.ts +0 -62
- package/dist/cjs/hub-page-processor.js +0 -225
- package/dist/cjs/hub-page-processor.js.map +0 -1
- package/dist/cjs/hub-site-processor.d.ts +0 -64
- package/dist/cjs/hub-site-processor.js +0 -235
- package/dist/cjs/hub-site-processor.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -23
- package/dist/cjs/index.js +0 -29
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/helpers/_post-process-page.d.ts +0 -17
- package/dist/esm/helpers/_post-process-page.js +0 -29
- package/dist/esm/helpers/_post-process-page.js.map +0 -1
- package/dist/esm/helpers/_post-process-site.d.ts +0 -29
- package/dist/esm/helpers/_post-process-site.js +0 -49
- package/dist/esm/helpers/_post-process-site.js.map +0 -1
- package/dist/esm/helpers/_update-site-pages.d.ts +0 -24
- package/dist/esm/helpers/_update-site-pages.js +0 -39
- package/dist/esm/helpers/_update-site-pages.js.map +0 -1
- package/dist/esm/helpers/move-model-to-folder.d.ts +0 -26
- package/dist/esm/helpers/move-model-to-folder.js +0 -46
- package/dist/esm/helpers/move-model-to-folder.js.map +0 -1
- package/dist/esm/helpers/replace-item-ids.d.ts +0 -17
- package/dist/esm/helpers/replace-item-ids.js +0 -33
- package/dist/esm/helpers/replace-item-ids.js.map +0 -1
- package/dist/esm/hub-page-processor.d.ts +0 -62
- package/dist/esm/hub-page-processor.js +0 -218
- package/dist/esm/hub-page-processor.js.map +0 -1
- package/dist/esm/hub-site-processor.d.ts +0 -64
- package/dist/esm/hub-site-processor.js +0 -228
- package/dist/esm/hub-site-processor.js.map +0 -1
- package/dist/esm/index.d.ts +0 -23
- package/dist/esm/index.js +0 -25
- package/dist/esm/index.js.map +0 -1
|
@@ -1,228 +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
|
-
/**
|
|
17
|
-
* Manages the creation and deployment of Hub Site item types.
|
|
18
|
-
*
|
|
19
|
-
* @module hub-site-processor
|
|
20
|
-
*/
|
|
21
|
-
import { EItemProgressStatus, convertIModel, createHubRequestOptions, dedupe, generateEmptyCreationResponse, getProp, restUpdateItem, } from "@esri/solution-common";
|
|
22
|
-
import { createSiteModelFromTemplate, createSite, getSiteById, removeSite, convertSiteToTemplate, } from "@esri/hub-sites";
|
|
23
|
-
import { failSafe, without } from "@esri/hub-common";
|
|
24
|
-
import { moveModelToFolder } from "./helpers/move-model-to-folder";
|
|
25
|
-
import { _postProcessSite } from "./helpers/_post-process-site";
|
|
26
|
-
import { replaceItemIds } from "./helpers/replace-item-ids";
|
|
27
|
-
/**
|
|
28
|
-
* Converts a Site item into a template.
|
|
29
|
-
*
|
|
30
|
-
* @param itemInfo Info about the item
|
|
31
|
-
* @param destAuthentication Credentials for requests to the destination organization
|
|
32
|
-
* @param srcAuthentication Credentials for requests to source items (placeholder--not used)
|
|
33
|
-
* @returns A promise that will resolve when the template has been created
|
|
34
|
-
*/
|
|
35
|
-
export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication = null) {
|
|
36
|
-
let created = 0;
|
|
37
|
-
let modified = 0;
|
|
38
|
-
let itemTitle;
|
|
39
|
-
let dataTitle;
|
|
40
|
-
let hubRo;
|
|
41
|
-
// get hubRequestOptions
|
|
42
|
-
return createHubRequestOptions(destAuthentication)
|
|
43
|
-
.then((ro) => {
|
|
44
|
-
hubRo = ro;
|
|
45
|
-
return getSiteById(itemInfo.id, hubRo);
|
|
46
|
-
})
|
|
47
|
-
.then((siteModel) => {
|
|
48
|
-
// We need to save these properties in order to restore them after hub.js deletes them
|
|
49
|
-
created = siteModel.item.created;
|
|
50
|
-
modified = siteModel.item.modified;
|
|
51
|
-
itemTitle = siteModel.item.title;
|
|
52
|
-
dataTitle = siteModel.data.values.title;
|
|
53
|
-
return convertSiteToTemplate(siteModel, hubRo);
|
|
54
|
-
})
|
|
55
|
-
.then((tmpl) => {
|
|
56
|
-
// add in some stuff Hub.js does not yet add
|
|
57
|
-
tmpl.item.created = created;
|
|
58
|
-
tmpl.item.modified = modified;
|
|
59
|
-
tmpl.item.title = itemTitle;
|
|
60
|
-
tmpl.item.typeKeywords = without(tmpl.item.typeKeywords, "doNotDelete");
|
|
61
|
-
tmpl.data.values.title = dataTitle;
|
|
62
|
-
tmpl.groups = [];
|
|
63
|
-
tmpl.estimatedDeploymentCostFactor = 2;
|
|
64
|
-
tmpl.resources = [];
|
|
65
|
-
if (!getProp(tmpl, "properties")) {
|
|
66
|
-
tmpl.properties = {};
|
|
67
|
-
}
|
|
68
|
-
// swap out dependency id's to {{<depid>.itemId}}
|
|
69
|
-
// so it will be re-interpolated
|
|
70
|
-
tmpl.dependencies = dedupe(tmpl.dependencies);
|
|
71
|
-
tmpl = replaceItemIds(tmpl);
|
|
72
|
-
// and return it
|
|
73
|
-
return tmpl;
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Handle deployment of Site item templates
|
|
78
|
-
*
|
|
79
|
-
* @export
|
|
80
|
-
* @param {IItemTemplate} template
|
|
81
|
-
* @param {*} templateDictionary
|
|
82
|
-
* @param {UserSession} destinationAuthentication
|
|
83
|
-
* @param {IItemProgressCallback} itemProgressCallback
|
|
84
|
-
* @returns {Promise<ICreateItemFromTemplateResponse>}
|
|
85
|
-
*/
|
|
86
|
-
export function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
|
|
87
|
-
// let the progress system know we've started...
|
|
88
|
-
const startStatus = itemProgressCallback(template.itemId, EItemProgressStatus.Started, 0);
|
|
89
|
-
// if it returned false, just resolve out
|
|
90
|
-
if (!startStatus) {
|
|
91
|
-
return Promise.resolve(generateEmptyCreationResponse(template.type));
|
|
92
|
-
}
|
|
93
|
-
// TODO: Reassess with resource unification
|
|
94
|
-
if (template.assets && template.resources) {
|
|
95
|
-
delete template.assets;
|
|
96
|
-
}
|
|
97
|
-
// ensure we have a solution object in the templateDictionary hash
|
|
98
|
-
if (!templateDictionary.solution) {
|
|
99
|
-
templateDictionary.solution = {};
|
|
100
|
-
}
|
|
101
|
-
// .title should always be set on the templateDictionary
|
|
102
|
-
templateDictionary.solution.title = templateDictionary.title;
|
|
103
|
-
// TODO: Determine if we need any transforms in this new env
|
|
104
|
-
const transforms = {};
|
|
105
|
-
// create an object to hold the created site through
|
|
106
|
-
// subsequent promise calls
|
|
107
|
-
let siteModel;
|
|
108
|
-
// Create the "siteModel" from the template. Does not save the site item yet
|
|
109
|
-
// Note: depending on licensing and user privs, will also create the team groups
|
|
110
|
-
// and initiative item.
|
|
111
|
-
let hubRo;
|
|
112
|
-
const thumbnail = template.item.thumbnail; // createSiteModelFromTemplate trashes thumbnail
|
|
113
|
-
return createHubRequestOptions(destinationAuthentication, templateDictionary)
|
|
114
|
-
.then((ro) => {
|
|
115
|
-
hubRo = ro;
|
|
116
|
-
return createSiteModelFromTemplate(template, templateDictionary, transforms, hubRo);
|
|
117
|
-
})
|
|
118
|
-
.then((interpolated) => {
|
|
119
|
-
const options = {
|
|
120
|
-
assets: interpolated.assets || [],
|
|
121
|
-
};
|
|
122
|
-
// Now create the item, register for oAuth, register domain etc
|
|
123
|
-
return createSite(interpolated, options, hubRo);
|
|
124
|
-
})
|
|
125
|
-
.then((site) => {
|
|
126
|
-
// hold onto the site
|
|
127
|
-
siteModel = site;
|
|
128
|
-
// Move the site and initiative to the solution folder
|
|
129
|
-
// this is essentially fire and forget. We fail-safe the actual moveItem
|
|
130
|
-
// call since it's not critical to the outcome
|
|
131
|
-
return moveModelToFolder(site, templateDictionary.folderId, destinationAuthentication);
|
|
132
|
-
})
|
|
133
|
-
.then(() => {
|
|
134
|
-
// Fix the thumbnail
|
|
135
|
-
const updateOptions = {
|
|
136
|
-
item: {
|
|
137
|
-
id: siteModel.item.id,
|
|
138
|
-
},
|
|
139
|
-
params: {
|
|
140
|
-
// Pass thumbnail in via params because item property is serialized, which discards a blob
|
|
141
|
-
thumbnail,
|
|
142
|
-
},
|
|
143
|
-
authentication: destinationAuthentication,
|
|
144
|
-
};
|
|
145
|
-
return restUpdateItem(updateOptions);
|
|
146
|
-
})
|
|
147
|
-
.then(() => {
|
|
148
|
-
// Update the template dictionary
|
|
149
|
-
// TODO: This should be done in whatever recieves
|
|
150
|
-
// the outcome of this promise chain
|
|
151
|
-
templateDictionary[template.itemId] = {
|
|
152
|
-
itemId: siteModel.item.id,
|
|
153
|
-
};
|
|
154
|
-
// call the progress callback, which also mutates templateDictionary
|
|
155
|
-
const finalStatus = itemProgressCallback(template.itemId, EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor || 2, siteModel.item.id);
|
|
156
|
-
if (!finalStatus) {
|
|
157
|
-
// clean up the site we just created
|
|
158
|
-
const failSafeRemove = failSafe(removeSite, { success: true });
|
|
159
|
-
return failSafeRemove(siteModel, hubRo).then(() => {
|
|
160
|
-
return Promise.resolve(generateEmptyCreationResponse(template.type));
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
// finally, return ICreateItemFromTemplateResponse
|
|
165
|
-
const response = {
|
|
166
|
-
item: {
|
|
167
|
-
...template,
|
|
168
|
-
...convertIModel(siteModel),
|
|
169
|
-
},
|
|
170
|
-
id: siteModel.item.id,
|
|
171
|
-
type: template.type,
|
|
172
|
-
postProcess: true,
|
|
173
|
-
};
|
|
174
|
-
response.item.itemId = siteModel.item.id;
|
|
175
|
-
return response;
|
|
176
|
-
}
|
|
177
|
-
})
|
|
178
|
-
.catch((ex) => {
|
|
179
|
-
itemProgressCallback(template.itemId, EItemProgressStatus.Failed, 0);
|
|
180
|
-
throw ex;
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Deployer life-cycle hook allowing the Site Processor
|
|
185
|
-
* a chance to apply final processes to all the items that
|
|
186
|
-
* were created as part of the solution.
|
|
187
|
-
* Specifically this will:
|
|
188
|
-
* - share all items to the content team, and (if created)
|
|
189
|
-
* the core team (depends on user privs)
|
|
190
|
-
* - link all Page items that were created, to the Site
|
|
191
|
-
*
|
|
192
|
-
* @param model
|
|
193
|
-
* @param items
|
|
194
|
-
* @param authentication
|
|
195
|
-
* @param templateDictionary
|
|
196
|
-
*/
|
|
197
|
-
export function postProcess(id, type, itemInfos, template, templates, templateDictionary, authentication) {
|
|
198
|
-
let hubRo;
|
|
199
|
-
return createHubRequestOptions(authentication, templateDictionary)
|
|
200
|
-
.then((ro) => {
|
|
201
|
-
hubRo = ro;
|
|
202
|
-
// get the site model
|
|
203
|
-
return getSiteById(id, hubRo);
|
|
204
|
-
})
|
|
205
|
-
.then((siteModel) => {
|
|
206
|
-
// Hub.js does not expect the same structures, so we delegat to a local fn
|
|
207
|
-
return _postProcessSite(siteModel, itemInfos, templateDictionary, hubRo);
|
|
208
|
-
})
|
|
209
|
-
.then(() => {
|
|
210
|
-
// resolve w/ a boolean
|
|
211
|
-
return Promise.resolve(true);
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Check of an item type is a Site
|
|
216
|
-
* Hub Site Application is for ArcGIS Online
|
|
217
|
-
* Site Application is for ArcGIS Enterprise
|
|
218
|
-
*
|
|
219
|
-
* @param itemType
|
|
220
|
-
*/
|
|
221
|
-
export function isASite(itemType) {
|
|
222
|
-
let result = false;
|
|
223
|
-
if (itemType === "Hub Site Application" || itemType === "Site Application") {
|
|
224
|
-
result = true;
|
|
225
|
-
}
|
|
226
|
-
return result;
|
|
227
|
-
}
|
|
228
|
-
//# sourceMappingURL=hub-site-processor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hub-site-processor.js","sourceRoot":"","sources":["../../src/hub-site-processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AAEH,OAAO,EAKL,mBAAmB,EAEnB,aAAa,EACb,uBAAuB,EACvB,MAAM,EACN,6BAA6B,EAC7B,OAAO,EACP,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,EAC3B,UAAU,EACV,WAAW,EACX,UAAU,EACV,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAU,QAAQ,EAA0B,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAErF,OAAO,EAAE,iBAAiB,EA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AC;QACrE,MAAM,EAAE,CAAC;IACX,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CACzB,EAAU,EACV,IAAY,EACZ,SAAgB,EAChB,QAAa,EACb,SAA0B,EAC1B,kBAAuB,EACvB,cAA2B;IAE3B,IAAI,KAA6B,CAAC;IAClC,OAAO,uBAAuB,CAAC,cAAc,EAAE,kBAAkB,CAAC;SAC/D,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE;QACX,KAAK,GAAG,EAAE,CAAC;QACX,qBAAqB;QACrB,OAAO,WAAW,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE;QAClB,0EAA0E;QAC1E,OAAO,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;IAC3E,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,EAAE;QACT,uBAAuB;QACvB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,OAAO,CAAC,QAAgB;IACtC,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,IAAI,QAAQ,KAAK,sBAAsB,IAAI,QAAQ,KAAK,kBAAkB,EAAE;QAC1E,MAAM,GAAG,IAAI,CAAC;KACf;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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 Hub Site and Page item types.
|
|
18
|
-
*
|
|
19
|
-
* @module hubTypes
|
|
20
|
-
*/
|
|
21
|
-
import * as HubPageProcessor from "./hub-page-processor";
|
|
22
|
-
import * as HubSiteProcessor from "./hub-site-processor";
|
|
23
|
-
export { HubPageProcessor, HubSiteProcessor };
|
package/dist/esm/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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 Hub Site and Page item types.
|
|
18
|
-
*
|
|
19
|
-
* @module hubTypes
|
|
20
|
-
*/
|
|
21
|
-
import * as HubPageProcessor from "./hub-page-processor";
|
|
22
|
-
import * as HubSiteProcessor from "./hub-site-processor";
|
|
23
|
-
// Re-export as modules
|
|
24
|
-
export { HubPageProcessor, HubSiteProcessor };
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AAEH,OAAO,KAAK,gBAAgB,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,gBAAgB,MAAM,sBAAsB,CAAC;AACzD,uBAAuB;AACvB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|