flexinet-api 0.0.503-prerelease0 → 0.0.514-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 CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.503-prerelease0
1
+ ## flexinet-api@0.0.514-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.503-prerelease0 --save
39
+ npm install flexinet-api@0.0.514-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -703,6 +703,18 @@ export interface CustomeruserDetails {
703
703
  * @memberof CustomeruserDetails
704
704
  */
705
705
  'email': string;
706
+ /**
707
+ *
708
+ * @type {string}
709
+ * @memberof CustomeruserDetails
710
+ */
711
+ 'firstName'?: string;
712
+ /**
713
+ *
714
+ * @type {string}
715
+ * @memberof CustomeruserDetails
716
+ */
717
+ 'lastName'?: string;
706
718
  }
707
719
  /**
708
720
  *
@@ -736,6 +748,34 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
736
748
  */
737
749
  export type EventCreationRequestDetails = TransactionEventDetails;
738
750
 
751
+ /**
752
+ *
753
+ * @export
754
+ * @enum {string}
755
+ */
756
+
757
+ export const Feature = {
758
+ Promotions: 'promotions',
759
+ SalesBudget: 'sales_budget',
760
+ CustomDeals: 'custom_deals'
761
+ } as const;
762
+
763
+ export type Feature = typeof Feature[keyof typeof Feature];
764
+
765
+
766
+ /**
767
+ *
768
+ * @export
769
+ * @interface FeaturesResponse
770
+ */
771
+ export interface FeaturesResponse {
772
+ /**
773
+ *
774
+ * @type {Array<Feature>}
775
+ * @memberof FeaturesResponse
776
+ */
777
+ 'features': Array<Feature>;
778
+ }
739
779
  /**
740
780
  *
741
781
  * @export
@@ -4294,6 +4334,40 @@ export const ConfigurationApiAxiosParamCreator = function (configuration?: Confi
4294
4334
 
4295
4335
 
4296
4336
 
4337
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4338
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4339
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4340
+
4341
+ return {
4342
+ url: toPathString(localVarUrlObj),
4343
+ options: localVarRequestOptions,
4344
+ };
4345
+ },
4346
+ /**
4347
+ * List all features
4348
+ * @summary List features
4349
+ * @param {*} [options] Override http request option.
4350
+ * @throws {RequiredError}
4351
+ */
4352
+ listFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4353
+ const localVarPath = `/admins/features`;
4354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4355
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4356
+ let baseOptions;
4357
+ if (configuration) {
4358
+ baseOptions = configuration.baseOptions;
4359
+ }
4360
+
4361
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4362
+ const localVarHeaderParameter = {} as any;
4363
+ const localVarQueryParameter = {} as any;
4364
+
4365
+ // authentication systemJWT required
4366
+ // http bearer authentication required
4367
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4368
+
4369
+
4370
+
4297
4371
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4298
4372
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4299
4373
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4336,6 +4410,16 @@ export const ConfigurationApiFp = function(configuration?: Configuration) {
4336
4410
  const localVarAxiosArgs = await localVarAxiosParamCreator.listConfigurations(nextToken, search, options);
4337
4411
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4338
4412
  },
4413
+ /**
4414
+ * List all features
4415
+ * @summary List features
4416
+ * @param {*} [options] Override http request option.
4417
+ * @throws {RequiredError}
4418
+ */
4419
+ async listFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FeaturesResponse>> {
4420
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listFeatures(options);
4421
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4422
+ },
4339
4423
  }
4340
4424
  };
4341
4425
 
@@ -4367,6 +4451,15 @@ export const ConfigurationApiFactory = function (configuration?: Configuration,
4367
4451
  listConfigurations(nextToken?: string, search?: string, options?: any): AxiosPromise<BackofficeConfig> {
4368
4452
  return localVarFp.listConfigurations(nextToken, search, options).then((request) => request(axios, basePath));
4369
4453
  },
4454
+ /**
4455
+ * List all features
4456
+ * @summary List features
4457
+ * @param {*} [options] Override http request option.
4458
+ * @throws {RequiredError}
4459
+ */
4460
+ listFeatures(options?: any): AxiosPromise<FeaturesResponse> {
4461
+ return localVarFp.listFeatures(options).then((request) => request(axios, basePath));
4462
+ },
4370
4463
  };
