flexinet-api 0.0.1237-prerelease0 → 0.0.1239
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 +106 -174
- package/dist/api.d.ts +97 -156
- package/dist/api.js +17 -33
- package/dist/esm/api.d.ts +97 -156
- package/dist/esm/api.js +14 -30
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
@@ -181,12 +181,6 @@ export interface Balance {
|
|
181
181
|
* @memberof Balance
|
182
182
|
*/
|
183
183
|
'beneficiary': Beneficiary;
|
184
|
-
/**
|
185
|
-
*
|
186
|
-
* @type {TransactionCurrencyKind}
|
187
|
-
* @memberof Balance
|
188
|
-
*/
|
189
|
-
'currency': TransactionCurrencyKind;
|
190
184
|
}
|
191
185
|
/**
|
192
186
|
*
|
@@ -212,12 +206,6 @@ export interface BalanceUpdateRequest {
|
|
212
206
|
* @memberof BalanceUpdateRequest
|
213
207
|
*/
|
214
208
|
'transactionKind'?: TransactionKind;
|
215
|
-
/**
|
216
|
-
*
|
217
|
-
* @type {TransactionCurrencyKind}
|
218
|
-
* @memberof BalanceUpdateRequest
|
219
|
-
*/
|
220
|
-
'currency'?: TransactionCurrencyKind;
|
221
209
|
}
|
222
210
|
/**
|
223
211
|
*
|
@@ -243,12 +231,6 @@ export interface BalanceWithBeneficiaryRef {
|
|
243
231
|
* @memberof BalanceWithBeneficiaryRef
|
244
232
|
*/
|
245
233
|
'beneficiaryRef': BeneficiaryWithRef;
|
246
|
-
/**
|
247
|
-
*
|
248
|
-
* @type {TransactionCurrencyKind}
|
249
|
-
* @memberof BalanceWithBeneficiaryRef
|
250
|
-
*/
|
251
|
-
'currency': TransactionCurrencyKind;
|
252
234
|
}
|
253
235
|
/**
|
254
236
|
*
|
@@ -668,14 +650,54 @@ export declare const Condition: {
|
|
668
650
|
};
|
669
651
|
export type Condition = typeof Condition[keyof typeof Condition];
|
670
652
|
/**
|
671
|
-
*
|
653
|
+
*
|
672
654
|
* @export
|
655
|
+
* @interface CustomDealRestriction
|
673
656
|
*/
|
674
|
-
export
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
657
|
+
export interface CustomDealRestriction {
|
658
|
+
/**
|
659
|
+
*
|
660
|
+
* @type {string}
|
661
|
+
* @memberof CustomDealRestriction
|
662
|
+
*/
|
663
|
+
'tagKey': string;
|
664
|
+
/**
|
665
|
+
*
|
666
|
+
* @type {string}
|
667
|
+
* @memberof CustomDealRestriction
|
668
|
+
*/
|
669
|
+
'tagValue': string;
|
670
|
+
/**
|
671
|
+
*
|
672
|
+
* @type {number}
|
673
|
+
* @memberof CustomDealRestriction
|
674
|
+
*/
|
675
|
+
'minTurnoverPercent': number;
|
676
|
+
/**
|
677
|
+
*
|
678
|
+
* @type {CustomDealRestrictionPriority}
|
679
|
+
* @memberof CustomDealRestriction
|
680
|
+
*/
|
681
|
+
'priority': CustomDealRestrictionPriority;
|
682
|
+
/**
|
683
|
+
*
|
684
|
+
* @type {number}
|
685
|
+
* @memberof CustomDealRestriction
|
686
|
+
*/
|
687
|
+
'points': number;
|
688
|
+
/**
|
689
|
+
*
|
690
|
+
* @type {string}
|
691
|
+
* @memberof CustomDealRestriction
|
692
|
+
*/
|
693
|
+
'createdAt': string;
|
694
|
+
/**
|
695
|
+
*
|
696
|
+
* @type {string}
|
697
|
+
* @memberof CustomDealRestriction
|
698
|
+
*/
|
699
|
+
'updatedAt': string;
|
700
|
+
}
|
679
701
|
/**
|
680
702
|
*
|
681
703
|
* @export
|
@@ -687,6 +709,43 @@ export declare const CustomDealRestrictionPriority: {
|
|
687
709
|
readonly High: "high";
|
688
710
|
};
|
689
711
|
export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
|
712
|
+
/**
|
713
|
+
*
|
714
|
+
* @export
|
715
|
+
* @interface CustomDealRestrictionRequest
|
716
|
+
*/
|
717
|
+
export interface CustomDealRestrictionRequest {
|
718
|
+
/**
|
719
|
+
*
|
720
|
+
* @type {string}
|
721
|
+
* @memberof CustomDealRestrictionRequest
|
722
|
+
*/
|
723
|
+
'tagKey': string;
|
724
|
+
/**
|
725
|
+
*
|
726
|
+
* @type {string}
|
727
|
+
* @memberof CustomDealRestrictionRequest
|
728
|
+
*/
|
729
|
+
'tagValue': string;
|
730
|
+
/**
|
731
|
+
*
|
732
|
+
* @type {number}
|
733
|
+
* @memberof CustomDealRestrictionRequest
|
734
|
+
*/
|
735
|
+
'minTurnoverPercent': number;
|
736
|
+
/**
|
737
|
+
*
|
738
|
+
* @type {CustomDealRestrictionPriority}
|
739
|
+
* @memberof CustomDealRestrictionRequest
|
740
|
+
*/
|
741
|
+
'priority': CustomDealRestrictionPriority;
|
742
|
+
/**
|
743
|
+
*
|
744
|
+
* @type {number}
|
745
|
+
* @memberof CustomDealRestrictionRequest
|
746
|
+
*/
|
747
|
+
'points': number;
|
748
|
+
}
|
690
749
|
/**
|
691
750
|
*
|
692
751
|
* @export
|
@@ -875,6 +934,12 @@ export interface MetricsAggregation {
|
|
875
934
|
* @memberof MetricsAggregation
|
876
935
|
*/
|
877
936
|
'total': MetricsCollection;
|
937
|
+
/**
|
938
|
+
*
|
939
|
+
* @type {string}
|
940
|
+
* @memberof MetricsAggregation
|
941
|
+
*/
|
942
|
+
'updatedAt'?: string;
|
878
943
|
}
|
879
944
|
/**
|
880
945
|
*
|
@@ -895,66 +960,6 @@ export interface MetricsCollection {
|
|
895
960
|
*/
|
896
961
|
'total': Metrics;
|
897
962
|
}
|
898
|
-
/**
|
899
|
-
*
|
900
|
-
* @export
|
901
|
-
* @interface MinTurnoverRestriction
|
902
|
-
*/
|
903
|
-
export interface MinTurnoverRestriction {
|
904
|
-
/**
|
905
|
-
*
|
906
|
-
* @type {string}
|
907
|
-
* @memberof MinTurnoverRestriction
|
908
|
-
*/
|
909
|
-
'kind': MinTurnoverRestrictionKindEnum;
|
910
|
-
/**
|
911
|
-
*
|
912
|
-
* @type {Array<MinTurnoverRestrictionValue>}
|
913
|
-
* @memberof MinTurnoverRestriction
|
914
|
-
*/
|
915
|
-
'values': Array<MinTurnoverRestrictionValue>;
|
916
|
-
}
|
917
|
-
export declare const MinTurnoverRestrictionKindEnum: {
|
918
|
-
readonly MinTurnover: "minTurnover";
|
919
|
-
};
|
920
|
-
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
921
|
-
/**
|
922
|
-
*
|
923
|
-
* @export
|
924
|
-
* @interface MinTurnoverRestrictionValue
|
925
|
-
*/
|
926
|
-
export interface MinTurnoverRestrictionValue {
|
927
|
-
/**
|
928
|
-
*
|
929
|
-
* @type {string}
|
930
|
-
* @memberof MinTurnoverRestrictionValue
|
931
|
-
*/
|
932
|
-
'tagKey': string;
|
933
|
-
/**
|
934
|
-
*
|
935
|
-
* @type {string}
|
936
|
-
* @memberof MinTurnoverRestrictionValue
|
937
|
-
*/
|
938
|
-
'tagValue': string;
|
939
|
-
/**
|
940
|
-
*
|
941
|
-
* @type {number}
|
942
|
-
* @memberof MinTurnoverRestrictionValue
|
943
|
-
*/
|
944
|
-
'minTurnoverPercent': number;
|
945
|
-
/**
|
946
|
-
*
|
947
|
-
* @type {CustomDealRestrictionPriority}
|
948
|
-
* @memberof MinTurnoverRestrictionValue
|
949
|
-
*/
|
950
|
-
'priority': CustomDealRestrictionPriority;
|
951
|
-
/**
|
952
|
-
*
|
953
|
-
* @type {number}
|
954
|
-
* @memberof MinTurnoverRestrictionValue
|
955
|
-
*/
|
956
|
-
'points': number;
|
957
|
-
}
|
958
963
|
/**
|
959
964
|
*
|
960
965
|
* @export
|
@@ -2141,12 +2146,6 @@ export interface Promotion {
|
|
2141
2146
|
* @memberof Promotion
|
2142
2147
|
*/
|
2143
2148
|
'status'?: PromotionStatus;
|
2144
|
-
/**
|
2145
|
-
*
|
2146
|
-
* @type {string}
|
2147
|
-
* @memberof Promotion
|
2148
|
-
*/
|
2149
|
-
'reference'?: string;
|
2150
2149
|
}
|
2151
2150
|
/**
|
2152
2151
|
* @type PromotionBeneficiariesResponse
|
@@ -2361,18 +2360,6 @@ export interface PromotionRequest {
|
|
2361
2360
|
* @memberof PromotionRequest
|
2362
2361
|
*/
|
2363
2362
|
'notificationConfig'?: PromotionNotificationConfig;
|
2364
|
-
/**
|
2365
|
-
*
|
2366
|
-
* @type {PromotionType}
|
2367
|
-
* @memberof PromotionRequest
|
2368
|
-
*/
|
2369
|
-
'type'?: PromotionType;
|
2370
|
-
/**
|
2371
|
-
*
|
2372
|
-
* @type {string}
|
2373
|
-
* @memberof PromotionRequest
|
2374
|
-
*/
|
2375
|
-
'reference'?: string;
|
2376
2363
|
}
|
2377
2364
|
/**
|
2378
2365
|
*
|
@@ -2547,29 +2534,6 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2547
2534
|
readonly PromotionExpanded: "promotion_expanded";
|
2548
2535
|
};
|
2549
2536
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2550
|
-
/**
|
2551
|
-
*
|
2552
|
-
* @export
|
2553
|
-
* @interface RequiredRestriction
|
2554
|
-
*/
|
2555
|
-
export interface RequiredRestriction {
|
2556
|
-
/**
|
2557
|
-
*
|
2558
|
-
* @type {string}
|
2559
|
-
* @memberof RequiredRestriction
|
2560
|
-
*/
|
2561
|
-
'kind': RequiredRestrictionKindEnum;
|
2562
|
-
/**
|
2563
|
-
*
|
2564
|
-
* @type {Array<string>}
|
2565
|
-
* @memberof RequiredRestriction
|
2566
|
-
*/
|
2567
|
-
'tagKeys': Array<string>;
|
2568
|
-
}
|
2569
|
-
export declare const RequiredRestrictionKindEnum: {
|
2570
|
-
readonly Required: "required";
|
2571
|
-
};
|
2572
|
-
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2573
2537
|
/**
|
2574
2538
|
* @type Rule
|
2575
2539
|
* @export
|
@@ -3367,24 +3331,7 @@ export interface Transaction {
|
|
3367
3331
|
* @memberof Transaction
|
3368
3332
|
*/
|
3369
3333
|
'createdAt': string;
|
3370
|
-
/**
|
3371
|
-
*
|
3372
|
-
* @type {TransactionCurrencyKind}
|
3373
|
-
* @memberof Transaction
|
3374
|
-
*/
|
3375
|
-
'currency': TransactionCurrencyKind;
|
3376
3334
|
}
|
3377
|
-
/**
|
3378
|
-
*
|
3379
|
-
* @export
|
3380
|
-
* @enum {string}
|
3381
|
-
*/
|
3382
|
-
export declare const TransactionCurrencyKind: {
|
3383
|
-
readonly Points: "points";
|
3384
|
-
readonly CustomDealBudget: "customDealBudget";
|
3385
|
-
readonly SalesBudget: "salesBudget";
|
3386
|
-
};
|
3387
|
-
export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
|
3388
3335
|
/**
|
3389
3336
|
*
|
3390
3337
|
* @export
|
@@ -3636,12 +3583,6 @@ export interface UpdatePromotionRequest {
|
|
3636
3583
|
* @memberof UpdatePromotionRequest
|
3637
3584
|
*/
|
3638
3585
|
'notificationConfig'?: PromotionNotificationConfig;
|
3639
|
-
/**
|
3640
|
-
*
|
3641
|
-
* @type {string}
|
3642
|
-
* @memberof UpdatePromotionRequest
|
3643
|
-
*/
|
3644
|
-
'reference'?: string;
|
3645
3586
|
}
|
3646
3587
|
/**
|
3647
3588
|
*
|
@@ -4923,11 +4864,11 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
4923
4864
|
/**
|
4924
4865
|
* Create custom deal restrictions
|
4925
4866
|
* @summary Create custom deal restrictions
|
4926
|
-
* @param {
|
4867
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
4927
4868
|
* @param {*} [options] Override http request option.
|
4928
4869
|
* @throws {RequiredError}
|
4929
4870
|
*/
|
4930
|
-
createCustomDealRestrictions: (
|
4871
|
+
createCustomDealRestrictions: (customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4931
4872
|
/**
|
4932
4873
|
* List custom deal restrictions
|
4933
4874
|
* @summary List custom deal restrictions
|
@@ -4944,11 +4885,11 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
4944
4885
|
/**
|
4945
4886
|
* Create custom deal restrictions
|
4946
4887
|
* @summary Create custom deal restrictions
|
4947
|
-
* @param {
|
4888
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
4948
4889
|
* @param {*} [options] Override http request option.
|
4949
4890
|
* @throws {RequiredError}
|
4950
4891
|
*/
|
4951
|
-
createCustomDealRestrictions(
|
4892
|
+
createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
4952
4893
|
/**
|
4953
4894
|
* List custom deal restrictions
|
4954
4895
|
* @summary List custom deal restrictions
|
@@ -4965,11 +4906,11 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
4965
4906
|
/**
|
4966
4907
|
* Create custom deal restrictions
|
4967
4908
|
* @summary Create custom deal restrictions
|
4968
|
-
* @param {
|
4909
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
4969
4910
|
* @param {*} [options] Override http request option.
|
4970
4911
|
* @throws {RequiredError}
|
4971
4912
|
*/
|
4972
|
-
createCustomDealRestrictions(
|
4913
|
+
createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void>;
|
4973
4914
|
/**
|
4974
4915
|
* List custom deal restrictions
|
4975
4916
|
* @summary List custom deal restrictions
|
@@ -4988,12 +4929,12 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
4988
4929
|
/**
|
4989
4930
|
* Create custom deal restrictions
|
4990
4931
|
* @summary Create custom deal restrictions
|
4991
|
-
* @param {
|
4932
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
4992
4933
|
* @param {*} [options] Override http request option.
|
4993
4934
|
* @throws {RequiredError}
|
4994
4935
|
* @memberof CustomDealsApi
|
4995
4936
|
*/
|
4996
|
-
createCustomDealRestrictions(
|
4937
|
+
createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
4997
4938
|
/**
|
4998
4939
|
* List custom deal restrictions
|
4999
4940
|
* @summary List custom deal restrictions
|
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.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.
|
26
|
-
exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = 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 = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator =
|
27
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory =
|
25
|
+
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.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
26
|
+
exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = 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 = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = void 0;
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -115,9 +115,6 @@ exports.Locale = {
|
|
115
115
|
RoRo: 'ro-ro',
|
116
116
|
HuHu: 'hu-hu'
|
117
117
|
};
|
118
|
-
exports.MinTurnoverRestrictionKindEnum = {
|
119
|
-
MinTurnover: 'minTurnover'
|
120
|
-
};
|
121
118
|
/**
|
122
119
|
*
|
123
120
|
* @export
|
@@ -292,9 +289,6 @@ exports.ReportTypesResponseTypesEnum = {
|
|
292
289
|
Promotion: 'promotion',
|
293
290
|
PromotionExpanded: 'promotion_expanded'
|
294
291
|
};
|
295
|
-
exports.RequiredRestrictionKindEnum = {
|
296
|
-
Required: 'required'
|
297
|
-
};
|
298
292
|
/**
|
299
293
|
*
|
300
294
|
* @export
|
@@ -363,16 +357,6 @@ exports.TargetMu = {
|
|
363
357
|
Product: 'product',
|
364
358
|
AdditionalMu: 'additionalMU'
|
365
359
|
};
|
366
|
-
/**
|
367
|
-
*
|
368
|
-
* @export
|
369
|
-
* @enum {string}
|
370
|
-
*/
|
371
|
-
exports.TransactionCurrencyKind = {
|
372
|
-
Points: 'points',
|
373
|
-
CustomDealBudget: 'customDealBudget',
|
374
|
-
SalesBudget: 'salesBudget'
|
375
|
-
};
|
376
360
|
/**
|
377
361
|
*
|
378
362
|
* @export
|
@@ -1858,13 +1842,13 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1858
1842
|
/**
|
1859
1843
|
* Create custom deal restrictions
|
1860
1844
|
* @summary Create custom deal restrictions
|
1861
|
-
* @param {
|
1845
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1862
1846
|
* @param {*} [options] Override http request option.
|
1863
1847
|
* @throws {RequiredError}
|
1864
1848
|
*/
|
1865
|
-
createCustomDealRestrictions: (
|
1866
|
-
// verify required parameter '
|
1867
|
-
(0, common_1.assertParamExists)('createCustomDealRestrictions', '
|
1849
|
+
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1850
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
1851
|
+
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
1868
1852
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1869
1853
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1870
1854
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1882,7 +1866,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1882
1866
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1883
1867
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1884
1868
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1885
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
1869
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customDealRestrictionRequest, localVarRequestOptions, configuration);
|
1886
1870
|
return {
|
1887
1871
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1888
1872
|
options: localVarRequestOptions,
|
@@ -1929,13 +1913,13 @@ const CustomDealsApiFp = function (configuration) {
|
|
1929
1913
|
/**
|
1930
1914
|
* Create custom deal restrictions
|
1931
1915
|
* @summary Create custom deal restrictions
|
1932
|
-
* @param {
|
1916
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1933
1917
|
* @param {*} [options] Override http request option.
|
1934
1918
|
* @throws {RequiredError}
|
1935
1919
|
*/
|
1936
|
-
createCustomDealRestrictions(
|
1920
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
1937
1921
|
return __awaiter(this, void 0, void 0, function* () {
|
1938
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(
|
1922
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
1939
1923
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1940
1924
|
});
|
1941
1925
|
},
|
@@ -1964,12 +1948,12 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
1964
1948
|
/**
|
1965
1949
|
* Create custom deal restrictions
|
1966
1950
|
* @summary Create custom deal restrictions
|
1967
|
-
* @param {
|
1951
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1968
1952
|
* @param {*} [options] Override http request option.
|
1969
1953
|
* @throws {RequiredError}
|
1970
1954
|
*/
|
1971
|
-
createCustomDealRestrictions(
|
1972
|
-
return localVarFp.createCustomDealRestrictions(
|
1955
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
1956
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
1973
1957
|
},
|
1974
1958
|
/**
|
1975
1959
|
* List custom deal restrictions
|
@@ -1993,13 +1977,13 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
1993
1977
|
/**
|
1994
1978
|
* Create custom deal restrictions
|
1995
1979
|
* @summary Create custom deal restrictions
|
1996
|
-
* @param {
|
1980
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1997
1981
|
* @param {*} [options] Override http request option.
|
1998
1982
|
* @throws {RequiredError}
|
1999
1983
|
* @memberof CustomDealsApi
|
2000
1984
|
*/
|
2001
|
-
createCustomDealRestrictions(
|
2002
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(
|
1985
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
1986
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
2003
1987
|
}
|
2004
1988
|
/**
|
2005
1989
|
* List custom deal restrictions
|