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/dist/esm/api.d.ts CHANGED
@@ -25,7 +25,36 @@ export interface ApiKey {
25
25
  * @memberof ApiKey
26
26
  */
27
27
  'key': string;
28
+ /**
29
+ *
30
+ * @type {ApiKeyKind}
31
+ * @memberof ApiKey
32
+ */
33
+ 'kind': ApiKeyKind;
34
+ }
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface ApiKeyCreationRequest
39
+ */
40
+ export interface ApiKeyCreationRequest {
41
+ /**
42
+ *
43
+ * @type {ApiKeyKind}
44
+ * @memberof ApiKeyCreationRequest
45
+ */
46
+ 'kind'?: ApiKeyKind;
28
47
  }
48
+ /**
49
+ *
50
+ * @export
51
+ * @enum {string}
52
+ */
53
+ export declare const ApiKeyKind: {
54
+ readonly Webhook: "webhook";
55
+ readonly Api: "api";
56
+ };
57
+ export type ApiKeyKind = typeof ApiKeyKind[keyof typeof ApiKeyKind];
29
58
  /**
30
59
  *
31
60
  * @export
@@ -385,12 +414,6 @@ export interface CallbackOrder {
385
414
  * @memberof CallbackOrder
386
415
  */
387
416
  'id': string;
388
- /**
389
- *
390
- * @type {string}
391
- * @memberof CallbackOrder
392
- */
393
- 'status': string;
394
417
  /**
395
418
  *
396
419
  * @type {WebhookKind}
@@ -812,6 +835,19 @@ export interface FeaturesResponse {
812
835
  */
813
836
  'features': Array<Feature>;
814
837
  }
838
+ /**
839
+ *
840
+ * @export
841
+ * @interface GenerateApiKeyRequest
842
+ */
843
+ export interface GenerateApiKeyRequest {
844
+ /**
845
+ *
846
+ * @type {ApiKeyCreationRequest}
847
+ * @memberof GenerateApiKeyRequest
848
+ */
849
+ 'tag'?: ApiKeyCreationRequest;
850
+ }
815
851
  /**
816
852
  *
817
853
  * @export
@@ -2785,6 +2821,19 @@ export declare const TagValidatorType: {
2785
2821
  readonly FixedValues: "fixed_values";
2786
2822
  };
2787
2823
  export type TagValidatorType = typeof TagValidatorType[keyof typeof TagValidatorType];
2824
+ /**
2825
+ *
2826
+ * @export
2827
+ * @interface TagsBulkCreationRequest
2828
+ */
2829
+ export interface TagsBulkCreationRequest {
2830
+ /**
2831
+ *
2832
+ * @type {Array<TagCreationRequest>}
2833
+ * @memberof TagsBulkCreationRequest
2834
+ */
2835
+ 'tags': Array<TagCreationRequest>;
2836
+ }
2788
2837
  /**
2789
2838
  *
2790
2839
  * @export
@@ -3786,6 +3835,131 @@ export declare class BalanceApi extends BaseAPI {
3786
3835
  */
3787
3836
  updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3788
3837
  }
