@managespace/sdk 0.1.166 → 0.1.168
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/extensibility/functions/project/document.d.ts +8 -2
- package/dist/extensibility/functions/project/document.d.ts.map +1 -1
- package/dist/extensibility/functions/project/document.js +5 -0
- package/dist/generated/apis/default-api.d.ts +12 -3
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +30 -1
- package/dist/generated/models/document-complete.d.ts +8 -2
- package/dist/generated/models/document-complete.d.ts.map +1 -1
- package/dist/generated/models/document-complete.js +3 -3
- package/dist/generated/models/document-created.d.ts +54 -0
- package/dist/generated/models/document-created.d.ts.map +1 -0
- package/dist/generated/models/document-created.js +59 -0
- package/dist/generated/models/document-status-signer.d.ts +57 -0
- package/dist/generated/models/document-status-signer.d.ts.map +1 -0
- package/dist/generated/models/document-status-signer.js +65 -0
- package/dist/generated/models/document-status.d.ts +52 -0
- package/dist/generated/models/document-status.d.ts.map +1 -0
- package/dist/generated/models/document-status.js +64 -0
- package/dist/generated/models/embed-config.d.ts +53 -0
- package/dist/generated/models/embed-config.d.ts.map +1 -0
- package/dist/generated/models/embed-config.js +61 -0
- package/dist/generated/models/index.d.ts +4 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +4 -0
- package/package.deploy.json +1 -1
- package/package.json +11 -21
- package/src/extensibility/functions/project/document.ts +8 -1
- package/src/generated/.openapi-generator/FILES +4 -0
- package/src/generated/apis/default-api.ts +52 -3
- package/src/generated/models/document-complete.ts +11 -4
- package/src/generated/models/document-created.ts +99 -0
- package/src/generated/models/document-status-signer.ts +102 -0
- package/src/generated/models/document-status.ts +102 -0
- package/src/generated/models/embed-config.ts +93 -0
- package/src/generated/models/index.ts +4 -0
|
@@ -92,7 +92,9 @@ import type {
|
|
|
92
92
|
CustomerStatus,
|
|
93
93
|
DailyDepositsReportFilters,
|
|
94
94
|
DocumentComplete,
|
|
95
|
+
DocumentCreated,
|
|
95
96
|
DocumentHierarchy,
|
|
97
|
+
DocumentStatus,
|
|
96
98
|
DocumentUrl,
|
|
97
99
|
ExecuteBy,
|
|
98
100
|
ExtensibilityRepo,
|
|
@@ -380,8 +382,12 @@ import {
|
|
|
380
382
|
DailyDepositsReportFiltersToJSON,
|
|
381
383
|
DocumentCompleteFromJSON,
|
|
382
384
|
DocumentCompleteToJSON,
|
|
385
|
+
DocumentCreatedFromJSON,
|
|
386
|
+
DocumentCreatedToJSON,
|
|
383
387
|
DocumentHierarchyFromJSON,
|
|
384
388
|
DocumentHierarchyToJSON,
|
|
389
|
+
DocumentStatusFromJSON,
|
|
390
|
+
DocumentStatusToJSON,
|
|
385
391
|
DocumentUrlFromJSON,
|
|
386
392
|
DocumentUrlToJSON,
|
|
387
393
|
ExecuteByFromJSON,
|
|
@@ -1152,6 +1158,10 @@ export interface GetDocumentHierarchyRequest {
|
|
|
1152
1158
|
siteId?: string;
|
|
1153
1159
|
}
|
|
1154
1160
|
|
|
1161
|
+
export interface GetDocumentStatusRequest {
|
|
1162
|
+
documentId: string;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1155
1165
|
export interface GetDocumentUrlRequest {
|
|
1156
1166
|
documentId: string;
|
|
1157
1167
|
}
|
|
@@ -2703,7 +2713,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2703
2713
|
|
|
2704
2714
|
/**
|
|
2705
2715
|
*/
|
|
2706
|
-
async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2716
|
+
async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentCreated>> {
|
|
2707
2717
|
if (requestParameters['siteId'] == null) {
|
|
2708
2718
|
throw new runtime.RequiredError(
|
|
2709
2719
|
'siteId',
|
|
@@ -2740,12 +2750,12 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2740
2750
|
body: CreateDocumentToJSON(requestParameters['createDocument']),
|
|
2741
2751
|
}, initOverrides);
|
|
2742
2752
|
|
|
2743
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2753
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DocumentCreatedFromJSON(jsonValue));
|
|
2744
2754
|
}
|
|
2745
2755
|
|
|
2746
2756
|
/**
|
|
2747
2757
|
*/
|
|
2748
|
-
async createDocument(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2758
|
+
async createDocument(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentCreated> {
|
|
2749
2759
|
const response = await this.createDocumentRaw(requestParameters, initOverrides);
|
|
2750
2760
|
return await response.value();
|
|
2751
2761
|
}
|
|
@@ -6695,6 +6705,45 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
6695
6705
|
return await response.value();
|
|
6696
6706
|
}
|
|
6697
6707
|
|
|
6708
|
+
/**
|
|
6709
|
+
*/
|
|
6710
|
+
async getDocumentStatusRaw(requestParameters: GetDocumentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentStatus>> {
|
|
6711
|
+
if (requestParameters['documentId'] == null) {
|
|
6712
|
+
throw new runtime.RequiredError(
|
|
6713
|
+
'documentId',
|
|
6714
|
+
'Required parameter "documentId" was null or undefined when calling getDocumentStatus().'
|
|
6715
|
+
);
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
const queryParameters: any = {};
|
|
6719
|
+
|
|
6720
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6721
|
+
|
|
6722
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6723
|
+
const token = this.configuration.accessToken;
|
|
6724
|
+
const tokenString = await token("bearer", []);
|
|
6725
|
+
|
|
6726
|
+
if (tokenString) {
|
|
6727
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6728
|
+
}
|
|
6729
|
+
}
|
|
6730
|
+
const response = await this.request({
|
|
6731
|
+
path: `/api/object-store/documents/{documentId}/status`.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
|
|
6732
|
+
method: 'GET',
|
|
6733
|
+
headers: headerParameters,
|
|
6734
|
+
query: queryParameters,
|
|
6735
|
+
}, initOverrides);
|
|
6736
|
+
|
|
6737
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DocumentStatusFromJSON(jsonValue));
|
|
6738
|
+
}
|
|
6739
|
+
|
|
6740
|
+
/**
|
|
6741
|
+
*/
|
|
6742
|
+
async getDocumentStatus(requestParameters: GetDocumentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentStatus> {
|
|
6743
|
+
const response = await this.getDocumentStatusRaw(requestParameters, initOverrides);
|
|
6744
|
+
return await response.value();
|
|
6745
|
+
}
|
|
6746
|
+
|
|
6698
6747
|
/**
|
|
6699
6748
|
*/
|
|
6700
6749
|
async getDocumentUrlRaw(requestParameters: GetDocumentUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentUrl>> {
|
|
@@ -50,6 +50,12 @@ export interface DocumentComplete {
|
|
|
50
50
|
* @memberof DocumentComplete
|
|
51
51
|
*/
|
|
52
52
|
userId?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Email address of the signer.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof DocumentComplete
|
|
57
|
+
*/
|
|
58
|
+
signerEmail?: string;
|
|
53
59
|
/**
|
|
54
60
|
* Whether all signatures have been gathered or not.
|
|
55
61
|
* @type {boolean}
|
|
@@ -57,11 +63,11 @@ export interface DocumentComplete {
|
|
|
57
63
|
*/
|
|
58
64
|
allSignaturesGathered: boolean;
|
|
59
65
|
/**
|
|
60
|
-
* Downloadable URL of the document.
|
|
66
|
+
* Downloadable URL of the document. Required when allSignaturesGathered is true.
|
|
61
67
|
* @type {string}
|
|
62
68
|
* @memberof DocumentComplete
|
|
63
69
|
*/
|
|
64
|
-
fileUrl
|
|
70
|
+
fileUrl?: string;
|
|
65
71
|
}
|
|
66
72
|
|
|
67
73
|
/**
|
|
@@ -69,7 +75,6 @@ export interface DocumentComplete {
|
|
|
69
75
|
*/
|
|
70
76
|
export function instanceOfDocumentComplete(value: object): value is DocumentComplete {
|
|
71
77
|
if (!('allSignaturesGathered' in value) || value['allSignaturesGathered'] === undefined) return false;
|
|
72
|
-
if (!('fileUrl' in value) || value['fileUrl'] === undefined) return false;
|
|
73
78
|
return true;
|
|
74
79
|
}
|
|
75
80
|
|
|
@@ -88,8 +93,9 @@ export function DocumentCompleteFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
88
93
|
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
89
94
|
'contactId': json['contactId'] == null ? undefined : json['contactId'],
|
|
90
95
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
96
|
+
'signerEmail': json['signerEmail'] == null ? undefined : json['signerEmail'],
|
|
91
97
|
'allSignaturesGathered': json['allSignaturesGathered'],
|
|
92
|
-
'fileUrl': json['fileUrl'],
|
|
98
|
+
'fileUrl': json['fileUrl'] == null ? undefined : json['fileUrl'],
|
|
93
99
|
};
|
|
94
100
|
}
|
|
95
101
|
|
|
@@ -109,6 +115,7 @@ export function DocumentCompleteToJSONTyped(value?: DocumentComplete | null, ign
|
|
|
109
115
|
'customerId': value['customerId'],
|
|
110
116
|
'contactId': value['contactId'],
|
|
111
117
|
'userId': value['userId'],
|
|
118
|
+
'signerEmail': value['signerEmail'],
|
|
112
119
|
'allSignaturesGathered': value['allSignaturesGathered'],
|
|
113
120
|
'fileUrl': value['fileUrl'],
|
|
114
121
|
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { mapValues } from '../runtime';
|
|
17
|
+
import type { EmbedConfig } from './embed-config';
|
|
18
|
+
import {
|
|
19
|
+
EmbedConfigFromJSON,
|
|
20
|
+
EmbedConfigFromJSONTyped,
|
|
21
|
+
EmbedConfigToJSON,
|
|
22
|
+
EmbedConfigToJSONTyped,
|
|
23
|
+
} from './embed-config';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface DocumentCreated
|
|
29
|
+
*/
|
|
30
|
+
export interface DocumentCreated {
|
|
31
|
+
/**
|
|
32
|
+
* The success status of the operation.
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof DocumentCreated
|
|
35
|
+
*/
|
|
36
|
+
success: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Provider-agnostic embed configuration for rendering the signing UI.
|
|
39
|
+
* @type {EmbedConfig}
|
|
40
|
+
* @memberof DocumentCreated
|
|
41
|
+
*/
|
|
42
|
+
embedConfig?: EmbedConfig;
|
|
43
|
+
/**
|
|
44
|
+
* Per-signer embed configurations keyed by role (e.g. operator, tenant).
|
|
45
|
+
* @type {{ [key: string]: EmbedConfig; }}
|
|
46
|
+
* @memberof DocumentCreated
|
|
47
|
+
*/
|
|
48
|
+
signerEmbedConfigs?: { [key: string]: EmbedConfig; };
|
|
49
|
+
/**
|
|
50
|
+
* External document identifier from the signing provider.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof DocumentCreated
|
|
53
|
+
*/
|
|
54
|
+
documentId?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the DocumentCreated interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfDocumentCreated(value: object): value is DocumentCreated {
|
|
61
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function DocumentCreatedFromJSON(json: any): DocumentCreated {
|
|
66
|
+
return DocumentCreatedFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function DocumentCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentCreated {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'success': json['success'],
|
|
76
|
+
'embedConfig': json['embedConfig'] == null ? undefined : EmbedConfigFromJSON(json['embedConfig']),
|
|
77
|
+
'signerEmbedConfigs': json['signerEmbedConfigs'] == null ? undefined : (mapValues(json['signerEmbedConfigs'], EmbedConfigFromJSON)),
|
|
78
|
+
'documentId': json['documentId'] == null ? undefined : json['documentId'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function DocumentCreatedToJSON(json: any): DocumentCreated {
|
|
83
|
+
return DocumentCreatedToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function DocumentCreatedToJSONTyped(value?: DocumentCreated | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'success': value['success'],
|
|
94
|
+
'embedConfig': EmbedConfigToJSON(value['embedConfig']),
|
|
95
|
+
'signerEmbedConfigs': value['signerEmbedConfigs'] == null ? undefined : (mapValues(value['signerEmbedConfigs'], EmbedConfigToJSON)),
|
|
96
|
+
'documentId': value['documentId'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { mapValues } from '../runtime';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface DocumentStatusSigner
|
|
21
|
+
*/
|
|
22
|
+
export interface DocumentStatusSigner {
|
|
23
|
+
/**
|
|
24
|
+
* Name of the signer.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof DocumentStatusSigner
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Email address of the signer.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DocumentStatusSigner
|
|
33
|
+
*/
|
|
34
|
+
email: string;
|
|
35
|
+
/**
|
|
36
|
+
* Role of the signer.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DocumentStatusSigner
|
|
39
|
+
*/
|
|
40
|
+
role: string;
|
|
41
|
+
/**
|
|
42
|
+
* Signing status (e.g. pending, completed).
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof DocumentStatusSigner
|
|
45
|
+
*/
|
|
46
|
+
status: string;
|
|
47
|
+
/**
|
|
48
|
+
* Timestamp when the signer completed signing.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof DocumentStatusSigner
|
|
51
|
+
*/
|
|
52
|
+
completedAt?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the DocumentStatusSigner interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfDocumentStatusSigner(value: object): value is DocumentStatusSigner {
|
|
59
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
61
|
+
if (!('role' in value) || value['role'] === undefined) return false;
|
|
62
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function DocumentStatusSignerFromJSON(json: any): DocumentStatusSigner {
|
|
67
|
+
return DocumentStatusSignerFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function DocumentStatusSignerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatusSigner {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': json['name'],
|
|
77
|
+
'email': json['email'],
|
|
78
|
+
'role': json['role'],
|
|
79
|
+
'status': json['status'],
|
|
80
|
+
'completedAt': json['completedAt'] == null ? undefined : json['completedAt'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function DocumentStatusSignerToJSON(json: any): DocumentStatusSigner {
|
|
85
|
+
return DocumentStatusSignerToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function DocumentStatusSignerToJSONTyped(value?: DocumentStatusSigner | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'name': value['name'],
|
|
96
|
+
'email': value['email'],
|
|
97
|
+
'role': value['role'],
|
|
98
|
+
'status': value['status'],
|
|
99
|
+
'completedAt': value['completedAt'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { mapValues } from '../runtime';
|
|
17
|
+
import type { DocumentStatusSigner } from './document-status-signer';
|
|
18
|
+
import {
|
|
19
|
+
DocumentStatusSignerFromJSON,
|
|
20
|
+
DocumentStatusSignerFromJSONTyped,
|
|
21
|
+
DocumentStatusSignerToJSON,
|
|
22
|
+
DocumentStatusSignerToJSONTyped,
|
|
23
|
+
} from './document-status-signer';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface DocumentStatus
|
|
29
|
+
*/
|
|
30
|
+
export interface DocumentStatus {
|
|
31
|
+
/**
|
|
32
|
+
* External document identifier from the signing provider.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof DocumentStatus
|
|
35
|
+
*/
|
|
36
|
+
documentId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Overall document status (e.g. pending, completed).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof DocumentStatus
|
|
41
|
+
*/
|
|
42
|
+
status: string;
|
|
43
|
+
/**
|
|
44
|
+
* Whether all required signatures have been gathered.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof DocumentStatus
|
|
47
|
+
*/
|
|
48
|
+
allSignaturesGathered: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Status of each individual signer.
|
|
51
|
+
* @type {Array<DocumentStatusSigner>}
|
|
52
|
+
* @memberof DocumentStatus
|
|
53
|
+
*/
|
|
54
|
+
signers: Array<DocumentStatusSigner>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the DocumentStatus interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfDocumentStatus(value: object): value is DocumentStatus {
|
|
61
|
+
if (!('documentId' in value) || value['documentId'] === undefined) return false;
|
|
62
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
63
|
+
if (!('allSignaturesGathered' in value) || value['allSignaturesGathered'] === undefined) return false;
|
|
64
|
+
if (!('signers' in value) || value['signers'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DocumentStatusFromJSON(json: any): DocumentStatus {
|
|
69
|
+
return DocumentStatusFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DocumentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatus {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'documentId': json['documentId'],
|
|
79
|
+
'status': json['status'],
|
|
80
|
+
'allSignaturesGathered': json['allSignaturesGathered'],
|
|
81
|
+
'signers': ((json['signers'] as Array<any>).map(DocumentStatusSignerFromJSON)),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function DocumentStatusToJSON(json: any): DocumentStatus {
|
|
86
|
+
return DocumentStatusToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function DocumentStatusToJSONTyped(value?: DocumentStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'documentId': value['documentId'],
|
|
97
|
+
'status': value['status'],
|
|
98
|
+
'allSignaturesGathered': value['allSignaturesGathered'],
|
|
99
|
+
'signers': ((value['signers'] as Array<any>).map(DocumentStatusSignerToJSON)),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { mapValues } from '../runtime';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EmbedConfig
|
|
21
|
+
*/
|
|
22
|
+
export interface EmbedConfig {
|
|
23
|
+
/**
|
|
24
|
+
* URL of the provider script to load.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof EmbedConfig
|
|
27
|
+
*/
|
|
28
|
+
scriptUrl: string;
|
|
29
|
+
/**
|
|
30
|
+
* Custom element tag name to render.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof EmbedConfig
|
|
33
|
+
*/
|
|
34
|
+
tagName: string;
|
|
35
|
+
/**
|
|
36
|
+
* Attributes to set on the custom element.
|
|
37
|
+
* @type {{ [key: string]: string; }}
|
|
38
|
+
* @memberof EmbedConfig
|
|
39
|
+
*/
|
|
40
|
+
attributes: { [key: string]: string; };
|
|
41
|
+
/**
|
|
42
|
+
* DOM event name fired on completion.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof EmbedConfig
|
|
45
|
+
*/
|
|
46
|
+
completionEvent?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the EmbedConfig interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfEmbedConfig(value: object): value is EmbedConfig {
|
|
53
|
+
if (!('scriptUrl' in value) || value['scriptUrl'] === undefined) return false;
|
|
54
|
+
if (!('tagName' in value) || value['tagName'] === undefined) return false;
|
|
55
|
+
if (!('attributes' in value) || value['attributes'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function EmbedConfigFromJSON(json: any): EmbedConfig {
|
|
60
|
+
return EmbedConfigFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function EmbedConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbedConfig {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'scriptUrl': json['scriptUrl'],
|
|
70
|
+
'tagName': json['tagName'],
|
|
71
|
+
'attributes': json['attributes'],
|
|
72
|
+
'completionEvent': json['completionEvent'] == null ? undefined : json['completionEvent'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function EmbedConfigToJSON(json: any): EmbedConfig {
|
|
77
|
+
return EmbedConfigToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function EmbedConfigToJSONTyped(value?: EmbedConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'scriptUrl': value['scriptUrl'],
|
|
88
|
+
'tagName': value['tagName'],
|
|
89
|
+
'attributes': value['attributes'],
|
|
90
|
+
'completionEvent': value['completionEvent'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -98,10 +98,14 @@ export * from './customer-payment-method';
|
|
|
98
98
|
export * from './customer-status';
|
|
99
99
|
export * from './daily-deposits-report-filters';
|
|
100
100
|
export * from './document-complete';
|
|
101
|
+
export * from './document-created';
|
|
101
102
|
export * from './document-field';
|
|
102
103
|
export * from './document-hierarchy';
|
|
103
104
|
export * from './document-signer';
|
|
105
|
+
export * from './document-status';
|
|
106
|
+
export * from './document-status-signer';
|
|
104
107
|
export * from './document-url';
|
|
108
|
+
export * from './embed-config';
|
|
105
109
|
export * from './execute-by';
|
|
106
110
|
export * from './extensibility-function-definition';
|
|
107
111
|
export * from './extensibility-function-instance';
|