4371
4464
  };
4372
4465
 
@@ -4401,6 +4494,17 @@ export class ConfigurationApi extends BaseAPI {
4401
4494
  public listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig) {
4402
4495
  return ConfigurationApiFp(this.configuration).listConfigurations(nextToken, search, options).then((request) => request(this.axios, this.basePath));
4403
4496
  }
4497
+
4498
+ /**
4499
+ * List all features
4500
+ * @summary List features
4501
+ * @param {*} [options] Override http request option.
4502
+ * @throws {RequiredError}
4503
+ * @memberof ConfigurationApi
4504
+ */
4505
+ public listFeatures(options?: AxiosRequestConfig) {
4506
+ return ConfigurationApiFp(this.configuration).listFeatures(options).then((request) => request(this.axios, this.basePath));
4507
+ }
4404
4508
  }
4405
4509
 
4406
4510
 
package/dist/api.d.ts CHANGED
@@ -661,6 +661,18 @@ export interface CustomeruserDetails {
661
661
  * @memberof CustomeruserDetails
662
662
  */
663
663
  'email': string;
664
+ /**
665
+ *
666
+ * @type {string}
667
+ * @memberof CustomeruserDetails
668
+ */
669
+ 'firstName'?: string;
670
+ /**
671
+ *
672
+ * @type {string}
673
+ * @memberof CustomeruserDetails
674
+ */
675
+ 'lastName'?: string;
664
676
  }
665
677
  /**
666
678
  *
@@ -690,6 +702,30 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
690
702
  * @export
691
703
  */
692
704
  export type EventCreationRequestDetails = TransactionEventDetails;
705
+ /**
706
+ *
707
+ * @export
708
+ * @enum {string}
709
+ */
710
+ export declare const Feature: {
711
+ readonly Promotions: "promotions";
712
+ readonly SalesBudget: "sales_budget";
713
+ readonly CustomDeals: "custom_deals";
714
+ };
715
+ export type Feature = typeof Feature[keyof typeof Feature];
716
+ /**
717
+ *
718
+ * @export
719
+ * @interface FeaturesResponse
720
+ */
721
+ export interface FeaturesResponse {
722
+ /**
723
+ *
724
+ * @type {Array<Feature>}
725
+ * @memberof FeaturesResponse
726
+ */
727
+ 'features': Array<Feature>;
728
+ }
693
729
  /**
694
730
  *
695
731
  * @export
@@ -3593,6 +3629,13 @@ export declare const ConfigurationApiAxiosParamCreator: (configuration?: Configu
3593
3629
  * @throws {RequiredError}
3594
3630
  */
3595
3631
  listConfigurations: (nextToken?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3632
+ /**
3633
+ * List all features
3634
+ * @summary List features
3635
+ * @param {*} [options] Override http request option.
3636
+ * @throws {RequiredError}
3637
+ */
3638
+ listFeatures: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3596
3639
  };
3597
3640
  /**
3598
3641
  * ConfigurationApi - functional programming interface
@@ -3616,6 +3659,13 @@ export declare const ConfigurationApiFp: (configuration?: Configuration) => {
3616
3659
  * @throws {RequiredError}
3617
3660
  */
3618
3661
  listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BackofficeConfig>>;
3662
+ /**
3663
+ * List all features
3664
+ * @summary List features
3665
+ * @param {*} [options] Override http request option.
3666
+ * @throws {RequiredError}
3667
+ */
3668
+ listFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FeaturesResponse>>;
3619
3669
  };
3620
3670
  /**
3621
3671
  * ConfigurationApi - factory interface
@@ -3639,6 +3689,13 @@ export declare const ConfigurationApiFactory: (configuration?: Configuration, ba
3639
3689
  * @throws {RequiredError}
3640
3690
  */
3641
3691
  listConfigurations(nextToken?: string, search?: string, options?: any): AxiosPromise<BackofficeConfig>;
3692
+ /**
3693
+ * List all features
3694
+ * @summary List features
3695
+ * @param {*} [options] Override http request option.
3696
+ * @throws {RequiredError}
3697
+ */
3698
+ listFeatures(options?: any): AxiosPromise<FeaturesResponse>;
3642
3699
  };
