@managespace/sdk 0.1.82 → 0.1.83

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 (46) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +1 -3
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/generated/apis/default-api.d.ts +1 -12
  4. package/dist/generated/apis/default-api.d.ts.map +1 -1
  5. package/dist/generated/apis/default-api.js +0 -35
  6. package/dist/generated/models/create-order.d.ts +0 -13
  7. package/dist/generated/models/create-order.d.ts.map +1 -1
  8. package/dist/generated/models/create-order.js +0 -7
  9. package/dist/generated/models/index.d.ts +0 -3
  10. package/dist/generated/models/index.d.ts.map +1 -1
  11. package/dist/generated/models/index.js +0 -3
  12. package/dist/generated/models/invoice.d.ts +2 -3
  13. package/dist/generated/models/invoice.d.ts.map +1 -1
  14. package/dist/generated/models/invoice.js +2 -3
  15. package/dist/generated/models/lease-status.d.ts +3 -1
  16. package/dist/generated/models/lease-status.d.ts.map +1 -1
  17. package/dist/generated/models/lease-status.js +2 -0
  18. package/dist/generated/models/order.d.ts +0 -13
  19. package/dist/generated/models/order.d.ts.map +1 -1
  20. package/dist/generated/models/order.js +0 -7
  21. package/dist/generated/models/update-order.d.ts +0 -13
  22. package/dist/generated/models/update-order.d.ts.map +1 -1
  23. package/dist/generated/models/update-order.js +0 -7
  24. package/package.deploy.json +2 -2
  25. package/package.json +2 -2
  26. package/src/extensibility/functions/project/billing.ts +0 -3
  27. package/src/generated/.openapi-generator/FILES +0 -3
  28. package/src/generated/apis/default-api.ts +0 -59
  29. package/src/generated/models/create-order.ts +0 -26
  30. package/src/generated/models/index.ts +0 -3
  31. package/src/generated/models/invoice.ts +4 -11
  32. package/src/generated/models/lease-status.ts +3 -1
  33. package/src/generated/models/order.ts +0 -26
  34. package/src/generated/models/update-order.ts +0 -26
  35. package/dist/generated/models/order-type.d.ts +0 -26
  36. package/dist/generated/models/order-type.d.ts.map +0 -1
  37. package/dist/generated/models/order-type.js +0 -53
  38. package/dist/generated/models/subscription-activity-line.d.ts +0 -99
  39. package/dist/generated/models/subscription-activity-line.d.ts.map +0 -1
  40. package/dist/generated/models/subscription-activity-line.js +0 -77
  41. package/dist/generated/models/subscription-activity.d.ts +0 -60
  42. package/dist/generated/models/subscription-activity.d.ts.map +0 -1
  43. package/dist/generated/models/subscription-activity.js +0 -70
  44. package/src/generated/models/order-type.ts +0 -52
  45. package/src/generated/models/subscription-activity-line.ts +0 -156
  46. package/src/generated/models/subscription-activity.ts +0 -124
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { OrderType } from './order-type';
17
- import {
18
- OrderTypeFromJSON,
19
- OrderTypeFromJSONTyped,
20
- OrderTypeToJSON,
21
- OrderTypeToJSONTyped,
22
- } from './order-type';
23
16
  import type { OrderLineItem } from './order-line-item';
