@managespace/sdk 0.0.36 → 0.0.37

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 (62) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +6 -25
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +16 -15
  4. package/dist/generated/apis/default-api.d.ts +2 -68
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +3 -217
  7. package/dist/generated/models/asset-response.d.ts +22 -9
  8. package/dist/generated/models/asset-response.d.ts.map +1 -1
  9. package/dist/generated/models/asset-response.js +15 -6
  10. package/dist/generated/models/create-asset-asset-category-relation-input.d.ts +34 -0
  11. package/dist/generated/models/create-asset-asset-category-relation-input.d.ts.map +1 -0
  12. package/dist/generated/models/create-asset-asset-category-relation-input.js +52 -0
  13. package/dist/generated/models/create-asset-custom.d.ts +20 -14
  14. package/dist/generated/models/create-asset-custom.d.ts.map +1 -1
  15. package/dist/generated/models/create-asset-custom.js +8 -6
  16. package/dist/generated/models/create-plan-charge.d.ts +6 -0
  17. package/dist/generated/models/create-plan-charge.d.ts.map +1 -1
  18. package/dist/generated/models/create-plan-charge.js +2 -0
  19. package/dist/generated/models/create-subscription.d.ts +70 -0
  20. package/dist/generated/models/create-subscription.d.ts.map +1 -0
  21. package/dist/generated/models/create-subscription.js +76 -0
  22. package/dist/generated/models/custom-create-plan.d.ts +76 -0
  23. package/dist/generated/models/custom-create-plan.d.ts.map +1 -0
  24. package/dist/generated/models/custom-create-plan.js +70 -0
  25. package/dist/generated/models/customer-response.d.ts +7 -0
  26. package/dist/generated/models/customer-response.d.ts.map +1 -1
  27. package/dist/generated/models/customer-response.js +3 -0
  28. package/dist/generated/models/index.d.ts +2 -13
  29. package/dist/generated/models/index.d.ts.map +1 -1
  30. package/dist/generated/models/index.js +2 -13
  31. package/dist/generated/models/org-response.d.ts +7 -0
  32. package/dist/generated/models/org-response.d.ts.map +1 -1
  33. package/dist/generated/models/org-response.js +3 -0
  34. package/dist/generated/models/plan-response.d.ts +50 -34
  35. package/dist/generated/models/plan-response.d.ts.map +1 -1
  36. package/dist/generated/models/plan-response.js +41 -39
  37. package/dist/generated/models/product-response.d.ts +6 -6
  38. package/dist/generated/models/product-response.d.ts.map +1 -1
  39. package/dist/generated/models/product-response.js +6 -6
  40. package/dist/generated/models/site-response.d.ts +7 -0
  41. package/dist/generated/models/site-response.d.ts.map +1 -1
  42. package/dist/generated/models/site-response.js +3 -0
  43. package/dist/generated/models/update-asset.d.ts +13 -0
  44. package/dist/generated/models/update-asset.d.ts.map +1 -1
  45. package/dist/generated/models/update-asset.js +5 -0
  46. package/package.json +1 -1
  47. package/src/extensibility/functions/project/billing.ts +23 -22
  48. package/src/generated/.openapi-generator/FILES +2 -13
  49. package/src/generated/apis/default-api.ts +8 -362
  50. package/src/generated/models/asset-response.ts +51 -24
  51. package/src/generated/models/create-asset-asset-category-relation-input.ts +74 -0
  52. package/src/generated/models/create-asset-custom.ts +39 -29
  53. package/src/generated/models/create-plan-charge.ts +8 -0
  54. package/src/generated/models/create-subscription.ts +128 -0
  55. package/src/generated/models/custom-create-plan.ts +132 -0
  56. package/src/generated/models/customer-response.ts +15 -0
  57. package/src/generated/models/index.ts +2 -13
  58. package/src/generated/models/org-response.ts +15 -0
  59. package/src/generated/models/plan-response.ts +113 -72
  60. package/src/generated/models/product-response.ts +21 -21
  61. package/src/generated/models/site-response.ts +15 -0
  62. package/src/generated/models/update-asset.ts +26 -0
