@esri/solution-form 5.2.1 → 5.2.2
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/README.md +4 -7
- package/dist/cjs/convert-item-to-template.d.ts +1 -2
- package/dist/cjs/convert-item-to-template.js +2 -3
- package/dist/cjs/convert-item-to-template.js.map +1 -1
- package/dist/esm/convert-item-to-template.d.ts +1 -2
- package/dist/esm/convert-item-to-template.js +2 -3
- package/dist/esm/convert-item-to-template.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
[![npm status][npm-img]][npm-url]
|
|
2
2
|
[![Build status][travis-img]][travis-url]
|
|
3
3
|
[![gzip bundle size][gzip-img]][npm-url]
|
|
4
|
-
[![Coverage status][coverage-img]][coverage-url]
|
|
5
4
|
[![Apache 2.0 licensed][license-img]][license-url]
|
|
6
5
|
|
|
7
6
|
[npm-img]: https://img.shields.io/npm/v/@esri/solution-form.svg?style=round-square&color=blue
|
|
8
7
|
[npm-url]: https://www.npmjs.com/package/@esri/solution-form
|
|
9
|
-
[travis-img]: https://img.shields.io/travis/Esri/solution.js/develop.svg
|
|
8
|
+
[travis-img]: https://img.shields.io/travis/com/Esri/solution.js/develop.svg
|
|
10
9
|
[travis-url]: https://travis-ci.org/Esri/solution.js
|
|
11
|
-
[gzip-img]: https://img.badgesize.io/https://unpkg.com/@esri/solution-form/dist/
|
|
12
|
-
[coverage-img]: https://coveralls.io/repos/github/Esri/solution.js/badge.svg
|
|
13
|
-
[coverage-url]: https://coveralls.io/github/Esri/solution.js
|
|
10
|
+
[gzip-img]: https://img.badgesize.io/https://unpkg.com/@esri/solution-form/dist/esm/index.js?compression=gzip
|
|
14
11
|
[license-img]: https://img.shields.io/badge/license-Apache%202.0-blue.svg
|
|
15
12
|
[license-url]: #license
|
|
16
13
|
|
|
@@ -18,7 +15,7 @@
|
|
|
18
15
|
|
|
19
16
|
> Manages the creation and deployment of form item types for [`@esri/solution-*`](https://github.com/Esri/solution.js).
|
|
20
17
|
|
|
21
|
-
### [API Reference](https://esri.github.io/solution.js/
|
|
18
|
+
### [API Reference](https://esri.github.io/solution.js/modules/form_src.html)
|
|
22
19
|
|
|
23
20
|
### Issues
|
|
24
21
|
|
|
@@ -36,7 +33,7 @@ Esri welcomes contributions from anyone and everyone. Please see our [guidelines
|
|
|
36
33
|
|
|
37
34
|
### License
|
|
38
35
|
|
|
39
|
-
Copyright © 2018
|
|
36
|
+
Copyright © 2018 Esri
|
|
40
37
|
|
|
41
38
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
39
|
you may not use this file except in compliance with the License.
|
|
@@ -22,11 +22,10 @@ import { UserSession, IItemTemplate } from "@esri/solution-common";
|
|
|
22
22
|
/**
|
|
23
23
|
* Creates a template from a Form item
|
|
24
24
|
*
|
|
25
|
-
* @param {string} solutionItemId The solution item ID
|
|
26
25
|
* @param {any} itemInfo: The base item info
|
|
27
26
|
* @param {UserSession} destAuthentication Credentials for requests to the destination organization
|
|
28
27
|
* @param {UserSession} srcAuthentication Credentials for requests to source items
|
|
29
28
|
* @param {any} templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
30
29
|
* @returns {Promise<IItemTemplate>}
|
|
31
30
|
*/
|
|
32
|
-
export declare function convertItemToTemplate(
|
|
31
|
+
export declare function convertItemToTemplate(itemInfo: any, destAuthentication: UserSession, srcAuthentication: UserSession, templateDictionary: any): Promise<IItemTemplate>;
|
|
@@ -20,16 +20,15 @@ const solution_simple_types_1 = require("@esri/solution-simple-types");
|
|
|
20
20
|
/**
|
|
21
21
|
* Creates a template from a Form item
|
|
22
22
|
*
|
|
23
|
-
* @param {string} solutionItemId The solution item ID
|
|
24
23
|
* @param {any} itemInfo: The base item info
|
|
25
24
|
* @param {UserSession} destAuthentication Credentials for requests to the destination organization
|
|
26
25
|
* @param {UserSession} srcAuthentication Credentials for requests to source items
|
|
27
26
|
* @param {any} templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
28
27
|
* @returns {Promise<IItemTemplate>}
|
|
29
28
|
*/
|
|
30
|
-
function convertItemToTemplate(
|
|
29
|
+
function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
31
30
|
// Delegate to simple types
|
|
32
|
-
return solution_simple_types_1.simpleTypes.convertItemToTemplate(
|
|
31
|
+
return solution_simple_types_1.simpleTypes.convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication, templateDictionary);
|
|
33
32
|
}
|
|
34
33
|
exports.convertItemToTemplate = convertItemToTemplate;
|
|
35
34
|
//# sourceMappingURL=convert-item-to-template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-item-to-template.js","sourceRoot":"","sources":["../../src/convert-item-to-template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AASH,uEAA0D;AAE1D
|
|
1
|
+
{"version":3,"file":"convert-item-to-template.js","sourceRoot":"","sources":["../../src/convert-item-to-template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AASH,uEAA0D;AAE1D;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,QAAa,EACb,kBAA+B,EAC/B,iBAA8B,EAC9B,kBAAuB;IAEvB,2BAA2B;IAC3B,OAAO,mCAAW,CAAC,qBAAqB,CACtC,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;AACJ,CAAC;AAbD,sDAaC"}
|
|
@@ -22,11 +22,10 @@ import { UserSession, IItemTemplate } from "@esri/solution-common";
|
|
|
22
22
|
/**
|
|
23
23
|
* Creates a template from a Form item
|
|
24
24
|
*
|
|
25
|
-
* @param {string} solutionItemId The solution item ID
|
|
26
25
|
* @param {any} itemInfo: The base item info
|
|
27
26
|
* @param {UserSession} destAuthentication Credentials for requests to the destination organization
|
|
28
27
|
* @param {UserSession} srcAuthentication Credentials for requests to source items
|
|
29
28
|
* @param {any} templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
30
29
|
* @returns {Promise<IItemTemplate>}
|
|
31
30
|
*/
|
|
32
|
-
export declare function convertItemToTemplate(
|
|
31
|
+
export declare function convertItemToTemplate(itemInfo: any, destAuthentication: UserSession, srcAuthentication: UserSession, templateDictionary: any): Promise<IItemTemplate>;
|
|
@@ -17,15 +17,14 @@ import { simpleTypes } from "@esri/solution-simple-types";
|
|
|
17
17
|
/**
|
|
18
18
|
* Creates a template from a Form item
|
|
19
19
|
*
|
|
20
|
-
* @param {string} solutionItemId The solution item ID
|
|
21
20
|
* @param {any} itemInfo: The base item info
|
|
22
21
|
* @param {UserSession} destAuthentication Credentials for requests to the destination organization
|
|
23
22
|
* @param {UserSession} srcAuthentication Credentials for requests to source items
|
|
24
23
|
* @param {any} templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
25
24
|
* @returns {Promise<IItemTemplate>}
|
|
26
25
|
*/
|
|
27
|
-
export function convertItemToTemplate(
|
|
26
|
+
export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
28
27
|
// Delegate to simple types
|
|
29
|
-
return simpleTypes.convertItemToTemplate(
|
|
28
|
+
return simpleTypes.convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication, templateDictionary);
|
|
30
29
|
}
|
|
31
30
|
//# sourceMappingURL=convert-item-to-template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-item-to-template.js","sourceRoot":"","sources":["../../src/convert-item-to-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D
|
|
1
|
+
{"version":3,"file":"convert-item-to-template.js","sourceRoot":"","sources":["../../src/convert-item-to-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CACnC,QAAa,EACb,kBAA+B,EAC/B,iBAA8B,EAC9B,kBAAuB;IAEvB,2BAA2B;IAC3B,OAAO,WAAW,CAAC,qBAAqB,CACtC,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-form",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "Manages the creation and deployment of form item types for @esri/solution.js.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"@esri/arcgis-rest-portal": "^3.7.0",
|
|
24
24
|
"@esri/arcgis-rest-request": "^3.7.0",
|
|
25
25
|
"@esri/arcgis-rest-service-admin": "^3.7.0",
|
|
26
|
-
"@esri/hub-common": "^14.
|
|
26
|
+
"@esri/hub-common": "^14.84.0",
|
|
27
27
|
"@esri/hub-initiatives": "^14.0.0",
|
|
28
28
|
"@esri/hub-sites": "^14.2.2",
|
|
29
29
|
"@esri/hub-teams": "^14.1.0",
|
|
30
|
-
"@esri/solution-common": "^5.2.
|
|
31
|
-
"@esri/solution-feature-layer": "^5.2.
|
|
32
|
-
"@esri/solution-file": "^5.2.
|
|
33
|
-
"@esri/solution-group": "^5.2.
|
|
34
|
-
"@esri/solution-simple-types": "^5.2.
|
|
35
|
-
"@esri/solution-storymap": "^5.2.
|
|
30
|
+
"@esri/solution-common": "^5.2.2",
|
|
31
|
+
"@esri/solution-feature-layer": "^5.2.2",
|
|
32
|
+
"@esri/solution-file": "^5.2.2",
|
|
33
|
+
"@esri/solution-group": "^5.2.2",
|
|
34
|
+
"@esri/solution-simple-types": "^5.2.2",
|
|
35
|
+
"@esri/solution-storymap": "^5.2.2",
|
|
36
36
|
"@types/jasmine": "^5.1.4",
|
|
37
37
|
"fetch-mock": "^7.7.3",
|
|
38
38
|
"jasmine": "^5.1.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"esri",
|
|
79
79
|
"ES6"
|
|
80
80
|
],
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "d92c1d8e3e6df12fda59df3ecc395d7570fa60dd"
|
|
82
82
|
}
|