@managespace/sdk 0.1.174 → 0.1.176-documents

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.
Files changed (56) hide show
  1. package/dist/extensibility/functions/project/document.d.ts +2 -8
  2. package/dist/extensibility/functions/project/document.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/document.js +0 -5
  4. package/dist/extensions/host-bridge.d.ts +166 -0
  5. package/dist/extensions/host-bridge.d.ts.map +1 -0
  6. package/dist/extensions/host-bridge.js +259 -0
  7. package/dist/extensions/index.d.ts +40 -0
  8. package/dist/extensions/index.d.ts.map +1 -0
  9. package/dist/extensions/index.js +55 -0
  10. package/dist/extensions/types.d.ts +111 -0
  11. package/dist/extensions/types.d.ts.map +1 -0
  12. package/dist/extensions/types.js +2 -0
  13. package/dist/generated/apis/default-api.d.ts +3 -12
  14. package/dist/generated/apis/default-api.d.ts.map +1 -1
  15. package/dist/generated/apis/default-api.js +1 -30
  16. package/dist/generated/apis/extensions-api.d.ts +98 -0
  17. package/dist/generated/apis/extensions-api.d.ts.map +1 -0
  18. package/dist/generated/apis/extensions-api.js +295 -0
  19. package/dist/generated/models/document-complete.d.ts +7 -19
  20. package/dist/generated/models/document-complete.d.ts.map +1 -1
  21. package/dist/generated/models/document-complete.js +5 -7
  22. package/dist/generated/models/extension-org.d.ts +64 -0
  23. package/dist/generated/models/extension-org.d.ts.map +1 -0
  24. package/dist/generated/models/extension-org.js +70 -0
  25. package/dist/generated/models/extension.d.ts +106 -0
  26. package/dist/generated/models/extension.d.ts.map +1 -0
  27. package/dist/generated/models/extension.js +98 -0
  28. package/dist/generated/models/index.d.ts +0 -4
  29. package/dist/generated/models/index.d.ts.map +1 -1
  30. package/dist/generated/models/index.js +0 -4
  31. package/dist/generated/models/update-document-type.d.ts +43 -0
  32. package/dist/generated/models/update-document-type.d.ts.map +1 -0
  33. package/dist/generated/models/update-document-type.js +61 -0
  34. package/package.deploy.json +8 -4
  35. package/package.json +19 -10
  36. package/src/extensibility/functions/project/document.ts +1 -8
  37. package/src/generated/.openapi-generator/FILES +0 -4
  38. package/src/generated/apis/default-api.ts +3 -52
  39. package/src/generated/models/document-complete.ts +11 -26
  40. package/src/generated/models/index.ts +0 -4
  41. package/dist/generated/models/document-created.d.ts +0 -54
  42. package/dist/generated/models/document-created.d.ts.map +0 -1
  43. package/dist/generated/models/document-created.js +0 -59
  44. package/dist/generated/models/document-status-signer.d.ts +0 -57
  45. package/dist/generated/models/document-status-signer.d.ts.map +0 -1
  46. package/dist/generated/models/document-status-signer.js +0 -65
  47. package/dist/generated/models/document-status.d.ts +0 -52
  48. package/dist/generated/models/document-status.d.ts.map +0 -1
  49. package/dist/generated/models/document-status.js +0 -64
  50. package/dist/generated/models/embed-config.d.ts +0 -53
  51. package/dist/generated/models/embed-config.d.ts.map +0 -1
  52. package/dist/generated/models/embed-config.js +0 -61
  53. package/src/generated/models/document-created.ts +0 -99
  54. package/src/generated/models/document-status-signer.ts +0 -102
  55. package/src/generated/models/document-status.ts +0 -102
  56. package/src/generated/models/embed-config.ts +0 -93
