@esri/solution-viewer 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.
@@ -1,21 +1,21 @@
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
- * Provides the access to the solution's contents.
18
- *
19
- * @module viewer
20
- */
21
- export * from "./viewer";
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
+ * Provides the access to the solution's contents.
18
+ *
19
+ * @module viewer
20
+ */
21
+ export * from "./viewer";
package/dist/cjs/index.js CHANGED
@@ -1,25 +1,25 @@
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
- const tslib_1 = require("tslib");
19
- /**
20
- * Provides the access to the solution's contents.
21
- *
22
- * @module viewer
23
- */
24
- tslib_1.__exportStar(require("./viewer"), exports);
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
+ const tslib_1 = require("tslib");
19
+ /**
20
+ * Provides the access to the solution's contents.
21
+ *
22
+ * @module viewer
23
+ */
24
+ tslib_1.__exportStar(require("./viewer"), exports);
25
25
  //# sourceMappingURL=index.js.map
@@ -1,54 +1,54 @@
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
- * Provides the access to the solution's contents.
18
- *
19
- * @module viewer
20
- */
21
- import * as common from "@esri/solution-common";
22
- /**
23
- * Checks a Solution.
24
- *
25
- * @param item Solution id
26
- * @param authentication Credentials for the request to AGO
27
- * @returns List of results of checks of Solution
28
- */
29
- export declare function checkSolution(itemId: string, authentication?: common.UserSession): Promise<string[]>;
30
- /**
31
- * Compares two AGO items, fetching them if only their id is supplied.
32
- *
33
- * @param item1 First item or its AGO id
34
- * @param item2 Second item or its AGO id
35
- * @param authentication Credentials for the request to AGO
36
- * @returns True if objects are the same
37
- * @see Only comparable properties are compared; see deleteItemProps() in the `common` package
38
- */
39
- export declare function compareItems(item1: string | any, item2: string | any, authentication?: common.UserSession): Promise<boolean>;
40
- /**
41
- * Creates a hierarchy of the items in a Solution template.
42
- *
43
- * @param templates Array of templates from a Solution
44
- * @returns List of top-level items, each containing a recursive list of its dependencies
45
- */
46
- export declare function getItemHierarchy(templates: common.IItemTemplate[]): common.IHierarchyElement[];
47
- /**
48
- * Finds the top-level items in a Solution template--the items that are not dependencies of any other item.
49
- *
50
- * @param templates Array of templates from a Solution
51
- * @returns List of top-level item ids
52
- * @private
53
- */
54
- export declare function _getTopLevelItemIds(templates: common.IItemTemplate[]): string[];
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
+ * Provides the access to the solution's contents.
18
+ *
19
+ * @module viewer
20
+ */
21
+ import * as common from "@esri/solution-common";
22
+ /**
23
+ * Checks a Solution.
24
+ *
25
+ * @param item Solution id
26
+ * @param authentication Credentials for the request to AGO
27
+ * @returns List of results of checks of Solution
28
+ */
29
+ export declare function checkSolution(itemId: string, authentication?: common.UserSession): Promise<string[]>;
30
+ /**
31
+ * Compares two AGO items, fetching them if only their id is supplied.
32
+ *
33
+ * @param item1 First item or its AGO id
34
+ * @param item2 Second item or its AGO id
35
+ * @param authentication Credentials for the request to AGO
36
+ * @returns True if objects are the same
37
+ * @see Only comparable properties are compared; see deleteItemProps() in the `common` package
38
+ */
39
+ export declare function compareItems(item1: string | any, item2: string | any, authentication?: common.UserSession): Promise<boolean>;
40
+ /**
41
+ * Creates a hierarchy of the items in a Solution template.
42
+ *
43
+ * @param templates Array of templates from a Solution
44
+ * @returns List of top-level items, each containing a recursive list of its dependencies
45
+ */
46
+ export declare function getItemHierarchy(templates: common.IItemTemplate[]): common.IHierarchyElement[];
47
+ /**
48
+ * Finds the top-level items in a Solution template--the items that are not dependencies of any other item.
49
+ *
50
+ * @param templates Array of templates from a Solution
51
+ * @returns List of top-level item ids
52
+ * @private
53
+ */
54
+ export declare function _getTopLevelItemIds(templates: common.IItemTemplate[]): string[];