@managespace/sdk 0.0.123 → 0.0.124

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 (33) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +1 -9
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +0 -5
  4. package/dist/generated/apis/default-api.d.ts +1 -24
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +1 -76
  7. package/dist/generated/models/create-note.d.ts +0 -6
  8. package/dist/generated/models/create-note.d.ts.map +1 -1
  9. package/dist/generated/models/create-note.js +0 -2
  10. package/dist/generated/models/create-subscription.d.ts +4 -166
  11. package/dist/generated/models/create-subscription.d.ts.map +1 -1
  12. package/dist/generated/models/create-subscription.js +12 -58
  13. package/dist/generated/models/index.d.ts +0 -2
  14. package/dist/generated/models/index.d.ts.map +1 -1
  15. package/dist/generated/models/index.js +0 -2
  16. package/dist/generated/models/note.d.ts +0 -6
  17. package/dist/generated/models/note.d.ts.map +1 -1
  18. package/dist/generated/models/note.js +0 -4
  19. package/dist/generated/models/subscription.d.ts +78 -120
  20. package/dist/generated/models/subscription.d.ts.map +1 -1
  21. package/dist/generated/models/subscription.js +90 -56
  22. package/dist/generated/models/update-note.d.ts +19 -1
  23. package/dist/generated/models/update-note.d.ts.map +1 -1
  24. package/dist/generated/models/update-note.js +7 -3
  25. package/package.json +2 -2
  26. package/src/extensibility/functions/project/billing.ts +2 -11
  27. package/src/generated/.openapi-generator/FILES +0 -2
  28. package/src/generated/apis/default-api.ts +1 -66
  29. package/src/generated/models/create-subscription.ts +12 -224
  30. package/src/generated/models/index.ts +0 -2
  31. package/src/generated/models/subscription.ts +143 -175
  32. package/src/generated/models/update-subscription-charge.ts +0 -430
  33. package/src/generated/models/update-subscription.ts +0 -331
@@ -17,257 +17,221 @@ import type { SubscriptionCharge } from './subscription-charge';
17
17
  */
