@managespace/sdk 0.1.177-documents → 0.1.178

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 (60) hide show
  1. package/dist/extensibility/functions/project/document.d.ts +8 -2
  2. package/dist/extensibility/functions/project/document.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/document.js +5 -0
  4. package/dist/generated/apis/default-api.d.ts +43 -3
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +133 -1
  7. package/dist/generated/models/document-complete.d.ts +18 -0
  8. package/dist/generated/models/document-complete.d.ts.map +1 -1
  9. package/dist/generated/models/document-complete.js +6 -0
  10. package/dist/generated/models/document-created.d.ts +54 -0
  11. package/dist/generated/models/document-created.d.ts.map +1 -0
  12. package/dist/generated/models/document-created.js +63 -0
  13. package/dist/generated/models/document-status-signer.d.ts +57 -0
  14. package/dist/generated/models/document-status-signer.d.ts.map +1 -0
  15. package/dist/generated/models/document-status-signer.js +67 -0
  16. package/dist/generated/models/document-status.d.ts +52 -0
  17. package/dist/generated/models/document-status.d.ts.map +1 -0
  18. package/dist/generated/models/document-status.js +64 -0
  19. package/dist/generated/models/embed-config.d.ts +53 -0
  20. package/dist/generated/models/embed-config.d.ts.map +1 -0
  21. package/dist/generated/models/embed-config.js +61 -0
  22. package/dist/generated/models/get-subscriptions-delinquency200-response.d.ts +40 -0
  23. package/dist/generated/models/get-subscriptions-delinquency200-response.d.ts.map +1 -0
  24. package/dist/generated/models/get-subscriptions-delinquency200-response.js +54 -0
  25. package/dist/generated/models/index.d.ts +5 -0
  26. package/dist/generated/models/index.d.ts.map +1 -1
  27. package/dist/generated/models/index.js +5 -0
  28. package/package.deploy.json +4 -8
  29. package/package.json +4 -8
  30. package/src/extensibility/functions/project/document.ts +8 -1
  31. package/src/generated/.openapi-generator/FILES +5 -0
  32. package/src/generated/apis/default-api.ts +207 -3
  33. package/src/generated/models/document-complete.ts +24 -0
  34. package/src/generated/models/document-created.ts +101 -0
  35. package/src/generated/models/document-status-signer.ts +103 -0
  36. package/src/generated/models/document-status.ts +102 -0
  37. package/src/generated/models/embed-config.ts +93 -0
  38. package/src/generated/models/get-subscriptions-delinquency200-response.ts +83 -0
  39. package/src/generated/models/index.ts +5 -0
  40. package/dist/extensions/host-bridge.d.ts +0 -166
  41. package/dist/extensions/host-bridge.d.ts.map +0 -1
  42. package/dist/extensions/host-bridge.js +0 -259
  43. package/dist/extensions/index.d.ts +0 -40
  44. package/dist/extensions/index.d.ts.map +0 -1
  45. package/dist/extensions/index.js +0 -55
  46. package/dist/extensions/types.d.ts +0 -111
  47. package/dist/extensions/types.d.ts.map +0 -1
  48. package/dist/extensions/types.js +0 -2
  49. package/dist/generated/apis/extensions-api.d.ts +0 -98
  50. package/dist/generated/apis/extensions-api.d.ts.map +0 -1
  51. package/dist/generated/apis/extensions-api.js +0 -295
  52. package/dist/generated/models/extension-org.d.ts +0 -64
  53. package/dist/generated/models/extension-org.d.ts.map +0 -1
  54. package/dist/generated/models/extension-org.js +0 -70
  55. package/dist/generated/models/extension.d.ts +0 -106
  56. package/dist/generated/models/extension.d.ts.map +0 -1
  57. package/dist/generated/models/extension.js +0 -98
  58. package/dist/generated/models/update-document-type.d.ts +0 -43
  59. package/dist/generated/models/update-document-type.d.ts.map +0 -1
  60. package/dist/generated/models/update-document-type.js +0 -61
@@ -769,7 +769,7 @@ class DefaultApi extends runtime.BaseAPI {
769
769
  query: queryParameters,
770
770
  body: (0, index_1.CreateDocumentToJSON)(requestParameters['createDocument']),
771
771
  }, initOverrides);
772
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessFromJSON)(jsonValue));
772
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentCreatedFromJSON)(jsonValue));
773
773
  }
774
774
  /**
775
775
  */
@@ -3687,6 +3687,35 @@ class DefaultApi extends runtime.BaseAPI {
3687
3687
  const response = await this.getDocumentHierarchyRaw(requestParameters, initOverrides);
3688
3688
  return await response.value();
3689
3689
  }