@@ -41,6 +41,13 @@ import {
41
41
  OrgResponseToJSON,
42
42
  OrgResponseToJSONTyped,
43
43
  } from './org-response';
44
+ import type { PlanResponse } from './plan-response';
45
+ import {
46
+ PlanResponseFromJSON,
47
+ PlanResponseFromJSONTyped,
48
+ PlanResponseToJSON,
49
+ PlanResponseToJSONTyped,
50
+ } from './plan-response';
44
51
 
45
52
  /**
46
53
  *
@@ -120,6 +127,12 @@ export interface CustomerResponse {
120
127
  * @memberof CustomerResponse
121
128
  */
122
129
  communications?: Array<CommunicationResponse>;
130
+ /**
131
+ *
132
+ * @type {Array<PlanResponse>}
133
+ * @memberof CustomerResponse
134
+ */
135
+ plans?: Array<PlanResponse>;
123
136
  }
124
137
 
125
138
  /**
@@ -159,6 +172,7 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
159
172
  'externalId': json['externalId'],
160
173
  'balance': json['balance'],
161
174
  'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
175
+ 'plans': json['plans'] == null ? undefined : ((json['plans'] as Array<any>).map(PlanResponseFromJSON)),
162
176
  };
163
177
  }
164
178
 
@@ -185,6 +199,7 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
185
199
  'externalId': value['externalId'],
186
200
  'balance': value['balance'],
187
201
  'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
202
+ 'plans': value['plans'] == null ? undefined : ((value['plans'] as Array<any>).map(PlanResponseToJSON)),
188
203
  };
189
204
  }
190
205
 
@@ -10,7 +10,6 @@ export * from './billing-run-customer-response';
10
10
  export * from './billing-run-filter-option-response';
11
11
  export * from './billing-run-response';
12
12
  export * from './calendar-response';
13
- export * from './cancel-subscription-billing';
14
13
  export * from './charge-response';
15
14
  export * from './chart-of-account-response';
16
15
  export * from './chart-of-accounts-response';
@@ -21,6 +20,7 @@ export * from './communication-type';
21
20
  export * from './configuration-response';
22
21
  export * from './contact-response';
23
22
  export * from './create-address';
23
+ export * from './create-asset-asset-category-relation-input';
24
24
  export * from './create-asset-category';
25
25
  export * from './create-asset-custom';
26
26
  export * from './create-asset-feature-custom';
@@ -31,7 +31,6 @@ export * from './create-checklist';
31
31
  export * from './create-communication';
32
32
  export * from './create-document';
33
33
  export * from './create-instances';
34
- export * from './create-lease-status';
35
34
  export * from './create-map-feature';
36
35
  export * from './create-note';
37
36
  export * from './create-notification';
@@ -40,15 +39,11 @@ export * from './create-payment-billing';
40
39
  export * from './create-payment-invoice';
41
40
  export * from './create-payment-refund';
42
41
  export * from './create-payment-run';
43
- export * from './create-plan';
44
42
  export * from './create-plan-charge';
45
43
  export * from './create-product';
46
44
  export * from './create-product-custom';
47
45
  export * from './create-site-custom';
48
46
  export * from './create-smart-bar-prompt';
49
- export * from './create-stock-status';
50
- export * from './create-subscription-billing';
51
- export * from './create-subscription-plan';
52
47
  export * from './create-task';
53
48
  export * from './create-task-template';
54
49
  export * from './create-template';
@@ -56,6 +51,7 @@ export * from './custom-chart-of-account';
56
51
  export * from './custom-chart-of-accounts';
57
52
  export * from './custom-create-contact';
58
53
  export * from './custom-create-customer';
54
+ export * from './custom-create-plan';
59
55
  export * from './custom-create-user';
60
56
  export * from './custom-update-customer';
61
57
  export * from './custom-update-task-template';
@@ -87,13 +83,11 @@ export * from './get-notes200-response';
87
83
  export * from './get-notifications200-response';
88
84
  export * from './get-payment-runs200-response';
89
85
  export * from './get-payments200-response';
90
- export * from './get-plans200-response';
91
86
  export * from './get-plugins200-response';
92
87
  export * from './get-products200-response';
93
88
  export * from './get-revenue-rules200-response';
94
89
  export * from './get-sites200-response';
95
90
  export * from './get-statements200-response';
96
- export * from './get-subscriptions200-response';
97
91
  export * from './get-task-templates200-response';
98
92
  export * from './get-tasks200-response';
99
93
  export * from './get-users200-response';
@@ -102,7 +96,6 @@ export * from './get-workflow-instances200-response';
102
96
  export * from './intent-response';
103
97
  export * from './invoice-contact-response';
104
98
  export * from './invoice-response';
105
- export * from './lease-status-response';
106
99
  export * from './line-item-response';
107
100
  export * from './link-plugin';
108
101
  export * from './login';
@@ -120,7 +113,6 @@ export * from './payment-response';
120
113
  export * from './payment-run-customer-response';
121
114
  export * from './payment-run-filter-option-response';
122
115
  export * from './payment-run-response';
123
- export * from './plan-charge-response';
124
116
  export * from './plan-response';
125
117
  export * from './plugin-extensibility-function-definition-response';
126
118
  export * from './plugin-extensibility-function-instance-response';
@@ -150,10 +142,7 @@ export * from './site-type-response3';
150
142
  export * from './smart-bar-prompt-response';
151
143
  export * from './statement-response';
152
144
  export * from './step-data';
153
- export * from './stock-status-response';
154
145
  export * from './sub-total-response';
155
- export * from './subscription-plan-response';
156
- export * from './subscription-response';
157
146
  export * from './success-response';
158
147
  export * from './task-completion-status';
159
148
  export * from './task-response';
@@ -55,6 +55,13 @@ import {
55
55
  ChecklistResponseToJSON,
56
56
  ChecklistResponseToJSONTyped,
57
57
  } from './checklist-response';
58
+ import type { PlanResponse } from './plan-response';
59
+ import {
60
+ PlanResponseFromJSON,
61
+ PlanResponseFromJSONTyped,
62
+ PlanResponseToJSON,
63
+ PlanResponseToJSONTyped,
64
+ } from './plan-response';
58
65
  import type { WorkflowStepMetadataResponse } from './workflow-step-metadata-response';
59
66
  import {
60
67
  WorkflowStepMetadataResponseFromJSON,
@@ -355,6 +362,12 @@ export interface OrgResponse {
355
362
  * @memberof OrgResponse
356
363
  */
