@teemill/platform 0.20.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/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.20.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
@@ -1374,6 +1437,31 @@ export interface ReviewsResponse {
1374
1437
  */
1375
1438
  'nextPageToken'?: number | null;
1376
1439
  }
1440
+ /**
1441
+ *
1442
+ * @export
1443
+ * @interface SaveTermsRequest
1444
+ */
1445
+ export interface SaveTermsRequest {
1446
+ /**
1447
+ *
1448
+ * @type {string}
1449
+ * @memberof SaveTermsRequest
1450
+ */
1451
+ 'title': string;
1452
+ /**
1453
+ *
1454
+ * @type {string}
1455
+ * @memberof SaveTermsRequest
1456
+ */
1457
+ 'content': string;
1458
+ /**
1459
+ *
1460
+ * @type {boolean}
1461
+ * @memberof SaveTermsRequest
1462
+ */
1463
+ 'enabled': boolean;
1464
+ }
1377
1465
  /**
1378
1466
  *
1379
1467
  * @export
@@ -1475,6 +1563,55 @@ export interface StatusHistoryItem {
1475
1563
  }
1476
1564
 
1477
1565
 
1566
+ /**
1567
+ *
1568
+ * @export
1569
+ * @interface Terms
1570
+ */
1571
+ export interface Terms {
1572
+ /**
1573
+ *
1574
+ * @type {string}
1575
+ * @memberof Terms
1576
+ */
1577
+ 'id': string;
1578
+ /**
1579
+ *
1580
+ * @type {string}
1581
+ * @memberof Terms
1582
+ */
1583
+ 'title': string;
1584
+ /**
1585
+ *
1586
+ * @type {string}
1587
+ * @memberof Terms
1588
+ */
1589
+ 'content': string;
1590
+ /**
1591
+ *
1592
+ * @type {number}
1593
+ * @memberof Terms
1594
+ */
1595
+ 'version': number;
1596
+ /**
1597
+ *
1598
+ * @type {boolean}
1599
+ * @memberof Terms
1600
+ */
1601
+ 'enabled': boolean;
1602
+ /**
1603
+ *
1604
+ * @type {string}
1605
+ * @memberof Terms
1606
+ */
1607
+ 'createdAt': string;
1608
+ /**
1609
+ *
1610
+ * @type {string}
1611
+ * @memberof Terms
1612
+ */
1613
+ 'updatedAt': string;
1614
+ }
1478
1615
  /**
1479
1616
  *
1480
1617
  * @export
@@ -3725,7 +3862,7 @@ export const PaymentApiFp = function(configuration?: Configuration) {
3725
3862
  * @param {*} [options] Override http request option.
3726
3863
  * @throws {RequiredError}
3727
3864
  */
