flexinet-api 0.0.735-prerelease0 → 0.0.737-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/api.ts CHANGED
@@ -35,7 +35,44 @@ export interface ApiKey {
35
35
  * @memberof ApiKey
36
36
  */
37
37
  'key': string;
38
+ /**
39
+ *
40
+ * @type {ApiKeyKind}
41
+ * @memberof ApiKey
42
+ */
43
+ 'kind': ApiKeyKind;
44
+ }
45
+
46
+
47
+ /**
48
+ *
49
+ * @export
50
+ * @interface ApiKeyCreationRequest
51
+ */
52
+ export interface ApiKeyCreationRequest {
53
+ /**
54
+ *
55
+ * @type {ApiKeyKind}
56
+ * @memberof ApiKeyCreationRequest
57
+ */
58
+ 'kind'?: ApiKeyKind;
38
59
  }
60
+
61
+
62
+ /**
63
+ *
64
+ * @export
65
+ * @enum {string}
66
+ */
67
+
68
+ export const ApiKeyKind = {
69
+ Webhook: 'webhook',
70
+ Api: 'api'
71
+ } as const;
72
+
73
+ export type ApiKeyKind = typeof ApiKeyKind[keyof typeof ApiKeyKind];
74
+
75
+
39
76
  /**
40
77
  *
41
78
  * @export
@@ -420,12 +457,6 @@ export interface CallbackOrder {
420
457
  * @memberof CallbackOrder
421
458
  */
422
459
  'id': string;
423
- /**
424
- *
425
- * @type {string}
426
- * @memberof CallbackOrder
427
- */
428
- 'status': string;
429
460
  /**
430
461
  *
431
462
  * @type {WebhookKind}
@@ -865,6 +896,19 @@ export interface FeaturesResponse {
865
896
  */
866
897
  'features': Array<Feature>;
867
898
  }