357
364
  products?: Array<ProductResponse>;
365
+ /**
366
+ *
367
+ * @type {Array<PlanResponse>}
368
+ * @memberof OrgResponse
369
+ */
370
+ plan?: Array<PlanResponse>;
358
371
  }
359
372
 
360
373
  /**
@@ -409,6 +422,7 @@ export function OrgResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean
409
422
  'projectVersions': json['projectVersions'] == null ? undefined : ((json['projectVersions'] as Array<any>).map(ProjectVersionResponseFromJSON)),
410
423
  'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
411
424
  'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductResponseFromJSON)),
425
+ 'plan': json['Plan'] == null ? undefined : ((json['Plan'] as Array<any>).map(PlanResponseFromJSON)),
412
426
  };
413
427
  }
414
428
 
@@ -452,6 +466,7 @@ export function OrgResponseToJSONTyped(value?: OrgResponse | null, ignoreDiscrim
452
466
  'projectVersions': value['projectVersions'] == null ? undefined : ((value['projectVersions'] as Array<any>).map(ProjectVersionResponseToJSON)),
453
467
  'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
454
468
  'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductResponseToJSON)),
469
+ 'Plan': value['plan'] == null ? undefined : ((value['plan'] as Array<any>).map(PlanResponseToJSON)),
455
470
  };
456
471
  }
457
472
 
@@ -13,13 +13,41 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { PlanChargeResponse } from './plan-charge-response';
16
+ import type { OrgResponse } from './org-response';
17
17
  import {
18
- PlanChargeResponseFromJSON,
19
- PlanChargeResponseFromJSONTyped,
20
- PlanChargeResponseToJSON,
21
- PlanChargeResponseToJSONTyped,
22
- } from './plan-charge-response';
18
+ OrgResponseFromJSON,
19
+ OrgResponseFromJSONTyped,
20
+ OrgResponseToJSON,
21
+ OrgResponseToJSONTyped,
22
+ } from './org-response';
23
+ import type { SiteResponse } from './site-response';
24
+ import {
25
+ SiteResponseFromJSON,
26
+ SiteResponseFromJSONTyped,
27
+ SiteResponseToJSON,
28
+ SiteResponseToJSONTyped,
29
+ } from './site-response';
30
+ import type { ProductResponse } from './product-response';
31
+ import {
32
+ ProductResponseFromJSON,
33
+ ProductResponseFromJSONTyped,
34
+ ProductResponseToJSON,
35
+ ProductResponseToJSONTyped,
36
+ } from './product-response';
37
+ import type { AssetResponse } from './asset-response';
38
+ import {
39
+ AssetResponseFromJSON,
40
+ AssetResponseFromJSONTyped,
41
+ AssetResponseToJSON,
42
+ AssetResponseToJSONTyped,
43
+ } from './asset-response';
44
+ import type { CustomerResponse } from './customer-response';
45
+ import {
46
+ CustomerResponseFromJSON,
47
+ CustomerResponseFromJSONTyped,
48
+ CustomerResponseToJSON,
49
+ CustomerResponseToJSONTyped,
50
+ } from './customer-response';
23
51
 
24
52
  /**
25
53
  *
@@ -28,89 +56,101 @@ import {
28
56
  */
