@esri/solution-hub-types 3.0.1 → 4.0.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 +8 -14
  2. package/dist/node/helpers/_post-process-page.d.ts +0 -17
  3. package/dist/node/helpers/_post-process-page.js +0 -33
  4. package/dist/node/helpers/_post-process-page.js.map +0 -1
  5. package/dist/node/helpers/_post-process-site.d.ts +0 -29
  6. package/dist/node/helpers/_post-process-site.js +0 -51
  7. package/dist/node/helpers/_post-process-site.js.map +0 -1
  8. package/dist/node/helpers/_update-site-pages.d.ts +0 -24
  9. package/dist/node/helpers/_update-site-pages.js +0 -43
  10. package/dist/node/helpers/_update-site-pages.js.map +0 -1
  11. package/dist/node/helpers/move-model-to-folder.d.ts +0 -26
  12. package/dist/node/helpers/move-model-to-folder.js +0 -50
  13. package/dist/node/helpers/move-model-to-folder.js.map +0 -1
  14. package/dist/node/helpers/replace-item-ids.d.ts +0 -17
  15. package/dist/node/helpers/replace-item-ids.js +0 -37
  16. package/dist/node/helpers/replace-item-ids.js.map +0 -1
  17. package/dist/node/hub-page-processor.d.ts +0 -63
  18. package/dist/node/hub-page-processor.js +0 -228
  19. package/dist/node/hub-page-processor.js.map +0 -1
  20. package/dist/node/hub-site-processor.d.ts +0 -65
  21. package/dist/node/hub-site-processor.js +0 -232
  22. package/dist/node/hub-site-processor.js.map +0 -1
  23. package/dist/node/index.d.ts +0 -23
  24. package/dist/node/index.js +0 -29
  25. package/dist/node/index.js.map +0 -1
  26. package/dist/umd/hub-types/src/helpers/_post-process-page.d.ts +0 -17
  27. package/dist/umd/hub-types/src/helpers/_post-process-site.d.ts +0 -29
  28. package/dist/umd/hub-types/src/helpers/_update-site-pages.d.ts +0 -24
  29. package/dist/umd/hub-types/src/helpers/move-model-to-folder.d.ts +0 -26
  30. package/dist/umd/hub-types/src/helpers/replace-item-ids.d.ts +0 -17
  31. package/dist/umd/hub-types/src/hub-page-processor.d.ts +0 -63
  32. package/dist/umd/hub-types/src/hub-site-processor.d.ts +0 -65
  33. package/dist/umd/hub-types/src/index.d.ts +0 -23
  34. package/dist/umd/hub-types.umd.js +0 -653
  35. package/dist/umd/hub-types.umd.js.map +0 -1
  36. package/dist/umd/hub-types.umd.min.js +0 -19
  37. package/dist/umd/hub-types.umd.min.js.map +0 -1