3690
+ /**
3691
+ */
3692
+ async getDocumentStatusRaw(requestParameters, initOverrides) {
3693
+ if (requestParameters['documentId'] == null) {
3694
+ throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling getDocumentStatus().');
3695
+ }
3696
+ const queryParameters = {};
3697
+ const headerParameters = {};
3698
+ if (this.configuration && this.configuration.accessToken) {
3699
+ const token = this.configuration.accessToken;
3700
+ const tokenString = await token("bearer", []);
3701
+ if (tokenString) {
3702
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3703
+ }
3704
+ }
3705
+ const response = await this.request({
3706
+ path: `/api/object-store/documents/{documentId}/status`.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
3707
+ method: 'GET',
3708
+ headers: headerParameters,
3709
+ query: queryParameters,
3710
+ }, initOverrides);
3711
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentStatusFromJSON)(jsonValue));
3712
+ }
3713
+ /**
3714
+ */
3715
+ async getDocumentStatus(requestParameters, initOverrides) {
3716
+ const response = await this.getDocumentStatusRaw(requestParameters, initOverrides);
3717
+ return await response.value();
3718
+ }
3690
3719
  /**
3691
3720
  */
3692
3721
  async getDocumentUrlRaw(requestParameters, initOverrides) {
@@ -3912,6 +3941,37 @@ class DefaultApi extends runtime.BaseAPI {
3912
3941
  const response = await this.getInvoices1Raw(requestParameters, initOverrides);
3913
3942
  return await response.value();
3914
3943
  }
3944
+ /**
3945
+ */
3946
+ async getInvoicesDelinquencyRaw(requestParameters, initOverrides) {
3947
+ if (requestParameters['getInvoicesQuery'] == null) {
3948
+ throw new runtime.RequiredError('getInvoicesQuery', 'Required parameter "getInvoicesQuery" was null or undefined when calling getInvoicesDelinquency().');
3949
+ }
3950
+ const queryParameters = {};
3951
+ const headerParameters = {};
3952
+ headerParameters['Content-Type'] = 'application/json';
3953
+ if (this.configuration && this.configuration.accessToken) {
3954
+ const token = this.configuration.accessToken;
3955
+ const tokenString = await token("bearer", []);
3956
+ if (tokenString) {
3957
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3958
+ }
3959
+ }
3960
+ const response = await this.request({
3961
+ path: `/api/org/invoices/queries`,
3962
+ method: 'POST',
3963
+ headers: headerParameters,
3964
+ query: queryParameters,
3965
+ body: (0, index_1.GetInvoicesQueryToJSON)(requestParameters['getInvoicesQuery']),
3966
+ }, initOverrides);
3967
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSubscriptionsDelinquency200ResponseFromJSON)(jsonValue));
3968
+ }
3969
+ /**
3970
+ */
3971
+ async getInvoicesDelinquency(requestParameters, initOverrides) {
3972
+ const response = await this.getInvoicesDelinquencyRaw(requestParameters, initOverrides);
3973
+ return await response.value();
3974
+ }
3915
3975
  /**
3916
3976
  */
3917
3977
  async getJournalEntriesRaw(requestParameters, initOverrides) {
@@ -4825,6 +4885,47 @@ class DefaultApi extends runtime.BaseAPI {
4825
4885
  const response = await this.getProductsRaw(requestParameters, initOverrides);
4826
4886
  return await response.value();
4827
4887
  }
4888
+ /**
4889
+ */
4890
+ async getProductsDelinquencyRaw(requestParameters, initOverrides) {
4891
+ const queryParameters = {};
4892
+ if (requestParameters['offset'] != null) {
4893
+ queryParameters['offset'] = requestParameters['offset'];
4894
+ }
4895
+ if (requestParameters['limit'] != null) {
4896
+ queryParameters['limit'] = requestParameters['limit'];
4897
+ }
4898
+ if (requestParameters['active'] != null) {
4899
+ queryParameters['active'] = requestParameters['active'];
4900
+ }
4901
+ if (requestParameters['name'] != null) {
4902
+ queryParameters['name'] = requestParameters['name'];
4903
+ }
4904
+ if (requestParameters['productType'] != null) {
4905
+ queryParameters['productType'] = requestParameters['productType'];
4906
+ }
4907
+ const headerParameters = {};
4908
+ if (this.configuration && this.configuration.accessToken) {
4909
+ const token = this.configuration.accessToken;
4910
+ const tokenString = await token("bearer", []);
4911
+ if (tokenString) {
4912
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4913
+ }
4914
+ }
4915
+ const response = await this.request({
4916
+ path: `/api/org/products`,
4917
+ method: 'GET',
4918
+ headers: headerParameters,
4919
+ query: queryParameters,
4920
+ }, initOverrides);
4921
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSubscriptionsDelinquency200ResponseFromJSON)(jsonValue));
4922
+ }
4923
+ /**
4924
+ */
4925
+ async getProductsDelinquency(requestParameters = {}, initOverrides) {
4926
+ const response = await this.getProductsDelinquencyRaw(requestParameters, initOverrides);
4927
+ return await response.value();
4928
+ }
4828
4929
  /**
4829
4930
  */
