@managespace/sdk 0.0.150 → 0.0.152
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/generated/models/create-document.d.ts +1 -1
- package/dist/generated/models/create-document.d.ts.map +1 -1
- package/dist/generated/models/create-document.js +1 -3
- package/dist/generated/models/document-signed.d.ts +6 -0
- package/dist/generated/models/document-signed.d.ts.map +1 -1
- package/dist/generated/models/document-signed.js +2 -0
- package/dist/generated/models/upload-document.d.ts +6 -0
- package/dist/generated/models/upload-document.d.ts.map +1 -1
- package/dist/generated/models/upload-document.js +4 -0
- package/package.json +1 -1
- package/src/generated/models/create-document.ts +2 -3
- package/src/generated/models/document-signed.ts +8 -0
- package/src/generated/models/upload-document.ts +9 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAWnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYlH"}
|
|
@@ -22,8 +22,6 @@ const document_field_1 = require("./document-field");
|
|
|
22
22
|
function instanceOfCreateDocument(value) {
|
|
23
23
|
if (!('templateId' in value) || value['templateId'] === undefined)
|
|
24
24
|
return false;
|
|
25
|
-
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
return true;
|
|
28
26
|
}
|
|
29
27
|
exports.instanceOfCreateDocument = instanceOfCreateDocument;
|
|
@@ -39,7 +37,7 @@ function CreateDocumentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
'templateId': json['templateId'],
|
|
40
38
|
'signers': json['signers'] == null ? undefined : (json['signers'].map(document_signer_1.DocumentSignerFromJSON)),
|
|
41
39
|
'fields': json['fields'] == null ? undefined : (json['fields'].map(document_field_1.DocumentFieldFromJSON)),
|
|
42
|
-
'metadata': json['metadata'],
|
|
40
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
43
41
|
};
|
|
44
42
|
}
|
|
45
43
|
exports.CreateDocumentFromJSONTyped = CreateDocumentFromJSONTyped;
|
|
@@ -27,6 +27,12 @@ export interface DocumentSigned {
|
|
|
27
27
|
* @memberof DocumentSigned
|
|
28
28
|
*/
|
|
29
29
|
workflowStepId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the customer who signed the document.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DocumentSigned
|
|
34
|
+
*/
|
|
35
|
+
customerId?: string;
|
|
30
36
|
/**
|
|
31
37
|
* Whether all signatures have been gathered or not.
|
|
32
38
|
* @type {boolean}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-signed.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document-signed.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"document-signed.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document-signed.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAYnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalH"}
|
|
@@ -36,6 +36,7 @@ function DocumentSignedFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'workflowId': json['workflowId'] == null ? undefined : json['workflowId'],
|
|
38
38
|
'workflowStepId': json['workflowStepId'] == null ? undefined : json['workflowStepId'],
|
|
39
|
+
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
39
40
|
'allSignaturesGathered': json['allSignaturesGathered'],
|
|
40
41
|
'file': json['file'],
|
|
41
42
|
};
|
|
@@ -52,6 +53,7 @@ function DocumentSignedToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
53
|
return {
|
|
53
54
|
'workflowId': value['workflowId'],
|
|
54
55
|
'workflowStepId': value['workflowStepId'],
|
|
56
|
+
'customerId': value['customerId'],
|
|
55
57
|
'allSignaturesGathered': value['allSignaturesGathered'],
|
|
56
58
|
'file': value['file'],
|
|
57
59
|
};
|
|
@@ -33,6 +33,12 @@ export interface UploadDocument {
|
|
|
33
33
|
* @memberof UploadDocument
|
|
34
34
|
*/
|
|
35
35
|
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Metadata for the document
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof UploadDocument
|
|
40
|
+
*/
|
|
41
|
+
metadata: object;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the UploadDocument interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/upload-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"upload-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/upload-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAWnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYlH"}
|
|
@@ -20,6 +20,8 @@ exports.UploadDocumentToJSONTyped = exports.UploadDocumentToJSON = exports.Uploa
|
|
|
20
20
|
function instanceOfUploadDocument(value) {
|
|
21
21
|
if (!('file' in value) || value['file'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
24
|
+
return false;
|
|
23
25
|
return true;
|
|
24
26
|
}
|
|
25
27
|
exports.instanceOfUploadDocument = instanceOfUploadDocument;
|
|
@@ -35,6 +37,7 @@ function UploadDocumentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
'file': json['file'],
|
|
36
38
|
'siteId': json['siteId'] == null ? undefined : json['siteId'],
|
|
37
39
|
'name': json['name'] == null ? undefined : json['name'],
|
|
40
|
+
'metadata': json['metadata'],
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
exports.UploadDocumentFromJSONTyped = UploadDocumentFromJSONTyped;
|
|
@@ -50,6 +53,7 @@ function UploadDocumentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
53
|
'file': value['file'],
|
|
51
54
|
'siteId': value['siteId'],
|
|
52
55
|
'name': value['name'],
|
|
56
|
+
'metadata': value['metadata'],
|
|
53
57
|
};
|
|
54
58
|
}
|
|
55
59
|
exports.UploadDocumentToJSONTyped = UploadDocumentToJSONTyped;
|
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ export interface CreateDocument {
|
|
|
57
57
|
* @type {object}
|
|
58
58
|
* @memberof CreateDocument
|
|
59
59
|
*/
|
|
60
|
-
metadata
|
|
60
|
+
metadata?: object;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/**
|
|
@@ -65,7 +65,6 @@ export interface CreateDocument {
|
|
|
65
65
|
*/
|
|
66
66
|
export function instanceOfCreateDocument(value: object): value is CreateDocument {
|
|
67
67
|
if (!('templateId' in value) || value['templateId'] === undefined) return false;
|
|
68
|
-
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
69
68
|
return true;
|
|
70
69
|
}
|
|
71
70
|
|
|
@@ -82,7 +81,7 @@ export function CreateDocumentFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
82
81
|
'templateId': json['templateId'],
|
|
83
82
|
'signers': json['signers'] == null ? undefined : ((json['signers'] as Array<any>).map(DocumentSignerFromJSON)),
|
|
84
83
|
'fields': json['fields'] == null ? undefined : ((json['fields'] as Array<any>).map(DocumentFieldFromJSON)),
|
|
85
|
-
'metadata': json['metadata'],
|
|
84
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
87
|
|
|
@@ -31,6 +31,12 @@ export interface DocumentSigned {
|
|
|
31
31
|
* @memberof DocumentSigned
|
|
32
32
|
*/
|
|
33
33
|
workflowStepId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the customer who signed the document.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DocumentSigned
|
|
38
|
+
*/
|
|
39
|
+
customerId?: string;
|
|
34
40
|
/**
|
|
35
41
|
* Whether all signatures have been gathered or not.
|
|
36
42
|
* @type {boolean}
|
|
@@ -66,6 +72,7 @@ export function DocumentSignedFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
66
72
|
|
|
67
73
|
'workflowId': json['workflowId'] == null ? undefined : json['workflowId'],
|
|
68
74
|
'workflowStepId': json['workflowStepId'] == null ? undefined : json['workflowStepId'],
|
|
75
|
+
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
69
76
|
'allSignaturesGathered': json['allSignaturesGathered'],
|
|
70
77
|
'file': json['file'],
|
|
71
78
|
};
|
|
@@ -84,6 +91,7 @@ export function DocumentSignedToJSONTyped(value?: DocumentSigned | null, ignoreD
|
|
|
84
91
|
|
|
85
92
|
'workflowId': value['workflowId'],
|
|
86
93
|
'workflowStepId': value['workflowStepId'],
|
|
94
|
+
'customerId': value['customerId'],
|
|
87
95
|
'allSignaturesGathered': value['allSignaturesGathered'],
|
|
88
96
|
'file': value['file'],
|
|
89
97
|
};
|
|
@@ -37,6 +37,12 @@ export interface UploadDocument {
|
|
|
37
37
|
* @memberof UploadDocument
|
|
38
38
|
*/
|
|
39
39
|
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Metadata for the document
|
|
42
|
+
* @type {object}
|
|
43
|
+
* @memberof UploadDocument
|
|
44
|
+
*/
|
|
45
|
+
metadata: object;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -44,6 +50,7 @@ export interface UploadDocument {
|
|
|
44
50
|
*/
|
|
45
51
|
export function instanceOfUploadDocument(value: object): value is UploadDocument {
|
|
46
52
|
if (!('file' in value) || value['file'] === undefined) return false;
|
|
53
|
+
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
47
54
|
return true;
|
|
48
55
|
}
|
|
49
56
|
|
|
@@ -60,6 +67,7 @@ export function UploadDocumentFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
60
67
|
'file': json['file'],
|
|
61
68
|
'siteId': json['siteId'] == null ? undefined : json['siteId'],
|
|
62
69
|
'name': json['name'] == null ? undefined : json['name'],
|
|
70
|
+
'metadata': json['metadata'],
|
|
63
71
|
};
|
|
64
72
|
}
|
|
65
73
|
|
|
@@ -77,6 +85,7 @@ export function UploadDocumentToJSONTyped(value?: UploadDocument | null, ignoreD
|
|
|
77
85
|
'file': value['file'],
|
|
78
86
|
'siteId': value['siteId'],
|
|
79
87
|
'name': value['name'],
|
|
88
|
+
'metadata': value['metadata'],
|
|
80
89
|
};
|
|
81
90
|
}
|
|
82
91
|
|