@@ -1,59 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfDocumentCreated = instanceOfDocumentCreated;
18
- exports.DocumentCreatedFromJSON = DocumentCreatedFromJSON;
19
- exports.DocumentCreatedFromJSONTyped = DocumentCreatedFromJSONTyped;
20
- exports.DocumentCreatedToJSON = DocumentCreatedToJSON;
21
- exports.DocumentCreatedToJSONTyped = DocumentCreatedToJSONTyped;
22
- const runtime_1 = require("../runtime");
23
- const embed_config_1 = require("./embed-config");
24
- /**
25
- * Check if a given object implements the DocumentCreated interface.
26
- */
27
- function instanceOfDocumentCreated(value) {
28
- if (!('success' in value) || value['success'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function DocumentCreatedFromJSON(json) {
33
- return DocumentCreatedFromJSONTyped(json, false);
34
- }
35
- function DocumentCreatedFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'success': json['success'],
41
- 'embedConfig': json['embedConfig'] == null ? undefined : (0, embed_config_1.EmbedConfigFromJSON)(json['embedConfig']),
42
- 'signerEmbedConfigs': json['signerEmbedConfigs'] == null ? undefined : ((0, runtime_1.mapValues)(json['signerEmbedConfigs'], embed_config_1.EmbedConfigFromJSON)),
43
- 'documentId': json['documentId'] == null ? undefined : json['documentId'],
44
- };
45
- }
46
- function DocumentCreatedToJSON(json) {
47
- return DocumentCreatedToJSONTyped(json, false);
48
- }
49
- function DocumentCreatedToJSONTyped(value, ignoreDiscriminator = false) {
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'success': value['success'],
55
- 'embedConfig': (0, embed_config_1.EmbedConfigToJSON)(value['embedConfig']),
56
- 'signerEmbedConfigs': value['signerEmbedConfigs'] == null ? undefined : ((0, runtime_1.mapValues)(value['signerEmbedConfigs'], embed_config_1.EmbedConfigToJSON)),
57
- 'documentId': value['documentId'],
58
- };
59
- }
@@ -1,57 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface DocumentStatusSigner
16
- */
17
- export interface DocumentStatusSigner {
18
- /**
19
- * Name of the signer.
20
- * @type {string}
21
- * @memberof DocumentStatusSigner
22
- */
23
- name: string;
24
- /**
25
- * Email address of the signer.
26
- * @type {string}
27
- * @memberof DocumentStatusSigner
28
- */
29
- email: string;
30
- /**
31
- * Role of the signer.
32
- * @type {string}
33
- * @memberof DocumentStatusSigner
34
- */
35
- role: string;
36
- /**
37
- * Signing status (e.g. pending, completed).
38
- * @type {string}
39
- * @memberof DocumentStatusSigner
40
- */
41
- status: string;
42
- /**
43
- * Timestamp when the signer completed signing.
44
- * @type {string}
45
- * @memberof DocumentStatusSigner
46
- */
47
- completedAt?: string;
48
- }
49
- /**
50
- * Check if a given object implements the DocumentStatusSigner interface.
51
- */
52
- export declare function instanceOfDocumentStatusSigner(value: object): value is DocumentStatusSigner;
53
- export declare function DocumentStatusSignerFromJSON(json: any): DocumentStatusSigner;
54
- export declare function DocumentStatusSignerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatusSigner;
55
- export declare function DocumentStatusSignerToJSON(json: any): DocumentStatusSigner;
56
- export declare function DocumentStatusSignerToJSONTyped(value?: DocumentStatusSigner | null, ignoreDiscriminator?: boolean): any;
57
- //# sourceMappingURL=document-status-signer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-status-signer.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document-status-signer.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAM3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAY/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa9H"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfDocumentStatusSigner = instanceOfDocumentStatusSigner;
18
- exports.DocumentStatusSignerFromJSON = DocumentStatusSignerFromJSON;
19
- exports.DocumentStatusSignerFromJSONTyped = DocumentStatusSignerFromJSONTyped;
20
- exports.DocumentStatusSignerToJSON = DocumentStatusSignerToJSON;
21
- exports.DocumentStatusSignerToJSONTyped = DocumentStatusSignerToJSONTyped;
22
- /**
23
- * Check if a given object implements the DocumentStatusSigner interface.
24
- */
25
- function instanceOfDocumentStatusSigner(value) {
26
- if (!('name' in value) || value['name'] === undefined)
27
- return false;
28
- if (!('email' in value) || value['email'] === undefined)
29
- return false;
30
- if (!('role' in value) || value['role'] === undefined)
31
- return false;
32
- if (!('status' in value) || value['status'] === undefined)
33
- return false;
34
- return true;
35
- }
36
- function DocumentStatusSignerFromJSON(json) {
37
- return DocumentStatusSignerFromJSONTyped(json, false);
38
- }
39
- function DocumentStatusSignerFromJSONTyped(json, ignoreDiscriminator) {
40
- if (json == null) {
41
- return json;
42
- }
43
- return {
44
- 'name': json['name'],
45
- 'email': json['email'],
46
- 'role': json['role'],
47
- 'status': json['status'],
48
- 'completedAt': json['completedAt'] == null ? undefined : json['completedAt'],
49
- };
50
- }
51
- function DocumentStatusSignerToJSON(json) {
52
- return DocumentStatusSignerToJSONTyped(json, false);
53
- }
54
- function DocumentStatusSignerToJSONTyped(value, ignoreDiscriminator = false) {
55
- if (value == null) {
56
- return value;
57
- }
58
- return {
59
- 'name': value['name'],
60
- 'email': value['email'],
61
- 'role': value['role'],
62
- 'status': value['status'],
63
- 'completedAt': value['completedAt'],
64
- };
65
- }
@@ -1,52 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { DocumentStatusSigner } from './document-status-signer';
13
- /**
14
- *
15
- * @export
16
- * @interface DocumentStatus
17
- */
18
- export interface DocumentStatus {
19
- /**
20
- * External document identifier from the signing provider.
21
- * @type {string}
22
- * @memberof DocumentStatus
23
- */
24
- documentId: string;
25
- /**
26
- * Overall document status (e.g. pending, completed).
27
- * @type {string}
28
- * @memberof DocumentStatus
29
- */
30
- status: string;
31
- /**
32
- * Whether all required signatures have been gathered.
33
- * @type {boolean}
34
- * @memberof DocumentStatus
35
- */
36
- allSignaturesGathered: boolean;
37
- /**
38
- * Status of each individual signer.
39
- * @type {Array<DocumentStatusSigner>}
40
- * @memberof DocumentStatus
41
- */
42
- signers: Array<DocumentStatusSigner>;
43
- }
44
- /**
45
- * Check if a given object implements the DocumentStatus interface.
46
- */
47
- export declare function instanceOfDocumentStatus(value: object): value is DocumentStatus;
48
- export declare function DocumentStatusFromJSON(json: any): DocumentStatus;
49
- export declare function DocumentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatus;
50
- export declare function DocumentStatusToJSON(json: any): DocumentStatus;
51
- export declare function DocumentStatusToJSONTyped(value?: DocumentStatus | null, ignoreDiscriminator?: boolean): any;
52
- //# sourceMappingURL=document-status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-status.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document-status.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAM/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"}
@@ -1,64 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfDocumentStatus = instanceOfDocumentStatus;
18
- exports.DocumentStatusFromJSON = DocumentStatusFromJSON;
19
- exports.DocumentStatusFromJSONTyped = DocumentStatusFromJSONTyped;
20
- exports.DocumentStatusToJSON = DocumentStatusToJSON;
21
- exports.DocumentStatusToJSONTyped = DocumentStatusToJSONTyped;
22
- const document_status_signer_1 = require("./document-status-signer");
23
- /**
24
- * Check if a given object implements the DocumentStatus interface.
25
- */
26
- function instanceOfDocumentStatus(value) {
27
- if (!('documentId' in value) || value['documentId'] === undefined)
28
- return false;
29
- if (!('status' in value) || value['status'] === undefined)
30
- return false;
31
- if (!('allSignaturesGathered' in value) || value['allSignaturesGathered'] === undefined)
32
- return false;
33
- if (!('signers' in value) || value['signers'] === undefined)
34
- return false;
35
- return true;
36
- }
37
- function DocumentStatusFromJSON(json) {
38
- return DocumentStatusFromJSONTyped(json, false);
39
- }
40
- function DocumentStatusFromJSONTyped(json, ignoreDiscriminator) {
41
- if (json == null) {
42
- return json;
43
- }
44
- return {
45
- 'documentId': json['documentId'],
46
- 'status': json['status'],
47
- 'allSignaturesGathered': json['allSignaturesGathered'],
48
- 'signers': (json['signers'].map(document_status_signer_1.DocumentStatusSignerFromJSON)),
49
- };
50
- }
51
- function DocumentStatusToJSON(json) {
52
- return DocumentStatusToJSONTyped(json, false);
53
- }
54
- function DocumentStatusToJSONTyped(value, ignoreDiscriminator = false) {
55
- if (value == null) {
56
- return value;
57
- }
58
- return {
59
- 'documentId': value['documentId'],
60
- 'status': value['status'],
61
- 'allSignaturesGathered': value['allSignaturesGathered'],
62
- 'signers': (value['signers'].map(document_status_signer_1.DocumentStatusSignerToJSON)),
63
- };
64
- }
@@ -1,53 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface EmbedConfig
16
- */
17
- export interface EmbedConfig {
18
- /**
19
- * URL of the provider script to load.
20
- * @type {string}
21
- * @memberof EmbedConfig
22
- */
23
- scriptUrl: string;
24
- /**
25
- * Custom element tag name to render.
26
- * @type {string}
27
- * @memberof EmbedConfig
28
- */
29
- tagName: string;
30
- /**
31
- * Attributes to set on the custom element.
32
- * @type {{ [key: string]: string; }}
33
- * @memberof EmbedConfig
34
- */
35
- attributes: {
36
- [key: string]: string;
37
- };
38
- /**
39
- * DOM event name fired on completion.
40
- * @type {string}
41
- * @memberof EmbedConfig
42
- */
43
- completionEvent?: string;
44
- }
45
- /**
46
- * Check if a given object implements the EmbedConfig interface.
47
- */
48
- export declare function instanceOfEmbedConfig(value: object): value is EmbedConfig;
49
- export declare function EmbedConfigFromJSON(json: any): EmbedConfig;
50
- export declare function EmbedConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbedConfig;
51
- export declare function EmbedConfigToJSON(json: any): EmbedConfig;
52
- export declare function EmbedConfigToJSONTyped(value?: EmbedConfig | null, ignoreDiscriminator?: boolean): any;
53
- //# sourceMappingURL=embed-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embed-config.d.ts","sourceRoot":"","sources":["../../../src/generated/models/embed-config.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAKzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAW7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY5G"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfEmbedConfig = instanceOfEmbedConfig;
18
- exports.EmbedConfigFromJSON = EmbedConfigFromJSON;
19
- exports.EmbedConfigFromJSONTyped = EmbedConfigFromJSONTyped;
20
- exports.EmbedConfigToJSON = EmbedConfigToJSON;
21
- exports.EmbedConfigToJSONTyped = EmbedConfigToJSONTyped;
22
- /**
23
- * Check if a given object implements the EmbedConfig interface.
24
- */
25
- function instanceOfEmbedConfig(value) {
26
- if (!('scriptUrl' in value) || value['scriptUrl'] === undefined)
27
- return false;
28
- if (!('tagName' in value) || value['tagName'] === undefined)
29
- return false;
30
- if (!('attributes' in value) || value['attributes'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- function EmbedConfigFromJSON(json) {
35
- return EmbedConfigFromJSONTyped(json, false);
36
- }
37
- function EmbedConfigFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'scriptUrl': json['scriptUrl'],
43
- 'tagName': json['tagName'],
44
- 'attributes': json['attributes'],
45
- 'completionEvent': json['completionEvent'] == null ? undefined : json['completionEvent'],
46
- };
47
- }
48
- function EmbedConfigToJSON(json) {
49
- return EmbedConfigToJSONTyped(json, false);
50
- }
51
- function EmbedConfigToJSONTyped(value, ignoreDiscriminator = false) {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
- 'scriptUrl': value['scriptUrl'],
57
- 'tagName': value['tagName'],
58
- 'attributes': value['attributes'],
59
- 'completionEvent': value['completionEvent'],
60
- };
61
- }
@@ -1,99 +0,0 @@
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
-
@@ -1,102 +0,0 @@
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
-