flexinet-api 0.0.1855-prerelease0-dev → 0.0.1855
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 +130 -64
- package/dist/api.d.ts +82 -50
- package/dist/api.js +75 -22
- package/dist/esm/api.d.ts +82 -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.1855
|
1
|
+
## flexinet-api@0.0.1855
|
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.1855
|
39
|
+
npm install flexinet-api@0.0.1855 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -297,6 +297,12 @@ export interface BalanceBulkUpdateRequest {
|
|
297
297
|
* @memberof BalanceBulkUpdateRequest
|
298
298
|
*/
|
299
299
|
'currency'?: TransactionCurrencyKind;
|
300
|
+
/**
|
301
|
+
*
|
302
|
+
* @type {string}
|
303
|
+
* @memberof BalanceBulkUpdateRequest
|
304
|
+
*/
|
305
|
+
'description'?: string;
|
300
306
|
}
|
301
307
|
|
302
308
|
|
@@ -330,6 +336,12 @@ export interface BalanceUpdateRequest {
|
|
330
336
|
* @memberof BalanceUpdateRequest
|
331
337
|
*/
|
332
338
|
'currency'?: TransactionCurrencyKind;
|
339
|
+
/**
|
340
|
+
*
|
341
|
+
* @type {string}
|
342
|
+
* @memberof BalanceUpdateRequest
|
343
|
+
*/
|
344
|
+
'description'?: string;
|
333
345
|
}
|
334
346
|
|
335
347
|
|
@@ -898,7 +910,7 @@ export interface CustomDealMinTargetValueResponse {
|
|
898
910
|
* @type CustomDealRestriction
|
899
911
|
* @export
|
900
912
|
*/
|
901
|
-
export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction;
|
913
|
+
export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
|
902
914
|
|
903
915
|
/**
|
904
916
|
*
|
@@ -1139,45 +1151,6 @@ export interface MetricsCollection {
|
|
1139
1151
|
*/
|
1140
1152
|
'total': Metrics;
|
1141
1153
|
}
|
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
1154
|
/**
|
1182
1155
|
*
|
1183
1156
|
* @export
|
@@ -1212,10 +1185,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1212
1185
|
export interface MinTurnoverRestrictionValue {
|
1213
1186
|
/**
|
1214
1187
|
*
|
1215
|
-
* @type {
|
1188
|
+
* @type {string}
|
1216
1189
|
* @memberof MinTurnoverRestrictionValue
|
1217
1190
|
*/
|
1218
|
-
'
|
1191
|
+
'tagKey': string;
|
1192
|
+
/**
|
1193
|
+
*
|
1194
|
+
* @type {string}
|
1195
|
+
* @memberof MinTurnoverRestrictionValue
|
1196
|
+
*/
|
1197
|
+
'tagValue': string;
|
1219
1198
|
/**
|
1220
1199
|
*
|
1221
1200
|
* @type {string}
|
@@ -1230,10 +1209,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1230
1209
|
'priority': CustomDealRestrictionPriority;
|
1231
1210
|
/**
|
1232
1211
|
*
|
1233
|
-
* @type {
|
1212
|
+
* @type {number}
|
1234
1213
|
* @memberof MinTurnoverRestrictionValue
|
1235
1214
|
*/
|
1236
|
-
'
|
1215
|
+
'points': number;
|
1237
1216
|
}
|
1238
1217
|
|
1239
1218
|
|
@@ -2932,6 +2911,32 @@ export const ReportTypesResponseTypesEnum = {
|
|
2932
2911
|
|
2933
2912
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2934
2913
|
|
2914
|
+
/**
|
2915
|
+
*
|
2916
|
+
* @export
|
2917
|
+
* @interface RequiredRestriction
|
2918
|
+
*/
|
2919
|
+
export interface RequiredRestriction {
|
2920
|
+
/**
|
2921
|
+
*
|
2922
|
+
* @type {string}
|
2923
|
+
* @memberof RequiredRestriction
|
2924
|
+
*/
|
2925
|
+
'kind': RequiredRestrictionKindEnum;
|
2926
|
+
/**
|
2927
|
+
*
|
2928
|
+
* @type {Array<string>}
|
2929
|
+
* @memberof RequiredRestriction
|
2930
|
+
*/
|
2931
|
+
'tagKeys': Array<string>;
|
2932
|
+
}
|
2933
|
+
|
2934
|
+
export const RequiredRestrictionKindEnum = {
|
2935
|
+
Required: 'required'
|
2936
|
+
} as const;
|
2937
|
+
|
2938
|
+
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2939
|
+
|
2935
2940
|
/**
|
2936
2941
|
* @type Rule
|
2937
2942
|
* @export
|
@@ -3771,6 +3776,12 @@ export interface Transaction {
|
|
3771
3776
|
* @memberof Transaction
|
3772
3777
|
*/
|
3773
3778
|
'currency': TransactionCurrencyKind;
|
3779
|
+
/**
|
3780
|
+
*
|
3781
|
+
* @type {string}
|
3782
|
+
* @memberof Transaction
|
3783
|
+
*/
|
3784
|
+
'description'?: string;
|
3774
3785
|
}
|
3775
3786
|
|
3776
3787
|
|
@@ -6595,13 +6606,28 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6595
6606
|
/**
|
6596
6607
|
* Get custom deal min target value
|
6597
6608
|
* @summary Get custom deal min target value
|
6598
|
-
* @param {
|
6599
|
-
* @param {
|
6600
|
-
* @
|
6601
|
-
|
6602
|
-
|
6603
|
-
|
6604
|
-
|
6609
|
+
* @param {string} startingAt start at
|
6610
|
+
* @param {string} endingAt end at
|
6611
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6612
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
6613
|
+
* @param {string} tagKey tag key
|
6614
|
+
* @param {string} tagValue tag value
|
6615
|
+
* @param {*} [options] Override http request option.
|
6616
|
+
* @throws {RequiredError}
|
6617
|
+
*/
|
6618
|
+
getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6619
|
+
// verify required parameter 'startingAt' is not null or undefined
|
6620
|
+
assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
|
6621
|
+
// verify required parameter 'endingAt' is not null or undefined
|
6622
|
+
assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
|
6623
|
+
// verify required parameter 'beneficiaryKind' is not null or undefined
|
6624
|
+
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
|
6625
|
+
// verify required parameter 'beneficiaryValues' is not null or undefined
|
6626
|
+
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
|
6627
|
+
// verify required parameter 'tagKey' is not null or undefined
|
6628
|
+
assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
|
6629
|
+
// verify required parameter 'tagValue' is not null or undefined
|
6630
|
+
assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
|
6605
6631
|
const localVarPath = `/admins/custom-deals/min-target-value`;
|
6606
6632
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6607
6633
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6610,7 +6636,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6610
6636
|
baseOptions = configuration.baseOptions;
|
6611
6637
|
}
|
6612
6638
|
|
6613
|
-
const localVarRequestOptions = { method: '
|
6639
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
6614
6640
|
const localVarHeaderParameter = {} as any;
|
6615
6641
|
const localVarQueryParameter = {} as any;
|
6616
6642
|
|
@@ -6618,14 +6644,39 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
6618
6644
|
// http bearer authentication required
|
6619
6645
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6620
6646
|
|
6647
|
+
if (startingAt !== undefined) {
|
6648
|
+
localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
|
6649
|
+
(startingAt as any).toISOString() :
|
6650
|
+
startingAt;
|
6651
|
+
}
|
6621
6652
|
|
6622
|
-
|
6623
|
-
|
6653
|
+
if (endingAt !== undefined) {
|
6654
|
+
localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
|
6655
|
+
(endingAt as any).toISOString() :
|
6656
|
+
endingAt;
|
6657
|
+
}
|
6658
|
+
|
6659
|
+
if (beneficiaryKind !== undefined) {
|
6660
|
+
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
6661
|
+
}
|
6624
6662
|
|
6663
|
+
if (beneficiaryValues) {
|
6664
|
+
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
6665
|
+
}
|
6666
|
+
|
6667
|
+
if (tagKey !== undefined) {
|
6668
|
+
localVarQueryParameter['tagKey'] = tagKey;
|
6669
|
+
}
|
6670
|
+
|
6671
|
+
if (tagValue !== undefined) {
|
6672
|
+
localVarQueryParameter['tagValue'] = tagValue;
|
6673
|
+
}
|
6674
|
+
|
6675
|
+
|
6676
|
+
|
6625
6677
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6626
6678
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6627
6679
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6628
|
-
localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration)
|
6629
6680
|
|
6630
6681
|
return {
|
6631
6682
|
url: toPathString(localVarUrlObj),
|
@@ -6690,12 +6741,17 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
6690
6741
|
/**
|
6691
6742
|
* Get custom deal min target value
|
6692
6743
|
* @summary Get custom deal min target value
|
6693
|
-
* @param {
|
6744
|
+
* @param {string} startingAt start at
|
6745
|
+
* @param {string} endingAt end at
|
6746
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6747
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
6748
|
+
* @param {string} tagKey tag key
|
6749
|
+
* @param {string} tagValue tag value
|
6694
6750
|
* @param {*} [options] Override http request option.
|
6695
6751
|
* @throws {RequiredError}
|
6696
6752
|
*/
|
6697
|
-
async getCustomDealMinTargetValue(
|
6698
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(
|
6753
|
+
async getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
|
6754
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
6699
6755
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6700
6756
|
},
|
6701
6757
|
/**
|
@@ -6731,12 +6787,17 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6731
6787
|
/**
|
6732
6788
|
* Get custom deal min target value
|
6733
6789
|
* @summary Get custom deal min target value
|
6734
|
-
* @param {
|
6790
|
+
* @param {string} startingAt start at
|
6791
|
+
* @param {string} endingAt end at
|
6792
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6793
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
6794
|
+
* @param {string} tagKey tag key
|
6795
|
+
* @param {string} tagValue tag value
|
6735
6796
|
* @param {*} [options] Override http request option.
|
6736
6797
|
* @throws {RequiredError}
|
6737
6798
|
*/
|
6738
|
-
getCustomDealMinTargetValue(
|
6739
|
-
return localVarFp.getCustomDealMinTargetValue(
|
6799
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
|
6800
|
+
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
6740
6801
|
},
|
6741
6802
|
/**
|
6742
6803
|
* List custom deal restrictions
|
@@ -6772,13 +6833,18 @@ export class CustomDealsApi extends BaseAPI {
|
|
6772
6833
|
/**
|
6773
6834
|
* Get custom deal min target value
|
6774
6835
|
* @summary Get custom deal min target value
|
6775
|
-
* @param {
|
6836
|
+
* @param {string} startingAt start at
|
6837
|
+
* @param {string} endingAt end at
|
6838
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6839
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
6840
|
+
* @param {string} tagKey tag key
|
6841
|
+
* @param {string} tagValue tag value
|
6776
6842
|
* @param {*} [options] Override http request option.
|
6777
6843
|
* @throws {RequiredError}
|
6778
6844
|
* @memberof CustomDealsApi
|
6779
6845
|
*/
|
6780
|
-
public getCustomDealMinTargetValue(
|
6781
|
-
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(
|
6846
|
+
public getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) {
|
6847
|
+
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
|
6782
6848
|
}
|
6783
6849
|
|
6784
6850
|
/**
|
package/dist/api.d.ts
CHANGED
@@ -268,6 +268,12 @@ export interface BalanceBulkUpdateRequest {
|
|
268
268
|
* @memberof BalanceBulkUpdateRequest
|
269
269
|
*/
|
270
270
|
'currency'?: TransactionCurrencyKind;
|
271
|
+
/**
|
272
|
+
*
|
273
|
+
* @type {string}
|
274
|
+
* @memberof BalanceBulkUpdateRequest
|
275
|
+
*/
|
276
|
+
'description'?: string;
|
271
277
|
}
|
272
278
|
/**
|
273
279
|
*
|
@@ -299,6 +305,12 @@ export interface BalanceUpdateRequest {
|
|
299
305
|
* @memberof BalanceUpdateRequest
|
300
306
|
*/
|
301
307
|
'currency'?: TransactionCurrencyKind;
|
308
|
+
/**
|
309
|
+
*
|
310
|
+
* @type {string}
|
311
|
+
* @memberof BalanceUpdateRequest
|
312
|
+
*/
|
313
|
+
'description'?: string;
|
302
314
|
}
|
303
315
|
/**
|
304
316
|
*
|
@@ -843,7 +855,9 @@ export interface CustomDealMinTargetValueResponse {
|
|
843
855
|
*/
|
844
856
|
export type CustomDealRestriction = {
|
845
857
|
kind: 'minTurnover';
|
846
|
-
} & MinTurnoverRestriction
|
858
|
+
} & MinTurnoverRestriction | {
|
859
|
+
kind: 'required';
|
860
|
+
} & RequiredRestriction;
|
847
861
|
/**
|
848
862
|
*
|
849
863
|
* @export
|
@@ -1073,43 +1087,6 @@ export interface MetricsCollection {
|
|
1073
1087
|
*/
|
1074
1088
|
'total': Metrics;
|
1075
1089
|
}
|
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
1090
|
/**
|
1114
1091
|
*
|
1115
1092
|
* @export
|
@@ -1141,10 +1118,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1141
1118
|
export interface MinTurnoverRestrictionValue {
|
1142
1119
|
/**
|
1143
1120
|
*
|
1144
|
-
* @type {
|
1121
|
+
* @type {string}
|
1145
1122
|
* @memberof MinTurnoverRestrictionValue
|
1146
1123
|
*/
|
1147
|
-
'
|
1124
|
+
'tagKey': string;
|
1125
|
+
/**
|
1126
|
+
*
|
1127
|
+
* @type {string}
|
1128
|
+
* @memberof MinTurnoverRestrictionValue
|
1129
|
+
*/
|
1130
|
+
'tagValue': string;
|
1148
1131
|
/**
|
1149
1132
|
*
|
1150
1133
|
* @type {string}
|
@@ -1159,10 +1142,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1159
1142
|
'priority': CustomDealRestrictionPriority;
|
1160
1143
|
/**
|
1161
1144
|
*
|
1162
|
-
* @type {
|
1145
|
+
* @type {number}
|
1163
1146
|
* @memberof MinTurnoverRestrictionValue
|
1164
1147
|
*/
|
1165
|
-
'
|
1148
|
+
'points': number;
|
1166
1149
|
}
|
1167
1150
|
/**
|
1168
1151
|
*
|
@@ -2769,6 +2752,29 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2769
2752
|
readonly PromotionExpanded: "promotion_expanded";
|
2770
2753
|
};
|
2771
2754
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2755
|
+
/**
|
2756
|
+
*
|
2757
|
+
* @export
|
2758
|
+
* @interface RequiredRestriction
|
2759
|
+
*/
|
2760
|
+
export interface RequiredRestriction {
|
2761
|
+
/**
|
2762
|
+
*
|
2763
|
+
* @type {string}
|
2764
|
+
* @memberof RequiredRestriction
|
2765
|
+
*/
|
2766
|
+
'kind': RequiredRestrictionKindEnum;
|
2767
|
+
/**
|
2768
|
+
*
|
2769
|
+
* @type {Array<string>}
|
2770
|
+
* @memberof RequiredRestriction
|
2771
|
+
*/
|
2772
|
+
'tagKeys': Array<string>;
|
2773
|
+
}
|
2774
|
+
export declare const RequiredRestrictionKindEnum: {
|
2775
|
+
readonly Required: "required";
|
2776
|
+
};
|
2777
|
+
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2772
2778
|
/**
|
2773
2779
|
* @type Rule
|
2774
2780
|
* @export
|
@@ -3572,6 +3578,12 @@ export interface Transaction {
|
|
3572
3578
|
* @memberof Transaction
|
3573
3579
|
*/
|
3574
3580
|
'currency': TransactionCurrencyKind;
|
3581
|
+
/**
|
3582
|
+
*
|
3583
|
+
* @type {string}
|
3584
|
+
* @memberof Transaction
|
3585
|
+
*/
|
3586
|
+
'description'?: string;
|
3575
3587
|
}
|
3576
3588
|
/**
|
3577
3589
|
*
|
@@ -5345,11 +5357,16 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
5345
5357
|
/**
|
5346
5358
|
* Get custom deal min target value
|
5347
5359
|
* @summary Get custom deal min target value
|
5348
|
-
* @param {
|
5360
|
+
* @param {string} startingAt start at
|
5361
|
+
* @param {string} endingAt end at
|
5362
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5363
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5364
|
+
* @param {string} tagKey tag key
|
5365
|
+
* @param {string} tagValue tag value
|
5349
5366
|
* @param {*} [options] Override http request option.
|
5350
5367
|
* @throws {RequiredError}
|
5351
5368
|
*/
|
5352
|
-
getCustomDealMinTargetValue: (
|
5369
|
+
getCustomDealMinTargetValue: (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5353
5370
|
/**
|
5354
5371
|
* List custom deal restrictions
|
5355
5372
|
* @summary List custom deal restrictions
|
@@ -5374,11 +5391,16 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
5374
5391
|
/**
|
5375
5392
|
* Get custom deal min target value
|
5376
5393
|
* @summary Get custom deal min target value
|
5377
|
-
* @param {
|
5394
|
+
* @param {string} startingAt start at
|
5395
|
+
* @param {string} endingAt end at
|
5396
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5397
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5398
|
+
* @param {string} tagKey tag key
|
5399
|
+
* @param {string} tagValue tag value
|
5378
5400
|
* @param {*} [options] Override http request option.
|
5379
5401
|
* @throws {RequiredError}
|
5380
5402
|
*/
|
5381
|
-
getCustomDealMinTargetValue(
|
5403
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
|
5382
5404
|
/**
|
5383
5405
|
* List custom deal restrictions
|
5384
5406
|
* @summary List custom deal restrictions
|
@@ -5403,11 +5425,16 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
5403
5425
|
/**
|
5404
5426
|
* Get custom deal min target value
|
5405
5427
|
* @summary Get custom deal min target value
|
5406
|
-
* @param {
|
5428
|
+
* @param {string} startingAt start at
|
5429
|
+
* @param {string} endingAt end at
|
5430
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5431
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5432
|
+
* @param {string} tagKey tag key
|
5433
|
+
* @param {string} tagValue tag value
|
5407
5434
|
* @param {*} [options] Override http request option.
|
5408
5435
|
* @throws {RequiredError}
|
5409
5436
|
*/
|
5410
|
-
getCustomDealMinTargetValue(
|
5437
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
|
5411
5438
|
/**
|
5412
5439
|
* List custom deal restrictions
|
5413
5440
|
* @summary List custom deal restrictions
|
@@ -5435,12 +5462,17 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
5435
5462
|
/**
|
5436
5463
|
* Get custom deal min target value
|
5437
5464
|
* @summary Get custom deal min target value
|
5438
|
-
* @param {
|
5465
|
+
* @param {string} startingAt start at
|
5466
|
+
* @param {string} endingAt end at
|
5467
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5468
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5469
|
+
* @param {string} tagKey tag key
|
5470
|
+
* @param {string} tagValue tag value
|
5439
5471
|
* @param {*} [options] Override http request option.
|
5440
5472
|
* @throws {RequiredError}
|
5441
5473
|
* @memberof CustomDealsApi
|
5442
5474
|
*/
|
5443
|
-
getCustomDealMinTargetValue(
|
5475
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
|
5444
5476
|
/**
|
5445
5477
|
* List custom deal restrictions
|
5446
5478
|
* @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
@@ -268,6 +268,12 @@ export interface BalanceBulkUpdateRequest {
|
|
268
268
|
* @memberof BalanceBulkUpdateRequest
|
269
269
|
*/
|
270
270
|
'currency'?: TransactionCurrencyKind;
|
271
|
+
/**
|
272
|
+
*
|
273
|
+
* @type {string}
|
274
|
+
* @memberof BalanceBulkUpdateRequest
|
275
|
+
*/
|
276
|
+
'description'?: string;
|
271
277
|
}
|
272
278
|
/**
|
273
279
|
*
|
@@ -299,6 +305,12 @@ export interface BalanceUpdateRequest {
|
|
299
305
|
* @memberof BalanceUpdateRequest
|
300
306
|
*/
|
301
307
|
'currency'?: TransactionCurrencyKind;
|
308
|
+
/**
|
309
|
+
*
|
310
|
+
* @type {string}
|
311
|
+
* @memberof BalanceUpdateRequest
|
312
|
+
*/
|
313
|
+
'description'?: string;
|
302
314
|
}
|
303
315
|
/**
|
304
316
|
*
|
@@ -843,7 +855,9 @@ export interface CustomDealMinTargetValueResponse {
|
|
843
855
|
*/
|
844
856
|
export type CustomDealRestriction = {
|
845
857
|
kind: 'minTurnover';
|
846
|
-
} & MinTurnoverRestriction
|
858
|
+
} & MinTurnoverRestriction | {
|
859
|
+
kind: 'required';
|
860
|
+
} & RequiredRestriction;
|
847
861
|
/**
|
848
862
|
*
|
849
863
|
* @export
|
@@ -1073,43 +1087,6 @@ export interface MetricsCollection {
|
|
1073
1087
|
*/
|
1074
1088
|
'total': Metrics;
|
1075
1089
|
}
|
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
1090
|
/**
|
1114
1091
|
*
|
1115
1092
|
* @export
|
@@ -1141,10 +1118,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
|
|
1141
1118
|
export interface MinTurnoverRestrictionValue {
|
1142
1119
|
/**
|
1143
1120
|
*
|
1144
|
-
* @type {
|
1121
|
+
* @type {string}
|
1145
1122
|
* @memberof MinTurnoverRestrictionValue
|
1146
1123
|
*/
|
1147
|
-
'
|
1124
|
+
'tagKey': string;
|
1125
|
+
/**
|
1126
|
+
*
|
1127
|
+
* @type {string}
|
1128
|
+
* @memberof MinTurnoverRestrictionValue
|
1129
|
+
*/
|
1130
|
+
'tagValue': string;
|
1148
1131
|
/**
|
1149
1132
|
*
|
1150
1133
|
* @type {string}
|
@@ -1159,10 +1142,10 @@ export interface MinTurnoverRestrictionValue {
|
|
1159
1142
|
'priority': CustomDealRestrictionPriority;
|
1160
1143
|
/**
|
1161
1144
|
*
|
1162
|
-
* @type {
|
1145
|
+
* @type {number}
|
1163
1146
|
* @memberof MinTurnoverRestrictionValue
|
1164
1147
|
*/
|
1165
|
-
'
|
1148
|
+
'points': number;
|
1166
1149
|
}
|
1167
1150
|
/**
|
1168
1151
|
*
|
@@ -2769,6 +2752,29 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2769
2752
|
readonly PromotionExpanded: "promotion_expanded";
|
2770
2753
|
};
|
2771
2754
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2755
|
+
/**
|
2756
|
+
*
|
2757
|
+
* @export
|
2758
|
+
* @interface RequiredRestriction
|
2759
|
+
*/
|
2760
|
+
export interface RequiredRestriction {
|
2761
|
+
/**
|
2762
|
+
*
|
2763
|
+
* @type {string}
|
2764
|
+
* @memberof RequiredRestriction
|
2765
|
+
*/
|
2766
|
+
'kind': RequiredRestrictionKindEnum;
|
2767
|
+
/**
|
2768
|
+
*
|
2769
|
+
* @type {Array<string>}
|
2770
|
+
* @memberof RequiredRestriction
|
2771
|
+
*/
|
2772
|
+
'tagKeys': Array<string>;
|
2773
|
+
}
|
2774
|
+
export declare const RequiredRestrictionKindEnum: {
|
2775
|
+
readonly Required: "required";
|
2776
|
+
};
|
2777
|
+
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2772
2778
|
/**
|
2773
2779
|
* @type Rule
|
2774
2780
|
* @export
|
@@ -3572,6 +3578,12 @@ export interface Transaction {
|
|
3572
3578
|
* @memberof Transaction
|
3573
3579
|
*/
|
3574
3580
|
'currency': TransactionCurrencyKind;
|
3581
|
+
/**
|
3582
|
+
*
|
3583
|
+
* @type {string}
|
3584
|
+
* @memberof Transaction
|
3585
|
+
*/
|
3586
|
+
'description'?: string;
|
3575
3587
|
}
|
3576
3588
|
/**
|
3577
3589
|
*
|
@@ -5345,11 +5357,16 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
5345
5357
|
/**
|
5346
5358
|
* Get custom deal min target value
|
5347
5359
|
* @summary Get custom deal min target value
|
5348
|
-
* @param {
|
5360
|
+
* @param {string} startingAt start at
|
5361
|
+
* @param {string} endingAt end at
|
5362
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5363
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5364
|
+
* @param {string} tagKey tag key
|
5365
|
+
* @param {string} tagValue tag value
|
5349
5366
|
* @param {*} [options] Override http request option.
|
5350
5367
|
* @throws {RequiredError}
|
5351
5368
|
*/
|
5352
|
-
getCustomDealMinTargetValue: (
|
5369
|
+
getCustomDealMinTargetValue: (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5353
5370
|
/**
|
5354
5371
|
* List custom deal restrictions
|
5355
5372
|
* @summary List custom deal restrictions
|
@@ -5374,11 +5391,16 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
5374
5391
|
/**
|
5375
5392
|
* Get custom deal min target value
|
5376
5393
|
* @summary Get custom deal min target value
|
5377
|
-
* @param {
|
5394
|
+
* @param {string} startingAt start at
|
5395
|
+
* @param {string} endingAt end at
|
5396
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5397
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5398
|
+
* @param {string} tagKey tag key
|
5399
|
+
* @param {string} tagValue tag value
|
5378
5400
|
* @param {*} [options] Override http request option.
|
5379
5401
|
* @throws {RequiredError}
|
5380
5402
|
*/
|
5381
|
-
getCustomDealMinTargetValue(
|
5403
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
|
5382
5404
|
/**
|
5383
5405
|
* List custom deal restrictions
|
5384
5406
|
* @summary List custom deal restrictions
|
@@ -5403,11 +5425,16 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
5403
5425
|
/**
|
5404
5426
|
* Get custom deal min target value
|
5405
5427
|
* @summary Get custom deal min target value
|
5406
|
-
* @param {
|
5428
|
+
* @param {string} startingAt start at
|
5429
|
+
* @param {string} endingAt end at
|
5430
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5431
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5432
|
+
* @param {string} tagKey tag key
|
5433
|
+
* @param {string} tagValue tag value
|
5407
5434
|
* @param {*} [options] Override http request option.
|
5408
5435
|
* @throws {RequiredError}
|
5409
5436
|
*/
|
5410
|
-
getCustomDealMinTargetValue(
|
5437
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
|
5411
5438
|
/**
|
5412
5439
|
* List custom deal restrictions
|
5413
5440
|
* @summary List custom deal restrictions
|
@@ -5435,12 +5462,17 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
5435
5462
|
/**
|
5436
5463
|
* Get custom deal min target value
|
5437
5464
|
* @summary Get custom deal min target value
|
5438
|
-
* @param {
|
5465
|
+
* @param {string} startingAt start at
|
5466
|
+
* @param {string} endingAt end at
|
5467
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5468
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5469
|
+
* @param {string} tagKey tag key
|
5470
|
+
* @param {string} tagValue tag value
|
5439
5471
|
* @param {*} [options] Override http request option.
|
5440
5472
|
* @throws {RequiredError}
|
5441
5473
|
* @memberof CustomDealsApi
|
5442
5474
|
*/
|
5443
|
-
getCustomDealMinTargetValue(
|
5475
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
|
5444
5476
|
/**
|
5445
5477
|
* List custom deal restrictions
|
5446
5478
|
* @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
|