29
57
  export interface PlanResponse {
30
58
  /**
31
- * Plan ID
59
+ * Product ID
32
60
  * @type {string}
33
61
  * @memberof PlanResponse
34
62
  */
35
63
  id: string;
36
64
  /**
37
- * Name of plan
65
+ * The product id stored in the external sytem
38
66
  * @type {string}
39
67
  * @memberof PlanResponse
40
68
  */
41
- name: string;
69
+ externalId: string | null;
42
70
  /**
43
- * Product ID
44
- * @type {string}
71
+ *
72
+ * @type {OrgResponse}
45
73
  * @memberof PlanResponse
46
74
  */
47
- productId: string;
75
+ org?: OrgResponse;
48
76
  /**
49
- * Product name
77
+ *
50
78
  * @type {string}
51
79
  * @memberof PlanResponse
52
80
  */
53
- productName: string;
81
+ orgId: string;
82
+ /**
83
+ *
84
+ * @type {SiteResponse}
85
+ * @memberof PlanResponse
86
+ */
87
+ site?: SiteResponse;
54
88
  /**
55
- * Plan status
89
+ *
56
90
  * @type {string}
57
91
  * @memberof PlanResponse
58
92
  */
59
- status: string;
93
+ siteId: string;
60
94
  /**
61
- * Description of plan
95
+ * The product name
62
96
  * @type {string}
63
97
  * @memberof PlanResponse
64
98
  */
65
- description: string;
99
+ name: string;
100
+ /**
101
+ * The price of the product in the lowest denomination of the currency
102
+ * @type {number}
103
+ * @memberof PlanResponse
104
+ */
105
+ price: number;
66
106
  /**
67
- * Show ssp
107
+ * Tax exempt
68
108
  * @type {boolean}
69
109
  * @memberof PlanResponse
70
110
  */
71
- showSsp: boolean;
111
+ taxable: boolean;
72
112
  /**
73
- * URL used for self sign up
74
- * @type {string}
113
+ * Tax exempt
114
+ * @type {boolean}
75
115
  * @memberof PlanResponse
76
116
  */
77
- publicUrl: string;
117
+ active: boolean;
78
118
  /**
79
- * Email of user who created record
80
- * @type {string}
119
+ *
120
+ * @type {ProductResponse}
81
121
  * @memberof PlanResponse
82
122
  */
83
- createdBy: string;
123
+ product?: ProductResponse;
84
124
  /**
85
- * Email of user who last modified record
125
+ *
86
126
  * @type {string}
87
127
  * @memberof PlanResponse
88
128
  */
89
- updatedBy: string;
129
+ productId: string;
90
130
  /**
91
- * Date record created
92
- * @type {string}
131
+ *
132
+ * @type {AssetResponse}
93
133
  * @memberof PlanResponse
94
134
  */
95
- createdAt: string;
135
+ asset?: AssetResponse | null;
96
136
  /**
97
- * Date record modified
137
+ *
98
138
  * @type {string}
99
139
  * @memberof PlanResponse
100
140
  */
101
- updatedAt: string;
141
+ assetId: string | null;
102
142
  /**
103
- * Charges associated with plan
104
- * @type {Array<PlanChargeResponse>}
143
+ *
144
+ * @type {CustomerResponse}
105
145
  * @memberof PlanResponse
106
146
  */
107
- charges: Array<PlanChargeResponse>;
147
+ customer?: CustomerResponse;
108
148
  /**
109
- * Custom fields on the invoice
110
- * @type {object}
149
+ *
150
+ * @type {string}
111
151
  * @memberof PlanResponse
112
152
  */
113
- customFields: object;
153
+ customerId: string;
114
154
  }