18
18
  export interface Subscription {
19
19
  /**
20
- * Status of subscription contract
21
- * @type {string}
22
- * @memberof Subscription
23
- */
24
- status?: string;
25
- /**
26
- * Billing start date for subscription contract
20
+ * Subscription ID
27
21
  * @type {string}
28
22
  * @memberof Subscription
29
23
  */
30
- billingStartDate?: string;
24
+ id: string;
31
25
  /**
32
- * Service start date for subscription contract
26
+ * Customer ID
33
27
  * @type {string}
34
28
  * @memberof Subscription
35
29
  */
36
- serviceStartDate?: string;
30
+ externalCustomerId: string;
37
31
  /**
38
- * Date order was placed
32
+ * Customer name
39
33
  * @type {string}
40
34
  * @memberof Subscription
41
35
  */
42
- orderPlacedAt?: string;
36
+ customerName: string;
43
37
  /**
44
- * Date subscription contract was signed and activated
38
+ * Id of billing contact
45
39
  * @type {string}
46
40
  * @memberof Subscription
47
41
  */
48
- contractEffectiveDate?: string;
42
+ externalBillContactId: string;
49
43
  /**
50
- * Date subscription contract was terminated
44
+ * Id of shipping contact
51
45
  * @type {string}
52
46
  * @memberof Subscription
53
47
  */
54
- cancellationDate?: string;
48
+ externalShippingContactId: string;
55
49
  /**
56
- * Cancel as of option
50
+ * Status of subscription contract
57
51
  * @type {string}
58
52
  * @memberof Subscription
59
53
  */
60
- cancellationType?: string;
54
+ status: string;
61
55
  /**
62
- * auto-renew subscription contract
56
+ * Set to defer start date
63
57
  * @type {boolean}
64
58
  * @memberof Subscription
65
59
  */
66
- autoRenew?: boolean;
60
+ deferStartDate: boolean;
67
61
  /**
68
- * currency
62
+ * Billing start date for subscription contract
69
63
  * @type {string}
70
64
  * @memberof Subscription
71
65
  */
72
- currency?: string;
66
+ billingStartDate: string;
73
67
  /**
74
- * Calculate due date of invoice
68
+ * Service start date for subscription contract
75
69
  * @type {string}
76
70
  * @memberof Subscription
77
71
  */
78
- paymentTerms?: string;
72
+ serviceStartDate: string;
79
73
  /**
80
- * Contracted MRR per charge
74
+ * Date order was placed
81
75
  * @type {string}
82
76
  * @memberof Subscription
83
77
  */
84
- cmrr?: string;
78
+ orderPlacedAt: string;
85
79
  /**
86
- * MRR calculated based on % discount
80
+ * Date subscription contract was signed and activated
87
81
  * @type {string}
88
82
  * @memberof Subscription
89
83
  */
90
- discountedCmrr?: string;
91
- /**
92
- * separate invoice generated
93
- * @type {boolean}
94
- * @memberof Subscription
95
- */
96
- separateInvoice?: boolean;
84
+ contractEffectiveDate: string;
97
85
  /**
98
- * Miscellaneous notes
86
+ * Date subscription contract was terminated
99
87
  * @type {string}
100
88
  * @memberof Subscription
101
89
  */
102
- notes?: string;
90
+ cancellationDate: string;
103
91
  /**
104
- * Coupon Code
92
+ * Date subscription contract to pause
105
93
  * @type {string}
106
94
  * @memberof Subscription
107
95
  */
108
- couponCode?: string;
109
- /**
110
- * Version of subscription contract
111
- * @type {number}
112
- * @memberof Subscription
113
- */
114
- version?: number;
96
+ pauseEffectiveDate: string;
115
97
  /**
116
- * Subscription contract version type
98
+ * Date subscription contract to resume
117
99
  * @type {string}
118
100
  * @memberof Subscription
119
101
  */
120
- versionType?: string;
102
+ resumeEffectiveDate: string;
121
103
  /**
122
- * Term of contract in months
123
- * @type {string}
104
+ * Set to extend contract on resume
105
+ * @type {boolean}
124
106
  * @memberof Subscription
125
107
  */
126
- contractTerm?: string;
108
+ extendOnResume: boolean;
127
109
  /**
128
- * Length of time Subscription Contract will be renewed for
129
- * @type {string}
110
+ * auto-renew subscription contract
111
+ * @type {boolean}
130
112
  * @memberof Subscription
131
113
  */
132
- renewalTerm?: string;
114
+ autoRenew: boolean;
133
115
  /**
134
- * Date Subscription Contract will start
116
+ * currency
135
117
  * @type {string}
136
118
  * @memberof Subscription
137
119
  */
138
- currentTermStartDate?: string;
120
+ currency: string;
139
121
  /**
140
- * Date subscription contract will end
122
+ * Calculate due date of invoice
141
123
  * @type {string}
142
124
  * @memberof Subscription
143
125
  */
144
- currentTermEndDate?: string;
126
+ paymentTerms: string;
145
127
  /**
146
- * Date subscription contract was terminated
147
- * @type {number}
148
- * @memberof Subscription
149
- */
150
- renewalIncrementPercent?: number;
151
- /**
152
- * Asset ID
128
+ * Contracted MRR per charge
153
129
  * @type {string}
154
130
  * @memberof Subscription
155
131
  */
156
- assetId?: string;
132
+ cmrr: string;
157
133
  /**
158
- * Id of billing contact
134
+ * MRR calculated based on % discount
159
135
  * @type {string}
160
136
  * @memberof Subscription
161
137
  */
162
- billContactId?: string;
138
+ discountedCmrr: string;
163
139
  /**
164
- * Id of shipping contact
165
- * @type {string}
140
+ * separate invoice generated
141
+ * @type {boolean}
166
142
  * @memberof Subscription
167
143
  */
168
- shippingContactId?: string;
144
+ separateInvoice: boolean;
169
145
  /**
170
- * Date record was created
146
+ * Miscellaneous notes
171
147
  * @type {string}
172
148
  * @memberof Subscription
173
149
  */
174
- updatedAt?: string;
150
+ notes: string;
175
151
  /**
176
- * Date record was created
177
- * @type {string}
152
+ * Version of subscription contract
153
+ * @type {number}
178
154
  * @memberof Subscription
179
155
  */
180
- createdAt?: string;
156
+ version: number;
181
157
  /**
182
- * Email of user who created record
158
+ * Subscription contract version type
183
159
  * @type {string}
184
160
  * @memberof Subscription
185
161
  */
186
- createdBy?: string;
162
+ versionType: string;
187
163
  /**
188
- * Email of user who last modifed record
164
+ * Term of contract in months
189
165
  * @type {string}
190
166
  * @memberof Subscription
191
167
  */
192
- updatedBy?: string;
168
+ contractTerm: string;
193
169
  /**
194
- * Custom fields on the invoice
195
- * @type {object}
170
+ * Date subscription contract will start
171
+ * @type {number}
196
172
  * @memberof Subscription
197
173
  */
198
- customFields?: object;
174
+ renewalIncrementPercent: number;
199
175
  /**
200
176
  * Total contract value of the subsctiption contract
201
177
  * @type {number}
202
178
  * @memberof Subscription
203
179
  */
204
- tcv?: number;
180
+ tcv: number;
205
181
  /**
206
- * Set to defer start date
207
- * @type {boolean}
208
- * @memberof Subscription
209
- */
210
- deferStartDate?: boolean;
211
- /**
212
- * Subscription ID
213
- * @type {string}
182
+ * Subscription charge details
183
+ * @type {Array<SubscriptionCharge>}
214
184
  * @memberof Subscription
215
185
  */
216
- id: string;
186
+ charges: Array<SubscriptionCharge>;
217
187
  /**
218
- * Customer ID
188
+ * Date record was created
219
189
  * @type {string}
220
190
  * @memberof Subscription
221
191
  */
222
- externalCustomerId: string;
192
+ createdAt: string;
223
193
  /**
224
- * Customer name
194
+ * Date record was created
225
195
  * @type {string}
226
196
  * @memberof Subscription
227
197
  */
228
- customerName: string;
198
+ updatedAt: string;
229
199
  /**
230
- * Id of billing contact
200
+ * Email of user who created record
231
201
  * @type {string}
232
202
  * @memberof Subscription
233
203
  */
234
- externalBillContactId: string;
204
+ createdBy: string;
235
205
  /**
236
- * Id of shipping contact
206
+ * Email of user who last modifed record
237
207
  * @type {string}
238
208
  * @memberof Subscription
239
209
  */
240
- externalShippingContactId: string;
210
+ updatedBy: string;
241
211
  /**
242
- * Date subscription contract to pause
212
+ * Id of billing contact sf
243
213
  * @type {string}
244
214
  * @memberof Subscription
245
215
  */
246
- pauseEffectiveDate: string;
216
+ billContactSfId: string;
247
217
  /**
248
- * Date subscription contract to resume
218
+ * Id of shipping contact sf
249
219
  * @type {string}
250
220
  * @memberof Subscription
251
221
  */
252
- resumeEffectiveDate: string;
253
- /**
254
- * Set to extend contract on resume
255
- * @type {boolean}
256
- * @memberof Subscription
257
- */
258
- extendOnResume: boolean;
222
+ shippingContactSfId: string;
259
223
  /**
260
- * Id of billing contact sf
261
- * @type {string}
224
+ * Custom fields on the invoice
225
+ * @type {object}
262
226
  * @memberof Subscription
263
227
  */
264
- billContactSfId: string;
228
+ customFields: object;
265
229
  /**
266
- * Id of shipping contact sf
230
+ * Asset ID
267
231
  * @type {string}
268
232
  * @memberof Subscription
269
233
  */
270
- shippingContactSfId: string;
234
+ assetId?: string;
271
235
  /**
272
236
  * Site ID
273
237
  * @type {string}
@@ -280,12 +244,6 @@ export interface Subscription {
280
244
  * @memberof Subscription
281
245
  */
282
246
  externalId: string;
283
- /**
284
- * Charges associated the subscription
285
- * @type {Array<SubscriptionCharge>}
286
- * @memberof Subscription
287
- */
288
- charges: Array<SubscriptionCharge>;
289
247
  }