3838
+ /**
3839
+ * BulkApi - axios parameter creator
3840
+ * @export
3841
+ */
3842
+ export declare const BulkApiAxiosParamCreator: (configuration?: Configuration) => {
3843
+ /**
3844
+ * Create multiple clients
3845
+ * @summary Create multiple clients
3846
+ * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
3847
+ * @param {*} [options] Override http request option.
3848
+ * @throws {RequiredError}
3849
+ */
3850
+ bulkCreateClients: (clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3851
+ /**
3852
+ * Create multiple products
3853
+ * @summary Create multiple products
3854
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
3855
+ * @param {*} [options] Override http request option.
3856
+ * @throws {RequiredError}
3857
+ */
3858
+ bulkCreateProducts: (productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3859
+ /**
3860
+ * Create multiple tags
3861
+ * @summary Create multiple tags
3862
+ * @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
3863
+ * @param {*} [options] Override http request option.
3864
+ * @throws {RequiredError}
3865
+ */
3866
+ bulkCreateTags: (tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3867
+ };
3868
+ /**
3869
+ * BulkApi - functional programming interface
3870
+ * @export
3871
+ */
3872
+ export declare const BulkApiFp: (configuration?: Configuration) => {
3873
+ /**
3874
+ * Create multiple clients
3875
+ * @summary Create multiple clients
3876
+ * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
3877
+ * @param {*} [options] Override http request option.
3878
+ * @throws {RequiredError}
3879
+ */
3880
+ bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>>;
3881
+ /**
3882
+ * Create multiple products
3883
+ * @summary Create multiple products
3884
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
3885
+ * @param {*} [options] Override http request option.
3886
+ * @throws {RequiredError}
3887
+ */
3888
+ bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>>;
3889
+ /**
3890
+ * Create multiple tags
3891
+ * @summary Create multiple tags
3892
+ * @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
3893
+ * @param {*} [options] Override http request option.
3894
+ * @throws {RequiredError}
3895
+ */
3896
+ bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagDetailed>>>;
3897
+ };
3898
+ /**
3899
+ * BulkApi - factory interface
3900
+ * @export
3901
+ */
3902
+ export declare const BulkApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3903
+ /**
3904
+ * Create multiple clients
3905
+ * @summary Create multiple clients
3906
+ * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
3907
+ * @param {*} [options] Override http request option.
3908
+ * @throws {RequiredError}
3909
+ */
3910
+ bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: any): AxiosPromise<Array<Client>>;
3911
+ /**
3912
+ * Create multiple products
3913
+ * @summary Create multiple products
3914
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
3915
+ * @param {*} [options] Override http request option.
3916
+ * @throws {RequiredError}
3917
+ */
3918
+ bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: any): AxiosPromise<Array<Product>>;
3919
+ /**
3920
+ * Create multiple tags
3921
+ * @summary Create multiple tags
3922
+ * @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
3923
+ * @param {*} [options] Override http request option.
3924
+ * @throws {RequiredError}
3925
+ */
3926
+ bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>>;
3927
+ };
3928
+ /**
3929
+ * BulkApi - object-oriented interface
3930
+ * @export
3931
+ * @class BulkApi
3932
+ * @extends {BaseAPI}
3933
+ */
3934
+ export declare class BulkApi extends BaseAPI {
3935
+ /**
3936
+ * Create multiple clients
3937
+ * @summary Create multiple clients
3938
+ * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
3939
+ * @param {*} [options] Override http request option.
3940
+ * @throws {RequiredError}
3941
+ * @memberof BulkApi
3942
+ */
3943
+ bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Client[], any>>;
3944
+ /**
3945
+ * Create multiple products
3946
+ * @summary Create multiple products
3947
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
3948
+ * @param {*} [options] Override http request option.
3949
+ * @throws {RequiredError}
3950
+ * @memberof BulkApi
3951
+ */
3952
+ bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Product[], any>>;
3953
+ /**
3954
+ * Create multiple tags
3955
+ * @summary Create multiple tags
3956
+ * @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
3957
+ * @param {*} [options] Override http request option.
3958
+ * @throws {RequiredError}
3959
+ * @memberof BulkApi
3960
+ */
3961
+ bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TagDetailed[], any>>;
3962
+ }
3789
3963
  /**
3790
3964
  * CategoryApi - axios parameter creator
3791
3965
  * @export
@@ -3846,14 +4020,6 @@ export declare class CategoryApi extends BaseAPI {
3846
4020
  * @export
3847
4021
  */