899
+ /**
900
+ *
901
+ * @export
902
+ * @interface GenerateApiKeyRequest
903
+ */
904
+ export interface GenerateApiKeyRequest {
905
+ /**
906
+ *
907
+ * @type {ApiKeyCreationRequest}
908
+ * @memberof GenerateApiKeyRequest
909
+ */
910
+ 'tag'?: ApiKeyCreationRequest;
911
+ }
868
912
  /**
869
913
  *
870
914
  * @export
@@ -2937,6 +2981,19 @@ export const TagValidatorType = {
2937
2981
  export type TagValidatorType = typeof TagValidatorType[keyof typeof TagValidatorType];
2938
2982
 
2939
2983
 
2984
+ /**
2985
+ *
2986
+ * @export
2987
+ * @interface TagsBulkCreationRequest
2988
+ */
2989
+ export interface TagsBulkCreationRequest {
2990
+ /**
2991
+ *
2992
+ * @type {Array<TagCreationRequest>}
2993
+ * @memberof TagsBulkCreationRequest
2994
+ */
2995
+ 'tags': Array<TagCreationRequest>;
2996
+ }
2940
2997
  /**
2941
2998
  *
2942
2999
  * @export
@@ -4250,6 +4307,255 @@ export class BalanceApi extends BaseAPI {
4250
4307
 
4251
4308
 
4252
4309
 
4310
+ /**
4311
+ * BulkApi - axios parameter creator
4312
+ * @export
4313
+ */
4314
+ export const BulkApiAxiosParamCreator = function (configuration?: Configuration) {
4315
+ return {
4316
+ /**
4317
+ * Create multiple clients
4318
+ * @summary Create multiple clients
4319
+ * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
4320
+ * @param {*} [options] Override http request option.
4321
+ * @throws {RequiredError}
4322
+ */
4323
+ bulkCreateClients: async (clientsBulkCreationRequest?: ClientsBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4324
+ const localVarPath = `/admins/clients/bulk`;
4325
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4326
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4327
+ let baseOptions;
4328
+ if (configuration) {
4329
+ baseOptions = configuration.baseOptions;
4330
+ }
4331
+
4332
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4333
+ const localVarHeaderParameter = {} as any;
4334
+ const localVarQueryParameter = {} as any;
4335
+
4336
+ // authentication ApiKeyAuth required
4337
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
4338
+
4339
+
4340
+
4341
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4342
+
4343
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4345
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4346
+ localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkCreationRequest, localVarRequestOptions, configuration)
4347
+
4348
+ return {
4349
+ url: toPathString(localVarUrlObj),
4350
+ options: localVarRequestOptions,
4351
+ };
4352
+ },
4353
+ /**
4354
+ * Create multiple products
4355
+ * @summary Create multiple products
4356
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
4357
+ * @param {*} [options] Override http request option.
4358
+ * @throws {RequiredError}
4359
+ */
4360
+ bulkCreateProducts: async (productBulkCreationRequest?: ProductBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4361
+ const localVarPath = `/admins/products/bulk`;
4362
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4363
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4364
+ let baseOptions;
4365
+ if (configuration) {
4366
+ baseOptions = configuration.baseOptions;
4367
+ }
4368
+
4369
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4370
+ const localVarHeaderParameter = {} as any;
4371
+ const localVarQueryParameter = {} as any;
4372
+
4373
+ // authentication ApiKeyAuth required
4374
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
4375
+
4376
+
4377
+
4378
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4379
+
4380
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4382
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4383
+ localVarRequestOptions.data = serializeDataIfNeeded(productBulkCreationRequest, localVarRequestOptions, configuration)
4384
+
4385
+ return {
4386
+ url: toPathString(localVarUrlObj),
4387
+ options: localVarRequestOptions,
4388
+ };
4389
+ },
4390
+ /**
4391
+ * Create multiple tags
4392
+ * @summary Create multiple tags
4393
+ * @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
4394
+ * @param {*} [options] Override http request option.
4395
+ * @throws {RequiredError}
4396
+ */
4397
+ bulkCreateTags: async (tagsBulkCreationRequest?: TagsBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4398
+ const localVarPath = `/admins/tags/bulk`;
4399
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4400
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4401
+ let baseOptions;
4402
+ if (configuration) {
4403
+ baseOptions = configuration.baseOptions;
4404
+ }
4405
+
4406
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4407
+ const localVarHeaderParameter = {} as any;
4408
+ const localVarQueryParameter = {} as any;
4409
+
4410
+ // authentication ApiKeyAuth required
4411
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
4412
+
4413
+
4414
+
4415
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4416
+
4417
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4418
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4419
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4420
+ localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
4421
+
4422
+ return {
4423
+ url: toPathString(localVarUrlObj),
4424
+ options: localVarRequestOptions,
4425
+ };
4426
+ },
4427
+ }
4428
+ };
4429
+
4430
+ /**
4431
+ * BulkApi - functional programming interface
4432
+ * @export
4433
+ */
4434
+ export const BulkApiFp = function(configuration?: Configuration) {
4435
+ const localVarAxiosParamCreator = BulkApiAxiosParamCreator(configuration)
4436
+ return {
4437
+ /**
4438
+ * Create multiple clients
4439
+ * @summary Create multiple clients
4440
+ * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
4441
+ * @param {*} [options] Override http request option.
4442
+ * @throws {RequiredError}
4443
+ */
4444
+ async bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
4445
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
4446
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4447
+ },
4448
+ /**
4449
+ * Create multiple products
4450
+ * @summary Create multiple products
4451
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
4452
+ * @param {*} [options] Override http request option.
4453
+ * @throws {RequiredError}
4454
+ */
4455
+ async bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
4456
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateProducts(productBulkCreationRequest, options);
4457
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4458
+ },
4459
+ /**
4460
+ * Create multiple tags
4461
+ * @summary Create multiple tags
4462
+ * @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
4463
+ * @param {*} [options] Override http request option.
4464
+ * @throws {RequiredError}
4465
+ */
4466
+ async bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagDetailed>>> {
4467
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
4468
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4469
+ },
4470
+ }
4471
+ };
4472
+
4473
+ /**
4474
+ * BulkApi - factory interface
4475
+ * @export
4476
+ */
4477
+ export const BulkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4478
+ const localVarFp = BulkApiFp(configuration)
4479
+ return {
4480
+ /**
4481
+ * Create multiple clients
4482
+ * @summary Create multiple clients
4483
+ * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
4484
+ * @param {*} [options] Override http request option.
4485
+ * @throws {RequiredError}
4486
+ */
4487
+ bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: any): AxiosPromise<Array<Client>> {
4488
+ return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
4489
+ },
4490
+ /**
4491
+ * Create multiple products
4492
+ * @summary Create multiple products
4493
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
4494
+ * @param {*} [options] Override http request option.
4495
+ * @throws {RequiredError}
4496
+ */
4497
+ bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: any): AxiosPromise<Array<Product>> {
4498
+ return localVarFp.bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(axios, basePath));
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
+ */
4507
+ bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
4508
+ return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
4509
+ },
4510
+ };
4511
+ };
4512
+
4513
+ /**
4514
+ * BulkApi - object-oriented interface
4515
+ * @export
4516
+ * @class BulkApi
4517
+ * @extends {BaseAPI}
4518
+ */
4519
+ export class BulkApi extends BaseAPI {
4520
+ /**
4521
+ * Create multiple clients
4522
+ * @summary Create multiple clients
4523
+ * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
4524
+ * @param {*} [options] Override http request option.
4525
+ * @throws {RequiredError}
4526
+ * @memberof BulkApi
4527
+ */
4528
+ public bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig) {
4529
+ return BulkApiFp(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
4530
+ }
4531
+
4532
+ /**
4533
+ * Create multiple products
4534
+ * @summary Create multiple products
4535
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
4536
+ * @param {*} [options] Override http request option.
4537
+ * @throws {RequiredError}
4538
+ * @memberof BulkApi
4539
+ */
4540
+ public bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig) {
4541
+ return BulkApiFp(this.configuration).bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
4542
+ }
4543
+
4544
+ /**
4545
+ * Create multiple tags
4546
+ * @summary Create multiple tags
4547
+ * @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
4548
+ * @param {*} [options] Override http request option.
4549
+ * @throws {RequiredError}
4550
+ * @memberof BulkApi
4551
+ */
4552
+ public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
4553
+ return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
4554
+ }
4555
+ }
4556
+
4557
+
4558
+
4253
4559
  /**
4254
4560
  * CategoryApi - axios parameter creator
4255
4561
  * @export
@@ -4363,43 +4669,6 @@ export class CategoryApi extends BaseAPI {
4363
4669
  */
