@dynamic-labs/sdk-api 0.0.921 → 0.0.922
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/package.json +1 -1
- package/src/apis/AllowlistsApi.cjs +245 -286
- package/src/apis/AllowlistsApi.js +245 -286
- package/src/apis/AnalyticsApi.cjs +210 -235
- package/src/apis/AnalyticsApi.js +210 -235
- package/src/apis/ChainalysisApi.cjs +66 -79
- package/src/apis/ChainalysisApi.js +66 -79
- package/src/apis/ChainsApi.cjs +25 -30
- package/src/apis/ChainsApi.js +25 -30
- package/src/apis/CustomFieldsApi.cjs +119 -140
- package/src/apis/CustomFieldsApi.js +119 -140
- package/src/apis/CustomHostnamesApi.cjs +55 -68
- package/src/apis/CustomHostnamesApi.js +55 -68
- package/src/apis/CustomNetworksApi.cjs +128 -149
- package/src/apis/CustomNetworksApi.js +128 -149
- package/src/apis/DeeplinkUrlsApi.cjs +70 -83
- package/src/apis/DeeplinkUrlsApi.js +70 -83
- package/src/apis/DepositApi.cjs +83 -100
- package/src/apis/DepositApi.js +83 -100
- package/src/apis/EnvironmentsApi.cjs +168 -197
- package/src/apis/EnvironmentsApi.js +168 -197
- package/src/apis/EventsApi.cjs +60 -73
- package/src/apis/EventsApi.js +60 -73
- package/src/apis/ExportsApi.cjs +89 -106
- package/src/apis/ExportsApi.js +89 -106
- package/src/apis/ExternalJwtApi.cjs +27 -32
- package/src/apis/ExternalJwtApi.js +27 -32
- package/src/apis/GatesApi.cjs +154 -183
- package/src/apis/GatesApi.js +154 -183
- package/src/apis/GlobalWalletAccessControlApi.cjs +159 -188
- package/src/apis/GlobalWalletAccessControlApi.js +159 -188
- package/src/apis/GlobalWalletConnectionsApi.cjs +28 -33
- package/src/apis/GlobalWalletConnectionsApi.js +28 -33
- package/src/apis/GlobalWalletsApi.cjs +90 -111
- package/src/apis/GlobalWalletsApi.js +90 -111
- package/src/apis/InvitesApi.cjs +120 -141
- package/src/apis/InvitesApi.js +120 -141
- package/src/apis/MembersApi.cjs +115 -136
- package/src/apis/MembersApi.js +115 -136
- package/src/apis/MfaApi.cjs +42 -51
- package/src/apis/MfaApi.js +42 -51
- package/src/apis/MfaSettingsApi.cjs +72 -85
- package/src/apis/MfaSettingsApi.js +72 -85
- package/src/apis/NameServicesApi.cjs +123 -148
- package/src/apis/NameServicesApi.js +123 -148
- package/src/apis/OrganizationsApi.cjs +328 -381
- package/src/apis/OrganizationsApi.js +328 -381
- package/src/apis/OriginsApi.cjs +58 -71
- package/src/apis/OriginsApi.js +58 -71
- package/src/apis/ProjectsApi.cjs +119 -140
- package/src/apis/ProjectsApi.js +119 -140
- package/src/apis/SDKApi.cjs +6184 -7365
- package/src/apis/SDKApi.d.ts +2 -2
- package/src/apis/SDKApi.js +6184 -7365
- package/src/apis/SDKViewsApi.cjs +59 -72
- package/src/apis/SDKViewsApi.js +59 -72
- package/src/apis/SessionsApi.cjs +69 -82
- package/src/apis/SessionsApi.js +69 -82
- package/src/apis/SettingsApi.cjs +273 -330
- package/src/apis/SettingsApi.js +273 -330
- package/src/apis/TestAccountApi.cjs +47 -60
- package/src/apis/TestAccountApi.js +47 -60
- package/src/apis/TokensApi.cjs +92 -109
- package/src/apis/TokensApi.js +92 -109
- package/src/apis/UserApiTokensApi.cjs +64 -77
- package/src/apis/UserApiTokensApi.js +64 -77
- package/src/apis/UsersApi.cjs +357 -410
- package/src/apis/UsersApi.js +357 -410
- package/src/apis/VisitsApi.cjs +34 -39
- package/src/apis/VisitsApi.js +34 -39
- package/src/apis/WaasApi.cjs +470 -559
- package/src/apis/WaasApi.js +470 -559
- package/src/apis/WalletConnectApi.cjs +21 -26
- package/src/apis/WalletConnectApi.js +21 -26
- package/src/apis/WalletsApi.cjs +340 -393
- package/src/apis/WalletsApi.js +340 -393
- package/src/apis/WebhooksApi.cjs +167 -200
- package/src/apis/WebhooksApi.js +167 -200
- package/src/index.cjs +4 -4
- package/src/index.js +1 -1
- package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
- package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
- package/src/models/Provider.cjs +2 -0
- package/src/models/Provider.d.ts +6 -0
- package/src/models/Provider.js +2 -0
- package/src/models/ProviderCreateRequest.cjs +2 -0
- package/src/models/ProviderCreateRequest.d.ts +6 -0
- package/src/models/ProviderCreateRequest.js +2 -0
- package/src/models/ProviderUpdateRequest.cjs +2 -0
- package/src/models/ProviderUpdateRequest.d.ts +6 -0
- package/src/models/ProviderUpdateRequest.js +2 -0
- package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
- package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
- package/src/models/TransactionFeeEstimateRequest.js +31 -0
- package/src/models/index.d.ts +1 -1
- package/src/runtime.cjs +45 -36
- package/src/runtime.js +45 -36
- package/_virtual/_tslib.cjs +0 -35
- package/_virtual/_tslib.js +0 -31
- package/src/models/InlineObject1.cjs +0 -43
- package/src/models/InlineObject1.d.ts +0 -27
- package/src/models/InlineObject1.js +0 -37
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
5
|
var runtime = require('../runtime.cjs');
|
|
7
6
|
require('../models/AccessOutcomeEnum.cjs');
|
|
8
7
|
require('../models/ExchangeKeyEnum.cjs');
|
|
@@ -131,511 +130,459 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
131
130
|
* Applies a coupon to the subscription for the specified organization.
|
|
132
131
|
* Add coupon to subscription
|
|
133
132
|
*/
|
|
134
|
-
applyCouponForSubscriptionRaw(requestParameters, initOverrides) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
160
|
-
});
|
|
133
|
+
async applyCouponForSubscriptionRaw(requestParameters, initOverrides) {
|
|
134
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
135
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling applyCouponForSubscription.');
|
|
136
|
+
}
|
|
137
|
+
if (requestParameters.billingSubscriptionCoupon === null || requestParameters.billingSubscriptionCoupon === undefined) {
|
|
138
|
+
throw new runtime.RequiredError('billingSubscriptionCoupon', 'Required parameter requestParameters.billingSubscriptionCoupon was null or undefined when calling applyCouponForSubscription.');
|
|
139
|
+
}
|
|
140
|
+
const queryParameters = {};
|
|
141
|
+
const headerParameters = {};
|
|
142
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
143
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
144
|
+
const token = this.configuration.accessToken;
|
|
145
|
+
const tokenString = await token("bearerAuth", []);
|
|
146
|
+
if (tokenString) {
|
|
147
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
const response = await this.request({
|
|
151
|
+
path: `/organizations/{organizationId}/billing/subscription/coupon`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
152
|
+
method: 'PUT',
|
|
153
|
+
headers: headerParameters,
|
|
154
|
+
query: queryParameters,
|
|
155
|
+
body: BillingSubscriptionCoupon.BillingSubscriptionCouponToJSON(requestParameters.billingSubscriptionCoupon),
|
|
156
|
+
}, initOverrides);
|
|
157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
161
158
|
}
|
|
162
159
|
/**
|
|
163
160
|
* Applies a coupon to the subscription for the specified organization.
|
|
164
161
|
* Add coupon to subscription
|
|
165
162
|
*/
|
|
166
|
-
applyCouponForSubscription(requestParameters, initOverrides) {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
return yield response.value();
|
|
170
|
-
});
|
|
163
|
+
async applyCouponForSubscription(requestParameters, initOverrides) {
|
|
164
|
+
const response = await this.applyCouponForSubscriptionRaw(requestParameters, initOverrides);
|
|
165
|
+
return await response.value();
|
|
171
166
|
}
|
|
172
167
|
/**
|
|
173
168
|
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
174
169
|
* Cancel subscription at period end
|
|
175
170
|
*/
|
|
176
|
-
cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
197
|
-
});
|
|
171
|
+
async cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
172
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
173
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling cancelSubscriptionForOrganization.');
|
|
174
|
+
}
|
|
175
|
+
const queryParameters = {};
|
|
176
|
+
const headerParameters = {};
|
|
177
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
178
|
+
const token = this.configuration.accessToken;
|
|
179
|
+
const tokenString = await token("bearerAuth", []);
|
|
180
|
+
if (tokenString) {
|
|
181
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const response = await this.request({
|
|
185
|
+
path: `/organizations/{organizationId}/billing/subscription/cancel`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
186
|
+
method: 'POST',
|
|
187
|
+
headers: headerParameters,
|
|
188
|
+
query: queryParameters,
|
|
189
|
+
}, initOverrides);
|
|
190
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
198
191
|
}
|
|
199
192
|
/**
|
|
200
193
|
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
201
194
|
* Cancel subscription at period end
|
|
202
195
|
*/
|
|
203
|
-
cancelSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return yield response.value();
|
|
207
|
-
});
|
|
196
|
+
async cancelSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
197
|
+
const response = await this.cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides);
|
|
198
|
+
return await response.value();
|
|
208
199
|
}
|
|
209
200
|
/**
|
|
210
201
|
* Creates a new organization.
|
|
211
202
|
* Create an organization
|
|
212
203
|
*/
|
|
213
|
-
createOrganizationRaw(requestParameters, initOverrides) {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationResponse.OrganizationResponseFromJSON(jsonValue));
|
|
236
|
-
});
|
|
204
|
+
async createOrganizationRaw(requestParameters, initOverrides) {
|
|
205
|
+
if (requestParameters.organizationRequest === null || requestParameters.organizationRequest === undefined) {
|
|
206
|
+
throw new runtime.RequiredError('organizationRequest', 'Required parameter requestParameters.organizationRequest was null or undefined when calling createOrganization.');
|
|
207
|
+
}
|
|
208
|
+
const queryParameters = {};
|
|
209
|
+
const headerParameters = {};
|
|
210
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
211
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
212
|
+
const token = this.configuration.accessToken;
|
|
213
|
+
const tokenString = await token("bearerAuth", []);
|
|
214
|
+
if (tokenString) {
|
|
215
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
const response = await this.request({
|
|
219
|
+
path: `/organizations`,
|
|
220
|
+
method: 'POST',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
body: OrganizationRequest.OrganizationRequestToJSON(requestParameters.organizationRequest),
|
|
224
|
+
}, initOverrides);
|
|
225
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationResponse.OrganizationResponseFromJSON(jsonValue));
|
|
237
226
|
}
|
|
238
227
|
/**
|
|
239
228
|
* Creates a new organization.
|
|
240
229
|
* Create an organization
|
|
241
230
|
*/
|
|
242
|
-
createOrganization(requestParameters, initOverrides) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
return yield response.value();
|
|
246
|
-
});
|
|
231
|
+
async createOrganization(requestParameters, initOverrides) {
|
|
232
|
+
const response = await this.createOrganizationRaw(requestParameters, initOverrides);
|
|
233
|
+
return await response.value();
|
|
247
234
|
}
|
|
248
235
|
/**
|
|
249
236
|
* Creates a new SSO provider configuration for the specified organization.
|
|
250
237
|
* Create SSO provider configuration for organization
|
|
251
238
|
*/
|
|
252
|
-
createSsoProviderRaw(requestParameters, initOverrides) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SsoProvider.SsoProviderFromJSON(jsonValue));
|
|
278
|
-
});
|
|
239
|
+
async createSsoProviderRaw(requestParameters, initOverrides) {
|
|
240
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
241
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling createSsoProvider.');
|
|
242
|
+
}
|
|
243
|
+
if (requestParameters.ssoProviderCreateRequest === null || requestParameters.ssoProviderCreateRequest === undefined) {
|
|
244
|
+
throw new runtime.RequiredError('ssoProviderCreateRequest', 'Required parameter requestParameters.ssoProviderCreateRequest was null or undefined when calling createSsoProvider.');
|
|
245
|
+
}
|
|
246
|
+
const queryParameters = {};
|
|
247
|
+
const headerParameters = {};
|
|
248
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
249
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
250
|
+
const token = this.configuration.accessToken;
|
|
251
|
+
const tokenString = await token("bearerAuth", []);
|
|
252
|
+
if (tokenString) {
|
|
253
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
const response = await this.request({
|
|
257
|
+
path: `/organizations/{organizationId}/ssoProvider`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
258
|
+
method: 'POST',
|
|
259
|
+
headers: headerParameters,
|
|
260
|
+
query: queryParameters,
|
|
261
|
+
body: SsoProviderCreateRequest.SsoProviderCreateRequestToJSON(requestParameters.ssoProviderCreateRequest),
|
|
262
|
+
}, initOverrides);
|
|
263
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SsoProvider.SsoProviderFromJSON(jsonValue));
|
|
279
264
|
}
|
|
280
265
|
/**
|
|
281
266
|
* Creates a new SSO provider configuration for the specified organization.
|
|
282
267
|
* Create SSO provider configuration for organization
|
|
283
268
|
*/
|
|
284
|
-
createSsoProvider(requestParameters, initOverrides) {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
return yield response.value();
|
|
288
|
-
});
|
|
269
|
+
async createSsoProvider(requestParameters, initOverrides) {
|
|
270
|
+
const response = await this.createSsoProviderRaw(requestParameters, initOverrides);
|
|
271
|
+
return await response.value();
|
|
289
272
|
}
|
|
290
273
|
/**
|
|
291
274
|
* Permanently removes the specified SSO provider configuration.
|
|
292
275
|
* Delete SSO provider configuration
|
|
293
276
|
*/
|
|
294
|
-
deleteSsoProviderRaw(requestParameters, initOverrides) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
return new runtime.VoidApiResponse(response);
|
|
318
|
-
});
|
|
277
|
+
async deleteSsoProviderRaw(requestParameters, initOverrides) {
|
|
278
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
279
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling deleteSsoProvider.');
|
|
280
|
+
}
|
|
281
|
+
if (requestParameters.ssoProviderId === null || requestParameters.ssoProviderId === undefined) {
|
|
282
|
+
throw new runtime.RequiredError('ssoProviderId', 'Required parameter requestParameters.ssoProviderId was null or undefined when calling deleteSsoProvider.');
|
|
283
|
+
}
|
|
284
|
+
const queryParameters = {};
|
|
285
|
+
const headerParameters = {};
|
|
286
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
287
|
+
const token = this.configuration.accessToken;
|
|
288
|
+
const tokenString = await token("bearerAuth", []);
|
|
289
|
+
if (tokenString) {
|
|
290
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
const response = await this.request({
|
|
294
|
+
path: `/organizations/{organizationId}/ssoProvider/{ssoProviderId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"ssoProviderId"}}`, encodeURIComponent(String(requestParameters.ssoProviderId))),
|
|
295
|
+
method: 'DELETE',
|
|
296
|
+
headers: headerParameters,
|
|
297
|
+
query: queryParameters,
|
|
298
|
+
}, initOverrides);
|
|
299
|
+
return new runtime.VoidApiResponse(response);
|
|
319
300
|
}
|
|
320
301
|
/**
|
|
321
302
|
* Permanently removes the specified SSO provider configuration.
|
|
322
303
|
* Delete SSO provider configuration
|
|
323
304
|
*/
|
|
324
|
-
deleteSsoProvider(requestParameters, initOverrides) {
|
|
325
|
-
|
|
326
|
-
yield this.deleteSsoProviderRaw(requestParameters, initOverrides);
|
|
327
|
-
});
|
|
305
|
+
async deleteSsoProvider(requestParameters, initOverrides) {
|
|
306
|
+
await this.deleteSsoProviderRaw(requestParameters, initOverrides);
|
|
328
307
|
}
|
|
329
308
|
/**
|
|
330
309
|
* Returns the billing subscription for the specified organization.
|
|
331
310
|
* Get the subscription for an organization
|
|
332
311
|
*/
|
|
333
|
-
getBillingSubscriptionByOrganizationRaw(requestParameters, initOverrides) {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
354
|
-
});
|
|
312
|
+
async getBillingSubscriptionByOrganizationRaw(requestParameters, initOverrides) {
|
|
313
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
314
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getBillingSubscriptionByOrganization.');
|
|
315
|
+
}
|
|
316
|
+
const queryParameters = {};
|
|
317
|
+
const headerParameters = {};
|
|
318
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
319
|
+
const token = this.configuration.accessToken;
|
|
320
|
+
const tokenString = await token("bearerAuth", []);
|
|
321
|
+
if (tokenString) {
|
|
322
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
const response = await this.request({
|
|
326
|
+
path: `/organizations/{organizationId}/billing/subscription`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
327
|
+
method: 'GET',
|
|
328
|
+
headers: headerParameters,
|
|
329
|
+
query: queryParameters,
|
|
330
|
+
}, initOverrides);
|
|
331
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
355
332
|
}
|
|
356
333
|
/**
|
|
357
334
|
* Returns the billing subscription for the specified organization.
|
|
358
335
|
* Get the subscription for an organization
|
|
359
336
|
*/
|
|
360
|
-
getBillingSubscriptionByOrganization(requestParameters, initOverrides) {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
return yield response.value();
|
|
364
|
-
});
|
|
337
|
+
async getBillingSubscriptionByOrganization(requestParameters, initOverrides) {
|
|
338
|
+
const response = await this.getBillingSubscriptionByOrganizationRaw(requestParameters, initOverrides);
|
|
339
|
+
return await response.value();
|
|
365
340
|
}
|
|
366
341
|
/**
|
|
367
342
|
* Returns a single organization by its unique identifier.
|
|
368
343
|
* Get an organization by ID
|
|
369
344
|
*/
|
|
370
|
-
getOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => Organization.OrganizationFromJSON(jsonValue));
|
|
391
|
-
});
|
|
345
|
+
async getOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
346
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
347
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getOrganizationById.');
|
|
348
|
+
}
|
|
349
|
+
const queryParameters = {};
|
|
350
|
+
const headerParameters = {};
|
|
351
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
352
|
+
const token = this.configuration.accessToken;
|
|
353
|
+
const tokenString = await token("bearerAuth", []);
|
|
354
|
+
if (tokenString) {
|
|
355
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
const response = await this.request({
|
|
359
|
+
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
360
|
+
method: 'GET',
|
|
361
|
+
headers: headerParameters,
|
|
362
|
+
query: queryParameters,
|
|
363
|
+
}, initOverrides);
|
|
364
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => Organization.OrganizationFromJSON(jsonValue));
|
|
392
365
|
}
|
|
393
366
|
/**
|
|
394
367
|
* Returns a single organization by its unique identifier.
|
|
395
368
|
* Get an organization by ID
|
|
396
369
|
*/
|
|
397
|
-
getOrganizationById(requestParameters, initOverrides) {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
return yield response.value();
|
|
401
|
-
});
|
|
370
|
+
async getOrganizationById(requestParameters, initOverrides) {
|
|
371
|
+
const response = await this.getOrganizationByIdRaw(requestParameters, initOverrides);
|
|
372
|
+
return await response.value();
|
|
402
373
|
}
|
|
403
374
|
/**
|
|
404
375
|
* Returns the organizations for the current user.
|
|
405
376
|
* Get organizations for the current user
|
|
406
377
|
*/
|
|
407
|
-
getOrganizationsForMemberRaw(initOverrides) {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationsResponse.OrganizationsResponseFromJSON(jsonValue));
|
|
425
|
-
});
|
|
378
|
+
async getOrganizationsForMemberRaw(initOverrides) {
|
|
379
|
+
const queryParameters = {};
|
|
380
|
+
const headerParameters = {};
|
|
381
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
382
|
+
const token = this.configuration.accessToken;
|
|
383
|
+
const tokenString = await token("bearerAuth", []);
|
|
384
|
+
if (tokenString) {
|
|
385
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
const response = await this.request({
|
|
389
|
+
path: `/organizations`,
|
|
390
|
+
method: 'GET',
|
|
391
|
+
headers: headerParameters,
|
|
392
|
+
query: queryParameters,
|
|
393
|
+
}, initOverrides);
|
|
394
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationsResponse.OrganizationsResponseFromJSON(jsonValue));
|
|
426
395
|
}
|
|
427
396
|
/**
|
|
428
397
|
* Returns the organizations for the current user.
|
|
429
398
|
* Get organizations for the current user
|
|
430
399
|
*/
|
|
431
|
-
getOrganizationsForMember(initOverrides) {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
return yield response.value();
|
|
435
|
-
});
|
|
400
|
+
async getOrganizationsForMember(initOverrides) {
|
|
401
|
+
const response = await this.getOrganizationsForMemberRaw(initOverrides);
|
|
402
|
+
return await response.value();
|
|
436
403
|
}
|
|
437
404
|
/**
|
|
438
405
|
* Returns the SSO provider configuration for the specified organization.
|
|
439
406
|
* Get SSO provider configuration for organization
|
|
440
407
|
*/
|
|
441
|
-
getSsoProviderForOrganizationRaw(requestParameters, initOverrides) {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SsoProvider.SsoProviderFromJSON(jsonValue));
|
|
462
|
-
});
|
|
408
|
+
async getSsoProviderForOrganizationRaw(requestParameters, initOverrides) {
|
|
409
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
410
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getSsoProviderForOrganization.');
|
|
411
|
+
}
|
|
412
|
+
const queryParameters = {};
|
|
413
|
+
const headerParameters = {};
|
|
414
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
415
|
+
const token = this.configuration.accessToken;
|
|
416
|
+
const tokenString = await token("bearerAuth", []);
|
|
417
|
+
if (tokenString) {
|
|
418
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
const response = await this.request({
|
|
422
|
+
path: `/organizations/{organizationId}/ssoProvider`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
423
|
+
method: 'GET',
|
|
424
|
+
headers: headerParameters,
|
|
425
|
+
query: queryParameters,
|
|
426
|
+
}, initOverrides);
|
|
427
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SsoProvider.SsoProviderFromJSON(jsonValue));
|
|
463
428
|
}
|
|
464
429
|
/**
|
|
465
430
|
* Returns the SSO provider configuration for the specified organization.
|
|
466
431
|
* Get SSO provider configuration for organization
|
|
467
432
|
*/
|
|
468
|
-
getSsoProviderForOrganization(requestParameters, initOverrides) {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
return yield response.value();
|
|
472
|
-
});
|
|
433
|
+
async getSsoProviderForOrganization(requestParameters, initOverrides) {
|
|
434
|
+
const response = await this.getSsoProviderForOrganizationRaw(requestParameters, initOverrides);
|
|
435
|
+
return await response.value();
|
|
473
436
|
}
|
|
474
437
|
/**
|
|
475
438
|
* Updates the address for the specified organization.
|
|
476
439
|
* Update an organization address by ID
|
|
477
440
|
*/
|
|
478
|
-
updateOrganizationAddressByIdRaw(requestParameters, initOverrides) {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationResponse.OrganizationResponseFromJSON(jsonValue));
|
|
504
|
-
});
|
|
441
|
+
async updateOrganizationAddressByIdRaw(requestParameters, initOverrides) {
|
|
442
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
443
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateOrganizationAddressById.');
|
|
444
|
+
}
|
|
445
|
+
if (requestParameters.organizationAddressFields === null || requestParameters.organizationAddressFields === undefined) {
|
|
446
|
+
throw new runtime.RequiredError('organizationAddressFields', 'Required parameter requestParameters.organizationAddressFields was null or undefined when calling updateOrganizationAddressById.');
|
|
447
|
+
}
|
|
448
|
+
const queryParameters = {};
|
|
449
|
+
const headerParameters = {};
|
|
450
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
451
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
452
|
+
const token = this.configuration.accessToken;
|
|
453
|
+
const tokenString = await token("bearerAuth", []);
|
|
454
|
+
if (tokenString) {
|
|
455
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
const response = await this.request({
|
|
459
|
+
path: `/organizations/{organizationId}/address`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
460
|
+
method: 'PUT',
|
|
461
|
+
headers: headerParameters,
|
|
462
|
+
query: queryParameters,
|
|
463
|
+
body: OrganizationAddressFields.OrganizationAddressFieldsToJSON(requestParameters.organizationAddressFields),
|
|
464
|
+
}, initOverrides);
|
|
465
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationResponse.OrganizationResponseFromJSON(jsonValue));
|
|
505
466
|
}
|
|
506
467
|
/**
|
|
507
468
|
* Updates the address for the specified organization.
|
|
508
469
|
* Update an organization address by ID
|
|
509
470
|
*/
|
|
510
|
-
updateOrganizationAddressById(requestParameters, initOverrides) {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
return yield response.value();
|
|
514
|
-
});
|
|
471
|
+
async updateOrganizationAddressById(requestParameters, initOverrides) {
|
|
472
|
+
const response = await this.updateOrganizationAddressByIdRaw(requestParameters, initOverrides);
|
|
473
|
+
return await response.value();
|
|
515
474
|
}
|
|
516
475
|
/**
|
|
517
476
|
* Updates the specified organization.
|
|
518
477
|
* Update an organization by ID
|
|
519
478
|
*/
|
|
520
|
-
updateOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationResponse.OrganizationResponseFromJSON(jsonValue));
|
|
546
|
-
});
|
|
479
|
+
async updateOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
480
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
481
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateOrganizationById.');
|
|
482
|
+
}
|
|
483
|
+
if (requestParameters.organizationFields === null || requestParameters.organizationFields === undefined) {
|
|
484
|
+
throw new runtime.RequiredError('organizationFields', 'Required parameter requestParameters.organizationFields was null or undefined when calling updateOrganizationById.');
|
|
485
|
+
}
|
|
486
|
+
const queryParameters = {};
|
|
487
|
+
const headerParameters = {};
|
|
488
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
489
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
490
|
+
const token = this.configuration.accessToken;
|
|
491
|
+
const tokenString = await token("bearerAuth", []);
|
|
492
|
+
if (tokenString) {
|
|
493
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
const response = await this.request({
|
|
497
|
+
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
498
|
+
method: 'PUT',
|
|
499
|
+
headers: headerParameters,
|
|
500
|
+
query: queryParameters,
|
|
501
|
+
body: OrganizationFields.OrganizationFieldsToJSON(requestParameters.organizationFields),
|
|
502
|
+
}, initOverrides);
|
|
503
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationResponse.OrganizationResponseFromJSON(jsonValue));
|
|
547
504
|
}
|
|
548
505
|
/**
|
|
549
506
|
* Updates the specified organization.
|
|
550
507
|
* Update an organization by ID
|
|
551
508
|
*/
|
|
552
|
-
updateOrganizationById(requestParameters, initOverrides) {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
return yield response.value();
|
|
556
|
-
});
|
|
509
|
+
async updateOrganizationById(requestParameters, initOverrides) {
|
|
510
|
+
const response = await this.updateOrganizationByIdRaw(requestParameters, initOverrides);
|
|
511
|
+
return await response.value();
|
|
557
512
|
}
|
|
558
513
|
/**
|
|
559
514
|
* Updates the specified SSO provider configuration.
|
|
560
515
|
* Update SSO provider configuration
|
|
561
516
|
*/
|
|
562
|
-
updateSsoProviderRaw(requestParameters, initOverrides) {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SsoProvider.SsoProviderFromJSON(jsonValue));
|
|
591
|
-
});
|
|
517
|
+
async updateSsoProviderRaw(requestParameters, initOverrides) {
|
|
518
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
519
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateSsoProvider.');
|
|
520
|
+
}
|
|
521
|
+
if (requestParameters.ssoProviderId === null || requestParameters.ssoProviderId === undefined) {
|
|
522
|
+
throw new runtime.RequiredError('ssoProviderId', 'Required parameter requestParameters.ssoProviderId was null or undefined when calling updateSsoProvider.');
|
|
523
|
+
}
|
|
524
|
+
if (requestParameters.ssoProviderUpdateRequest === null || requestParameters.ssoProviderUpdateRequest === undefined) {
|
|
525
|
+
throw new runtime.RequiredError('ssoProviderUpdateRequest', 'Required parameter requestParameters.ssoProviderUpdateRequest was null or undefined when calling updateSsoProvider.');
|
|
526
|
+
}
|
|
527
|
+
const queryParameters = {};
|
|
528
|
+
const headerParameters = {};
|
|
529
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
530
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
531
|
+
const token = this.configuration.accessToken;
|
|
532
|
+
const tokenString = await token("bearerAuth", []);
|
|
533
|
+
if (tokenString) {
|
|
534
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
const response = await this.request({
|
|
538
|
+
path: `/organizations/{organizationId}/ssoProvider/{ssoProviderId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"ssoProviderId"}}`, encodeURIComponent(String(requestParameters.ssoProviderId))),
|
|
539
|
+
method: 'PUT',
|
|
540
|
+
headers: headerParameters,
|
|
541
|
+
query: queryParameters,
|
|
542
|
+
body: SsoProviderUpdateRequest.SsoProviderUpdateRequestToJSON(requestParameters.ssoProviderUpdateRequest),
|
|
543
|
+
}, initOverrides);
|
|
544
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SsoProvider.SsoProviderFromJSON(jsonValue));
|
|
592
545
|
}
|
|
593
546
|
/**
|
|
594
547
|
* Updates the specified SSO provider configuration.
|
|
595
548
|
* Update SSO provider configuration
|
|
596
549
|
*/
|
|
597
|
-
updateSsoProvider(requestParameters, initOverrides) {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
return yield response.value();
|
|
601
|
-
});
|
|
550
|
+
async updateSsoProvider(requestParameters, initOverrides) {
|
|
551
|
+
const response = await this.updateSsoProviderRaw(requestParameters, initOverrides);
|
|
552
|
+
return await response.value();
|
|
602
553
|
}
|
|
603
554
|
/**
|
|
604
555
|
* Upgrades the subscription plan for the specified organization.
|
|
605
556
|
* Upgrade organization to advanced plan
|
|
606
557
|
*/
|
|
607
|
-
upgradeSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
628
|
-
});
|
|
558
|
+
async upgradeSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
559
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
560
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling upgradeSubscriptionForOrganization.');
|
|
561
|
+
}
|
|
562
|
+
const queryParameters = {};
|
|
563
|
+
const headerParameters = {};
|
|
564
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
565
|
+
const token = this.configuration.accessToken;
|
|
566
|
+
const tokenString = await token("bearerAuth", []);
|
|
567
|
+
if (tokenString) {
|
|
568
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
const response = await this.request({
|
|
572
|
+
path: `/organizations/{organizationId}/billing/upgrade`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
573
|
+
method: 'PUT',
|
|
574
|
+
headers: headerParameters,
|
|
575
|
+
query: queryParameters,
|
|
576
|
+
}, initOverrides);
|
|
577
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BillingSubscription.BillingSubscriptionFromJSON(jsonValue));
|
|
629
578
|
}
|
|
630
579
|
/**
|
|
631
580
|
* Upgrades the subscription plan for the specified organization.
|
|
632
581
|
* Upgrade organization to advanced plan
|
|
633
582
|
*/
|
|
634
|
-
upgradeSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
return yield response.value();
|
|
638
|
-
});
|
|
583
|
+
async upgradeSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
584
|
+
const response = await this.upgradeSubscriptionForOrganizationRaw(requestParameters, initOverrides);
|
|
585
|
+
return await response.value();
|
|
639
586
|
}
|
|
640
587
|
}
|
|
641
588
|
|