flexinet-api 0.0.417-prerelease0 → 0.0.429-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 +75 -14
- package/dist/api.d.ts +45 -8
- package/dist/api.js +64 -16
- package/dist/esm/api.d.ts +45 -8
- package/dist/esm/api.js +61 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.429-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.429-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -1926,6 +1926,21 @@ export interface PromotionRequest {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
|
|
1928
1928
|
|
|
1929
|
+
/**
|
|
1930
|
+
*
|
|
1931
|
+
* @export
|
|
1932
|
+
* @enum {string}
|
|
1933
|
+
*/
|
|
1934
|
+
|
|
1935
|
+
export const PromotionSortByField = {
|
|
1936
|
+
CreatedAt: 'createdAt',
|
|
1937
|
+
StartsAt: 'startsAt',
|
|
1938
|
+
EndsAt: 'endsAt'
|
|
1939
|
+
} as const;
|
|
1940
|
+
|
|
1941
|
+
export type PromotionSortByField = typeof PromotionSortByField[keyof typeof PromotionSortByField];
|
|
1942
|
+
|
|
1943
|
+
|
|
1929
1944
|
/**
|
|
1930
1945
|
*
|
|
1931
1946
|
* @export
|
|
@@ -2146,6 +2161,20 @@ export interface SegmentListResponse {
|
|
|
2146
2161
|
*/
|
|
2147
2162
|
'hasMore': boolean;
|
|
2148
2163
|
}
|
|
2164
|
+
/**
|
|
2165
|
+
*
|
|
2166
|
+
* @export
|
|
2167
|
+
* @enum {string}
|
|
2168
|
+
*/
|
|
2169
|
+
|
|
2170
|
+
export const SortDirection = {
|
|
2171
|
+
Asc: 'asc',
|
|
2172
|
+
Desc: 'desc'
|
|
2173
|
+
} as const;
|
|
2174
|
+
|
|
2175
|
+
export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
|
|
2176
|
+
|
|
2177
|
+
|
|
2149
2178
|
/**
|
|
2150
2179
|
*
|
|
2151
2180
|
* @export
|
|
@@ -7163,10 +7192,12 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7163
7192
|
* @param {string} [endingAfter] end time after time
|
|
7164
7193
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
7165
7194
|
* @param {string} [search] search by name or description
|
|
7195
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7196
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
7166
7197
|
* @param {*} [options] Override http request option.
|
|
7167
7198
|
* @throws {RequiredError}
|
|
7168
7199
|
*/
|
|
7169
|
-
listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7200
|
+
listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7170
7201
|
const localVarPath = `/admins/promotions`;
|
|
7171
7202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7172
7203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7235,6 +7266,14 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7235
7266
|
localVarQueryParameter['search'] = search;
|
|
7236
7267
|
}
|
|
7237
7268
|
|
|
7269
|
+
if (sortBy !== undefined) {
|
|
7270
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
7271
|
+
}
|
|
7272
|
+
|
|
7273
|
+
if (sortDirection !== undefined) {
|
|
7274
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
7275
|
+
}
|
|
7276
|
+
|
|
7238
7277
|
|
|
7239
7278
|
|
|
7240
7279
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7256,10 +7295,12 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7256
7295
|
* @param {string} [startingBefore] start time before time
|
|
7257
7296
|
* @param {string} [endingAfter] end time after time
|
|
7258
7297
|
* @param {string} [search] search by name or description
|
|
7298
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7299
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
7259
7300
|
* @param {*} [options] Override http request option.
|
|
7260
7301
|
* @throws {RequiredError}
|
|
7261
7302
|
*/
|
|
7262
|
-
listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7303
|
+
listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7263
7304
|
const localVarPath = `/users/promotions`;
|
|
7264
7305
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7265
7306
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7312,6 +7353,14 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7312
7353
|
localVarQueryParameter['search'] = search;
|
|
7313
7354
|
}
|
|
7314
7355
|
|
|
7356
|
+
if (sortBy !== undefined) {
|
|
7357
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
7358
|
+
}
|
|
7359
|
+
|
|
7360
|
+
if (sortDirection !== undefined) {
|
|
7361
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
7362
|
+
}
|
|
7363
|
+
|
|
7315
7364
|
|
|
7316
7365
|
|
|
7317
7366
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7492,11 +7541,13 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7492
7541
|
* @param {string} [endingAfter] end time after time
|
|
7493
7542
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
7494
7543
|
* @param {string} [search] search by name or description
|
|
7544
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7545
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
7495
7546
|
* @param {*} [options] Override http request option.
|
|
7496
7547
|
* @throws {RequiredError}
|
|
7497
7548
|
*/
|
|
7498
|
-
async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7499
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
|
|
7549
|
+
async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
|
|
7500
7551
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7501
7552
|
},
|
|
7502
7553
|
/**
|
|
@@ -7509,11 +7560,13 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7509
7560
|
* @param {string} [startingBefore] start time before time
|
|
7510
7561
|
* @param {string} [endingAfter] end time after time
|
|
7511
7562
|
* @param {string} [search] search by name or description
|
|
7563
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7564
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
7512
7565
|
* @param {*} [options] Override http request option.
|
|
7513
7566
|
* @throws {RequiredError}
|
|
7514
7567
|
*/
|
|
7515
|
-
async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7516
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
|
|
7568
|
+
async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
7517
7570
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7518
7571
|
},
|
|
7519
7572
|
/**
|
|
@@ -7644,11 +7697,13 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7644
7697
|
* @param {string} [endingAfter] end time after time
|
|
7645
7698
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
7646
7699
|
* @param {string} [search] search by name or description
|
|
7700
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7701
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
7647
7702
|
* @param {*} [options] Override http request option.
|
|
7648
7703
|
* @throws {RequiredError}
|
|
7649
7704
|
*/
|
|
7650
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7651
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
|
|
7705
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7706
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
7652
7707
|
},
|
|
7653
7708
|
/**
|
|
7654
7709
|
* List users promotions
|
|
@@ -7660,11 +7715,13 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7660
7715
|
* @param {string} [startingBefore] start time before time
|
|
7661
7716
|
* @param {string} [endingAfter] end time after time
|
|
7662
7717
|
* @param {string} [search] search by name or description
|
|
7718
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7719
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
7663
7720
|
* @param {*} [options] Override http request option.
|
|
7664
7721
|
* @throws {RequiredError}
|
|
7665
7722
|
*/
|
|
7666
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7667
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
|
|
7723
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7724
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
7668
7725
|
},
|
|
7669
7726
|
/**
|
|
7670
7727
|
* Update promotion by id
|
|
@@ -7811,12 +7868,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
7811
7868
|
* @param {string} [endingAfter] end time after time
|
|
7812
7869
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
7813
7870
|
* @param {string} [search] search by name or description
|
|
7871
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7872
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
7814
7873
|
* @param {*} [options] Override http request option.
|
|
7815
7874
|
* @throws {RequiredError}
|
|
7816
7875
|
* @memberof PromotionApi
|
|
7817
7876
|
*/
|
|
7818
|
-
public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig) {
|
|
7819
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(this.axios, this.basePath));
|
|
7877
|
+
public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) {
|
|
7878
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
7820
7879
|
}
|
|
7821
7880
|
|
|
7822
7881
|
/**
|
|
@@ -7829,12 +7888,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
7829
7888
|
* @param {string} [startingBefore] start time before time
|
|
7830
7889
|
* @param {string} [endingAfter] end time after time
|
|
7831
7890
|
* @param {string} [search] search by name or description
|
|
7891
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7892
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
7832
7893
|
* @param {*} [options] Override http request option.
|
|
7833
7894
|
* @throws {RequiredError}
|
|
7834
7895
|
* @memberof PromotionApi
|
|
7835
7896
|
*/
|
|
7836
|
-
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig) {
|
|
7837
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
|
|
7897
|
+
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) {
|
|
7898
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
7838
7899
|
}
|
|
7839
7900
|
|
|
7840
7901
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -1838,6 +1838,17 @@ export interface PromotionRequest {
|
|
|
1838
1838
|
*/
|
|
1839
1839
|
'endAt': string;
|
|
1840
1840
|
}
|
|
1841
|
+
/**
|
|
1842
|
+
*
|
|
1843
|
+
* @export
|
|
1844
|
+
* @enum {string}
|
|
1845
|
+
*/
|
|
1846
|
+
export declare const PromotionSortByField: {
|
|
1847
|
+
readonly CreatedAt: "createdAt";
|
|
1848
|
+
readonly StartsAt: "startsAt";
|
|
1849
|
+
readonly EndsAt: "endsAt";
|
|
1850
|
+
};
|
|
1851
|
+
export type PromotionSortByField = typeof PromotionSortByField[keyof typeof PromotionSortByField];
|
|
1841
1852
|
/**
|
|
1842
1853
|
*
|
|
1843
1854
|
* @export
|
|
@@ -2041,6 +2052,16 @@ export interface SegmentListResponse {
|
|
|
2041
2052
|
*/
|
|
2042
2053
|
'hasMore': boolean;
|
|
2043
2054
|
}
|
|
2055
|
+
/**
|
|
2056
|
+
*
|
|
2057
|
+
* @export
|
|
2058
|
+
* @enum {string}
|
|
2059
|
+
*/
|
|
2060
|
+
export declare const SortDirection: {
|
|
2061
|
+
readonly Asc: "asc";
|
|
2062
|
+
readonly Desc: "desc";
|
|
2063
|
+
};
|
|
2064
|
+
export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
|
|
2044
2065
|
/**
|
|
2045
2066
|
*
|
|
2046
2067
|
* @export
|
|
@@ -4893,10 +4914,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4893
4914
|
* @param {string} [endingAfter] end time after time
|
|
4894
4915
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4895
4916
|
* @param {string} [search] search by name or description
|
|
4917
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4918
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4896
4919
|
* @param {*} [options] Override http request option.
|
|
4897
4920
|
* @throws {RequiredError}
|
|
4898
4921
|
*/
|
|
4899
|
-
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4922
|
+
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4900
4923
|
/**
|
|
4901
4924
|
* List users promotions
|
|
4902
4925
|
* @summary List promotions
|
|
@@ -4907,10 +4930,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4907
4930
|
* @param {string} [startingBefore] start time before time
|
|
4908
4931
|
* @param {string} [endingAfter] end time after time
|
|
4909
4932
|
* @param {string} [search] search by name or description
|
|
4933
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4934
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4910
4935
|
* @param {*} [options] Override http request option.
|
|
4911
4936
|
* @throws {RequiredError}
|
|
4912
4937
|
*/
|
|
4913
|
-
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4938
|
+
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4914
4939
|
/**
|
|
4915
4940
|
* Update promotion by id
|
|
4916
4941
|
* @summary Update promotion
|
|
@@ -5014,10 +5039,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5014
5039
|
* @param {string} [endingAfter] end time after time
|
|
5015
5040
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5016
5041
|
* @param {string} [search] search by name or description
|
|
5042
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5043
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5017
5044
|
* @param {*} [options] Override http request option.
|
|
5018
5045
|
* @throws {RequiredError}
|
|
5019
5046
|
*/
|
|
5020
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5047
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5021
5048
|
/**
|
|
5022
5049
|
* List users promotions
|
|
5023
5050
|
* @summary List promotions
|
|
@@ -5028,10 +5055,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5028
5055
|
* @param {string} [startingBefore] start time before time
|
|
5029
5056
|
* @param {string} [endingAfter] end time after time
|
|
5030
5057
|
* @param {string} [search] search by name or description
|
|
5058
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5059
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5031
5060
|
* @param {*} [options] Override http request option.
|
|
5032
5061
|
* @throws {RequiredError}
|
|
5033
5062
|
*/
|
|
5034
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5063
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5035
5064
|
/**
|
|
5036
5065
|
* Update promotion by id
|
|
5037
5066
|
* @summary Update promotion
|
|
@@ -5135,10 +5164,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5135
5164
|
* @param {string} [endingAfter] end time after time
|
|
5136
5165
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5137
5166
|
* @param {string} [search] search by name or description
|
|
5167
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5168
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5138
5169
|
* @param {*} [options] Override http request option.
|
|
5139
5170
|
* @throws {RequiredError}
|
|
5140
5171
|
*/
|
|
5141
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5172
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5142
5173
|
/**
|
|
5143
5174
|
* List users promotions
|
|
5144
5175
|
* @summary List promotions
|
|
@@ -5149,10 +5180,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5149
5180
|
* @param {string} [startingBefore] start time before time
|
|
5150
5181
|
* @param {string} [endingAfter] end time after time
|
|
5151
5182
|
* @param {string} [search] search by name or description
|
|
5183
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5184
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5152
5185
|
* @param {*} [options] Override http request option.
|
|
5153
5186
|
* @throws {RequiredError}
|
|
5154
5187
|
*/
|
|
5155
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5188
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5156
5189
|
/**
|
|
5157
5190
|
* Update promotion by id
|
|
5158
5191
|
* @summary Update promotion
|
|
@@ -5267,11 +5300,13 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5267
5300
|
* @param {string} [endingAfter] end time after time
|
|
5268
5301
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5269
5302
|
* @param {string} [search] search by name or description
|
|
5303
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5304
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5270
5305
|
* @param {*} [options] Override http request option.
|
|
5271
5306
|
* @throws {RequiredError}
|
|
5272
5307
|
* @memberof PromotionApi
|
|
5273
5308
|
*/
|
|
5274
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5309
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5275
5310
|
/**
|
|
5276
5311
|
* List users promotions
|
|
5277
5312
|
* @summary List promotions
|
|
@@ -5282,11 +5317,13 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5282
5317
|
* @param {string} [startingBefore] start time before time
|
|
5283
5318
|
* @param {string} [endingAfter] end time after time
|
|
5284
5319
|
* @param {string} [search] search by name or description
|
|
5320
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5321
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5285
5322
|
* @param {*} [options] Override http request option.
|
|
5286
5323
|
* @throws {RequiredError}
|
|
5287
5324
|
* @memberof PromotionApi
|
|
5288
5325
|
*/
|
|
5289
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5326
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5290
5327
|
/**
|
|
5291
5328
|
* Update promotion by id
|
|
5292
5329
|
* @summary Update promotion
|
package/dist/api.js
CHANGED
|
@@ -22,8 +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.
|
|
25
|
+
exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
|
|
26
|
+
exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = 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 = void 0;
|
|
27
|
+
exports.UserApi = void 0;
|
|
27
28
|
const axios_1 = require("axios");
|
|
28
29
|
// Some imports not used depending on template conditions
|
|
29
30
|
// @ts-ignore
|
|
@@ -163,6 +164,16 @@ exports.ProgressState = {
|
|
|
163
164
|
Active: 'active',
|
|
164
165
|
Total: 'total'
|
|
165
166
|
};
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @export
|
|
170
|
+
* @enum {string}
|
|
171
|
+
*/
|
|
172
|
+
exports.PromotionSortByField = {
|
|
173
|
+
CreatedAt: 'createdAt',
|
|
174
|
+
StartsAt: 'startsAt',
|
|
175
|
+
EndsAt: 'endsAt'
|
|
176
|
+
};
|
|
166
177
|
/**
|
|
167
178
|
*
|
|
168
179
|
* @export
|
|
@@ -199,6 +210,15 @@ exports.RuleGroupState = {
|
|
|
199
210
|
exports.RuleKind = {
|
|
200
211
|
Tag: 'tag'
|
|
201
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @export
|
|
216
|
+
* @enum {string}
|
|
217
|
+
*/
|
|
218
|
+
exports.SortDirection = {
|
|
219
|
+
Asc: 'asc',
|
|
220
|
+
Desc: 'desc'
|
|
221
|
+
};
|
|
202
222
|
/**
|
|
203
223
|
*
|
|
204
224
|
* @export
|
|
@@ -3988,10 +4008,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3988
4008
|
* @param {string} [endingAfter] end time after time
|
|
3989
4009
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
3990
4010
|
* @param {string} [search] search by name or description
|
|
4011
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4012
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
3991
4013
|
* @param {*} [options] Override http request option.
|
|
3992
4014
|
* @throws {RequiredError}
|
|
3993
4015
|
*/
|
|
3994
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4016
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3995
4017
|
const localVarPath = `/admins/promotions`;
|
|
3996
4018
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3997
4019
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4046,6 +4068,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4046
4068
|
if (search !== undefined) {
|
|
4047
4069
|
localVarQueryParameter['search'] = search;
|
|
4048
4070
|
}
|
|
4071
|
+
if (sortBy !== undefined) {
|
|
4072
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
4073
|
+
}
|
|
4074
|
+
if (sortDirection !== undefined) {
|
|
4075
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4076
|
+
}
|
|
4049
4077
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4050
4078
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4051
4079
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4064,10 +4092,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4064
4092
|
* @param {string} [startingBefore] start time before time
|
|
4065
4093
|
* @param {string} [endingAfter] end time after time
|
|
4066
4094
|
* @param {string} [search] search by name or description
|
|
4095
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4096
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4067
4097
|
* @param {*} [options] Override http request option.
|
|
4068
4098
|
* @throws {RequiredError}
|
|
4069
4099
|
*/
|
|
4070
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4100
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4071
4101
|
const localVarPath = `/users/promotions`;
|
|
4072
4102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4073
4103
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4110,6 +4140,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4110
4140
|
if (search !== undefined) {
|
|
4111
4141
|
localVarQueryParameter['search'] = search;
|
|
4112
4142
|
}
|
|
4143
|
+
if (sortBy !== undefined) {
|
|
4144
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
4145
|
+
}
|
|
4146
|
+
if (sortDirection !== undefined) {
|
|
4147
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4148
|
+
}
|
|
4113
4149
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4114
4150
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4115
4151
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4298,12 +4334,14 @@ const PromotionApiFp = function (configuration) {
|
|
|
4298
4334
|
* @param {string} [endingAfter] end time after time
|
|
4299
4335
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4300
4336
|
* @param {string} [search] search by name or description
|
|
4337
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4338
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4301
4339
|
* @param {*} [options] Override http request option.
|
|
4302
4340
|
* @throws {RequiredError}
|
|
4303
4341
|
*/
|
|
4304
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4342
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4305
4343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4306
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
|
|
4344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
|
|
4307
4345
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4308
4346
|
});
|
|
4309
4347
|
},
|
|
@@ -4317,12 +4355,14 @@ const PromotionApiFp = function (configuration) {
|
|
|
4317
4355
|
* @param {string} [startingBefore] start time before time
|
|
4318
4356
|
* @param {string} [endingAfter] end time after time
|
|
4319
4357
|
* @param {string} [search] search by name or description
|
|
4358
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4359
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4320
4360
|
* @param {*} [options] Override http request option.
|
|
4321
4361
|
* @throws {RequiredError}
|
|
4322
4362
|
*/
|
|
4323
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4363
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4324
4364
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4325
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
|
|
4365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
4326
4366
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4327
4367
|
});
|
|
4328
4368
|
},
|
|
@@ -4456,11 +4496,13 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4456
4496
|
* @param {string} [endingAfter] end time after time
|
|
4457
4497
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4458
4498
|
* @param {string} [search] search by name or description
|
|
4499
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4500
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4459
4501
|
* @param {*} [options] Override http request option.
|
|
4460
4502
|
* @throws {RequiredError}
|
|
4461
4503
|
*/
|
|
4462
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4463
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
|
|
4504
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4505
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4464
4506
|
},
|
|
4465
4507
|
/**
|
|
4466
4508
|
* List users promotions
|
|
@@ -4472,11 +4514,13 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4472
4514
|
* @param {string} [startingBefore] start time before time
|
|
4473
4515
|
* @param {string} [endingAfter] end time after time
|
|
4474
4516
|
* @param {string} [search] search by name or description
|
|
4517
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4518
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4475
4519
|
* @param {*} [options] Override http request option.
|
|
4476
4520
|
* @throws {RequiredError}
|
|
4477
4521
|
*/
|
|
4478
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4479
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
|
|
4522
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4523
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4480
4524
|
},
|
|
4481
4525
|
/**
|
|
4482
4526
|
* Update promotion by id
|
|
@@ -4614,12 +4658,14 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4614
4658
|
* @param {string} [endingAfter] end time after time
|
|
4615
4659
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4616
4660
|
* @param {string} [search] search by name or description
|
|
4661
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4662
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4617
4663
|
* @param {*} [options] Override http request option.
|
|
4618
4664
|
* @throws {RequiredError}
|
|
4619
4665
|
* @memberof PromotionApi
|
|
4620
4666
|
*/
|
|
4621
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4622
|
-
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(this.axios, this.basePath));
|
|
4667
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4668
|
+
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4623
4669
|
}
|
|
4624
4670
|
/**
|
|
4625
4671
|
* List users promotions
|
|
@@ -4631,12 +4677,14 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4631
4677
|
* @param {string} [startingBefore] start time before time
|
|
4632
4678
|
* @param {string} [endingAfter] end time after time
|
|
4633
4679
|
* @param {string} [search] search by name or description
|
|
4680
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4681
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4634
4682
|
* @param {*} [options] Override http request option.
|
|
4635
4683
|
* @throws {RequiredError}
|
|
4636
4684
|
* @memberof PromotionApi
|
|
4637
4685
|
*/
|
|
4638
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4639
|
-
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
|
|
4686
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4687
|
+
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4640
4688
|
}
|
|
4641
4689
|
/**
|
|
4642
4690
|
* Update promotion by id
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1838,6 +1838,17 @@ export interface PromotionRequest {
|
|
|
1838
1838
|
*/
|
|
1839
1839
|
'endAt': string;
|
|
1840
1840
|
}
|
|
1841
|
+
/**
|
|
1842
|
+
*
|
|
1843
|
+
* @export
|
|
1844
|
+
* @enum {string}
|
|
1845
|
+
*/
|
|
1846
|
+
export declare const PromotionSortByField: {
|
|
1847
|
+
readonly CreatedAt: "createdAt";
|
|
1848
|
+
readonly StartsAt: "startsAt";
|
|
1849
|
+
readonly EndsAt: "endsAt";
|
|
1850
|
+
};
|
|
1851
|
+
export type PromotionSortByField = typeof PromotionSortByField[keyof typeof PromotionSortByField];
|
|
1841
1852
|
/**
|
|
1842
1853
|
*
|
|
1843
1854
|
* @export
|
|
@@ -2041,6 +2052,16 @@ export interface SegmentListResponse {
|
|
|
2041
2052
|
*/
|
|
2042
2053
|
'hasMore': boolean;
|
|
2043
2054
|
}
|
|
2055
|
+
/**
|
|
2056
|
+
*
|
|
2057
|
+
* @export
|
|
2058
|
+
* @enum {string}
|
|
2059
|
+
*/
|
|
2060
|
+
export declare const SortDirection: {
|
|
2061
|
+
readonly Asc: "asc";
|
|
2062
|
+
readonly Desc: "desc";
|
|
2063
|
+
};
|
|
2064
|
+
export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
|
|
2044
2065
|
/**
|
|
2045
2066
|
*
|
|
2046
2067
|
* @export
|
|
@@ -4893,10 +4914,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4893
4914
|
* @param {string} [endingAfter] end time after time
|
|
4894
4915
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4895
4916
|
* @param {string} [search] search by name or description
|
|
4917
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4918
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4896
4919
|
* @param {*} [options] Override http request option.
|
|
4897
4920
|
* @throws {RequiredError}
|
|
4898
4921
|
*/
|
|
4899
|
-
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4922
|
+
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4900
4923
|
/**
|
|
4901
4924
|
* List users promotions
|
|
4902
4925
|
* @summary List promotions
|
|
@@ -4907,10 +4930,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4907
4930
|
* @param {string} [startingBefore] start time before time
|
|
4908
4931
|
* @param {string} [endingAfter] end time after time
|
|
4909
4932
|
* @param {string} [search] search by name or description
|
|
4933
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4934
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4910
4935
|
* @param {*} [options] Override http request option.
|
|
4911
4936
|
* @throws {RequiredError}
|
|
4912
4937
|
*/
|
|
4913
|
-
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4938
|
+
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4914
4939
|
/**
|
|
4915
4940
|
* Update promotion by id
|
|
4916
4941
|
* @summary Update promotion
|
|
@@ -5014,10 +5039,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5014
5039
|
* @param {string} [endingAfter] end time after time
|
|
5015
5040
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5016
5041
|
* @param {string} [search] search by name or description
|
|
5042
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5043
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5017
5044
|
* @param {*} [options] Override http request option.
|
|
5018
5045
|
* @throws {RequiredError}
|
|
5019
5046
|
*/
|
|
5020
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5047
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5021
5048
|
/**
|
|
5022
5049
|
* List users promotions
|
|
5023
5050
|
* @summary List promotions
|
|
@@ -5028,10 +5055,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5028
5055
|
* @param {string} [startingBefore] start time before time
|
|
5029
5056
|
* @param {string} [endingAfter] end time after time
|
|
5030
5057
|
* @param {string} [search] search by name or description
|
|
5058
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5059
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5031
5060
|
* @param {*} [options] Override http request option.
|
|
5032
5061
|
* @throws {RequiredError}
|
|
5033
5062
|
*/
|
|
5034
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5063
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5035
5064
|
/**
|
|
5036
5065
|
* Update promotion by id
|
|
5037
5066
|
* @summary Update promotion
|
|
@@ -5135,10 +5164,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5135
5164
|
* @param {string} [endingAfter] end time after time
|
|
5136
5165
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5137
5166
|
* @param {string} [search] search by name or description
|
|
5167
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5168
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5138
5169
|
* @param {*} [options] Override http request option.
|
|
5139
5170
|
* @throws {RequiredError}
|
|
5140
5171
|
*/
|
|
5141
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5172
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5142
5173
|
/**
|
|
5143
5174
|
* List users promotions
|
|
5144
5175
|
* @summary List promotions
|
|
@@ -5149,10 +5180,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5149
5180
|
* @param {string} [startingBefore] start time before time
|
|
5150
5181
|
* @param {string} [endingAfter] end time after time
|
|
5151
5182
|
* @param {string} [search] search by name or description
|
|
5183
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5184
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5152
5185
|
* @param {*} [options] Override http request option.
|
|
5153
5186
|
* @throws {RequiredError}
|
|
5154
5187
|
*/
|
|
5155
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5188
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5156
5189
|
/**
|
|
5157
5190
|
* Update promotion by id
|
|
5158
5191
|
* @summary Update promotion
|
|
@@ -5267,11 +5300,13 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5267
5300
|
* @param {string} [endingAfter] end time after time
|
|
5268
5301
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5269
5302
|
* @param {string} [search] search by name or description
|
|
5303
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5304
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5270
5305
|
* @param {*} [options] Override http request option.
|
|
5271
5306
|
* @throws {RequiredError}
|
|
5272
5307
|
* @memberof PromotionApi
|
|
5273
5308
|
*/
|
|
5274
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5309
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5275
5310
|
/**
|
|
5276
5311
|
* List users promotions
|
|
5277
5312
|
* @summary List promotions
|
|
@@ -5282,11 +5317,13 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5282
5317
|
* @param {string} [startingBefore] start time before time
|
|
5283
5318
|
* @param {string} [endingAfter] end time after time
|
|
5284
5319
|
* @param {string} [search] search by name or description
|
|
5320
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5321
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
5285
5322
|
* @param {*} [options] Override http request option.
|
|
5286
5323
|
* @throws {RequiredError}
|
|
5287
5324
|
* @memberof PromotionApi
|
|
5288
5325
|
*/
|
|
5289
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5326
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5290
5327
|
/**
|
|
5291
5328
|
* Update promotion by id
|
|
5292
5329
|
* @summary Update promotion
|
package/dist/esm/api.js
CHANGED
|
@@ -159,6 +159,16 @@ export const ProgressState = {
|
|
|
159
159
|
Active: 'active',
|
|
160
160
|
Total: 'total'
|
|
161
161
|
};
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @export
|
|
165
|
+
* @enum {string}
|
|
166
|
+
*/
|
|
167
|
+
export const PromotionSortByField = {
|
|
168
|
+
CreatedAt: 'createdAt',
|
|
169
|
+
StartsAt: 'startsAt',
|
|
170
|
+
EndsAt: 'endsAt'
|
|
171
|
+
};
|
|
162
172
|
/**
|
|
163
173
|
*
|
|
164
174
|
* @export
|
|
@@ -195,6 +205,15 @@ export const RuleGroupState = {
|
|
|
195
205
|
export const RuleKind = {
|
|
196
206
|
Tag: 'tag'
|
|
197
207
|
};
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @export
|
|
211
|
+
* @enum {string}
|
|
212
|
+
*/
|
|
213
|
+
export const SortDirection = {
|
|
214
|
+
Asc: 'asc',
|
|
215
|
+
Desc: 'desc'
|
|
216
|
+
};
|
|
198
217
|
/**
|
|
199
218
|
*
|
|
200
219
|
* @export
|
|
@@ -3936,10 +3955,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3936
3955
|
* @param {string} [endingAfter] end time after time
|
|
3937
3956
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
3938
3957
|
* @param {string} [search] search by name or description
|
|
3958
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
3959
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
3939
3960
|
* @param {*} [options] Override http request option.
|
|
3940
3961
|
* @throws {RequiredError}
|
|
3941
3962
|
*/
|
|
3942
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3963
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3943
3964
|
const localVarPath = `/admins/promotions`;
|
|
3944
3965
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3945
3966
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3994,6 +4015,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3994
4015
|
if (search !== undefined) {
|
|
3995
4016
|
localVarQueryParameter['search'] = search;
|
|
3996
4017
|
}
|
|
4018
|
+
if (sortBy !== undefined) {
|
|
4019
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
4020
|
+
}
|
|
4021
|
+
if (sortDirection !== undefined) {
|
|
4022
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4023
|
+
}
|
|
3997
4024
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3998
4025
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3999
4026
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4012,10 +4039,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4012
4039
|
* @param {string} [startingBefore] start time before time
|
|
4013
4040
|
* @param {string} [endingAfter] end time after time
|
|
4014
4041
|
* @param {string} [search] search by name or description
|
|
4042
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4043
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4015
4044
|
* @param {*} [options] Override http request option.
|
|
4016
4045
|
* @throws {RequiredError}
|
|
4017
4046
|
*/
|
|
4018
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4047
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4019
4048
|
const localVarPath = `/users/promotions`;
|
|
4020
4049
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4021
4050
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4058,6 +4087,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4058
4087
|
if (search !== undefined) {
|
|
4059
4088
|
localVarQueryParameter['search'] = search;
|
|
4060
4089
|
}
|
|
4090
|
+
if (sortBy !== undefined) {
|
|
4091
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
4092
|
+
}
|
|
4093
|
+
if (sortDirection !== undefined) {
|
|
4094
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4095
|
+
}
|
|
4061
4096
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4062
4097
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4063
4098
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4245,12 +4280,14 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4245
4280
|
* @param {string} [endingAfter] end time after time
|
|
4246
4281
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4247
4282
|
* @param {string} [search] search by name or description
|
|
4283
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4284
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4248
4285
|
* @param {*} [options] Override http request option.
|
|
4249
4286
|
* @throws {RequiredError}
|
|
4250
4287
|
*/
|
|
4251
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4288
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4252
4289
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4253
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
|
|
4290
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
|
|
4254
4291
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4255
4292
|
});
|
|
4256
4293
|
},
|
|
@@ -4264,12 +4301,14 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4264
4301
|
* @param {string} [startingBefore] start time before time
|
|
4265
4302
|
* @param {string} [endingAfter] end time after time
|
|
4266
4303
|
* @param {string} [search] search by name or description
|
|
4304
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4305
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4267
4306
|
* @param {*} [options] Override http request option.
|
|
4268
4307
|
* @throws {RequiredError}
|
|
4269
4308
|
*/
|
|
4270
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4309
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4271
4310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4272
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
|
|
4311
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
4273
4312
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4274
4313
|
});
|
|
4275
4314
|
},
|
|
@@ -4402,11 +4441,13 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4402
4441
|
* @param {string} [endingAfter] end time after time
|
|
4403
4442
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4404
4443
|
* @param {string} [search] search by name or description
|
|
4444
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4445
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4405
4446
|
* @param {*} [options] Override http request option.
|
|
4406
4447
|
* @throws {RequiredError}
|
|
4407
4448
|
*/
|
|
4408
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4409
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
|
|
4449
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4450
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4410
4451
|
},
|
|
4411
4452
|
/**
|
|
4412
4453
|
* List users promotions
|
|
@@ -4418,11 +4459,13 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4418
4459
|
* @param {string} [startingBefore] start time before time
|
|
4419
4460
|
* @param {string} [endingAfter] end time after time
|
|
4420
4461
|
* @param {string} [search] search by name or description
|
|
4462
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4463
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4421
4464
|
* @param {*} [options] Override http request option.
|
|
4422
4465
|
* @throws {RequiredError}
|
|
4423
4466
|
*/
|
|
4424
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4425
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
|
|
4467
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4468
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4426
4469
|
},
|
|
4427
4470
|
/**
|
|
4428
4471
|
* Update promotion by id
|
|
@@ -4559,12 +4602,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
4559
4602
|
* @param {string} [endingAfter] end time after time
|
|
4560
4603
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4561
4604
|
* @param {string} [search] search by name or description
|
|
4605
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4606
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4562
4607
|
* @param {*} [options] Override http request option.
|
|
4563
4608
|
* @throws {RequiredError}
|
|
4564
4609
|
* @memberof PromotionApi
|
|
4565
4610
|
*/
|
|
4566
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4567
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(this.axios, this.basePath));
|
|
4611
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4612
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4568
4613
|
}
|
|
4569
4614
|
/**
|
|
4570
4615
|
* List users promotions
|
|
@@ -4576,12 +4621,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
4576
4621
|
* @param {string} [startingBefore] start time before time
|
|
4577
4622
|
* @param {string} [endingAfter] end time after time
|
|
4578
4623
|
* @param {string} [search] search by name or description
|
|
4624
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4625
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4579
4626
|
* @param {*} [options] Override http request option.
|
|
4580
4627
|
* @throws {RequiredError}
|
|
4581
4628
|
* @memberof PromotionApi
|
|
4582
4629
|
*/
|
|
4583
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4584
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
|
|
4630
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4631
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4585
4632
|
}
|
|
4586
4633
|
/**
|
|
4587
4634
|
* Update promotion by id
|