4364
4670
  export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
4365
4671
  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
4672
  /**
4404
4673
  * Create a new client
4405
4674
  * @summary Create client
@@ -4594,17 +4863,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
4594
4863
  export const ClientApiFp = function(configuration?: Configuration) {
4595
4864
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
4596
4865
  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
4866
  /**
4609
4867
  * Create a new client
4610
4868
  * @summary Create client
@@ -4664,16 +4922,6 @@ export const ClientApiFp = function(configuration?: Configuration) {
4664
4922
  export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4665
4923
  const localVarFp = ClientApiFp(configuration)
4666
4924
  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
4925
  /**
4678
4926
  * Create a new client
4679
4927
  * @summary Create client
@@ -4729,18 +4977,6 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
4729
4977
  * @extends {BaseAPI}
4730
4978
  */
4731
4979
  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
4980
  /**
4745
4981
  * Create a new client
4746
4982
  * @summary Create client
@@ -5349,10 +5585,11 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
5349
5585
  /**
5350
5586
  * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
5351
5587
  * @summary Generate API key for the current tenant
5588
+ * @param {GenerateApiKeyRequest} [generateApiKeyRequest]
5352
5589
  * @param {*} [options] Override http request option.
5353
5590
  * @throws {RequiredError}
5354
5591
  */
5355
- generateApiKey: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5592
+ generateApiKey: async (generateApiKeyRequest?: GenerateApiKeyRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5356
5593
  const localVarPath = `/admins/integrations/apikey`;
5357
5594
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5358
5595
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5371,9 +5608,12 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
5371
5608
 
5372
5609
 
5373
5610
 
5611
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5612
+
5374
5613
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5375
5614
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5376
5615
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5616
+ localVarRequestOptions.data = serializeDataIfNeeded(generateApiKeyRequest, localVarRequestOptions, configuration)
5377
5617
 
5378
5618
  return {
5379
5619
  url: toPathString(localVarUrlObj),
@@ -5449,39 +5689,6 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
5449
5689
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5450
5690
  localVarRequestOptions.data = serializeDataIfNeeded(webhook, localVarRequestOptions, configuration)
5451
5691
 
5452
- return {
5453
- url: toPathString(localVarUrlObj),
5454
- options: localVarRequestOptions,
5455
- };
5456
- },
5457
- /**
5458
- * Test API key security scheme
5459
- * @summary Test API key security scheme
5460
- * @param {*} [options] Override http request option.
5461
- * @throws {RequiredError}
5462
- */
5463
- testApiKey: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5464
- const localVarPath = `/admins/integrations/apikey`;
5465
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5466
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5467
- let baseOptions;
5468
- if (configuration) {
5469
- baseOptions = configuration.baseOptions;
5470
- }
5471
-
5472
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5473
- const localVarHeaderParameter = {} as any;
5474
- const localVarQueryParameter = {} as any;
5475
-
5476
- // authentication ApiKeyAuth required
5477
- await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
5478
-
5479
-
5480
-
5481
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5482
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5483
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5484
-
5485
5692
  return {
5486
5693
  url: toPathString(localVarUrlObj),
5487
5694
  options: localVarRequestOptions,
@@ -5500,11 +5707,12 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
5500
5707
  /**
5501
5708
  * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
5502
5709
  * @summary Generate API key for the current tenant
5710
+ * @param {GenerateApiKeyRequest} [generateApiKeyRequest]
5503
5711
  * @param {*} [options] Override http request option.
5504
5712
  * @throws {RequiredError}
5505
5713
  */
5506
- async generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>> {
5507
- const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(options);
5714
+ async generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>> {
5715
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(generateApiKeyRequest, options);
5508
5716
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5509
5717
  },
5510
5718
  /**
@@ -5528,16 +5736,6 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
5528
5736
  const localVarAxiosArgs = await localVarAxiosParamCreator.setWebhook(webhook, options);
5529
5737
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5530
5738
  },
5531
- /**
5532
- * Test API key security scheme
5533
- * @summary Test API key security scheme
5534
- * @param {*} [options] Override http request option.
5535
- * @throws {RequiredError}
5536
- */
5537
- async testApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5538
- const localVarAxiosArgs = await localVarAxiosParamCreator.testApiKey(options);
5539
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5540
- },
5541
5739
  }
5542
5740
  };