3643
3700
  /**
3644
3701
  * ConfigurationApi - object-oriented interface
@@ -3666,6 +3723,14 @@ export declare class ConfigurationApi extends BaseAPI {
3666
3723
  * @memberof ConfigurationApi
3667
3724
  */
3668
3725
  listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BackofficeConfig, any>>;
3726
+ /**
3727
+ * List all features
3728
+ * @summary List features
3729
+ * @param {*} [options] Override http request option.
3730
+ * @throws {RequiredError}
3731
+ * @memberof ConfigurationApi
3732
+ */
3733
+ listFeatures(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FeaturesResponse, any>>;
3669
3734
  }
3670
3735
  /**
3671
3736
  * CustomDealsApi - axios parameter creator
package/dist/api.js CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
26
- exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = void 0;
27
- exports.UserApi = exports.UserApiFactory = void 0;
25
+ exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
26
+ exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = void 0;
27
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -84,6 +84,16 @@ exports.CustomDealRestrictionPriority = {
84
84
  exports.EventCreationRequestKindEnum = {
85
85
  Transaction: 'transaction'
86
86
  };
87
+ /**
88
+ *
89
+ * @export
90
+ * @enum {string}
91
+ */
92
+ exports.Feature = {
93
+ Promotions: 'promotions',
94
+ SalesBudget: 'sales_budget',
95
+ CustomDeals: 'custom_deals'
96
+ };
87
97
  /**
88
98
  *
89
99
  * @export
@@ -1266,6 +1276,34 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
1266
1276
  options: localVarRequestOptions,
1267
1277
  };
1268
1278
  }),
1279
+ /**
1280
+ * List all features
1281
+ * @summary List features
1282
+ * @param {*} [options] Override http request option.
1283
+ * @throws {RequiredError}
1284
+ */
1285
+ listFeatures: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1286
+ const localVarPath = `/admins/features`;
1287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1288
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1289
+ let baseOptions;
1290
+ if (configuration) {
1291
+ baseOptions = configuration.baseOptions;
1292
+ }
1293
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1294
+ const localVarHeaderParameter = {};
1295
+ const localVarQueryParameter = {};
1296
+ // authentication systemJWT required
1297
+ // http bearer authentication required
1298
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1299
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1301
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1302
+ return {
1303
+ url: (0, common_1.toPathString)(localVarUrlObj),
1304
+ options: localVarRequestOptions,
1305
+ };
1306
+ }),
1269
1307
  };
1270
1308
  };
1271
1309
  exports.ConfigurationApiAxiosParamCreator = ConfigurationApiAxiosParamCreator;
@@ -1303,6 +1341,18 @@ const ConfigurationApiFp = function (configuration) {
1303
1341
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1304
1342
  });
1305
1343
  },
1344
+ /**
1345
+ * List all features
1346
+ * @summary List features
1347
+ * @param {*} [options] Override http request option.
1348
+ * @throws {RequiredError}
1349
+ */
1350
+ listFeatures(options) {
1351
+ return __awaiter(this, void 0, void 0, function* () {
1352
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listFeatures(options);
1353
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1354
+ });
1355
+ },
1306
1356
  };
1307
1357
  };
1308
1358
  exports.ConfigurationApiFp = ConfigurationApiFp;
@@ -1334,6 +1384,15 @@ const ConfigurationApiFactory = function (configuration, basePath, axios) {
1334
1384
  listConfigurations(nextToken, search, options) {
1335
1385
  return localVarFp.listConfigurations(nextToken, search, options).then((request) => request(axios, basePath));
1336
1386
  },
1387
+ /**
1388
+ * List all features
1389
+ * @summary List features
1390
+ * @param {*} [options] Override http request option.
1391
+ * @throws {RequiredError}
1392
+ */
1393
+ listFeatures(options) {
1394
+ return localVarFp.listFeatures(options).then((request) => request(axios, basePath));
1395
+ },
1337
1396
  };
1338
1397
  };
1339
1398
  exports.ConfigurationApiFactory = ConfigurationApiFactory;