115
155
 
116
156
  /**
@@ -118,19 +158,16 @@ export interface PlanResponse {
118
158
  */
119
159
  export function instanceOfPlanResponse(value: object): value is PlanResponse {
120
160
  if (!('id' in value) || value['id'] === undefined) return false;
161
+ if (!('externalId' in value) || value['externalId'] === undefined) return false;
162
+ if (!('orgId' in value) || value['orgId'] === undefined) return false;
163
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
121
164
  if (!('name' in value) || value['name'] === undefined) return false;
165
+ if (!('price' in value) || value['price'] === undefined) return false;
166
+ if (!('taxable' in value) || value['taxable'] === undefined) return false;
167
+ if (!('active' in value) || value['active'] === undefined) return false;
122
168
  if (!('productId' in value) || value['productId'] === undefined) return false;
123
- if (!('productName' in value) || value['productName'] === undefined) return false;
124
- if (!('status' in value) || value['status'] === undefined) return false;
125
- if (!('description' in value) || value['description'] === undefined) return false;
126
- if (!('showSsp' in value) || value['showSsp'] === undefined) return false;
127
- if (!('publicUrl' in value) || value['publicUrl'] === undefined) return false;
128
- if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
129
- if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
130
- if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
131
- if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
132
- if (!('charges' in value) || value['charges'] === undefined) return false;
133
- if (!('customFields' in value) || value['customFields'] === undefined) return false;
169
+ if (!('assetId' in value) || value['assetId'] === undefined) return false;
170
+ if (!('customerId' in value) || value['customerId'] === undefined) return false;
134
171
  return true;
135
172
  }
136
173
 