3848
4022
  export declare const ClientApiAxiosParamCreator: (configuration?: Configuration) => {
3849
- /**
3850
- * Create multiple clients
3851
- * @summary Create multiple clients
3852
- * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
3853
- * @param {*} [options] Override http request option.
3854
- * @throws {RequiredError}
3855
- */
3856
- bulkCreateClients: (clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3857
4023
  /**
3858
4024
  * Create a new client
3859
4025
  * @summary Create client
@@ -3897,14 +4063,6 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
3897
4063
  * @export
3898
4064
  */
3899
4065
  export declare const ClientApiFp: (configuration?: Configuration) => {
3900
- /**
3901
- * Create multiple clients
3902
- * @summary Create multiple clients
3903
- * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
3904
- * @param {*} [options] Override http request option.
3905
- * @throws {RequiredError}
3906
- */
3907
- bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>>;
3908
4066
  /**
3909
4067
  * Create a new client
3910
4068
  * @summary Create client
@@ -3948,14 +4106,6 @@ export declare const ClientApiFp: (configuration?: Configuration) => {
3948
4106
  * @export
3949
4107
  */
3950
4108
  export declare const ClientApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3951
- /**
3952
- * Create multiple clients
3953
- * @summary Create multiple clients
3954
- * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
3955
- * @param {*} [options] Override http request option.
3956
- * @throws {RequiredError}
3957
- */
3958
- bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: any): AxiosPromise<Array<Client>>;
3959
4109
  /**
3960
4110
  * Create a new client
3961
4111
  * @summary Create client
@@ -4001,15 +4151,6 @@ export declare const ClientApiFactory: (configuration?: Configuration, basePath?
4001
4151
  * @extends {BaseAPI}
4002
4152
  */
4003
4153
  export declare class ClientApi extends BaseAPI {
4004
- /**
4005
- * Create multiple clients
4006
- * @summary Create multiple clients
4007
- * @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
4008
- * @param {*} [options] Override http request option.
4009
- * @throws {RequiredError}
4010
- * @memberof ClientApi
4011
- */
4012
- bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Client[], any>>;
4013
4154
  /**
4014
4155
  * Create a new client
4015
4156
  * @summary Create client
@@ -4332,10 +4473,11 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
4332
4473
  /**
4333
4474
  * 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.
4334
4475
  * @summary Generate API key for the current tenant
4476
+ * @param {GenerateApiKeyRequest} [generateApiKeyRequest]
4335
4477
  * @param {*} [options] Override http request option.
4336
4478
  * @throws {RequiredError}
4337
4479
  */
4338
- generateApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
4480
+ generateApiKey: (generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4339
4481
  /**
4340
4482
  * List all webhooks for current tenant
4341
4483
  * @summary List webhooks
@@ -4351,13 +4493,6 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
4351
4493
  * @throws {RequiredError}
4352
4494
  */
4353
4495
  setWebhook: (webhook: Webhook, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4354
- /**
4355
- * Test API key security scheme
4356
- * @summary Test API key security scheme
4357
- * @param {*} [options] Override http request option.
4358
- * @throws {RequiredError}
4359
- */
4360
- testApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
4361
4496
  };
4362
4497
  /**
4363
4498
  * IntegrationApi - functional programming interface
@@ -4367,10 +4502,11 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
4367
4502
  /**
4368
4503
  * 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.
4369
4504
  * @summary Generate API key for the current tenant
4505
+ * @param {GenerateApiKeyRequest} [generateApiKeyRequest]
4370
4506
  * @param {*} [options] Override http request option.
4371
4507
  * @throws {RequiredError}
4372
4508
  */
4373
- generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
4509
+ generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
4374
4510
  /**
4375
4511
  * List all webhooks for current tenant
4376
4512
  * @summary List webhooks
@@ -4386,13 +4522,6 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
4386
4522
  * @throws {RequiredError}
4387
4523
  */
4388
4524
  setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4389
- /**
4390
- * Test API key security scheme
4391
- * @summary Test API key security scheme
4392
- * @param {*} [options] Override http request option.
4393
- * @throws {RequiredError}
4394
- */
4395
- testApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4396
4525
  };
4397
4526
  /**
4398
4527
  * IntegrationApi - factory interface
@@ -4402,10 +4531,11 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
4402
4531
  /**
4403
4532
  * 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.
4404
4533
  * @summary Generate API key for the current tenant
4534
+ * @param {GenerateApiKeyRequest} [generateApiKeyRequest]
4405
4535
  * @param {*} [options] Override http request option.
4406
4536
  * @throws {RequiredError}
4407
4537
  */
4408
- generateApiKey(options?: any): AxiosPromise<ApiKey>;
4538
+ generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: any): AxiosPromise<ApiKey>;
4409
4539
  /**
4410
4540
  * List all webhooks for current tenant
4411
4541
  * @summary List webhooks
@@ -4421,13 +4551,6 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
4421
4551
  * @throws {RequiredError}
4422
4552
  */
4423
4553
  setWebhook(webhook: Webhook, options?: any): AxiosPromise<void>;
4424
- /**
4425
- * Test API key security scheme
4426
- * @summary Test API key security scheme
4427
- * @param {*} [options] Override http request option.
4428
- * @throws {RequiredError}
4429
- */
4430
- testApiKey(options?: any): AxiosPromise<void>;
4431
4554
  };
4432
4555
  /**
4433
4556
  * IntegrationApi - object-oriented interface
@@ -4439,11 +4562,12 @@ export declare class IntegrationApi extends BaseAPI {
4439
4562
  /**
4440
4563
  * 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.
4441
4564
  * @summary Generate API key for the current tenant
4565
+ * @param {GenerateApiKeyRequest} [generateApiKeyRequest]
4442
4566
  * @param {*} [options] Override http request option.
4443
4567
  * @throws {RequiredError}
4444
4568
  * @memberof IntegrationApi
4445
4569
  */
4446
- generateApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
4570
+ generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
4447
4571
  /**
4448
4572
  * List all webhooks for current tenant
4449
4573
  * @summary List webhooks
@@ -4461,14 +4585,6 @@ export declare class IntegrationApi extends BaseAPI {
4461
4585
  * @memberof IntegrationApi
4462
4586
  */
4463
4587
  setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
4464
- /**
4465
- * Test API key security scheme
4466
- * @summary Test API key security scheme
4467
- * @param {*} [options] Override http request option.
4468
- * @throws {RequiredError}
4469
- * @memberof IntegrationApi
4470
- */
4471
- testApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
4472
4588
  }