4830
4931
  async getProjectRaw(initOverrides) {
@@ -5359,6 +5460,37 @@ class DefaultApi extends runtime.BaseAPI {
5359
5460
  const response = await this.getSubscriptionsRaw(requestParameters, initOverrides);
5360
5461
  return await response.value();
5361
5462
  }
5463
+ /**
5464
+ */
5465
+ async getSubscriptionsDelinquencyRaw(requestParameters, initOverrides) {
5466
+ if (requestParameters['getSubscriptionsQuery'] == null) {
5467
+ throw new runtime.RequiredError('getSubscriptionsQuery', 'Required parameter "getSubscriptionsQuery" was null or undefined when calling getSubscriptionsDelinquency().');
5468
+ }
5469
+ const queryParameters = {};
5470
+ const headerParameters = {};
5471
+ headerParameters['Content-Type'] = 'application/json';
5472
+ if (this.configuration && this.configuration.accessToken) {
5473
+ const token = this.configuration.accessToken;
5474
+ const tokenString = await token("bearer", []);
5475
+ if (tokenString) {
5476
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5477
+ }
5478
+ }
5479
+ const response = await this.request({
5480
+ path: `/api/org/subscriptions/queries`,
5481
+ method: 'POST',
5482
+ headers: headerParameters,
5483
+ query: queryParameters,
5484
+ body: (0, index_1.GetSubscriptionsQueryToJSON)(requestParameters['getSubscriptionsQuery']),
5485
+ }, initOverrides);
5486
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSubscriptionsDelinquency200ResponseFromJSON)(jsonValue));
5487
+ }
5488
+ /**
5489
+ */
5490
+ async getSubscriptionsDelinquency(requestParameters, initOverrides) {
5491
+ const response = await this.getSubscriptionsDelinquencyRaw(requestParameters, initOverrides);
5492
+ return await response.value();
5493
+ }
5362
5494
  /**
5363
5495
  */