24
17
  import {
25
18
  OrderLineItemFromJSON,
@@ -148,18 +141,6 @@ export interface Order {
148
141
  * @memberof Order
149
142
  */
150
143
  assetId?: string;
151
- /**
152
- * Subscription Id associated with order, if it is a fee
153
- * @type {string}
154
- * @memberof Order
155
- */
156
- subscriptionId?: string;
157
- /**
158
- *
159
- * @type {OrderType}
160
- * @memberof Order
161
- */
162
- orderType: OrderType;
163
144
  /**
164
145
  * Order ID
165
146
  * @type {string}
@@ -174,8 +155,6 @@ export interface Order {
174
155
  estimatedTax?: string;
175
156
  }
176
157
 
177
-
178
-
179
158
  /**
180
159
  * Check if a given object implements the Order interface.
181
160
  */
@@ -187,7 +166,6 @@ export function instanceOfOrder(value: object): value is Order {
187
166
  if (!('separateInvoice' in value) || value['separateInvoice'] === undefined) return false;
188
167
  if (!('currency' in value) || value['currency'] === undefined) return false;
189
168
  if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
190
- if (!('orderType' in value) || value['orderType'] === undefined) return false;
191
169
  if (!('id' in value) || value['id'] === undefined) return false;
192
170
  return true;
193
171
  }
@@ -221,8 +199,6 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
221
199
  'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
222
200
  'customFields': json['customFields'] == null ? undefined : json['customFields'],
223
201
  'assetId': json['assetId'] == null ? undefined : json['assetId'],
224
- 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
225
- 'orderType': OrderTypeFromJSON(json['orderType']),
226
202
  'id': json['id'],
227
203
  'estimatedTax': json['estimatedTax'] == null ? undefined : json['estimatedTax'],
228
204
  };
@@ -258,8 +234,6 @@ export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: bool
258
234
  'updatedBy': value['updatedBy'],
259
235
  'customFields': value['customFields'],
260
236
  'assetId': value['assetId'],
261
- 'subscriptionId': value['subscriptionId'],
262
- 'orderType': OrderTypeToJSON(value['orderType']),
263
237
  'id': value['id'],
264
238
  'estimatedTax': value['estimatedTax'],
265
239
  };
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { OrderType } from './order-type';
17
- import {
18
- OrderTypeFromJSON,
19
- OrderTypeFromJSONTyped,
20
- OrderTypeToJSON,
21
- OrderTypeToJSONTyped,
22
- } from './order-type';
23
16
  import type { OrderLineItem } from './order-line-item';
24
17
  import {
25
18
  OrderLineItemFromJSON,
@@ -148,22 +141,8 @@ export interface UpdateOrder {
148
141
  * @memberof UpdateOrder
149
142
  */
150
143
  assetId?: string;
151
- /**
152
- * Subscription Id associated with order, if it is a fee
153
- * @type {string}
154
- * @memberof UpdateOrder
155
- */
156
- subscriptionId?: string;
157
- /**
158
- *
159
- * @type {OrderType}
160
- * @memberof UpdateOrder
161
- */
162
- orderType: OrderType;
163
144
  }
164
145
 
165
-
166
-
167
146
  /**
168
147
  * Check if a given object implements the UpdateOrder interface.
169
148
  */
@@ -175,7 +154,6 @@ export function instanceOfUpdateOrder(value: object): value is UpdateOrder {
175
154
  if (!('separateInvoice' in value) || value['separateInvoice'] === undefined) return false;
176
155
  if (!('currency' in value) || value['currency'] === undefined) return false;
177
156
  if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
178
- if (!('orderType' in value) || value['orderType'] === undefined) return false;
179
157
  return true;
180
158
  }
181
159
 
@@ -208,8 +186,6 @@ export function UpdateOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean
208
186
  'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
209
187
  'customFields': json['customFields'] == null ? undefined : json['customFields'],
210
188
  'assetId': json['assetId'] == null ? undefined : json['assetId'],
211
- 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
212
- 'orderType': OrderTypeFromJSON(json['orderType']),
213
189
  };
214
190
  }
215
191
 
@@ -243,8 +219,6 @@ export function UpdateOrderToJSONTyped(value?: UpdateOrder | null, ignoreDiscrim
243
219
  'updatedBy': value['updatedBy'],
244
220
  'customFields': value['customFields'],
245
221
  'assetId': value['assetId'],
246
- 'subscriptionId': value['subscriptionId'],
247
- 'orderType': OrderTypeToJSON(value['orderType']),
248
222
  };
249
223
  }
250
224
 