@@ -1367,6 +1426,16 @@ class ConfigurationApi extends base_1.BaseAPI {
1367
1426
  listConfigurations(nextToken, search, options) {
1368
1427
  return (0, exports.ConfigurationApiFp)(this.configuration).listConfigurations(nextToken, search, options).then((request) => request(this.axios, this.basePath));
1369
1428
  }
1429
+ /**
1430
+ * List all features
1431
+ * @summary List features
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ * @memberof ConfigurationApi
1435
+ */
1436
+ listFeatures(options) {
1437
+ return (0, exports.ConfigurationApiFp)(this.configuration).listFeatures(options).then((request) => request(this.axios, this.basePath));
1438
+ }
1370
1439
  }
1371
1440
  exports.ConfigurationApi = ConfigurationApi;
1372
1441
  /**
package/dist/esm/api.d.ts CHANGED
@@ -661,6 +661,18 @@ export interface CustomeruserDetails {
661
661
  * @memberof CustomeruserDetails
662
662
  */
663
663
  'email': string;
664
+ /**
665
+ *
666
+ * @type {string}
667
+ * @memberof CustomeruserDetails
668
+ */
669
+ 'firstName'?: string;
670
+ /**
671
+ *
672
+ * @type {string}
673
+ * @memberof CustomeruserDetails
674
+ */
675
+ 'lastName'?: string;
664
676
  }
665
677
  /**
666
678
  *
@@ -690,6 +702,30 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
690
702
  * @export
691
703
  */
692
704
  export type EventCreationRequestDetails = TransactionEventDetails;
705
+ /**
706
+ *
707
+ * @export
708
+ * @enum {string}
709
+ */
710
+ export declare const Feature: {
711
+ readonly Promotions: "promotions";
712
+ readonly SalesBudget: "sales_budget";
713
+ readonly CustomDeals: "custom_deals";
714
+ };
715
+ export type Feature = typeof Feature[keyof typeof Feature];
716
+ /**
717
+ *
718
+ * @export
719
+ * @interface FeaturesResponse
720
+ */
721
+ export interface FeaturesResponse {
722
+ /**
723
+ *
724
+ * @type {Array<Feature>}
725
+ * @memberof FeaturesResponse
726
+ */
727
+ 'features': Array<Feature>;
728
+ }
693
729
  /**
694
730
  *
695
731
  * @export
@@ -3593,6 +3629,13 @@ export declare const ConfigurationApiAxiosParamCreator: (configuration?: Configu
3593
3629
  * @throws {RequiredError}
3594
3630
  */
3595
3631
  listConfigurations: (nextToken?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3632
+ /**
3633
+ * List all features
3634
+ * @summary List features
3635
+ * @param {*} [options] Override http request option.
3636
+ * @throws {RequiredError}
3637
+ */
3638
+ listFeatures: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3596
3639
  };
3597
3640
  /**
3598
3641
  * ConfigurationApi - functional programming interface
@@ -3616,6 +3659,13 @@ export declare const ConfigurationApiFp: (configuration?: Configuration) => {
3616
3659
  * @throws {RequiredError}
3617
3660
  */
3618
3661
  listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BackofficeConfig>>;
3662
+ /**
3663
+ * List all features
3664
+ * @summary List features
3665
+ * @param {*} [options] Override http request option.
3666
+ * @throws {RequiredError}
3667
+ */
3668
+ listFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FeaturesResponse>>;
3619
3669
  };
3620
3670
  /**
3621
3671
  * ConfigurationApi - factory interface
@@ -3639,6 +3689,13 @@ export declare const ConfigurationApiFactory: (configuration?: Configuration, ba
3639
3689
  * @throws {RequiredError}
3640
3690
  */
3641
3691
  listConfigurations(nextToken?: string, search?: string, options?: any): AxiosPromise<BackofficeConfig>;
3692
+ /**
3693
+ * List all features
3694
+ * @summary List features
3695
+ * @param {*} [options] Override http request option.
3696
+ * @throws {RequiredError}
3697
+ */
3698
+ listFeatures(options?: any): AxiosPromise<FeaturesResponse>;
3642
3699
  };
3643
3700
  /**
3644
3701
  * ConfigurationApi - object-oriented interface
@@ -3666,6 +3723,14 @@ export declare class ConfigurationApi extends BaseAPI {
3666
3723
  * @memberof ConfigurationApi
3667
3724
  */
3668
3725
  listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BackofficeConfig, any>>;