5364
5496
  async getTaskDefinitionRaw(requestParameters, initOverrides) {
@@ -45,6 +45,24 @@ export interface DocumentComplete {
45
45
  * @memberof DocumentComplete
46
46
  */
47
47
  userId?: string;
48
+ /**
49
+ * Email address of the signer.
50
+ * @type {string}
51
+ * @memberof DocumentComplete
52
+ */
53
+ signerEmail?: string;
54
+ /**
55
+ * Name of the signer.
56
+ * @type {string}
57
+ * @memberof DocumentComplete
58
+ */
59
+ signerName?: string;
60
+ /**
61
+ * Role of the signer (e.g. operator, tenant).
62
+ * @type {string}
63
+ * @memberof DocumentComplete
64
+ */
65
+ signerRole?: string;
48
66
  /**
49
67
  * Whether all signatures have been gathered or not.
50
68
  * @type {boolean}
@@ -1 +1 @@
1
- {"version":3,"file":"document-complete.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document-complete.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAInF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAevG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBtH"}
1
+ {"version":3,"file":"document-complete.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document-complete.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAInF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAkBvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBtH"}
@@ -42,6 +42,9 @@ function DocumentCompleteFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'customerId': json['customerId'] == null ? undefined : json['customerId'],
43
43
  'contactId': json['contactId'] == null ? undefined : json['contactId'],
44
44
  'userId': json['userId'] == null ? undefined : json['userId'],
45
+ 'signerEmail': json['signerEmail'] == null ? undefined : json['signerEmail'],
46
+ 'signerName': json['signerName'] == null ? undefined : json['signerName'],
47
+ 'signerRole': json['signerRole'] == null ? undefined : json['signerRole'],
45
48
  'allSignaturesGathered': json['allSignaturesGathered'],
46
49
  'metadata': json['metadata'] == null ? undefined : json['metadata'],
47
50
  'fileUrl': json['fileUrl'],
@@ -60,6 +63,9 @@ function DocumentCompleteToJSONTyped(value, ignoreDiscriminator = false) {
60
63
  'customerId': value['customerId'],
61
64
  'contactId': value['contactId'],
62
65
  'userId': value['userId'],
66
+ 'signerEmail': value['signerEmail'],
67
+ 'signerName': value['signerName'],
68
+ 'signerRole': value['signerRole'],
63
69
  'allSignaturesGathered': value['allSignaturesGathered'],
64
70
  'metadata': value['metadata'],
65
71
  'fileUrl': value['fileUrl'],
@@ -0,0 +1,54 @@
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 { EmbedConfig } from './embed-config';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DocumentCreated
17
+ */
18
+ export interface DocumentCreated {
19
+ /**
20
+ * The success status of the operation.
21
+ * @type {boolean}
22
+ * @memberof DocumentCreated
23
+ */
24
+ success: boolean;
25
+ /**
26
+ * Provider-agnostic embed configuration for rendering the signing UI.
27
+ * @type {EmbedConfig}
28
+ * @memberof DocumentCreated
29
+ */
30
+ embedConfig?: EmbedConfig;
31
+ /**
32
+ * Per-signer embed configurations keyed by role (e.g. operator, tenant).
33
+ * @type {{ [key: string]: EmbedConfig; }}
34
+ * @memberof DocumentCreated
35
+ */
36
+ signerEmbedConfigs: {
37
+ [key: string]: EmbedConfig;
38
+ };
39
+ /**
40
+ * External document identifier from the signing provider.
41
+ * @type {string}
42
+ * @memberof DocumentCreated
43
+ */
44
+ documentId: string;
45
+ }
46
+ /**
47
+ * Check if a given object implements the DocumentCreated interface.
48
+ */
49
+ export declare function instanceOfDocumentCreated(value: object): value is DocumentCreated;
50
+ export declare function DocumentCreatedFromJSON(json: any): DocumentCreated;
51
+ export declare function DocumentCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentCreated;
52
+ export declare function DocumentCreatedToJSON(json: any): DocumentCreated;
53
+ export declare function DocumentCreatedToJSONTyped(value?: DocumentCreated | null, ignoreDiscriminator?: boolean): any;
54
+ //# sourceMappingURL=document-created.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-created.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document-created.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAKjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAWrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYpH"}
@@ -0,0 +1,63 @@
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
+ if (!('signerEmbedConfigs' in value) || value['signerEmbedConfigs'] === undefined)
31
+ return false;
32
+ if (!('documentId' in value) || value['documentId'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function DocumentCreatedFromJSON(json) {
37
+ return DocumentCreatedFromJSONTyped(json, false);
38
+ }
39
+ function DocumentCreatedFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'success': json['success'],
45
+ 'embedConfig': json['embedConfig'] == null ? undefined : (0, embed_config_1.EmbedConfigFromJSON)(json['embedConfig']),
46
+ 'signerEmbedConfigs': ((0, runtime_1.mapValues)(json['signerEmbedConfigs'], embed_config_1.EmbedConfigFromJSON)),
47
+ 'documentId': json['documentId'],
48
+ };
49
+ }
50
+ function DocumentCreatedToJSON(json) {
51
+ return DocumentCreatedToJSONTyped(json, false);
52
+ }
53
+ function DocumentCreatedToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'success': value['success'],
59
+ 'embedConfig': (0, embed_config_1.EmbedConfigToJSON)(value['embedConfig']),
60
+ 'signerEmbedConfigs': ((0, runtime_1.mapValues)(value['signerEmbedConfigs'], embed_config_1.EmbedConfigToJSON)),
61
+ 'documentId': value['documentId'],
62
+ };
63
+ }
@@ -0,0 +1,57 @@
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 | null;
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
@@ -0,0 +1 @@
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,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAO3F;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"}
@@ -0,0 +1,67 @@
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
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function DocumentStatusSignerFromJSON(json) {
39
+ return DocumentStatusSignerFromJSONTyped(json, false);
40
+ }
41
+ function DocumentStatusSignerFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'name': json['name'],
47
+ 'email': json['email'],
48
+ 'role': json['role'],
49
+ 'status': json['status'],
50
+ 'completedAt': json['completedAt'],
51
+ };
52
+ }
53
+ function DocumentStatusSignerToJSON(json) {
54
+ return DocumentStatusSignerToJSONTyped(json, false);
55
+ }
56
+ function DocumentStatusSignerToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'name': value['name'],
62
+ 'email': value['email'],
63
+ 'role': value['role'],
64
+ 'status': value['status'],
65
+ 'completedAt': value['completedAt'],
66
+ };
67
+ }
@@ -0,0 +1,52 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,64 @@
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
+ }
@@ -0,0 +1,53 @@
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
@@ -0,0 +1 @@
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"}