@@ -1,26 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * The type of the order (e.g., Fee, Merchandise)
14
- * @export
15
- * @enum {string}
16
- */
17
- export declare enum OrderType {
18
- FEE = "FEE",
19
- MERCHANDISE = "MERCHANDISE"
20
- }
21
- export declare function instanceOfOrderType(value: any): boolean;
22
- export declare function OrderTypeFromJSON(json: any): OrderType;
23
- export declare function OrderTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderType;
24
- export declare function OrderTypeToJSON(value?: OrderType | null): any;
25
- export declare function OrderTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderType;
26
- //# sourceMappingURL=order-type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order-type.d.ts","sourceRoot":"","sources":["../../../src/generated/models/order-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,oBAAY,SAAS;IACjB,GAAG,QAAQ;IACX,WAAW,gBAAgB;CAC9B;AAGD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OrderTypeToJSONTyped = exports.OrderTypeToJSON = exports.OrderTypeFromJSONTyped = exports.OrderTypeFromJSON = exports.instanceOfOrderType = exports.OrderType = void 0;
17
- /**
18
- * The type of the order (e.g., Fee, Merchandise)
19
- * @export
20
- * @enum {string}
21
- */
22
- var OrderType;
23
- (function (OrderType) {
24
- OrderType["FEE"] = "FEE";
25
- OrderType["MERCHANDISE"] = "MERCHANDISE";
26
- })(OrderType || (exports.OrderType = OrderType = {}));
27
- function instanceOfOrderType(value) {
28
- for (const key in OrderType) {
29
- if (Object.prototype.hasOwnProperty.call(OrderType, key)) {
30
- if (OrderType[key] === value) {
31
- return true;
32
- }
33
- }
34
- }
35
- return false;
36
- }
37
- exports.instanceOfOrderType = instanceOfOrderType;
38
- function OrderTypeFromJSON(json) {
39
- return OrderTypeFromJSONTyped(json, false);
40
- }
41
- exports.OrderTypeFromJSON = OrderTypeFromJSON;
42
- function OrderTypeFromJSONTyped(json, ignoreDiscriminator) {
43
- return json;
44
- }
45
- exports.OrderTypeFromJSONTyped = OrderTypeFromJSONTyped;
46
- function OrderTypeToJSON(value) {
47
- return value;
48
- }
49
- exports.OrderTypeToJSON = OrderTypeToJSON;
50
- function OrderTypeToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }
53
- exports.OrderTypeToJSONTyped = OrderTypeToJSONTyped;
@@ -1,99 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface SubscriptionActivityLine
16
- */
17
- export interface SubscriptionActivityLine {
18
- /**
19
- * Date of the subscription activity
20
- * @type {string}
21
- * @memberof SubscriptionActivityLine
22
- */
23
- date: string;
24
- /**
25
- * End date of the subscription activity
26
- * @type {string}
27
- * @memberof SubscriptionActivityLine
28
- */
29
- endDate?: string;
30
- /**
31
- * Description of the subscription activity
32
- * @type {string}
33
- * @memberof SubscriptionActivityLine
34
- */
35
- description: string;
36
- /**
37
- * The last 4 digits of the card or cheque used for payment
38
- * @type {string}
39
- * @memberof SubscriptionActivityLine
40
- */
41
- checkOrCardNumber?: string;
42
- /**
43
- * The receipt number of the payment
44
- * @type {string}
45
- * @memberof SubscriptionActivityLine
46
- */
47
- receiptNumber?: string;
48
- /**
49
- * The ID of the invoice the activity is associated with
50
- * @type {string}
51
- * @memberof SubscriptionActivityLine
52
- */
53
- invoiceId?: string;
54
- /**
55
- * The ID of the billing run the activity is associated with
56
- * @type {string}
57
- * @memberof SubscriptionActivityLine
58
- */
59
- billingRunId?: string;
60
- /**
61
- * The amount of refund applied to the subscription activity
62
- * @type {string}
63
- * @memberof SubscriptionActivityLine
64
- */
65
- appliedRefund?: string;
66
- /**
67
- * The amount of credit applied to the subscription activity
68
- * @type {string}
69
- * @memberof SubscriptionActivityLine
70
- */
71
- issuedCredit?: string;
72
- /**
73
- * The amount of a payment made towards a subscription
74
- * @type {string}
75
- * @memberof SubscriptionActivityLine
76
- */
77
- paymentAmount?: string;
78
- /**
79
- * The amount of a payment made towards a subscription
80
- * @type {string}
81
- * @memberof SubscriptionActivityLine
82
- */
83
- chargeAmount?: string;
84
- /**
85
- * The balance of the subscription
86
- * @type {string}
87
- * @memberof SubscriptionActivityLine
88
- */
89
- balance: string;
90
- }
91
- /**
92
- * Check if a given object implements the SubscriptionActivityLine interface.
93
- */
94
- export declare function instanceOfSubscriptionActivityLine(value: object): value is SubscriptionActivityLine;
95
- export declare function SubscriptionActivityLineFromJSON(json: any): SubscriptionActivityLine;
96
- export declare function SubscriptionActivityLineFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionActivityLine;
97
- export declare function SubscriptionActivityLineToJSON(json: any): SubscriptionActivityLine;
98
- export declare function SubscriptionActivityLineToJSONTyped(value?: SubscriptionActivityLine | null, ignoreDiscriminator?: boolean): any;
99
- //# sourceMappingURL=subscription-activity-line.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription-activity-line.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-activity-line.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAKnG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAmBvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoBtI"}
@@ -1,77 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SubscriptionActivityLineToJSONTyped = exports.SubscriptionActivityLineToJSON = exports.SubscriptionActivityLineFromJSONTyped = exports.SubscriptionActivityLineFromJSON = exports.instanceOfSubscriptionActivityLine = void 0;
17
- /**
18
- * Check if a given object implements the SubscriptionActivityLine interface.
19
- */
20
- function instanceOfSubscriptionActivityLine(value) {
21
- if (!('date' in value) || value['date'] === undefined)
22
- return false;
23
- if (!('description' in value) || value['description'] === undefined)
24
- return false;
25
- if (!('balance' in value) || value['balance'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- exports.instanceOfSubscriptionActivityLine = instanceOfSubscriptionActivityLine;
30
- function SubscriptionActivityLineFromJSON(json) {
31
- return SubscriptionActivityLineFromJSONTyped(json, false);
32
- }
33
- exports.SubscriptionActivityLineFromJSON = SubscriptionActivityLineFromJSON;
34
- function SubscriptionActivityLineFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'date': json['date'],
40
- 'endDate': json['endDate'] == null ? undefined : json['endDate'],
41
- 'description': json['description'],
42
- 'checkOrCardNumber': json['checkOrCardNumber'] == null ? undefined : json['checkOrCardNumber'],
43
- 'receiptNumber': json['receiptNumber'] == null ? undefined : json['receiptNumber'],
44
- 'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
45
- 'billingRunId': json['billingRunId'] == null ? undefined : json['billingRunId'],
46
- 'appliedRefund': json['appliedRefund'] == null ? undefined : json['appliedRefund'],
47
- 'issuedCredit': json['issuedCredit'] == null ? undefined : json['issuedCredit'],
48
- 'paymentAmount': json['paymentAmount'] == null ? undefined : json['paymentAmount'],
49
- 'chargeAmount': json['chargeAmount'] == null ? undefined : json['chargeAmount'],
50
- 'balance': json['balance'],
51
- };
52
- }
53
- exports.SubscriptionActivityLineFromJSONTyped = SubscriptionActivityLineFromJSONTyped;
54
- function SubscriptionActivityLineToJSON(json) {
55
- return SubscriptionActivityLineToJSONTyped(json, false);
56
- }
57
- exports.SubscriptionActivityLineToJSON = SubscriptionActivityLineToJSON;
58
- function SubscriptionActivityLineToJSONTyped(value, ignoreDiscriminator = false) {
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
- 'date': value['date'],
64
- 'endDate': value['endDate'],
65
- 'description': value['description'],
66
- 'checkOrCardNumber': value['checkOrCardNumber'],
67
- 'receiptNumber': value['receiptNumber'],
68
- 'invoiceId': value['invoiceId'],
69
- 'billingRunId': value['billingRunId'],
70
- 'appliedRefund': value['appliedRefund'],
71
- 'issuedCredit': value['issuedCredit'],
72
- 'paymentAmount': value['paymentAmount'],
73
- 'chargeAmount': value['chargeAmount'],
74
- 'balance': value['balance'],
75
- };
76
- }
77
- exports.SubscriptionActivityLineToJSONTyped = SubscriptionActivityLineToJSONTyped;
@@ -1,60 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Site } from './site';
13
- import type { Customer } from './customer';
14
- import type { SubscriptionActivityLine } from './subscription-activity-line';
15
- /**
16
- *
17
- * @export
18
- * @interface SubscriptionActivity
19
- */
20
- export interface SubscriptionActivity {
21
- /**
22
- * The site that the subscription is associated with
23
- * @type {Site}
24
- * @memberof SubscriptionActivity
25
- */
26
- site: Site;
27
- /**
28
- * The customer that the subscription is associated with
29
- * @type {Customer}
30
- * @memberof SubscriptionActivity
31
- */
32
- customer: Customer;
33
- /**
34
- * The asset that the subscription is associated with
35
- * @type {Customer}
36
- * @memberof SubscriptionActivity
37
- */
38
- asset: Customer;
39
- /**
40
- * The subscription the activity is related to
41
- * @type {Customer}
42
- * @memberof SubscriptionActivity
43
- */
44
- subscription: Customer;
45
- /**
46
- * Activity associated the subscription
47
- * @type {Array<SubscriptionActivityLine>}
48
- * @memberof SubscriptionActivity
49
- */
50
- activity: Array<SubscriptionActivityLine>;
51
- }
52
- /**
53
- * Check if a given object implements the SubscriptionActivity interface.
54
- */
55
- export declare function instanceOfSubscriptionActivity(value: object): value is SubscriptionActivity;
56
- export declare function SubscriptionActivityFromJSON(json: any): SubscriptionActivity;
57
- export declare function SubscriptionActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionActivity;
58
- export declare function SubscriptionActivityToJSON(json: any): SubscriptionActivity;
59
- export declare function SubscriptionActivityToJSONTyped(value?: SubscriptionActivity | null, ignoreDiscriminator?: boolean): any;
60
- //# sourceMappingURL=subscription-activity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription-activity.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-activity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAQ7E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,YAAY,EAAE,QAAQ,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAO3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAY/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa9H"}
@@ -1,70 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SubscriptionActivityToJSONTyped = exports.SubscriptionActivityToJSON = exports.SubscriptionActivityFromJSONTyped = exports.SubscriptionActivityFromJSON = exports.instanceOfSubscriptionActivity = void 0;
17
- const site_1 = require("./site");
18
- const customer_1 = require("./customer");
19
- const subscription_activity_line_1 = require("./subscription-activity-line");
20
- /**
21
- * Check if a given object implements the SubscriptionActivity interface.
22
- */
23
- function instanceOfSubscriptionActivity(value) {
24
- if (!('site' in value) || value['site'] === undefined)
25
- return false;
26
- if (!('customer' in value) || value['customer'] === undefined)
27
- return false;
28
- if (!('asset' in value) || value['asset'] === undefined)
29
- return false;
30
- if (!('subscription' in value) || value['subscription'] === undefined)
31
- return false;
32
- if (!('activity' in value) || value['activity'] === undefined)
33
- return false;
34
- return true;
35
- }
36
- exports.instanceOfSubscriptionActivity = instanceOfSubscriptionActivity;
37
- function SubscriptionActivityFromJSON(json) {
38
- return SubscriptionActivityFromJSONTyped(json, false);
39
- }
40
- exports.SubscriptionActivityFromJSON = SubscriptionActivityFromJSON;
41
- function SubscriptionActivityFromJSONTyped(json, ignoreDiscriminator) {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
- 'site': (0, site_1.SiteFromJSON)(json['site']),
47
- 'customer': (0, customer_1.CustomerFromJSON)(json['customer']),
48
- 'asset': (0, customer_1.CustomerFromJSON)(json['asset']),
49
- 'subscription': (0, customer_1.CustomerFromJSON)(json['subscription']),
50
- 'activity': (json['activity'].map(subscription_activity_line_1.SubscriptionActivityLineFromJSON)),
51
- };
52
- }
53
- exports.SubscriptionActivityFromJSONTyped = SubscriptionActivityFromJSONTyped;
54
- function SubscriptionActivityToJSON(json) {
55
- return SubscriptionActivityToJSONTyped(json, false);
56
- }
57
- exports.SubscriptionActivityToJSON = SubscriptionActivityToJSON;
58
- function SubscriptionActivityToJSONTyped(value, ignoreDiscriminator = false) {
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
- 'site': (0, site_1.SiteToJSON)(value['site']),
64
- 'customer': (0, customer_1.CustomerToJSON)(value['customer']),
65
- 'asset': (0, customer_1.CustomerToJSON)(value['asset']),
66
- 'subscription': (0, customer_1.CustomerToJSON)(value['subscription']),
67
- 'activity': (value['activity'].map(subscription_activity_line_1.SubscriptionActivityLineToJSON)),
68
- };
69
- }
70
- exports.SubscriptionActivityToJSONTyped = SubscriptionActivityToJSONTyped;
@@ -1,52 +0,0 @@
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
- /**
16
- * The type of the order (e.g., Fee, Merchandise)
17
- * @export
18
- * @enum {string}
19
- */
20
- export enum OrderType {
21
- FEE = 'FEE',
22
- MERCHANDISE = 'MERCHANDISE'
23
- }
24
-
25
-
26
- export function instanceOfOrderType(value: any): boolean {
27
- for (const key in OrderType) {
28
- if (Object.prototype.hasOwnProperty.call(OrderType, key)) {
29
- if (OrderType[key as keyof typeof OrderType] === value) {
30
- return true;
31
- }
32
- }
33
- }
34
- return false;
35
- }
36
-
37
- export function OrderTypeFromJSON(json: any): OrderType {
38
- return OrderTypeFromJSONTyped(json, false);
39
- }
40
-
41
- export function OrderTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderType {
42
- return json as OrderType;
43
- }
44
-
45
- export function OrderTypeToJSON(value?: OrderType | null): any {
46
- return value as any;
47
- }
48
-
49
- export function OrderTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderType {
50
- return value as OrderType;
51
- }
52
-