3728
- async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>> {
3865
+ async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>> {
3729
3866
  const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
3730
3867
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3731
3868
  const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
@@ -3774,7 +3911,7 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
3774
3911
  * @param {*} [options] Override http request option.
3775
3912
  * @throws {RequiredError}
3776
3913
  */
3777
- authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response> {
3914
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
3778
3915
  return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
3779
3916
  },
3780
3917
  /**
@@ -3895,16 +4032,14 @@ export class PaymentApi extends BaseAPI {
3895
4032
  export const PlatformApiAxiosParamCreator = function (configuration?: Configuration) {
3896
4033
  return {
3897
4034
  /**
3898
- *
3899
- * @summary Get platform details
3900
- * @param {string} project Project unique identifier
4035
+ * Create a new client platform domain
4036
+ * @summary Create a platform client domain
4037
+ * @param {CreateDomainRequest} [createDomainRequest]
3901
4038
  * @param {*} [options] Override http request option.
3902
4039
  * @throws {RequiredError}
3903
4040
  */
3904
- getPlatform: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3905
- // verify required parameter 'project' is not null or undefined
3906
- assertParamExists('getPlatform', 'project', project)
3907
- const localVarPath = `/v1/platform`;
4041
+ createClientDomain: async (createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4042
+ const localVarPath = `/v1/platform/clients/domains`;
3908
4043
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3909
4044
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3910
4045
  let baseOptions;
@@ -3912,7 +4047,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3912
4047
  baseOptions = configuration.baseOptions;
3913
4048
  }
3914
4049
 
3915
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4050
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3916
4051
  const localVarHeaderParameter = {} as any;
3917
4052
  const localVarQueryParameter = {} as any;
3918
4053
 
@@ -3923,15 +4058,14 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3923
4058
  // authentication api-key required
3924
4059
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3925
4060
 
3926
- if (project !== undefined) {
3927
- localVarQueryParameter['project'] = project;
3928
- }
3929
-
3930
4061
 
3931
4062
 
4063
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4064
+
3932
4065
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3933
4066
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3934
4067
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4068
+ localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
3935
4069
 
3936
4070
  return {
3937
4071
  url: toPathString(localVarUrlObj),
@@ -3939,19 +4073,14 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3939
4073
  };
3940
4074
  },
3941
4075
  /**
3942
- *
3943
- * @summary Update platform
3944
- * @param {string} project Project unique identifier
3945
- * @param {UpdatePlatformRequest} updatePlatformRequest
4076
+ * Create a new platform domain
4077
+ * @summary Create a platform domain
4078
+ * @param {CreateDomainRequest} [createDomainRequest]
3946
4079
  * @param {*} [options] Override http request option.
3947
4080
  * @throws {RequiredError}
3948
4081
  */
3949
- updatePlatform: async (project: string, updatePlatformRequest: UpdatePlatformRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3950
- // verify required parameter 'project' is not null or undefined
3951
- assertParamExists('updatePlatform', 'project', project)
3952
- // verify required parameter 'updatePlatformRequest' is not null or undefined
3953
- assertParamExists('updatePlatform', 'updatePlatformRequest', updatePlatformRequest)
3954
- const localVarPath = `/v1/platform`;
4082
+ createDomain: async (createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4083
+ const localVarPath = `/v1/platform/domains`;
3955
4084
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3956
4085
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3957
4086
  let baseOptions;
@@ -3959,7 +4088,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3959
4088
  baseOptions = configuration.baseOptions;
3960
4089
  }
3961
4090
 
3962
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4091
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3963
4092
  const localVarHeaderParameter = {} as any;
3964
4093
  const localVarQueryParameter = {} as any;
3965
4094
 
@@ -3970,10 +4099,6 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3970
4099
  // authentication api-key required
3971
4100
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3972
4101
 
3973
- if (project !== undefined) {
3974
- localVarQueryParameter['project'] = project;
3975
- }
3976
-
3977
4102
 
3978
4103
 
3979
4104
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -3981,74 +4106,458 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3981
4106
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3982
4107
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3983
4108
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3984
- localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformRequest, localVarRequestOptions, configuration)
4109
+ localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
3985
4110
 
3986
4111
  return {
3987
4112
  url: toPathString(localVarUrlObj),
3988
4113
  options: localVarRequestOptions,
3989
4114
  };
3990
4115
  },
3991
- }
3992
- };
3993
-
3994
- /**
3995
- * PlatformApi - functional programming interface
3996
- * @export
3997
- */
3998
- export const PlatformApiFp = function(configuration?: Configuration) {
3999
- const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration)
4000
- return {
4001
4116
  /**
4002
- *
4003
- * @summary Get platform details
4004
- * @param {string} project Project unique identifier
4117
+ * Delete an existing client platform domain
4118
+ * @summary Delete a platform client domain
4119
+ * @param {string} domain The domain identifier
4005
4120
  * @param {*} [options] Override http request option.
4006
4121
  * @throws {RequiredError}
4007
4122
  */
4008
- async getPlatform(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>> {
4009
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPlatform(project, options);
4010
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4011
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.getPlatform']?.[localVarOperationServerIndex]?.url;
4012
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
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
+ };
4013
4156
  },
4014
4157
  /**
4015
- *
4016
- * @summary Update platform
4017
- * @param {string} project Project unique identifier
4018
- * @param {UpdatePlatformRequest} updatePlatformRequest
4158
+ * Delete an existing platform domain
4159
+ * @summary Delete a platform domain
4160
+ * @param {string} domain The domain identifier
4019
4161
  * @param {*} [options] Override http request option.
4020
4162
  * @throws {RequiredError}
4021
4163
  */
4022
- async updatePlatform(project: string, updatePlatformRequest: UpdatePlatformRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>> {
4023
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlatform(project, updatePlatformRequest, options);
4024
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4025
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.updatePlatform']?.[localVarOperationServerIndex]?.url;
4026
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4027
- },
4028
- }
4029
- };
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
+ }
4030
4175
 