290
248
  /**
291
249
  * Check if a given object implements the Subscription interface.
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQhE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,C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MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAe3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAoD/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqD9G"}
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQhE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH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;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAuC3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CA6C/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA8C9G"}
@@ -29,22 +29,70 @@ function instanceOfSubscription(value) {
29
29
  return false;
30
30
  if (!('externalShippingContactId' in value) || value['externalShippingContactId'] === undefined)
31
31
  return false;
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ if (!('deferStartDate' in value) || value['deferStartDate'] === undefined)
35
+ return false;
36
+ if (!('billingStartDate' in value) || value['billingStartDate'] === undefined)
37
+ return false;
38
+ if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined)
39
+ return false;
40
+ if (!('orderPlacedAt' in value) || value['orderPlacedAt'] === undefined)
41
+ return false;
42
+ if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined)
43
+ return false;
44
+ if (!('cancellationDate' in value) || value['cancellationDate'] === undefined)
45
+ return false;
32
46
  if (!('pauseEffectiveDate' in value) || value['pauseEffectiveDate'] === undefined)
33
47
  return false;
34
48
  if (!('resumeEffectiveDate' in value) || value['resumeEffectiveDate'] === undefined)
35
49
  return false;
36
50
  if (!('extendOnResume' in value) || value['extendOnResume'] === undefined)
37
51
  return false;
52
+ if (!('autoRenew' in value) || value['autoRenew'] === undefined)
53
+ return false;
54
+ if (!('currency' in value) || value['currency'] === undefined)
55
+ return false;
56
+ if (!('paymentTerms' in value) || value['paymentTerms'] === undefined)
57
+ return false;
58
+ if (!('cmrr' in value) || value['cmrr'] === undefined)
59
+ return false;
60
+ if (!('discountedCmrr' in value) || value['discountedCmrr'] === undefined)
61
+ return false;
62
+ if (!('separateInvoice' in value) || value['separateInvoice'] === undefined)
63
+ return false;
64
+ if (!('notes' in value) || value['notes'] === undefined)
65
+ return false;
66
+ if (!('version' in value) || value['version'] === undefined)
67
+ return false;
68
+ if (!('versionType' in value) || value['versionType'] === undefined)
69
+ return false;
70
+ if (!('contractTerm' in value) || value['contractTerm'] === undefined)
71
+ return false;
72
+ if (!('renewalIncrementPercent' in value) || value['renewalIncrementPercent'] === undefined)
73
+ return false;
74
+ if (!('tcv' in value) || value['tcv'] === undefined)
75
+ return false;
76
+ if (!('charges' in value) || value['charges'] === undefined)
77
+ return false;
78
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
79
+ return false;
80
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
81
+ return false;
82
+ if (!('createdBy' in value) || value['createdBy'] === undefined)
83
+ return false;
84
+ if (!('updatedBy' in value) || value['updatedBy'] === undefined)
85
+ return false;
38
86
  if (!('billContactSfId' in value) || value['billContactSfId'] === undefined)
39
87
  return false;
40
88
  if (!('shippingContactSfId' in value) || value['shippingContactSfId'] === undefined)
41
89
  return false;
90
+ if (!('customFields' in value) || value['customFields'] === undefined)
91
+ return false;
42
92
  if (!('siteId' in value) || value['siteId'] === undefined)
43
93
  return false;
44
94
  if (!('externalId' in value) || value['externalId'] === undefined)
45
95
  return false;
46
- if (!('charges' in value) || value['charges'] === undefined)
47
- return false;
48
96
  return true;
49
97
  }
50
98
  exports.instanceOfSubscription = instanceOfSubscription;
@@ -57,51 +105,44 @@ function SubscriptionFromJSONTyped(json, ignoreDiscriminator) {
57
105
  return json;
58
106
  }
59
107
  return {
60
- 'status': json['status'] == null ? undefined : json['status'],
61
- 'billingStartDate': json['billingStartDate'] == null ? undefined : json['billingStartDate'],
62
- 'serviceStartDate': json['serviceStartDate'] == null ? undefined : json['serviceStartDate'],
63
- 'orderPlacedAt': json['orderPlacedAt'] == null ? undefined : json['orderPlacedAt'],
64
- 'contractEffectiveDate': json['contractEffectiveDate'] == null ? undefined : json['contractEffectiveDate'],
65
- 'cancellationDate': json['cancellationDate'] == null ? undefined : json['cancellationDate'],
66
- 'cancellationType': json['cancellationType'] == null ? undefined : json['cancellationType'],
67
- 'autoRenew': json['autoRenew'] == null ? undefined : json['autoRenew'],
68
- 'currency': json['currency'] == null ? undefined : json['currency'],
69
- 'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
70
- 'cmrr': json['cmrr'] == null ? undefined : json['cmrr'],
71
- 'discountedCmrr': json['discountedCmrr'] == null ? undefined : json['discountedCmrr'],
72
- 'separateInvoice': json['separateInvoice'] == null ? undefined : json['separateInvoice'],
73
- 'notes': json['notes'] == null ? undefined : json['notes'],
74
- 'couponCode': json['couponCode'] == null ? undefined : json['couponCode'],
75
- 'version': json['version'] == null ? undefined : json['version'],
76
- 'versionType': json['versionType'] == null ? undefined : json['versionType'],
77
- 'contractTerm': json['contractTerm'] == null ? undefined : json['contractTerm'],
78
- 'renewalTerm': json['renewalTerm'] == null ? undefined : json['renewalTerm'],
79
- 'currentTermStartDate': json['currentTermStartDate'] == null ? undefined : json['currentTermStartDate'],
80
- 'currentTermEndDate': json['currentTermEndDate'] == null ? undefined : json['currentTermEndDate'],
81
- 'renewalIncrementPercent': json['renewalIncrementPercent'] == null ? undefined : json['renewalIncrementPercent'],
82
- 'assetId': json['assetId'] == null ? undefined : json['assetId'],
83
- 'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
84
- 'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
85
- 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
86
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
87
- 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
88
- 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
89
- 'customFields': json['customFields'] == null ? undefined : json['customFields'],
90
- 'tcv': json['tcv'] == null ? undefined : json['tcv'],
91
- 'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
92
108
  'id': json['id'],
93
109
  'externalCustomerId': json['externalCustomerId'],
94
110
  'customerName': json['customerName'],
95
111
  'externalBillContactId': json['externalBillContactId'],
96
112
  'externalShippingContactId': json['externalShippingContactId'],
113
+ 'status': json['status'],
114
+ 'deferStartDate': json['deferStartDate'],
115
+ 'billingStartDate': json['billingStartDate'],
116
+ 'serviceStartDate': json['serviceStartDate'],
117
+ 'orderPlacedAt': json['orderPlacedAt'],
118
+ 'contractEffectiveDate': json['contractEffectiveDate'],
119
+ 'cancellationDate': json['cancellationDate'],
97
120
  'pauseEffectiveDate': json['pauseEffectiveDate'],
98
121
  'resumeEffectiveDate': json['resumeEffectiveDate'],
99
122
  'extendOnResume': json['extendOnResume'],
123
+ 'autoRenew': json['autoRenew'],
124
+ 'currency': json['currency'],
125
+ 'paymentTerms': json['paymentTerms'],
126
+ 'cmrr': json['cmrr'],
127
+ 'discountedCmrr': json['discountedCmrr'],
128
+ 'separateInvoice': json['separateInvoice'],
129
+ 'notes': json['notes'],
130
+ 'version': json['version'],
131
+ 'versionType': json['versionType'],
132
+ 'contractTerm': json['contractTerm'],
133
+ 'renewalIncrementPercent': json['renewalIncrementPercent'],
134
+ 'tcv': json['tcv'],
135
+ 'charges': (json['charges'].map(subscription_charge_1.SubscriptionChargeFromJSON)),
136
+ 'createdAt': json['createdAt'],
137
+ 'updatedAt': json['updatedAt'],
138
+ 'createdBy': json['createdBy'],
139
+ 'updatedBy': json['updatedBy'],
100
140
  'billContactSfId': json['billContactSfId'],
101
141
  'shippingContactSfId': json['shippingContactSfId'],
142
+ 'customFields': json['customFields'],
143
+ 'assetId': json['assetId'] == null ? undefined : json['assetId'],
102
144
  'siteId': json['siteId'],
103
145
  'externalId': json['externalId'],
104
- 'charges': (json['charges'].map(subscription_charge_1.SubscriptionChargeFromJSON)),
105
146
  };
106
147
  }
107
148
  exports.SubscriptionFromJSONTyped = SubscriptionFromJSONTyped;
@@ -114,13 +155,21 @@ function SubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
114
155
  return value;
115
156
  }
116
157
  return {
158
+ 'id': value['id'],
159
+ 'externalCustomerId': value['externalCustomerId'],
160
+ 'customerName': value['customerName'],
161
+ 'externalBillContactId': value['externalBillContactId'],
162
+ 'externalShippingContactId': value['externalShippingContactId'],
117
163
  'status': value['status'],
164
+ 'deferStartDate': value['deferStartDate'],
118
165
  'billingStartDate': value['billingStartDate'],
119
166
  'serviceStartDate': value['serviceStartDate'],
120
167
  'orderPlacedAt': value['orderPlacedAt'],
121
168
  'contractEffectiveDate': value['contractEffectiveDate'],
122
169
  'cancellationDate': value['cancellationDate'],
123
- 'cancellationType': value['cancellationType'],
170
+ 'pauseEffectiveDate': value['pauseEffectiveDate'],
171
+ 'resumeEffectiveDate': value['resumeEffectiveDate'],
172
+ 'extendOnResume': value['extendOnResume'],
124
173
  'autoRenew': value['autoRenew'],
125
174
  'currency': value['currency'],
126
175
  'paymentTerms': value['paymentTerms'],
@@ -128,37 +177,22 @@ function SubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
128
177
  'discountedCmrr': value['discountedCmrr'],
129
178
  'separateInvoice': value['separateInvoice'],
130
179
  'notes': value['notes'],
131
- 'couponCode': value['couponCode'],
132
180
  'version': value['version'],
133
181
  'versionType': value['versionType'],
134
182
  'contractTerm': value['contractTerm'],
135
- 'renewalTerm': value['renewalTerm'],
136
- 'currentTermStartDate': value['currentTermStartDate'],
137
- 'currentTermEndDate': value['currentTermEndDate'],
138
183
  'renewalIncrementPercent': value['renewalIncrementPercent'],
139
- 'assetId': value['assetId'],
140
- 'billContactId': value['billContactId'],
141
- 'shippingContactId': value['shippingContactId'],
142
- 'updatedAt': value['updatedAt'],
184
+ 'tcv': value['tcv'],
185
+ 'charges': (value['charges'].map(subscription_charge_1.SubscriptionChargeToJSON)),
143
186
  'createdAt': value['createdAt'],
187
+ 'updatedAt': value['updatedAt'],
144
188
  'createdBy': value['createdBy'],
145
189
  'updatedBy': value['updatedBy'],
146
- 'customFields': value['customFields'],
147
- 'tcv': value['tcv'],
148
- 'deferStartDate': value['deferStartDate'],
149
- 'id': value['id'],
150
- 'externalCustomerId': value['externalCustomerId'],
151
- 'customerName': value['customerName'],
152
- 'externalBillContactId': value['externalBillContactId'],
153
- 'externalShippingContactId': value['externalShippingContactId'],
154
- 'pauseEffectiveDate': value['pauseEffectiveDate'],
155
- 'resumeEffectiveDate': value['resumeEffectiveDate'],
156
- 'extendOnResume': value['extendOnResume'],
157
190
  'billContactSfId': value['billContactSfId'],
158
191
  'shippingContactSfId': value['shippingContactSfId'],
192
+ 'customFields': value['customFields'],
193
+ 'assetId': value['assetId'],
159
194
  'siteId': value['siteId'],
160
195
  'externalId': value['externalId'],
161
- 'charges': (value['charges'].map(subscription_charge_1.SubscriptionChargeToJSON)),
162
196
  };
163
197
  }
164
198
  exports.SubscriptionToJSONTyped = SubscriptionToJSONTyped;
@@ -20,7 +20,25 @@ export interface UpdateNote {
20
20
  * @type {string}
21
21
  * @memberof UpdateNote
22
22
  */
