flexinet-api 0.0.1812 → 0.0.1823-prerelease0-dev
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 +64 -112
- package/dist/api.d.ts +50 -64
- package/dist/api.js +22 -75
- package/dist/esm/api.d.ts +50 -64
- package/dist/esm/api.js +19 -72
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.1823-prerelease0-dev
|
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.1823-prerelease0-dev --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -898,7 +898,7 @@ export interface CustomDealMinTargetValueResponse {
|
|
898
898
|
* @type CustomDealRestriction
|
899
899
|
* @export
|
900
900
|
*/
|
901
|
-
export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction
|
901
|
+
export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction;
|
902
902
|
|
903
903
|
/**
|
904
904
|
*
|
@@ -1139,6 +1139,45 @@ export interface MetricsCollection {
|
|
1139
1139
|
*/
|
1140
1140
|
'total': Metrics;
|
1141
1141
|
}
|
1142
|
+
/**
|
1143
|
+
*
|
1144
|
+
* @export
|
1145
|
+
* @interface MinTargetValue
|
1146
|
+
*/
|
1147
|
+
export interface MinTargetValue {
|
1148
|
+
/**
|
1149
|
+
*
|
1150
|
+
* @type {string}
|
1151
|
+
* @memberof MinTargetValue
|
1152
|
+
*/
|
1153
|
+
'startingAt': string;
|
1154
|
+
/**
|
1155
|
+
*
|
1156
|
+
* @type {string}
|
1157
|
+
* @memberof MinTargetValue
|
1158
|
+
*/
|
1159
|
+
'endingAt': string;
|
1160
|
+
/**
|
1161
|
+
*
|
1162
|
+
* @type {BeneficiaryKind}
|
1163
|
+
* @memberof MinTargetValue
|
1164
|
+
*/
|
1165
|
+
'beneficiaryKind': BeneficiaryKind;
|
1166
|
+
/**
|
1167
|
+
*
|
1168
|
+
* @type {Array<string>}
|
1169
|
+
* @memberof MinTargetValue
|
1170
|
+
*/
|
1171
|
+
'beneficiaryValues': Array<string>;
|
1172
|
+
/**
|
1173
|
+
*
|
1174
|
+
* @type {Array<Rule>}
|
1175
|
+
* @memberof MinTargetValue
|
1176
|
+
*/
|
1177
|
+
'rules': Array<Rule>;
|
1178
|
+
}
|
1179
|
+
|
1180
|
+
|
1142
1181
|
/**
|
1143
1182
|
*
|
1144
1183
|
* @export
|
@@ -1173,16 +1212,10 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1173
1212
|
export interface MinTurnoverRestrictionValue {
|
1174
1213
|
/**
|
1175
1214
|
*
|
1176
|
-
* @type {
|
1177
|
-
* @memberof MinTurnoverRestrictionValue
|
1178
|
-
*/
|
1179
|
-
'tagKey': string;
|
1180
|
-
/**
|
1181
|
-
*
|
1182
|
-
* @type {string}
|
1215
|
+
* @type {Array<Rule>}
|
1183
1216
|
* @memberof MinTurnoverRestrictionValue
|
1184
1217
|
*/
|
1185
|
-
'
|
1218
|
+
'rules': Array<Rule>;
|
1186
1219
|
/**
|
1187
1220
|
*
|
1188
1221
|
* @type {string}
|
@@ -1197,10 +1230,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1197
1230
|
'priority': CustomDealRestrictionPriority;
|
1198
1231
|
/**
|
1199
1232
|
*
|
1200
|
-
* @type {
|
1233
|
+
* @type {string}
|
1201
1234
|
* @memberof MinTurnoverRestrictionValue
|
1202
1235
|
*/
|
1203
|
-
'
|
1236
|
+
'pointsPercent': string;
|
1204
1237
|
}
|
1205
1238
|
|
1206
1239
|
|
@@ -2899,32 +2932,6 @@ export const ReportTypesResponseTypesEnum = {
|
|
2899
2932
|
|
2900
2933
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2901
2934
|
|
2902
|
-
/**
|
2903
|
-
*
|
2904
|
-
* @export
|
2905
|
-
* @interface RequiredRestriction
|
2906
|
-
*/
|
2907
|
-
export interface RequiredRestriction {
|
2908
|
-
/**
|
2909
|
-
*
|
2910
|
-
* @type {string}
|
2911
|
-
* @memberof RequiredRestriction
|
2912
|
-
*/
|
2913
|
-
'kind': RequiredRestrictionKindEnum;
|
2914
|
-
/**
|
2915
|
-
*
|
2916
|
-
* @type {Array<string>}
|
2917
|
-
* @memberof RequiredRestriction
|
2918
|
-
*/
|
2919
|
-
'tagKeys': Array<string>;
|
2920
|
-
}
|
2921
|
-
|
2922
|
-
export const RequiredRestrictionKindEnum = {
|
2923
|
-
Required: 'required'
|
2924
|
-
} as const;
|
2925
|
-
|
2926
|
-
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2927
|
-
|
2928
2935
|
/**
|
2929
2936
|
* @type Rule
|
2930
2937
|
* @export
|
@@ -6588,28 +6595,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6588
6595
|
/**
|
6589
6596
|
* Get custom deal min target value
|
6590
6597
|
* @summary Get custom deal min target value
|
6591
|
-
* @param {
|
6592
|
-
* @param {
|
6593
|
-
* @
|
6594
|
-
|
6595
|
-
|
6596
|
-
|
6597
|
-
|
6598
|
-
* @throws {RequiredError}
|
6599
|
-
*/
|
6600
|
-
getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6601
|
-
// verify required parameter 'startingAt' is not null or undefined
|
6602
|
-
assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
|
6603
|
-
// verify required parameter 'endingAt' is not null or undefined
|
6604
|
-
assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
|
6605
|
-
// verify required parameter 'beneficiaryKind' is not null or undefined
|
6606
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
|
6607
|
-
// verify required parameter 'beneficiaryValues' is not null or undefined
|
6608
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
|
6609
|
-
// verify required parameter 'tagKey' is not null or undefined
|
6610
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
|
6611
|
-
// verify required parameter 'tagValue' is not null or undefined
|
6612
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
|
6598
|
+
* @param {MinTargetValue} minTargetValue
|
6599
|
+
* @param {*} [options] Override http request option.
|
6600
|
+
* @throws {RequiredError}
|
6601
|
+
*/
|
6602
|
+
getCustomDealMinTargetValue: async (minTargetValue: MinTargetValue, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6603
|
+
// verify required parameter 'minTargetValue' is not null or undefined
|
6604
|
+
assertParamExists('getCustomDealMinTargetValue', 'minTargetValue', minTargetValue)
|
6613
6605
|
const localVarPath = `/admins/custom-deals/min-target-value`;
|
6614
6606
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6615
6607
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6618,7 +6610,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6618
6610
|
baseOptions = configuration.baseOptions;
|
6619
6611
|
}
|
6620
6612
|
|
6621
|
-
const localVarRequestOptions = { method: '
|
6613
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
6622
6614
|
const localVarHeaderParameter = {} as any;
|
6623
6615
|
const localVarQueryParameter = {} as any;
|
6624
6616
|
|
@@ -6626,39 +6618,14 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6626
6618
|
// http bearer authentication required
|
6627
6619
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6628
6620
|
|
6629
|
-
if (startingAt !== undefined) {
|
6630
|
-
localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
|
6631
|
-
(startingAt as any).toISOString() :
|
6632
|
-
startingAt;
|
6633
|
-
}
|
6634
|
-
|
6635
|
-
if (endingAt !== undefined) {
|
6636
|
-
localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
|
6637
|
-
(endingAt as any).toISOString() :
|
6638
|
-
endingAt;
|
6639
|
-
}
|
6640
|
-
|
6641
|
-
if (beneficiaryKind !== undefined) {
|
6642
|
-
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
6643
|
-
}
|
6644
|
-
|
6645
|
-
if (beneficiaryValues) {
|
6646
|
-
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
6647
|
-
}
|
6648
|
-
|
6649
|
-
if (tagKey !== undefined) {
|
6650
|
-
localVarQueryParameter['tagKey'] = tagKey;
|
6651
|
-
}
|
6652
|
-
|
6653
|
-
if (tagValue !== undefined) {
|
6654
|
-
localVarQueryParameter['tagValue'] = tagValue;
|
6655
|
-
}
|
6656
|
-
|
6657
6621
|
|
6658
6622
|
|
6623
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
6624
|
+
|
6659
6625
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6660
6626
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6661
6627
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6628
|
+
localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration)
|
6662
6629
|
|
6663
6630
|
return {
|
6664
6631
|
url: toPathString(localVarUrlObj),
|
@@ -6723,17 +6690,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
6723
6690
|
/**
|
6724
6691
|
* Get custom deal min target value
|
6725
6692
|
* @summary Get custom deal min target value
|
6726
|
-
* @param {
|
6727
|
-
* @param {string} endingAt end at
|
6728
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6729
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6730
|
-
* @param {string} tagKey tag key
|
6731
|
-
* @param {string} tagValue tag value
|
6693
|
+
* @param {MinTargetValue} minTargetValue
|
6732
6694
|
* @param {*} [options] Override http request option.
|
6733
6695
|
* @throws {RequiredError}
|
6734
6696
|
*/
|
6735
|
-
async getCustomDealMinTargetValue(
|
6736
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(
|
6697
|
+
async getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
|
6698
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(minTargetValue, options);
|
6737
6699
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6738
6700
|
},
|
6739
6701
|
/**
|
@@ -6769,17 +6731,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6769
6731
|
/**
|
6770
6732
|
* Get custom deal min target value
|
6771
6733
|
* @summary Get custom deal min target value
|
6772
|
-
* @param {
|
6773
|
-
* @param {string} endingAt end at
|
6774
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6775
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6776
|
-
* @param {string} tagKey tag key
|
6777
|
-
* @param {string} tagValue tag value
|
6734
|
+
* @param {MinTargetValue} minTargetValue
|
6778
6735
|
* @param {*} [options] Override http request option.
|
6779
6736
|
* @throws {RequiredError}
|
6780
6737
|
*/
|
6781
|
-
getCustomDealMinTargetValue(
|
6782
|
-
return localVarFp.getCustomDealMinTargetValue(
|
6738
|
+
getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
|
6739
|
+
return localVarFp.getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(axios, basePath));
|
6783
6740
|
},
|
6784
6741
|
/**
|
6785
6742
|
* List custom deal restrictions
|
@@ -6815,18 +6772,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
6815
6772
|
/**
|
6816
6773
|
* Get custom deal min target value
|
6817
6774
|
* @summary Get custom deal min target value
|
6818
|
-
* @param {
|
6819
|
-
* @param {string} endingAt end at
|
6820
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6821
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6822
|
-
* @param {string} tagKey tag key
|
6823
|
-
* @param {string} tagValue tag value
|
6775
|
+
* @param {MinTargetValue} minTargetValue
|
6824
6776
|
* @param {*} [options] Override http request option.
|
6825
6777
|
* @throws {RequiredError}
|
6826
6778
|
* @memberof CustomDealsApi
|
6827
6779
|
*/
|
6828
|
-
public getCustomDealMinTargetValue(
|
6829
|
-
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(
|
6780
|
+
public getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig) {
|
6781
|
+
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(this.axios, this.basePath));
|
6830
6782
|
}
|
6831
6783
|
|
6832
6784
|
/**
|
package/dist/api.d.ts
CHANGED
@@ -843,9 +843,7 @@ export interface CustomDealMinTargetValueResponse {
|
|
843
843
|
*/
|
844
844
|
export type CustomDealRestriction = {
|
845
845
|
kind: 'minTurnover';
|
846
|
-
} & MinTurnoverRestriction
|
847
|
-
kind: 'required';
|
848
|
-
} & RequiredRestriction;
|
846
|
+
} & MinTurnoverRestriction;
|
849
847
|
/**
|
850
848
|
*
|
851
849
|
* @export
|
@@ -1075,6 +1073,43 @@ export interface MetricsCollection {
|
|
1075
1073
|
*/
|
1076
1074
|
'total': Metrics;
|
1077
1075
|
}
|
1076
|
+
/**
|
1077
|
+
*
|
1078
|
+
* @export
|
1079
|
+
* @interface MinTargetValue
|
1080
|
+
*/
|
1081
|
+
export interface MinTargetValue {
|
1082
|
+
/**
|
1083
|
+
*
|
1084
|
+
* @type {string}
|
1085
|
+
* @memberof MinTargetValue
|
1086
|
+
*/
|
1087
|
+
'startingAt': string;
|
1088
|
+
/**
|
1089
|
+
*
|
1090
|
+
* @type {string}
|
1091
|
+
* @memberof MinTargetValue
|
1092
|
+
*/
|
1093
|
+
'endingAt': string;
|
1094
|
+
/**
|
1095
|
+
*
|
1096
|
+
* @type {BeneficiaryKind}
|
1097
|
+
* @memberof MinTargetValue
|
1098
|
+
*/
|
1099
|
+
'beneficiaryKind': BeneficiaryKind;
|
1100
|
+
/**
|
1101
|
+
*
|
1102
|
+
* @type {Array<string>}
|
1103
|
+
* @memberof MinTargetValue
|
1104
|
+
*/
|
1105
|
+
'beneficiaryValues': Array<string>;
|
1106
|
+
/**
|
1107
|
+
*
|
1108
|
+
* @type {Array<Rule>}
|
1109
|
+
* @memberof MinTargetValue
|
1110
|
+
*/
|
1111
|
+
'rules': Array<Rule>;
|
1112
|
+
}
|
1078
1113
|
/**
|
1079
1114
|
*
|
1080
1115
|
* @export
|
@@ -1106,16 +1141,10 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1106
1141
|
export interface MinTurnoverRestrictionValue {
|
1107
1142
|
/**
|
1108
1143
|
*
|
1109
|
-
* @type {
|
1110
|
-
* @memberof MinTurnoverRestrictionValue
|
1111
|
-
*/
|
1112
|
-
'tagKey': string;
|
1113
|
-
/**
|
1114
|
-
*
|
1115
|
-
* @type {string}
|
1144
|
+
* @type {Array<Rule>}
|
1116
1145
|
* @memberof MinTurnoverRestrictionValue
|
1117
1146
|
*/
|
1118
|
-
'
|
1147
|
+
'rules': Array<Rule>;
|
1119
1148
|
/**
|
1120
1149
|
*
|
1121
1150
|
* @type {string}
|
@@ -1130,10 +1159,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1130
1159
|
'priority': CustomDealRestrictionPriority;
|
1131
1160
|
/**
|
1132
1161
|
*
|
1133
|
-
* @type {
|
1162
|
+
* @type {string}
|
1134
1163
|
* @memberof MinTurnoverRestrictionValue
|
1135
1164
|
*/
|
1136
|
-
'
|
1165
|
+
'pointsPercent': string;
|
1137
1166
|
}
|
1138
1167
|
/**
|
1139
1168
|
*
|
@@ -2740,29 +2769,6 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2740
2769
|
readonly PromotionExpanded: "promotion_expanded";
|
2741
2770
|
};
|
2742
2771
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2743
|
-
/**
|
2744
|
-
*
|
2745
|
-
* @export
|
2746
|
-
* @interface RequiredRestriction
|
2747
|
-
*/
|
2748
|
-
export interface RequiredRestriction {
|
2749
|
-
/**
|
2750
|
-
*
|
2751
|
-
* @type {string}
|
2752
|
-
* @memberof RequiredRestriction
|
2753
|
-
*/
|
2754
|
-
'kind': RequiredRestrictionKindEnum;
|
2755
|
-
/**
|
2756
|
-
*
|
2757
|
-
* @type {Array<string>}
|
2758
|
-
* @memberof RequiredRestriction
|
2759
|
-
*/
|
2760
|
-
'tagKeys': Array<string>;
|
2761
|
-
}
|
2762
|
-
export declare const RequiredRestrictionKindEnum: {
|
2763
|
-
readonly Required: "required";
|
2764
|
-
};
|
2765
|
-
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2766
2772
|
/**
|
2767
2773
|
* @type Rule
|
2768
2774
|
* @export
|
@@ -5339,16 +5345,11 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
5339
5345
|
/**
|
5340
5346
|
* Get custom deal min target value
|
5341
5347
|
* @summary Get custom deal min target value
|
5342
|
-
* @param {
|
5343
|
-
* @param {string} endingAt end at
|
5344
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5345
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
5346
|
-
* @param {string} tagKey tag key
|
5347
|
-
* @param {string} tagValue tag value
|
5348
|
+
* @param {MinTargetValue} minTargetValue
|
5348
5349
|
* @param {*} [options] Override http request option.
|
5349
5350
|
* @throws {RequiredError}
|
5350
5351
|
*/
|
5351
|
-
getCustomDealMinTargetValue: (
|
5352
|
+
getCustomDealMinTargetValue: (minTargetValue: MinTargetValue, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5352
5353
|
/**
|
5353
5354
|
* List custom deal restrictions
|
5354
5355
|
* @summary List custom deal restrictions
|
@@ -5373,16 +5374,11 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
5373
5374
|
/**
|
5374
5375
|
* Get custom deal min target value
|
5375
5376
|
* @summary Get custom deal min target value
|
5376
|
-
* @param {
|
5377
|
-
* @param {string} endingAt end at
|
5378
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5379
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
5380
|
-
* @param {string} tagKey tag key
|
5381
|
-
* @param {string} tagValue tag value
|
5377
|
+
* @param {MinTargetValue} minTargetValue
|
5382
5378
|
* @param {*} [options] Override http request option.
|
5383
5379
|
* @throws {RequiredError}
|
5384
5380
|
*/
|
5385
|
-
getCustomDealMinTargetValue(
|
5381
|
+
getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
|
5386
5382
|
/**
|
5387
5383
|
* List custom deal restrictions
|
5388
5384
|
* @summary List custom deal restrictions
|
@@ -5407,16 +5403,11 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
5407
5403
|
/**
|
5408
5404
|
* Get custom deal min target value
|
5409
5405
|
* @summary Get custom deal min target value
|
5410
|
-
* @param {
|
5411
|
-
* @param {string} endingAt end at
|
5412
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5413
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
5414
|
-
* @param {string} tagKey tag key
|
5415
|
-
* @param {string} tagValue tag value
|
5406
|
+
* @param {MinTargetValue} minTargetValue
|
5416
5407
|
* @param {*} [options] Override http request option.
|
5417
5408
|
* @throws {RequiredError}
|
5418
5409
|
*/
|
5419
|
-
getCustomDealMinTargetValue(
|
5410
|
+
getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
|
5420
5411
|
/**
|
5421
5412
|
* List custom deal restrictions
|
5422
5413
|
* @summary List custom deal restrictions
|
@@ -5444,17 +5435,12 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
5444
5435
|
/**
|
5445
5436
|
* Get custom deal min target value
|
5446
5437
|
* @summary Get custom deal min target value
|
5447
|
-
* @param {
|
5448
|
-
* @param {string} endingAt end at
|
5449
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5450
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
5451
|
-
* @param {string} tagKey tag key
|
5452
|
-
* @param {string} tagValue tag value
|
5438
|
+
* @param {MinTargetValue} minTargetValue
|
5453
5439
|
* @param {*} [options] Override http request option.
|
5454
5440
|
* @throws {RequiredError}
|
5455
5441
|
* @memberof CustomDealsApi
|
5456
5442
|
*/
|
5457
|
-
getCustomDealMinTargetValue(
|
5443
|
+
getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
|
5458
5444
|
/**
|
5459
5445
|
* List custom deal restrictions
|
5460
5446
|
* @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.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventPriority = exports.TransactionEventKind = exports.TransactionCurrencyKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.
|
26
|
-
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 = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp =
|
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 = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi =
|
25
|
+
exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventPriority = exports.TransactionEventKind = exports.TransactionCurrencyKind = 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.MinTurnoverRestrictionKindEnum = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
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 = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = 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 = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -297,9 +297,6 @@ exports.ReportTypesResponseTypesEnum = {
|
|
297
297
|
Promotion: 'promotion',
|
298
298
|
PromotionExpanded: 'promotion_expanded'
|
299
299
|
};
|
300
|
-
exports.RequiredRestrictionKindEnum = {
|
301
|
-
Required: 'required'
|
302
|
-
};
|
303
300
|
/**
|
304
301
|
*
|
305
302
|
* @export
|
@@ -2251,28 +2248,13 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2251
2248
|
/**
|
2252
2249
|
* Get custom deal min target value
|
2253
2250
|
* @summary Get custom deal min target value
|
2254
|
-
* @param {
|
2255
|
-
* @param {
|
2256
|
-
* @
|
2257
|
-
|
2258
|
-
|
2259
|
-
|
2260
|
-
|
2261
|
-
* @throws {RequiredError}
|
2262
|
-
*/
|
2263
|
-
getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2264
|
-
// verify required parameter 'startingAt' is not null or undefined
|
2265
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'startingAt', startingAt);
|
2266
|
-
// verify required parameter 'endingAt' is not null or undefined
|
2267
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'endingAt', endingAt);
|
2268
|
-
// verify required parameter 'beneficiaryKind' is not null or undefined
|
2269
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
|
2270
|
-
// verify required parameter 'beneficiaryValues' is not null or undefined
|
2271
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
|
2272
|
-
// verify required parameter 'tagKey' is not null or undefined
|
2273
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagKey', tagKey);
|
2274
|
-
// verify required parameter 'tagValue' is not null or undefined
|
2275
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagValue', tagValue);
|
2251
|
+
* @param {MinTargetValue} minTargetValue
|
2252
|
+
* @param {*} [options] Override http request option.
|
2253
|
+
* @throws {RequiredError}
|
2254
|
+
*/
|
2255
|
+
getCustomDealMinTargetValue: (minTargetValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2256
|
+
// verify required parameter 'minTargetValue' is not null or undefined
|
2257
|
+
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'minTargetValue', minTargetValue);
|
2276
2258
|
const localVarPath = `/admins/custom-deals/min-target-value`;
|
2277
2259
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2278
2260
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -2280,37 +2262,17 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2280
2262
|
if (configuration) {
|
2281
2263
|
baseOptions = configuration.baseOptions;
|
2282
2264
|
}
|
2283
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
2265
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2284
2266
|
const localVarHeaderParameter = {};
|
2285
2267
|
const localVarQueryParameter = {};
|
2286
2268
|
// authentication systemJWT required
|
2287
2269
|
// http bearer authentication required
|
2288
2270
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2289
|
-
|
2290
|
-
localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
|
2291
|
-
startingAt.toISOString() :
|
2292
|
-
startingAt;
|
2293
|
-
}
|
2294
|
-
if (endingAt !== undefined) {
|
2295
|
-
localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
|
2296
|
-
endingAt.toISOString() :
|
2297
|
-
endingAt;
|
2298
|
-
}
|
2299
|
-
if (beneficiaryKind !== undefined) {
|
2300
|
-
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
2301
|
-
}
|
2302
|
-
if (beneficiaryValues) {
|
2303
|
-
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
2304
|
-
}
|
2305
|
-
if (tagKey !== undefined) {
|
2306
|
-
localVarQueryParameter['tagKey'] = tagKey;
|
2307
|
-
}
|
2308
|
-
if (tagValue !== undefined) {
|
2309
|
-
localVarQueryParameter['tagValue'] = tagValue;
|
2310
|
-
}
|
2271
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2311
2272
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2312
2273
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2313
2274
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2275
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(minTargetValue, localVarRequestOptions, configuration);
|
2314
2276
|
return {
|
2315
2277
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
2316
2278
|
options: localVarRequestOptions,
|
@@ -2370,18 +2332,13 @@ const CustomDealsApiFp = function (configuration) {
|
|
2370
2332
|
/**
|
2371
2333
|
* Get custom deal min target value
|
2372
2334
|
* @summary Get custom deal min target value
|
2373
|
-
* @param {
|
2374
|
-
* @param {string} endingAt end at
|
2375
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2376
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2377
|
-
* @param {string} tagKey tag key
|
2378
|
-
* @param {string} tagValue tag value
|
2335
|
+
* @param {MinTargetValue} minTargetValue
|
2379
2336
|
* @param {*} [options] Override http request option.
|
2380
2337
|
* @throws {RequiredError}
|
2381
2338
|
*/
|
2382
|
-
getCustomDealMinTargetValue(
|
2339
|
+
getCustomDealMinTargetValue(minTargetValue, options) {
|
2383
2340
|
return __awaiter(this, void 0, void 0, function* () {
|
2384
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(
|
2341
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(minTargetValue, options);
|
2385
2342
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2386
2343
|
});
|
2387
2344
|
},
|
@@ -2420,17 +2377,12 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2420
2377
|
/**
|
2421
2378
|
* Get custom deal min target value
|
2422
2379
|
* @summary Get custom deal min target value
|
2423
|
-
* @param {
|
2424
|
-
* @param {string} endingAt end at
|
2425
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2426
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2427
|
-
* @param {string} tagKey tag key
|
2428
|
-
* @param {string} tagValue tag value
|
2380
|
+
* @param {MinTargetValue} minTargetValue
|
2429
2381
|
* @param {*} [options] Override http request option.
|
2430
2382
|
* @throws {RequiredError}
|
2431
2383
|
*/
|
2432
|
-
getCustomDealMinTargetValue(
|
2433
|
-
return localVarFp.getCustomDealMinTargetValue(
|
2384
|
+
getCustomDealMinTargetValue(minTargetValue, options) {
|
2385
|
+
return localVarFp.getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(axios, basePath));
|
2434
2386
|
},
|
2435
2387
|
/**
|
2436
2388
|
* List custom deal restrictions
|
@@ -2465,18 +2417,13 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
2465
2417
|
/**
|
2466
2418
|
* Get custom deal min target value
|
2467
2419
|
* @summary Get custom deal min target value
|
2468
|
-
* @param {
|
2469
|
-
* @param {string} endingAt end at
|
2470
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2471
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2472
|
-
* @param {string} tagKey tag key
|
2473
|
-
* @param {string} tagValue tag value
|
2420
|
+
* @param {MinTargetValue} minTargetValue
|
2474
2421
|
* @param {*} [options] Override http request option.
|
2475
2422
|
* @throws {RequiredError}
|
2476
2423
|
* @memberof CustomDealsApi
|
2477
2424
|
*/
|
2478
|
-
getCustomDealMinTargetValue(
|
2479
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(
|
2425
|
+
getCustomDealMinTargetValue(minTargetValue, options) {
|
2426
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(this.axios, this.basePath));
|
2480
2427
|
}
|
2481
2428
|
/**
|
2482
2429
|
* List custom deal restrictions
|
package/dist/esm/api.d.ts
CHANGED
@@ -843,9 +843,7 @@ export interface CustomDealMinTargetValueResponse {
|
|
843
843
|
*/
|
844
844
|
export type CustomDealRestriction = {
|
845
845
|
kind: 'minTurnover';
|
846
|
-
} & MinTurnoverRestriction
|
847
|
-
kind: 'required';
|
848
|
-
} & RequiredRestriction;
|
846
|
+
} & MinTurnoverRestriction;
|
849
847
|
/**
|
850
848
|
*
|
851
849
|
* @export
|
@@ -1075,6 +1073,43 @@ export interface MetricsCollection {
|
|
1075
1073
|
*/
|
1076
1074
|
'total': Metrics;
|
1077
1075
|
}
|
1076
|
+
/**
|
1077
|
+
*
|
1078
|
+
* @export
|
1079
|
+
* @interface MinTargetValue
|
1080
|
+
*/
|
1081
|
+
export interface MinTargetValue {
|
1082
|
+
/**
|
1083
|
+
*
|
1084
|
+
* @type {string}
|
1085
|
+
* @memberof MinTargetValue
|
1086
|
+
*/
|
1087
|
+
'startingAt': string;
|
1088
|
+
/**
|
1089
|
+
*
|
1090
|
+
* @type {string}
|
1091
|
+
* @memberof MinTargetValue
|
1092
|
+
*/
|
1093
|
+
'endingAt': string;
|
1094
|
+
/**
|
1095
|
+
*
|
1096
|
+
* @type {BeneficiaryKind}
|
1097
|
+
* @memberof MinTargetValue
|
1098
|
+
*/
|
1099
|
+
'beneficiaryKind': BeneficiaryKind;
|
1100
|
+
/**
|
1101
|
+
*
|
1102
|
+
* @type {Array<string>}
|
1103
|
+
* @memberof MinTargetValue
|
1104
|
+
*/
|
1105
|
+
'beneficiaryValues': Array<string>;
|
1106
|
+
/**
|
1107
|
+
*
|
1108
|
+
* @type {Array<Rule>}
|
1109
|
+
* @memberof MinTargetValue
|
1110
|
+
*/
|
1111
|
+
'rules': Array<Rule>;
|
1112
|
+
}
|
1078
1113
|
/**
|
1079
1114
|
*
|
1080
1115
|
* @export
|
@@ -1106,16 +1141,10 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1106
1141
|
export interface MinTurnoverRestrictionValue {
|
1107
1142
|
/**
|
1108
1143
|
*
|
1109
|
-
* @type {
|
1110
|
-
* @memberof MinTurnoverRestrictionValue
|
1111
|
-
*/
|
1112
|
-
'tagKey': string;
|
1113
|
-
/**
|
1114
|
-
*
|
1115
|
-
* @type {string}
|
1144
|
+
* @type {Array<Rule>}
|
1116
1145
|
* @memberof MinTurnoverRestrictionValue
|
1117
1146
|
*/
|
1118
|
-
'
|
1147
|
+
'rules': Array<Rule>;
|
1119
1148
|
/**
|
1120
1149
|
*
|
1121
1150
|
* @type {string}
|
@@ -1130,10 +1159,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1130
1159
|
'priority': CustomDealRestrictionPriority;
|
1131
1160
|
/**
|
1132
1161
|
*
|
1133
|
-
* @type {
|
1162
|
+
* @type {string}
|
1134
1163
|
* @memberof MinTurnoverRestrictionValue
|
1135
1164
|
*/
|
1136
|
-
'
|
1165
|
+
'pointsPercent': string;
|
1137
1166
|
}
|
1138
1167
|
/**
|
1139
1168
|
*
|
@@ -2740,29 +2769,6 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2740
2769
|
readonly PromotionExpanded: "promotion_expanded";
|
2741
2770
|
};
|
2742
2771
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2743
|
-
/**
|
2744
|
-
*
|
2745
|
-
* @export
|
2746
|
-
* @interface RequiredRestriction
|
2747
|
-
*/
|
2748
|
-
export interface RequiredRestriction {
|
2749
|
-
/**
|
2750
|
-
*
|
2751
|
-
* @type {string}
|
2752
|
-
* @memberof RequiredRestriction
|
2753
|
-
*/
|
2754
|
-
'kind': RequiredRestrictionKindEnum;
|
2755
|
-
/**
|
2756
|
-
*
|
2757
|
-
* @type {Array<string>}
|
2758
|
-
* @memberof RequiredRestriction
|
2759
|
-
*/
|
2760
|
-
'tagKeys': Array<string>;
|
2761
|
-
}
|
2762
|
-
export declare const RequiredRestrictionKindEnum: {
|
2763
|
-
readonly Required: "required";
|
2764
|
-
};
|
2765
|
-
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2766
2772
|
/**
|
2767
2773
|
* @type Rule
|
2768
2774
|
* @export
|
@@ -5339,16 +5345,11 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
5339
5345
|
/**
|
5340
5346
|
* Get custom deal min target value
|
5341
5347
|
* @summary Get custom deal min target value
|
5342
|
-
* @param {
|
5343
|
-
* @param {string} endingAt end at
|
5344
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5345
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
5346
|
-
* @param {string} tagKey tag key
|
5347
|
-
* @param {string} tagValue tag value
|
5348
|
+
* @param {MinTargetValue} minTargetValue
|
5348
5349
|
* @param {*} [options] Override http request option.
|
5349
5350
|
* @throws {RequiredError}
|
5350
5351
|
*/
|
5351
|
-
getCustomDealMinTargetValue: (
|
5352
|
+
getCustomDealMinTargetValue: (minTargetValue: MinTargetValue, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5352
5353
|
/**
|
5353
5354
|
* List custom deal restrictions
|
5354
5355
|
* @summary List custom deal restrictions
|
@@ -5373,16 +5374,11 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
5373
5374
|
/**
|
5374
5375
|
* Get custom deal min target value
|
5375
5376
|
* @summary Get custom deal min target value
|
5376
|
-
* @param {
|
5377
|
-
* @param {string} endingAt end at
|
5378
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5379
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
5380
|
-
* @param {string} tagKey tag key
|
5381
|
-
* @param {string} tagValue tag value
|
5377
|
+
* @param {MinTargetValue} minTargetValue
|
5382
5378
|
* @param {*} [options] Override http request option.
|
5383
5379
|
* @throws {RequiredError}
|
5384
5380
|
*/
|
5385
|
-
getCustomDealMinTargetValue(
|
5381
|
+
getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
|
5386
5382
|
/**
|
5387
5383
|
* List custom deal restrictions
|
5388
5384
|
* @summary List custom deal restrictions
|
@@ -5407,16 +5403,11 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
5407
5403
|
/**
|
5408
5404
|
* Get custom deal min target value
|
5409
5405
|
* @summary Get custom deal min target value
|
5410
|
-
* @param {
|
5411
|
-
* @param {string} endingAt end at
|
5412
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5413
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
5414
|
-
* @param {string} tagKey tag key
|
5415
|
-
* @param {string} tagValue tag value
|
5406
|
+
* @param {MinTargetValue} minTargetValue
|
5416
5407
|
* @param {*} [options] Override http request option.
|
5417
5408
|
* @throws {RequiredError}
|
5418
5409
|
*/
|
5419
|
-
getCustomDealMinTargetValue(
|
5410
|
+
getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
|
5420
5411
|
/**
|
5421
5412
|
* List custom deal restrictions
|
5422
5413
|
* @summary List custom deal restrictions
|
@@ -5444,17 +5435,12 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
5444
5435
|
/**
|
5445
5436
|
* Get custom deal min target value
|
5446
5437
|
* @summary Get custom deal min target value
|
5447
|
-
* @param {
|
5448
|
-
* @param {string} endingAt end at
|
5449
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5450
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
5451
|
-
* @param {string} tagKey tag key
|
5452
|
-
* @param {string} tagValue tag value
|
5438
|
+
* @param {MinTargetValue} minTargetValue
|
5453
5439
|
* @param {*} [options] Override http request option.
|
5454
5440
|
* @throws {RequiredError}
|
5455
5441
|
* @memberof CustomDealsApi
|
5456
5442
|
*/
|
5457
|
-
getCustomDealMinTargetValue(
|
5443
|
+
getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
|
5458
5444
|
/**
|
5459
5445
|
* List custom deal restrictions
|
5460
5446
|
* @summary List custom deal restrictions
|
package/dist/esm/api.js
CHANGED
@@ -292,9 +292,6 @@ export const ReportTypesResponseTypesEnum = {
|
|
292
292
|
Promotion: 'promotion',
|
293
293
|
PromotionExpanded: 'promotion_expanded'
|
294
294
|
};
|
295
|
-
export const RequiredRestrictionKindEnum = {
|
296
|
-
Required: 'required'
|
297
|
-
};
|
298
295
|
/**
|
299
296
|
*
|
300
297
|
* @export
|
@@ -2222,28 +2219,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2222
2219
|
/**
|
2223
2220
|
* Get custom deal min target value
|
2224
2221
|
* @summary Get custom deal min target value
|
2225
|
-
* @param {
|
2226
|
-
* @param {
|
2227
|
-
* @
|
2228
|
-
|
2229
|
-
|
2230
|
-
|
2231
|
-
|
2232
|
-
* @throws {RequiredError}
|
2233
|
-
*/
|
2234
|
-
getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2235
|
-
// verify required parameter 'startingAt' is not null or undefined
|
2236
|
-
assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt);
|
2237
|
-
// verify required parameter 'endingAt' is not null or undefined
|
2238
|
-
assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt);
|
2239
|
-
// verify required parameter 'beneficiaryKind' is not null or undefined
|
2240
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
|
2241
|
-
// verify required parameter 'beneficiaryValues' is not null or undefined
|
2242
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
|
2243
|
-
// verify required parameter 'tagKey' is not null or undefined
|
2244
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey);
|
2245
|
-
// verify required parameter 'tagValue' is not null or undefined
|
2246
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue);
|
2222
|
+
* @param {MinTargetValue} minTargetValue
|
2223
|
+
* @param {*} [options] Override http request option.
|
2224
|
+
* @throws {RequiredError}
|
2225
|
+
*/
|
2226
|
+
getCustomDealMinTargetValue: (minTargetValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2227
|
+
// verify required parameter 'minTargetValue' is not null or undefined
|
2228
|
+
assertParamExists('getCustomDealMinTargetValue', 'minTargetValue', minTargetValue);
|
2247
2229
|
const localVarPath = `/admins/custom-deals/min-target-value`;
|
2248
2230
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2249
2231
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -2251,37 +2233,17 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2251
2233
|
if (configuration) {
|
2252
2234
|
baseOptions = configuration.baseOptions;
|
2253
2235
|
}
|
2254
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
2236
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2255
2237
|
const localVarHeaderParameter = {};
|
2256
2238
|
const localVarQueryParameter = {};
|
2257
2239
|
// authentication systemJWT required
|
2258
2240
|
// http bearer authentication required
|
2259
2241
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2260
|
-
|
2261
|
-
localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
|
2262
|
-
startingAt.toISOString() :
|
2263
|
-
startingAt;
|
2264
|
-
}
|
2265
|
-
if (endingAt !== undefined) {
|
2266
|
-
localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
|
2267
|
-
endingAt.toISOString() :
|
2268
|
-
endingAt;
|
2269
|
-
}
|
2270
|
-
if (beneficiaryKind !== undefined) {
|
2271
|
-
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
2272
|
-
}
|
2273
|
-
if (beneficiaryValues) {
|
2274
|
-
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
2275
|
-
}
|
2276
|
-
if (tagKey !== undefined) {
|
2277
|
-
localVarQueryParameter['tagKey'] = tagKey;
|
2278
|
-
}
|
2279
|
-
if (tagValue !== undefined) {
|
2280
|
-
localVarQueryParameter['tagValue'] = tagValue;
|
2281
|
-
}
|
2242
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2282
2243
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2283
2244
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2284
2245
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2246
|
+
localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration);
|
2285
2247
|
return {
|
2286
2248
|
url: toPathString(localVarUrlObj),
|
2287
2249
|
options: localVarRequestOptions,
|
@@ -2340,18 +2302,13 @@ export const CustomDealsApiFp = function (configuration) {
|
|
2340
2302
|
/**
|
2341
2303
|
* Get custom deal min target value
|
2342
2304
|
* @summary Get custom deal min target value
|
2343
|
-
* @param {
|
2344
|
-
* @param {string} endingAt end at
|
2345
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2346
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2347
|
-
* @param {string} tagKey tag key
|
2348
|
-
* @param {string} tagValue tag value
|
2305
|
+
* @param {MinTargetValue} minTargetValue
|
2349
2306
|
* @param {*} [options] Override http request option.
|
2350
2307
|
* @throws {RequiredError}
|
2351
2308
|
*/
|
2352
|
-
getCustomDealMinTargetValue(
|
2309
|
+
getCustomDealMinTargetValue(minTargetValue, options) {
|
2353
2310
|
return __awaiter(this, void 0, void 0, function* () {
|
2354
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(
|
2311
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(minTargetValue, options);
|
2355
2312
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2356
2313
|
});
|
2357
2314
|
},
|
@@ -2389,17 +2346,12 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2389
2346
|
/**
|
2390
2347
|
* Get custom deal min target value
|
2391
2348
|
* @summary Get custom deal min target value
|
2392
|
-
* @param {
|
2393
|
-
* @param {string} endingAt end at
|
2394
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2395
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2396
|
-
* @param {string} tagKey tag key
|
2397
|
-
* @param {string} tagValue tag value
|
2349
|
+
* @param {MinTargetValue} minTargetValue
|
2398
2350
|
* @param {*} [options] Override http request option.
|
2399
2351
|
* @throws {RequiredError}
|
2400
2352
|
*/
|
2401
|
-
getCustomDealMinTargetValue(
|
2402
|
-
return localVarFp.getCustomDealMinTargetValue(
|
2353
|
+
getCustomDealMinTargetValue(minTargetValue, options) {
|
2354
|
+
return localVarFp.getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(axios, basePath));
|
2403
2355
|
},
|
2404
2356
|
/**
|
2405
2357
|
* List custom deal restrictions
|
@@ -2433,18 +2385,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
2433
2385
|
/**
|
2434
2386
|
* Get custom deal min target value
|
2435
2387
|
* @summary Get custom deal min target value
|
2436
|
-
* @param {
|
2437
|
-
* @param {string} endingAt end at
|
2438
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2439
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2440
|
-
* @param {string} tagKey tag key
|
2441
|
-
* @param {string} tagValue tag value
|
2388
|
+
* @param {MinTargetValue} minTargetValue
|
2442
2389
|
* @param {*} [options] Override http request option.
|
2443
2390
|
* @throws {RequiredError}
|
2444
2391
|
* @memberof CustomDealsApi
|
2445
2392
|
*/
|
2446
|
-
getCustomDealMinTargetValue(
|
2447
|
-
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(
|
2393
|
+
getCustomDealMinTargetValue(minTargetValue, options) {
|
2394
|
+
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(this.axios, this.basePath));
|
2448
2395
|
}
|
2449
2396
|
/**
|
2450
2397
|
* List custom deal restrictions
|