@@ -145,19 +182,21 @@ export function PlanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
145
182
  return {
146
183
 
147
184
  'id': json['id'],
185
+ 'externalId': json['externalId'],
186
+ 'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
187
+ 'orgId': json['orgId'],
188
+ 'site': json['site'] == null ? undefined : SiteResponseFromJSON(json['site']),
189
+ 'siteId': json['siteId'],
148
190
  'name': json['name'],
191
+ 'price': json['price'],
192
+ 'taxable': json['taxable'],
193
+ 'active': json['active'],
194
+ 'product': json['product'] == null ? undefined : ProductResponseFromJSON(json['product']),
149
195
  'productId': json['productId'],
150
- 'productName': json['productName'],
151
- 'status': json['status'],
152
- 'description': json['description'],
153
- 'showSsp': json['showSsp'],
154
- 'publicUrl': json['publicUrl'],
155
- 'createdBy': json['createdBy'],
156
- 'updatedBy': json['updatedBy'],
157
- 'createdAt': json['createdAt'],
158
- 'updatedAt': json['updatedAt'],
159
- 'charges': ((json['charges'] as Array<any>).map(PlanChargeResponseFromJSON)),
160
- 'customFields': json['customFields'],
196
+ 'asset': json['asset'] == null ? undefined : AssetResponseFromJSON(json['asset']),
197
+ 'assetId': json['assetId'],
198
+ 'customer': json['customer'] == null ? undefined : CustomerResponseFromJSON(json['customer']),
199
+ 'customerId': json['customerId'],
161
200
  };
162
201
  }
163
202
 
@@ -173,19 +212,21 @@ export function PlanResponseToJSONTyped(value?: PlanResponse | null, ignoreDiscr
173
212
  return {
174
213
 
175
214
  'id': value['id'],
215
+ 'externalId': value['externalId'],
216
+ 'org': OrgResponseToJSON(value['org']),
217
+ 'orgId': value['orgId'],
218
+ 'site': SiteResponseToJSON(value['site']),
219
+ 'siteId': value['siteId'],
176
220
  'name': value['name'],
221
+ 'price': value['price'],
222
+ 'taxable': value['taxable'],
223
+ 'active': value['active'],
224
+ 'product': ProductResponseToJSON(value['product']),
177
225
  'productId': value['productId'],
178
- 'productName': value['productName'],
179
- 'status': value['status'],
180
- 'description': value['description'],
181
- 'showSsp': value['showSsp'],
182
- 'publicUrl': value['publicUrl'],
183
- 'createdBy': value['createdBy'],
184
- 'updatedBy': value['updatedBy'],
185
- 'createdAt': value['createdAt'],
186
- 'updatedAt': value['updatedAt'],
187
- 'charges': ((value['charges'] as Array<any>).map(PlanChargeResponseToJSON)),
188
- 'customFields': value['customFields'],
226
+ 'asset': AssetResponseToJSON(value['asset']),
227
+ 'assetId': value['assetId'],
228
+ 'customer': CustomerResponseToJSON(value['customer']),
229
+ 'customerId': value['customerId'],
189
230
  };
190
231
  }
191
232
 
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { LeaseStatusResponse } from './lease-status-response';
17
- import {
18
- LeaseStatusResponseFromJSON,
19
- LeaseStatusResponseFromJSONTyped,
20
- LeaseStatusResponseToJSON,
21
- LeaseStatusResponseToJSONTyped,
22
- } from './lease-status-response';
23
16
  import type { OrgResponse } from './org-response';
