@managespace/sdk 0.1.46 → 0.1.48

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 (34) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +2 -1
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +2 -2
  4. package/dist/generated/apis/default-api.d.ts +12 -11
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +37 -32
  7. package/dist/generated/models/create-subscription.d.ts +0 -24
  8. package/dist/generated/models/create-subscription.d.ts.map +1 -1
  9. package/dist/generated/models/create-subscription.js +0 -8
  10. package/dist/generated/models/index.d.ts +1 -0
  11. package/dist/generated/models/index.d.ts.map +1 -1
  12. package/dist/generated/models/index.js +1 -0
  13. package/dist/generated/models/preview-subscription.d.ts +34 -0
  14. package/dist/generated/models/preview-subscription.d.ts.map +1 -0
  15. package/dist/generated/models/preview-subscription.js +50 -0
  16. package/dist/generated/models/subscription-preview.d.ts +24 -24
  17. package/dist/generated/models/subscription-preview.d.ts.map +1 -1
  18. package/dist/generated/models/subscription-preview.js +12 -8
  19. package/dist/generated/models/subscription.d.ts +24 -24
  20. package/dist/generated/models/subscription.d.ts.map +1 -1
  21. package/dist/generated/models/subscription.js +12 -8
  22. package/dist/generated/models/update-subscription.d.ts +0 -24
  23. package/dist/generated/models/update-subscription.d.ts.map +1 -1
  24. package/dist/generated/models/update-subscription.js +0 -8
  25. package/package.json +1 -1
  26. package/src/extensibility/functions/project/billing.ts +2 -1
  27. package/src/generated/.openapi-generator/FILES +1 -0
  28. package/src/generated/apis/default-api.ts +65 -51
  29. package/src/generated/models/create-subscription.ts +0 -32
  30. package/src/generated/models/index.ts +1 -0
  31. package/src/generated/models/preview-subscription.ts +73 -0
  32. package/src/generated/models/subscription-preview.ts +34 -32
  33. package/src/generated/models/subscription.ts +34 -32
  34. package/src/generated/models/update-subscription.ts +0 -32
