@managespace/sdk 0.0.203 → 0.0.205
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 +18 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +15 -0
- package/dist/generated/apis/default-api.d.ts +74 -10
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +232 -26
- package/dist/generated/models/asset-details.d.ts +14 -2
- package/dist/generated/models/asset-details.d.ts.map +1 -1
- package/dist/generated/models/asset-details.js +6 -2
- package/dist/generated/models/asset.d.ts +37 -0
- package/dist/generated/models/asset.d.ts.map +1 -1
- package/dist/generated/models/asset.js +21 -0
- package/dist/generated/models/create-payment.d.ts +2 -2
- package/dist/generated/models/create-payment.d.ts.map +1 -1
- package/dist/generated/models/create-payment.js +2 -6
- package/dist/generated/models/create-product-tax-group.d.ts +57 -0
- package/dist/generated/models/create-product-tax-group.d.ts.map +1 -0
- package/dist/generated/models/create-product-tax-group.js +59 -0
- package/dist/generated/models/create-task-definition.d.ts +0 -6
- package/dist/generated/models/create-task-definition.d.ts.map +1 -1
- package/dist/generated/models/create-task-definition.js +0 -2
- package/dist/generated/models/get-checklists200-response.d.ts +41 -0
- package/dist/generated/models/get-checklists200-response.d.ts.map +1 -0
- package/dist/generated/models/get-checklists200-response.js +55 -0
- package/dist/generated/models/get-product-tax-groups200-response.d.ts +41 -0
- package/dist/generated/models/get-product-tax-groups200-response.d.ts.map +1 -0
- package/dist/generated/models/get-product-tax-groups200-response.js +55 -0
- package/dist/generated/models/get-task-instances200-response.d.ts +41 -0
- package/dist/generated/models/get-task-instances200-response.d.ts.map +1 -0
- package/dist/generated/models/get-task-instances200-response.js +55 -0
- package/dist/generated/models/index.d.ts +5 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +5 -0
- package/dist/generated/models/payment.d.ts +2 -2
- package/dist/generated/models/payment.d.ts.map +1 -1
- package/dist/generated/models/payment.js +2 -6
- package/dist/generated/models/product-tax-group.d.ts +75 -0
- package/dist/generated/models/product-tax-group.d.ts.map +1 -0
- package/dist/generated/models/product-tax-group.js +71 -0
- package/dist/generated/models/task-definition.d.ts +0 -13
- package/dist/generated/models/task-definition.d.ts.map +1 -1
- package/dist/generated/models/task-definition.js +0 -7
- package/dist/generated/models/user.d.ts +18 -5
- package/dist/generated/models/user.d.ts.map +1 -1
- package/dist/generated/models/user.js +10 -5
- package/dist/generated/models/workflow-instance.d.ts +13 -0
- package/dist/generated/models/workflow-instance.d.ts.map +1 -1
- package/dist/generated/models/workflow-instance.js +7 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +20 -0
- package/src/generated/.openapi-generator/FILES +5 -0
- package/src/generated/apis/default-api.ts +368 -36
- package/src/generated/models/asset-details.ts +20 -4
- package/src/generated/models/asset.ts +59 -0
- package/src/generated/models/create-payment.ts +4 -6
- package/src/generated/models/create-product-tax-group.ts +98 -0
- package/src/generated/models/create-task-definition.ts +0 -8
- package/src/generated/models/get-checklists200-response.ts +89 -0
- package/src/generated/models/get-product-tax-groups200-response.ts +89 -0
- package/src/generated/models/get-task-instances200-response.ts +89 -0
- package/src/generated/models/index.ts +5 -0
- package/src/generated/models/payment.ts +4 -6
- package/src/generated/models/product-tax-group.ts +125 -0
- package/src/generated/models/task-definition.ts +0 -24
- package/src/generated/models/user.ts +38 -15
- package/src/generated/models/workflow-instance.ts +24 -0
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
SiteToJSON,
|
|
28
28
|
SiteToJSONTyped,
|
|
29
29
|
} from './site';
|
|
30
|
+
import type { User } from './user';
|
|
31
|
+
import {
|
|
32
|
+
UserFromJSON,
|
|
33
|
+
UserFromJSONTyped,
|
|
34
|
+
UserToJSON,
|
|
35
|
+
UserToJSONTyped,
|
|
36
|
+
} from './user';
|
|
30
37
|
import type { Org } from './org';
|
|
31
38
|
import {
|
|
32
39
|
OrgFromJSON,
|
|
@@ -178,6 +185,42 @@ export interface Asset {
|
|
|
178
185
|
* @memberof Asset
|
|
179
186
|
*/
|
|
180
187
|
note?: Array<Note>;
|
|
188
|
+
/**
|
|
189
|
+
* Who created the asset
|
|
190
|
+
* @type {User}
|
|
191
|
+
* @memberof Asset
|
|
192
|
+
*/
|
|
193
|
+
createdBy?: User;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof Asset
|
|
198
|
+
*/
|
|
199
|
+
createdById: string;
|
|
200
|
+
/**
|
|
201
|
+
* When the asset was created
|
|
202
|
+
* @type {Date}
|
|
203
|
+
* @memberof Asset
|
|
204
|
+
*/
|
|
205
|
+
createdAt: Date;
|
|
206
|
+
/**
|
|
207
|
+
* Who updated the asset
|
|
208
|
+
* @type {User}
|
|
209
|
+
* @memberof Asset
|
|
210
|
+
*/
|
|
211
|
+
updatedBy?: User | null;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {string}
|
|
215
|
+
* @memberof Asset
|
|
216
|
+
*/
|
|
217
|
+
updatedById: string | null;
|
|
218
|
+
/**
|
|
219
|
+
* When the asset was last updated
|
|
220
|
+
* @type {Date}
|
|
221
|
+
* @memberof Asset
|
|
222
|
+
*/
|
|
223
|
+
updatedAt: Date | null;
|
|
181
224
|
}
|
|
182
225
|
|
|
183
226
|
|
|
@@ -196,6 +239,10 @@ export function instanceOfAsset(value: object): value is Asset {
|
|
|
196
239
|
if (!('externalProductId' in value) || value['externalProductId'] === undefined) return false;
|
|
197
240
|
if (!('assetClassId' in value) || value['assetClassId'] === undefined) return false;
|
|
198
241
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
242
|
+
if (!('createdById' in value) || value['createdById'] === undefined) return false;
|
|
243
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
244
|
+
if (!('updatedById' in value) || value['updatedById'] === undefined) return false;
|
|
245
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
199
246
|
return true;
|
|
200
247
|
}
|
|
201
248
|
|
|
@@ -226,6 +273,12 @@ export function AssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ass
|
|
|
226
273
|
'assetFeatures': json['assetFeatures'] == null ? undefined : ((json['assetFeatures'] as Array<any>).map(AssetFeatureFromJSON)),
|
|
227
274
|
'metadata': json['metadata'],
|
|
228
275
|
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteFromJSON)),
|
|
276
|
+
'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
|
|
277
|
+
'createdById': json['createdById'],
|
|
278
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
279
|
+
'updatedBy': json['updatedBy'] == null ? undefined : UserFromJSON(json['updatedBy']),
|
|
280
|
+
'updatedById': json['updatedById'],
|
|
281
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
229
282
|
};
|
|
230
283
|
}
|
|
231
284
|
|
|
@@ -257,6 +310,12 @@ export function AssetToJSONTyped(value?: Asset | null, ignoreDiscriminator: bool
|
|
|
257
310
|
'assetFeatures': value['assetFeatures'] == null ? undefined : ((value['assetFeatures'] as Array<any>).map(AssetFeatureToJSON)),
|
|
258
311
|
'metadata': value['metadata'],
|
|
259
312
|
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteToJSON)),
|
|
313
|
+
'createdBy': UserToJSON(value['createdBy']),
|
|
314
|
+
'createdById': value['createdById'],
|
|
315
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
316
|
+
'updatedBy': UserToJSON(value['updatedBy']),
|
|
317
|
+
'updatedById': value['updatedById'],
|
|
318
|
+
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
260
319
|
};
|
|
261
320
|
}
|
|
262
321
|
|
|
@@ -57,7 +57,7 @@ export interface CreatePayment {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof CreatePayment
|
|
59
59
|
*/
|
|
60
|
-
status
|
|
60
|
+
status?: string;
|
|
61
61
|
/**
|
|
62
62
|
* Total amount of payment
|
|
63
63
|
* @type {string}
|
|
@@ -171,7 +171,7 @@ export interface CreatePayment {
|
|
|
171
171
|
* @type {string}
|
|
172
172
|
* @memberof CreatePayment
|
|
173
173
|
*/
|
|
174
|
-
glAccount
|
|
174
|
+
glAccount?: string;
|
|
175
175
|
/**
|
|
176
176
|
* Number of retry attempts made
|
|
177
177
|
* @type {number}
|
|
@@ -204,12 +204,10 @@ export interface CreatePayment {
|
|
|
204
204
|
export function instanceOfCreatePayment(value: object): value is CreatePayment {
|
|
205
205
|
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
206
206
|
if (!('paymentDate' in value) || value['paymentDate'] === undefined) return false;
|
|
207
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
208
207
|
if (!('paymentAmount' in value) || value['paymentAmount'] === undefined) return false;
|
|
209
208
|
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
210
209
|
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
211
210
|
if (!('autoApply' in value) || value['autoApply'] === undefined) return false;
|
|
212
|
-
if (!('glAccount' in value) || value['glAccount'] === undefined) return false;
|
|
213
211
|
return true;
|
|
214
212
|
}
|
|
215
213
|
|
|
@@ -226,7 +224,7 @@ export function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
226
224
|
'customerId': json['customerId'],
|
|
227
225
|
'paymentDate': json['paymentDate'],
|
|
228
226
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
229
|
-
'status': json['status'],
|
|
227
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
230
228
|
'paymentAmount': json['paymentAmount'],
|
|
231
229
|
'feeAmount': json['feeAmount'] == null ? undefined : json['feeAmount'],
|
|
232
230
|
'appliedAmount': json['appliedAmount'] == null ? undefined : json['appliedAmount'],
|
|
@@ -245,7 +243,7 @@ export function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
245
243
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
246
244
|
'invoices': json['invoices'] == null ? undefined : ((json['invoices'] as Array<any>).map(CreatePaymentInvoiceFromJSON)),
|
|
247
245
|
'refunds': json['refunds'] == null ? undefined : ((json['refunds'] as Array<any>).map(CreatePaymentRefundFromJSON)),
|
|
248
|
-
'glAccount': json['glAccount'],
|
|
246
|
+
'glAccount': json['glAccount'] == null ? undefined : json['glAccount'],
|
|
249
247
|
'retriedAttempts': json['retriedAttempts'] == null ? undefined : json['retriedAttempts'],
|
|
250
248
|
'gatewayName': json['gatewayName'] == null ? undefined : json['gatewayName'],
|
|
251
249
|
'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateProductTaxGroup
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateProductTaxGroup {
|
|
22
|
+
/**
|
|
23
|
+
* name of tax group
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateProductTaxGroup
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Note for tax group
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateProductTaxGroup
|
|
32
|
+
*/
|
|
33
|
+
notes?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Status of tax group
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateProductTaxGroup
|
|
38
|
+
*/
|
|
39
|
+
status?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Who created the product tax group
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateProductTaxGroup
|
|
44
|
+
*/
|
|
45
|
+
createdBy?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Who updated the product tax group
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateProductTaxGroup
|
|
50
|
+
*/
|
|
51
|
+
updatedBy?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CreateProductTaxGroup interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfCreateProductTaxGroup(value: object): value is CreateProductTaxGroup {
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CreateProductTaxGroupFromJSON(json: any): CreateProductTaxGroup {
|
|
63
|
+
return CreateProductTaxGroupFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function CreateProductTaxGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductTaxGroup {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'name': json['name'],
|
|
73
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
74
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
75
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
76
|
+
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function CreateProductTaxGroupToJSON(json: any): CreateProductTaxGroup {
|
|
81
|
+
return CreateProductTaxGroupToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function CreateProductTaxGroupToJSONTyped(value?: CreateProductTaxGroup | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'name': value['name'],
|
|
92
|
+
'notes': value['notes'],
|
|
93
|
+
'status': value['status'],
|
|
94
|
+
'createdBy': value['createdBy'],
|
|
95
|
+
'updatedBy': value['updatedBy'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -31,12 +31,6 @@ export interface CreateTaskDefinition {
|
|
|
31
31
|
* @memberof CreateTaskDefinition
|
|
32
32
|
*/
|
|
33
33
|
description?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
* Who task definition is assigned to
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CreateTaskDefinition
|
|
38
|
-
*/
|
|
39
|
-
assignedToUserId?: string | null;
|
|
40
34
|
/**
|
|
41
35
|
* When the task definition is due by
|
|
42
36
|
* @type {string}
|
|
@@ -66,7 +60,6 @@ export function CreateTaskDefinitionFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
66
60
|
|
|
67
61
|
'name': json['name'],
|
|
68
62
|
'description': json['description'] == null ? undefined : json['description'],
|
|
69
|
-
'assignedToUserId': json['assignedToUserId'] == null ? undefined : json['assignedToUserId'],
|
|
70
63
|
'dueBy': json['dueBy'],
|
|
71
64
|
};
|
|
72
65
|
}
|
|
@@ -84,7 +77,6 @@ export function CreateTaskDefinitionToJSONTyped(value?: CreateTaskDefinition | n
|
|
|
84
77
|
|
|
85
78
|
'name': value['name'],
|
|
86
79
|
'description': value['description'],
|
|
87
|
-
'assignedToUserId': value['assignedToUserId'],
|
|
88
80
|
'dueBy': value['dueBy'],
|
|
89
81
|
};
|
|
90
82
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PageMeta } from './page-meta';
|
|
17
|
+
import {
|
|
18
|
+
PageMetaFromJSON,
|
|
19
|
+
PageMetaFromJSONTyped,
|
|
20
|
+
PageMetaToJSON,
|
|
21
|
+
PageMetaToJSONTyped,
|
|
22
|
+
} from './page-meta';
|
|
23
|
+
import type { Checklist } from './checklist';
|
|
24
|
+
import {
|
|
25
|
+
ChecklistFromJSON,
|
|
26
|
+
ChecklistFromJSONTyped,
|
|
27
|
+
ChecklistToJSON,
|
|
28
|
+
ChecklistToJSONTyped,
|
|
29
|
+
} from './checklist';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetChecklists200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetChecklists200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof GetChecklists200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<Checklist>}
|
|
46
|
+
* @memberof GetChecklists200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<Checklist>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetChecklists200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetChecklists200Response(value: object): value is GetChecklists200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetChecklists200ResponseFromJSON(json: any): GetChecklists200Response {
|
|
60
|
+
return GetChecklists200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetChecklists200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetChecklists200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ChecklistFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetChecklists200ResponseToJSON(json: any): GetChecklists200Response {
|
|
75
|
+
return GetChecklists200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetChecklists200ResponseToJSONTyped(value?: GetChecklists200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ChecklistToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PageMeta } from './page-meta';
|
|
17
|
+
import {
|
|
18
|
+
PageMetaFromJSON,
|
|
19
|
+
PageMetaFromJSONTyped,
|
|
20
|
+
PageMetaToJSON,
|
|
21
|
+
PageMetaToJSONTyped,
|
|
22
|
+
} from './page-meta';
|
|
23
|
+
import type { ProductTaxGroup } from './product-tax-group';
|
|
24
|
+
import {
|
|
25
|
+
ProductTaxGroupFromJSON,
|
|
26
|
+
ProductTaxGroupFromJSONTyped,
|
|
27
|
+
ProductTaxGroupToJSON,
|
|
28
|
+
ProductTaxGroupToJSONTyped,
|
|
29
|
+
} from './product-tax-group';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetProductTaxGroups200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetProductTaxGroups200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof GetProductTaxGroups200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ProductTaxGroup>}
|
|
46
|
+
* @memberof GetProductTaxGroups200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<ProductTaxGroup>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetProductTaxGroups200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetProductTaxGroups200Response(value: object): value is GetProductTaxGroups200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetProductTaxGroups200ResponseFromJSON(json: any): GetProductTaxGroups200Response {
|
|
60
|
+
return GetProductTaxGroups200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetProductTaxGroups200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductTaxGroups200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ProductTaxGroupFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetProductTaxGroups200ResponseToJSON(json: any): GetProductTaxGroups200Response {
|
|
75
|
+
return GetProductTaxGroups200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetProductTaxGroups200ResponseToJSONTyped(value?: GetProductTaxGroups200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ProductTaxGroupToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TaskInstance } from './task-instance';
|
|
17
|
+
import {
|
|
18
|
+
TaskInstanceFromJSON,
|
|
19
|
+
TaskInstanceFromJSONTyped,
|
|
20
|
+
TaskInstanceToJSON,
|
|
21
|
+
TaskInstanceToJSONTyped,
|
|
22
|
+
} from './task-instance';
|
|
23
|
+
import type { PageMeta } from './page-meta';
|
|
24
|
+
import {
|
|
25
|
+
PageMetaFromJSON,
|
|
26
|
+
PageMetaFromJSONTyped,
|
|
27
|
+
PageMetaToJSON,
|
|
28
|
+
PageMetaToJSONTyped,
|
|
29
|
+
} from './page-meta';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetTaskInstances200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetTaskInstances200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof GetTaskInstances200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<TaskInstance>}
|
|
46
|
+
* @memberof GetTaskInstances200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<TaskInstance>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetTaskInstances200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetTaskInstances200Response(value: object): value is GetTaskInstances200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetTaskInstances200ResponseFromJSON(json: any): GetTaskInstances200Response {
|
|
60
|
+
return GetTaskInstances200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetTaskInstances200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTaskInstances200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(TaskInstanceFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetTaskInstances200ResponseToJSON(json: any): GetTaskInstances200Response {
|
|
75
|
+
return GetTaskInstances200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetTaskInstances200ResponseToJSONTyped(value?: GetTaskInstances200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(TaskInstanceToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -48,6 +48,7 @@ export * from './create-payment-refund';
|
|
|
48
48
|
export * from './create-payment-run';
|
|
49
49
|
export * from './create-plan-charge';
|
|
50
50
|
export * from './create-product-custom';
|
|
51
|
+
export * from './create-product-tax-group';
|
|
51
52
|
export * from './create-revenue-rule';
|
|
52
53
|
export * from './create-site-custom';
|
|
53
54
|
export * from './create-smart-bar-prompt';
|
|
@@ -88,6 +89,7 @@ export * from './get-calendar-events-query';
|
|
|
88
89
|
export * from './get-calendars200-response';
|
|
89
90
|
export * from './get-charges200-response';
|
|
90
91
|
export * from './get-chart-of-accounts200-response';
|
|
92
|
+
export * from './get-checklists200-response';
|
|
91
93
|
export * from './get-communications200-response';
|
|
92
94
|
export * from './get-configuration-settings200-response';
|
|
93
95
|
export * from './get-contacts200-response';
|
|
@@ -103,12 +105,14 @@ export * from './get-payment-runs200-response';
|
|
|
103
105
|
export * from './get-payments200-response';
|
|
104
106
|
export * from './get-plans200-response';
|
|
105
107
|
export * from './get-plugins200-response';
|
|
108
|
+
export * from './get-product-tax-groups200-response';
|
|
106
109
|
export * from './get-products200-response';
|
|
107
110
|
export * from './get-revenue-rules200-response';
|
|
108
111
|
export * from './get-sites200-response';
|
|
109
112
|
export * from './get-statements200-response';
|
|
110
113
|
export * from './get-subscriptions200-response';
|
|
111
114
|
export * from './get-task-definitions200-response';
|
|
115
|
+
export * from './get-task-instances200-response';
|
|
112
116
|
export * from './get-templates200-response';
|
|
113
117
|
export * from './get-users200-response';
|
|
114
118
|
export * from './get-workflow-definitions200-response';
|
|
@@ -144,6 +148,7 @@ export * from './plugin-extensibility-function-metadata';
|
|
|
144
148
|
export * from './plugin-extensibility-status';
|
|
145
149
|
export * from './plugin-version';
|
|
146
150
|
export * from './product-custom';
|
|
151
|
+
export * from './product-tax-group';
|
|
147
152
|
export * from './project';
|
|
148
153
|
export * from './project1';
|
|
149
154
|
export * from './project2';
|
|
@@ -57,7 +57,7 @@ export interface Payment {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof Payment
|
|
59
59
|
*/
|
|
60
|
-
status
|
|
60
|
+
status?: string;
|
|
61
61
|
/**
|
|
62
62
|
* Total amount of payment
|
|
63
63
|
* @type {string}
|
|
@@ -171,7 +171,7 @@ export interface Payment {
|
|
|
171
171
|
* @type {string}
|
|
172
172
|
* @memberof Payment
|
|
173
173
|
*/
|
|
174
|
-
glAccount
|
|
174
|
+
glAccount?: string;
|
|
175
175
|
/**
|
|
176
176
|
* Number of retry attempts made
|
|
177
177
|
* @type {number}
|
|
@@ -252,12 +252,10 @@ export interface Payment {
|
|
|
252
252
|
export function instanceOfPayment(value: object): value is Payment {
|
|
253
253
|
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
254
254
|
if (!('paymentDate' in value) || value['paymentDate'] === undefined) return false;
|
|
255
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
256
255
|
if (!('paymentAmount' in value) || value['paymentAmount'] === undefined) return false;
|
|
257
256
|
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
258
257
|
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
259
258
|
if (!('autoApply' in value) || value['autoApply'] === undefined) return false;
|
|
260
|
-
if (!('glAccount' in value) || value['glAccount'] === undefined) return false;
|
|
261
259
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
262
260
|
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
263
261
|
if (!('conversionRate' in value) || value['conversionRate'] === undefined) return false;
|
|
@@ -282,7 +280,7 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
282
280
|
'customerId': json['customerId'],
|
|
283
281
|
'paymentDate': json['paymentDate'],
|
|
284
282
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
285
|
-
'status': json['status'],
|
|
283
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
286
284
|
'paymentAmount': json['paymentAmount'],
|
|
287
285
|
'feeAmount': json['feeAmount'] == null ? undefined : json['feeAmount'],
|
|
288
286
|
'appliedAmount': json['appliedAmount'] == null ? undefined : json['appliedAmount'],
|
|
@@ -301,7 +299,7 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
301
299
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
302
300
|
'invoices': json['invoices'] == null ? undefined : ((json['invoices'] as Array<any>).map(CreatePaymentInvoiceFromJSON)),
|
|
303
301
|
'refunds': json['refunds'] == null ? undefined : ((json['refunds'] as Array<any>).map(CreatePaymentRefundFromJSON)),
|
|
304
|
-
'glAccount': json['glAccount'],
|
|
302
|
+
'glAccount': json['glAccount'] == null ? undefined : json['glAccount'],
|
|
305
303
|
'retriedAttempts': json['retriedAttempts'] == null ? undefined : json['retriedAttempts'],
|
|
306
304
|
'gatewayName': json['gatewayName'] == null ? undefined : json['gatewayName'],
|
|
307
305
|
'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],
|