3726
+ /**
3727
+ * List all features
3728
+ * @summary List features
3729
+ * @param {*} [options] Override http request option.
3730
+ * @throws {RequiredError}
3731
+ * @memberof ConfigurationApi
3732
+ */
3733
+ listFeatures(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FeaturesResponse, any>>;
3669
3734
  }
3670
3735
  /**
3671
3736
  * CustomDealsApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -79,6 +79,16 @@ export const CustomDealRestrictionPriority = {
79
79
  export const EventCreationRequestKindEnum = {
80
80
  Transaction: 'transaction'
81
81
  };
82
+ /**
83
+ *
84
+ * @export
85
+ * @enum {string}
86
+ */
87
+ export const Feature = {
88
+ Promotions: 'promotions',
89
+ SalesBudget: 'sales_budget',
90
+ CustomDeals: 'custom_deals'
91
+ };
82
92
  /**
83
93
  *
84
94
  * @export
@@ -1245,6 +1255,34 @@ export const ConfigurationApiAxiosParamCreator = function (configuration) {
1245
1255
  options: localVarRequestOptions,
1246
1256
  };
1247
1257
  }),
1258
+ /**
1259
+ * List all features
1260
+ * @summary List features
1261
+ * @param {*} [options] Override http request option.
1262
+ * @throws {RequiredError}
1263
+ */
1264
+ listFeatures: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1265
+ const localVarPath = `/admins/features`;
1266
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1268
+ let baseOptions;
1269
+ if (configuration) {
1270
+ baseOptions = configuration.baseOptions;
1271
+ }
1272
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1273
+ const localVarHeaderParameter = {};
1274
+ const localVarQueryParameter = {};
1275
+ // authentication systemJWT required
1276
+ // http bearer authentication required
1277
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1280
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1281
+ return {
1282
+ url: toPathString(localVarUrlObj),
1283
+ options: localVarRequestOptions,
1284
+ };
1285
+ }),
1248
1286
  };
1249
1287
  };
1250
1288
  /**
@@ -1281,6 +1319,18 @@ export const ConfigurationApiFp = function (configuration) {
1281
1319
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1282
1320
  });
1283
1321
  },
1322
+ /**
1323
+ * List all features
1324
+ * @summary List features
1325
+ * @param {*} [options] Override http request option.
1326
+ * @throws {RequiredError}
1327
+ */
1328
+ listFeatures(options) {
1329
+ return __awaiter(this, void 0, void 0, function* () {
1330
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listFeatures(options);
1331
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1332
+ });
1333
+ },
1284
1334
  };
1285
1335
  };
1286
1336
  /**
@@ -1311,6 +1361,15 @@ export const ConfigurationApiFactory = function (configuration, basePath, axios)
1311
1361
  listConfigurations(nextToken, search, options) {
1312
1362
  return localVarFp.listConfigurations(nextToken, search, options).then((request) => request(axios, basePath));
1313
1363
  },
1364
+ /**
1365
+ * List all features
1366
+ * @summary List features
1367
+ * @param {*} [options] Override http request option.
1368
+ * @throws {RequiredError}
1369
+ */
1370
+ listFeatures(options) {
1371
+ return localVarFp.listFeatures(options).then((request) => request(axios, basePath));
1372
+ },
1314
1373
  };
1315
1374
  };
1316
1375
  /**
@@ -1343,6 +1402,16 @@ export class ConfigurationApi extends BaseAPI {
1343
1402
  listConfigurations(nextToken, search, options) {
1344
1403
  return ConfigurationApiFp(this.configuration).listConfigurations(nextToken, search, options).then((request) => request(this.axios, this.basePath));
1345
1404
  }
1405
+ /**
1406
+ * List all features
1407
+ * @summary List features
1408
+ * @param {*} [options] Override http request option.
1409
+ * @throws {RequiredError}
1410
+ * @memberof ConfigurationApi
1411
+ */
1412
+ listFeatures(options) {
1413
+ return ConfigurationApiFp(this.configuration).listFeatures(options).then((request) => request(this.axios, this.basePath));
1414
+ }
1346
1415
  }
1347
1416
  /**
1348
1417
  * CustomDealsApi - axios parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.503-prerelease0",
3
+ "version": "0.0.514-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {