@managespace/sdk 0.1.3 → 0.1.5
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/billing.d.ts +26 -2
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +15 -0
- package/dist/extensibility/functions/project/document.d.ts +14 -1
- package/dist/extensibility/functions/project/document.d.ts.map +1 -1
- package/dist/extensibility/functions/project/document.js +10 -0
- package/dist/extensibility/types/workflow-step.d.ts +4 -0
- package/dist/extensibility/types/workflow-step.d.ts.map +1 -1
- package/dist/extensibility/workflow/workflow-step.d.ts +1 -0
- package/dist/extensibility/workflow/workflow-step.d.ts.map +1 -1
- package/dist/extensibility/workflow/workflow-step.js +6 -5
- package/dist/extensibility/workflow/workflow.d.ts +2 -0
- package/dist/extensibility/workflow/workflow.d.ts.map +1 -1
- package/dist/extensibility/workflow/workflow.js +1 -4
- package/dist/generated/apis/default-api.d.ts +82 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +265 -2
- package/dist/generated/models/create-subscription.d.ts +166 -4
- package/dist/generated/models/create-subscription.d.ts.map +1 -1
- package/dist/generated/models/create-subscription.js +58 -12
- 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 +4 -0
- package/dist/generated/models/document-url.d.ts +39 -0
- package/dist/generated/models/document-url.d.ts.map +1 -0
- package/dist/generated/models/document-url.js +55 -0
- package/dist/generated/models/document.d.ts +39 -0
- package/dist/generated/models/document.d.ts.map +1 -0
- package/dist/generated/models/document.js +55 -0
- package/dist/generated/models/get-documents200-response.d.ts +41 -0
- package/dist/generated/models/get-documents200-response.d.ts.map +1 -0
- package/dist/generated/models/get-documents200-response.js +55 -0
- package/dist/generated/models/index.d.ts +10 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +10 -0
- package/dist/generated/models/subscription-invoice-line.d.ts +117 -0
- package/dist/generated/models/subscription-invoice-line.d.ts.map +1 -0
- package/dist/generated/models/subscription-invoice-line.js +107 -0
- package/dist/generated/models/subscription-invoice.d.ts +58 -0
- package/dist/generated/models/subscription-invoice.d.ts.map +1 -0
- package/dist/generated/models/subscription-invoice.js +68 -0
- package/dist/generated/models/subscription-preview.d.ts +317 -0
- package/dist/generated/models/subscription-preview.d.ts.map +1 -0
- package/dist/generated/models/subscription-preview.js +177 -0
- package/dist/generated/models/subscription.d.ts +120 -78
- package/dist/generated/models/subscription.d.ts.map +1 -1
- package/dist/generated/models/subscription.js +56 -90
- package/dist/generated/models/update-subscription-charge.d.ts +293 -0
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -0
- package/dist/generated/models/update-subscription-charge.js +149 -0
- package/dist/generated/models/update-subscription.d.ts +226 -0
- package/dist/generated/models/update-subscription.d.ts.map +1 -0
- package/dist/generated/models/update-subscription.js +118 -0
- package/dist/generated/models/upload-document.d.ts +45 -0
- package/dist/generated/models/upload-document.d.ts.map +1 -0
- package/dist/generated/models/upload-document.js +55 -0
- package/dist/generated/models/uploaded-document.d.ts +33 -0
- package/dist/generated/models/uploaded-document.d.ts.map +1 -0
- package/dist/generated/models/uploaded-document.js +51 -0
- package/dist/generated/models/uploaded-documents.d.ts +45 -0
- package/dist/generated/models/uploaded-documents.d.ts.map +1 -0
- package/dist/generated/models/uploaded-documents.js +59 -0
- package/dist/generated/models/workflow-instance.d.ts +6 -0
- package/dist/generated/models/workflow-instance.d.ts.map +1 -1
- package/dist/generated/models/workflow-instance.js +4 -0
- package/package.json +14 -3
- package/package.publish.json +33 -0
- package/package.temp.json +22 -0
- package/src/extensibility/functions/project/billing.ts +28 -2
- package/src/extensibility/functions/project/document.ts +9 -0
- package/src/extensibility/types/workflow-step.ts +4 -0
- package/src/extensibility/workflow/workflow-step.ts +7 -6
- package/src/extensibility/workflow/workflow.ts +2 -6
- package/src/generated/.openapi-generator/FILES +10 -0
- package/src/generated/apis/default-api.ts +433 -2
- package/src/generated/models/create-subscription.ts +224 -12
- package/src/generated/models/document-signed.ts +9 -0
- package/src/generated/models/document-url.ts +75 -0
- package/src/generated/models/document.ts +75 -0
- package/src/generated/models/get-documents200-response.ts +89 -0
- package/src/generated/models/index.ts +10 -0
- package/src/generated/models/subscription-invoice-line.ts +192 -0
- package/src/generated/models/subscription-invoice.ts +110 -0
- package/src/generated/models/subscription-preview.ts +472 -0
- package/src/generated/models/subscription.ts +175 -143
- package/src/generated/models/update-subscription-charge.ts +430 -0
- package/src/generated/models/update-subscription.ts +331 -0
- package/src/generated/models/upload-document.ts +82 -0
- package/src/generated/models/uploaded-document.ts +66 -0
- package/src/generated/models/uploaded-documents.ts +84 -0
- package/src/generated/models/workflow-instance.ts +9 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateSubscriptionToJSONTyped = exports.UpdateSubscriptionToJSON = exports.UpdateSubscriptionFromJSONTyped = exports.UpdateSubscriptionFromJSON = exports.instanceOfUpdateSubscription = void 0;
|
|
17
|
+
const update_subscription_charge_1 = require("./update-subscription-charge");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateSubscription interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateSubscription(value) {
|
|
22
|
+
if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('charges' in value) || value['charges'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfUpdateSubscription = instanceOfUpdateSubscription;
|
|
29
|
+
function UpdateSubscriptionFromJSON(json) {
|
|
30
|
+
return UpdateSubscriptionFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.UpdateSubscriptionFromJSON = UpdateSubscriptionFromJSON;
|
|
33
|
+
function UpdateSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
39
|
+
'billingStartDate': json['billingStartDate'] == null ? undefined : json['billingStartDate'],
|
|
40
|
+
'serviceStartDate': json['serviceStartDate'] == null ? undefined : json['serviceStartDate'],
|
|
41
|
+
'orderPlacedAt': json['orderPlacedAt'] == null ? undefined : json['orderPlacedAt'],
|
|
42
|
+
'cancellationDate': json['cancellationDate'] == null ? undefined : json['cancellationDate'],
|
|
43
|
+
'cancellationType': json['cancellationType'] == null ? undefined : json['cancellationType'],
|
|
44
|
+
'autoRenew': json['autoRenew'] == null ? undefined : json['autoRenew'],
|
|
45
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
46
|
+
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
47
|
+
'cmrr': json['cmrr'] == null ? undefined : json['cmrr'],
|
|
48
|
+
'discountedCmrr': json['discountedCmrr'] == null ? undefined : json['discountedCmrr'],
|
|
49
|
+
'separateInvoice': json['separateInvoice'] == null ? undefined : json['separateInvoice'],
|
|
50
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
51
|
+
'couponCode': json['couponCode'] == null ? undefined : json['couponCode'],
|
|
52
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
53
|
+
'versionType': json['versionType'] == null ? undefined : json['versionType'],
|
|
54
|
+
'contractTerm': json['contractTerm'] == null ? undefined : json['contractTerm'],
|
|
55
|
+
'renewalTerm': json['renewalTerm'] == null ? undefined : json['renewalTerm'],
|
|
56
|
+
'currentTermStartDate': json['currentTermStartDate'] == null ? undefined : json['currentTermStartDate'],
|
|
57
|
+
'currentTermEndDate': json['currentTermEndDate'] == null ? undefined : json['currentTermEndDate'],
|
|
58
|
+
'renewalIncrementPercent': json['renewalIncrementPercent'] == null ? undefined : json['renewalIncrementPercent'],
|
|
59
|
+
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
60
|
+
'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
|
|
61
|
+
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
62
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
63
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
65
|
+
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
66
|
+
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
67
|
+
'tcv': json['tcv'] == null ? undefined : json['tcv'],
|
|
68
|
+
'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
|
|
69
|
+
'contractEffectiveDate': json['contractEffectiveDate'],
|
|
70
|
+
'charges': (json['charges'].map(update_subscription_charge_1.UpdateSubscriptionChargeFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
exports.UpdateSubscriptionFromJSONTyped = UpdateSubscriptionFromJSONTyped;
|
|
74
|
+
function UpdateSubscriptionToJSON(json) {
|
|
75
|
+
return UpdateSubscriptionToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
exports.UpdateSubscriptionToJSON = UpdateSubscriptionToJSON;
|
|
78
|
+
function UpdateSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'status': value['status'],
|
|
84
|
+
'billingStartDate': value['billingStartDate'],
|
|
85
|
+
'serviceStartDate': value['serviceStartDate'],
|
|
86
|
+
'orderPlacedAt': value['orderPlacedAt'],
|
|
87
|
+
'cancellationDate': value['cancellationDate'],
|
|
88
|
+
'cancellationType': value['cancellationType'],
|
|
89
|
+
'autoRenew': value['autoRenew'],
|
|
90
|
+
'currency': value['currency'],
|
|
91
|
+
'paymentTerms': value['paymentTerms'],
|
|
92
|
+
'cmrr': value['cmrr'],
|
|
93
|
+
'discountedCmrr': value['discountedCmrr'],
|
|
94
|
+
'separateInvoice': value['separateInvoice'],
|
|
95
|
+
'notes': value['notes'],
|
|
96
|
+
'couponCode': value['couponCode'],
|
|
97
|
+
'version': value['version'],
|
|
98
|
+
'versionType': value['versionType'],
|
|
99
|
+
'contractTerm': value['contractTerm'],
|
|
100
|
+
'renewalTerm': value['renewalTerm'],
|
|
101
|
+
'currentTermStartDate': value['currentTermStartDate'],
|
|
102
|
+
'currentTermEndDate': value['currentTermEndDate'],
|
|
103
|
+
'renewalIncrementPercent': value['renewalIncrementPercent'],
|
|
104
|
+
'assetId': value['assetId'],
|
|
105
|
+
'billContactId': value['billContactId'],
|
|
106
|
+
'shippingContactId': value['shippingContactId'],
|
|
107
|
+
'updatedAt': value['updatedAt'],
|
|
108
|
+
'createdAt': value['createdAt'],
|
|
109
|
+
'createdBy': value['createdBy'],
|
|
110
|
+
'updatedBy': value['updatedBy'],
|
|
111
|
+
'customFields': value['customFields'],
|
|
112
|
+
'tcv': value['tcv'],
|
|
113
|
+
'deferStartDate': value['deferStartDate'],
|
|
114
|
+
'contractEffectiveDate': value['contractEffectiveDate'],
|
|
115
|
+
'charges': (value['charges'].map(update_subscription_charge_1.UpdateSubscriptionChargeToJSON)),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
exports.UpdateSubscriptionToJSONTyped = UpdateSubscriptionToJSONTyped;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 UploadDocument
|
|
16
|
+
*/
|
|
17
|
+
export interface UploadDocument {
|
|
18
|
+
/**
|
|
19
|
+
* Base64 encoded document
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UploadDocument
|
|
22
|
+
*/
|
|
23
|
+
file: string;
|
|
24
|
+
/**
|
|
25
|
+
* The Site Id
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UploadDocument
|
|
28
|
+
*/
|
|
29
|
+
siteId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The name or id of the document
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UploadDocument
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UploadDocument interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUploadDocument(value: object): value is UploadDocument;
|
|
41
|
+
export declare function UploadDocumentFromJSON(json: any): UploadDocument;
|
|
42
|
+
export declare function UploadDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadDocument;
|
|
43
|
+
export declare function UploadDocumentToJSON(json: any): UploadDocument;
|
|
44
|
+
export declare function UploadDocumentToJSONTyped(value?: UploadDocument | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
//# sourceMappingURL=upload-document.d.ts.map
|
|
@@ -0,0 +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;CACjB;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,CAUnG;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,CAWlH"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UploadDocumentToJSONTyped = exports.UploadDocumentToJSON = exports.UploadDocumentFromJSONTyped = exports.UploadDocumentFromJSON = exports.instanceOfUploadDocument = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UploadDocument interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUploadDocument(value) {
|
|
21
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfUploadDocument = instanceOfUploadDocument;
|
|
26
|
+
function UploadDocumentFromJSON(json) {
|
|
27
|
+
return UploadDocumentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.UploadDocumentFromJSON = UploadDocumentFromJSON;
|
|
30
|
+
function UploadDocumentFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'file': json['file'],
|
|
36
|
+
'siteId': json['siteId'] == null ? undefined : json['siteId'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.UploadDocumentFromJSONTyped = UploadDocumentFromJSONTyped;
|
|
41
|
+
function UploadDocumentToJSON(json) {
|
|
42
|
+
return UploadDocumentToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
exports.UploadDocumentToJSON = UploadDocumentToJSON;
|
|
45
|
+
function UploadDocumentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'file': value['file'],
|
|
51
|
+
'siteId': value['siteId'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.UploadDocumentToJSONTyped = UploadDocumentToJSONTyped;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 UploadedDocument
|
|
16
|
+
*/
|
|
17
|
+
export interface UploadedDocument {
|
|
18
|
+
/**
|
|
19
|
+
* Base64 encoded document
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UploadedDocument
|
|
22
|
+
*/
|
|
23
|
+
file: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UploadedDocument interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUploadedDocument(value: object): value is UploadedDocument;
|
|
29
|
+
export declare function UploadedDocumentFromJSON(json: any): UploadedDocument;
|
|
30
|
+
export declare function UploadedDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadedDocument;
|
|
31
|
+
export declare function UploadedDocumentToJSON(json: any): UploadedDocument;
|
|
32
|
+
export declare function UploadedDocumentToJSONTyped(value?: UploadedDocument | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
//# sourceMappingURL=uploaded-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploaded-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/uploaded-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAGnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAQvG;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,CAStH"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UploadedDocumentToJSONTyped = exports.UploadedDocumentToJSON = exports.UploadedDocumentFromJSONTyped = exports.UploadedDocumentFromJSON = exports.instanceOfUploadedDocument = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UploadedDocument interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUploadedDocument(value) {
|
|
21
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfUploadedDocument = instanceOfUploadedDocument;
|
|
26
|
+
function UploadedDocumentFromJSON(json) {
|
|
27
|
+
return UploadedDocumentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.UploadedDocumentFromJSON = UploadedDocumentFromJSON;
|
|
30
|
+
function UploadedDocumentFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'file': json['file'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.UploadedDocumentFromJSONTyped = UploadedDocumentFromJSONTyped;
|
|
39
|
+
function UploadedDocumentToJSON(json) {
|
|
40
|
+
return UploadedDocumentToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
exports.UploadedDocumentToJSON = UploadedDocumentToJSON;
|
|
43
|
+
function UploadedDocumentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'file': value['file'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.UploadedDocumentToJSONTyped = UploadedDocumentToJSONTyped;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 UploadedDocuments
|
|
16
|
+
*/
|
|
17
|
+
export interface UploadedDocuments {
|
|
18
|
+
/**
|
|
19
|
+
* List of file names/IDs
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof UploadedDocuments
|
|
22
|
+
*/
|
|
23
|
+
files: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* List of folder names
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof UploadedDocuments
|
|
28
|
+
*/
|
|
29
|
+
folders: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The current folder
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UploadedDocuments
|
|
34
|
+
*/
|
|
35
|
+
currentFolder: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UploadedDocuments interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUploadedDocuments(value: object): value is UploadedDocuments;
|
|
41
|
+
export declare function UploadedDocumentsFromJSON(json: any): UploadedDocuments;
|
|
42
|
+
export declare function UploadedDocumentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadedDocuments;
|
|
43
|
+
export declare function UploadedDocumentsToJSON(json: any): UploadedDocuments;
|
|
44
|
+
export declare function UploadedDocumentsToJSONTyped(value?: UploadedDocuments | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
//# sourceMappingURL=uploaded-documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploaded-documents.d.ts","sourceRoot":"","sources":["../../../src/generated/models/uploaded-documents.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAKrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UploadedDocumentsToJSONTyped = exports.UploadedDocumentsToJSON = exports.UploadedDocumentsFromJSONTyped = exports.UploadedDocumentsFromJSON = exports.instanceOfUploadedDocuments = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UploadedDocuments interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUploadedDocuments(value) {
|
|
21
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('folders' in value) || value['folders'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('currentFolder' in value) || value['currentFolder'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfUploadedDocuments = instanceOfUploadedDocuments;
|
|
30
|
+
function UploadedDocumentsFromJSON(json) {
|
|
31
|
+
return UploadedDocumentsFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.UploadedDocumentsFromJSON = UploadedDocumentsFromJSON;
|
|
34
|
+
function UploadedDocumentsFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'files': json['files'],
|
|
40
|
+
'folders': json['folders'],
|
|
41
|
+
'currentFolder': json['currentFolder'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.UploadedDocumentsFromJSONTyped = UploadedDocumentsFromJSONTyped;
|
|
45
|
+
function UploadedDocumentsToJSON(json) {
|
|
46
|
+
return UploadedDocumentsToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
exports.UploadedDocumentsToJSON = UploadedDocumentsToJSON;
|
|
49
|
+
function UploadedDocumentsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'files': value['files'],
|
|
55
|
+
'folders': value['folders'],
|
|
56
|
+
'currentFolder': value['currentFolder'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.UploadedDocumentsToJSONTyped = UploadedDocumentsToJSONTyped;
|
|
@@ -58,6 +58,12 @@ export interface WorkflowInstance {
|
|
|
58
58
|
* @memberof WorkflowInstance
|
|
59
59
|
*/
|
|
60
60
|
triggeringEventId: string;
|
|
61
|
+
/**
|
|
62
|
+
* A description of the workflow
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof WorkflowInstance
|
|
65
|
+
*/
|
|
66
|
+
description: string | null;
|
|
61
67
|
/**
|
|
62
68
|
* When the instance started running
|
|
63
69
|
* @type {Date}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-instance.d.ts","sourceRoot":"","sources":["../../../src/generated/models/workflow-instance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAOhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAOrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAQxD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACpC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC5B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,
|
|
1
|
+
{"version":3,"file":"workflow-instance.d.ts","sourceRoot":"","sources":["../../../src/generated/models/workflow-instance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAOhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAOrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAQxD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACpC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC5B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAanF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAwBvG;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,CAyBtH"}
|
|
@@ -33,6 +33,8 @@ function instanceOfWorkflowInstance(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('triggeringEventId' in value) || value['triggeringEventId'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('finishedAt' in value) || value['finishedAt'] === undefined)
|
|
@@ -63,6 +65,7 @@ function WorkflowInstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
65
|
'site': json['site'] == null ? undefined : (0, site_1.SiteFromJSON)(json['site']),
|
|
64
66
|
'siteId': json['siteId'],
|
|
65
67
|
'triggeringEventId': json['triggeringEventId'],
|
|
68
|
+
'description': json['description'],
|
|
66
69
|
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
67
70
|
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
68
71
|
'workflowDefinition': json['workflowDefinition'] == null ? undefined : (0, workflow_definition_1.WorkflowDefinitionFromJSON)(json['workflowDefinition']),
|
|
@@ -91,6 +94,7 @@ function WorkflowInstanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
91
94
|
'site': (0, site_1.SiteToJSON)(value['site']),
|
|
92
95
|
'siteId': value['siteId'],
|
|
93
96
|
'triggeringEventId': value['triggeringEventId'],
|
|
97
|
+
'description': value['description'],
|
|
94
98
|
'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
|
|
95
99
|
'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
|
|
96
100
|
'workflowDefinition': (0, workflow_definition_1.WorkflowDefinitionToJSON)(value['workflowDefinition']),
|
package/package.json
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"scripts": {
|
|
5
|
+
"dev": "tsc -w --preserveWatchOutput",
|
|
6
|
+
"build": "tsc",
|
|
5
7
|
"lint:check": "eslint .",
|
|
6
8
|
"lint:fix": "eslint --fix .",
|
|
7
|
-
"upload": "tsc && npm
|
|
9
|
+
"upload": "tsc && npm publish"
|
|
8
10
|
},
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
9
13
|
"exports": {
|
|
10
|
-
".":
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./*": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
11
22
|
},
|
|
12
23
|
"dependencies": {
|
|
13
24
|
"tslib": "^2.4.0",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@managespace/sdk",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "tsc -w --preserveWatchOutput",
|
|
6
|
+
"build": "tsc",
|
|
7
|
+
"lint:check": "eslint .",
|
|
8
|
+
"lint:fix": "eslint --fix .",
|
|
9
|
+
"upload": "tsc && npm publish"
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./*": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"tslib": "^2.4.0",
|
|
25
|
+
"zod": "^3.23.8"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^12",
|
|
29
|
+
"typescript": "^4.0",
|
|
30
|
+
"@repo/eslint-config": "*",
|
|
31
|
+
"@repo/typescript-config": "*"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@managespace/sdk",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"lint:check": "eslint .",
|
|
6
|
+
"lint:fix": "eslint --fix .",
|
|
7
|
+
"upload": "tsc && cp package.json package.temp.json && cp package.publish.json package.json && npm version patch --force && npm publish && cp package.json package.publish.json && cp package.temp.json package.json"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./src/index.ts"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"tslib": "^2.4.0",
|
|
14
|
+
"zod": "^3.23.8"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/node": "^12",
|
|
18
|
+
"typescript": "^4.0",
|
|
19
|
+
"@repo/eslint-config": "*",
|
|
20
|
+
"@repo/typescript-config": "*"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -27,6 +27,8 @@ import {
|
|
|
27
27
|
CreateOrder as _CreateOrder,
|
|
28
28
|
PlanCustom,
|
|
29
29
|
CreateSubscription as _CreateSubscription,
|
|
30
|
+
SubscriptionPreview,
|
|
31
|
+
UpdateSubscription as _UpdateSubscription,
|
|
30
32
|
} from '../../../generated';
|
|
31
33
|
import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
|
|
32
34
|
import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
|
|
@@ -260,7 +262,7 @@ export namespace Billing {
|
|
|
260
262
|
export class CancelSubscription implements ExtPlugin {
|
|
261
263
|
responseType!: Subscription;
|
|
262
264
|
payload!: {
|
|
263
|
-
|
|
265
|
+
siteId: string;
|
|
264
266
|
subscriptionId: string;
|
|
265
267
|
cancelSubscriptionPayload: _CancelSubscription;
|
|
266
268
|
};
|
|
@@ -276,7 +278,7 @@ export namespace Billing {
|
|
|
276
278
|
|
|
277
279
|
export class CreateOrder implements ExtPlugin {
|
|
278
280
|
responseType!: Order;
|
|
279
|
-
payload!: _CreateOrder;
|
|
281
|
+
payload!: { siteId: string } & _CreateOrder;
|
|
280
282
|
}
|
|
281
283
|
|
|
282
284
|
export class GetOrder implements ExtPlugin {
|
|
@@ -290,4 +292,28 @@ export namespace Billing {
|
|
|
290
292
|
responseType!: Order[];
|
|
291
293
|
payload!: BasePaginationQuery & { status?: string };
|
|
292
294
|
}
|
|
295
|
+
|
|
296
|
+
export class GetPreview implements ExtPlugin {
|
|
297
|
+
responseType!: SubscriptionPreview;
|
|
298
|
+
payload!: {
|
|
299
|
+
siteId: string;
|
|
300
|
+
id: string;
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export class ActivateSubscription implements ExtPlugin {
|
|
305
|
+
responseType!: Subscription;
|
|
306
|
+
payload!: {
|
|
307
|
+
siteId: string;
|
|
308
|
+
subscriptionId: string;
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export class UpdateSubscription implements ExtPlugin {
|
|
313
|
+
responseType!: Subscription;
|
|
314
|
+
payload!: {
|
|
315
|
+
siteId: string;
|
|
316
|
+
subscriptionId: string;
|
|
317
|
+
} & _UpdateSubscription;
|
|
318
|
+
}
|
|
293
319
|
}
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
DocumentSigned,
|
|
5
5
|
Success,
|
|
6
6
|
Template,
|
|
7
|
+
DocumentUrl,
|
|
7
8
|
} from '../../../generated';
|
|
8
9
|
import { CreateTemplate as CreateTemplatePayload } from '../../../generated/models/create-template';
|
|
9
10
|
import { ExtPlugin } from '../../types';
|
|
@@ -14,6 +15,14 @@ export namespace Document {
|
|
|
14
15
|
responseType!: Success;
|
|
15
16
|
payload!: CreateDocument & { siteId: string };
|
|
16
17
|
}
|
|
18
|
+
export class GetDocuments implements ExtPlugin {
|
|
19
|
+
responseType!: DocumentUrl[];
|
|
20
|
+
payload!: { siteId: string } & BasePaginationQuery;
|
|
21
|
+
}
|
|
22
|
+
export class GetDocument implements ExtPlugin {
|
|
23
|
+
responseType!: DocumentUrl;
|
|
24
|
+
payload!: { siteId: string; documentId: string };
|
|
25
|
+
}
|
|
17
26
|
export class CreateTemplate implements ExtPlugin {
|
|
18
27
|
responseType!: Template;
|
|
19
28
|
payload!: CreateTemplatePayload & { siteId?: string };
|