24
17
  import {
25
18
  OrgResponseFromJSON,
@@ -27,6 +20,13 @@ import {
27
20
  OrgResponseToJSON,
28
21
  OrgResponseToJSONTyped,
29
22
  } from './org-response';
23
+ import type { PlanResponse } from './plan-response';
24
+ import {
25
+ PlanResponseFromJSON,
26
+ PlanResponseFromJSONTyped,
27
+ PlanResponseToJSON,
28
+ PlanResponseToJSONTyped,
29
+ } from './plan-response';
30
30
  import type { SiteResponse } from './site-response';
31
31
  import {
32
32
  SiteResponseFromJSON,
@@ -34,13 +34,13 @@ import {
34
34
  SiteResponseToJSON,
35
35
  SiteResponseToJSONTyped,
36
36
  } from './site-response';
37
- import type { StockStatusResponse } from './stock-status-response';
37
+ import type { AssetResponse } from './asset-response';
38
38
  import {
39
- StockStatusResponseFromJSON,
40
- StockStatusResponseFromJSONTyped,
41
- StockStatusResponseToJSON,
42
- StockStatusResponseToJSONTyped,
43
- } from './stock-status-response';
39
+ AssetResponseFromJSON,
40
+ AssetResponseFromJSONTyped,
41
+ AssetResponseToJSON,
42
+ AssetResponseToJSONTyped,
43
+ } from './asset-response';
44
44
 
45
45
  /**
46
46
  *
@@ -104,16 +104,16 @@ export interface ProductResponse {
104
104
  taxable: boolean;
105
105
  /**
106
106
  *
107
- * @type {Array<LeaseStatusResponse>}
107
+ * @type {Array<AssetResponse>}
108
108
  * @memberof ProductResponse
109
109
  */
110
- leaseStatus?: Array<LeaseStatusResponse>;
110
+ assets?: Array<AssetResponse>;
111
111
  /**
112
112
  *
113
- * @type {Array<StockStatusResponse>}
113
+ * @type {Array<PlanResponse>}
114
114
  * @memberof ProductResponse
115
115
  */
116
- stockStatus?: Array<StockStatusResponse>;
116
+ plans?: Array<PlanResponse>;
117
117
  }
118
118
 
119
119
  /**
@@ -149,8 +149,8 @@ export function ProductResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
149
149
  'name': json['name'],
150
150
  'price': json['price'],
151
151
  'taxable': json['taxable'],
152
- 'leaseStatus': json['leaseStatus'] == null ? undefined : ((json['leaseStatus'] as Array<any>).map(LeaseStatusResponseFromJSON)),
153
- 'stockStatus': json['stockStatus'] == null ? undefined : ((json['stockStatus'] as Array<any>).map(StockStatusResponseFromJSON)),
152
+ 'assets': json['assets'] == null ? undefined : ((json['assets'] as Array<any>).map(AssetResponseFromJSON)),
153
+ 'plans': json['plans'] == null ? undefined : ((json['plans'] as Array<any>).map(PlanResponseFromJSON)),
154
154
  };
155
155
  }
156
156
 
@@ -174,8 +174,8 @@ export function ProductResponseToJSONTyped(value?: ProductResponse | null, ignor
174
174
  'name': value['name'],
175
175
  'price': value['price'],
176
176
  'taxable': value['taxable'],
177
- 'leaseStatus': value['leaseStatus'] == null ? undefined : ((value['leaseStatus'] as Array<any>).map(LeaseStatusResponseToJSON)),
178
- 'stockStatus': value['stockStatus'] == null ? undefined : ((value['stockStatus'] as Array<any>).map(StockStatusResponseToJSON)),
177
+ 'assets': value['assets'] == null ? undefined : ((value['assets'] as Array<any>).map(AssetResponseToJSON)),
178
+ 'plans': value['plans'] == null ? undefined : ((value['plans'] as Array<any>).map(PlanResponseToJSON)),
179
179
  };
180
180
  }
181
181
 
@@ -48,6 +48,13 @@ import {
48
48
  ChecklistResponseToJSON,
49
49
  ChecklistResponseToJSONTyped,
50
50
  } from './checklist-response';
51
+ import type { PlanResponse } from './plan-response';
52
+ import {
53
+ PlanResponseFromJSON,
54
+ PlanResponseFromJSONTyped,
55
+ PlanResponseToJSON,
56
+ PlanResponseToJSONTyped,
57
+ } from './plan-response';
51
58
  import type { AssetResponse } from './asset-response';
52
59
  import {
53
60
  AssetResponseFromJSON,
@@ -263,6 +270,12 @@ export interface SiteResponse {
263
270
  * @memberof SiteResponse
264
271
  */