@@ -189,30 +189,6 @@ export interface CreateSubscription {
189
189
  * @memberof CreateSubscription
190
190
  */
191
191
  shippingContactId?: string;
192
- /**
193
- * Date record was created
194
- * @type {string}
195
- * @memberof CreateSubscription
196
- */
197
- updatedAt?: string;
198
- /**
199
- * Date record was created
200
- * @type {string}
201
- * @memberof CreateSubscription
202
- */
203
- createdAt?: string;
204
- /**
205
- * Email of user who created record
206
- * @type {string}
207
- * @memberof CreateSubscription
208
- */
209
- createdBy?: string;
210
- /**
211
- * Email of user who last modifed record
212
- * @type {string}
213
- * @memberof CreateSubscription
214
- */
215
- updatedBy?: string;
216
192
  /**
217
193
  * Custom fields on the invoice
218
194
  * @type {object}
@@ -278,10 +254,6 @@ export function CreateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator:
278
254
  'charges': ((json['charges'] as Array<any>).map(CreateSubscriptionChargeFromJSON)),
279
255
  'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
280
256
  'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
281
- 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
282
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
283
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
284
- 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
285
257
  'customFields': json['customFields'] == null ? undefined : json['customFields'],
286
258
  'tcv': json['tcv'] == null ? undefined : json['tcv'],
287
259
  'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
@@ -326,10 +298,6 @@ export function CreateSubscriptionToJSONTyped(value?: CreateSubscription | null,
326
298
  'charges': ((value['charges'] as Array<any>).map(CreateSubscriptionChargeToJSON)),
327
299
  'billContactId': value['billContactId'],
328
300
  'shippingContactId': value['shippingContactId'],
329
- 'updatedAt': value['updatedAt'],
330
- 'createdAt': value['createdAt'],
331
- 'createdBy': value['createdBy'],
332
- 'updatedBy': value['updatedBy'],
333
301
  'customFields': value['customFields'],
334
302
  'tcv': value['tcv'],
335
303
  'deferStartDate': value['deferStartDate'],
@@ -159,6 +159,7 @@ export * from './plugin-extensibility-status';
159
159
  export * from './plugin-filter-item';
160
160
  export * from './plugin-filter-operator';
161
161
  export * from './plugin-version';
162
+ export * from './preview-subscription';
162
163
  export * from './product-custom';
163
164
  export * from './product-tax-group';
164
165
  export * from './project';
@@ -0,0 +1,73 @@
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 { UpdateSubscription } from './update-subscription';
17
+ import {
18
+ UpdateSubscriptionFromJSON,
19
+ UpdateSubscriptionFromJSONTyped,
20
+ UpdateSubscriptionToJSON,
21
+ UpdateSubscriptionToJSONTyped,
22
+ } from './update-subscription';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PreviewSubscription
28
+ */
29
+ export interface PreviewSubscription {
30
+ /**
31
+ * The updated subscription
32
+ * @type {Array<UpdateSubscription>}
33
+ * @memberof PreviewSubscription
34
+ */
35
+ subscription?: Array<UpdateSubscription>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the PreviewSubscription interface.
40
+ */
41
+ export function instanceOfPreviewSubscription(value: object): value is PreviewSubscription {
42
+ return true;
43
+ }
44
+
45
+ export function PreviewSubscriptionFromJSON(json: any): PreviewSubscription {
46
+ return PreviewSubscriptionFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PreviewSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewSubscription {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'subscription': json['subscription'] == null ? undefined : ((json['subscription'] as Array<any>).map(UpdateSubscriptionFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function PreviewSubscriptionToJSON(json: any): PreviewSubscription {
60
+ return PreviewSubscriptionToJSONTyped(json, false);
61
+ }
62
+
63
+ export function PreviewSubscriptionToJSONTyped(value?: PreviewSubscription | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'subscription': value['subscription'] == null ? undefined : ((value['subscription'] as Array<any>).map(UpdateSubscriptionToJSON)),
71
+ };
72
+ }
73
+
@@ -190,30 +190,6 @@ export interface SubscriptionPreview {
190
190
  * @memberof SubscriptionPreview
191
191
  */
192
192
  shippingContactId?: string;
193
- /**
194
- * Date record was created
195
- * @type {string}
196
- * @memberof SubscriptionPreview
197
- */
198
- updatedAt?: string;
199
- /**
200
- * Date record was created
201
- * @type {string}
202
- * @memberof SubscriptionPreview
203
- */
204
- createdAt?: string;
205
- /**
206
- * Email of user who created record
207
- * @type {string}
208
- * @memberof SubscriptionPreview
209
- */
210
- createdBy?: string;
211
- /**
212
- * Email of user who last modifed record
213
- * @type {string}
214
- * @memberof SubscriptionPreview
215
- */
216
- updatedBy?: string;
217
193
  /**
218
194
  * Custom fields on the invoice
219
195
  * @type {object}
@@ -310,6 +286,30 @@ export interface SubscriptionPreview {
310
286
  * @memberof SubscriptionPreview
311
287
  */
312
288
  charges: Array<SubscriptionCharge>;
289
+ /**
290
+ * Date record was created
291
+ * @type {string}
292
+ * @memberof SubscriptionPreview
293
+ */
294
+ createdAt: string;
295
+ /**
296
+ * Email of user who created record
297
+ * @type {string}
298
+ * @memberof SubscriptionPreview
299
+ */
300
+ createdBy: string;
301
+ /**
302
+ * Date record was created
303
+ * @type {string}
304
+ * @memberof SubscriptionPreview
305
+ */
306
+ updatedAt?: string;
307
+ /**
308
+ * Email of user who last modifed record
309
+ * @type {string}
310
+ * @memberof SubscriptionPreview
311
+ */
312
+ updatedBy?: string;
313
313
  /**
314
314
  * Subscription Current Invoice line items
315
315
  * @type {SubscriptionInvoice}
@@ -347,6 +347,8 @@ export function instanceOfSubscriptionPreview(value: object): value is Subscript
347
347
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
348
348
  if (!('externalId' in value) || value['externalId'] === undefined) return false;
349
349
  if (!('charges' in value) || value['charges'] === undefined) return false;
350
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
351
+ if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
350
352
  if (!('currentInvoice' in value) || value['currentInvoice'] === undefined) return false;
351
353
  if (!('nextInvoice' in value) || value['nextInvoice'] === undefined) return false;
352
354
  if (!('estimatedTax' in value) || value['estimatedTax'] === undefined) return false;
@@ -389,10 +391,6 @@ export function SubscriptionPreviewFromJSONTyped(json: any, ignoreDiscriminator:
389
391
  'paidThroughDate': json['paidThroughDate'] == null ? undefined : (new Date(json['paidThroughDate'])),
390
392
  'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
391
393
  'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
392
- 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
393
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
394
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
395
- 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
396
394
  'customFields': json['customFields'] == null ? undefined : json['customFields'],
397
395
  'tcv': json['tcv'] == null ? undefined : json['tcv'],
398
396
  'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
@@ -409,6 +407,10 @@ export function SubscriptionPreviewFromJSONTyped(json: any, ignoreDiscriminator:
409
407
  'siteId': json['siteId'],
410
408
  'externalId': json['externalId'],
411
409
  'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
410
+ 'createdAt': json['createdAt'],
411
+ 'createdBy': json['createdBy'],
412
+ 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
413
+ 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
412
414
  'currentInvoice': SubscriptionInvoiceFromJSON(json['currentInvoice']),
413
415
  'nextInvoice': SubscriptionInvoiceFromJSON(json['nextInvoice']),
414
416
  'estimatedTax': json['estimatedTax'],
@@ -452,10 +454,6 @@ export function SubscriptionPreviewToJSONTyped(value?: SubscriptionPreview | nul
452
454
  'paidThroughDate': value['paidThroughDate'] == null ? undefined : ((value['paidThroughDate']).toISOString()),
453
455
  'billContactId': value['billContactId'],
454
456
  'shippingContactId': value['shippingContactId'],
455
- 'updatedAt': value['updatedAt'],
456
- 'createdAt': value['createdAt'],
457
- 'createdBy': value['createdBy'],
458
- 'updatedBy': value['updatedBy'],
459
457
  'customFields': value['customFields'],
460
458
  'tcv': value['tcv'],
461
459
  'deferStartDate': value['deferStartDate'],
@@ -472,6 +470,10 @@ export function SubscriptionPreviewToJSONTyped(value?: SubscriptionPreview | nul
472
470
  'siteId': value['siteId'],
473
471
  'externalId': value['externalId'],
474
472
  'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
473
+ 'createdAt': value['createdAt'],
474
+ 'createdBy': value['createdBy'],
475
+ 'updatedAt': value['updatedAt'],
476
+ 'updatedBy': value['updatedBy'],
475
477
  'currentInvoice': SubscriptionInvoiceToJSON(value['currentInvoice']),
476
478
  'nextInvoice': SubscriptionInvoiceToJSON(value['nextInvoice']),
477
479
  'estimatedTax': value['estimatedTax'],
@@ -183,30 +183,6 @@ export interface Subscription {
183
183
  * @memberof Subscription
184
184
  */
185
185
  shippingContactId?: string;
186
- /**
187
- * Date record was created
188
- * @type {string}
189
- * @memberof Subscription
190
- */
191
- updatedAt?: string;
192
- /**
193
- * Date record was created
194
- * @type {string}
195
- * @memberof Subscription
196
- */
197
- createdAt?: string;
198
- /**
199
- * Email of user who created record
200
- * @type {string}
201
- * @memberof Subscription
202
- */
203
- createdBy?: string;
204
- /**
205
- * Email of user who last modifed record
206
- * @type {string}
207
- * @memberof Subscription
208
- */
209
- updatedBy?: string;
210
186
  /**
211
187
  * Custom fields on the invoice
212
188
  * @type {object}
@@ -303,6 +279,30 @@ export interface Subscription {
303
279
  * @memberof Subscription
304
280
  */
305
281
  charges: Array<SubscriptionCharge>;
282
+ /**
283
+ * Date record was created
284
+ * @type {string}
285
+ * @memberof Subscription
286
+ */
287
+ createdAt: string;
288
+ /**
289
+ * Email of user who created record
290
+ * @type {string}
291
+ * @memberof Subscription
292
+ */
293
+ createdBy: string;
294
+ /**
295
+ * Date record was created
296
+ * @type {string}
297
+ * @memberof Subscription
298
+ */
299
+ updatedAt?: string;
300
+ /**
301
+ * Email of user who last modifed record
302
+ * @type {string}
303
+ * @memberof Subscription
304
+ */
305
+ updatedBy?: string;
306
306
  }
307
307
 
308
308
  /**
@@ -322,6 +322,8 @@ export function instanceOfSubscription(value: object): value is Subscription {
322
322
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
323
323
  if (!('externalId' in value) || value['externalId'] === undefined) return false;
324
324
  if (!('charges' in value) || value['charges'] === undefined) return false;
325
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
326
+ if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
325
327
  return true;
326
328
  }
327
329
 
@@ -361,10 +363,6 @@ export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolea
361
363
  'paidThroughDate': json['paidThroughDate'] == null ? undefined : (new Date(json['paidThroughDate'])),
362
364
  'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
363
365
  'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
364
- 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
365
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
366
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
367
- 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
368
366
  'customFields': json['customFields'] == null ? undefined : json['customFields'],
369
367
  'tcv': json['tcv'] == null ? undefined : json['tcv'],
370
368
  'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
@@ -381,6 +379,10 @@ export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolea
381
379
  'siteId': json['siteId'],
382
380
  'externalId': json['externalId'],
383
381
  'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
382
+ 'createdAt': json['createdAt'],
383
+ 'createdBy': json['createdBy'],
384
+ 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
385
+ 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
384
386
  };
385
387
  }
386
388
 
@@ -421,10 +423,6 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
421
423
  'paidThroughDate': value['paidThroughDate'] == null ? undefined : ((value['paidThroughDate']).toISOString()),
422
424
  'billContactId': value['billContactId'],
423
425
  'shippingContactId': value['shippingContactId'],
424
- 'updatedAt': value['updatedAt'],
425
- 'createdAt': value['createdAt'],
426
- 'createdBy': value['createdBy'],
427
- 'updatedBy': value['updatedBy'],
428
426
  'customFields': value['customFields'],
429
427
  'tcv': value['tcv'],
430
428
  'deferStartDate': value['deferStartDate'],
@@ -441,6 +439,10 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
441
439
  'siteId': value['siteId'],
442
440
  'externalId': value['externalId'],
443
441
  'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
442
+ 'createdAt': value['createdAt'],
443
+ 'createdBy': value['createdBy'],
444
+ 'updatedAt': value['updatedAt'],
445
+ 'updatedBy': value['updatedBy'],
444
446
  };
445
447
  }
446
448
 
@@ -171,30 +171,6 @@ export interface UpdateSubscription {
171
171
  * @memberof UpdateSubscription
172
172
  */
173
173
  shippingContactId?: string;
174
- /**
175
- * Date record was created
176
- * @type {string}
177
- * @memberof UpdateSubscription
178
- */
179
- updatedAt?: string;
180
- /**
181
- * Date record was created
182
- * @type {string}
183
- * @memberof UpdateSubscription
184
- */
185
- createdAt?: string;
186
- /**
187
- * Email of user who created record
188
- * @type {string}
189
- * @memberof UpdateSubscription
190
- */
191
- createdBy?: string;
192
- /**
193
- * Email of user who last modifed record
194
- * @type {string}
195
- * @memberof UpdateSubscription
196
- */
197
- updatedBy?: string;
198
174
  /**
199
175
  * Custom fields on the invoice
200
176
  * @type {object}
@@ -270,10 +246,6 @@ export function UpdateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator:
270
246
  'paidThroughDate': json['paidThroughDate'] == null ? undefined : (new Date(json['paidThroughDate'])),
271
247
  'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
272
248
  'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
273
- 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
274
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
275
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
276
- 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
277
249
  'customFields': json['customFields'] == null ? undefined : json['customFields'],
278
250
  'tcv': json['tcv'] == null ? undefined : json['tcv'],
279
251
  'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
@@ -317,10 +289,6 @@ export function UpdateSubscriptionToJSONTyped(value?: UpdateSubscription | null,
317
289
  'paidThroughDate': value['paidThroughDate'] == null ? undefined : ((value['paidThroughDate']).toISOString()),
318
290
  'billContactId': value['billContactId'],
319
291
  'shippingContactId': value['shippingContactId'],
320
- 'updatedAt': value['updatedAt'],
321
- 'createdAt': value['createdAt'],
322
- 'createdBy': value['createdBy'],
323
- 'updatedBy': value['updatedBy'],
324
292
  'customFields': value['customFields'],
325
293
  'tcv': value['tcv'],
326
294
  'deferStartDate': value['deferStartDate'],