flexinet-api 0.0.1852-prerelease0-dev → 0.0.1852
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 +112 -64
- package/dist/api.d.ts +64 -50
- package/dist/api.js +75 -22
- package/dist/esm/api.d.ts +64 -50
- package/dist/esm/api.js +72 -19
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.1852
|
1
|
+
## flexinet-api@0.0.1852
|
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.1852
|
39
|
+
npm install flexinet-api@0.0.1852 --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 | { kind: 'required' } & RequiredRestriction;
|
902
902
|
|
903
903
|
/**
|
904
904
|
*
|
@@ -1139,45 +1139,6 @@ 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
|
-
|
1181
1142
|
/**
|
1182
1143
|
*
|
1183
1144
|
* @export
|
@@ -1212,10 +1173,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1212
1173
|
export interface MinTurnoverRestrictionValue {
|
1213
1174
|
/**
|
1214
1175
|
*
|
1215
|
-
* @type {
|
1176
|
+
* @type {string}
|
1216
1177
|
* @memberof MinTurnoverRestrictionValue
|
1217
1178
|
*/
|
1218
|
-
'
|
1179
|
+
'tagKey': string;
|
1180
|
+
/**
|
1181
|
+
*
|
1182
|
+
* @type {string}
|
1183
|
+
* @memberof MinTurnoverRestrictionValue
|
1184
|
+
*/
|
1185
|
+
'tagValue': string;
|
1219
1186
|
/**
|
1220
1187
|
*
|
1221
1188
|
* @type {string}
|
@@ -1230,10 +1197,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1230
1197
|
'priority': CustomDealRestrictionPriority;
|
1231
1198
|
/**
|
1232
1199
|
*
|
1233
|
-
* @type {
|
1200
|
+
* @type {number}
|
1234
1201
|
* @memberof MinTurnoverRestrictionValue
|
1235
1202
|
*/
|
1236
|
-
'
|
1203
|
+
'points': number;
|
1237
1204
|
}
|
1238
1205
|
|
1239
1206
|
|
@@ -2932,6 +2899,32 @@ export const ReportTypesResponseTypesEnum = {
|
|
2932
2899
|
|
2933
2900
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2934
2901
|
|
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
|
+
|
2935
2928
|
/**
|
2936
2929
|
* @type Rule
|
2937
2930
|
* @export
|
@@ -6595,13 +6588,28 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6595
6588
|
/**
|
6596
6589
|
* Get custom deal min target value
|
6597
6590
|
* @summary Get custom deal min target value
|
6598
|
-
* @param {
|
6599
|
-
* @param {
|
6600
|
-
* @
|
6601
|
-
|
6602
|
-
|
6603
|
-
|
6604
|
-
|
6591
|
+
* @param {string} startingAt start at
|
6592
|
+
* @param {string} endingAt end at
|
6593
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6594
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
6595
|
+
* @param {string} tagKey tag key
|
6596
|
+
* @param {string} tagValue tag value
|
6597
|
+
* @param {*} [options] Override http request option.
|
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)
|
6605
6613
|
const localVarPath = `/admins/custom-deals/min-target-value`;
|
6606
6614
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6607
6615
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6610,7 +6618,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6610
6618
|
baseOptions = configuration.baseOptions;
|
6611
6619
|
}
|
6612
6620
|
|
6613
|
-
const localVarRequestOptions = { method: '
|
6621
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
6614
6622
|
const localVarHeaderParameter = {} as any;
|
6615
6623
|
const localVarQueryParameter = {} as any;
|
6616
6624
|
|
@@ -6618,14 +6626,39 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6618
6626
|
// http bearer authentication required
|
6619
6627
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6620
6628
|
|
6629
|
+
if (startingAt !== undefined) {
|
6630
|
+
localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
|
6631
|
+
(startingAt as any).toISOString() :
|
6632
|
+
startingAt;
|
6633
|
+
}
|
6621
6634
|
|
6622
|
-
|
6623
|
-
|
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
|
+
}
|
6624
6656
|
|
6657
|
+
|
6658
|
+
|
6625
6659
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6626
6660
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6627
6661
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6628
|
-
localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration)
|
6629
6662
|
|
6630
6663
|
return {
|
6631
6664
|
url: toPathString(localVarUrlObj),
|
@@ -6690,12 +6723,17 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
6690
6723
|
/**
|
6691
6724
|
* Get custom deal min target value
|
6692
6725
|
* @summary Get custom deal min target value
|
6693
|
-
* @param {
|
6726
|
+
* @param {string} startingAt start at
|
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
|
6694
6732
|
* @param {*} [options] Override http request option.
|
6695
6733
|
* @throws {RequiredError}
|
6696
6734
|
*/
|
6697
|
-
async getCustomDealMinTargetValue(
|
6698
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(
|
6735
|
+
async getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
|
6736
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
6699
6737
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6700
6738
|
},
|
6701
6739
|
/**
|
@@ -6731,12 +6769,17 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6731
6769
|
/**
|
6732
6770
|
* Get custom deal min target value
|
6733
6771
|
* @summary Get custom deal min target value
|
6734
|
-
* @param {
|
6772
|
+
* @param {string} startingAt start at
|
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
|
6735
6778
|
* @param {*} [options] Override http request option.
|
6736
6779
|
* @throws {RequiredError}
|
6737
6780
|
*/
|
6738
|
-
getCustomDealMinTargetValue(
|
6739
|
-
return localVarFp.getCustomDealMinTargetValue(
|
6781
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
|
6782
|
+
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
6740
6783
|
},
|
6741
6784
|
/**
|
6742
6785
|
* List custom deal restrictions
|
@@ -6772,13 +6815,18 @@ export class CustomDealsApi extends BaseAPI {
|
|
6772
6815
|
/**
|
6773
6816
|
* Get custom deal min target value
|
6774
6817
|
* @summary Get custom deal min target value
|
6775
|
-
* @param {
|
6818
|
+
* @param {string} startingAt start at
|
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
|
6776
6824
|
* @param {*} [options] Override http request option.
|
6777
6825
|
* @throws {RequiredError}
|
6778
6826
|
* @memberof CustomDealsApi
|
6779
6827
|
*/
|
6780
|
-
public getCustomDealMinTargetValue(
|
6781
|
-
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(
|
6828
|
+
public getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) {
|
6829
|
+
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
|
6782
6830
|
}
|
6783
6831
|
|
6784
6832
|
/**
|
package/dist/api.d.ts
CHANGED
@@ -843,7 +843,9 @@ export interface CustomDealMinTargetValueResponse {
|
|
843
843
|
*/
|
844
844
|
export type CustomDealRestriction = {
|
845
845
|
kind: 'minTurnover';
|
846
|
-
} & MinTurnoverRestriction
|
846
|
+
} & MinTurnoverRestriction | {
|
847
|
+
kind: 'required';
|
848
|
+
} & RequiredRestriction;
|
847
849
|
/**
|
848
850
|
*
|
849
851
|
* @export
|
@@ -1073,43 +1075,6 @@ export interface MetricsCollection {
|
|
1073
1075
|
*/
|
1074
1076
|
'total': Metrics;
|
1075
1077
|
}
|
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
|
-
}
|
1113
1078
|
/**
|
1114
1079
|
*
|
1115
1080
|
* @export
|
@@ -1141,10 +1106,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1141
1106
|
export interface MinTurnoverRestrictionValue {
|
1142
1107
|
/**
|
1143
1108
|
*
|
1144
|
-
* @type {
|
1109
|
+
* @type {string}
|
1145
1110
|
* @memberof MinTurnoverRestrictionValue
|
1146
1111
|
*/
|
1147
|
-
'
|
1112
|
+
'tagKey': string;
|
1113
|
+
/**
|
1114
|
+
*
|
1115
|
+
* @type {string}
|
1116
|
+
* @memberof MinTurnoverRestrictionValue
|
1117
|
+
*/
|
1118
|
+
'tagValue': string;
|
1148
1119
|
/**
|
1149
1120
|
*
|
1150
1121
|
* @type {string}
|
@@ -1159,10 +1130,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1159
1130
|
'priority': CustomDealRestrictionPriority;
|
1160
1131
|
/**
|
1161
1132
|
*
|
1162
|
-
* @type {
|
1133
|
+
* @type {number}
|
1163
1134
|
* @memberof MinTurnoverRestrictionValue
|
1164
1135
|
*/
|
1165
|
-
'
|
1136
|
+
'points': number;
|
1166
1137
|
}
|
1167
1138
|
/**
|
1168
1139
|
*
|
@@ -2769,6 +2740,29 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2769
2740
|
readonly PromotionExpanded: "promotion_expanded";
|
2770
2741
|
};
|
2771
2742
|
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];
|
2772
2766
|
/**
|
2773
2767
|
* @type Rule
|
2774
2768
|
* @export
|
@@ -5345,11 +5339,16 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
5345
5339
|
/**
|
5346
5340
|
* Get custom deal min target value
|
5347
5341
|
* @summary Get custom deal min target value
|
5348
|
-
* @param {
|
5342
|
+
* @param {string} startingAt start at
|
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
|
5349
5348
|
* @param {*} [options] Override http request option.
|
5350
5349
|
* @throws {RequiredError}
|
5351
5350
|
*/
|
5352
|
-
getCustomDealMinTargetValue: (
|
5351
|
+
getCustomDealMinTargetValue: (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5353
5352
|
/**
|
5354
5353
|
* List custom deal restrictions
|
5355
5354
|
* @summary List custom deal restrictions
|
@@ -5374,11 +5373,16 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
5374
5373
|
/**
|
5375
5374
|
* Get custom deal min target value
|
5376
5375
|
* @summary Get custom deal min target value
|
5377
|
-
* @param {
|
5376
|
+
* @param {string} startingAt start at
|
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
|
5378
5382
|
* @param {*} [options] Override http request option.
|
5379
5383
|
* @throws {RequiredError}
|
5380
5384
|
*/
|
5381
|
-
getCustomDealMinTargetValue(
|
5385
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
|
5382
5386
|
/**
|
5383
5387
|
* List custom deal restrictions
|
5384
5388
|
* @summary List custom deal restrictions
|
@@ -5403,11 +5407,16 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
5403
5407
|
/**
|
5404
5408
|
* Get custom deal min target value
|
5405
5409
|
* @summary Get custom deal min target value
|
5406
|
-
* @param {
|
5410
|
+
* @param {string} startingAt start at
|
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
|
5407
5416
|
* @param {*} [options] Override http request option.
|
5408
5417
|
* @throws {RequiredError}
|
5409
5418
|
*/
|
5410
|
-
getCustomDealMinTargetValue(
|
5419
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
|
5411
5420
|
/**
|
5412
5421
|
* List custom deal restrictions
|
5413
5422
|
* @summary List custom deal restrictions
|
@@ -5435,12 +5444,17 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
5435
5444
|
/**
|
5436
5445
|
* Get custom deal min target value
|
5437
5446
|
* @summary Get custom deal min target value
|
5438
|
-
* @param {
|
5447
|
+
* @param {string} startingAt start at
|
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
|
5439
5453
|
* @param {*} [options] Override http request option.
|
5440
5454
|
* @throws {RequiredError}
|
5441
5455
|
* @memberof CustomDealsApi
|
5442
5456
|
*/
|
5443
|
-
getCustomDealMinTargetValue(
|
5457
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
|
5444
5458
|
/**
|
5445
5459
|
* List custom deal restrictions
|
5446
5460
|
* @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.
|
26
|
-
exports.
|
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;
|
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.RequiredRestrictionKindEnum = 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.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 = exports.BalanceApiAxiosParamCreator = 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 = exports.PromotionApiFactory = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -297,6 +297,9 @@ exports.ReportTypesResponseTypesEnum = {
|
|
297
297
|
Promotion: 'promotion',
|
298
298
|
PromotionExpanded: 'promotion_expanded'
|
299
299
|
};
|
300
|
+
exports.RequiredRestrictionKindEnum = {
|
301
|
+
Required: 'required'
|
302
|
+
};
|
300
303
|
/**
|
301
304
|
*
|
302
305
|
* @export
|
@@ -2248,13 +2251,28 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2248
2251
|
/**
|
2249
2252
|
* Get custom deal min target value
|
2250
2253
|
* @summary Get custom deal min target value
|
2251
|
-
* @param {
|
2252
|
-
* @param {
|
2253
|
-
* @
|
2254
|
-
|
2255
|
-
|
2256
|
-
|
2257
|
-
|
2254
|
+
* @param {string} startingAt start at
|
2255
|
+
* @param {string} endingAt end at
|
2256
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2257
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
2258
|
+
* @param {string} tagKey tag key
|
2259
|
+
* @param {string} tagValue tag value
|
2260
|
+
* @param {*} [options] Override http request option.
|
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);
|
2258
2276
|
const localVarPath = `/admins/custom-deals/min-target-value`;
|
2259
2277
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2260
2278
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -2262,17 +2280,37 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2262
2280
|
if (configuration) {
|
2263
2281
|
baseOptions = configuration.baseOptions;
|
2264
2282
|
}
|
2265
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
2283
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2266
2284
|
const localVarHeaderParameter = {};
|
2267
2285
|
const localVarQueryParameter = {};
|
2268
2286
|
// authentication systemJWT required
|
2269
2287
|
// http bearer authentication required
|
2270
2288
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2271
|
-
|
2289
|
+
if (startingAt !== undefined) {
|
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
|
+
}
|
2272
2311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2273
2312
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2274
2313
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2275
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(minTargetValue, localVarRequestOptions, configuration);
|
2276
2314
|
return {
|
2277
2315
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
2278
2316
|
options: localVarRequestOptions,
|
@@ -2332,13 +2370,18 @@ const CustomDealsApiFp = function (configuration) {
|
|
2332
2370
|
/**
|
2333
2371
|
* Get custom deal min target value
|
2334
2372
|
* @summary Get custom deal min target value
|
2335
|
-
* @param {
|
2373
|
+
* @param {string} startingAt start at
|
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
|
2336
2379
|
* @param {*} [options] Override http request option.
|
2337
2380
|
* @throws {RequiredError}
|
2338
2381
|
*/
|
2339
|
-
getCustomDealMinTargetValue(
|
2382
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2340
2383
|
return __awaiter(this, void 0, void 0, function* () {
|
2341
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(
|
2384
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
2342
2385
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2343
2386
|
});
|
2344
2387
|
},
|
@@ -2377,12 +2420,17 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2377
2420
|
/**
|
2378
2421
|
* Get custom deal min target value
|
2379
2422
|
* @summary Get custom deal min target value
|
2380
|
-
* @param {
|
2423
|
+
* @param {string} startingAt start at
|
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
|
2381
2429
|
* @param {*} [options] Override http request option.
|
2382
2430
|
* @throws {RequiredError}
|
2383
2431
|
*/
|
2384
|
-
getCustomDealMinTargetValue(
|
2385
|
-
return localVarFp.getCustomDealMinTargetValue(
|
2432
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2433
|
+
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
2386
2434
|
},
|
2387
2435
|
/**
|
2388
2436
|
* List custom deal restrictions
|
@@ -2417,13 +2465,18 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
2417
2465
|
/**
|
2418
2466
|
* Get custom deal min target value
|
2419
2467
|
* @summary Get custom deal min target value
|
2420
|
-
* @param {
|
2468
|
+
* @param {string} startingAt start at
|
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
|
2421
2474
|
* @param {*} [options] Override http request option.
|
2422
2475
|
* @throws {RequiredError}
|
2423
2476
|
* @memberof CustomDealsApi
|
2424
2477
|
*/
|
2425
|
-
getCustomDealMinTargetValue(
|
2426
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(
|
2478
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2479
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
|
2427
2480
|
}
|
2428
2481
|
/**
|
2429
2482
|
* List custom deal restrictions
|
package/dist/esm/api.d.ts
CHANGED
@@ -843,7 +843,9 @@ export interface CustomDealMinTargetValueResponse {
|
|
843
843
|
*/
|
844
844
|
export type CustomDealRestriction = {
|
845
845
|
kind: 'minTurnover';
|
846
|
-
} & MinTurnoverRestriction
|
846
|
+
} & MinTurnoverRestriction | {
|
847
|
+
kind: 'required';
|
848
|
+
} & RequiredRestriction;
|
847
849
|
/**
|
848
850
|
*
|
849
851
|
* @export
|
@@ -1073,43 +1075,6 @@ export interface MetricsCollection {
|
|
1073
1075
|
*/
|
1074
1076
|
'total': Metrics;
|
1075
1077
|
}
|
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
|
-
}
|
1113
1078
|
/**
|
1114
1079
|
*
|
1115
1080
|
* @export
|
@@ -1141,10 +1106,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1141
1106
|
export interface MinTurnoverRestrictionValue {
|
1142
1107
|
/**
|
1143
1108
|
*
|
1144
|
-
* @type {
|
1109
|
+
* @type {string}
|
1145
1110
|
* @memberof MinTurnoverRestrictionValue
|
1146
1111
|
*/
|
1147
|
-
'
|
1112
|
+
'tagKey': string;
|
1113
|
+
/**
|
1114
|
+
*
|
1115
|
+
* @type {string}
|
1116
|
+
* @memberof MinTurnoverRestrictionValue
|
1117
|
+
*/
|
1118
|
+
'tagValue': string;
|
1148
1119
|
/**
|
1149
1120
|
*
|
1150
1121
|
* @type {string}
|
@@ -1159,10 +1130,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1159
1130
|
'priority': CustomDealRestrictionPriority;
|
1160
1131
|
/**
|
1161
1132
|
*
|
1162
|
-
* @type {
|
1133
|
+
* @type {number}
|
1163
1134
|
* @memberof MinTurnoverRestrictionValue
|
1164
1135
|
*/
|
1165
|
-
'
|
1136
|
+
'points': number;
|
1166
1137
|
}
|
1167
1138
|
/**
|
1168
1139
|
*
|
@@ -2769,6 +2740,29 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2769
2740
|
readonly PromotionExpanded: "promotion_expanded";
|
2770
2741
|
};
|
2771
2742
|
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];
|
2772
2766
|
/**
|
2773
2767
|
* @type Rule
|
2774
2768
|
* @export
|
@@ -5345,11 +5339,16 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
5345
5339
|
/**
|
5346
5340
|
* Get custom deal min target value
|
5347
5341
|
* @summary Get custom deal min target value
|
5348
|
-
* @param {
|
5342
|
+
* @param {string} startingAt start at
|
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
|
5349
5348
|
* @param {*} [options] Override http request option.
|
5350
5349
|
* @throws {RequiredError}
|
5351
5350
|
*/
|
5352
|
-
getCustomDealMinTargetValue: (
|
5351
|
+
getCustomDealMinTargetValue: (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5353
5352
|
/**
|
5354
5353
|
* List custom deal restrictions
|
5355
5354
|
* @summary List custom deal restrictions
|
@@ -5374,11 +5373,16 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
5374
5373
|
/**
|
5375
5374
|
* Get custom deal min target value
|
5376
5375
|
* @summary Get custom deal min target value
|
5377
|
-
* @param {
|
5376
|
+
* @param {string} startingAt start at
|
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
|
5378
5382
|
* @param {*} [options] Override http request option.
|
5379
5383
|
* @throws {RequiredError}
|
5380
5384
|
*/
|
5381
|
-
getCustomDealMinTargetValue(
|
5385
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
|
5382
5386
|
/**
|
5383
5387
|
* List custom deal restrictions
|
5384
5388
|
* @summary List custom deal restrictions
|
@@ -5403,11 +5407,16 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
5403
5407
|
/**
|
5404
5408
|
* Get custom deal min target value
|
5405
5409
|
* @summary Get custom deal min target value
|
5406
|
-
* @param {
|
5410
|
+
* @param {string} startingAt start at
|
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
|
5407
5416
|
* @param {*} [options] Override http request option.
|
5408
5417
|
* @throws {RequiredError}
|
5409
5418
|
*/
|
5410
|
-
getCustomDealMinTargetValue(
|
5419
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
|
5411
5420
|
/**
|
5412
5421
|
* List custom deal restrictions
|
5413
5422
|
* @summary List custom deal restrictions
|
@@ -5435,12 +5444,17 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
5435
5444
|
/**
|
5436
5445
|
* Get custom deal min target value
|
5437
5446
|
* @summary Get custom deal min target value
|
5438
|
-
* @param {
|
5447
|
+
* @param {string} startingAt start at
|
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
|
5439
5453
|
* @param {*} [options] Override http request option.
|
5440
5454
|
* @throws {RequiredError}
|
5441
5455
|
* @memberof CustomDealsApi
|
5442
5456
|
*/
|
5443
|
-
getCustomDealMinTargetValue(
|
5457
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
|
5444
5458
|
/**
|
5445
5459
|
* List custom deal restrictions
|
5446
5460
|
* @summary List custom deal restrictions
|
package/dist/esm/api.js
CHANGED
@@ -292,6 +292,9 @@ export const ReportTypesResponseTypesEnum = {
|
|
292
292
|
Promotion: 'promotion',
|
293
293
|
PromotionExpanded: 'promotion_expanded'
|
294
294
|
};
|
295
|
+
export const RequiredRestrictionKindEnum = {
|
296
|
+
Required: 'required'
|
297
|
+
};
|
295
298
|
/**
|
296
299
|
*
|
297
300
|
* @export
|
@@ -2219,13 +2222,28 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2219
2222
|
/**
|
2220
2223
|
* Get custom deal min target value
|
2221
2224
|
* @summary Get custom deal min target value
|
2222
|
-
* @param {
|
2223
|
-
* @param {
|
2224
|
-
* @
|
2225
|
-
|
2226
|
-
|
2227
|
-
|
2228
|
-
|
2225
|
+
* @param {string} startingAt start at
|
2226
|
+
* @param {string} endingAt end at
|
2227
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2228
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
2229
|
+
* @param {string} tagKey tag key
|
2230
|
+
* @param {string} tagValue tag value
|
2231
|
+
* @param {*} [options] Override http request option.
|
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);
|
2229
2247
|
const localVarPath = `/admins/custom-deals/min-target-value`;
|
2230
2248
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2231
2249
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -2233,17 +2251,37 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2233
2251
|
if (configuration) {
|
2234
2252
|
baseOptions = configuration.baseOptions;
|
2235
2253
|
}
|
2236
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
2254
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2237
2255
|
const localVarHeaderParameter = {};
|
2238
2256
|
const localVarQueryParameter = {};
|
2239
2257
|
// authentication systemJWT required
|
2240
2258
|
// http bearer authentication required
|
2241
2259
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2242
|
-
|
2260
|
+
if (startingAt !== undefined) {
|
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
|
+
}
|
2243
2282
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2244
2283
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2245
2284
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2246
|
-
localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration);
|
2247
2285
|
return {
|
2248
2286
|
url: toPathString(localVarUrlObj),
|
2249
2287
|
options: localVarRequestOptions,
|
@@ -2302,13 +2340,18 @@ export const CustomDealsApiFp = function (configuration) {
|
|
2302
2340
|
/**
|
2303
2341
|
* Get custom deal min target value
|
2304
2342
|
* @summary Get custom deal min target value
|
2305
|
-
* @param {
|
2343
|
+
* @param {string} startingAt start at
|
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
|
2306
2349
|
* @param {*} [options] Override http request option.
|
2307
2350
|
* @throws {RequiredError}
|
2308
2351
|
*/
|
2309
|
-
getCustomDealMinTargetValue(
|
2352
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2310
2353
|
return __awaiter(this, void 0, void 0, function* () {
|
2311
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(
|
2354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
2312
2355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2313
2356
|
});
|
2314
2357
|
},
|
@@ -2346,12 +2389,17 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2346
2389
|
/**
|
2347
2390
|
* Get custom deal min target value
|
2348
2391
|
* @summary Get custom deal min target value
|
2349
|
-
* @param {
|
2392
|
+
* @param {string} startingAt start at
|
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
|
2350
2398
|
* @param {*} [options] Override http request option.
|
2351
2399
|
* @throws {RequiredError}
|
2352
2400
|
*/
|
2353
|
-
getCustomDealMinTargetValue(
|
2354
|
-
return localVarFp.getCustomDealMinTargetValue(
|
2401
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2402
|
+
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
2355
2403
|
},
|
2356
2404
|
/**
|
2357
2405
|
* List custom deal restrictions
|
@@ -2385,13 +2433,18 @@ export class CustomDealsApi extends BaseAPI {
|
|
2385
2433
|
/**
|
2386
2434
|
* Get custom deal min target value
|
2387
2435
|
* @summary Get custom deal min target value
|
2388
|
-
* @param {
|
2436
|
+
* @param {string} startingAt start at
|
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
|
2389
2442
|
* @param {*} [options] Override http request option.
|
2390
2443
|
* @throws {RequiredError}
|
2391
2444
|
* @memberof CustomDealsApi
|
2392
2445
|
*/
|
2393
|
-
getCustomDealMinTargetValue(
|
2394
|
-
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(
|
2446
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2447
|
+
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
|
2395
2448
|
}
|
2396
2449
|
/**
|
2397
2450
|
* List custom deal restrictions
|