4473
4589
  /**
4474
4590
  * NotificationApi - axios parameter creator
@@ -4951,14 +5067,6 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
4951
5067
  * @throws {RequiredError}
4952
5068
  */
4953
5069
  approveProduct: (id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4954
- /**
4955
- * Create multiple products
4956
- * @summary Create multiple products
4957
- * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
4958
- * @param {*} [options] Override http request option.
4959
- * @throws {RequiredError}
4960
- */
4961
- bulkCreateProducts: (productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4962
5070
  /**
4963
5071
  * Create a new product
4964
5072
  * @summary Create a new product
@@ -5068,14 +5176,6 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
5068
5176
  * @throws {RequiredError}
5069
5177
  */
5070
5178
  approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestApprovalResponse>>;
5071
- /**
5072
- * Create multiple products
5073
- * @summary Create multiple products
5074
- * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
5075
- * @param {*} [options] Override http request option.
5076
- * @throws {RequiredError}
5077
- */
5078
- bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>>;
5079
5179
  /**
5080
5180
  * Create a new product
5081
5181
  * @summary Create a new product
@@ -5185,14 +5285,6 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
5185
5285
  * @throws {RequiredError}
5186
5286
  */
5187
5287
  approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: any): AxiosPromise<ProductRequestApprovalResponse>;
5188
- /**
5189
- * Create multiple products
5190
- * @summary Create multiple products
5191
- * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
5192
- * @param {*} [options] Override http request option.
5193
- * @throws {RequiredError}
5194
- */
5195
- bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: any): AxiosPromise<Array<Product>>;
5196
5288
  /**
5197
5289
  * Create a new product
5198
5290
  * @summary Create a new product
@@ -5305,15 +5397,6 @@ export declare class ProductApi extends BaseAPI {
5305
5397
  * @memberof ProductApi
5306
5398
  */
5307
5399
  approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestApprovalResponse, any>>;
5308
- /**
5309
- * Create multiple products
5310
- * @summary Create multiple products
5311
- * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
5312
- * @param {*} [options] Override http request option.
5313
- * @throws {RequiredError}
5314
- * @memberof ProductApi
5315
- */
5316
- bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Product[], any>>;
5317
5400
  /**
5318
5401
  * Create a new product
5319
5402
  * @summary Create a new product