5543
5741
 
@@ -5551,11 +5749,12 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
5551
5749
  /**
5552
5750
  * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
5553
5751
  * @summary Generate API key for the current tenant
5752
+ * @param {GenerateApiKeyRequest} [generateApiKeyRequest]
5554
5753
  * @param {*} [options] Override http request option.
5555
5754
  * @throws {RequiredError}
5556
5755
  */
5557
- generateApiKey(options?: any): AxiosPromise<ApiKey> {
5558
- return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
5756
+ generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: any): AxiosPromise<ApiKey> {
5757
+ return localVarFp.generateApiKey(generateApiKeyRequest, options).then((request) => request(axios, basePath));
5559
5758
  },
5560
5759
  /**
5561
5760
  * List all webhooks for current tenant
@@ -5576,15 +5775,6 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
5576
5775
  setWebhook(webhook: Webhook, options?: any): AxiosPromise<void> {
5577
5776
  return localVarFp.setWebhook(webhook, options).then((request) => request(axios, basePath));
5578
5777
  },
5579
- /**
5580
- * Test API key security scheme
5581
- * @summary Test API key security scheme
5582
- * @param {*} [options] Override http request option.
5583
- * @throws {RequiredError}
5584
- */
5585
- testApiKey(options?: any): AxiosPromise<void> {
5586
- return localVarFp.testApiKey(options).then((request) => request(axios, basePath));
5587
- },
5588
5778
  };
5589
5779
  };
5590
5780
 
@@ -5598,12 +5788,13 @@ export class IntegrationApi extends BaseAPI {
5598
5788
  /**
5599
5789
  * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
5600
5790
  * @summary Generate API key for the current tenant
5791
+ * @param {GenerateApiKeyRequest} [generateApiKeyRequest]
5601
5792
  * @param {*} [options] Override http request option.
5602
5793
  * @throws {RequiredError}
5603
5794
  * @memberof IntegrationApi
5604
5795
  */
5605
- public generateApiKey(options?: AxiosRequestConfig) {
5606
- return IntegrationApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
5796
+ public generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig) {
5797
+ return IntegrationApiFp(this.configuration).generateApiKey(generateApiKeyRequest, options).then((request) => request(this.axios, this.basePath));
5607
5798
  }
5608
5799
 
5609
5800
  /**
@@ -5628,17 +5819,6 @@ export class IntegrationApi extends BaseAPI {
5628
5819
  public setWebhook(webhook: Webhook, options?: AxiosRequestConfig) {
5629
5820
  return IntegrationApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
5630
5821
  }
5631
-
5632
- /**
5633
- * Test API key security scheme
5634
- * @summary Test API key security scheme
5635
- * @param {*} [options] Override http request option.
5636
- * @throws {RequiredError}
5637
- * @memberof IntegrationApi
5638
- */
5639
- public testApiKey(options?: AxiosRequestConfig) {
5640
- return IntegrationApiFp(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
5641
- }
5642
5822
  }
5643
5823
 
5644
5824
 
@@ -6670,43 +6850,6 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
6670
6850
  options: localVarRequestOptions,
6671
6851
  };
6672
6852
  },
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
6853
  /**
6711
6854
  * Create a new product
6712
6855
  * @summary Create a new product
@@ -7182,17 +7325,6 @@ export const ProductApiFp = function(configuration?: Configuration) {
7182
7325
  const localVarAxiosArgs = await localVarAxiosParamCreator.approveProduct(id, productRequestApprovalRequest, options);
7183
7326
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7184
7327
  },
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
7328
  /**
7197
7329
  * Create a new product
7198
7330
  * @summary Create a new product
@@ -7338,16 +7470,6 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
7338
7470
  approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: any): AxiosPromise<ProductRequestApprovalResponse> {
7339
7471
  return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
7340
7472
  },
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
7473
  /**
7352
7474
  * Create a new product
7353
7475
  * @summary Create a new product
@@ -7485,18 +7607,6 @@ export class ProductApi extends BaseAPI {
7485
7607
  return ProductApiFp(this.configuration).approveProduct(id, productRequestApprovalRequest, options).then((request) => request(this.axios, this.basePath));
7486
7608
  }
7487
7609
 
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
7610
  /**
7501
7611
  * Create a new product
7502
7612
  * @summary Create a new product