@managespace/sdk 0.0.59 → 0.0.60
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 +1 -14
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +11 -10
- package/dist/extensibility/types/control.d.ts +6 -1
- package/dist/extensibility/types/control.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +12 -24
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +39 -77
- package/dist/generated/models/asset-response.d.ts +3 -3
- package/dist/generated/models/asset-response.d.ts.map +1 -1
- package/dist/generated/models/asset-response.js +3 -3
- package/dist/generated/models/create-asset-custom.d.ts +3 -3
- package/dist/generated/models/create-asset-custom.d.ts.map +1 -1
- package/dist/generated/models/create-asset-custom.js +3 -3
- package/dist/generated/models/index.d.ts +1 -2
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -2
- package/dist/generated/models/lease-status.d.ts +33 -0
- package/dist/generated/models/lease-status.d.ts.map +1 -0
- package/dist/generated/models/lease-status.js +58 -0
- package/dist/generated/models/update-asset.d.ts +3 -3
- package/dist/generated/models/update-asset.d.ts.map +1 -1
- package/dist/generated/models/update-asset.js +3 -3
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +12 -12
- package/src/extensibility/types/control.ts +12 -1
- package/src/generated/.openapi-generator/FILES +1 -2
- package/src/generated/apis/default-api.ts +64 -131
- package/src/generated/models/asset-response.ts +11 -11
- package/src/generated/models/create-asset-custom.ts +11 -11
- package/src/generated/models/index.ts +1 -2
- package/src/generated/models/lease-status.ts +60 -0
- package/src/generated/models/update-asset.ts +10 -10
- package/.turbo/turbo-build.log +0 -2
- package/dist/generated/models/cancel-subscription.d.ts +0 -39
- package/dist/generated/models/cancel-subscription.d.ts.map +0 -1
- package/dist/generated/models/cancel-subscription.js +0 -51
- package/src/generated/models/cancel-subscription.ts +0 -73
- package/src/generated/models/create-lease-status.ts +0 -94
- package/src/generated/models/lease-status-response.ts +0 -133
- package/src/generated/models/product-status.ts +0 -60
|
@@ -22,7 +22,6 @@ import type {
|
|
|
22
22
|
AssetResponse,
|
|
23
23
|
BillingRunResponse,
|
|
24
24
|
CalendarResponse,
|
|
25
|
-
CancelSubscription,
|
|
26
25
|
ChargeResponse,
|
|
27
26
|
ChartOfAccountsResponse,
|
|
28
27
|
CommunicationResponse,
|
|
@@ -100,6 +99,7 @@ import type {
|
|
|
100
99
|
GetWorkflowInstances200Response,
|
|
101
100
|
IntentResponse,
|
|
102
101
|
InvoiceResponse,
|
|
102
|
+
LeaseStatus,
|
|
103
103
|
LinkPlugin,
|
|
104
104
|
Login,
|
|
105
105
|
ManualInput,
|
|
@@ -123,7 +123,6 @@ import type {
|
|
|
123
123
|
SmartBarPromptResponse,
|
|
124
124
|
StatementResponse,
|
|
125
125
|
StepData,
|
|
126
|
-
SubscriptionResponse,
|
|
127
126
|
SuccessResponse,
|
|
128
127
|
TaskResponse,
|
|
129
128
|
TaskTemplateResponse,
|
|
@@ -162,8 +161,6 @@ import {
|
|
|
162
161
|
BillingRunResponseToJSON,
|
|
163
162
|
CalendarResponseFromJSON,
|
|
164
163
|
CalendarResponseToJSON,
|
|
165
|
-
CancelSubscriptionFromJSON,
|
|
166
|
-
CancelSubscriptionToJSON,
|
|
167
164
|
ChargeResponseFromJSON,
|
|
168
165
|
ChargeResponseToJSON,
|
|
169
166
|
ChartOfAccountsResponseFromJSON,
|
|
@@ -318,6 +315,8 @@ import {
|
|
|
318
315
|
IntentResponseToJSON,
|
|
319
316
|
InvoiceResponseFromJSON,
|
|
320
317
|
InvoiceResponseToJSON,
|
|
318
|
+
LeaseStatusFromJSON,
|
|
319
|
+
LeaseStatusToJSON,
|
|
321
320
|
LinkPluginFromJSON,
|
|
322
321
|
LinkPluginToJSON,
|
|
323
322
|
LoginFromJSON,
|
|
@@ -364,8 +363,6 @@ import {
|
|
|
364
363
|
StatementResponseToJSON,
|
|
365
364
|
StepDataFromJSON,
|
|
366
365
|
StepDataToJSON,
|
|
367
|
-
SubscriptionResponseFromJSON,
|
|
368
|
-
SubscriptionResponseToJSON,
|
|
369
366
|
SuccessResponseFromJSON,
|
|
370
367
|
SuccessResponseToJSON,
|
|
371
368
|
TaskResponseFromJSON,
|
|
@@ -416,12 +413,6 @@ export interface AdminSignUpRequest {
|
|
|
416
413
|
adminSignUp: AdminSignUp;
|
|
417
414
|
}
|
|
418
415
|
|
|
419
|
-
export interface CancelSubscriptionRequest {
|
|
420
|
-
siteId: string;
|
|
421
|
-
subscriptionId: string;
|
|
422
|
-
cancelSubscription: CancelSubscription;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
416
|
export interface CheckStrengthRequest {
|
|
426
417
|
password: Password;
|
|
427
418
|
}
|
|
@@ -619,6 +610,7 @@ export interface GetAssetsRequest {
|
|
|
619
610
|
mapFeature?: string;
|
|
620
611
|
product?: string;
|
|
621
612
|
name?: string;
|
|
613
|
+
leaseStatus?: LeaseStatus;
|
|
622
614
|
}
|
|
623
615
|
|
|
624
616
|
export interface GetBillingRunRequest {
|
|
@@ -668,7 +660,6 @@ export interface GetChargesRequest {
|
|
|
668
660
|
planId: string;
|
|
669
661
|
offset?: number;
|
|
670
662
|
limit?: number;
|
|
671
|
-
type?: string;
|
|
672
663
|
}
|
|
673
664
|
|
|
674
665
|
export interface GetChartOfAccountRequest {
|
|
@@ -854,16 +845,10 @@ export interface GetStatementRequest {
|
|
|
854
845
|
statementId: string;
|
|
855
846
|
}
|
|
856
847
|
|
|
857
|
-
export interface GetSubscriptionRequest {
|
|
858
|
-
siteId: string;
|
|
859
|
-
subscriptionId: string;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
848
|
export interface GetSubscriptionsRequest {
|
|
863
849
|
siteId: string;
|
|
864
850
|
offset?: number;
|
|
865
851
|
limit?: number;
|
|
866
|
-
status?: string;
|
|
867
852
|
}
|
|
868
853
|
|
|
869
854
|
export interface GetTaskTemplatesRequest {
|
|
@@ -1054,6 +1039,11 @@ export interface UpdateOrgRequest {
|
|
|
1054
1039
|
updateOrg: UpdateOrg;
|
|
1055
1040
|
}
|
|
1056
1041
|
|
|
1042
|
+
export interface UpdateSiteRequest {
|
|
1043
|
+
siteId: string;
|
|
1044
|
+
createSiteCustom: CreateSiteCustom;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1057
1047
|
export interface UpdateSmartBarPromptRequest {
|
|
1058
1048
|
updateSmartBarPrompt: UpdateSmartBarPrompt;
|
|
1059
1049
|
}
|
|
@@ -1120,62 +1110,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1120
1110
|
return await response.value();
|
|
1121
1111
|
}
|
|
1122
1112
|
|
|
1123
|
-
/**
|
|
1124
|
-
*/
|
|
1125
|
-
async cancelSubscriptionRaw(requestParameters: CancelSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionResponse>> {
|
|
1126
|
-
if (requestParameters['siteId'] == null) {
|
|
1127
|
-
throw new runtime.RequiredError(
|
|
1128
|
-
'siteId',
|
|
1129
|
-
'Required parameter "siteId" was null or undefined when calling cancelSubscription().'
|
|
1130
|
-
);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
if (requestParameters['subscriptionId'] == null) {
|
|
1134
|
-
throw new runtime.RequiredError(
|
|
1135
|
-
'subscriptionId',
|
|
1136
|
-
'Required parameter "subscriptionId" was null or undefined when calling cancelSubscription().'
|
|
1137
|
-
);
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
if (requestParameters['cancelSubscription'] == null) {
|
|
1141
|
-
throw new runtime.RequiredError(
|
|
1142
|
-
'cancelSubscription',
|
|
1143
|
-
'Required parameter "cancelSubscription" was null or undefined when calling cancelSubscription().'
|
|
1144
|
-
);
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
const queryParameters: any = {};
|
|
1148
|
-
|
|
1149
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1150
|
-
|
|
1151
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1152
|
-
|
|
1153
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1154
|
-
const token = this.configuration.accessToken;
|
|
1155
|
-
const tokenString = await token("bearer", []);
|
|
1156
|
-
|
|
1157
|
-
if (tokenString) {
|
|
1158
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
const response = await this.request({
|
|
1162
|
-
path: `/api/sites/{siteId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
1163
|
-
method: 'PUT',
|
|
1164
|
-
headers: headerParameters,
|
|
1165
|
-
query: queryParameters,
|
|
1166
|
-
body: CancelSubscriptionToJSON(requestParameters['cancelSubscription']),
|
|
1167
|
-
}, initOverrides);
|
|
1168
|
-
|
|
1169
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionResponseFromJSON(jsonValue));
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
*/
|
|
1174
|
-
async cancelSubscription(requestParameters: CancelSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionResponse> {
|
|
1175
|
-
const response = await this.cancelSubscriptionRaw(requestParameters, initOverrides);
|
|
1176
|
-
return await response.value();
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
1113
|
/**
|
|
1180
1114
|
*/
|
|
1181
1115
|
async checkStrengthRaw(requestParameters: CheckStrengthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasswordStrengthCheckResponse>> {
|
|
@@ -3079,6 +3013,10 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
3079
3013
|
queryParameters['name'] = requestParameters['name'];
|
|
3080
3014
|
}
|
|
3081
3015
|
|
|
3016
|
+
if (requestParameters['leaseStatus'] != null) {
|
|
3017
|
+
queryParameters['leaseStatus'] = requestParameters['leaseStatus'];
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3082
3020
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
3083
3021
|
|
|
3084
3022
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -3445,7 +3383,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
3445
3383
|
}
|
|
3446
3384
|
}
|
|
3447
3385
|
const response = await this.request({
|
|
3448
|
-
path: `/api/sites/{siteId}/charges/{planId}/{chargeId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"planId"}}`, encodeURIComponent(String(requestParameters['planId']))).replace(`{${"chargeId"}}`, encodeURIComponent(String(requestParameters['chargeId']))),
|
|
3386
|
+
path: `/api/sites/{siteId}/billing/charges/{planId}/{chargeId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"planId"}}`, encodeURIComponent(String(requestParameters['planId']))).replace(`{${"chargeId"}}`, encodeURIComponent(String(requestParameters['chargeId']))),
|
|
3449
3387
|
method: 'GET',
|
|
3450
3388
|
headers: headerParameters,
|
|
3451
3389
|
query: queryParameters,
|
|
@@ -3488,10 +3426,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
3488
3426
|
queryParameters['limit'] = requestParameters['limit'];
|
|
3489
3427
|
}
|
|
3490
3428
|
|
|
3491
|
-
if (requestParameters['type'] != null) {
|
|
3492
|
-
queryParameters['type'] = requestParameters['type'];
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3495
3429
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
3496
3430
|
|
|
3497
3431
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -3503,7 +3437,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
3503
3437
|
}
|
|
3504
3438
|
}
|
|
3505
3439
|
const response = await this.request({
|
|
3506
|
-
path: `/api/sites/{siteId}/charges/{planId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"planId"}}`, encodeURIComponent(String(requestParameters['planId']))),
|
|
3440
|
+
path: `/api/sites/{siteId}/billing/charges/{planId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"planId"}}`, encodeURIComponent(String(requestParameters['planId']))),
|
|
3507
3441
|
method: 'GET',
|
|
3508
3442
|
headers: headerParameters,
|
|
3509
3443
|
query: queryParameters,
|
|
@@ -5072,52 +5006,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5072
5006
|
return await response.value();
|
|
5073
5007
|
}
|
|
5074
5008
|
|
|
5075
|
-
/**
|
|
5076
|
-
*/
|
|
5077
|
-
async getSubscriptionRaw(requestParameters: GetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionResponse>> {
|
|
5078
|
-
if (requestParameters['siteId'] == null) {
|
|
5079
|
-
throw new runtime.RequiredError(
|
|
5080
|
-
'siteId',
|
|
5081
|
-
'Required parameter "siteId" was null or undefined when calling getSubscription().'
|
|
5082
|
-
);
|
|
5083
|
-
}
|
|
5084
|
-
|
|
5085
|
-
if (requestParameters['subscriptionId'] == null) {
|
|
5086
|
-
throw new runtime.RequiredError(
|
|
5087
|
-
'subscriptionId',
|
|
5088
|
-
'Required parameter "subscriptionId" was null or undefined when calling getSubscription().'
|
|
5089
|
-
);
|
|
5090
|
-
}
|
|
5091
|
-
|
|
5092
|
-
const queryParameters: any = {};
|
|
5093
|
-
|
|
5094
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
5095
|
-
|
|
5096
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
5097
|
-
const token = this.configuration.accessToken;
|
|
5098
|
-
const tokenString = await token("bearer", []);
|
|
5099
|
-
|
|
5100
|
-
if (tokenString) {
|
|
5101
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5102
|
-
}
|
|
5103
|
-
}
|
|
5104
|
-
const response = await this.request({
|
|
5105
|
-
path: `/api/sites/{siteId}/subscriptions/{subscriptionId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
5106
|
-
method: 'GET',
|
|
5107
|
-
headers: headerParameters,
|
|
5108
|
-
query: queryParameters,
|
|
5109
|
-
}, initOverrides);
|
|
5110
|
-
|
|
5111
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionResponseFromJSON(jsonValue));
|
|
5112
|
-
}
|
|
5113
|
-
|
|
5114
|
-
/**
|
|
5115
|
-
*/
|
|
5116
|
-
async getSubscription(requestParameters: GetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionResponse> {
|
|
5117
|
-
const response = await this.getSubscriptionRaw(requestParameters, initOverrides);
|
|
5118
|
-
return await response.value();
|
|
5119
|
-
}
|
|
5120
|
-
|
|
5121
5009
|
/**
|
|
5122
5010
|
*/
|
|
5123
5011
|
async getSubscriptionsRaw(requestParameters: GetSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriptions200Response>> {
|
|
@@ -5138,10 +5026,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5138
5026
|
queryParameters['limit'] = requestParameters['limit'];
|
|
5139
5027
|
}
|
|
5140
5028
|
|
|
5141
|
-
if (requestParameters['status'] != null) {
|
|
5142
|
-
queryParameters['status'] = requestParameters['status'];
|
|
5143
|
-
}
|
|
5144
|
-
|
|
5145
5029
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
5146
5030
|
|
|
5147
5031
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -6889,6 +6773,55 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
6889
6773
|
return await response.value();
|
|
6890
6774
|
}
|
|
6891
6775
|
|
|
6776
|
+
/**
|
|
6777
|
+
*/
|
|
6778
|
+
async updateSiteRaw(requestParameters: UpdateSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SiteResponse>> {
|
|
6779
|
+
if (requestParameters['siteId'] == null) {
|
|
6780
|
+
throw new runtime.RequiredError(
|
|
6781
|
+
'siteId',
|
|
6782
|
+
'Required parameter "siteId" was null or undefined when calling updateSite().'
|
|
6783
|
+
);
|
|
6784
|
+
}
|
|
6785
|
+
|
|
6786
|
+
if (requestParameters['createSiteCustom'] == null) {
|
|
6787
|
+
throw new runtime.RequiredError(
|
|
6788
|
+
'createSiteCustom',
|
|
6789
|
+
'Required parameter "createSiteCustom" was null or undefined when calling updateSite().'
|
|
6790
|
+
);
|
|
6791
|
+
}
|
|
6792
|
+
|
|
6793
|
+
const queryParameters: any = {};
|
|
6794
|
+
|
|
6795
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6796
|
+
|
|
6797
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6798
|
+
|
|
6799
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6800
|
+
const token = this.configuration.accessToken;
|
|
6801
|
+
const tokenString = await token("bearer", []);
|
|
6802
|
+
|
|
6803
|
+
if (tokenString) {
|
|
6804
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6805
|
+
}
|
|
6806
|
+
}
|
|
6807
|
+
const response = await this.request({
|
|
6808
|
+
path: `/api/sites/{siteId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
6809
|
+
method: 'PUT',
|
|
6810
|
+
headers: headerParameters,
|
|
6811
|
+
query: queryParameters,
|
|
6812
|
+
body: CreateSiteCustomToJSON(requestParameters['createSiteCustom']),
|
|
6813
|
+
}, initOverrides);
|
|
6814
|
+
|
|
6815
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SiteResponseFromJSON(jsonValue));
|
|
6816
|
+
}
|
|
6817
|
+
|
|
6818
|
+
/**
|
|
6819
|
+
*/
|
|
6820
|
+
async updateSite(requestParameters: UpdateSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SiteResponse> {
|
|
6821
|
+
const response = await this.updateSiteRaw(requestParameters, initOverrides);
|
|
6822
|
+
return await response.value();
|
|
6823
|
+
}
|
|
6824
|
+
|
|
6892
6825
|
/**
|
|
6893
6826
|
*/
|
|
6894
6827
|
async updateSmartBarPromptRaw(requestParameters: UpdateSmartBarPromptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SmartBarPromptResponse>> {
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LeaseStatus } from './lease-status';
|
|
17
|
+
import {
|
|
18
|
+
LeaseStatusFromJSON,
|
|
19
|
+
LeaseStatusFromJSONTyped,
|
|
20
|
+
LeaseStatusToJSON,
|
|
21
|
+
LeaseStatusToJSONTyped,
|
|
22
|
+
} from './lease-status';
|
|
16
23
|
import type { AssetFeatureResponse } from './asset-feature-response';
|
|
17
24
|
import {
|
|
18
25
|
AssetFeatureResponseFromJSON,
|
|
@@ -76,13 +83,6 @@ import {
|
|
|
76
83
|
ProductResponseToJSON,
|
|
77
84
|
ProductResponseToJSONTyped,
|
|
78
85
|
} from './product-response';
|
|
79
|
-
import type { ProductStatus } from './product-status';
|
|
80
|
-
import {
|
|
81
|
-
ProductStatusFromJSON,
|
|
82
|
-
ProductStatusFromJSONTyped,
|
|
83
|
-
ProductStatusToJSON,
|
|
84
|
-
ProductStatusToJSONTyped,
|
|
85
|
-
} from './product-status';
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
*
|
|
@@ -140,10 +140,10 @@ export interface AssetResponse {
|
|
|
140
140
|
mapFeature?: MapFeatureResponse | null;
|
|
141
141
|
/**
|
|
142
142
|
*
|
|
143
|
-
* @type {
|
|
143
|
+
* @type {LeaseStatus}
|
|
144
144
|
* @memberof AssetResponse
|
|
145
145
|
*/
|
|
146
|
-
leaseStatus:
|
|
146
|
+
leaseStatus: LeaseStatus;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
149
|
* @type {AssetCategoryResponse}
|
|
@@ -243,7 +243,7 @@ export function AssetResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
243
243
|
'site': json['site'] == null ? undefined : SiteResponseFromJSON(json['site']),
|
|
244
244
|
'siteId': json['siteId'],
|
|
245
245
|
'mapFeature': json['mapFeature'] == null ? undefined : MapFeatureResponseFromJSON(json['mapFeature']),
|
|
246
|
-
'leaseStatus':
|
|
246
|
+
'leaseStatus': LeaseStatusFromJSON(json['leaseStatus']),
|
|
247
247
|
'assetCategory': json['assetCategory'] == null ? undefined : AssetCategoryResponseFromJSON(json['assetCategory']),
|
|
248
248
|
'assetCategoryId': json['assetCategoryId'],
|
|
249
249
|
'product': json['product'] == null ? undefined : ProductResponseFromJSON(json['product']),
|
|
@@ -276,7 +276,7 @@ export function AssetResponseToJSONTyped(value?: AssetResponse | null, ignoreDis
|
|
|
276
276
|
'site': SiteResponseToJSON(value['site']),
|
|
277
277
|
'siteId': value['siteId'],
|
|
278
278
|
'mapFeature': MapFeatureResponseToJSON(value['mapFeature']),
|
|
279
|
-
'leaseStatus':
|
|
279
|
+
'leaseStatus': LeaseStatusToJSON(value['leaseStatus']),
|
|
280
280
|
'assetCategory': AssetCategoryResponseToJSON(value['assetCategory']),
|
|
281
281
|
'assetCategoryId': value['assetCategoryId'],
|
|
282
282
|
'product': ProductResponseToJSON(value['product']),
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LeaseStatus } from './lease-status';
|
|
17
|
+
import {
|
|
18
|
+
LeaseStatusFromJSON,
|
|
19
|
+
LeaseStatusFromJSONTyped,
|
|
20
|
+
LeaseStatusToJSON,
|
|
21
|
+
LeaseStatusToJSONTyped,
|
|
22
|
+
} from './lease-status';
|
|
16
23
|
import type { CreateAssetAssetCategoryRelationInput } from './create-asset-asset-category-relation-input';
|
|
17
24
|
import {
|
|
18
25
|
CreateAssetAssetCategoryRelationInputFromJSON,
|
|
@@ -27,13 +34,6 @@ import {
|
|
|
27
34
|
CreateMapFeatureToJSON,
|
|
28
35
|
CreateMapFeatureToJSONTyped,
|
|
29
36
|
} from './create-map-feature';
|
|
30
|
-
import type { ProductStatus } from './product-status';
|
|
31
|
-
import {
|
|
32
|
-
ProductStatusFromJSON,
|
|
33
|
-
ProductStatusFromJSONTyped,
|
|
34
|
-
ProductStatusToJSON,
|
|
35
|
-
ProductStatusToJSONTyped,
|
|
36
|
-
} from './product-status';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
@@ -55,10 +55,10 @@ export interface CreateAssetCustom {
|
|
|
55
55
|
description: string;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {LeaseStatus}
|
|
59
59
|
* @memberof CreateAssetCustom
|
|
60
60
|
*/
|
|
61
|
-
leaseStatus?:
|
|
61
|
+
leaseStatus?: LeaseStatus;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @type {CreateAssetAssetCategoryRelationInput}
|
|
@@ -127,7 +127,7 @@ export function CreateAssetCustomFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
127
127
|
|
|
128
128
|
'name': json['name'],
|
|
129
129
|
'description': json['description'],
|
|
130
|
-
'leaseStatus': json['leaseStatus'] == null ? undefined :
|
|
130
|
+
'leaseStatus': json['leaseStatus'] == null ? undefined : LeaseStatusFromJSON(json['leaseStatus']),
|
|
131
131
|
'assetCategory': json['assetCategory'] == null ? undefined : CreateAssetAssetCategoryRelationInputFromJSON(json['assetCategory']),
|
|
132
132
|
'assetCategoryId': json['assetCategoryId'] == null ? undefined : json['assetCategoryId'],
|
|
133
133
|
'productId': json['productId'] == null ? undefined : json['productId'],
|
|
@@ -151,7 +151,7 @@ export function CreateAssetCustomToJSONTyped(value?: CreateAssetCustom | null, i
|
|
|
151
151
|
|
|
152
152
|
'name': value['name'],
|
|
153
153
|
'description': value['description'],
|
|
154
|
-
'leaseStatus':
|
|
154
|
+
'leaseStatus': LeaseStatusToJSON(value['leaseStatus']),
|
|
155
155
|
'assetCategory': CreateAssetAssetCategoryRelationInputToJSON(value['assetCategory']),
|
|
156
156
|
'assetCategoryId': value['assetCategoryId'],
|
|
157
157
|
'productId': value['productId'],
|
|
@@ -10,7 +10,6 @@ export * from './billing-run-customer-response';
|
|
|
10
10
|
export * from './billing-run-filter-option-response';
|
|
11
11
|
export * from './billing-run-response';
|
|
12
12
|
export * from './calendar-response';
|
|
13
|
-
export * from './cancel-subscription';
|
|
14
13
|
export * from './charge-response';
|
|
15
14
|
export * from './chart-of-accounts-response';
|
|
16
15
|
export * from './checklist-recurrence-frequency';
|
|
@@ -103,6 +102,7 @@ export * from './get-workflow-instances200-response';
|
|
|
103
102
|
export * from './intent-response';
|
|
104
103
|
export * from './invoice-contact-response';
|
|
105
104
|
export * from './invoice-response';
|
|
105
|
+
export * from './lease-status';
|
|
106
106
|
export * from './line-item-response';
|
|
107
107
|
export * from './link-plugin';
|
|
108
108
|
export * from './login';
|
|
@@ -129,7 +129,6 @@ export * from './plugin-response';
|
|
|
129
129
|
export * from './plugin-version-response';
|
|
130
130
|
export * from './product-custom-response';
|
|
131
131
|
export * from './product-response';
|
|
132
|
-
export * from './product-status';
|
|
133
132
|
export * from './project-response';
|
|
134
133
|
export * from './project-response1';
|
|
135
134
|
export * from './project-version-response';
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The status of the asset
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const LeaseStatus = {
|
|
21
|
+
Available: 'AVAILABLE',
|
|
22
|
+
Reserved: 'RESERVED',
|
|
23
|
+
Occupied: 'OCCUPIED',
|
|
24
|
+
UnderMaintenance: 'UNDER_MAINTENANCE',
|
|
25
|
+
Delinquent: 'DELINQUENT',
|
|
26
|
+
Auction: 'AUCTION',
|
|
27
|
+
Lien: 'LIEN',
|
|
28
|
+
FutureBooked: 'FUTURE_BOOKED',
|
|
29
|
+
MoveOutIntended: 'MOVE_OUT_INTENDED'
|
|
30
|
+
} as const;
|
|
31
|
+
export type LeaseStatus = typeof LeaseStatus[keyof typeof LeaseStatus];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export function instanceOfLeaseStatus(value: any): boolean {
|
|
35
|
+
for (const key in LeaseStatus) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(LeaseStatus, key)) {
|
|
37
|
+
if (LeaseStatus[key as keyof typeof LeaseStatus] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LeaseStatusFromJSON(json: any): LeaseStatus {
|
|
46
|
+
return LeaseStatusFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LeaseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeaseStatus {
|
|
50
|
+
return json as LeaseStatus;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function LeaseStatusToJSON(value?: LeaseStatus | null): any {
|
|
54
|
+
return value as any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function LeaseStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): LeaseStatus {
|
|
58
|
+
return value as LeaseStatus;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { LeaseStatus } from './lease-status';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
LeaseStatusFromJSON,
|
|
19
|
+
LeaseStatusFromJSONTyped,
|
|
20
|
+
LeaseStatusToJSON,
|
|
21
|
+
LeaseStatusToJSONTyped,
|
|
22
|
+
} from './lease-status';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -41,10 +41,10 @@ export interface UpdateAsset {
|
|
|
41
41
|
description: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {LeaseStatus}
|
|
45
45
|
* @memberof UpdateAsset
|
|
46
46
|
*/
|
|
47
|
-
leaseStatus?:
|
|
47
|
+
leaseStatus?: LeaseStatus;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -94,7 +94,7 @@ export function UpdateAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
94
94
|
|
|
95
95
|
'name': json['name'],
|
|
96
96
|
'description': json['description'],
|
|
97
|
-
'leaseStatus': json['leaseStatus'] == null ? undefined :
|
|
97
|
+
'leaseStatus': json['leaseStatus'] == null ? undefined : LeaseStatusFromJSON(json['leaseStatus']),
|
|
98
98
|
'assetCategoryId': json['assetCategoryId'] == null ? undefined : json['assetCategoryId'],
|
|
99
99
|
'productId': json['productId'] == null ? undefined : json['productId'],
|
|
100
100
|
'assetClassId': json['assetClassId'] == null ? undefined : json['assetClassId'],
|
|
@@ -115,7 +115,7 @@ export function UpdateAssetToJSONTyped(value?: UpdateAsset | null, ignoreDiscrim
|
|
|
115
115
|
|
|
116
116
|
'name': value['name'],
|
|
117
117
|
'description': value['description'],
|
|
118
|
-
'leaseStatus':
|
|
118
|
+
'leaseStatus': LeaseStatusToJSON(value['leaseStatus']),
|
|
119
119
|
'assetCategoryId': value['assetCategoryId'],
|
|
120
120
|
'productId': value['productId'],
|
|
121
121
|
'assetClassId': value['assetClassId'],
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageSpace V2 Auth API
|
|
3
|
-
* ManageSpace Auth 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 CancelSubscription
|
|
16
|
-
*/
|
|
17
|
-
export interface CancelSubscription {
|
|
18
|
-
/**
|
|
19
|
-
* Date subscription contract will end
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CancelSubscription
|
|
22
|
-
*/
|
|
23
|
-
cancellationDate?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Reason for cancellation
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CancelSubscription
|
|
28
|
-
*/
|
|
29
|
-
cancellationType?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CancelSubscription interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfCancelSubscription(value: object): value is CancelSubscription;
|
|
35
|
-
export declare function CancelSubscriptionFromJSON(json: any): CancelSubscription;
|
|
36
|
-
export declare function CancelSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelSubscription;
|
|
37
|
-
export declare function CancelSubscriptionToJSON(json: any): CancelSubscription;
|
|
38
|
-
export declare function CancelSubscriptionToJSONTyped(value?: CancelSubscription | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
-
//# sourceMappingURL=cancel-subscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-subscription.d.ts","sourceRoot":"","sources":["../../../src/generated/models/cancel-subscription.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAEvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAS3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1H"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ManageSpace V2 Auth API
|
|
6
|
-
* ManageSpace Auth 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.CancelSubscriptionToJSONTyped = exports.CancelSubscriptionToJSON = exports.CancelSubscriptionFromJSONTyped = exports.CancelSubscriptionFromJSON = exports.instanceOfCancelSubscription = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the CancelSubscription interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfCancelSubscription(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfCancelSubscription = instanceOfCancelSubscription;
|
|
24
|
-
function CancelSubscriptionFromJSON(json) {
|
|
25
|
-
return CancelSubscriptionFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.CancelSubscriptionFromJSON = CancelSubscriptionFromJSON;
|
|
28
|
-
function CancelSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'cancellationDate': json['cancellationDate'] == null ? undefined : json['cancellationDate'],
|
|
34
|
-
'cancellationType': json['cancellationType'] == null ? undefined : json['cancellationType'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.CancelSubscriptionFromJSONTyped = CancelSubscriptionFromJSONTyped;
|
|
38
|
-
function CancelSubscriptionToJSON(json) {
|
|
39
|
-
return CancelSubscriptionToJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
exports.CancelSubscriptionToJSON = CancelSubscriptionToJSON;
|
|
42
|
-
function CancelSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'cancellationDate': value['cancellationDate'],
|
|
48
|
-
'cancellationType': value['cancellationType'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.CancelSubscriptionToJSONTyped = CancelSubscriptionToJSONTyped;
|