@@ -1,24 +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 { IModel, IHubUserRequestOptions } from "@esri/hub-common";
17
- /**
18
- *
19
- * @param siteModel
20
- * @param itemInfos
21
- * @param hubRequestOptions
22
- * @private
23
- */
24
- export declare function _updateSitePages(siteModel: IModel, itemInfos: any[], hubRequestOptions: IHubUserRequestOptions): Promise<any>;
@@ -1,26 +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
- import { IModel } from "@esri/hub-common";
17
- import { UserSession } from "@esri/solution-common";
18
- /**
19
- * Move the created site item, and optionally the Initiative, into
20
- * the solution folder
21
- *
22
- * @param siteModel
23
- * @param folderId
24
- * @param authentication
25
- */
26
- export declare function moveModelToFolder(siteModel: IModel, folderId: string, authentication: UserSession): Promise<any>;
@@ -1,17 +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 { IModelTemplate } from "@esri/hub-common";
17
- export declare function replaceItemIds(template: IModelTemplate): IModelTemplate;
@@ -1,63 +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 Page item types.
18
- *
19
- * @module hub-page-processor
20
- */
21
- import { IItemTemplate, IItemProgressCallback, ICreateItemFromTemplateResponse, UserSession } from "@esri/solution-common";
22
- /**
23
- * Converts a Hub Page item into a template.
24
- *
25
- * @param solutionItemId The solution to contain the template
26
- * @param itemInfo Info about the item
27
- * @param destAuthentication Credentials for requests to the destination organization
28
- * @param srcAuthentication Credentials for requests to source items (placeholder--not used)
29
- * @returns A promise that will resolve when the template has been created
30
- */
31
- export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: UserSession, srcAuthentication?: UserSession): Promise<IItemTemplate>;
32
- /**
33
- * Handle deployment of Page item templates
34
- *
35
- * @export
36
- * @param {IItemTemplate} template
37
- * @param {*} templateDictionary
38
- * @param {UserSession} destinationAuthentication
39
- * @param {IItemProgressCallback} itemProgressCallback
40
- * @returns {Promise<ICreateItemFromTemplateResponse>}
41
- */
42
- export declare function createItemFromTemplate(template: IItemTemplate, templateDictionary: any, destinationAuthentication: UserSession, itemProgressCallback: IItemProgressCallback): Promise<ICreateItemFromTemplateResponse>;
43
- /**
44
- * Post-Process a Page
45
- * Re-interpolate the page item + data w/ the full template dictionary hash
46
- *
47
- * @param id
48
- * @param type
49
- * @param itemInfos
50
- * @param template
51
- * @param templates
52
- * @param templateDictionary
53
- * @param authentication
54
- */
55
- export declare function postProcess(id: string, type: string, itemInfos: any[], template: any, templates: IItemTemplate[], templateDictionary: any, authentication: UserSession): Promise<boolean>;
56
- /**
57
- * Check of an item type is a Page
58
- * Hub Page is for ArcGIS Online
59
- * Site Page is for ArcGIS Enterprise
60
- *
61
- * @param itemType
62
- */
63
- export declare function isAPage(itemType: string): boolean;
@@ -1,65 +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 { IItemTemplate, IItemProgressCallback, ICreateItemFromTemplateResponse, UserSession } from "@esri/solution-common";
22
- /**
23
- * Converts a Site item into a template.
24
- *
25
- * @param solutionItemId The solution to contain the template
26
- * @param itemInfo Info about the item
27
- * @param destAuthentication Credentials for requests to the destination organization
28
- * @param srcAuthentication Credentials for requests to source items (placeholder--not used)
29
- * @returns A promise that will resolve when the template has been created
30
- */
31
- export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: UserSession, srcAuthentication?: UserSession): Promise<IItemTemplate>;
32
- /**
33
- * Handle deployment of Site item templates
34
- *
35
- * @export
36
- * @param {IItemTemplate} template
37
- * @param {*} templateDictionary
38
- * @param {UserSession} destinationAuthentication
39
- * @param {IItemProgressCallback} itemProgressCallback
40
- * @returns {Promise<ICreateItemFromTemplateResponse>}
41
- */
42
- export declare function createItemFromTemplate(template: IItemTemplate, templateDictionary: any, destinationAuthentication: UserSession, itemProgressCallback: IItemProgressCallback): Promise<ICreateItemFromTemplateResponse>;
43
- /**
44
- * Deployer life-cycle hook allowing the Site Processor
45
- * a chance to apply final processes to all the items that
46
- * were created as part of the solution.
47
- * Specifically this will:
48
- * - share all items to the content team, and (if created)
49
- * the core team (depends on user privs)
50
- * - link all Page items that were created, to the Site
51
- *
52
- * @param model
53
- * @param items
54
- * @param authentication
55
- * @param templateDictionary
56
- */
57
- export declare function postProcess(id: string, type: string, itemInfos: any[], template: any, templates: IItemTemplate[], templateDictionary: any, authentication: UserSession): Promise<boolean>;
58
- /**
59
- * Check of an item type is a Site
60
- * Hub Site Application is for ArcGIS Online
61
- * Site Application is for ArcGIS Enterprise
62
- *
63
- * @param itemType
64
- */
65
- export declare function isASite(itemType: string): boolean;
@@ -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 };