@verdocs/js-sdk 3.0.30 → 3.0.32
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/Templates/Fields.d.ts +1 -1
- package/Templates/Fields.js +1 -1
- package/Templates/Types.d.ts +2 -2
- package/package.json +2 -2
package/Templates/Fields.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const createField: (endpoint: VerdocsEndpoint, templateId: string
|
|
|
7
7
|
/**
|
|
8
8
|
* Update a template field.
|
|
9
9
|
*/
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const updateField: (endpoint: VerdocsEndpoint, templateId: string, fieldName: string, params: Partial<ITemplateField>) => Promise<ITemplateField>;
|
|
11
11
|
/**
|
|
12
12
|
* REmove a field from a template.
|
|
13
13
|
*/
|
package/Templates/Fields.js
CHANGED
|
@@ -9,7 +9,7 @@ export var createField = function (endpoint, templateId, params) {
|
|
|
9
9
|
/**
|
|
10
10
|
* Update a template field.
|
|
11
11
|
*/
|
|
12
|
-
export var
|
|
12
|
+
export var updateField = function (endpoint, templateId, fieldName, params) {
|
|
13
13
|
return endpoint.api //
|
|
14
14
|
.put("/templates/".concat(templateId, "/fields/").concat(fieldName), params)
|
|
15
15
|
.then(function (r) { return r.data; });
|
package/Templates/Types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IOrganization } from '../Organizations/Types';
|
|
2
|
-
import { TRecipientType } from '../Envelopes/Types';
|
|
2
|
+
import { TDocumentFieldType, TRecipientType } from '../Envelopes/Types';
|
|
3
3
|
/**
|
|
4
4
|
* A reusable template for creating signable instruments. Templates are used to create Envelopes which contain
|
|
5
5
|
* Documents to sign.
|
|
@@ -251,7 +251,7 @@ export interface ITemplateField {
|
|
|
251
251
|
name: string;
|
|
252
252
|
role_name: string;
|
|
253
253
|
template_id: string;
|
|
254
|
-
type:
|
|
254
|
+
type: TDocumentFieldType;
|
|
255
255
|
required: boolean;
|
|
256
256
|
setting: ITemplateFieldSetting;
|
|
257
257
|
page_sequence: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdocs/js-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://github.com/Verdocs/js-sdk",
|
|
6
6
|
"description": "Verdocs JS SDK",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"docs": "npm run docs-md && npm run docs-html",
|
|
40
40
|
"clear-docs": "aws --profile=verdocs cloudfront create-invalidation --distribution-id E29UFGU4KEH1GQ --paths \"/*\"",
|
|
41
41
|
"deploy-docs": "npm run docs && aws --profile=verdocs s3 sync --acl public-read --delete docs-html s3://verdocs-developers-js-sdk/ && yarn clear-docs",
|
|
42
|
-
"clean": "rm -rf
|
|
42
|
+
"clean": "rm -rf Envelopes Session HTTP Organizations Search Templates Users Utils index.js index.d.ts VerdocsEndpoint.* docs docs-html",
|
|
43
43
|
"push": "npm run build && npm publish"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|