@verdocs/js-sdk 3.0.21 → 3.0.24
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/Envelopes/Types.d.ts +2 -2
- package/Templates/Fields.js +4 -3
- package/package.json +2 -2
package/Envelopes/Types.d.ts
CHANGED
|
@@ -262,8 +262,8 @@ export interface IDocumentSearchOptions {
|
|
|
262
262
|
envelope_status?: TEnvelopeStatus[];
|
|
263
263
|
recipient_status?: TEnvelopeStatus[];
|
|
264
264
|
}
|
|
265
|
-
export type THistoryEvent = 'recipient:signed' | 'recipient:opened' | 'recipient:submitted' | 'recipient:prepared' | 'recipient:claimed' | 'recipient:agreed' | 'recipient:invited' | 'recipient:delegated' | 'recipient:updated_info' | 'recipient:declined' | 'invitation:resent' | 'envelope:cc' | '
|
|
266
|
-
export type TEventDetail = 'in_app' | 'mail' | 'signer' | '';
|
|
265
|
+
export type THistoryEvent = 'recipient:signed' | 'recipient:opened' | 'recipient:submitted' | 'recipient:prepared' | 'recipient:claimed' | 'recipient:agreed' | 'recipient:invited' | 'recipient:delegated' | 'recipient:updated_info' | 'recipient:declined' | 'invitation:resent' | 'envelope:cc' | 'created' | 'completed' | 'canceled' | 'owner:updated_recipient_info' | 'owner:canceled' | 'owner:get_in_person_link';
|
|
266
|
+
export type TEventDetail = 'in_app' | 'mail' | 'signer' | 'sms' | 'reminder' | 'preparer' | 'manual' | 'in_person_link' | 'guest' | 'email' | '' | string;
|
|
267
267
|
export interface ICreateEnvelopeRole {
|
|
268
268
|
/** The type of role to create. Most participants in standard flows will be "signer" recipients. */
|
|
269
269
|
type: TRecipientType;
|
package/Templates/Fields.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export var createField = function (endpoint, templateId, params) {
|
|
5
5
|
return endpoint.api //
|
|
6
|
-
.
|
|
6
|
+
// curl -X POST 'https://api.verdocs.com/templates/d2338742-f3a1-465b-8592-806587413cc1/fields' \
|
|
7
|
+
.post("/templates/".concat(templateId, "/fields"), params)
|
|
7
8
|
.then(function (r) { return r.data; });
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
@@ -11,7 +12,7 @@ export var createField = function (endpoint, templateId, params) {
|
|
|
11
12
|
*/
|
|
12
13
|
export var editField = function (endpoint, templateId, fieldName, params) {
|
|
13
14
|
return endpoint.api //
|
|
14
|
-
.put("/templates/".concat(templateId, "/
|
|
15
|
+
.put("/templates/".concat(templateId, "/fields/").concat(fieldName), params)
|
|
15
16
|
.then(function (r) { return r.data; });
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
@@ -19,6 +20,6 @@ export var editField = function (endpoint, templateId, fieldName, params) {
|
|
|
19
20
|
*/
|
|
20
21
|
export var deleteField = function (endpoint, templateId, fieldName) {
|
|
21
22
|
return endpoint.api //
|
|
22
|
-
.delete("/templates/".concat(templateId, "/
|
|
23
|
+
.delete("/templates/".concat(templateId, "/fields/").concat(fieldName))
|
|
23
24
|
.then(function (r) { return r.data; });
|
|
24
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdocs/js-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://github.com/Verdocs/js-sdk",
|
|
6
6
|
"description": "Verdocs JS SDK",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"axios": "^1.3.
|
|
49
|
+
"axios": "^1.3.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"typescript": "^4.7.3"
|