@esri/solution-web-experience 4.1.2 → 5.0.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.
- package/dist/cjs/helpers/convert-web-experience-to-template.d.ts +27 -27
- package/dist/cjs/helpers/convert-web-experience-to-template.js +66 -66
- package/dist/cjs/helpers/create-web-experience-model-from-template.d.ts +26 -26
- package/dist/cjs/helpers/create-web-experience-model-from-template.js +41 -41
- package/dist/cjs/helpers/create-web-experience.d.ts +25 -25
- package/dist/cjs/helpers/create-web-experience.js +121 -121
- package/dist/cjs/helpers/get-experience-subdomain.d.ts +23 -23
- package/dist/cjs/helpers/get-experience-subdomain.js +25 -25
- package/dist/cjs/helpers/get-web-experience-dependencies.d.ts +23 -23
- package/dist/cjs/helpers/get-web-experience-dependencies.js +32 -32
- package/dist/cjs/helpers/get-web-experience-url-template.d.ts +23 -23
- package/dist/cjs/helpers/get-web-experience-url-template.js +25 -25
- package/dist/cjs/index.d.ts +17 -17
- package/dist/cjs/index.js +21 -21
- package/dist/cjs/web-experience-processor.d.ts +51 -51
- package/dist/cjs/web-experience-processor.js +125 -125
- package/dist/esm/helpers/convert-web-experience-to-template.d.ts +27 -27
- package/dist/esm/helpers/convert-web-experience-to-template.js +62 -62
- package/dist/esm/helpers/create-web-experience-model-from-template.d.ts +26 -26
- package/dist/esm/helpers/create-web-experience-model-from-template.js +37 -37
- package/dist/esm/helpers/create-web-experience.d.ts +25 -25
- package/dist/esm/helpers/create-web-experience.js +117 -117
- package/dist/esm/helpers/get-experience-subdomain.d.ts +23 -23
- package/dist/esm/helpers/get-experience-subdomain.js +21 -21
- package/dist/esm/helpers/get-web-experience-dependencies.d.ts +23 -23
- package/dist/esm/helpers/get-web-experience-dependencies.js +28 -28
- package/dist/esm/helpers/get-web-experience-url-template.d.ts +23 -23
- package/dist/esm/helpers/get-web-experience-url-template.js +21 -21
- package/dist/esm/index.d.ts +17 -17
- package/dist/esm/index.js +17 -17
- package/dist/esm/web-experience-processor.d.ts +51 -51
- package/dist/esm/web-experience-processor.js +119 -119
- package/package.json +4 -4
|
@@ -1,23 +1,23 @@
|
|
|
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 { UserSession } from "@esri/solution-common";
|
|
17
|
-
/**
|
|
18
|
-
* Returns the subdomain for an experience based on the api the session is
|
|
19
|
-
* authenticated against
|
|
20
|
-
*
|
|
21
|
-
* @param authentication UserSession
|
|
22
|
-
*/
|
|
23
|
-
export declare function getExperienceSubdomain(authentication: UserSession): string;
|
|
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 { UserSession } from "@esri/solution-common";
|
|
17
|
+
/**
|
|
18
|
+
* Returns the subdomain for an experience based on the api the session is
|
|
19
|
+
* authenticated against
|
|
20
|
+
*
|
|
21
|
+
* @param authentication UserSession
|
|
22
|
+
*/
|
|
23
|
+
export declare function getExperienceSubdomain(authentication: UserSession): string;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExperienceSubdomain = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Returns the subdomain for an experience based on the api the session is
|
|
6
|
-
* authenticated against
|
|
7
|
-
*
|
|
8
|
-
* @param authentication UserSession
|
|
9
|
-
*/
|
|
10
|
-
function getExperienceSubdomain(authentication) {
|
|
11
|
-
const portalUrl = authentication.portal || "https://www.arcgis.com/sharing/rest";
|
|
12
|
-
// TODO: Sort out how we locate experiences on portal?
|
|
13
|
-
let result;
|
|
14
|
-
if (portalUrl.match(/(qaext|\.mapsqa)\.arcgis.com/)) {
|
|
15
|
-
result = "experienceqa";
|
|
16
|
-
}
|
|
17
|
-
else if (portalUrl.match(/(devext|\.mapsdevext)\.arcgis.com/)) {
|
|
18
|
-
result = "experiencedev";
|
|
19
|
-
}
|
|
20
|
-
else if (portalUrl.match(/(www|\.maps)\.arcgis.com/)) {
|
|
21
|
-
result = "experience";
|
|
22
|
-
}
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
exports.getExperienceSubdomain = getExperienceSubdomain;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExperienceSubdomain = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Returns the subdomain for an experience based on the api the session is
|
|
6
|
+
* authenticated against
|
|
7
|
+
*
|
|
8
|
+
* @param authentication UserSession
|
|
9
|
+
*/
|
|
10
|
+
function getExperienceSubdomain(authentication) {
|
|
11
|
+
const portalUrl = authentication.portal || "https://www.arcgis.com/sharing/rest";
|
|
12
|
+
// TODO: Sort out how we locate experiences on portal?
|
|
13
|
+
let result;
|
|
14
|
+
if (portalUrl.match(/(qaext|\.mapsqa)\.arcgis.com/)) {
|
|
15
|
+
result = "experienceqa";
|
|
16
|
+
}
|
|
17
|
+
else if (portalUrl.match(/(devext|\.mapsdevext)\.arcgis.com/)) {
|
|
18
|
+
result = "experiencedev";
|
|
19
|
+
}
|
|
20
|
+
else if (portalUrl.match(/(www|\.maps)\.arcgis.com/)) {
|
|
21
|
+
result = "experience";
|
|
22
|
+
}
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
exports.getExperienceSubdomain = getExperienceSubdomain;
|
|
26
26
|
//# sourceMappingURL=get-experience-subdomain.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
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 } from "@esri/hub-common";
|
|
17
|
-
/**
|
|
18
|
-
* Given an Web Experience model, extract out all the
|
|
19
|
-
* items it depends on from the `dataSources` hash
|
|
20
|
-
*
|
|
21
|
-
* @param model IModel
|
|
22
|
-
*/
|
|
23
|
-
export declare function getWebExperienceDependencies(model: IModel): any[];
|
|
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 } from "@esri/hub-common";
|
|
17
|
+
/**
|
|
18
|
+
* Given an Web Experience model, extract out all the
|
|
19
|
+
* items it depends on from the `dataSources` hash
|
|
20
|
+
*
|
|
21
|
+
* @param model IModel
|
|
22
|
+
*/
|
|
23
|
+
export declare function getWebExperienceDependencies(model: IModel): any[];
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** @license
|
|
3
|
-
* Copyright 2020 Esri
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.getWebExperienceDependencies = void 0;
|
|
19
|
-
const hub_common_1 = require("@esri/hub-common");
|
|
20
|
-
/**
|
|
21
|
-
* Given an Web Experience model, extract out all the
|
|
22
|
-
* items it depends on from the `dataSources` hash
|
|
23
|
-
*
|
|
24
|
-
* @param model IModel
|
|
25
|
-
*/
|
|
26
|
-
function getWebExperienceDependencies(model) {
|
|
27
|
-
const dataSources = (0, hub_common_1.getProp)(model, "data.dataSources") || {};
|
|
28
|
-
return Object.keys(dataSources).reduce((acc, key) => {
|
|
29
|
-
return (0, hub_common_1.maybePush)((0, hub_common_1.getProp)(dataSources, `${key}.itemId`), acc);
|
|
30
|
-
}, []);
|
|
31
|
-
}
|
|
32
|
-
exports.getWebExperienceDependencies = getWebExperienceDependencies;
|
|
1
|
+
"use strict";
|
|
2
|
+
/** @license
|
|
3
|
+
* Copyright 2020 Esri
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.getWebExperienceDependencies = void 0;
|
|
19
|
+
const hub_common_1 = require("@esri/hub-common");
|
|
20
|
+
/**
|
|
21
|
+
* Given an Web Experience model, extract out all the
|
|
22
|
+
* items it depends on from the `dataSources` hash
|
|
23
|
+
*
|
|
24
|
+
* @param model IModel
|
|
25
|
+
*/
|
|
26
|
+
function getWebExperienceDependencies(model) {
|
|
27
|
+
const dataSources = (0, hub_common_1.getProp)(model, "data.dataSources") || {};
|
|
28
|
+
return Object.keys(dataSources).reduce((acc, key) => {
|
|
29
|
+
return (0, hub_common_1.maybePush)((0, hub_common_1.getProp)(dataSources, `${key}.itemId`), acc);
|
|
30
|
+
}, []);
|
|
31
|
+
}
|
|
32
|
+
exports.getWebExperienceDependencies = getWebExperienceDependencies;
|
|
33
33
|
//# sourceMappingURL=get-web-experience-dependencies.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
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 { UserSession } from "@esri/solution-common";
|
|
17
|
-
/**
|
|
18
|
-
* For a given environment Prod/qa/dev/portal
|
|
19
|
-
* return the correct storymaps base url
|
|
20
|
-
*
|
|
21
|
-
* @param authentication
|
|
22
|
-
*/
|
|
23
|
-
export declare function getWebExperiencepUrlTemplate(authentication: UserSession): string;
|
|
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 { UserSession } from "@esri/solution-common";
|
|
17
|
+
/**
|
|
18
|
+
* For a given environment Prod/qa/dev/portal
|
|
19
|
+
* return the correct storymaps base url
|
|
20
|
+
*
|
|
21
|
+
* @param authentication
|
|
22
|
+
*/
|
|
23
|
+
export declare function getWebExperiencepUrlTemplate(authentication: UserSession): string;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getWebExperiencepUrlTemplate = void 0;
|
|
4
|
-
const get_experience_subdomain_1 = require("./get-experience-subdomain");
|
|
5
|
-
/**
|
|
6
|
-
* For a given environment Prod/qa/dev/portal
|
|
7
|
-
* return the correct storymaps base url
|
|
8
|
-
*
|
|
9
|
-
* @param authentication
|
|
10
|
-
*/
|
|
11
|
-
function getWebExperiencepUrlTemplate(authentication) {
|
|
12
|
-
let baseUrl = "";
|
|
13
|
-
const subdomain = (0, get_experience_subdomain_1.getExperienceSubdomain)(authentication);
|
|
14
|
-
if (subdomain) {
|
|
15
|
-
baseUrl = `https://${subdomain}.arcgis.com/experience/{{appid}}`;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
// we're on portal
|
|
19
|
-
// chop off the /sharing/rest to get the baseUrl
|
|
20
|
-
const portalBaseUrl = authentication.portal.replace("/sharing/rest", "");
|
|
21
|
-
baseUrl = `${portalBaseUrl}/apps/experiencebuilder/?id={{appid}}`;
|
|
22
|
-
}
|
|
23
|
-
return baseUrl;
|
|
24
|
-
}
|
|
25
|
-
exports.getWebExperiencepUrlTemplate = getWebExperiencepUrlTemplate;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWebExperiencepUrlTemplate = void 0;
|
|
4
|
+
const get_experience_subdomain_1 = require("./get-experience-subdomain");
|
|
5
|
+
/**
|
|
6
|
+
* For a given environment Prod/qa/dev/portal
|
|
7
|
+
* return the correct storymaps base url
|
|
8
|
+
*
|
|
9
|
+
* @param authentication
|
|
10
|
+
*/
|
|
11
|
+
function getWebExperiencepUrlTemplate(authentication) {
|
|
12
|
+
let baseUrl = "";
|
|
13
|
+
const subdomain = (0, get_experience_subdomain_1.getExperienceSubdomain)(authentication);
|
|
14
|
+
if (subdomain) {
|
|
15
|
+
baseUrl = `https://${subdomain}.arcgis.com/experience/{{appid}}`;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
// we're on portal
|
|
19
|
+
// chop off the /sharing/rest to get the baseUrl
|
|
20
|
+
const portalBaseUrl = authentication.portal.replace("/sharing/rest", "");
|
|
21
|
+
baseUrl = `${portalBaseUrl}/apps/experiencebuilder/?id={{appid}}`;
|
|
22
|
+
}
|
|
23
|
+
return baseUrl;
|
|
24
|
+
}
|
|
25
|
+
exports.getWebExperiencepUrlTemplate = getWebExperiencepUrlTemplate;
|
|
26
26
|
//# sourceMappingURL=get-web-experience-url-template.js.map
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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 * as WebExperienceProcessor from "./web-experience-processor";
|
|
17
|
-
export { WebExperienceProcessor };
|
|
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 * as WebExperienceProcessor from "./web-experience-processor";
|
|
17
|
+
export { WebExperienceProcessor };
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** @license
|
|
3
|
-
* Copyright 2018 Esri
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.WebExperienceProcessor = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const WebExperienceProcessor = tslib_1.__importStar(require("./web-experience-processor"));
|
|
21
|
-
exports.WebExperienceProcessor = WebExperienceProcessor;
|
|
1
|
+
"use strict";
|
|
2
|
+
/** @license
|
|
3
|
+
* Copyright 2018 Esri
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.WebExperienceProcessor = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const WebExperienceProcessor = tslib_1.__importStar(require("./web-experience-processor"));
|
|
21
|
+
exports.WebExperienceProcessor = WebExperienceProcessor;
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,51 +1,51 @@
|
|
|
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 web-experience item types.
|
|
18
|
-
*
|
|
19
|
-
* @module solution-web-experience
|
|
20
|
-
*/
|
|
21
|
-
import { UserSession, IItemProgressCallback, IItemTemplate, ICreateItemFromTemplateResponse, IUpdateItemResponse } from "@esri/solution-common";
|
|
22
|
-
/**
|
|
23
|
-
* Convert a Web Experience item into a Template
|
|
24
|
-
*
|
|
25
|
-
* @param solutionItemId
|
|
26
|
-
* @param itemInfo
|
|
27
|
-
* @param destAuthentication Credentials for requests to the destination organization
|
|
28
|
-
* @param srcAuthentication Credentials for requests to source items
|
|
29
|
-
* @param isGroup
|
|
30
|
-
*/
|
|
31
|
-
export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: UserSession, srcAuthentication: UserSession): Promise<IItemTemplate>;
|
|
32
|
-
/**
|
|
33
|
-
* Create a Web Experience from a Template
|
|
34
|
-
*
|
|
35
|
-
* @param template
|
|
36
|
-
* @param templateDictionary
|
|
37
|
-
* @param destinationAuthentication
|
|
38
|
-
* @param itemProgressCallback
|
|
39
|
-
*/
|
|
40
|
-
export declare function createItemFromTemplate(template: IItemTemplate, templateDictionary: any, destinationAuthentication: UserSession, itemProgressCallback: IItemProgressCallback): Promise<ICreateItemFromTemplateResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Post-Process an Experience
|
|
43
|
-
*
|
|
44
|
-
* @param {string} itemId The item ID
|
|
45
|
-
* @param {string} type The template type
|
|
46
|
-
* @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
|
|
47
|
-
* @param {any} templateDictionary The template dictionary
|
|
48
|
-
* @param {UserSession} authentication The destination session info
|
|
49
|
-
* @returns Promise resolving to successfulness of update
|
|
50
|
-
*/
|
|
51
|
-
export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: IItemTemplate, templates: IItemTemplate[], templateDictionary: any, authentication: UserSession): Promise<IUpdateItemResponse>;
|
|
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 web-experience item types.
|
|
18
|
+
*
|
|
19
|
+
* @module solution-web-experience
|
|
20
|
+
*/
|
|
21
|
+
import { UserSession, IItemProgressCallback, IItemTemplate, ICreateItemFromTemplateResponse, IUpdateItemResponse } from "@esri/solution-common";
|
|
22
|
+
/**
|
|
23
|
+
* Convert a Web Experience item into a Template
|
|
24
|
+
*
|
|
25
|
+
* @param solutionItemId
|
|
26
|
+
* @param itemInfo
|
|
27
|
+
* @param destAuthentication Credentials for requests to the destination organization
|
|
28
|
+
* @param srcAuthentication Credentials for requests to source items
|
|
29
|
+
* @param isGroup
|
|
30
|
+
*/
|
|
31
|
+
export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: UserSession, srcAuthentication: UserSession): Promise<IItemTemplate>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a Web Experience from a Template
|
|
34
|
+
*
|
|
35
|
+
* @param template
|
|
36
|
+
* @param templateDictionary
|
|
37
|
+
* @param destinationAuthentication
|
|
38
|
+
* @param itemProgressCallback
|
|
39
|
+
*/
|
|
40
|
+
export declare function createItemFromTemplate(template: IItemTemplate, templateDictionary: any, destinationAuthentication: UserSession, itemProgressCallback: IItemProgressCallback): Promise<ICreateItemFromTemplateResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Post-Process an Experience
|
|
43
|
+
*
|
|
44
|
+
* @param {string} itemId The item ID
|
|
45
|
+
* @param {string} type The template type
|
|
46
|
+
* @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
|
|
47
|
+
* @param {any} templateDictionary The template dictionary
|
|
48
|
+
* @param {UserSession} authentication The destination session info
|
|
49
|
+
* @returns Promise resolving to successfulness of update
|
|
50
|
+
*/
|
|
51
|
+
export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: IItemTemplate, templates: IItemTemplate[], templateDictionary: any, authentication: UserSession): Promise<IUpdateItemResponse>;
|