flexinet-api 0.0.1236-prerelease0 → 0.0.1237-prerelease0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +131 -100
- package/dist/api.d.ts +121 -91
- package/dist/api.js +23 -17
- package/dist/esm/api.d.ts +121 -91
- package/dist/esm/api.js +20 -14
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.1237-prerelease0
|
2
2
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
4
4
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
36
36
|
_published:_
|
37
37
|
|
38
38
|
```
|
39
|
-
npm install flexinet-api@0.0.
|
39
|
+
npm install flexinet-api@0.0.1237-prerelease0 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -717,55 +717,10 @@ export type Condition = typeof Condition[keyof typeof Condition];
|
|
717
717
|
|
718
718
|
|
719
719
|
/**
|
720
|
-
*
|
720
|
+
* @type CustomDealRestriction
|
721
721
|
* @export
|
722
|
-
* @interface CustomDealRestriction
|
723
722
|
*/
|
724
|
-
export
|
725
|
-
/**
|
726
|
-
*
|
727
|
-
* @type {string}
|
728
|
-
* @memberof CustomDealRestriction
|
729
|
-
*/
|
730
|
-
'tagKey': string;
|
731
|
-
/**
|
732
|
-
*
|
733
|
-
* @type {string}
|
734
|
-
* @memberof CustomDealRestriction
|
735
|
-
*/
|
736
|
-
'tagValue': string;
|
737
|
-
/**
|
738
|
-
*
|
739
|
-
* @type {number}
|
740
|
-
* @memberof CustomDealRestriction
|
741
|
-
*/
|
742
|
-
'minTurnoverPercent': number;
|
743
|
-
/**
|
744
|
-
*
|
745
|
-
* @type {CustomDealRestrictionPriority}
|
746
|
-
* @memberof CustomDealRestriction
|
747
|
-
*/
|
748
|
-
'priority': CustomDealRestrictionPriority;
|
749
|
-
/**
|
750
|
-
*
|
751
|
-
* @type {number}
|
752
|
-
* @memberof CustomDealRestriction
|
753
|
-
*/
|
754
|
-
'points': number;
|
755
|
-
/**
|
756
|
-
*
|
757
|
-
* @type {string}
|
758
|
-
* @memberof CustomDealRestriction
|
759
|
-
*/
|
760
|
-
'createdAt': string;
|
761
|
-
/**
|
762
|
-
*
|
763
|
-
* @type {string}
|
764
|
-
* @memberof CustomDealRestriction
|
765
|
-
*/
|
766
|
-
'updatedAt': string;
|
767
|
-
}
|
768
|
-
|
723
|
+
export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
|
769
724
|
|
770
725
|
/**
|
771
726
|
*
|
@@ -782,45 +737,6 @@ export const CustomDealRestrictionPriority = {
|
|
782
737
|
export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
|
783
738
|
|
784
739
|
|
785
|
-
/**
|
786
|
-
*
|
787
|
-
* @export
|
788
|
-
* @interface CustomDealRestrictionRequest
|
789
|
-
*/
|
790
|
-
export interface CustomDealRestrictionRequest {
|
791
|
-
/**
|
792
|
-
*
|
793
|
-
* @type {string}
|
794
|
-
* @memberof CustomDealRestrictionRequest
|
795
|
-
*/
|
796
|
-
'tagKey': string;
|
797
|
-
/**
|
798
|
-
*
|
799
|
-
* @type {string}
|
800
|
-
* @memberof CustomDealRestrictionRequest
|
801
|
-
*/
|
802
|
-
'tagValue': string;
|
803
|
-
/**
|
804
|
-
*
|
805
|
-
* @type {number}
|
806
|
-
* @memberof CustomDealRestrictionRequest
|
807
|
-
*/
|
808
|
-
'minTurnoverPercent': number;
|
809
|
-
/**
|
810
|
-
*
|
811
|
-
* @type {CustomDealRestrictionPriority}
|
812
|
-
* @memberof CustomDealRestrictionRequest
|
813
|
-
*/
|
814
|
-
'priority': CustomDealRestrictionPriority;
|
815
|
-
/**
|
816
|
-
*
|
817
|
-
* @type {number}
|
818
|
-
* @memberof CustomDealRestrictionRequest
|
819
|
-
*/
|
820
|
-
'points': number;
|
821
|
-
}
|
822
|
-
|
823
|
-
|
824
740
|
/**
|
825
741
|
*
|
826
742
|
* @export
|
@@ -1035,6 +951,71 @@ export interface MetricsCollection {
|
|
1035
951
|
*/
|
1036
952
|
'total': Metrics;
|
1037
953
|
}
|
954
|
+
/**
|
955
|
+
*
|
956
|
+
* @export
|
957
|
+
* @interface MinTurnoverRestriction
|
958
|
+
*/
|
959
|
+
export interface MinTurnoverRestriction {
|
960
|
+
/**
|
961
|
+
*
|
962
|
+
* @type {string}
|
963
|
+
* @memberof MinTurnoverRestriction
|
964
|
+
*/
|
965
|
+
'kind': MinTurnoverRestrictionKindEnum;
|
966
|
+
/**
|
967
|
+
*
|
968
|
+
* @type {Array<MinTurnoverRestrictionValue>}
|
969
|
+
* @memberof MinTurnoverRestriction
|
970
|
+
*/
|
971
|
+
'values': Array<MinTurnoverRestrictionValue>;
|
972
|
+
}
|
973
|
+
|
974
|
+
export const MinTurnoverRestrictionKindEnum = {
|
975
|
+
MinTurnover: 'minTurnover'
|
976
|
+
} as const;
|
977
|
+
|
978
|
+
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
979
|
+
|
980
|
+
/**
|
981
|
+
*
|
982
|
+
* @export
|
983
|
+
* @interface MinTurnoverRestrictionValue
|
984
|
+
*/
|
985
|
+
export interface MinTurnoverRestrictionValue {
|
986
|
+
/**
|
987
|
+
*
|
988
|
+
* @type {string}
|
989
|
+
* @memberof MinTurnoverRestrictionValue
|
990
|
+
*/
|
991
|
+
'tagKey': string;
|
992
|
+
/**
|
993
|
+
*
|
994
|
+
* @type {string}
|
995
|
+
* @memberof MinTurnoverRestrictionValue
|
996
|
+
*/
|
997
|
+
'tagValue': string;
|
998
|
+
/**
|
999
|
+
*
|
1000
|
+
* @type {number}
|
1001
|
+
* @memberof MinTurnoverRestrictionValue
|
1002
|
+
*/
|
1003
|
+
'minTurnoverPercent': number;
|
1004
|
+
/**
|
1005
|
+
*
|
1006
|
+
* @type {CustomDealRestrictionPriority}
|
1007
|
+
* @memberof MinTurnoverRestrictionValue
|
1008
|
+
*/
|
1009
|
+
'priority': CustomDealRestrictionPriority;
|
1010
|
+
/**
|
1011
|
+
*
|
1012
|
+
* @type {number}
|
1013
|
+
* @memberof MinTurnoverRestrictionValue
|
1014
|
+
*/
|
1015
|
+
'points': number;
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
|
1038
1019
|
/**
|
1039
1020
|
*
|
1040
1021
|
* @export
|
@@ -2287,6 +2268,12 @@ export interface Promotion {
|
|
2287
2268
|
* @memberof Promotion
|
2288
2269
|
*/
|
2289
2270
|
'status'?: PromotionStatus;
|
2271
|
+
/**
|
2272
|
+
*
|
2273
|
+
* @type {string}
|
2274
|
+
* @memberof Promotion
|
2275
|
+
*/
|
2276
|
+
'reference'?: string;
|
2290
2277
|
}
|
2291
2278
|
|
2292
2279
|
|
@@ -2500,6 +2487,18 @@ export interface PromotionRequest {
|
|
2500
2487
|
* @memberof PromotionRequest
|
2501
2488
|
*/
|
2502
2489
|
'notificationConfig'?: PromotionNotificationConfig;
|
2490
|
+
/**
|
2491
|
+
*
|
2492
|
+
* @type {PromotionType}
|
2493
|
+
* @memberof PromotionRequest
|
2494
|
+
*/
|
2495
|
+
'type'?: PromotionType;
|
2496
|
+
/**
|
2497
|
+
*
|
2498
|
+
* @type {string}
|
2499
|
+
* @memberof PromotionRequest
|
2500
|
+
*/
|
2501
|
+
'reference'?: string;
|
2503
2502
|
}
|
2504
2503
|
/**
|
2505
2504
|
*
|
@@ -2695,6 +2694,32 @@ export const ReportTypesResponseTypesEnum = {
|
|
2695
2694
|
|
2696
2695
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2697
2696
|
|
2697
|
+
/**
|
2698
|
+
*
|
2699
|
+
* @export
|
2700
|
+
* @interface RequiredRestriction
|
2701
|
+
*/
|
2702
|
+
export interface RequiredRestriction {
|
2703
|
+
/**
|
2704
|
+
*
|
2705
|
+
* @type {string}
|
2706
|
+
* @memberof RequiredRestriction
|
2707
|
+
*/
|
2708
|
+
'kind': RequiredRestrictionKindEnum;
|
2709
|
+
/**
|
2710
|
+
*
|
2711
|
+
* @type {Array<string>}
|
2712
|
+
* @memberof RequiredRestriction
|
2713
|
+
*/
|
2714
|
+
'tagKeys': Array<string>;
|
2715
|
+
}
|
2716
|
+
|
2717
|
+
export const RequiredRestrictionKindEnum = {
|
2718
|
+
Required: 'required'
|
2719
|
+
} as const;
|
2720
|
+
|
2721
|
+
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2722
|
+
|
2698
2723
|
/**
|
2699
2724
|
* @type Rule
|
2700
2725
|
* @export
|
@@ -3810,6 +3835,12 @@ export interface UpdatePromotionRequest {
|
|
3810
3835
|
* @memberof UpdatePromotionRequest
|
3811
3836
|
*/
|
3812
3837
|
'notificationConfig'?: PromotionNotificationConfig;
|
3838
|
+
/**
|
3839
|
+
*
|
3840
|
+
* @type {string}
|
3841
|
+
* @memberof UpdatePromotionRequest
|
3842
|
+
*/
|
3843
|
+
'reference'?: string;
|
3813
3844
|
}
|
3814
3845
|
|
3815
3846
|
|
@@ -5886,13 +5917,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5886
5917
|
/**
|
5887
5918
|
* Create custom deal restrictions
|
5888
5919
|
* @summary Create custom deal restrictions
|
5889
|
-
* @param {
|
5920
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
5890
5921
|
* @param {*} [options] Override http request option.
|
5891
5922
|
* @throws {RequiredError}
|
5892
5923
|
*/
|
5893
|
-
createCustomDealRestrictions: async (
|
5894
|
-
// verify required parameter '
|
5895
|
-
assertParamExists('createCustomDealRestrictions', '
|
5924
|
+
createCustomDealRestrictions: async (customDealRestriction: CustomDealRestriction, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5925
|
+
// verify required parameter 'customDealRestriction' is not null or undefined
|
5926
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction)
|
5896
5927
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
5897
5928
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5898
5929
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5916,7 +5947,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5916
5947
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5917
5948
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5918
5949
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5919
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
5950
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration)
|
5920
5951
|
|
5921
5952
|
return {
|
5922
5953
|
url: toPathString(localVarUrlObj),
|
@@ -5970,12 +6001,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
5970
6001
|
/**
|
5971
6002
|
* Create custom deal restrictions
|
5972
6003
|
* @summary Create custom deal restrictions
|
5973
|
-
* @param {
|
6004
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
5974
6005
|
* @param {*} [options] Override http request option.
|
5975
6006
|
* @throws {RequiredError}
|
5976
6007
|
*/
|
5977
|
-
async createCustomDealRestrictions(
|
5978
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(
|
6008
|
+
async createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6009
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
|
5979
6010
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5980
6011
|
},
|
5981
6012
|
/**
|
@@ -6001,12 +6032,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6001
6032
|
/**
|
6002
6033
|
* Create custom deal restrictions
|
6003
6034
|
* @summary Create custom deal restrictions
|
6004
|
-
* @param {
|
6035
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
6005
6036
|
* @param {*} [options] Override http request option.
|
6006
6037
|
* @throws {RequiredError}
|
6007
6038
|
*/
|
6008
|
-
createCustomDealRestrictions(
|
6009
|
-
return localVarFp.createCustomDealRestrictions(
|
6039
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void> {
|
6040
|
+
return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
|
6010
6041
|
},
|
6011
6042
|
/**
|
6012
6043
|
* List custom deal restrictions
|
@@ -6030,13 +6061,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
6030
6061
|
/**
|
6031
6062
|
* Create custom deal restrictions
|
6032
6063
|
* @summary Create custom deal restrictions
|
6033
|
-
* @param {
|
6064
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
6034
6065
|
* @param {*} [options] Override http request option.
|
6035
6066
|
* @throws {RequiredError}
|
6036
6067
|
* @memberof CustomDealsApi
|
6037
6068
|
*/
|
6038
|
-
public createCustomDealRestrictions(
|
6039
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(
|
6069
|
+
public createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) {
|
6070
|
+
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
6040
6071
|
}
|
6041
6072
|
|
6042
6073
|
/**
|
package/dist/api.d.ts
CHANGED
@@ -668,54 +668,14 @@ export declare const Condition: {
|
|
668
668
|
};
|
669
669
|
export type Condition = typeof Condition[keyof typeof Condition];
|
670
670
|
/**
|
671
|
-
*
|
671
|
+
* @type CustomDealRestriction
|
672
672
|
* @export
|
673
|
-
* @interface CustomDealRestriction
|
674
673
|
*/
|
675
|
-
export
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
*/
|
681
|
-
'tagKey': string;
|
682
|
-
/**
|
683
|
-
*
|
684
|
-
* @type {string}
|
685
|
-
* @memberof CustomDealRestriction
|
686
|
-
*/
|
687
|
-
'tagValue': string;
|
688
|
-
/**
|
689
|
-
*
|
690
|
-
* @type {number}
|
691
|
-
* @memberof CustomDealRestriction
|
692
|
-
*/
|
693
|
-
'minTurnoverPercent': number;
|
694
|
-
/**
|
695
|
-
*
|
696
|
-
* @type {CustomDealRestrictionPriority}
|
697
|
-
* @memberof CustomDealRestriction
|
698
|
-
*/
|
699
|
-
'priority': CustomDealRestrictionPriority;
|
700
|
-
/**
|
701
|
-
*
|
702
|
-
* @type {number}
|
703
|
-
* @memberof CustomDealRestriction
|
704
|
-
*/
|
705
|
-
'points': number;
|
706
|
-
/**
|
707
|
-
*
|
708
|
-
* @type {string}
|
709
|
-
* @memberof CustomDealRestriction
|
710
|
-
*/
|
711
|
-
'createdAt': string;
|
712
|
-
/**
|
713
|
-
*
|
714
|
-
* @type {string}
|
715
|
-
* @memberof CustomDealRestriction
|
716
|
-
*/
|
717
|
-
'updatedAt': string;
|
718
|
-
}
|
674
|
+
export type CustomDealRestriction = {
|
675
|
+
kind: 'minTurnover';
|
676
|
+
} & MinTurnoverRestriction | {
|
677
|
+
kind: 'required';
|
678
|
+
} & RequiredRestriction;
|
719
679
|
/**
|
720
680
|
*
|
721
681
|
* @export
|
@@ -727,43 +687,6 @@ export declare const CustomDealRestrictionPriority: {
|
|
727
687
|
readonly High: "high";
|
728
688
|
};
|
729
689
|
export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
|
730
|
-
/**
|
731
|
-
*
|
732
|
-
* @export
|
733
|
-
* @interface CustomDealRestrictionRequest
|
734
|
-
*/
|
735
|
-
export interface CustomDealRestrictionRequest {
|
736
|
-
/**
|
737
|
-
*
|
738
|
-
* @type {string}
|
739
|
-
* @memberof CustomDealRestrictionRequest
|
740
|
-
*/
|
741
|
-
'tagKey': string;
|
742
|
-
/**
|
743
|
-
*
|
744
|
-
* @type {string}
|
745
|
-
* @memberof CustomDealRestrictionRequest
|
746
|
-
*/
|
747
|
-
'tagValue': string;
|
748
|
-
/**
|
749
|
-
*
|
750
|
-
* @type {number}
|
751
|
-
* @memberof CustomDealRestrictionRequest
|
752
|
-
*/
|
753
|
-
'minTurnoverPercent': number;
|
754
|
-
/**
|
755
|
-
*
|
756
|
-
* @type {CustomDealRestrictionPriority}
|
757
|
-
* @memberof CustomDealRestrictionRequest
|
758
|
-
*/
|
759
|
-
'priority': CustomDealRestrictionPriority;
|
760
|
-
/**
|
761
|
-
*
|
762
|
-
* @type {number}
|
763
|
-
* @memberof CustomDealRestrictionRequest
|
764
|
-
*/
|
765
|
-
'points': number;
|
766
|
-
}
|
767
690
|
/**
|
768
691
|
*
|
769
692
|
* @export
|
@@ -972,6 +895,66 @@ export interface MetricsCollection {
|
|
972
895
|
*/
|
973
896
|
'total': Metrics;
|
974
897
|
}
|
898
|
+
/**
|
899
|
+
*
|
900
|
+
* @export
|
901
|
+
* @interface MinTurnoverRestriction
|
902
|
+
*/
|
903
|
+
export interface MinTurnoverRestriction {
|
904
|
+
/**
|
905
|
+
*
|
906
|
+
* @type {string}
|
907
|
+
* @memberof MinTurnoverRestriction
|
908
|
+
*/
|
909
|
+
'kind': MinTurnoverRestrictionKindEnum;
|
910
|
+
/**
|
911
|
+
*
|
912
|
+
* @type {Array<MinTurnoverRestrictionValue>}
|
913
|
+
* @memberof MinTurnoverRestriction
|
914
|
+
*/
|
915
|
+
'values': Array<MinTurnoverRestrictionValue>;
|
916
|
+
}
|
917
|
+
export declare const MinTurnoverRestrictionKindEnum: {
|
918
|
+
readonly MinTurnover: "minTurnover";
|
919
|
+
};
|
920
|
+
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
921
|
+
/**
|
922
|
+
*
|
923
|
+
* @export
|
924
|
+
* @interface MinTurnoverRestrictionValue
|
925
|
+
*/
|
926
|
+
export interface MinTurnoverRestrictionValue {
|
927
|
+
/**
|
928
|
+
*
|
929
|
+
* @type {string}
|
930
|
+
* @memberof MinTurnoverRestrictionValue
|
931
|
+
*/
|
932
|
+
'tagKey': string;
|
933
|
+
/**
|
934
|
+
*
|
935
|
+
* @type {string}
|
936
|
+
* @memberof MinTurnoverRestrictionValue
|
937
|
+
*/
|
938
|
+
'tagValue': string;
|
939
|
+
/**
|
940
|
+
*
|
941
|
+
* @type {number}
|
942
|
+
* @memberof MinTurnoverRestrictionValue
|
943
|
+
*/
|
944
|
+
'minTurnoverPercent': number;
|
945
|
+
/**
|
946
|
+
*
|
947
|
+
* @type {CustomDealRestrictionPriority}
|
948
|
+
* @memberof MinTurnoverRestrictionValue
|
949
|
+
*/
|
950
|
+
'priority': CustomDealRestrictionPriority;
|
951
|
+
/**
|
952
|
+
*
|
953
|
+
* @type {number}
|
954
|
+
* @memberof MinTurnoverRestrictionValue
|
955
|
+
*/
|
956
|
+
'points': number;
|
957
|
+
}
|
975
958
|
/**
|
976
959
|
*
|
977
960
|
* @export
|
@@ -2158,6 +2141,12 @@ export interface Promotion {
|
|
2158
2141
|
* @memberof Promotion
|
2159
2142
|
*/
|
2160
2143
|
'status'?: PromotionStatus;
|
2144
|
+
/**
|
2145
|
+
*
|
2146
|
+
* @type {string}
|
2147
|
+
* @memberof Promotion
|
2148
|
+
*/
|
2149
|
+
'reference'?: string;
|
2161
2150
|
}
|
2162
2151
|
/**
|
2163
2152
|
* @type PromotionBeneficiariesResponse
|
@@ -2372,6 +2361,18 @@ export interface PromotionRequest {
|
|
2372
2361
|
* @memberof PromotionRequest
|
2373
2362
|
*/
|
2374
2363
|
'notificationConfig'?: PromotionNotificationConfig;
|
2364
|
+
/**
|
2365
|
+
*
|
2366
|
+
* @type {PromotionType}
|
2367
|
+
* @memberof PromotionRequest
|
2368
|
+
*/
|
2369
|
+
'type'?: PromotionType;
|
2370
|
+
/**
|
2371
|
+
*
|
2372
|
+
* @type {string}
|
2373
|
+
* @memberof PromotionRequest
|
2374
|
+
*/
|
2375
|
+
'reference'?: string;
|
2375
2376
|
}
|
2376
2377
|
/**
|
2377
2378
|
*
|
@@ -2546,6 +2547,29 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2546
2547
|
readonly PromotionExpanded: "promotion_expanded";
|
2547
2548
|
};
|
2548
2549
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2550
|
+
/**
|
2551
|
+
*
|
2552
|
+
* @export
|
2553
|
+
* @interface RequiredRestriction
|
2554
|
+
*/
|
2555
|
+
export interface RequiredRestriction {
|
2556
|
+
/**
|
2557
|
+
*
|
2558
|
+
* @type {string}
|
2559
|
+
* @memberof RequiredRestriction
|
2560
|
+
*/
|
2561
|
+
'kind': RequiredRestrictionKindEnum;
|
2562
|
+
/**
|
2563
|
+
*
|
2564
|
+
* @type {Array<string>}
|
2565
|
+
* @memberof RequiredRestriction
|
2566
|
+
*/
|
2567
|
+
'tagKeys': Array<string>;
|
2568
|
+
}
|
2569
|
+
export declare const RequiredRestrictionKindEnum: {
|
2570
|
+
readonly Required: "required";
|
2571
|
+
};
|
2572
|
+
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2549
2573
|
/**
|
2550
2574
|
* @type Rule
|
2551
2575
|
* @export
|
@@ -3612,6 +3636,12 @@ export interface UpdatePromotionRequest {
|
|
3612
3636
|
* @memberof UpdatePromotionRequest
|
3613
3637
|
*/
|
3614
3638
|
'notificationConfig'?: PromotionNotificationConfig;
|
3639
|
+
/**
|
3640
|
+
*
|
3641
|
+
* @type {string}
|
3642
|
+
* @memberof UpdatePromotionRequest
|
3643
|
+
*/
|
3644
|
+
'reference'?: string;
|
3615
3645
|
}
|
3616
3646
|
/**
|
3617
3647
|
*
|
@@ -4893,11 +4923,11 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
4893
4923
|
/**
|
4894
4924
|
* Create custom deal restrictions
|
4895
4925
|
* @summary Create custom deal restrictions
|
4896
|
-
* @param {
|
4926
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4897
4927
|
* @param {*} [options] Override http request option.
|
4898
4928
|
* @throws {RequiredError}
|
4899
4929
|
*/
|
4900
|
-
createCustomDealRestrictions: (
|
4930
|
+
createCustomDealRestrictions: (customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4901
4931
|
/**
|
4902
4932
|
* List custom deal restrictions
|
4903
4933
|
* @summary List custom deal restrictions
|
@@ -4914,11 +4944,11 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
4914
4944
|
/**
|
4915
4945
|
* Create custom deal restrictions
|
4916
4946
|
* @summary Create custom deal restrictions
|
4917
|
-
* @param {
|
4947
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4918
4948
|
* @param {*} [options] Override http request option.
|
4919
4949
|
* @throws {RequiredError}
|
4920
4950
|
*/
|
4921
|
-
createCustomDealRestrictions(
|
4951
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
4922
4952
|
/**
|
4923
4953
|
* List custom deal restrictions
|
4924
4954
|
* @summary List custom deal restrictions
|
@@ -4935,11 +4965,11 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
4935
4965
|
/**
|
4936
4966
|
* Create custom deal restrictions
|
4937
4967
|
* @summary Create custom deal restrictions
|
4938
|
-
* @param {
|
4968
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4939
4969
|
* @param {*} [options] Override http request option.
|
4940
4970
|
* @throws {RequiredError}
|
4941
4971
|
*/
|
4942
|
-
createCustomDealRestrictions(
|
4972
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void>;
|
4943
4973
|
/**
|
4944
4974
|
* List custom deal restrictions
|
4945
4975
|
* @summary List custom deal restrictions
|
@@ -4958,12 +4988,12 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
4958
4988
|
/**
|
4959
4989
|
* Create custom deal restrictions
|
4960
4990
|
* @summary Create custom deal restrictions
|
4961
|
-
* @param {
|
4991
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4962
4992
|
* @param {*} [options] Override http request option.
|
4963
4993
|
* @throws {RequiredError}
|
4964
4994
|
* @memberof CustomDealsApi
|
4965
4995
|
*/
|
4966
|
-
createCustomDealRestrictions(
|
4996
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
4967
4997
|
/**
|
4968
4998
|
* List custom deal restrictions
|
4969
4999
|
* @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 = void 0;
|
25
|
+
exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = 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.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = void 0;
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -115,6 +115,9 @@ exports.Locale = {
|
|
115
115
|
RoRo: 'ro-ro',
|
116
116
|
HuHu: 'hu-hu'
|
117
117
|
};
|
118
|
+
exports.MinTurnoverRestrictionKindEnum = {
|
119
|
+
MinTurnover: 'minTurnover'
|
120
|
+
};
|
118
121
|
/**
|
119
122
|
*
|
120
123
|
* @export
|
@@ -289,6 +292,9 @@ exports.ReportTypesResponseTypesEnum = {
|
|
289
292
|
Promotion: 'promotion',
|
290
293
|
PromotionExpanded: 'promotion_expanded'
|
291
294
|
};
|
295
|
+
exports.RequiredRestrictionKindEnum = {
|
296
|
+
Required: 'required'
|
297
|
+
};
|
292
298
|
/**
|
293
299
|
*
|
294
300
|
* @export
|
@@ -1852,13 +1858,13 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1852
1858
|
/**
|
1853
1859
|
* Create custom deal restrictions
|
1854
1860
|
* @summary Create custom deal restrictions
|
1855
|
-
* @param {
|
1861
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1856
1862
|
* @param {*} [options] Override http request option.
|
1857
1863
|
* @throws {RequiredError}
|
1858
1864
|
*/
|
1859
|
-
createCustomDealRestrictions: (
|
1860
|
-
// verify required parameter '
|
1861
|
-
(0, common_1.assertParamExists)('createCustomDealRestrictions', '
|
1865
|
+
createCustomDealRestrictions: (customDealRestriction, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1866
|
+
// verify required parameter 'customDealRestriction' is not null or undefined
|
1867
|
+
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction);
|
1862
1868
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1863
1869
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1864
1870
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1876,7 +1882,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1876
1882
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1877
1883
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1878
1884
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1879
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
1885
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customDealRestriction, localVarRequestOptions, configuration);
|
1880
1886
|
return {
|
1881
1887
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1882
1888
|
options: localVarRequestOptions,
|
@@ -1923,13 +1929,13 @@ const CustomDealsApiFp = function (configuration) {
|
|
1923
1929
|
/**
|
1924
1930
|
* Create custom deal restrictions
|
1925
1931
|
* @summary Create custom deal restrictions
|
1926
|
-
* @param {
|
1932
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1927
1933
|
* @param {*} [options] Override http request option.
|
1928
1934
|
* @throws {RequiredError}
|
1929
1935
|
*/
|
1930
|
-
createCustomDealRestrictions(
|
1936
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
1931
1937
|
return __awaiter(this, void 0, void 0, function* () {
|
1932
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(
|
1938
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
|
1933
1939
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1934
1940
|
});
|
1935
1941
|
},
|
@@ -1958,12 +1964,12 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
1958
1964
|
/**
|
1959
1965
|
* Create custom deal restrictions
|
1960
1966
|
* @summary Create custom deal restrictions
|
1961
|
-
* @param {
|
1967
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1962
1968
|
* @param {*} [options] Override http request option.
|
1963
1969
|
* @throws {RequiredError}
|
1964
1970
|
*/
|
1965
|
-
createCustomDealRestrictions(
|
1966
|
-
return localVarFp.createCustomDealRestrictions(
|
1971
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
1972
|
+
return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
|
1967
1973
|
},
|
1968
1974
|
/**
|
1969
1975
|
* List custom deal restrictions
|
@@ -1987,13 +1993,13 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
1987
1993
|
/**
|
1988
1994
|
* Create custom deal restrictions
|
1989
1995
|
* @summary Create custom deal restrictions
|
1990
|
-
* @param {
|
1996
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1991
1997
|
* @param {*} [options] Override http request option.
|
1992
1998
|
* @throws {RequiredError}
|
1993
1999
|
* @memberof CustomDealsApi
|
1994
2000
|
*/
|
1995
|
-
createCustomDealRestrictions(
|
1996
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(
|
2001
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
2002
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
1997
2003
|
}
|
1998
2004
|
/**
|
1999
2005
|
* List custom deal restrictions
|
package/dist/esm/api.d.ts
CHANGED
@@ -668,54 +668,14 @@ export declare const Condition: {
|
|
668
668
|
};
|
669
669
|
export type Condition = typeof Condition[keyof typeof Condition];
|
670
670
|
/**
|
671
|
-
*
|
671
|
+
* @type CustomDealRestriction
|
672
672
|
* @export
|
673
|
-
* @interface CustomDealRestriction
|
674
673
|
*/
|
675
|
-
export
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
*/
|
681
|
-
'tagKey': string;
|
682
|
-
/**
|
683
|
-
*
|
684
|
-
* @type {string}
|
685
|
-
* @memberof CustomDealRestriction
|
686
|
-
*/
|
687
|
-
'tagValue': string;
|
688
|
-
/**
|
689
|
-
*
|
690
|
-
* @type {number}
|
691
|
-
* @memberof CustomDealRestriction
|
692
|
-
*/
|
693
|
-
'minTurnoverPercent': number;
|
694
|
-
/**
|
695
|
-
*
|
696
|
-
* @type {CustomDealRestrictionPriority}
|
697
|
-
* @memberof CustomDealRestriction
|
698
|
-
*/
|
699
|
-
'priority': CustomDealRestrictionPriority;
|
700
|
-
/**
|
701
|
-
*
|
702
|
-
* @type {number}
|
703
|
-
* @memberof CustomDealRestriction
|
704
|
-
*/
|
705
|
-
'points': number;
|
706
|
-
/**
|
707
|
-
*
|
708
|
-
* @type {string}
|
709
|
-
* @memberof CustomDealRestriction
|
710
|
-
*/
|
711
|
-
'createdAt': string;
|
712
|
-
/**
|
713
|
-
*
|
714
|
-
* @type {string}
|
715
|
-
* @memberof CustomDealRestriction
|
716
|
-
*/
|
717
|
-
'updatedAt': string;
|
718
|
-
}
|
674
|
+
export type CustomDealRestriction = {
|
675
|
+
kind: 'minTurnover';
|
676
|
+
} & MinTurnoverRestriction | {
|
677
|
+
kind: 'required';
|
678
|
+
} & RequiredRestriction;
|
719
679
|
/**
|
720
680
|
*
|
721
681
|
* @export
|
@@ -727,43 +687,6 @@ export declare const CustomDealRestrictionPriority: {
|
|
727
687
|
readonly High: "high";
|
728
688
|
};
|
729
689
|
export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
|
730
|
-
/**
|
731
|
-
*
|
732
|
-
* @export
|
733
|
-
* @interface CustomDealRestrictionRequest
|
734
|
-
*/
|
735
|
-
export interface CustomDealRestrictionRequest {
|
736
|
-
/**
|
737
|
-
*
|
738
|
-
* @type {string}
|
739
|
-
* @memberof CustomDealRestrictionRequest
|
740
|
-
*/
|
741
|
-
'tagKey': string;
|
742
|
-
/**
|
743
|
-
*
|
744
|
-
* @type {string}
|
745
|
-
* @memberof CustomDealRestrictionRequest
|
746
|
-
*/
|
747
|
-
'tagValue': string;
|
748
|
-
/**
|
749
|
-
*
|
750
|
-
* @type {number}
|
751
|
-
* @memberof CustomDealRestrictionRequest
|
752
|
-
*/
|
753
|
-
'minTurnoverPercent': number;
|
754
|
-
/**
|
755
|
-
*
|
756
|
-
* @type {CustomDealRestrictionPriority}
|
757
|
-
* @memberof CustomDealRestrictionRequest
|
758
|
-
*/
|
759
|
-
'priority': CustomDealRestrictionPriority;
|
760
|
-
/**
|
761
|
-
*
|
762
|
-
* @type {number}
|
763
|
-
* @memberof CustomDealRestrictionRequest
|
764
|
-
*/
|
765
|
-
'points': number;
|
766
|
-
}
|
767
690
|
/**
|
768
691
|
*
|
769
692
|
* @export
|
@@ -972,6 +895,66 @@ export interface MetricsCollection {
|
|
972
895
|
*/
|
973
896
|
'total': Metrics;
|
974
897
|
}
|
898
|
+
/**
|
899
|
+
*
|
900
|
+
* @export
|
901
|
+
* @interface MinTurnoverRestriction
|
902
|
+
*/
|
903
|
+
export interface MinTurnoverRestriction {
|
904
|
+
/**
|
905
|
+
*
|
906
|
+
* @type {string}
|
907
|
+
* @memberof MinTurnoverRestriction
|
908
|
+
*/
|
909
|
+
'kind': MinTurnoverRestrictionKindEnum;
|
910
|
+
/**
|
911
|
+
*
|
912
|
+
* @type {Array<MinTurnoverRestrictionValue>}
|
913
|
+
* @memberof MinTurnoverRestriction
|
914
|
+
*/
|
915
|
+
'values': Array<MinTurnoverRestrictionValue>;
|
916
|
+
}
|
917
|
+
export declare const MinTurnoverRestrictionKindEnum: {
|
918
|
+
readonly MinTurnover: "minTurnover";
|
919
|
+
};
|
920
|
+
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
921
|
+
/**
|
922
|
+
*
|
923
|
+
* @export
|
924
|
+
* @interface MinTurnoverRestrictionValue
|
925
|
+
*/
|
926
|
+
export interface MinTurnoverRestrictionValue {
|
927
|
+
/**
|
928
|
+
*
|
929
|
+
* @type {string}
|
930
|
+
* @memberof MinTurnoverRestrictionValue
|
931
|
+
*/
|
932
|
+
'tagKey': string;
|
933
|
+
/**
|
934
|
+
*
|
935
|
+
* @type {string}
|
936
|
+
* @memberof MinTurnoverRestrictionValue
|
937
|
+
*/
|
938
|
+
'tagValue': string;
|
939
|
+
/**
|
940
|
+
*
|
941
|
+
* @type {number}
|
942
|
+
* @memberof MinTurnoverRestrictionValue
|
943
|
+
*/
|
944
|
+
'minTurnoverPercent': number;
|
945
|
+
/**
|
946
|
+
*
|
947
|
+
* @type {CustomDealRestrictionPriority}
|
948
|
+
* @memberof MinTurnoverRestrictionValue
|
949
|
+
*/
|
950
|
+
'priority': CustomDealRestrictionPriority;
|
951
|
+
/**
|
952
|
+
*
|
953
|
+
* @type {number}
|
954
|
+
* @memberof MinTurnoverRestrictionValue
|
955
|
+
*/
|
956
|
+
'points': number;
|
957
|
+
}
|
975
958
|
/**
|
976
959
|
*
|
977
960
|
* @export
|
@@ -2158,6 +2141,12 @@ export interface Promotion {
|
|
2158
2141
|
* @memberof Promotion
|
2159
2142
|
*/
|
2160
2143
|
'status'?: PromotionStatus;
|
2144
|
+
/**
|
2145
|
+
*
|
2146
|
+
* @type {string}
|
2147
|
+
* @memberof Promotion
|
2148
|
+
*/
|
2149
|
+
'reference'?: string;
|
2161
2150
|
}
|
2162
2151
|
/**
|
2163
2152
|
* @type PromotionBeneficiariesResponse
|
@@ -2372,6 +2361,18 @@ export interface PromotionRequest {
|
|
2372
2361
|
* @memberof PromotionRequest
|
2373
2362
|
*/
|
2374
2363
|
'notificationConfig'?: PromotionNotificationConfig;
|
2364
|
+
/**
|
2365
|
+
*
|
2366
|
+
* @type {PromotionType}
|
2367
|
+
* @memberof PromotionRequest
|
2368
|
+
*/
|
2369
|
+
'type'?: PromotionType;
|
2370
|
+
/**
|
2371
|
+
*
|
2372
|
+
* @type {string}
|
2373
|
+
* @memberof PromotionRequest
|
2374
|
+
*/
|
2375
|
+
'reference'?: string;
|
2375
2376
|
}
|
2376
2377
|
/**
|
2377
2378
|
*
|
@@ -2546,6 +2547,29 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2546
2547
|
readonly PromotionExpanded: "promotion_expanded";
|
2547
2548
|
};
|
2548
2549
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2550
|
+
/**
|
2551
|
+
*
|
2552
|
+
* @export
|
2553
|
+
* @interface RequiredRestriction
|
2554
|
+
*/
|
2555
|
+
export interface RequiredRestriction {
|
2556
|
+
/**
|
2557
|
+
*
|
2558
|
+
* @type {string}
|
2559
|
+
* @memberof RequiredRestriction
|
2560
|
+
*/
|
2561
|
+
'kind': RequiredRestrictionKindEnum;
|
2562
|
+
/**
|
2563
|
+
*
|
2564
|
+
* @type {Array<string>}
|
2565
|
+
* @memberof RequiredRestriction
|
2566
|
+
*/
|
2567
|
+
'tagKeys': Array<string>;
|
2568
|
+
}
|
2569
|
+
export declare const RequiredRestrictionKindEnum: {
|
2570
|
+
readonly Required: "required";
|
2571
|
+
};
|
2572
|
+
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2549
2573
|
/**
|
2550
2574
|
* @type Rule
|
2551
2575
|
* @export
|
@@ -3612,6 +3636,12 @@ export interface UpdatePromotionRequest {
|
|
3612
3636
|
* @memberof UpdatePromotionRequest
|
3613
3637
|
*/
|
3614
3638
|
'notificationConfig'?: PromotionNotificationConfig;
|
3639
|
+
/**
|
3640
|
+
*
|
3641
|
+
* @type {string}
|
3642
|
+
* @memberof UpdatePromotionRequest
|
3643
|
+
*/
|
3644
|
+
'reference'?: string;
|
3615
3645
|
}
|
3616
3646
|
/**
|
3617
3647
|
*
|
@@ -4893,11 +4923,11 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
4893
4923
|
/**
|
4894
4924
|
* Create custom deal restrictions
|
4895
4925
|
* @summary Create custom deal restrictions
|
4896
|
-
* @param {
|
4926
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4897
4927
|
* @param {*} [options] Override http request option.
|
4898
4928
|
* @throws {RequiredError}
|
4899
4929
|
*/
|
4900
|
-
createCustomDealRestrictions: (
|
4930
|
+
createCustomDealRestrictions: (customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4901
4931
|
/**
|
4902
4932
|
* List custom deal restrictions
|
4903
4933
|
* @summary List custom deal restrictions
|
@@ -4914,11 +4944,11 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
4914
4944
|
/**
|
4915
4945
|
* Create custom deal restrictions
|
4916
4946
|
* @summary Create custom deal restrictions
|
4917
|
-
* @param {
|
4947
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4918
4948
|
* @param {*} [options] Override http request option.
|
4919
4949
|
* @throws {RequiredError}
|
4920
4950
|
*/
|
4921
|
-
createCustomDealRestrictions(
|
4951
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
4922
4952
|
/**
|
4923
4953
|
* List custom deal restrictions
|
4924
4954
|
* @summary List custom deal restrictions
|
@@ -4935,11 +4965,11 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
4935
4965
|
/**
|
4936
4966
|
* Create custom deal restrictions
|
4937
4967
|
* @summary Create custom deal restrictions
|
4938
|
-
* @param {
|
4968
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4939
4969
|
* @param {*} [options] Override http request option.
|
4940
4970
|
* @throws {RequiredError}
|
4941
4971
|
*/
|
4942
|
-
createCustomDealRestrictions(
|
4972
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void>;
|
4943
4973
|
/**
|
4944
4974
|
* List custom deal restrictions
|
4945
4975
|
* @summary List custom deal restrictions
|
@@ -4958,12 +4988,12 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
4958
4988
|
/**
|
4959
4989
|
* Create custom deal restrictions
|
4960
4990
|
* @summary Create custom deal restrictions
|
4961
|
-
* @param {
|
4991
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4962
4992
|
* @param {*} [options] Override http request option.
|
4963
4993
|
* @throws {RequiredError}
|
4964
4994
|
* @memberof CustomDealsApi
|
4965
4995
|
*/
|
4966
|
-
createCustomDealRestrictions(
|
4996
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
4967
4997
|
/**
|
4968
4998
|
* List custom deal restrictions
|
4969
4999
|
* @summary List custom deal restrictions
|
package/dist/esm/api.js
CHANGED
@@ -110,6 +110,9 @@ export const Locale = {
|
|
110
110
|
RoRo: 'ro-ro',
|
111
111
|
HuHu: 'hu-hu'
|
112
112
|
};
|
113
|
+
export const MinTurnoverRestrictionKindEnum = {
|
114
|
+
MinTurnover: 'minTurnover'
|
115
|
+
};
|
113
116
|
/**
|
114
117
|
*
|
115
118
|
* @export
|
@@ -284,6 +287,9 @@ export const ReportTypesResponseTypesEnum = {
|
|
284
287
|
Promotion: 'promotion',
|
285
288
|
PromotionExpanded: 'promotion_expanded'
|
286
289
|
};
|
290
|
+
export const RequiredRestrictionKindEnum = {
|
291
|
+
Required: 'required'
|
292
|
+
};
|
287
293
|
/**
|
288
294
|
*
|
289
295
|
* @export
|
@@ -1823,13 +1829,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1823
1829
|
/**
|
1824
1830
|
* Create custom deal restrictions
|
1825
1831
|
* @summary Create custom deal restrictions
|
1826
|
-
* @param {
|
1832
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1827
1833
|
* @param {*} [options] Override http request option.
|
1828
1834
|
* @throws {RequiredError}
|
1829
1835
|
*/
|
1830
|
-
createCustomDealRestrictions: (
|
1831
|
-
// verify required parameter '
|
1832
|
-
assertParamExists('createCustomDealRestrictions', '
|
1836
|
+
createCustomDealRestrictions: (customDealRestriction, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1837
|
+
// verify required parameter 'customDealRestriction' is not null or undefined
|
1838
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction);
|
1833
1839
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1834
1840
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1835
1841
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -1847,7 +1853,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1847
1853
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1848
1854
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1849
1855
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1850
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
1856
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration);
|
1851
1857
|
return {
|
1852
1858
|
url: toPathString(localVarUrlObj),
|
1853
1859
|
options: localVarRequestOptions,
|
@@ -1893,13 +1899,13 @@ export const CustomDealsApiFp = function (configuration) {
|
|
1893
1899
|
/**
|
1894
1900
|
* Create custom deal restrictions
|
1895
1901
|
* @summary Create custom deal restrictions
|
1896
|
-
* @param {
|
1902
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1897
1903
|
* @param {*} [options] Override http request option.
|
1898
1904
|
* @throws {RequiredError}
|
1899
1905
|
*/
|
1900
|
-
createCustomDealRestrictions(
|
1906
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
1901
1907
|
return __awaiter(this, void 0, void 0, function* () {
|
1902
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(
|
1908
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
|
1903
1909
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1904
1910
|
});
|
1905
1911
|
},
|
@@ -1927,12 +1933,12 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
1927
1933
|
/**
|
1928
1934
|
* Create custom deal restrictions
|
1929
1935
|
* @summary Create custom deal restrictions
|
1930
|
-
* @param {
|
1936
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1931
1937
|
* @param {*} [options] Override http request option.
|
1932
1938
|
* @throws {RequiredError}
|
1933
1939
|
*/
|
1934
|
-
createCustomDealRestrictions(
|
1935
|
-
return localVarFp.createCustomDealRestrictions(
|
1940
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
1941
|
+
return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
|
1936
1942
|
},
|
1937
1943
|
/**
|
1938
1944
|
* List custom deal restrictions
|
@@ -1955,13 +1961,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
1955
1961
|
/**
|
1956
1962
|
* Create custom deal restrictions
|
1957
1963
|
* @summary Create custom deal restrictions
|
1958
|
-
* @param {
|
1964
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1959
1965
|
* @param {*} [options] Override http request option.
|
1960
1966
|
* @throws {RequiredError}
|
1961
1967
|
* @memberof CustomDealsApi
|
1962
1968
|
*/
|
1963
|
-
createCustomDealRestrictions(
|
1964
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(
|
1969
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
1970
|
+
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
1965
1971
|
}
|
1966
1972
|
/**
|
1967
1973
|
* List custom deal restrictions
|