4031
- /**
4032
- * PlatformApi - factory interface
4033
- * @export
4034
- */
4035
- export const PlatformApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4036
- const localVarFp = PlatformApiFp(configuration)
4037
- return {
4038
- /**
4039
- *
4040
- * @summary Get platform details
4041
- * @param {PlatformApiGetPlatformRequest} requestParameters Request parameters.
4042
- * @param {*} [options] Override http request option.
4043
- * @throws {RequiredError}
4044
- */
4045
- getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
4046
- return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
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
+ };
4047
4197
  },
4048
4198
  /**
4049
4199
  *
4050
- * @summary Update platform
4051
- * @param {PlatformApiUpdatePlatformRequest} requestParameters Request parameters.
4200
+ * @summary Get platform details
4201
+ * @param {string} project Project unique identifier
4202
+ * @param {*} [options] Override http request option.
4203
+ * @throws {RequiredError}
4204
+ */
4205
+ getPlatform: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4206
+ // verify required parameter 'project' is not null or undefined
4207
+ assertParamExists('getPlatform', 'project', project)
4208
+ const localVarPath = `/v1/platform`;
4209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4210
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4211
+ let baseOptions;
4212
+ if (configuration) {
4213
+ baseOptions = configuration.baseOptions;
4214
+ }
4215
+
4216
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4217
+ const localVarHeaderParameter = {} as any;
4218
+ const localVarQueryParameter = {} as any;
4219
+
4220
+ // authentication session-oauth required
4221
+ // oauth required
4222
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4223
+
4224
+ // authentication api-key required
4225
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4226
+
4227
+ if (project !== undefined) {
4228
+ localVarQueryParameter['project'] = project;
4229
+ }
4230
+
4231
+
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
+
4307
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4309
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4310
+
4311
+ return {
4312
+ url: toPathString(localVarUrlObj),
4313
+ options: localVarRequestOptions,
4314
+ };
4315
+ },
4316
+ /**
4317
+ *
4318
+ * @summary Update platform
4319
+ * @param {string} project Project unique identifier
4320
+ * @param {UpdatePlatformRequest} updatePlatformRequest
4321
+ * @param {*} [options] Override http request option.
4322
+ * @throws {RequiredError}
4323
+ */
4324
+ updatePlatform: async (project: string, updatePlatformRequest: UpdatePlatformRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4325
+ // verify required parameter 'project' is not null or undefined
4326
+ assertParamExists('updatePlatform', 'project', project)
4327
+ // verify required parameter 'updatePlatformRequest' is not null or undefined
4328
+ assertParamExists('updatePlatform', 'updatePlatformRequest', updatePlatformRequest)
4329
+ const localVarPath = `/v1/platform`;
4330
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4331
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4332
+ let baseOptions;
4333
+ if (configuration) {
4334
+ baseOptions = configuration.baseOptions;
4335
+ }
4336
+
4337
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4338
+ const localVarHeaderParameter = {} as any;
4339
+ const localVarQueryParameter = {} as any;
4340
+
4341
+ // authentication session-oauth required
4342
+ // oauth required
4343
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4344
+
4345
+ // authentication api-key required
4346
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4347
+
4348
+ if (project !== undefined) {
4349
+ localVarQueryParameter['project'] = project;
4350
+ }
4351
+
4352
+
4353
+
4354
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4355
+
4356
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4357
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4358
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4359
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformRequest, localVarRequestOptions, configuration)
4360
+
4361
+ return {
4362
+ url: toPathString(localVarUrlObj),
4363
+ options: localVarRequestOptions,
4364
+ };
4365
+ },
4366
+ }
4367
+ };
4368
+
4369
+ /**
4370
+ * PlatformApi - functional programming interface
4371
+ * @export
4372
+ */
4373
+ export const PlatformApiFp = function(configuration?: Configuration) {
4374
+ const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration)
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
+ },
4428
+ /**
4429
+ *
4430
+ * @summary Get platform details
4431
+ * @param {string} project Project unique identifier
4432
+ * @param {*} [options] Override http request option.
4433
+ * @throws {RequiredError}
4434
+ */
4435
+ async getPlatform(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>> {
4436
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlatform(project, options);
4437
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4438
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.getPlatform']?.[localVarOperationServerIndex]?.url;
4439
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
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
+ },
4465
+ /**
4466
+ *
4467
+ * @summary Update platform
4468
+ * @param {string} project Project unique identifier
4469
+ * @param {UpdatePlatformRequest} updatePlatformRequest
4470
+ * @param {*} [options] Override http request option.
4471
+ * @throws {RequiredError}
4472
+ */
4473
+ async updatePlatform(project: string, updatePlatformRequest: UpdatePlatformRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>> {
4474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlatform(project, updatePlatformRequest, options);
4475
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4476
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.updatePlatform']?.[localVarOperationServerIndex]?.url;
4477
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4478
+ },
4479
+ }
4480
+ };
4481
+
4482
+ /**
4483
+ * PlatformApi - factory interface
4484
+ * @export
4485
+ */
4486
+ export const PlatformApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4487
+ const localVarFp = PlatformApiFp(configuration)
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
+ },
4529
+ /**
4530
+ *
4531
+ * @summary Get platform details
4532
+ * @param {PlatformApiGetPlatformRequest} requestParameters Request parameters.
4533
+ * @param {*} [options] Override http request option.
4534
+ * @throws {RequiredError}
4535
+ */
4536
+ getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
4537
+ return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
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
+ },
4557
+ /**
4558
+ *
4559
+ * @summary Update platform
4560
+ * @param {PlatformApiUpdatePlatformRequest} requestParameters Request parameters.
4052
4561
  * @param {*} [options] Override http request option.
4053
4562
  * @throws {RequiredError}
4054
4563
  */
