flexinet-api 0.0.735-prerelease0 → 0.0.736-prerelease0
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 +2 -2
- package/api.ts +262 -140
- package/dist/api.d.ts +138 -66
- package/dist/api.js +233 -131
- package/dist/esm/api.d.ts +138 -66
- package/dist/esm/api.js +226 -128
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.736-prerelease0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install flexinet-api@0.0.
|
|
39
|
+
npm install flexinet-api@0.0.736-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -2937,6 +2937,19 @@ export const TagValidatorType = {
|
|
|
2937
2937
|
export type TagValidatorType = typeof TagValidatorType[keyof typeof TagValidatorType];
|
|
2938
2938
|
|
|
2939
2939
|
|
|
2940
|
+
/**
|
|
2941
|
+
*
|
|
2942
|
+
* @export
|
|
2943
|
+
* @interface TagsBulkCreationRequest
|
|
2944
|
+
*/
|
|
2945
|
+
export interface TagsBulkCreationRequest {
|
|
2946
|
+
/**
|
|
2947
|
+
*
|
|
2948
|
+
* @type {Array<TagCreationRequest>}
|
|
2949
|
+
* @memberof TagsBulkCreationRequest
|
|
2950
|
+
*/
|
|
2951
|
+
'tags': Array<TagCreationRequest>;
|
|
2952
|
+
}
|
|
2940
2953
|
/**
|
|
2941
2954
|
*
|
|
2942
2955
|
* @export
|
|
@@ -4250,6 +4263,255 @@ export class BalanceApi extends BaseAPI {
|
|
|
4250
4263
|
|
|
4251
4264
|
|
|
4252
4265
|
|
|
4266
|
+
/**
|
|
4267
|
+
* BulkApi - axios parameter creator
|
|
4268
|
+
* @export
|
|
4269
|
+
*/
|
|
4270
|
+
export const BulkApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4271
|
+
return {
|
|
4272
|
+
/**
|
|
4273
|
+
* Create multiple clients
|
|
4274
|
+
* @summary Create multiple clients
|
|
4275
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4276
|
+
* @param {*} [options] Override http request option.
|
|
4277
|
+
* @throws {RequiredError}
|
|
4278
|
+
*/
|
|
4279
|
+
bulkCreateClients: async (clientsBulkCreationRequest?: ClientsBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4280
|
+
const localVarPath = `/admins/clients/bulk`;
|
|
4281
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4282
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4283
|
+
let baseOptions;
|
|
4284
|
+
if (configuration) {
|
|
4285
|
+
baseOptions = configuration.baseOptions;
|
|
4286
|
+
}
|
|
4287
|
+
|
|
4288
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4289
|
+
const localVarHeaderParameter = {} as any;
|
|
4290
|
+
const localVarQueryParameter = {} as any;
|
|
4291
|
+
|
|
4292
|
+
// authentication ApiKeyAuth required
|
|
4293
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
4294
|
+
|
|
4295
|
+
|
|
4296
|
+
|
|
4297
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4298
|
+
|
|
4299
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4301
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4302
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkCreationRequest, localVarRequestOptions, configuration)
|
|
4303
|
+
|
|
4304
|
+
return {
|
|
4305
|
+
url: toPathString(localVarUrlObj),
|
|
4306
|
+
options: localVarRequestOptions,
|
|
4307
|
+
};
|
|
4308
|
+
},
|
|
4309
|
+
/**
|
|
4310
|
+
* Create multiple products
|
|
4311
|
+
* @summary Create multiple products
|
|
4312
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4313
|
+
* @param {*} [options] Override http request option.
|
|
4314
|
+
* @throws {RequiredError}
|
|
4315
|
+
*/
|
|
4316
|
+
bulkCreateProducts: async (productBulkCreationRequest?: ProductBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4317
|
+
const localVarPath = `/admins/products/bulk`;
|
|
4318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4319
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4320
|
+
let baseOptions;
|
|
4321
|
+
if (configuration) {
|
|
4322
|
+
baseOptions = configuration.baseOptions;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4326
|
+
const localVarHeaderParameter = {} as any;
|
|
4327
|
+
const localVarQueryParameter = {} as any;
|
|
4328
|
+
|
|
4329
|
+
// authentication ApiKeyAuth required
|
|
4330
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4335
|
+
|
|
4336
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4337
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4338
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4339
|
+
localVarRequestOptions.data = serializeDataIfNeeded(productBulkCreationRequest, localVarRequestOptions, configuration)
|
|
4340
|
+
|
|
4341
|
+
return {
|
|
4342
|
+
url: toPathString(localVarUrlObj),
|
|
4343
|
+
options: localVarRequestOptions,
|
|
4344
|
+
};
|
|
4345
|
+
},
|
|
4346
|
+
/**
|
|
4347
|
+
* Create multiple tags
|
|
4348
|
+
* @summary Create multiple tags
|
|
4349
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
4350
|
+
* @param {*} [options] Override http request option.
|
|
4351
|
+
* @throws {RequiredError}
|
|
4352
|
+
*/
|
|
4353
|
+
bulkCreateTags: async (tagsBulkCreationRequest?: TagsBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4354
|
+
const localVarPath = `/admins/tags/bulk`;
|
|
4355
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4356
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4357
|
+
let baseOptions;
|
|
4358
|
+
if (configuration) {
|
|
4359
|
+
baseOptions = configuration.baseOptions;
|
|
4360
|
+
}
|
|
4361
|
+
|
|
4362
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4363
|
+
const localVarHeaderParameter = {} as any;
|
|
4364
|
+
const localVarQueryParameter = {} as any;
|
|
4365
|
+
|
|
4366
|
+
// authentication ApiKeyAuth required
|
|
4367
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
4368
|
+
|
|
4369
|
+
|
|
4370
|
+
|
|
4371
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4372
|
+
|
|
4373
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4374
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4375
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4376
|
+
localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
|
|
4377
|
+
|
|
4378
|
+
return {
|
|
4379
|
+
url: toPathString(localVarUrlObj),
|
|
4380
|
+
options: localVarRequestOptions,
|
|
4381
|
+
};
|
|
4382
|
+
},
|
|
4383
|
+
}
|
|
4384
|
+
};
|
|
4385
|
+
|
|
4386
|
+
/**
|
|
4387
|
+
* BulkApi - functional programming interface
|
|
4388
|
+
* @export
|
|
4389
|
+
*/
|
|
4390
|
+
export const BulkApiFp = function(configuration?: Configuration) {
|
|
4391
|
+
const localVarAxiosParamCreator = BulkApiAxiosParamCreator(configuration)
|
|
4392
|
+
return {
|
|
4393
|
+
/**
|
|
4394
|
+
* Create multiple clients
|
|
4395
|
+
* @summary Create multiple clients
|
|
4396
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4397
|
+
* @param {*} [options] Override http request option.
|
|
4398
|
+
* @throws {RequiredError}
|
|
4399
|
+
*/
|
|
4400
|
+
async bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
|
|
4401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
|
|
4402
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4403
|
+
},
|
|
4404
|
+
/**
|
|
4405
|
+
* Create multiple products
|
|
4406
|
+
* @summary Create multiple products
|
|
4407
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4408
|
+
* @param {*} [options] Override http request option.
|
|
4409
|
+
* @throws {RequiredError}
|
|
4410
|
+
*/
|
|
4411
|
+
async bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
|
|
4412
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateProducts(productBulkCreationRequest, options);
|
|
4413
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4414
|
+
},
|
|
4415
|
+
/**
|
|
4416
|
+
* Create multiple tags
|
|
4417
|
+
* @summary Create multiple tags
|
|
4418
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
4419
|
+
* @param {*} [options] Override http request option.
|
|
4420
|
+
* @throws {RequiredError}
|
|
4421
|
+
*/
|
|
4422
|
+
async bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagDetailed>>> {
|
|
4423
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
|
|
4424
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4425
|
+
},
|
|
4426
|
+
}
|
|
4427
|
+
};
|
|
4428
|
+
|
|
4429
|
+
/**
|
|
4430
|
+
* BulkApi - factory interface
|
|
4431
|
+
* @export
|
|
4432
|
+
*/
|
|
4433
|
+
export const BulkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4434
|
+
const localVarFp = BulkApiFp(configuration)
|
|
4435
|
+
return {
|
|
4436
|
+
/**
|
|
4437
|
+
* Create multiple clients
|
|
4438
|
+
* @summary Create multiple clients
|
|
4439
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4440
|
+
* @param {*} [options] Override http request option.
|
|
4441
|
+
* @throws {RequiredError}
|
|
4442
|
+
*/
|
|
4443
|
+
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: any): AxiosPromise<Array<Client>> {
|
|
4444
|
+
return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
4445
|
+
},
|
|
4446
|
+
/**
|
|
4447
|
+
* Create multiple products
|
|
4448
|
+
* @summary Create multiple products
|
|
4449
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4450
|
+
* @param {*} [options] Override http request option.
|
|
4451
|
+
* @throws {RequiredError}
|
|
4452
|
+
*/
|
|
4453
|
+
bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: any): AxiosPromise<Array<Product>> {
|
|
4454
|
+
return localVarFp.bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
4455
|
+
},
|
|
4456
|
+
/**
|
|
4457
|
+
* Create multiple tags
|
|
4458
|
+
* @summary Create multiple tags
|
|
4459
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
4460
|
+
* @param {*} [options] Override http request option.
|
|
4461
|
+
* @throws {RequiredError}
|
|
4462
|
+
*/
|
|
4463
|
+
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
|
|
4464
|
+
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
4465
|
+
},
|
|
4466
|
+
};
|
|
4467
|
+
};
|
|
4468
|
+
|
|
4469
|
+
/**
|
|
4470
|
+
* BulkApi - object-oriented interface
|
|
4471
|
+
* @export
|
|
4472
|
+
* @class BulkApi
|
|
4473
|
+
* @extends {BaseAPI}
|
|
4474
|
+
*/
|
|
4475
|
+
export class BulkApi extends BaseAPI {
|
|
4476
|
+
/**
|
|
4477
|
+
* Create multiple clients
|
|
4478
|
+
* @summary Create multiple clients
|
|
4479
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4480
|
+
* @param {*} [options] Override http request option.
|
|
4481
|
+
* @throws {RequiredError}
|
|
4482
|
+
* @memberof BulkApi
|
|
4483
|
+
*/
|
|
4484
|
+
public bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig) {
|
|
4485
|
+
return BulkApiFp(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4488
|
+
/**
|
|
4489
|
+
* Create multiple products
|
|
4490
|
+
* @summary Create multiple products
|
|
4491
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4492
|
+
* @param {*} [options] Override http request option.
|
|
4493
|
+
* @throws {RequiredError}
|
|
4494
|
+
* @memberof BulkApi
|
|
4495
|
+
*/
|
|
4496
|
+
public bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig) {
|
|
4497
|
+
return BulkApiFp(this.configuration).bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4498
|
+
}
|
|
4499
|
+
|
|
4500
|
+
/**
|
|
4501
|
+
* Create multiple tags
|
|
4502
|
+
* @summary Create multiple tags
|
|
4503
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
4504
|
+
* @param {*} [options] Override http request option.
|
|
4505
|
+
* @throws {RequiredError}
|
|
4506
|
+
* @memberof BulkApi
|
|
4507
|
+
*/
|
|
4508
|
+
public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
|
|
4509
|
+
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4510
|
+
}
|
|
4511
|
+
}
|
|
4512
|
+
|
|
4513
|
+
|
|
4514
|
+
|
|
4253
4515
|
/**
|
|
4254
4516
|
* CategoryApi - axios parameter creator
|
|
4255
4517
|
* @export
|
|
@@ -4363,43 +4625,6 @@ export class CategoryApi extends BaseAPI {
|
|
|
4363
4625
|
*/
|
|
4364
4626
|
export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4365
4627
|
return {
|
|
4366
|
-
/**
|
|
4367
|
-
* Create multiple clients
|
|
4368
|
-
* @summary Create multiple clients
|
|
4369
|
-
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4370
|
-
* @param {*} [options] Override http request option.
|
|
4371
|
-
* @throws {RequiredError}
|
|
4372
|
-
*/
|
|
4373
|
-
bulkCreateClients: async (clientsBulkCreationRequest?: ClientsBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4374
|
-
const localVarPath = `/admins/clients/bulk`;
|
|
4375
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4376
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4377
|
-
let baseOptions;
|
|
4378
|
-
if (configuration) {
|
|
4379
|
-
baseOptions = configuration.baseOptions;
|
|
4380
|
-
}
|
|
4381
|
-
|
|
4382
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4383
|
-
const localVarHeaderParameter = {} as any;
|
|
4384
|
-
const localVarQueryParameter = {} as any;
|
|
4385
|
-
|
|
4386
|
-
// authentication ApiKeyAuth required
|
|
4387
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4392
|
-
|
|
4393
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4394
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4395
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4396
|
-
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkCreationRequest, localVarRequestOptions, configuration)
|
|
4397
|
-
|
|
4398
|
-
return {
|
|
4399
|
-
url: toPathString(localVarUrlObj),
|
|
4400
|
-
options: localVarRequestOptions,
|
|
4401
|
-
};
|
|
4402
|
-
},
|
|
4403
4628
|
/**
|
|
4404
4629
|
* Create a new client
|
|
4405
4630
|
* @summary Create client
|
|
@@ -4594,17 +4819,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4594
4819
|
export const ClientApiFp = function(configuration?: Configuration) {
|
|
4595
4820
|
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
|
|
4596
4821
|
return {
|
|
4597
|
-
/**
|
|
4598
|
-
* Create multiple clients
|
|
4599
|
-
* @summary Create multiple clients
|
|
4600
|
-
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4601
|
-
* @param {*} [options] Override http request option.
|
|
4602
|
-
* @throws {RequiredError}
|
|
4603
|
-
*/
|
|
4604
|
-
async bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
|
|
4605
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
|
|
4606
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4607
|
-
},
|
|
4608
4822
|
/**
|
|
4609
4823
|
* Create a new client
|
|
4610
4824
|
* @summary Create client
|
|
@@ -4664,16 +4878,6 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
4664
4878
|
export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4665
4879
|
const localVarFp = ClientApiFp(configuration)
|
|
4666
4880
|
return {
|
|
4667
|
-
/**
|
|
4668
|
-
* Create multiple clients
|
|
4669
|
-
* @summary Create multiple clients
|
|
4670
|
-
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4671
|
-
* @param {*} [options] Override http request option.
|
|
4672
|
-
* @throws {RequiredError}
|
|
4673
|
-
*/
|
|
4674
|
-
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: any): AxiosPromise<Array<Client>> {
|
|
4675
|
-
return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
4676
|
-
},
|
|
4677
4881
|
/**
|
|
4678
4882
|
* Create a new client
|
|
4679
4883
|
* @summary Create client
|
|
@@ -4729,18 +4933,6 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
|
4729
4933
|
* @extends {BaseAPI}
|
|
4730
4934
|
*/
|
|
4731
4935
|
export class ClientApi extends BaseAPI {
|
|
4732
|
-
/**
|
|
4733
|
-
* Create multiple clients
|
|
4734
|
-
* @summary Create multiple clients
|
|
4735
|
-
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4736
|
-
* @param {*} [options] Override http request option.
|
|
4737
|
-
* @throws {RequiredError}
|
|
4738
|
-
* @memberof ClientApi
|
|
4739
|
-
*/
|
|
4740
|
-
public bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig) {
|
|
4741
|
-
return ClientApiFp(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4742
|
-
}
|
|
4743
|
-
|
|
4744
4936
|
/**
|
|
4745
4937
|
* Create a new client
|
|
4746
4938
|
* @summary Create client
|
|
@@ -6670,43 +6862,6 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
6670
6862
|
options: localVarRequestOptions,
|
|
6671
6863
|
};
|
|
6672
6864
|
},
|
|
6673
|
-
/**
|
|
6674
|
-
* Create multiple products
|
|
6675
|
-
* @summary Create multiple products
|
|
6676
|
-
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
6677
|
-
* @param {*} [options] Override http request option.
|
|
6678
|
-
* @throws {RequiredError}
|
|
6679
|
-
*/
|
|
6680
|
-
bulkCreateProducts: async (productBulkCreationRequest?: ProductBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6681
|
-
const localVarPath = `/admins/products/bulk`;
|
|
6682
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6683
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6684
|
-
let baseOptions;
|
|
6685
|
-
if (configuration) {
|
|
6686
|
-
baseOptions = configuration.baseOptions;
|
|
6687
|
-
}
|
|
6688
|
-
|
|
6689
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6690
|
-
const localVarHeaderParameter = {} as any;
|
|
6691
|
-
const localVarQueryParameter = {} as any;
|
|
6692
|
-
|
|
6693
|
-
// authentication ApiKeyAuth required
|
|
6694
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6699
|
-
|
|
6700
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6701
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6702
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6703
|
-
localVarRequestOptions.data = serializeDataIfNeeded(productBulkCreationRequest, localVarRequestOptions, configuration)
|
|
6704
|
-
|
|
6705
|
-
return {
|
|
6706
|
-
url: toPathString(localVarUrlObj),
|
|
6707
|
-
options: localVarRequestOptions,
|
|
6708
|
-
};
|
|
6709
|
-
},
|
|
6710
6865
|
/**
|
|
6711
6866
|
* Create a new product
|
|
6712
6867
|
* @summary Create a new product
|
|
@@ -7182,17 +7337,6 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
7182
7337
|
const localVarAxiosArgs = await localVarAxiosParamCreator.approveProduct(id, productRequestApprovalRequest, options);
|
|
7183
7338
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7184
7339
|
},
|
|
7185
|
-
/**
|
|
7186
|
-
* Create multiple products
|
|
7187
|
-
* @summary Create multiple products
|
|
7188
|
-
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
7189
|
-
* @param {*} [options] Override http request option.
|
|
7190
|
-
* @throws {RequiredError}
|
|
7191
|
-
*/
|
|
7192
|
-
async bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
|
|
7193
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateProducts(productBulkCreationRequest, options);
|
|
7194
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7195
|
-
},
|
|
7196
7340
|
/**
|
|
7197
7341
|
* Create a new product
|
|
7198
7342
|
* @summary Create a new product
|
|
@@ -7338,16 +7482,6 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
7338
7482
|
approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: any): AxiosPromise<ProductRequestApprovalResponse> {
|
|
7339
7483
|
return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
|
|
7340
7484
|
},
|
|
7341
|
-
/**
|
|
7342
|
-
* Create multiple products
|
|
7343
|
-
* @summary Create multiple products
|
|
7344
|
-
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
7345
|
-
* @param {*} [options] Override http request option.
|
|
7346
|
-
* @throws {RequiredError}
|
|
7347
|
-
*/
|
|
7348
|
-
bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: any): AxiosPromise<Array<Product>> {
|
|
7349
|
-
return localVarFp.bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
7350
|
-
},
|
|
7351
7485
|
/**
|
|
7352
7486
|
* Create a new product
|
|
7353
7487
|
* @summary Create a new product
|
|
@@ -7485,18 +7619,6 @@ export class ProductApi extends BaseAPI {
|
|
|
7485
7619
|
return ProductApiFp(this.configuration).approveProduct(id, productRequestApprovalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7486
7620
|
}
|
|
7487
7621
|
|
|
7488
|
-
/**
|
|
7489
|
-
* Create multiple products
|
|
7490
|
-
* @summary Create multiple products
|
|
7491
|
-
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
7492
|
-
* @param {*} [options] Override http request option.
|
|
7493
|
-
* @throws {RequiredError}
|
|
7494
|
-
* @memberof ProductApi
|
|
7495
|
-
*/
|
|
7496
|
-
public bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig) {
|
|
7497
|
-
return ProductApiFp(this.configuration).bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7498
|
-
}
|
|
7499
|
-
|
|
7500
7622
|
/**
|
|
7501
7623
|
* Create a new product
|
|
7502
7624
|
* @summary Create a new product
|