23
- text: string;
23
+ text?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateNote
28
+ */
29
+ customerId?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdateNote
34
+ */
35
+ assetId?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UpdateNote
40
+ */
41
+ userId?: string | null;
24
42
  }
25
43
  /**
26
44
  * Check if a given object implements the UpdateNote interface.
@@ -1 +1 @@
1
- {"version":3,"file":"update-note.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-note.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAGvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAQ3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1G"}
1
+ {"version":3,"file":"update-note.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-note.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAEvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAW3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1G"}
@@ -18,8 +18,6 @@ exports.UpdateNoteToJSONTyped = exports.UpdateNoteToJSON = exports.UpdateNoteFro
18
18
  * Check if a given object implements the UpdateNote interface.
19
19
  */
20
20
  function instanceOfUpdateNote(value) {
21
- if (!('text' in value) || value['text'] === undefined)
22
- return false;
23
21
  return true;
24
22
  }
25
23
  exports.instanceOfUpdateNote = instanceOfUpdateNote;
@@ -32,7 +30,10 @@ function UpdateNoteFromJSONTyped(json, ignoreDiscriminator) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'text': json['text'],
33
+ 'text': json['text'] == null ? undefined : json['text'],
34
+ 'customerId': json['customerId'] == null ? undefined : json['customerId'],
35
+ 'assetId': json['assetId'] == null ? undefined : json['assetId'],
36
+ 'userId': json['userId'] == null ? undefined : json['userId'],
36
37
  };
37
38
  }
38
39
  exports.UpdateNoteFromJSONTyped = UpdateNoteFromJSONTyped;
@@ -46,6 +47,9 @@ function UpdateNoteToJSONTyped(value, ignoreDiscriminator = false) {
46
47
  }
47
48
  return {
48
49
  'text': value['text'],
50
+ 'customerId': value['customerId'],
51
+ 'assetId': value['assetId'],
52
+ 'userId': value['userId'],
49
53
  };
50
54
  }
51
55
  exports.UpdateNoteToJSONTyped = UpdateNoteToJSONTyped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.0.123",
3
+ "version": "0.0.124",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -30,4 +30,4 @@
30
30
  "@repo/eslint-config": "*",
31
31
  "@repo/typescript-config": "*"
32
32
  }
33
- }
33
+ }