@managespace/sdk 0.0.35 → 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.
- package/dist/extensibility/functions/project/billing.d.ts +6 -25
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +16 -15
- package/dist/generated/apis/default-api.d.ts +2 -78
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +3 -251
- package/dist/generated/models/asset-response.d.ts +22 -9
- package/dist/generated/models/asset-response.d.ts.map +1 -1
- package/dist/generated/models/asset-response.js +15 -6
- package/dist/generated/models/create-asset-asset-category-relation-input.d.ts +34 -0
- package/dist/generated/models/create-asset-asset-category-relation-input.d.ts.map +1 -0
- package/dist/generated/models/create-asset-asset-category-relation-input.js +52 -0
- package/dist/generated/models/create-asset-custom.d.ts +20 -14
- package/dist/generated/models/create-asset-custom.d.ts.map +1 -1
- package/dist/generated/models/create-asset-custom.js +8 -6
- package/dist/generated/models/create-plan-charge.d.ts +6 -0
- package/dist/generated/models/create-plan-charge.d.ts.map +1 -1
- package/dist/generated/models/create-plan-charge.js +2 -0
- package/dist/generated/models/create-subscription.d.ts +70 -0
- package/dist/generated/models/create-subscription.d.ts.map +1 -0
- package/dist/generated/models/create-subscription.js +76 -0
- package/dist/generated/models/custom-create-plan.d.ts +76 -0
- package/dist/generated/models/custom-create-plan.d.ts.map +1 -0
- package/dist/generated/models/custom-create-plan.js +70 -0
- package/dist/generated/models/customer-response.d.ts +7 -0
- package/dist/generated/models/customer-response.d.ts.map +1 -1
- package/dist/generated/models/customer-response.js +3 -0
- package/dist/generated/models/index.d.ts +2 -15
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +2 -15
- package/dist/generated/models/org-response.d.ts +7 -0
- package/dist/generated/models/org-response.d.ts.map +1 -1
- package/dist/generated/models/org-response.js +3 -0
- package/dist/generated/models/plan-response.d.ts +50 -34
- package/dist/generated/models/plan-response.d.ts.map +1 -1
- package/dist/generated/models/plan-response.js +41 -39
- package/dist/generated/models/product-response.d.ts +6 -6
- package/dist/generated/models/product-response.d.ts.map +1 -1
- package/dist/generated/models/product-response.js +6 -6
- package/dist/generated/models/site-response.d.ts +7 -0
- package/dist/generated/models/site-response.d.ts.map +1 -1
- package/dist/generated/models/site-response.js +3 -0
- package/dist/generated/models/update-asset.d.ts +13 -0
- package/dist/generated/models/update-asset.d.ts.map +1 -1
- package/dist/generated/models/update-asset.js +5 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +23 -23
- package/src/generated/.openapi-generator/FILES +2 -15
- package/src/generated/apis/default-api.ts +8 -422
- package/src/generated/models/asset-response.ts +51 -24
- package/src/generated/models/create-asset-asset-category-relation-input.ts +74 -0
- package/src/generated/models/create-asset-custom.ts +39 -29
- package/src/generated/models/create-plan-charge.ts +8 -0
- package/src/generated/models/create-subscription.ts +128 -0
- package/src/generated/models/custom-create-plan.ts +132 -0
- package/src/generated/models/customer-response.ts +15 -0
- package/src/generated/models/index.ts +2 -15
- package/src/generated/models/org-response.ts +15 -0
- package/src/generated/models/plan-response.ts +113 -72
- package/src/generated/models/product-response.ts +21 -21
- package/src/generated/models/site-response.ts +15 -0
- package/src/generated/models/update-asset.ts +26 -0
|
@@ -27,13 +27,6 @@ import {
|
|
|
27
27
|
NoteResponseToJSON,
|
|
28
28
|
NoteResponseToJSONTyped,
|
|
29
29
|
} from './note-response';
|
|
30
|
-
import type { LeaseStatusResponse } from './lease-status-response';
|
|
31
|
-
import {
|
|
32
|
-
LeaseStatusResponseFromJSON,
|
|
33
|
-
LeaseStatusResponseFromJSONTyped,
|
|
34
|
-
LeaseStatusResponseToJSON,
|
|
35
|
-
LeaseStatusResponseToJSONTyped,
|
|
36
|
-
} from './lease-status-response';
|
|
37
30
|
import type { AssetCategoryResponse } from './asset-category-response';
|
|
38
31
|
import {
|
|
39
32
|
AssetCategoryResponseFromJSON,
|
|
@@ -55,6 +48,13 @@ import {
|
|
|
55
48
|
MapFeatureResponseToJSON,
|
|
56
49
|
MapFeatureResponseToJSONTyped,
|
|
57
50
|
} from './map-feature-response';
|
|
51
|
+
import type { PlanResponse } from './plan-response';
|
|
52
|
+
import {
|
|
53
|
+
PlanResponseFromJSON,
|
|
54
|
+
PlanResponseFromJSONTyped,
|
|
55
|
+
PlanResponseToJSON,
|
|
56
|
+
PlanResponseToJSONTyped,
|
|
57
|
+
} from './plan-response';
|
|
58
58
|
import type { SiteResponse } from './site-response';
|
|
59
59
|
import {
|
|
60
60
|
SiteResponseFromJSON,
|
|
@@ -69,13 +69,20 @@ import {
|
|
|
69
69
|
AssetClassResponseToJSON,
|
|
70
70
|
AssetClassResponseToJSONTyped,
|
|
71
71
|
} from './asset-class-response';
|
|
72
|
-
import type {
|
|
72
|
+
import type { ProductResponse } from './product-response';
|
|
73
|
+
import {
|
|
74
|
+
ProductResponseFromJSON,
|
|
75
|
+
ProductResponseFromJSONTyped,
|
|
76
|
+
ProductResponseToJSON,
|
|
77
|
+
ProductResponseToJSONTyped,
|
|
78
|
+
} from './product-response';
|
|
79
|
+
import type { ProductStatus } from './product-status';
|
|
73
80
|
import {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
} from './
|
|
81
|
+
ProductStatusFromJSON,
|
|
82
|
+
ProductStatusFromJSONTyped,
|
|
83
|
+
ProductStatusToJSON,
|
|
84
|
+
ProductStatusToJSONTyped,
|
|
85
|
+
} from './product-status';
|
|
79
86
|
|
|
80
87
|
/**
|
|
81
88
|
*
|
|
@@ -133,28 +140,34 @@ export interface AssetResponse {
|
|
|
133
140
|
mapFeature?: MapFeatureResponse | null;
|
|
134
141
|
/**
|
|
135
142
|
*
|
|
136
|
-
* @type {
|
|
143
|
+
* @type {ProductStatus}
|
|
137
144
|
* @memberof AssetResponse
|
|
138
145
|
*/
|
|
139
|
-
leaseStatus
|
|
146
|
+
leaseStatus: ProductStatus;
|
|
140
147
|
/**
|
|
141
148
|
*
|
|
142
|
-
* @type {
|
|
149
|
+
* @type {AssetCategoryResponse}
|
|
143
150
|
* @memberof AssetResponse
|
|
144
151
|
*/
|
|
145
|
-
|
|
152
|
+
assetCategory?: AssetCategoryResponse | null;
|
|
146
153
|
/**
|
|
147
154
|
*
|
|
148
|
-
* @type {
|
|
155
|
+
* @type {string}
|
|
149
156
|
* @memberof AssetResponse
|
|
150
157
|
*/
|
|
151
|
-
|
|
158
|
+
assetCategoryId: string | null;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {ProductResponse}
|
|
162
|
+
* @memberof AssetResponse
|
|
163
|
+
*/
|
|
164
|
+
product?: ProductResponse | null;
|
|
152
165
|
/**
|
|
153
166
|
*
|
|
154
167
|
* @type {string}
|
|
155
168
|
* @memberof AssetResponse
|
|
156
169
|
*/
|
|
157
|
-
|
|
170
|
+
productId: string | null;
|
|
158
171
|
/**
|
|
159
172
|
*
|
|
160
173
|
* @type {AssetClassResponse}
|
|
@@ -185,8 +198,16 @@ export interface AssetResponse {
|
|
|
185
198
|
* @memberof AssetResponse
|
|
186
199
|
*/
|
|
187
200
|
note?: Array<NoteResponse>;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @type {Array<PlanResponse>}
|
|
204
|
+
* @memberof AssetResponse
|
|
205
|
+
*/
|
|
206
|
+
plans?: Array<PlanResponse>;
|
|
188
207
|
}
|
|
189
208
|
|
|
209
|
+
|
|
210
|
+
|
|
190
211
|
/**
|
|
191
212
|
* Check if a given object implements the AssetResponse interface.
|
|
192
213
|
*/
|
|
@@ -196,7 +217,9 @@ export function instanceOfAssetResponse(value: object): value is AssetResponse {
|
|
|
196
217
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
197
218
|
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
198
219
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
220
|
+
if (!('leaseStatus' in value) || value['leaseStatus'] === undefined) return false;
|
|
199
221
|
if (!('assetCategoryId' in value) || value['assetCategoryId'] === undefined) return false;
|
|
222
|
+
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
200
223
|
if (!('assetClassId' in value) || value['assetClassId'] === undefined) return false;
|
|
201
224
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
202
225
|
return true;
|
|
@@ -220,15 +243,17 @@ export function AssetResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
220
243
|
'site': json['site'] == null ? undefined : SiteResponseFromJSON(json['site']),
|
|
221
244
|
'siteId': json['siteId'],
|
|
222
245
|
'mapFeature': json['mapFeature'] == null ? undefined : MapFeatureResponseFromJSON(json['mapFeature']),
|
|
223
|
-
'leaseStatus':
|
|
224
|
-
'stockStatus': json['stockStatus'] == null ? undefined : StockStatusResponseFromJSON(json['stockStatus']),
|
|
246
|
+
'leaseStatus': ProductStatusFromJSON(json['leaseStatus']),
|
|
225
247
|
'assetCategory': json['assetCategory'] == null ? undefined : AssetCategoryResponseFromJSON(json['assetCategory']),
|
|
226
248
|
'assetCategoryId': json['assetCategoryId'],
|
|
249
|
+
'product': json['product'] == null ? undefined : ProductResponseFromJSON(json['product']),
|
|
250
|
+
'productId': json['productId'],
|
|
227
251
|
'assetClass': json['assetClass'] == null ? undefined : AssetClassResponseFromJSON(json['assetClass']),
|
|
228
252
|
'assetClassId': json['assetClassId'],
|
|
229
253
|
'assetFeatures': json['assetFeatures'] == null ? undefined : ((json['assetFeatures'] as Array<any>).map(AssetFeatureResponseFromJSON)),
|
|
230
254
|
'metadata': json['metadata'],
|
|
231
255
|
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteResponseFromJSON)),
|
|
256
|
+
'plans': json['plans'] == null ? undefined : ((json['plans'] as Array<any>).map(PlanResponseFromJSON)),
|
|
232
257
|
};
|
|
233
258
|
}
|
|
234
259
|
|
|
@@ -251,15 +276,17 @@ export function AssetResponseToJSONTyped(value?: AssetResponse | null, ignoreDis
|
|
|
251
276
|
'site': SiteResponseToJSON(value['site']),
|
|
252
277
|
'siteId': value['siteId'],
|
|
253
278
|
'mapFeature': MapFeatureResponseToJSON(value['mapFeature']),
|
|
254
|
-
'leaseStatus':
|
|
255
|
-
'stockStatus': StockStatusResponseToJSON(value['stockStatus']),
|
|
279
|
+
'leaseStatus': ProductStatusToJSON(value['leaseStatus']),
|
|
256
280
|
'assetCategory': AssetCategoryResponseToJSON(value['assetCategory']),
|
|
257
281
|
'assetCategoryId': value['assetCategoryId'],
|
|
282
|
+
'product': ProductResponseToJSON(value['product']),
|
|
283
|
+
'productId': value['productId'],
|
|
258
284
|
'assetClass': AssetClassResponseToJSON(value['assetClass']),
|
|
259
285
|
'assetClassId': value['assetClassId'],
|
|
260
286
|
'assetFeatures': value['assetFeatures'] == null ? undefined : ((value['assetFeatures'] as Array<any>).map(AssetFeatureResponseToJSON)),
|
|
261
287
|
'metadata': value['metadata'],
|
|
262
288
|
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteResponseToJSON)),
|
|
289
|
+
'plans': value['plans'] == null ? undefined : ((value['plans'] as Array<any>).map(PlanResponseToJSON)),
|
|
263
290
|
};
|
|
264
291
|
}
|
|
265
292
|
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { CreateAssetCategory } from './create-asset-category';
|
|
17
|
+
import {
|
|
18
|
+
CreateAssetCategoryFromJSON,
|
|
19
|
+
CreateAssetCategoryFromJSONTyped,
|
|
20
|
+
CreateAssetCategoryToJSON,
|
|
21
|
+
CreateAssetCategoryToJSONTyped,
|
|
22
|
+
} from './create-asset-category';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateAssetAssetCategoryRelationInput
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateAssetAssetCategoryRelationInput {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {CreateAssetCategory}
|
|
33
|
+
* @memberof CreateAssetAssetCategoryRelationInput
|
|
34
|
+
*/
|
|
35
|
+
create: CreateAssetCategory;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CreateAssetAssetCategoryRelationInput interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCreateAssetAssetCategoryRelationInput(value: object): value is CreateAssetAssetCategoryRelationInput {
|
|
42
|
+
if (!('create' in value) || value['create'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CreateAssetAssetCategoryRelationInputFromJSON(json: any): CreateAssetAssetCategoryRelationInput {
|
|
47
|
+
return CreateAssetAssetCategoryRelationInputFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CreateAssetAssetCategoryRelationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAssetAssetCategoryRelationInput {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'create': CreateAssetCategoryFromJSON(json['create']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateAssetAssetCategoryRelationInputToJSON(json: any): CreateAssetAssetCategoryRelationInput {
|
|
61
|
+
return CreateAssetAssetCategoryRelationInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CreateAssetAssetCategoryRelationInputToJSONTyped(value?: CreateAssetAssetCategoryRelationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'create': CreateAssetCategoryToJSON(value['create']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CreateAssetAssetCategoryRelationInput } from './create-asset-asset-category-relation-input';
|
|
17
|
+
import {
|
|
18
|
+
CreateAssetAssetCategoryRelationInputFromJSON,
|
|
19
|
+
CreateAssetAssetCategoryRelationInputFromJSONTyped,
|
|
20
|
+
CreateAssetAssetCategoryRelationInputToJSON,
|
|
21
|
+
CreateAssetAssetCategoryRelationInputToJSONTyped,
|
|
22
|
+
} from './create-asset-asset-category-relation-input';
|
|
16
23
|
import type { CreateMapFeature } from './create-map-feature';
|
|
17
24
|
import {
|
|
18
25
|
CreateMapFeatureFromJSON,
|
|
@@ -20,20 +27,13 @@ import {
|
|
|
20
27
|
CreateMapFeatureToJSON,
|
|
21
28
|
CreateMapFeatureToJSONTyped,
|
|
22
29
|
} from './create-map-feature';
|
|
23
|
-
import type {
|
|
24
|
-
import {
|
|
25
|
-
CreateLeaseStatusFromJSON,
|
|
26
|
-
CreateLeaseStatusFromJSONTyped,
|
|
27
|
-
CreateLeaseStatusToJSON,
|
|
28
|
-
CreateLeaseStatusToJSONTyped,
|
|
29
|
-
} from './create-lease-status';
|
|
30
|
-
import type { CreateStockStatus } from './create-stock-status';
|
|
30
|
+
import type { ProductStatus } from './product-status';
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from './
|
|
32
|
+
ProductStatusFromJSON,
|
|
33
|
+
ProductStatusFromJSONTyped,
|
|
34
|
+
ProductStatusToJSON,
|
|
35
|
+
ProductStatusToJSONTyped,
|
|
36
|
+
} from './product-status';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
@@ -53,12 +53,30 @@ export interface CreateAssetCustom {
|
|
|
53
53
|
* @memberof CreateAssetCustom
|
|
54
54
|
*/
|
|
55
55
|
description: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ProductStatus}
|
|
59
|
+
* @memberof CreateAssetCustom
|
|
60
|
+
*/
|
|
61
|
+
leaseStatus?: ProductStatus;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {CreateAssetAssetCategoryRelationInput}
|
|
65
|
+
* @memberof CreateAssetCustom
|
|
66
|
+
*/
|
|
67
|
+
assetCategory?: CreateAssetAssetCategoryRelationInput | null;
|
|
56
68
|
/**
|
|
57
69
|
*
|
|
58
70
|
* @type {string}
|
|
59
71
|
* @memberof CreateAssetCustom
|
|
60
72
|
*/
|
|
61
73
|
assetCategoryId?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof CreateAssetCustom
|
|
78
|
+
*/
|
|
79
|
+
productId?: string | null;
|
|
62
80
|
/**
|
|
63
81
|
*
|
|
64
82
|
* @type {number}
|
|
@@ -77,18 +95,6 @@ export interface CreateAssetCustom {
|
|
|
77
95
|
* @memberof CreateAssetCustom
|
|
78
96
|
*/
|
|
79
97
|
mapFeature?: CreateMapFeature | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {CreateLeaseStatus}
|
|
83
|
-
* @memberof CreateAssetCustom
|
|
84
|
-
*/
|
|
85
|
-
leaseStatus?: CreateLeaseStatus | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {CreateStockStatus}
|
|
89
|
-
* @memberof CreateAssetCustom
|
|
90
|
-
*/
|
|
91
|
-
stockStatus?: CreateStockStatus | null;
|
|
92
98
|
/**
|
|
93
99
|
* List of asset feature IDs
|
|
94
100
|
* @type {Array<string>}
|
|
@@ -97,6 +103,8 @@ export interface CreateAssetCustom {
|
|
|
97
103
|
assetFeatureIds?: Array<string> | null;
|
|
98
104
|
}
|
|
99
105
|
|
|
106
|
+
|
|
107
|
+
|
|
100
108
|
/**
|
|
101
109
|
* Check if a given object implements the CreateAssetCustom interface.
|
|
102
110
|
*/
|
|
@@ -119,12 +127,13 @@ export function CreateAssetCustomFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
119
127
|
|
|
120
128
|
'name': json['name'],
|
|
121
129
|
'description': json['description'],
|
|
130
|
+
'leaseStatus': json['leaseStatus'] == null ? undefined : ProductStatusFromJSON(json['leaseStatus']),
|
|
131
|
+
'assetCategory': json['assetCategory'] == null ? undefined : CreateAssetAssetCategoryRelationInputFromJSON(json['assetCategory']),
|
|
122
132
|
'assetCategoryId': json['assetCategoryId'] == null ? undefined : json['assetCategoryId'],
|
|
133
|
+
'productId': json['productId'] == null ? undefined : json['productId'],
|
|
123
134
|
'assetClassId': json['assetClassId'],
|
|
124
135
|
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
125
136
|
'mapFeature': json['mapFeature'] == null ? undefined : CreateMapFeatureFromJSON(json['mapFeature']),
|
|
126
|
-
'leaseStatus': json['leaseStatus'] == null ? undefined : CreateLeaseStatusFromJSON(json['leaseStatus']),
|
|
127
|
-
'stockStatus': json['stockStatus'] == null ? undefined : CreateStockStatusFromJSON(json['stockStatus']),
|
|
128
137
|
'assetFeatureIds': json['assetFeatureIds'] == null ? undefined : json['assetFeatureIds'],
|
|
129
138
|
};
|
|
130
139
|
}
|
|
@@ -142,12 +151,13 @@ export function CreateAssetCustomToJSONTyped(value?: CreateAssetCustom | null, i
|
|
|
142
151
|
|
|
143
152
|
'name': value['name'],
|
|
144
153
|
'description': value['description'],
|
|
154
|
+
'leaseStatus': ProductStatusToJSON(value['leaseStatus']),
|
|
155
|
+
'assetCategory': CreateAssetAssetCategoryRelationInputToJSON(value['assetCategory']),
|
|
145
156
|
'assetCategoryId': value['assetCategoryId'],
|
|
157
|
+
'productId': value['productId'],
|
|
146
158
|
'assetClassId': value['assetClassId'],
|
|
147
159
|
'metadata': value['metadata'],
|
|
148
160
|
'mapFeature': CreateMapFeatureToJSON(value['mapFeature']),
|
|
149
|
-
'leaseStatus': CreateLeaseStatusToJSON(value['leaseStatus']),
|
|
150
|
-
'stockStatus': CreateStockStatusToJSON(value['stockStatus']),
|
|
151
161
|
'assetFeatureIds': value['assetFeatureIds'],
|
|
152
162
|
};
|
|
153
163
|
}
|
|
@@ -37,6 +37,12 @@ export interface CreatePlanCharge {
|
|
|
37
37
|
* @memberof CreatePlanCharge
|
|
38
38
|
*/
|
|
39
39
|
type: string;
|
|
40
|
+
/**
|
|
41
|
+
* Original unit price of Charge
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreatePlanCharge
|
|
44
|
+
*/
|
|
45
|
+
listPrice?: string;
|
|
40
46
|
/**
|
|
41
47
|
* Billing period for recurring and usage based Charges
|
|
42
48
|
* @type {string}
|
|
@@ -69,6 +75,7 @@ export function CreatePlanChargeFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
69
75
|
'productId': json['productId'],
|
|
70
76
|
'name': json['name'],
|
|
71
77
|
'type': json['type'],
|
|
78
|
+
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
72
79
|
'billingPeriod': json['billingPeriod'],
|
|
73
80
|
};
|
|
74
81
|
}
|
|
@@ -87,6 +94,7 @@ export function CreatePlanChargeToJSONTyped(value?: CreatePlanCharge | null, ign
|
|
|
87
94
|
'productId': value['productId'],
|
|
88
95
|
'name': value['name'],
|
|
89
96
|
'type': value['type'],
|
|
97
|
+
'listPrice': value['listPrice'],
|
|
90
98
|
'billingPeriod': value['billingPeriod'],
|
|
91
99
|
};
|
|
92
100
|
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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 { CreateSubscriptionPlan } from './create-subscription-plan';
|
|
17
|
+
import {
|
|
18
|
+
CreateSubscriptionPlanFromJSON,
|
|
19
|
+
CreateSubscriptionPlanFromJSONTyped,
|
|
20
|
+
CreateSubscriptionPlanToJSON,
|
|
21
|
+
CreateSubscriptionPlanToJSONTyped,
|
|
22
|
+
} from './create-subscription-plan';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateSubscription
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateSubscription {
|
|
30
|
+
/**
|
|
31
|
+
* Asset id associated with subscription
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateSubscription
|
|
34
|
+
*/
|
|
35
|
+
assetId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status of subscription contract
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateSubscription
|
|
40
|
+
*/
|
|
41
|
+
status: string;
|
|
42
|
+
/**
|
|
43
|
+
* Service start date for subscription contract
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateSubscription
|
|
46
|
+
*/
|
|
47
|
+
serviceStartDate: string;
|
|
48
|
+
/**
|
|
49
|
+
* Date subscription contract was signed and activated
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateSubscription
|
|
52
|
+
*/
|
|
53
|
+
contractEffectiveDate: string;
|
|
54
|
+
/**
|
|
55
|
+
* Billing start date for subscription contract
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateSubscription
|
|
58
|
+
*/
|
|
59
|
+
billingStartDate: string;
|
|
60
|
+
/**
|
|
61
|
+
* separate invoice generated
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof CreateSubscription
|
|
64
|
+
*/
|
|
65
|
+
separateInvoice: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Subscription plan details
|
|
68
|
+
* @type {Array<CreateSubscriptionPlan>}
|
|
69
|
+
* @memberof CreateSubscription
|
|
70
|
+
*/
|
|
71
|
+
plans: Array<CreateSubscriptionPlan>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CreateSubscription interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfCreateSubscription(value: object): value is CreateSubscription {
|
|
78
|
+
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
79
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
80
|
+
if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined) return false;
|
|
81
|
+
if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined) return false;
|
|
82
|
+
if (!('billingStartDate' in value) || value['billingStartDate'] === undefined) return false;
|
|
83
|
+
if (!('separateInvoice' in value) || value['separateInvoice'] === undefined) return false;
|
|
84
|
+
if (!('plans' in value) || value['plans'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function CreateSubscriptionFromJSON(json: any): CreateSubscription {
|
|
89
|
+
return CreateSubscriptionFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function CreateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscription {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'assetId': json['assetId'],
|
|
99
|
+
'status': json['status'],
|
|
100
|
+
'serviceStartDate': json['serviceStartDate'],
|
|
101
|
+
'contractEffectiveDate': json['contractEffectiveDate'],
|
|
102
|
+
'billingStartDate': json['billingStartDate'],
|
|
103
|
+
'separateInvoice': json['separateInvoice'],
|
|
104
|
+
'plans': ((json['plans'] as Array<any>).map(CreateSubscriptionPlanFromJSON)),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function CreateSubscriptionToJSON(json: any): CreateSubscription {
|
|
109
|
+
return CreateSubscriptionToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function CreateSubscriptionToJSONTyped(value?: CreateSubscription | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'assetId': value['assetId'],
|
|
120
|
+
'status': value['status'],
|
|
121
|
+
'serviceStartDate': value['serviceStartDate'],
|
|
122
|
+
'contractEffectiveDate': value['contractEffectiveDate'],
|
|
123
|
+
'billingStartDate': value['billingStartDate'],
|
|
124
|
+
'separateInvoice': value['separateInvoice'],
|
|
125
|
+
'plans': ((value['plans'] as Array<any>).map(CreateSubscriptionPlanToJSON)),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
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 { CreatePlanCharge } from './create-plan-charge';
|
|
17
|
+
import {
|
|
18
|
+
CreatePlanChargeFromJSON,
|
|
19
|
+
CreatePlanChargeFromJSONTyped,
|
|
20
|
+
CreatePlanChargeToJSON,
|
|
21
|
+
CreatePlanChargeToJSONTyped,
|
|
22
|
+
} from './create-plan-charge';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomCreatePlan
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomCreatePlan {
|
|
30
|
+
/**
|
|
31
|
+
* The product name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomCreatePlan
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The price of the product in the lowest denomination of the currency
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CustomCreatePlan
|
|
40
|
+
*/
|
|
41
|
+
price?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Tax exempt
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof CustomCreatePlan
|
|
46
|
+
*/
|
|
47
|
+
taxable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Tax exempt
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof CustomCreatePlan
|
|
52
|
+
*/
|
|
53
|
+
active?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CustomCreatePlan
|
|
58
|
+
*/
|
|
59
|
+
productId: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CustomCreatePlan
|
|
64
|
+
*/
|
|
65
|
+
assetId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CustomCreatePlan
|
|
70
|
+
*/
|
|
71
|
+
customerId: string;
|
|
72
|
+
/**
|
|
73
|
+
* Charges associated with plan
|
|
74
|
+
* @type {Array<CreatePlanCharge>}
|
|
75
|
+
* @memberof CustomCreatePlan
|
|
76
|
+
*/
|
|
77
|
+
charges: Array<CreatePlanCharge>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the CustomCreatePlan interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfCustomCreatePlan(value: object): value is CustomCreatePlan {
|
|
84
|
+
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
85
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
86
|
+
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function CustomCreatePlanFromJSON(json: any): CustomCreatePlan {
|
|
91
|
+
return CustomCreatePlanFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function CustomCreatePlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomCreatePlan {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
101
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
102
|
+
'taxable': json['taxable'] == null ? undefined : json['taxable'],
|
|
103
|
+
'active': json['active'] == null ? undefined : json['active'],
|
|
104
|
+
'productId': json['productId'],
|
|
105
|
+
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
106
|
+
'customerId': json['customerId'],
|
|
107
|
+
'charges': ((json['charges'] as Array<any>).map(CreatePlanChargeFromJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function CustomCreatePlanToJSON(json: any): CustomCreatePlan {
|
|
112
|
+
return CustomCreatePlanToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function CustomCreatePlanToJSONTyped(value?: CustomCreatePlan | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'name': value['name'],
|
|
123
|
+
'price': value['price'],
|
|
124
|
+
'taxable': value['taxable'],
|
|
125
|
+
'active': value['active'],
|
|
126
|
+
'productId': value['productId'],
|
|
127
|
+
'assetId': value['assetId'],
|
|
128
|
+
'customerId': value['customerId'],
|
|
129
|
+
'charges': ((value['charges'] as Array<any>).map(CreatePlanChargeToJSON)),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|