flexinet-api 0.0.503-prerelease0 → 0.0.513-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 +92 -0
- package/dist/api.d.ts +53 -0
- package/dist/api.js +72 -3
- package/dist/esm/api.d.ts +53 -0
- package/dist/esm/api.js +69 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.513-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.513-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -736,6 +736,34 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
|
|
|
736
736
|
*/
|
|
737
737
|
export type EventCreationRequestDetails = TransactionEventDetails;
|
|
738
738
|
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @export
|
|
742
|
+
* @enum {string}
|
|
743
|
+
*/
|
|
744
|
+
|
|
745
|
+
export const Feature = {
|
|
746
|
+
Promotions: 'promotions',
|
|
747
|
+
SalesBudget: 'sales_budget',
|
|
748
|
+
CustomDeals: 'custom_deals'
|
|
749
|
+
} as const;
|
|
750
|
+
|
|
751
|
+
export type Feature = typeof Feature[keyof typeof Feature];
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @export
|
|
757
|
+
* @interface FeaturesResponse
|
|
758
|
+
*/
|
|
759
|
+
export interface FeaturesResponse {
|
|
760
|
+
/**
|
|
761
|
+
*
|
|
762
|
+
* @type {Array<Feature>}
|
|
763
|
+
* @memberof FeaturesResponse
|
|
764
|
+
*/
|
|
765
|
+
'features': Array<Feature>;
|
|
766
|
+
}
|
|
739
767
|
/**
|
|
740
768
|
*
|
|
741
769
|
* @export
|
|
@@ -4294,6 +4322,40 @@ export const ConfigurationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
4294
4322
|
|
|
4295
4323
|
|
|
4296
4324
|
|
|
4325
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4327
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4328
|
+
|
|
4329
|
+
return {
|
|
4330
|
+
url: toPathString(localVarUrlObj),
|
|
4331
|
+
options: localVarRequestOptions,
|
|
4332
|
+
};
|
|
4333
|
+
},
|
|
4334
|
+
/**
|
|
4335
|
+
* List all features
|
|
4336
|
+
* @summary List features
|
|
4337
|
+
* @param {*} [options] Override http request option.
|
|
4338
|
+
* @throws {RequiredError}
|
|
4339
|
+
*/
|
|
4340
|
+
listFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4341
|
+
const localVarPath = `/admins/features`;
|
|
4342
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4343
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4344
|
+
let baseOptions;
|
|
4345
|
+
if (configuration) {
|
|
4346
|
+
baseOptions = configuration.baseOptions;
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4350
|
+
const localVarHeaderParameter = {} as any;
|
|
4351
|
+
const localVarQueryParameter = {} as any;
|
|
4352
|
+
|
|
4353
|
+
// authentication systemJWT required
|
|
4354
|
+
// http bearer authentication required
|
|
4355
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4356
|
+
|
|
4357
|
+
|
|
4358
|
+
|
|
4297
4359
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4298
4360
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4299
4361
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4336,6 +4398,16 @@ export const ConfigurationApiFp = function(configuration?: Configuration) {
|
|
|
4336
4398
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listConfigurations(nextToken, search, options);
|
|
4337
4399
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4338
4400
|
},
|
|
4401
|
+
/**
|
|
4402
|
+
* List all features
|
|
4403
|
+
* @summary List features
|
|
4404
|
+
* @param {*} [options] Override http request option.
|
|
4405
|
+
* @throws {RequiredError}
|
|
4406
|
+
*/
|
|
4407
|
+
async listFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FeaturesResponse>> {
|
|
4408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listFeatures(options);
|
|
4409
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4410
|
+
},
|
|
4339
4411
|
}
|
|
4340
4412
|
};
|
|
4341
4413
|
|
|
@@ -4367,6 +4439,15 @@ export const ConfigurationApiFactory = function (configuration?: Configuration,
|
|
|
4367
4439
|
listConfigurations(nextToken?: string, search?: string, options?: any): AxiosPromise<BackofficeConfig> {
|
|
4368
4440
|
return localVarFp.listConfigurations(nextToken, search, options).then((request) => request(axios, basePath));
|
|
4369
4441
|
},
|
|
4442
|
+
/**
|
|
4443
|
+
* List all features
|
|
4444
|
+
* @summary List features
|
|
4445
|
+
* @param {*} [options] Override http request option.
|
|
4446
|
+
* @throws {RequiredError}
|
|
4447
|
+
*/
|
|
4448
|
+
listFeatures(options?: any): AxiosPromise<FeaturesResponse> {
|
|
4449
|
+
return localVarFp.listFeatures(options).then((request) => request(axios, basePath));
|
|
4450
|
+
},
|
|
4370
4451
|
};
|
|
4371
4452
|
};
|
|
4372
4453
|
|
|
@@ -4401,6 +4482,17 @@ export class ConfigurationApi extends BaseAPI {
|
|
|
4401
4482
|
public listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig) {
|
|
4402
4483
|
return ConfigurationApiFp(this.configuration).listConfigurations(nextToken, search, options).then((request) => request(this.axios, this.basePath));
|
|
4403
4484
|
}
|
|
4485
|
+
|
|
4486
|
+
/**
|
|
4487
|
+
* List all features
|
|
4488
|
+
* @summary List features
|
|
4489
|
+
* @param {*} [options] Override http request option.
|
|
4490
|
+
* @throws {RequiredError}
|
|
4491
|
+
* @memberof ConfigurationApi
|
|
4492
|
+
*/
|
|
4493
|
+
public listFeatures(options?: AxiosRequestConfig) {
|
|
4494
|
+
return ConfigurationApiFp(this.configuration).listFeatures(options).then((request) => request(this.axios, this.basePath));
|
|
4495
|
+
}
|
|
4404
4496
|
}
|
|
4405
4497
|
|
|
4406
4498
|
|
package/dist/api.d.ts
CHANGED
|
@@ -690,6 +690,30 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
|
|
|
690
690
|
* @export
|
|
691
691
|
*/
|
|
692
692
|
export type EventCreationRequestDetails = TransactionEventDetails;
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @export
|
|
696
|
+
* @enum {string}
|
|
697
|
+
*/
|
|
698
|
+
export declare const Feature: {
|
|
699
|
+
readonly Promotions: "promotions";
|
|
700
|
+
readonly SalesBudget: "sales_budget";
|
|
701
|
+
readonly CustomDeals: "custom_deals";
|
|
702
|
+
};
|
|
703
|
+
export type Feature = typeof Feature[keyof typeof Feature];
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @export
|
|
707
|
+
* @interface FeaturesResponse
|
|
708
|
+
*/
|
|
709
|
+
export interface FeaturesResponse {
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @type {Array<Feature>}
|
|
713
|
+
* @memberof FeaturesResponse
|
|
714
|
+
*/
|
|
715
|
+
'features': Array<Feature>;
|
|
716
|
+
}
|
|
693
717
|
/**
|
|
694
718
|
*
|
|
695
719
|
* @export
|
|
@@ -3593,6 +3617,13 @@ export declare const ConfigurationApiAxiosParamCreator: (configuration?: Configu
|
|
|
3593
3617
|
* @throws {RequiredError}
|
|
3594
3618
|
*/
|
|
3595
3619
|
listConfigurations: (nextToken?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3620
|
+
/**
|
|
3621
|
+
* List all features
|
|
3622
|
+
* @summary List features
|
|
3623
|
+
* @param {*} [options] Override http request option.
|
|
3624
|
+
* @throws {RequiredError}
|
|
3625
|
+
*/
|
|
3626
|
+
listFeatures: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3596
3627
|
};
|
|
3597
3628
|
/**
|
|
3598
3629
|
* ConfigurationApi - functional programming interface
|
|
@@ -3616,6 +3647,13 @@ export declare const ConfigurationApiFp: (configuration?: Configuration) => {
|
|
|
3616
3647
|
* @throws {RequiredError}
|
|
3617
3648
|
*/
|
|
3618
3649
|
listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BackofficeConfig>>;
|
|
3650
|
+
/**
|
|
3651
|
+
* List all features
|
|
3652
|
+
* @summary List features
|
|
3653
|
+
* @param {*} [options] Override http request option.
|
|
3654
|
+
* @throws {RequiredError}
|
|
3655
|
+
*/
|
|
3656
|
+
listFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FeaturesResponse>>;
|
|
3619
3657
|
};
|
|
3620
3658
|
/**
|
|
3621
3659
|
* ConfigurationApi - factory interface
|
|
@@ -3639,6 +3677,13 @@ export declare const ConfigurationApiFactory: (configuration?: Configuration, ba
|
|
|
3639
3677
|
* @throws {RequiredError}
|
|
3640
3678
|
*/
|
|
3641
3679
|
listConfigurations(nextToken?: string, search?: string, options?: any): AxiosPromise<BackofficeConfig>;
|
|
3680
|
+
/**
|
|
3681
|
+
* List all features
|
|
3682
|
+
* @summary List features
|
|
3683
|
+
* @param {*} [options] Override http request option.
|
|
3684
|
+
* @throws {RequiredError}
|
|
3685
|
+
*/
|
|
3686
|
+
listFeatures(options?: any): AxiosPromise<FeaturesResponse>;
|
|
3642
3687
|
};
|
|
3643
3688
|
/**
|
|
3644
3689
|
* ConfigurationApi - object-oriented interface
|
|
@@ -3666,6 +3711,14 @@ export declare class ConfigurationApi extends BaseAPI {
|
|
|
3666
3711
|
* @memberof ConfigurationApi
|
|
3667
3712
|
*/
|
|
3668
3713
|
listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BackofficeConfig, any>>;
|
|
3714
|
+
/**
|
|
3715
|
+
* List all features
|
|
3716
|
+
* @summary List features
|
|
3717
|
+
* @param {*} [options] Override http request option.
|
|
3718
|
+
* @throws {RequiredError}
|
|
3719
|
+
* @memberof ConfigurationApi
|
|
3720
|
+
*/
|
|
3721
|
+
listFeatures(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FeaturesResponse, any>>;
|
|
3669
3722
|
}
|
|
3670
3723
|
/**
|
|
3671
3724
|
* 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.
|
|
26
|
-
exports.
|
|
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
|
@@ -690,6 +690,30 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
|
|
|
690
690
|
* @export
|
|
691
691
|
*/
|
|
692
692
|
export type EventCreationRequestDetails = TransactionEventDetails;
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @export
|
|
696
|
+
* @enum {string}
|
|
697
|
+
*/
|
|
698
|
+
export declare const Feature: {
|
|
699
|
+
readonly Promotions: "promotions";
|
|
700
|
+
readonly SalesBudget: "sales_budget";
|
|
701
|
+
readonly CustomDeals: "custom_deals";
|
|
702
|
+
};
|
|
703
|
+
export type Feature = typeof Feature[keyof typeof Feature];
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @export
|
|
707
|
+
* @interface FeaturesResponse
|
|
708
|
+
*/
|
|
709
|
+
export interface FeaturesResponse {
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @type {Array<Feature>}
|
|
713
|
+
* @memberof FeaturesResponse
|
|
714
|
+
*/
|
|
715
|
+
'features': Array<Feature>;
|
|
716
|
+
}
|
|
693
717
|
/**
|
|
694
718
|
*
|
|
695
719
|
* @export
|
|
@@ -3593,6 +3617,13 @@ export declare const ConfigurationApiAxiosParamCreator: (configuration?: Configu
|
|
|
3593
3617
|
* @throws {RequiredError}
|
|
3594
3618
|
*/
|
|
3595
3619
|
listConfigurations: (nextToken?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3620
|
+
/**
|
|
3621
|
+
* List all features
|
|
3622
|
+
* @summary List features
|
|
3623
|
+
* @param {*} [options] Override http request option.
|
|
3624
|
+
* @throws {RequiredError}
|
|
3625
|
+
*/
|
|
3626
|
+
listFeatures: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3596
3627
|
};
|
|
3597
3628
|
/**
|
|
3598
3629
|
* ConfigurationApi - functional programming interface
|
|
@@ -3616,6 +3647,13 @@ export declare const ConfigurationApiFp: (configuration?: Configuration) => {
|
|
|
3616
3647
|
* @throws {RequiredError}
|
|
3617
3648
|
*/
|
|
3618
3649
|
listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BackofficeConfig>>;
|
|
3650
|
+
/**
|
|
3651
|
+
* List all features
|
|
3652
|
+
* @summary List features
|
|
3653
|
+
* @param {*} [options] Override http request option.
|
|
3654
|
+
* @throws {RequiredError}
|
|
3655
|
+
*/
|
|
3656
|
+
listFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FeaturesResponse>>;
|
|
3619
3657
|
};
|
|
3620
3658
|
/**
|
|
3621
3659
|
* ConfigurationApi - factory interface
|
|
@@ -3639,6 +3677,13 @@ export declare const ConfigurationApiFactory: (configuration?: Configuration, ba
|
|
|
3639
3677
|
* @throws {RequiredError}
|
|
3640
3678
|
*/
|
|
3641
3679
|
listConfigurations(nextToken?: string, search?: string, options?: any): AxiosPromise<BackofficeConfig>;
|
|
3680
|
+
/**
|
|
3681
|
+
* List all features
|
|
3682
|
+
* @summary List features
|
|
3683
|
+
* @param {*} [options] Override http request option.
|
|
3684
|
+
* @throws {RequiredError}
|
|
3685
|
+
*/
|
|
3686
|
+
listFeatures(options?: any): AxiosPromise<FeaturesResponse>;
|
|
3642
3687
|
};
|
|
3643
3688
|
/**
|
|
3644
3689
|
* ConfigurationApi - object-oriented interface
|
|
@@ -3666,6 +3711,14 @@ export declare class ConfigurationApi extends BaseAPI {
|
|
|
3666
3711
|
* @memberof ConfigurationApi
|
|
3667
3712
|
*/
|
|
3668
3713
|
listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BackofficeConfig, any>>;
|
|
3714
|
+
/**
|
|
3715
|
+
* List all features
|
|
3716
|
+
* @summary List features
|
|
3717
|
+
* @param {*} [options] Override http request option.
|
|
3718
|
+
* @throws {RequiredError}
|
|
3719
|
+
* @memberof ConfigurationApi
|
|
3720
|
+
*/
|
|
3721
|
+
listFeatures(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FeaturesResponse, any>>;
|
|
3669
3722
|
}
|
|
3670
3723
|
/**
|
|
3671
3724
|
* 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
|