@@ -4058,6 +4567,62 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
4058
4567
  };
4059
4568
  };
4060
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
+
4061
4626
  /**
4062
4627
  * Request parameters for getPlatform operation in PlatformApi.
4063
4628
  * @export
@@ -4100,6 +4665,54 @@ export interface PlatformApiUpdatePlatformRequest {
4100
4665
  * @extends {BaseAPI}
4101
4666
  */
4102
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
+
4103
4716
  /**
4104
4717
  *
4105
4718
  * @summary Get platform details
@@ -4112,6 +4725,28 @@ export class PlatformApi extends BaseAPI {
4112
4725
  return PlatformApiFp(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4113
4726
  }
4114
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
+
4115
4750
  /**
4116
4751
  *
4117
4752
  * @summary Update platform
@@ -4736,3 +5371,266 @@ export class ReviewsApi extends BaseAPI {
4736
5371
 
4737
5372
 
4738
5373
 
5374
+ /**
5375
+ * TermsApi - axios parameter creator
5376
+ * @export
5377
+ */
5378
+ export const TermsApiAxiosParamCreator = function (configuration?: Configuration) {
5379
+ return {
5380
+ /**
5381
+ *
5382
+ * @summary Get the platform\'s terms
5383
+ * @param {string} project Project unique identifier
5384
+ * @param {string} platformId The platform identifier
5385
+ * @param {*} [options] Override http request option.
5386
+ * @throws {RequiredError}
5387
+ */
5388
+ getTerms: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5389
+ // verify required parameter 'project' is not null or undefined
5390
+ assertParamExists('getTerms', 'project', project)
5391
+ // verify required parameter 'platformId' is not null or undefined
5392
+ assertParamExists('getTerms', 'platformId', platformId)
5393
+ const localVarPath = `/v1/platform/{platformId}/terms`
5394
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
5395
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5396
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5397
+ let baseOptions;
5398
+ if (configuration) {
5399
+ baseOptions = configuration.baseOptions;
5400
+ }
5401
+
5402
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5403
+ const localVarHeaderParameter = {} as any;
5404
+ const localVarQueryParameter = {} as any;
5405
+
5406
+ // authentication session-oauth required
5407
+ // oauth required
5408
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
5409
+
5410
+ // authentication api-key required
5411
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5412
+
5413
+ if (project !== undefined) {
5414
+ localVarQueryParameter['project'] = project;
5415
+ }
5416
+
5417
+
5418
+
5419
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5421
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5422
+
5423
+ return {
5424
+ url: toPathString(localVarUrlObj),
5425
+ options: localVarRequestOptions,
5426
+ };
5427
+ },
5428
+ /**
5429
+ *
5430
+ * @summary Save the platform\'s terms
5431
+ * @param {string} project Project unique identifier
5432
+ * @param {string} platformId The platform identifier
5433
+ * @param {SaveTermsRequest} saveTermsRequest Save terms
5434
+ * @param {*} [options] Override http request option.
5435
+ * @throws {RequiredError}
5436
+ */
5437
+ saveTerms: async (project: string, platformId: string, saveTermsRequest: SaveTermsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5438
+ // verify required parameter 'project' is not null or undefined
5439
+ assertParamExists('saveTerms', 'project', project)
5440
+ // verify required parameter 'platformId' is not null or undefined
5441
+ assertParamExists('saveTerms', 'platformId', platformId)
5442
+ // verify required parameter 'saveTermsRequest' is not null or undefined
5443
+ assertParamExists('saveTerms', 'saveTermsRequest', saveTermsRequest)
5444
+ const localVarPath = `/v1/platform/{platformId}/terms`
5445
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
5446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5447
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5448
+ let baseOptions;
5449
+ if (configuration) {
5450
+ baseOptions = configuration.baseOptions;
5451
+ }
5452
+
5453
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5454
+ const localVarHeaderParameter = {} as any;
5455
+ const localVarQueryParameter = {} as any;
5456
+
5457
+ // authentication session-oauth required
5458
+ // oauth required
5459
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
5460
+
5461
+ // authentication api-key required
5462
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5463
+
5464
+ if (project !== undefined) {
5465
+ localVarQueryParameter['project'] = project;
5466
+ }
5467
+
5468
+
5469
+
5470
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5471
+
5472
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5473
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5474
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5475
+ localVarRequestOptions.data = serializeDataIfNeeded(saveTermsRequest, localVarRequestOptions, configuration)
5476
+
5477
+ return {
5478
+ url: toPathString(localVarUrlObj),
5479
+ options: localVarRequestOptions,
5480
+ };
5481
+ },
5482
+ }
5483
+ };
5484
+
5485
+ /**
5486
+ * TermsApi - functional programming interface
5487
+ * @export
5488
+ */
5489
+ export const TermsApiFp = function(configuration?: Configuration) {
5490
+ const localVarAxiosParamCreator = TermsApiAxiosParamCreator(configuration)
5491
+ return {
5492
+ /**
5493
+ *
5494
+ * @summary Get the platform\'s terms
5495
+ * @param {string} project Project unique identifier
5496
+ * @param {string} platformId The platform identifier
5497
+ * @param {*} [options] Override http request option.
5498
+ * @throws {RequiredError}
5499
+ */
5500
+ async getTerms(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Terms>> {
5501
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTerms(project, platformId, options);
5502
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5503
+ const localVarOperationServerBasePath = operationServerMap['TermsApi.getTerms']?.[localVarOperationServerIndex]?.url;
5504
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5505
+ },
5506
+ /**
5507
+ *
5508
+ * @summary Save the platform\'s terms
5509
+ * @param {string} project Project unique identifier
5510
+ * @param {string} platformId The platform identifier
5511
+ * @param {SaveTermsRequest} saveTermsRequest Save terms
5512
+ * @param {*} [options] Override http request option.
5513
+ * @throws {RequiredError}
5514
+ */
5515
+ async saveTerms(project: string, platformId: string, saveTermsRequest: SaveTermsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Terms>> {
5516
+ const localVarAxiosArgs = await localVarAxiosParamCreator.saveTerms(project, platformId, saveTermsRequest, options);
5517
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5518
+ const localVarOperationServerBasePath = operationServerMap['TermsApi.saveTerms']?.[localVarOperationServerIndex]?.url;
5519
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5520
+ },
5521
+ }
5522
+ };
5523
+
5524
+ /**
5525
+ * TermsApi - factory interface
5526
+ * @export
5527
+ */
5528
+ export const TermsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5529
+ const localVarFp = TermsApiFp(configuration)
5530
+ return {
5531
+ /**
5532
+ *
5533
+ * @summary Get the platform\'s terms
5534
+ * @param {TermsApiGetTermsRequest} requestParameters Request parameters.
5535
+ * @param {*} [options] Override http request option.
5536
+ * @throws {RequiredError}
5537
+ */
5538
+ getTerms(requestParameters: TermsApiGetTermsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Terms> {
5539
+ return localVarFp.getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
5540
+ },
5541
+ /**
5542
+ *
5543
+ * @summary Save the platform\'s terms
5544
+ * @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
5545
+ * @param {*} [options] Override http request option.
5546
+ * @throws {RequiredError}
5547
+ */
5548
+ saveTerms(requestParameters: TermsApiSaveTermsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Terms> {
5549
+ return localVarFp.saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(axios, basePath));
5550
+ },
5551
+ };
5552
+ };
5553
+
5554
+ /**
5555
+ * Request parameters for getTerms operation in TermsApi.
5556
+ * @export
5557
+ * @interface TermsApiGetTermsRequest
5558
+ */
5559
+ export interface TermsApiGetTermsRequest {
5560
+ /**
5561
+ * Project unique identifier
5562
+ * @type {string}
5563
+ * @memberof TermsApiGetTerms
5564
+ */
5565
+ readonly project: string
5566
+
5567
+ /**
5568
+ * The platform identifier
5569
+ * @type {string}
5570
+ * @memberof TermsApiGetTerms
5571
+ */
5572
+ readonly platformId: string
5573
+ }
5574
+
5575
+ /**
5576
+ * Request parameters for saveTerms operation in TermsApi.
5577
+ * @export
5578
+ * @interface TermsApiSaveTermsRequest
5579
+ */
5580
+ export interface TermsApiSaveTermsRequest {
5581
+ /**
5582
+ * Project unique identifier
5583
+ * @type {string}
5584
+ * @memberof TermsApiSaveTerms
5585
+ */
5586
+ readonly project: string
5587
+
5588
+ /**
5589
+ * The platform identifier
5590
+ * @type {string}
5591
+ * @memberof TermsApiSaveTerms
5592
+ */
5593
+ readonly platformId: string
5594
+
5595
+ /**
5596
+ * Save terms
5597
+ * @type {SaveTermsRequest}
5598
+ * @memberof TermsApiSaveTerms
5599
+ */
5600
+ readonly saveTermsRequest: SaveTermsRequest
5601
+ }
5602
+
5603
+ /**
5604
+ * TermsApi - object-oriented interface
5605
+ * @export
5606
+ * @class TermsApi
5607
+ * @extends {BaseAPI}
5608
+ */
5609
+ export class TermsApi extends BaseAPI {
5610
+ /**
5611
+ *
5612
+ * @summary Get the platform\'s terms
5613
+ * @param {TermsApiGetTermsRequest} requestParameters Request parameters.
5614
+ * @param {*} [options] Override http request option.
5615
+ * @throws {RequiredError}
5616
+ * @memberof TermsApi
5617
+ */
5618
+ public getTerms(requestParameters: TermsApiGetTermsRequest, options?: RawAxiosRequestConfig) {
5619
+ return TermsApiFp(this.configuration).getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
5620
+ }
5621
+
5622
+ /**
5623
+ *
5624
+ * @summary Save the platform\'s terms
5625
+ * @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
5626
+ * @param {*} [options] Override http request option.
5627
+ * @throws {RequiredError}
5628
+ * @memberof TermsApi
5629
+ */
5630
+ public saveTerms(requestParameters: TermsApiSaveTermsRequest, options?: RawAxiosRequestConfig) {
5631
+ return TermsApiFp(this.configuration).saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(this.axios, this.basePath));
5632
+ }
5633
+ }
5634
+
5635
+
5636
+