@teemill/platform 0.21.0 → 0.22.0
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/README.md +12 -3
- package/api.ts +577 -16
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +322 -17
- package/dist/api.js +411 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +322 -17
- package/dist/esm/api.js +411 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CreateDomainRequest.md +20 -0
- package/docs/Domain.md +26 -0
- package/docs/InlineObject.md +22 -0
- package/docs/InlineObject1.md +20 -0
- package/docs/PaymentApi.md +2 -2
- package/docs/PlatformApi.md +330 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.22.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -97,19 +97,6 @@ export interface ApiError {
|
|
|
97
97
|
*/
|
|
98
98
|
'message': string;
|
|
99
99
|
}
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @export
|
|
103
|
-
* @interface AuthorizeStripe200Response
|
|
104
|
-
*/
|
|
105
|
-
export interface AuthorizeStripe200Response {
|
|
106
|
-
/**
|
|
107
|
-
* The URL to redirect to
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof AuthorizeStripe200Response
|
|
110
|
-
*/
|
|
111
|
-
'redirect_url': string;
|
|
112
|
-
}
|
|
113
100
|
/**
|
|
114
101
|
*
|
|
115
102
|
* @export
|
|
@@ -173,6 +160,19 @@ export interface Coupon {
|
|
|
173
160
|
*/
|
|
174
161
|
'code': string;
|
|
175
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @export
|
|
166
|
+
* @interface CreateDomainRequest
|
|
167
|
+
*/
|
|
168
|
+
export interface CreateDomainRequest {
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof CreateDomainRequest
|
|
173
|
+
*/
|
|
174
|
+
'domain'?: string;
|
|
175
|
+
}
|
|
176
176
|
/**
|
|
177
177
|
* The customer that has placed an order on your platform
|
|
178
178
|
* @export
|
|
@@ -260,6 +260,37 @@ export interface DeliveryEstimates {
|
|
|
260
260
|
*/
|
|
261
261
|
'max'?: string;
|
|
262
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @export
|
|
266
|
+
* @interface Domain
|
|
267
|
+
*/
|
|
268
|
+
export interface Domain {
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {number}
|
|
272
|
+
* @memberof Domain
|
|
273
|
+
*/
|
|
274
|
+
'id': number;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof Domain
|
|
279
|
+
*/
|
|
280
|
+
'name': string;
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @type {number}
|
|
284
|
+
* @memberof Domain
|
|
285
|
+
*/
|
|
286
|
+
'priority': number;
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @type {string}
|
|
290
|
+
* @memberof Domain
|
|
291
|
+
*/
|
|
292
|
+
'enabledAt': string | null;
|
|
293
|
+
}
|
|
263
294
|
/**
|
|
264
295
|
*
|
|
265
296
|
* @export
|
|
@@ -562,6 +593,38 @@ export interface Image {
|
|
|
562
593
|
*/
|
|
563
594
|
'sortOrder'?: number;
|
|
564
595
|
}
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @export
|
|
599
|
+
* @interface InlineObject
|
|
600
|
+
*/
|
|
601
|
+
export interface InlineObject {
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @type {Array<Domain>}
|
|
605
|
+
* @memberof InlineObject
|
|
606
|
+
*/
|
|
607
|
+
'domains'?: Array<Domain>;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {number}
|
|
611
|
+
* @memberof InlineObject
|
|
612
|
+
*/
|
|
613
|
+
'nextPageToken'?: number;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* @export
|
|
618
|
+
* @interface InlineObject1
|
|
619
|
+
*/
|
|
620
|
+
export interface InlineObject1 {
|
|
621
|
+
/**
|
|
622
|
+
* The URL to redirect to
|
|
623
|
+
* @type {string}
|
|
624
|
+
* @memberof InlineObject1
|
|
625
|
+
*/
|
|
626
|
+
'redirect_url': string;
|
|
627
|
+
}
|
|
565
628
|
/**
|
|
566
629
|
*
|
|
567
630
|
* @export
|
|
@@ -3799,7 +3862,7 @@ export const PaymentApiFp = function(configuration?: Configuration) {
|
|
|
3799
3862
|
* @param {*} [options] Override http request option.
|
|
3800
3863
|
* @throws {RequiredError}
|
|
3801
3864
|
*/
|
|
3802
|
-
async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3865
|
+
async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>> {
|
|
3803
3866
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
|
|
3804
3867
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3805
3868
|
const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3848,7 +3911,7 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
|
|
|
3848
3911
|
* @param {*} [options] Override http request option.
|
|
3849
3912
|
* @throws {RequiredError}
|
|
3850
3913
|
*/
|
|
3851
|
-
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3914
|
+
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
|
|
3852
3915
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
3853
3916
|
},
|
|
3854
3917
|
/**
|
|
@@ -3968,6 +4031,170 @@ export class PaymentApi extends BaseAPI {
|
|
|
3968
4031
|
*/
|
|
3969
4032
|
export const PlatformApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3970
4033
|
return {
|
|
4034
|
+
/**
|
|
4035
|
+
* Create a new client platform domain
|
|
4036
|
+
* @summary Create a platform client domain
|
|
4037
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
4038
|
+
* @param {*} [options] Override http request option.
|
|
4039
|
+
* @throws {RequiredError}
|
|
4040
|
+
*/
|
|
4041
|
+
createClientDomain: async (createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4042
|
+
const localVarPath = `/v1/platform/clients/domains`;
|
|
4043
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4044
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4045
|
+
let baseOptions;
|
|
4046
|
+
if (configuration) {
|
|
4047
|
+
baseOptions = configuration.baseOptions;
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4051
|
+
const localVarHeaderParameter = {} as any;
|
|
4052
|
+
const localVarQueryParameter = {} as any;
|
|
4053
|
+
|
|
4054
|
+
// authentication session-oauth required
|
|
4055
|
+
// oauth required
|
|
4056
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4057
|
+
|
|
4058
|
+
// authentication api-key required
|
|
4059
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4060
|
+
|
|
4061
|
+
|
|
4062
|
+
|
|
4063
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4064
|
+
|
|
4065
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4066
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4067
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4068
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
|
|
4069
|
+
|
|
4070
|
+
return {
|
|
4071
|
+
url: toPathString(localVarUrlObj),
|
|
4072
|
+
options: localVarRequestOptions,
|
|
4073
|
+
};
|
|
4074
|
+
},
|
|
4075
|
+
/**
|
|
4076
|
+
* Create a new platform domain
|
|
4077
|
+
* @summary Create a platform domain
|
|
4078
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
4079
|
+
* @param {*} [options] Override http request option.
|
|
4080
|
+
* @throws {RequiredError}
|
|
4081
|
+
*/
|
|
4082
|
+
createDomain: async (createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4083
|
+
const localVarPath = `/v1/platform/domains`;
|
|
4084
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4085
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4086
|
+
let baseOptions;
|
|
4087
|
+
if (configuration) {
|
|
4088
|
+
baseOptions = configuration.baseOptions;
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4092
|
+
const localVarHeaderParameter = {} as any;
|
|
4093
|
+
const localVarQueryParameter = {} as any;
|
|
4094
|
+
|
|
4095
|
+
// authentication session-oauth required
|
|
4096
|
+
// oauth required
|
|
4097
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4098
|
+
|
|
4099
|
+
// authentication api-key required
|
|
4100
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
|
|
4104
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4105
|
+
|
|
4106
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4108
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4109
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
|
|
4110
|
+
|
|
4111
|
+
return {
|
|
4112
|
+
url: toPathString(localVarUrlObj),
|
|
4113
|
+
options: localVarRequestOptions,
|
|
4114
|
+
};
|
|
4115
|
+
},
|
|
4116
|
+
/**
|
|
4117
|
+
* Delete an existing client platform domain
|
|
4118
|
+
* @summary Delete a platform client domain
|
|
4119
|
+
* @param {string} domain The domain identifier
|
|
4120
|
+
* @param {*} [options] Override http request option.
|
|
4121
|
+
* @throws {RequiredError}
|
|
4122
|
+
*/
|
|
4123
|
+
deleteClientDomain: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4124
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4125
|
+
assertParamExists('deleteClientDomain', 'domain', domain)
|
|
4126
|
+
const localVarPath = `/v1/platform/clients/domains/{domain}`
|
|
4127
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4128
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4129
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4130
|
+
let baseOptions;
|
|
4131
|
+
if (configuration) {
|
|
4132
|
+
baseOptions = configuration.baseOptions;
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4136
|
+
const localVarHeaderParameter = {} as any;
|
|
4137
|
+
const localVarQueryParameter = {} as any;
|
|
4138
|
+
|
|
4139
|
+
// authentication session-oauth required
|
|
4140
|
+
// oauth required
|
|
4141
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4142
|
+
|
|
4143
|
+
// authentication api-key required
|
|
4144
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4145
|
+
|
|
4146
|
+
|
|
4147
|
+
|
|
4148
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4149
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4150
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4151
|
+
|
|
4152
|
+
return {
|
|
4153
|
+
url: toPathString(localVarUrlObj),
|
|
4154
|
+
options: localVarRequestOptions,
|
|
4155
|
+
};
|
|
4156
|
+
},
|
|
4157
|
+
/**
|
|
4158
|
+
* Delete an existing platform domain
|
|
4159
|
+
* @summary Delete a platform domain
|
|
4160
|
+
* @param {string} domain The domain identifier
|
|
4161
|
+
* @param {*} [options] Override http request option.
|
|
4162
|
+
* @throws {RequiredError}
|
|
4163
|
+
*/
|
|
4164
|
+
deleteDomain: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4165
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4166
|
+
assertParamExists('deleteDomain', 'domain', domain)
|
|
4167
|
+
const localVarPath = `/v1/platform/domains/{domain}`
|
|
4168
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4171
|
+
let baseOptions;
|
|
4172
|
+
if (configuration) {
|
|
4173
|
+
baseOptions = configuration.baseOptions;
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4177
|
+
const localVarHeaderParameter = {} as any;
|
|
4178
|
+
const localVarQueryParameter = {} as any;
|
|
4179
|
+
|
|
4180
|
+
// authentication session-oauth required
|
|
4181
|
+
// oauth required
|
|
4182
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4183
|
+
|
|
4184
|
+
// authentication api-key required
|
|
4185
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4186
|
+
|
|
4187
|
+
|
|
4188
|
+
|
|
4189
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4190
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4191
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4192
|
+
|
|
4193
|
+
return {
|
|
4194
|
+
url: toPathString(localVarUrlObj),
|
|
4195
|
+
options: localVarRequestOptions,
|
|
4196
|
+
};
|
|
4197
|
+
},
|
|
3971
4198
|
/**
|
|
3972
4199
|
*
|
|
3973
4200
|
* @summary Get platform details
|
|
@@ -4003,6 +4230,80 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4003
4230
|
|
|
4004
4231
|
|
|
4005
4232
|
|
|
4233
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4235
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4236
|
+
|
|
4237
|
+
return {
|
|
4238
|
+
url: toPathString(localVarUrlObj),
|
|
4239
|
+
options: localVarRequestOptions,
|
|
4240
|
+
};
|
|
4241
|
+
},
|
|
4242
|
+
/**
|
|
4243
|
+
* List the client domains attached to a platform
|
|
4244
|
+
* @summary List platform client domains
|
|
4245
|
+
* @param {*} [options] Override http request option.
|
|
4246
|
+
* @throws {RequiredError}
|
|
4247
|
+
*/
|
|
4248
|
+
listClientDomains: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4249
|
+
const localVarPath = `/v1/platform/clients/domains`;
|
|
4250
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4251
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4252
|
+
let baseOptions;
|
|
4253
|
+
if (configuration) {
|
|
4254
|
+
baseOptions = configuration.baseOptions;
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4258
|
+
const localVarHeaderParameter = {} as any;
|
|
4259
|
+
const localVarQueryParameter = {} as any;
|
|
4260
|
+
|
|
4261
|
+
// authentication session-oauth required
|
|
4262
|
+
// oauth required
|
|
4263
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4264
|
+
|
|
4265
|
+
// authentication api-key required
|
|
4266
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4267
|
+
|
|
4268
|
+
|
|
4269
|
+
|
|
4270
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4272
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4273
|
+
|
|
4274
|
+
return {
|
|
4275
|
+
url: toPathString(localVarUrlObj),
|
|
4276
|
+
options: localVarRequestOptions,
|
|
4277
|
+
};
|
|
4278
|
+
},
|
|
4279
|
+
/**
|
|
4280
|
+
* List the domains attached to a platform
|
|
4281
|
+
* @summary List platform domains
|
|
4282
|
+
* @param {*} [options] Override http request option.
|
|
4283
|
+
* @throws {RequiredError}
|
|
4284
|
+
*/
|
|
4285
|
+
listDomains: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4286
|
+
const localVarPath = `/v1/platform/domains`;
|
|
4287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4288
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4289
|
+
let baseOptions;
|
|
4290
|
+
if (configuration) {
|
|
4291
|
+
baseOptions = configuration.baseOptions;
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4294
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4295
|
+
const localVarHeaderParameter = {} as any;
|
|
4296
|
+
const localVarQueryParameter = {} as any;
|
|
4297
|
+
|
|
4298
|
+
// authentication session-oauth required
|
|
4299
|
+
// oauth required
|
|
4300
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4301
|
+
|
|
4302
|
+
// authentication api-key required
|
|
4303
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4304
|
+
|
|
4305
|
+
|
|
4306
|
+
|
|
4006
4307
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4007
4308
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4008
4309
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4072,6 +4373,58 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4072
4373
|
export const PlatformApiFp = function(configuration?: Configuration) {
|
|
4073
4374
|
const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration)
|
|
4074
4375
|
return {
|
|
4376
|
+
/**
|
|
4377
|
+
* Create a new client platform domain
|
|
4378
|
+
* @summary Create a platform client domain
|
|
4379
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
4380
|
+
* @param {*} [options] Override http request option.
|
|
4381
|
+
* @throws {RequiredError}
|
|
4382
|
+
*/
|
|
4383
|
+
async createClientDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
|
|
4384
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClientDomain(createDomainRequest, options);
|
|
4385
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4386
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.createClientDomain']?.[localVarOperationServerIndex]?.url;
|
|
4387
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4388
|
+
},
|
|
4389
|
+
/**
|
|
4390
|
+
* Create a new platform domain
|
|
4391
|
+
* @summary Create a platform domain
|
|
4392
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
4393
|
+
* @param {*} [options] Override http request option.
|
|
4394
|
+
* @throws {RequiredError}
|
|
4395
|
+
*/
|
|
4396
|
+
async createDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
|
|
4397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDomain(createDomainRequest, options);
|
|
4398
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4399
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.createDomain']?.[localVarOperationServerIndex]?.url;
|
|
4400
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4401
|
+
},
|
|
4402
|
+
/**
|
|
4403
|
+
* Delete an existing client platform domain
|
|
4404
|
+
* @summary Delete a platform client domain
|
|
4405
|
+
* @param {string} domain The domain identifier
|
|
4406
|
+
* @param {*} [options] Override http request option.
|
|
4407
|
+
* @throws {RequiredError}
|
|
4408
|
+
*/
|
|
4409
|
+
async deleteClientDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClientDomain(domain, options);
|
|
4411
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4412
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.deleteClientDomain']?.[localVarOperationServerIndex]?.url;
|
|
4413
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4414
|
+
},
|
|
4415
|
+
/**
|
|
4416
|
+
* Delete an existing platform domain
|
|
4417
|
+
* @summary Delete a platform domain
|
|
4418
|
+
* @param {string} domain The domain identifier
|
|
4419
|
+
* @param {*} [options] Override http request option.
|
|
4420
|
+
* @throws {RequiredError}
|
|
4421
|
+
*/
|
|
4422
|
+
async deleteDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4423
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDomain(domain, options);
|
|
4424
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4425
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.deleteDomain']?.[localVarOperationServerIndex]?.url;
|
|
4426
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4427
|
+
},
|
|
4075
4428
|
/**
|
|
4076
4429
|
*
|
|
4077
4430
|
* @summary Get platform details
|
|
@@ -4085,6 +4438,30 @@ export const PlatformApiFp = function(configuration?: Configuration) {
|
|
|
4085
4438
|
const localVarOperationServerBasePath = operationServerMap['PlatformApi.getPlatform']?.[localVarOperationServerIndex]?.url;
|
|
4086
4439
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4087
4440
|
},
|
|
4441
|
+
/**
|
|
4442
|
+
* List the client domains attached to a platform
|
|
4443
|
+
* @summary List platform client domains
|
|
4444
|
+
* @param {*} [options] Override http request option.
|
|
4445
|
+
* @throws {RequiredError}
|
|
4446
|
+
*/
|
|
4447
|
+
async listClientDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
|
|
4448
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClientDomains(options);
|
|
4449
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4450
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.listClientDomains']?.[localVarOperationServerIndex]?.url;
|
|
4451
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4452
|
+
},
|
|
4453
|
+
/**
|
|
4454
|
+
* List the domains attached to a platform
|
|
4455
|
+
* @summary List platform domains
|
|
4456
|
+
* @param {*} [options] Override http request option.
|
|
4457
|
+
* @throws {RequiredError}
|
|
4458
|
+
*/
|
|
4459
|
+
async listDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
|
|
4460
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDomains(options);
|
|
4461
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4462
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.listDomains']?.[localVarOperationServerIndex]?.url;
|
|
4463
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4464
|
+
},
|
|
4088
4465
|
/**
|
|
4089
4466
|
*
|
|
4090
4467
|
* @summary Update platform
|
|
@@ -4109,6 +4486,46 @@ export const PlatformApiFp = function(configuration?: Configuration) {
|
|
|
4109
4486
|
export const PlatformApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4110
4487
|
const localVarFp = PlatformApiFp(configuration)
|
|
4111
4488
|
return {
|
|
4489
|
+
/**
|
|
4490
|
+
* Create a new client platform domain
|
|
4491
|
+
* @summary Create a platform client domain
|
|
4492
|
+
* @param {PlatformApiCreateClientDomainRequest} requestParameters Request parameters.
|
|
4493
|
+
* @param {*} [options] Override http request option.
|
|
4494
|
+
* @throws {RequiredError}
|
|
4495
|
+
*/
|
|
4496
|
+
createClientDomain(requestParameters: PlatformApiCreateClientDomainRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Domain> {
|
|
4497
|
+
return localVarFp.createClientDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
4498
|
+
},
|
|
4499
|
+
/**
|
|
4500
|
+
* Create a new platform domain
|
|
4501
|
+
* @summary Create a platform domain
|
|
4502
|
+
* @param {PlatformApiCreateDomainRequest} requestParameters Request parameters.
|
|
4503
|
+
* @param {*} [options] Override http request option.
|
|
4504
|
+
* @throws {RequiredError}
|
|
4505
|
+
*/
|
|
4506
|
+
createDomain(requestParameters: PlatformApiCreateDomainRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Domain> {
|
|
4507
|
+
return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
4508
|
+
},
|
|
4509
|
+
/**
|
|
4510
|
+
* Delete an existing client platform domain
|
|
4511
|
+
* @summary Delete a platform client domain
|
|
4512
|
+
* @param {PlatformApiDeleteClientDomainRequest} requestParameters Request parameters.
|
|
4513
|
+
* @param {*} [options] Override http request option.
|
|
4514
|
+
* @throws {RequiredError}
|
|
4515
|
+
*/
|
|
4516
|
+
deleteClientDomain(requestParameters: PlatformApiDeleteClientDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4517
|
+
return localVarFp.deleteClientDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
4518
|
+
},
|
|
4519
|
+
/**
|
|
4520
|
+
* Delete an existing platform domain
|
|
4521
|
+
* @summary Delete a platform domain
|
|
4522
|
+
* @param {PlatformApiDeleteDomainRequest} requestParameters Request parameters.
|
|
4523
|
+
* @param {*} [options] Override http request option.
|
|
4524
|
+
* @throws {RequiredError}
|
|
4525
|
+
*/
|
|
4526
|
+
deleteDomain(requestParameters: PlatformApiDeleteDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4527
|
+
return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
4528
|
+
},
|
|
4112
4529
|
/**
|
|
4113
4530
|
*
|
|
4114
4531
|
* @summary Get platform details
|
|
@@ -4119,6 +4536,24 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
|
|
|
4119
4536
|
getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
|
|
4120
4537
|
return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
4121
4538
|
},
|
|
4539
|
+
/**
|
|
4540
|
+
* List the client domains attached to a platform
|
|
4541
|
+
* @summary List platform client domains
|
|
4542
|
+
* @param {*} [options] Override http request option.
|
|
4543
|
+
* @throws {RequiredError}
|
|
4544
|
+
*/
|
|
4545
|
+
listClientDomains(options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
|
|
4546
|
+
return localVarFp.listClientDomains(options).then((request) => request(axios, basePath));
|
|
4547
|
+
},
|
|
4548
|
+
/**
|
|
4549
|
+
* List the domains attached to a platform
|
|
4550
|
+
* @summary List platform domains
|
|
4551
|
+
* @param {*} [options] Override http request option.
|
|
4552
|
+
* @throws {RequiredError}
|
|
4553
|
+
*/
|
|
4554
|
+
listDomains(options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
|
|
4555
|
+
return localVarFp.listDomains(options).then((request) => request(axios, basePath));
|
|
4556
|
+
},
|
|
4122
4557
|
/**
|
|
4123
4558
|
*
|
|
4124
4559
|
* @summary Update platform
|
|
@@ -4132,6 +4567,62 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
|
|
|
4132
4567
|
};
|
|
4133
4568
|
};
|
|
4134
4569
|
|
|
4570
|
+
/**
|
|
4571
|
+
* Request parameters for createClientDomain operation in PlatformApi.
|
|
4572
|
+
* @export
|
|
4573
|
+
* @interface PlatformApiCreateClientDomainRequest
|
|
4574
|
+
*/
|
|
4575
|
+
export interface PlatformApiCreateClientDomainRequest {
|
|
4576
|
+
/**
|
|
4577
|
+
*
|
|
4578
|
+
* @type {CreateDomainRequest}
|
|
4579
|
+
* @memberof PlatformApiCreateClientDomain
|
|
4580
|
+
*/
|
|
4581
|
+
readonly createDomainRequest?: CreateDomainRequest
|
|
4582
|
+
}
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* Request parameters for createDomain operation in PlatformApi.
|
|
4586
|
+
* @export
|
|
4587
|
+
* @interface PlatformApiCreateDomainRequest
|
|
4588
|
+
*/
|
|
4589
|
+
export interface PlatformApiCreateDomainRequest {
|
|
4590
|
+
/**
|
|
4591
|
+
*
|
|
4592
|
+
* @type {CreateDomainRequest}
|
|
4593
|
+
* @memberof PlatformApiCreateDomain
|
|
4594
|
+
*/
|
|
4595
|
+
readonly createDomainRequest?: CreateDomainRequest
|
|
4596
|
+
}
|
|
4597
|
+
|
|
4598
|
+
/**
|
|
4599
|
+
* Request parameters for deleteClientDomain operation in PlatformApi.
|
|
4600
|
+
* @export
|
|
4601
|
+
* @interface PlatformApiDeleteClientDomainRequest
|
|
4602
|
+
*/
|
|
4603
|
+
export interface PlatformApiDeleteClientDomainRequest {
|
|
4604
|
+
/**
|
|
4605
|
+
* The domain identifier
|
|
4606
|
+
* @type {string}
|
|
4607
|
+
* @memberof PlatformApiDeleteClientDomain
|
|
4608
|
+
*/
|
|
4609
|
+
readonly domain: string
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
/**
|
|
4613
|
+
* Request parameters for deleteDomain operation in PlatformApi.
|
|
4614
|
+
* @export
|
|
4615
|
+
* @interface PlatformApiDeleteDomainRequest
|
|
4616
|
+
*/
|
|
4617
|
+
export interface PlatformApiDeleteDomainRequest {
|
|
4618
|
+
/**
|
|
4619
|
+
* The domain identifier
|
|
4620
|
+
* @type {string}
|
|
4621
|
+
* @memberof PlatformApiDeleteDomain
|
|
4622
|
+
*/
|
|
4623
|
+
readonly domain: string
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4135
4626
|
/**
|
|
4136
4627
|
* Request parameters for getPlatform operation in PlatformApi.
|
|
4137
4628
|
* @export
|
|
@@ -4174,6 +4665,54 @@ export interface PlatformApiUpdatePlatformRequest {
|
|
|
4174
4665
|
* @extends {BaseAPI}
|
|
4175
4666
|
*/
|
|
4176
4667
|
export class PlatformApi extends BaseAPI {
|
|
4668
|
+
/**
|
|
4669
|
+
* Create a new client platform domain
|
|
4670
|
+
* @summary Create a platform client domain
|
|
4671
|
+
* @param {PlatformApiCreateClientDomainRequest} requestParameters Request parameters.
|
|
4672
|
+
* @param {*} [options] Override http request option.
|
|
4673
|
+
* @throws {RequiredError}
|
|
4674
|
+
* @memberof PlatformApi
|
|
4675
|
+
*/
|
|
4676
|
+
public createClientDomain(requestParameters: PlatformApiCreateClientDomainRequest = {}, options?: RawAxiosRequestConfig) {
|
|
4677
|
+
return PlatformApiFp(this.configuration).createClientDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4678
|
+
}
|
|
4679
|
+
|
|
4680
|
+
/**
|
|
4681
|
+
* Create a new platform domain
|
|
4682
|
+
* @summary Create a platform domain
|
|
4683
|
+
* @param {PlatformApiCreateDomainRequest} requestParameters Request parameters.
|
|
4684
|
+
* @param {*} [options] Override http request option.
|
|
4685
|
+
* @throws {RequiredError}
|
|
4686
|
+
* @memberof PlatformApi
|
|
4687
|
+
*/
|
|
4688
|
+
public createDomain(requestParameters: PlatformApiCreateDomainRequest = {}, options?: RawAxiosRequestConfig) {
|
|
4689
|
+
return PlatformApiFp(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4690
|
+
}
|
|
4691
|
+
|
|
4692
|
+
/**
|
|
4693
|
+
* Delete an existing client platform domain
|
|
4694
|
+
* @summary Delete a platform client domain
|
|
4695
|
+
* @param {PlatformApiDeleteClientDomainRequest} requestParameters Request parameters.
|
|
4696
|
+
* @param {*} [options] Override http request option.
|
|
4697
|
+
* @throws {RequiredError}
|
|
4698
|
+
* @memberof PlatformApi
|
|
4699
|
+
*/
|
|
4700
|
+
public deleteClientDomain(requestParameters: PlatformApiDeleteClientDomainRequest, options?: RawAxiosRequestConfig) {
|
|
4701
|
+
return PlatformApiFp(this.configuration).deleteClientDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4704
|
+
/**
|
|
4705
|
+
* Delete an existing platform domain
|
|
4706
|
+
* @summary Delete a platform domain
|
|
4707
|
+
* @param {PlatformApiDeleteDomainRequest} requestParameters Request parameters.
|
|
4708
|
+
* @param {*} [options] Override http request option.
|
|
4709
|
+
* @throws {RequiredError}
|
|
4710
|
+
* @memberof PlatformApi
|
|
4711
|
+
*/
|
|
4712
|
+
public deleteDomain(requestParameters: PlatformApiDeleteDomainRequest, options?: RawAxiosRequestConfig) {
|
|
4713
|
+
return PlatformApiFp(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4714
|
+
}
|
|
4715
|
+
|
|
4177
4716
|
/**
|
|
4178
4717
|
*
|
|
4179
4718
|
* @summary Get platform details
|
|
@@ -4186,6 +4725,28 @@ export class PlatformApi extends BaseAPI {
|
|
|
4186
4725
|
return PlatformApiFp(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
4187
4726
|
}
|
|
4188
4727
|
|
|
4728
|
+
/**
|
|
4729
|
+
* List the client domains attached to a platform
|
|
4730
|
+
* @summary List platform client domains
|
|
4731
|
+
* @param {*} [options] Override http request option.
|
|
4732
|
+
* @throws {RequiredError}
|
|
4733
|
+
* @memberof PlatformApi
|
|
4734
|
+
*/
|
|
4735
|
+
public listClientDomains(options?: RawAxiosRequestConfig) {
|
|
4736
|
+
return PlatformApiFp(this.configuration).listClientDomains(options).then((request) => request(this.axios, this.basePath));
|
|
4737
|
+
}
|
|
4738
|
+
|
|
4739
|
+
/**
|
|
4740
|
+
* List the domains attached to a platform
|
|
4741
|
+
* @summary List platform domains
|
|
4742
|
+
* @param {*} [options] Override http request option.
|
|
4743
|
+
* @throws {RequiredError}
|
|
4744
|
+
* @memberof PlatformApi
|
|
4745
|
+
*/
|
|
4746
|
+
public listDomains(options?: RawAxiosRequestConfig) {
|
|
4747
|
+
return PlatformApiFp(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
|
|
4748
|
+
}
|
|
4749
|
+
|
|
4189
4750
|
/**
|
|
4190
4751
|
*
|
|
4191
4752
|
* @summary Update platform
|