@managespace/sdk 0.1.121 → 0.1.122
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/extensibility-function.d.ts +19 -4
- package/dist/extensibility/functions/extensibility-function.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.d.ts +1 -11
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +0 -10
- package/dist/extensibility/types/step-function-signature.d.ts +6 -2
- package/dist/extensibility/types/step-function-signature.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +1 -21
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +0 -64
- package/dist/generated/models/create-payment.d.ts +0 -12
- package/dist/generated/models/create-payment.d.ts.map +1 -1
- package/dist/generated/models/create-payment.js +0 -4
- package/dist/generated/models/create-product-custom.d.ts +6 -0
- package/dist/generated/models/create-product-custom.d.ts.map +1 -1
- package/dist/generated/models/create-product-custom.js +4 -0
- package/dist/generated/models/get-payments-query.d.ts +0 -18
- package/dist/generated/models/get-payments-query.d.ts.map +1 -1
- package/dist/generated/models/get-payments-query.js +0 -6
- package/dist/generated/models/index.d.ts +0 -4
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +0 -4
- package/dist/generated/models/payment.d.ts +0 -12
- package/dist/generated/models/payment.d.ts.map +1 -1
- package/dist/generated/models/payment.js +0 -4
- package/dist/generated/models/product-custom.d.ts +6 -0
- package/dist/generated/models/product-custom.d.ts.map +1 -1
- package/dist/generated/models/product-custom.js +4 -0
- package/dist/generated/models/update-payment.d.ts +0 -12
- package/dist/generated/models/update-payment.d.ts.map +1 -1
- package/dist/generated/models/update-payment.js +0 -4
- package/dist/generated/models/update-product.d.ts +6 -0
- package/dist/generated/models/update-product.d.ts.map +1 -1
- package/dist/generated/models/update-product.js +4 -0
- package/package.deploy.json +5 -2
- package/package.json +5 -2
- package/src/extensibility/functions/extensibility-function.ts +18 -3
- package/src/extensibility/functions/project/billing.ts +1 -12
- package/src/extensibility/types/step-function-signature.ts +6 -2
- package/src/generated/.openapi-generator/FILES +0 -4
- package/src/generated/apis/default-api.ts +0 -99
- package/src/generated/models/create-payment.ts +0 -16
- package/src/generated/models/create-product-custom.ts +9 -0
- package/src/generated/models/get-payments-query.ts +0 -24
- package/src/generated/models/index.ts +0 -4
- package/src/generated/models/payment.ts +0 -16
- package/src/generated/models/product-custom.ts +9 -0
- package/src/generated/models/update-payment.ts +0 -16
- package/src/generated/models/update-product.ts +9 -0
- package/dist/extensibility/types/extensibility-function-api.d.ts +0 -10
- package/dist/extensibility/types/extensibility-function-api.d.ts.map +0 -1
- package/dist/extensibility/types/extensibility-function-api.js +0 -2
- package/dist/extensibility/types/extensibility-function-signature.d.ts +0 -5
- package/dist/extensibility/types/extensibility-function-signature.d.ts.map +0 -1
- package/dist/extensibility/types/extensibility-function-signature.js +0 -2
- package/dist/extensibility/types/step-function-api.d.ts +0 -7
- package/dist/extensibility/types/step-function-api.d.ts.map +0 -1
- package/dist/extensibility/types/step-function-api.js +0 -2
- package/dist/generated/models/billing-schedule.d.ts +0 -149
- package/dist/generated/models/billing-schedule.d.ts.map +0 -1
- package/dist/generated/models/billing-schedule.js +0 -129
- package/dist/generated/models/get-billing-schedules200-response.d.ts +0 -41
- package/dist/generated/models/get-billing-schedules200-response.d.ts.map +0 -1
- package/dist/generated/models/get-billing-schedules200-response.js +0 -55
- package/dist/generated/models/key-metrics.d.ts +0 -51
- package/dist/generated/models/key-metrics.d.ts.map +0 -1
- package/dist/generated/models/key-metrics.js +0 -63
- package/dist/generated/models/schedule-line.d.ts +0 -154
- package/dist/generated/models/schedule-line.d.ts.map +0 -1
- package/dist/generated/models/schedule-line.js +0 -132
- package/src/extensibility/types/extensibility-function-api.ts +0 -10
- package/src/extensibility/types/extensibility-function-signature.ts +0 -16
- package/src/extensibility/types/step-function-api.ts +0 -7
- package/src/generated/models/billing-schedule.ts +0 -252
- package/src/generated/models/get-billing-schedules200-response.ts +0 -89
- package/src/generated/models/key-metrics.ts +0 -93
- package/src/generated/models/schedule-line.ts +0 -256
|
@@ -1,252 +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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { KeyMetrics } from './key-metrics';
|
|
17
|
-
import {
|
|
18
|
-
KeyMetricsFromJSON,
|
|
19
|
-
KeyMetricsFromJSONTyped,
|
|
20
|
-
KeyMetricsToJSON,
|
|
21
|
-
KeyMetricsToJSONTyped,
|
|
22
|
-
} from './key-metrics';
|
|
23
|
-
import type { ScheduleLine } from './schedule-line';
|
|
24
|
-
import {
|
|
25
|
-
ScheduleLineFromJSON,
|
|
26
|
-
ScheduleLineFromJSONTyped,
|
|
27
|
-
ScheduleLineToJSON,
|
|
28
|
-
ScheduleLineToJSONTyped,
|
|
29
|
-
} from './schedule-line';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface BillingSchedule
|
|
35
|
-
*/
|
|
36
|
-
export interface BillingSchedule {
|
|
37
|
-
/**
|
|
38
|
-
* Billing Schedule ID
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof BillingSchedule
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* Billing Schedule UUID
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof BillingSchedule
|
|
47
|
-
*/
|
|
48
|
-
uuid: string;
|
|
49
|
-
/**
|
|
50
|
-
* Customer ID
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof BillingSchedule
|
|
53
|
-
*/
|
|
54
|
-
customerId: string;
|
|
55
|
-
/**
|
|
56
|
-
* Customer Name
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof BillingSchedule
|
|
59
|
-
*/
|
|
60
|
-
customerName: string;
|
|
61
|
-
/**
|
|
62
|
-
* Subscription ID
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof BillingSchedule
|
|
65
|
-
*/
|
|
66
|
-
subscriptionId: string;
|
|
67
|
-
/**
|
|
68
|
-
* Product ID
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof BillingSchedule
|
|
71
|
-
*/
|
|
72
|
-
productId: string;
|
|
73
|
-
/**
|
|
74
|
-
* Product Name
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof BillingSchedule
|
|
77
|
-
*/
|
|
78
|
-
productName: string;
|
|
79
|
-
/**
|
|
80
|
-
* Charge ID
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof BillingSchedule
|
|
83
|
-
*/
|
|
84
|
-
chargeId: string;
|
|
85
|
-
/**
|
|
86
|
-
* Charge Name
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof BillingSchedule
|
|
89
|
-
*/
|
|
90
|
-
chargeName: string;
|
|
91
|
-
/**
|
|
92
|
-
* Charge Type
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof BillingSchedule
|
|
95
|
-
*/
|
|
96
|
-
chargeType: string;
|
|
97
|
-
/**
|
|
98
|
-
* Charge Timing
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof BillingSchedule
|
|
101
|
-
*/
|
|
102
|
-
chargeTiming: string;
|
|
103
|
-
/**
|
|
104
|
-
* The first billing date for this charge
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof BillingSchedule
|
|
107
|
-
*/
|
|
108
|
-
startDate: string;
|
|
109
|
-
/**
|
|
110
|
-
* The last billing date for this charge
|
|
111
|
-
* @type {string}
|
|
112
|
-
* @memberof BillingSchedule
|
|
113
|
-
*/
|
|
114
|
-
endDate: string;
|
|
115
|
-
/**
|
|
116
|
-
* Key metrics for the billing schedule
|
|
117
|
-
* @type {KeyMetrics}
|
|
118
|
-
* @memberof BillingSchedule
|
|
119
|
-
*/
|
|
120
|
-
keyMetrics: KeyMetrics;
|
|
121
|
-
/**
|
|
122
|
-
* The currency for the billing schedule
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof BillingSchedule
|
|
125
|
-
*/
|
|
126
|
-
currency: string;
|
|
127
|
-
/**
|
|
128
|
-
* When the billing schedule was created
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @memberof BillingSchedule
|
|
131
|
-
*/
|
|
132
|
-
createdAt: string;
|
|
133
|
-
/**
|
|
134
|
-
* When the billing schedule was last updated
|
|
135
|
-
* @type {string}
|
|
136
|
-
* @memberof BillingSchedule
|
|
137
|
-
*/
|
|
138
|
-
updatedAt: string;
|
|
139
|
-
/**
|
|
140
|
-
* The email of the user who created the billing schedule
|
|
141
|
-
* @type {string}
|
|
142
|
-
* @memberof BillingSchedule
|
|
143
|
-
*/
|
|
144
|
-
createdBy: string;
|
|
145
|
-
/**
|
|
146
|
-
* The email of the user who last updated the billing schedule
|
|
147
|
-
* @type {string}
|
|
148
|
-
* @memberof BillingSchedule
|
|
149
|
-
*/
|
|
150
|
-
updatedBy: string;
|
|
151
|
-
/**
|
|
152
|
-
* The schedule lines for the billing schedule
|
|
153
|
-
* @type {Array<ScheduleLine>}
|
|
154
|
-
* @memberof BillingSchedule
|
|
155
|
-
*/
|
|
156
|
-
scheduleLines: Array<ScheduleLine>;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Check if a given object implements the BillingSchedule interface.
|
|
161
|
-
*/
|
|
162
|
-
export function instanceOfBillingSchedule(value: object): value is BillingSchedule {
|
|
163
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
164
|
-
if (!('uuid' in value) || value['uuid'] === undefined) return false;
|
|
165
|
-
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
166
|
-
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
167
|
-
if (!('subscriptionId' in value) || value['subscriptionId'] === undefined) return false;
|
|
168
|
-
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
169
|
-
if (!('productName' in value) || value['productName'] === undefined) return false;
|
|
170
|
-
if (!('chargeId' in value) || value['chargeId'] === undefined) return false;
|
|
171
|
-
if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
|
|
172
|
-
if (!('chargeType' in value) || value['chargeType'] === undefined) return false;
|
|
173
|
-
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined) return false;
|
|
174
|
-
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
175
|
-
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
176
|
-
if (!('keyMetrics' in value) || value['keyMetrics'] === undefined) return false;
|
|
177
|
-
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
178
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
179
|
-
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
180
|
-
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
181
|
-
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
182
|
-
if (!('scheduleLines' in value) || value['scheduleLines'] === undefined) return false;
|
|
183
|
-
return true;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export function BillingScheduleFromJSON(json: any): BillingSchedule {
|
|
187
|
-
return BillingScheduleFromJSONTyped(json, false);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export function BillingScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingSchedule {
|
|
191
|
-
if (json == null) {
|
|
192
|
-
return json;
|
|
193
|
-
}
|
|
194
|
-
return {
|
|
195
|
-
|
|
196
|
-
'id': json['id'],
|
|
197
|
-
'uuid': json['uuid'],
|
|
198
|
-
'customerId': json['customerId'],
|
|
199
|
-
'customerName': json['customerName'],
|
|
200
|
-
'subscriptionId': json['subscriptionId'],
|
|
201
|
-
'productId': json['productId'],
|
|
202
|
-
'productName': json['productName'],
|
|
203
|
-
'chargeId': json['chargeId'],
|
|
204
|
-
'chargeName': json['chargeName'],
|
|
205
|
-
'chargeType': json['chargeType'],
|
|
206
|
-
'chargeTiming': json['chargeTiming'],
|
|
207
|
-
'startDate': json['startDate'],
|
|
208
|
-
'endDate': json['endDate'],
|
|
209
|
-
'keyMetrics': KeyMetricsFromJSON(json['keyMetrics']),
|
|
210
|
-
'currency': json['currency'],
|
|
211
|
-
'createdAt': json['createdAt'],
|
|
212
|
-
'updatedAt': json['updatedAt'],
|
|
213
|
-
'createdBy': json['createdBy'],
|
|
214
|
-
'updatedBy': json['updatedBy'],
|
|
215
|
-
'scheduleLines': ((json['scheduleLines'] as Array<any>).map(ScheduleLineFromJSON)),
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export function BillingScheduleToJSON(json: any): BillingSchedule {
|
|
220
|
-
return BillingScheduleToJSONTyped(json, false);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export function BillingScheduleToJSONTyped(value?: BillingSchedule | null, ignoreDiscriminator: boolean = false): any {
|
|
224
|
-
if (value == null) {
|
|
225
|
-
return value;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
return {
|
|
229
|
-
|
|
230
|
-
'id': value['id'],
|
|
231
|
-
'uuid': value['uuid'],
|
|
232
|
-
'customerId': value['customerId'],
|
|
233
|
-
'customerName': value['customerName'],
|
|
234
|
-
'subscriptionId': value['subscriptionId'],
|
|
235
|
-
'productId': value['productId'],
|
|
236
|
-
'productName': value['productName'],
|
|
237
|
-
'chargeId': value['chargeId'],
|
|
238
|
-
'chargeName': value['chargeName'],
|
|
239
|
-
'chargeType': value['chargeType'],
|
|
240
|
-
'chargeTiming': value['chargeTiming'],
|
|
241
|
-
'startDate': value['startDate'],
|
|
242
|
-
'endDate': value['endDate'],
|
|
243
|
-
'keyMetrics': KeyMetricsToJSON(value['keyMetrics']),
|
|
244
|
-
'currency': value['currency'],
|
|
245
|
-
'createdAt': value['createdAt'],
|
|
246
|
-
'updatedAt': value['updatedAt'],
|
|
247
|
-
'createdBy': value['createdBy'],
|
|
248
|
-
'updatedBy': value['updatedBy'],
|
|
249
|
-
'scheduleLines': ((value['scheduleLines'] as Array<any>).map(ScheduleLineToJSON)),
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
|
|
@@ -1,89 +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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { BillingSchedule } from './billing-schedule';
|
|
17
|
-
import {
|
|
18
|
-
BillingScheduleFromJSON,
|
|
19
|
-
BillingScheduleFromJSONTyped,
|
|
20
|
-
BillingScheduleToJSON,
|
|
21
|
-
BillingScheduleToJSONTyped,
|
|
22
|
-
} from './billing-schedule';
|
|
23
|
-
import type { PageMeta } from './page-meta';
|
|
24
|
-
import {
|
|
25
|
-
PageMetaFromJSON,
|
|
26
|
-
PageMetaFromJSONTyped,
|
|
27
|
-
PageMetaToJSON,
|
|
28
|
-
PageMetaToJSONTyped,
|
|
29
|
-
} from './page-meta';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface GetBillingSchedules200Response
|
|
35
|
-
*/
|
|
36
|
-
export interface GetBillingSchedules200Response {
|
|
37
|
-
/**
|
|
38
|
-
* The pagination metadata
|
|
39
|
-
* @type {PageMeta}
|
|
40
|
-
* @memberof GetBillingSchedules200Response
|
|
41
|
-
*/
|
|
42
|
-
pageMeta: PageMeta;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {Array<BillingSchedule>}
|
|
46
|
-
* @memberof GetBillingSchedules200Response
|
|
47
|
-
*/
|
|
48
|
-
results?: Array<BillingSchedule>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the GetBillingSchedules200Response interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfGetBillingSchedules200Response(value: object): value is GetBillingSchedules200Response {
|
|
55
|
-
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function GetBillingSchedules200ResponseFromJSON(json: any): GetBillingSchedules200Response {
|
|
60
|
-
return GetBillingSchedules200ResponseFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function GetBillingSchedules200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBillingSchedules200Response {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
-
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(BillingScheduleFromJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function GetBillingSchedules200ResponseToJSON(json: any): GetBillingSchedules200Response {
|
|
75
|
-
return GetBillingSchedules200ResponseToJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function GetBillingSchedules200ResponseToJSONTyped(value?: GetBillingSchedules200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
-
if (value == null) {
|
|
80
|
-
return value;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
|
|
85
|
-
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
-
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(BillingScheduleToJSON)),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
@@ -1,93 +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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface KeyMetrics
|
|
20
|
-
*/
|
|
21
|
-
export interface KeyMetrics {
|
|
22
|
-
/**
|
|
23
|
-
* Monthly Recurring Revenue
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof KeyMetrics
|
|
26
|
-
*/
|
|
27
|
-
monthlyRecurringRevenue: string;
|
|
28
|
-
/**
|
|
29
|
-
* Annual Contract Revenue
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof KeyMetrics
|
|
32
|
-
*/
|
|
33
|
-
annualContractRevenue: string;
|
|
34
|
-
/**
|
|
35
|
-
* Total Contract Revenue
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof KeyMetrics
|
|
38
|
-
*/
|
|
39
|
-
totalContractRevenue: string;
|
|
40
|
-
/**
|
|
41
|
-
* Amount Invoiced
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof KeyMetrics
|
|
44
|
-
*/
|
|
45
|
-
amountInvoiced: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the KeyMetrics interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfKeyMetrics(value: object): value is KeyMetrics {
|
|
52
|
-
if (!('monthlyRecurringRevenue' in value) || value['monthlyRecurringRevenue'] === undefined) return false;
|
|
53
|
-
if (!('annualContractRevenue' in value) || value['annualContractRevenue'] === undefined) return false;
|
|
54
|
-
if (!('totalContractRevenue' in value) || value['totalContractRevenue'] === undefined) return false;
|
|
55
|
-
if (!('amountInvoiced' in value) || value['amountInvoiced'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function KeyMetricsFromJSON(json: any): KeyMetrics {
|
|
60
|
-
return KeyMetricsFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function KeyMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyMetrics {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'monthlyRecurringRevenue': json['monthlyRecurringRevenue'],
|
|
70
|
-
'annualContractRevenue': json['annualContractRevenue'],
|
|
71
|
-
'totalContractRevenue': json['totalContractRevenue'],
|
|
72
|
-
'amountInvoiced': json['amountInvoiced'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function KeyMetricsToJSON(json: any): KeyMetrics {
|
|
77
|
-
return KeyMetricsToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function KeyMetricsToJSONTyped(value?: KeyMetrics | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'monthlyRecurringRevenue': value['monthlyRecurringRevenue'],
|
|
88
|
-
'annualContractRevenue': value['annualContractRevenue'],
|
|
89
|
-
'totalContractRevenue': value['totalContractRevenue'],
|
|
90
|
-
'amountInvoiced': value['amountInvoiced'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
@@ -1,256 +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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ProductType } from './product-type';
|
|
17
|
-
import {
|
|
18
|
-
ProductTypeFromJSON,
|
|
19
|
-
ProductTypeFromJSONTyped,
|
|
20
|
-
ProductTypeToJSON,
|
|
21
|
-
ProductTypeToJSONTyped,
|
|
22
|
-
} from './product-type';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ScheduleLine
|
|
28
|
-
*/
|
|
29
|
-
export interface ScheduleLine {
|
|
30
|
-
/**
|
|
31
|
-
* Schedule Line ID
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ScheduleLine
|
|
34
|
-
*/
|
|
35
|
-
id: number;
|
|
36
|
-
/**
|
|
37
|
-
* Schedule Line UID
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof ScheduleLine
|
|
40
|
-
*/
|
|
41
|
-
uid: string;
|
|
42
|
-
/**
|
|
43
|
-
* Line Type
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof ScheduleLine
|
|
46
|
-
*/
|
|
47
|
-
lineType: string;
|
|
48
|
-
/**
|
|
49
|
-
* Charge Ready Date
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof ScheduleLine
|
|
52
|
-
*/
|
|
53
|
-
chargeReadyDate: string;
|
|
54
|
-
/**
|
|
55
|
-
* Start Date
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof ScheduleLine
|
|
58
|
-
*/
|
|
59
|
-
startDate: string;
|
|
60
|
-
/**
|
|
61
|
-
* End Date
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof ScheduleLine
|
|
64
|
-
*/
|
|
65
|
-
endDate: string;
|
|
66
|
-
/**
|
|
67
|
-
* Unit Price
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof ScheduleLine
|
|
70
|
-
*/
|
|
71
|
-
unitPrice: string;
|
|
72
|
-
/**
|
|
73
|
-
* List Price
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof ScheduleLine
|
|
76
|
-
*/
|
|
77
|
-
listPrice: string;
|
|
78
|
-
/**
|
|
79
|
-
* List Price Base
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof ScheduleLine
|
|
82
|
-
*/
|
|
83
|
-
listPriceBase: string;
|
|
84
|
-
/**
|
|
85
|
-
* Quantity
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof ScheduleLine
|
|
88
|
-
*/
|
|
89
|
-
quantity: number;
|
|
90
|
-
/**
|
|
91
|
-
* Discount
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof ScheduleLine
|
|
94
|
-
*/
|
|
95
|
-
discount: number;
|
|
96
|
-
/**
|
|
97
|
-
* Amount
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof ScheduleLine
|
|
100
|
-
*/
|
|
101
|
-
amount: string;
|
|
102
|
-
/**
|
|
103
|
-
* Remaining Included Units
|
|
104
|
-
* @type {number}
|
|
105
|
-
* @memberof ScheduleLine
|
|
106
|
-
*/
|
|
107
|
-
remainingIncludedUnits: number;
|
|
108
|
-
/**
|
|
109
|
-
* Total Included Units
|
|
110
|
-
* @type {number}
|
|
111
|
-
* @memberof ScheduleLine
|
|
112
|
-
*/
|
|
113
|
-
totalIncludedUnits: number;
|
|
114
|
-
/**
|
|
115
|
-
* Invoiced
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof ScheduleLine
|
|
118
|
-
*/
|
|
119
|
-
invoiced: string;
|
|
120
|
-
/**
|
|
121
|
-
* When the billing schedule was created
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof ScheduleLine
|
|
124
|
-
*/
|
|
125
|
-
createdAt: string;
|
|
126
|
-
/**
|
|
127
|
-
* When the billing schedule was last updated
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof ScheduleLine
|
|
130
|
-
*/
|
|
131
|
-
updatedAt: string;
|
|
132
|
-
/**
|
|
133
|
-
* The email of the user who created the billing schedule
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof ScheduleLine
|
|
136
|
-
*/
|
|
137
|
-
createdBy: string;
|
|
138
|
-
/**
|
|
139
|
-
* The email of the user who last updated the billing schedule
|
|
140
|
-
* @type {string}
|
|
141
|
-
* @memberof ScheduleLine
|
|
142
|
-
*/
|
|
143
|
-
updatedBy: string;
|
|
144
|
-
/**
|
|
145
|
-
* The description of the billing schedule line
|
|
146
|
-
* @type {string}
|
|
147
|
-
* @memberof ScheduleLine
|
|
148
|
-
*/
|
|
149
|
-
description: string;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {ProductType}
|
|
153
|
-
* @memberof ScheduleLine
|
|
154
|
-
*/
|
|
155
|
-
productType: ProductType;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Check if a given object implements the ScheduleLine interface.
|
|
162
|
-
*/
|
|
163
|
-
export function instanceOfScheduleLine(value: object): value is ScheduleLine {
|
|
164
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
165
|
-
if (!('uid' in value) || value['uid'] === undefined) return false;
|
|
166
|
-
if (!('lineType' in value) || value['lineType'] === undefined) return false;
|
|
167
|
-
if (!('chargeReadyDate' in value) || value['chargeReadyDate'] === undefined) return false;
|
|
168
|
-
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
169
|
-
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
170
|
-
if (!('unitPrice' in value) || value['unitPrice'] === undefined) return false;
|
|
171
|
-
if (!('listPrice' in value) || value['listPrice'] === undefined) return false;
|
|
172
|
-
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined) return false;
|
|
173
|
-
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
174
|
-
if (!('discount' in value) || value['discount'] === undefined) return false;
|
|
175
|
-
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
176
|
-
if (!('remainingIncludedUnits' in value) || value['remainingIncludedUnits'] === undefined) return false;
|
|
177
|
-
if (!('totalIncludedUnits' in value) || value['totalIncludedUnits'] === undefined) return false;
|
|
178
|
-
if (!('invoiced' in value) || value['invoiced'] === undefined) return false;
|
|
179
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
180
|
-
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
181
|
-
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
182
|
-
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
183
|
-
if (!('description' in value) || value['description'] === undefined) return false;
|
|
184
|
-
if (!('productType' in value) || value['productType'] === undefined) return false;
|
|
185
|
-
return true;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export function ScheduleLineFromJSON(json: any): ScheduleLine {
|
|
189
|
-
return ScheduleLineFromJSONTyped(json, false);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export function ScheduleLineFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleLine {
|
|
193
|
-
if (json == null) {
|
|
194
|
-
return json;
|
|
195
|
-
}
|
|
196
|
-
return {
|
|
197
|
-
|
|
198
|
-
'id': json['id'],
|
|
199
|
-
'uid': json['uid'],
|
|
200
|
-
'lineType': json['lineType'],
|
|
201
|
-
'chargeReadyDate': json['chargeReadyDate'],
|
|
202
|
-
'startDate': json['startDate'],
|
|
203
|
-
'endDate': json['endDate'],
|
|
204
|
-
'unitPrice': json['unitPrice'],
|
|
205
|
-
'listPrice': json['listPrice'],
|
|
206
|
-
'listPriceBase': json['listPriceBase'],
|
|
207
|
-
'quantity': json['quantity'],
|
|
208
|
-
'discount': json['discount'],
|
|
209
|
-
'amount': json['amount'],
|
|
210
|
-
'remainingIncludedUnits': json['remainingIncludedUnits'],
|
|
211
|
-
'totalIncludedUnits': json['totalIncludedUnits'],
|
|
212
|
-
'invoiced': json['invoiced'],
|
|
213
|
-
'createdAt': json['createdAt'],
|
|
214
|
-
'updatedAt': json['updatedAt'],
|
|
215
|
-
'createdBy': json['createdBy'],
|
|
216
|
-
'updatedBy': json['updatedBy'],
|
|
217
|
-
'description': json['description'],
|
|
218
|
-
'productType': ProductTypeFromJSON(json['productType']),
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export function ScheduleLineToJSON(json: any): ScheduleLine {
|
|
223
|
-
return ScheduleLineToJSONTyped(json, false);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export function ScheduleLineToJSONTyped(value?: ScheduleLine | null, ignoreDiscriminator: boolean = false): any {
|
|
227
|
-
if (value == null) {
|
|
228
|
-
return value;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
return {
|
|
232
|
-
|
|
233
|
-
'id': value['id'],
|
|
234
|
-
'uid': value['uid'],
|
|
235
|
-
'lineType': value['lineType'],
|
|
236
|
-
'chargeReadyDate': value['chargeReadyDate'],
|
|
237
|
-
'startDate': value['startDate'],
|
|
238
|
-
'endDate': value['endDate'],
|
|
239
|
-
'unitPrice': value['unitPrice'],
|
|
240
|
-
'listPrice': value['listPrice'],
|
|
241
|
-
'listPriceBase': value['listPriceBase'],
|
|
242
|
-
'quantity': value['quantity'],
|
|
243
|
-
'discount': value['discount'],
|
|
244
|
-
'amount': value['amount'],
|
|
245
|
-
'remainingIncludedUnits': value['remainingIncludedUnits'],
|
|
246
|
-
'totalIncludedUnits': value['totalIncludedUnits'],
|
|
247
|
-
'invoiced': value['invoiced'],
|
|
248
|
-
'createdAt': value['createdAt'],
|
|
249
|
-
'updatedAt': value['updatedAt'],
|
|
250
|
-
'createdBy': value['createdBy'],
|
|
251
|
-
'updatedBy': value['updatedBy'],
|
|
252
|
-
'description': value['description'],
|
|
253
|
-
'productType': ProductTypeToJSON(value['productType']),
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
|