@managespace/sdk 0.0.13 → 0.0.14

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 (48) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +9 -7
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +0 -4
  4. package/dist/generated/apis/default-api.d.ts +24 -3
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +68 -1
  7. package/dist/generated/models/charge-response.d.ts +3 -3
  8. package/dist/generated/models/charge-response.d.ts.map +1 -1
  9. package/dist/generated/models/charge-response.js +3 -3
  10. package/dist/generated/models/create-plan-charge.d.ts +3 -3
  11. package/dist/generated/models/create-plan-charge.d.ts.map +1 -1
  12. package/dist/generated/models/create-plan-charge.js +3 -3
  13. package/dist/generated/models/create-product-custom.d.ts +45 -3
  14. package/dist/generated/models/create-product-custom.d.ts.map +1 -1
  15. package/dist/generated/models/create-product-custom.js +14 -0
  16. package/dist/generated/models/create-product.d.ts +1 -1
  17. package/dist/generated/models/get-products200-response.d.ts +3 -3
  18. package/dist/generated/models/get-products200-response.d.ts.map +1 -1
  19. package/dist/generated/models/get-products200-response.js +3 -3
  20. package/dist/generated/models/index.d.ts +2 -1
  21. package/dist/generated/models/index.d.ts.map +1 -1
  22. package/dist/generated/models/index.js +2 -1
  23. package/dist/generated/models/plan-charge-response.d.ts +3 -3
  24. package/dist/generated/models/plan-charge-response.d.ts.map +1 -1
  25. package/dist/generated/models/plan-charge-response.js +3 -3
  26. package/dist/generated/models/product-custom-response.d.ts +150 -0
  27. package/dist/generated/models/product-custom-response.d.ts.map +1 -0
  28. package/dist/generated/models/product-custom-response.js +110 -0
  29. package/dist/generated/models/product-response.d.ts +1 -1
  30. package/dist/generated/models/subscription-plan-response.d.ts +3 -3
  31. package/dist/generated/models/subscription-plan-response.d.ts.map +1 -1
  32. package/dist/generated/models/subscription-plan-response.js +3 -3
  33. package/dist/generated/models/transaction-posting-entries.d.ts +3 -3
  34. package/package.json +2 -1
  35. package/src/extensibility/functions/project/billing.ts +16 -11
  36. package/src/generated/.openapi-generator/FILES +2 -1
  37. package/src/generated/apis/default-api.ts +113 -6
  38. package/src/generated/models/charge-response.ts +10 -10
  39. package/src/generated/models/create-plan-charge.ts +10 -10
  40. package/src/generated/models/create-product-custom.ts +59 -3
  41. package/src/generated/models/create-product.ts +1 -1
  42. package/src/generated/models/get-products200-response.ts +11 -11
  43. package/src/generated/models/index.ts +2 -1
  44. package/src/generated/models/plan-charge-response.ts +10 -10
  45. package/src/generated/models/product-custom-response.ts +249 -0
  46. package/src/generated/models/product-response.ts +1 -1
  47. package/src/generated/models/subscription-plan-response.ts +10 -10
  48. package/src/generated/models/transaction-posting-entries.ts +3 -3
@@ -0,0 +1,249 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace V2 Auth API
5
+ * ManageSpace Auth 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 { TransactionPostingEntries } from './transaction-posting-entries';
17
+ import {
18
+ TransactionPostingEntriesFromJSON,
19
+ TransactionPostingEntriesFromJSONTyped,
20
+ TransactionPostingEntriesToJSON,
21
+ TransactionPostingEntriesToJSONTyped,
22
+ } from './transaction-posting-entries';
23
+ import type { OrgResponse } from './org-response';
24
+ import {
25
+ OrgResponseFromJSON,
26
+ OrgResponseFromJSONTyped,
27
+ OrgResponseToJSON,
28
+ OrgResponseToJSONTyped,
29
+ } from './org-response';
30
+ import type { SiteResponse } from './site-response';
31
+ import {
32
+ SiteResponseFromJSON,
33
+ SiteResponseFromJSONTyped,
34
+ SiteResponseToJSON,
35
+ SiteResponseToJSONTyped,
36
+ } from './site-response';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ProductCustomResponse
42
+ */
43
+ export interface ProductCustomResponse {
44
+ /**
45
+ * The product name
46
+ * @type {string}
47
+ * @memberof ProductCustomResponse
48
+ */
49
+ name: string;
50
+ /**
51
+ * The price of the product in the lowest denomination of the currency
52
+ * @type {number}
53
+ * @memberof ProductCustomResponse
54
+ */
55
+ price: number;
56
+ /**
57
+ * Tax exempt
58
+ * @type {boolean}
59
+ * @memberof ProductCustomResponse
60
+ */
61
+ taxable?: boolean;
62
+ /**
63
+ *
64
+ * @type {Array<TransactionPostingEntries>}
65
+ * @memberof ProductCustomResponse
66
+ */
67
+ transactionPostingEntries: Array<TransactionPostingEntries>;
68
+ /**
69
+ * Revenue Rule ID.
70
+ * @type {string}
71
+ * @memberof ProductCustomResponse
72
+ */
73
+ revenueRuleId: string;
74
+ /**
75
+ * Date revenue will begin to be recognized.
76
+ * @type {string}
77
+ * @memberof ProductCustomResponse
78
+ */
79
+ recognitionStartDate: string;
80
+ /**
81
+ * Date revenue will end to be recognized.
82
+ * @type {string}
83
+ * @memberof ProductCustomResponse
84
+ */
85
+ recognitionEndDate: string;
86
+ /**
87
+ * Stock keeping unit
88
+ * @type {string}
89
+ * @memberof ProductCustomResponse
90
+ */
91
+ sku?: string;
92
+ /**
93
+ * Product status
94
+ * @type {string}
95
+ * @memberof ProductCustomResponse
96
+ */
97
+ status?: string;
98
+ /**
99
+ * Description of product
100
+ * @type {string}
101
+ * @memberof ProductCustomResponse
102
+ */
103
+ description?: string;
104
+ /**
105
+ * Currency
106
+ * @type {string}
107
+ * @memberof ProductCustomResponse
108
+ */
109
+ currency?: string;
110
+ /**
111
+ * Show revenue schedules
112
+ * @type {boolean}
113
+ * @memberof ProductCustomResponse
114
+ */
115
+ showRevenueSchedules?: boolean;
116
+ /**
117
+ * List of custom fields
118
+ * @type {object}
119
+ * @memberof ProductCustomResponse
120
+ */
121
+ customFields?: object;
122
+ /**
123
+ * Code of Chart of Account
124
+ * @type {string}
125
+ * @memberof ProductCustomResponse
126
+ */
127
+ incomeAccount?: string;
128
+ /**
129
+ * Product ID
130
+ * @type {string}
131
+ * @memberof ProductCustomResponse
132
+ */
133
+ id: string;
134
+ /**
135
+ * The product id stored in the external sytem
136
+ * @type {string}
137
+ * @memberof ProductCustomResponse
138
+ */
139
+ externalId: string | null;
140
+ /**
141
+ *
142
+ * @type {OrgResponse}
143
+ * @memberof ProductCustomResponse
144
+ */
145
+ org?: OrgResponse;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof ProductCustomResponse
150
+ */
151
+ orgId: string;
152
+ /**
153
+ *
154
+ * @type {SiteResponse}
155
+ * @memberof ProductCustomResponse
156
+ */
157
+ site?: SiteResponse;
158
+ /**
159
+ *
160
+ * @type {string}
161
+ * @memberof ProductCustomResponse
162
+ */
163
+ siteId: string;
164
+ }
165
+
166
+ /**
167
+ * Check if a given object implements the ProductCustomResponse interface.
168
+ */
169
+ export function instanceOfProductCustomResponse(value: object): value is ProductCustomResponse {
170
+ if (!('name' in value) || value['name'] === undefined) return false;
171
+ if (!('price' in value) || value['price'] === undefined) return false;
172
+ if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined) return false;
173
+ if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined) return false;
174
+ if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined) return false;
175
+ if (!('recognitionEndDate' in value) || value['recognitionEndDate'] === undefined) return false;
176
+ if (!('id' in value) || value['id'] === undefined) return false;
177
+ if (!('externalId' in value) || value['externalId'] === undefined) return false;
178
+ if (!('orgId' in value) || value['orgId'] === undefined) return false;
179
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
180
+ return true;
181
+ }
182
+
183
+ export function ProductCustomResponseFromJSON(json: any): ProductCustomResponse {
184
+ return ProductCustomResponseFromJSONTyped(json, false);
185
+ }
186
+
187
+ export function ProductCustomResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCustomResponse {
188
+ if (json == null) {
189
+ return json;
190
+ }
191
+ return {
192
+
193
+ 'name': json['name'],
194
+ 'price': json['price'],
195
+ 'taxable': json['taxable'] == null ? undefined : json['taxable'],
196
+ 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
197
+ 'revenueRuleId': json['revenueRuleId'],
198
+ 'recognitionStartDate': json['recognitionStartDate'],
199
+ 'recognitionEndDate': json['recognitionEndDate'],
200
+ 'sku': json['sku'] == null ? undefined : json['sku'],
201
+ 'status': json['status'] == null ? undefined : json['status'],
202
+ 'description': json['description'] == null ? undefined : json['description'],
203
+ 'currency': json['currency'] == null ? undefined : json['currency'],
204
+ 'showRevenueSchedules': json['showRevenueSchedules'] == null ? undefined : json['showRevenueSchedules'],
205
+ 'customFields': json['customFields'] == null ? undefined : json['customFields'],
206
+ 'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
207
+ 'id': json['id'],
208
+ 'externalId': json['externalId'],
209
+ 'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
210
+ 'orgId': json['orgId'],
211
+ 'site': json['site'] == null ? undefined : SiteResponseFromJSON(json['site']),
212
+ 'siteId': json['siteId'],
213
+ };
214
+ }
215
+
216
+ export function ProductCustomResponseToJSON(json: any): ProductCustomResponse {
217
+ return ProductCustomResponseToJSONTyped(json, false);
218
+ }
219
+
220
+ export function ProductCustomResponseToJSONTyped(value?: ProductCustomResponse | null, ignoreDiscriminator: boolean = false): any {
221
+ if (value == null) {
222
+ return value;
223
+ }
224
+
225
+ return {
226
+
227
+ 'name': value['name'],
228
+ 'price': value['price'],
229
+ 'taxable': value['taxable'],
230
+ 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
231
+ 'revenueRuleId': value['revenueRuleId'],
232
+ 'recognitionStartDate': value['recognitionStartDate'],
233
+ 'recognitionEndDate': value['recognitionEndDate'],
234
+ 'sku': value['sku'],
235
+ 'status': value['status'],
236
+ 'description': value['description'],
237
+ 'currency': value['currency'],
238
+ 'showRevenueSchedules': value['showRevenueSchedules'],
239
+ 'customFields': value['customFields'],
240
+ 'incomeAccount': value['incomeAccount'],
241
+ 'id': value['id'],
242
+ 'externalId': value['externalId'],
243
+ 'org': OrgResponseToJSON(value['org']),
244
+ 'orgId': value['orgId'],
245
+ 'site': SiteResponseToJSON(value['site']),
246
+ 'siteId': value['siteId'],
247
+ };
248
+ }
249
+
@@ -85,7 +85,7 @@ export interface ProductResponse {
85
85
  */
86
86
  siteId: string;
87
87
  /**
88
- * The product name the asset is associated with
88
+ * The product name
89
89
  * @type {string}
90
90
  * @memberof ProductResponse
91
91
  */
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ProductTransactionPostingEntries } from './product-transaction-posting-entries';
16
+ import type { TransactionPostingEntries } from './transaction-posting-entries';
17
17
  import {
18
- ProductTransactionPostingEntriesFromJSON,
19
- ProductTransactionPostingEntriesFromJSONTyped,
20
- ProductTransactionPostingEntriesToJSON,
21
- ProductTransactionPostingEntriesToJSONTyped,
22
- } from './product-transaction-posting-entries';
18
+ TransactionPostingEntriesFromJSON,
19
+ TransactionPostingEntriesFromJSONTyped,
20
+ TransactionPostingEntriesToJSON,
21
+ TransactionPostingEntriesToJSONTyped,
22
+ } from './transaction-posting-entries';
23
23
 
24
24
  /**
25
25
  *
@@ -257,10 +257,10 @@ export interface SubscriptionPlanResponse {
257
257
  recognitionEndDate: string;
258
258
  /**
259
259
  * Transaction type
260
- * @type {Array<ProductTransactionPostingEntries>}
260
+ * @type {Array<TransactionPostingEntries>}
261
261
  * @memberof SubscriptionPlanResponse
262
262
  */
263
- transactionPostingEntries: Array<ProductTransactionPostingEntries>;
263
+ transactionPostingEntries: Array<TransactionPostingEntries>;
264
264
  /**
265
265
  * Custom fields on the invoice
266
266
  * @type {object}
@@ -364,7 +364,7 @@ export function SubscriptionPlanResponseFromJSONTyped(json: any, ignoreDiscrimin
364
364
  'revenueRuleId': json['revenueRuleId'],
365
365
  'recognitionStartDate': json['recognitionStartDate'],
366
366
  'recognitionEndDate': json['recognitionEndDate'],
367
- 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesFromJSON)),
367
+ 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
368
368
  'customFields': json['customFields'],
369
369
  };
370
370
  }
@@ -418,7 +418,7 @@ export function SubscriptionPlanResponseToJSONTyped(value?: SubscriptionPlanResp
418
418
  'revenueRuleId': value['revenueRuleId'],
419
419
  'recognitionStartDate': value['recognitionStartDate'],
420
420
  'recognitionEndDate': value['recognitionEndDate'],
421
- 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesToJSON)),
421
+ 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
422
422
  'customFields': value['customFields'],
423
423
  };
424
424
  }
@@ -20,19 +20,19 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface TransactionPostingEntries {
22
22
  /**
23
- * Transaction type.
23
+ * Type of transaction
24
24
  * @type {string}
25
25
  * @memberof TransactionPostingEntries
26
26
  */
27
27
  transactionType: string;
28
28
  /**
29
- * Debit account.
29
+ * Account ID of Debit Account
30
30
  * @type {string}
31
31
  * @memberof TransactionPostingEntries
32
32
  */
33
33
  debitAccount: string;
34
34
  /**
35
- * Credit Account.
35
+ * Account ID of Credit Account
36
36
  * @type {string}
37
37
  * @memberof TransactionPostingEntries
38
38
  */