265
272
  products?: Array<ProductResponse>;
273
+ /**
274
+ *
275
+ * @type {Array<PlanResponse>}
276
+ * @memberof SiteResponse
277
+ */
278
+ plan?: Array<PlanResponse>;
266
279
  }
267
280
 
268
281
  /**
@@ -313,6 +326,7 @@ export function SiteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
313
326
  'configurations': json['configurations'] == null ? undefined : ((json['configurations'] as Array<any>).map(ConfigurationResponseFromJSON)),
314
327
  'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
315
328
  'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductResponseFromJSON)),
329
+ 'plan': json['Plan'] == null ? undefined : ((json['Plan'] as Array<any>).map(PlanResponseFromJSON)),
316
330
  };
317
331
  }
318
332
 
@@ -350,6 +364,7 @@ export function SiteResponseToJSONTyped(value?: SiteResponse | null, ignoreDiscr
350
364
  'configurations': value['configurations'] == null ? undefined : ((value['configurations'] as Array<any>).map(ConfigurationResponseToJSON)),
351
365
  'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
352
366
  'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductResponseToJSON)),
367
+ 'Plan': value['plan'] == null ? undefined : ((value['plan'] as Array<any>).map(PlanResponseToJSON)),
353
368
  };
354
369
  }
355
370
 
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ProductStatus } from './product-status';
17
+ import {
18
+ ProductStatusFromJSON,
19
+ ProductStatusFromJSONTyped,
20
+ ProductStatusToJSON,
21
+ ProductStatusToJSONTyped,
22
+ } from './product-status';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -31,12 +39,24 @@ export interface UpdateAsset {
31
39
  * @memberof UpdateAsset
32
40
  */
33
41
  description: string;
42
+ /**
43
+ *
44
+ * @type {ProductStatus}
45
+ * @memberof UpdateAsset
46
+ */
47
+ leaseStatus?: ProductStatus;
34
48
  /**
35
49
  *
36
50
  * @type {string}
37
51
  * @memberof UpdateAsset
38
52
  */
39
53
  assetCategoryId?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof UpdateAsset
58
+ */
59
+ productId?: string | null;
40
60
  /**
41
61
  *
42
62
  * @type {number}
@@ -51,6 +71,8 @@ export interface UpdateAsset {
51
71
  metadata?: object | null;
52
72
  }
53
73
 
74
+
75
+
54
76
  /**
55
77
  * Check if a given object implements the UpdateAsset interface.
56
78
  */
@@ -72,7 +94,9 @@ export function UpdateAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean
72
94
 
73
95
  'name': json['name'],
74
96
  'description': json['description'],
97
+ 'leaseStatus': json['leaseStatus'] == null ? undefined : ProductStatusFromJSON(json['leaseStatus']),
75
98
  'assetCategoryId': json['assetCategoryId'] == null ? undefined : json['assetCategoryId'],
99
+ 'productId': json['productId'] == null ? undefined : json['productId'],
76
100
  'assetClassId': json['assetClassId'] == null ? undefined : json['assetClassId'],
77
101
  'metadata': json['metadata'] == null ? undefined : json['metadata'],
78
102
  };
@@ -91,7 +115,9 @@ export function UpdateAssetToJSONTyped(value?: UpdateAsset | null, ignoreDiscrim
91
115
 
92
116
  'name': value['name'],
93
117
  'description': value['description'],
118
+ 'leaseStatus': ProductStatusToJSON(value['leaseStatus']),
94
119
  'assetCategoryId': value['assetCategoryId'],
120
+ 'productId': value['productId'],
95
121
  'assetClassId': value['assetClassId'],
96
122
  'metadata': value['metadata'],
97
123
  };