flexinet-api 0.0.374-prerelease0 → 0.0.376-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 +46 -26
- package/dist/api.d.ts +23 -15
- package/dist/api.js +42 -24
- package/dist/esm/api.d.ts +23 -15
- package/dist/esm/api.js +42 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.376-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.376-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -798,7 +798,7 @@ export interface MetricsCollection {
|
|
|
798
798
|
* @type {Metrics}
|
|
799
799
|
* @memberof MetricsCollection
|
|
800
800
|
*/
|
|
801
|
-
'
|
|
801
|
+
'total': Metrics;
|
|
802
802
|
}
|
|
803
803
|
/**
|
|
804
804
|
*
|
|
@@ -1612,7 +1612,7 @@ export interface Progress {
|
|
|
1612
1612
|
* @type {number}
|
|
1613
1613
|
* @memberof Progress
|
|
1614
1614
|
*/
|
|
1615
|
-
'periodID'
|
|
1615
|
+
'periodID': number;
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
1618
1618
|
|
|
@@ -1643,7 +1643,7 @@ export interface ProgressResponse {
|
|
|
1643
1643
|
|
|
1644
1644
|
export const ProgressState = {
|
|
1645
1645
|
Active: 'active',
|
|
1646
|
-
|
|
1646
|
+
Total: 'total'
|
|
1647
1647
|
} as const;
|
|
1648
1648
|
|
|
1649
1649
|
export type ProgressState = typeof ProgressState[keyof typeof ProgressState];
|
|
@@ -6993,13 +6993,15 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6993
6993
|
* @summary List promotions
|
|
6994
6994
|
* @param {string} [nextToken] This is the pagination token
|
|
6995
6995
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
6996
|
-
* @param {string} [
|
|
6997
|
-
* @param {string} [
|
|
6996
|
+
* @param {string} [startingAfter] start time after time
|
|
6997
|
+
* @param {string} [endingBefore] end time before time
|
|
6998
|
+
* @param {string} [startingBefore] start time before time
|
|
6999
|
+
* @param {string} [endingAfter] end time after time
|
|
6998
7000
|
* @param {string} [search] search by name or description
|
|
6999
7001
|
* @param {*} [options] Override http request option.
|
|
7000
7002
|
* @throws {RequiredError}
|
|
7001
7003
|
*/
|
|
7002
|
-
listUserPromotions: async (nextToken?: string, tags?: string,
|
|
7004
|
+
listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7003
7005
|
const localVarPath = `/users/promotions`;
|
|
7004
7006
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7005
7007
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7024,16 +7026,28 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7024
7026
|
localVarQueryParameter['tags'] = tags;
|
|
7025
7027
|
}
|
|
7026
7028
|
|
|
7027
|
-
if (
|
|
7028
|
-
localVarQueryParameter['
|
|
7029
|
-
(
|
|
7030
|
-
|
|
7029
|
+
if (startingAfter !== undefined) {
|
|
7030
|
+
localVarQueryParameter['startingAfter'] = (startingAfter as any instanceof Date) ?
|
|
7031
|
+
(startingAfter as any).toISOString() :
|
|
7032
|
+
startingAfter;
|
|
7031
7033
|
}
|
|
7032
7034
|
|
|
7033
|
-
if (
|
|
7034
|
-
localVarQueryParameter['
|
|
7035
|
-
(
|
|
7036
|
-
|
|
7035
|
+
if (endingBefore !== undefined) {
|
|
7036
|
+
localVarQueryParameter['endingBefore'] = (endingBefore as any instanceof Date) ?
|
|
7037
|
+
(endingBefore as any).toISOString() :
|
|
7038
|
+
endingBefore;
|
|
7039
|
+
}
|
|
7040
|
+
|
|
7041
|
+
if (startingBefore !== undefined) {
|
|
7042
|
+
localVarQueryParameter['startingBefore'] = (startingBefore as any instanceof Date) ?
|
|
7043
|
+
(startingBefore as any).toISOString() :
|
|
7044
|
+
startingBefore;
|
|
7045
|
+
}
|
|
7046
|
+
|
|
7047
|
+
if (endingAfter !== undefined) {
|
|
7048
|
+
localVarQueryParameter['endingAfter'] = (endingAfter as any instanceof Date) ?
|
|
7049
|
+
(endingAfter as any).toISOString() :
|
|
7050
|
+
endingAfter;
|
|
7037
7051
|
}
|
|
7038
7052
|
|
|
7039
7053
|
if (search !== undefined) {
|
|
@@ -7232,14 +7246,16 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7232
7246
|
* @summary List promotions
|
|
7233
7247
|
* @param {string} [nextToken] This is the pagination token
|
|
7234
7248
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
7235
|
-
* @param {string} [
|
|
7236
|
-
* @param {string} [
|
|
7249
|
+
* @param {string} [startingAfter] start time after time
|
|
7250
|
+
* @param {string} [endingBefore] end time before time
|
|
7251
|
+
* @param {string} [startingBefore] start time before time
|
|
7252
|
+
* @param {string} [endingAfter] end time after time
|
|
7237
7253
|
* @param {string} [search] search by name or description
|
|
7238
7254
|
* @param {*} [options] Override http request option.
|
|
7239
7255
|
* @throws {RequiredError}
|
|
7240
7256
|
*/
|
|
7241
|
-
async listUserPromotions(nextToken?: string, tags?: string,
|
|
7242
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags,
|
|
7257
|
+
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>> {
|
|
7258
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
|
|
7243
7259
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7244
7260
|
},
|
|
7245
7261
|
/**
|
|
@@ -7381,14 +7397,16 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7381
7397
|
* @summary List promotions
|
|
7382
7398
|
* @param {string} [nextToken] This is the pagination token
|
|
7383
7399
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
7384
|
-
* @param {string} [
|
|
7385
|
-
* @param {string} [
|
|
7400
|
+
* @param {string} [startingAfter] start time after time
|
|
7401
|
+
* @param {string} [endingBefore] end time before time
|
|
7402
|
+
* @param {string} [startingBefore] start time before time
|
|
7403
|
+
* @param {string} [endingAfter] end time after time
|
|
7386
7404
|
* @param {string} [search] search by name or description
|
|
7387
7405
|
* @param {*} [options] Override http request option.
|
|
7388
7406
|
* @throws {RequiredError}
|
|
7389
7407
|
*/
|
|
7390
|
-
listUserPromotions(nextToken?: string, tags?: string,
|
|
7391
|
-
return localVarFp.listUserPromotions(nextToken, tags,
|
|
7408
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7409
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
|
|
7392
7410
|
},
|
|
7393
7411
|
/**
|
|
7394
7412
|
* Update promotion by id
|
|
@@ -7548,15 +7566,17 @@ export class PromotionApi extends BaseAPI {
|
|
|
7548
7566
|
* @summary List promotions
|
|
7549
7567
|
* @param {string} [nextToken] This is the pagination token
|
|
7550
7568
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
7551
|
-
* @param {string} [
|
|
7552
|
-
* @param {string} [
|
|
7569
|
+
* @param {string} [startingAfter] start time after time
|
|
7570
|
+
* @param {string} [endingBefore] end time before time
|
|
7571
|
+
* @param {string} [startingBefore] start time before time
|
|
7572
|
+
* @param {string} [endingAfter] end time after time
|
|
7553
7573
|
* @param {string} [search] search by name or description
|
|
7554
7574
|
* @param {*} [options] Override http request option.
|
|
7555
7575
|
* @throws {RequiredError}
|
|
7556
7576
|
* @memberof PromotionApi
|
|
7557
7577
|
*/
|
|
7558
|
-
public listUserPromotions(nextToken?: string, tags?: string,
|
|
7559
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags,
|
|
7578
|
+
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig) {
|
|
7579
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
|
|
7560
7580
|
}
|
|
7561
7581
|
|
|
7562
7582
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -756,7 +756,7 @@ export interface MetricsCollection {
|
|
|
756
756
|
* @type {Metrics}
|
|
757
757
|
* @memberof MetricsCollection
|
|
758
758
|
*/
|
|
759
|
-
'
|
|
759
|
+
'total': Metrics;
|
|
760
760
|
}
|
|
761
761
|
/**
|
|
762
762
|
*
|
|
@@ -1530,7 +1530,7 @@ export interface Progress {
|
|
|
1530
1530
|
* @type {number}
|
|
1531
1531
|
* @memberof Progress
|
|
1532
1532
|
*/
|
|
1533
|
-
'periodID'
|
|
1533
|
+
'periodID': number;
|
|
1534
1534
|
}
|
|
1535
1535
|
/**
|
|
1536
1536
|
*
|
|
@@ -1558,7 +1558,7 @@ export interface ProgressResponse {
|
|
|
1558
1558
|
*/
|
|
1559
1559
|
export declare const ProgressState: {
|
|
1560
1560
|
readonly Active: "active";
|
|
1561
|
-
readonly
|
|
1561
|
+
readonly Total: "total";
|
|
1562
1562
|
};
|
|
1563
1563
|
export type ProgressState = typeof ProgressState[keyof typeof ProgressState];
|
|
1564
1564
|
/**
|
|
@@ -4772,13 +4772,15 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4772
4772
|
* @summary List promotions
|
|
4773
4773
|
* @param {string} [nextToken] This is the pagination token
|
|
4774
4774
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4775
|
-
* @param {string} [
|
|
4776
|
-
* @param {string} [
|
|
4775
|
+
* @param {string} [startingAfter] start time after time
|
|
4776
|
+
* @param {string} [endingBefore] end time before time
|
|
4777
|
+
* @param {string} [startingBefore] start time before time
|
|
4778
|
+
* @param {string} [endingAfter] end time after time
|
|
4777
4779
|
* @param {string} [search] search by name or description
|
|
4778
4780
|
* @param {*} [options] Override http request option.
|
|
4779
4781
|
* @throws {RequiredError}
|
|
4780
4782
|
*/
|
|
4781
|
-
listUserPromotions: (nextToken?: string, tags?: string,
|
|
4783
|
+
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4782
4784
|
/**
|
|
4783
4785
|
* Update promotion by id
|
|
4784
4786
|
* @summary Update promotion
|
|
@@ -4891,13 +4893,15 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
4891
4893
|
* @summary List promotions
|
|
4892
4894
|
* @param {string} [nextToken] This is the pagination token
|
|
4893
4895
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4894
|
-
* @param {string} [
|
|
4895
|
-
* @param {string} [
|
|
4896
|
+
* @param {string} [startingAfter] start time after time
|
|
4897
|
+
* @param {string} [endingBefore] end time before time
|
|
4898
|
+
* @param {string} [startingBefore] start time before time
|
|
4899
|
+
* @param {string} [endingAfter] end time after time
|
|
4896
4900
|
* @param {string} [search] search by name or description
|
|
4897
4901
|
* @param {*} [options] Override http request option.
|
|
4898
4902
|
* @throws {RequiredError}
|
|
4899
4903
|
*/
|
|
4900
|
-
listUserPromotions(nextToken?: string, tags?: string,
|
|
4904
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
4901
4905
|
/**
|
|
4902
4906
|
* Update promotion by id
|
|
4903
4907
|
* @summary Update promotion
|
|
@@ -5010,13 +5014,15 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5010
5014
|
* @summary List promotions
|
|
5011
5015
|
* @param {string} [nextToken] This is the pagination token
|
|
5012
5016
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
5013
|
-
* @param {string} [
|
|
5014
|
-
* @param {string} [
|
|
5017
|
+
* @param {string} [startingAfter] start time after time
|
|
5018
|
+
* @param {string} [endingBefore] end time before time
|
|
5019
|
+
* @param {string} [startingBefore] start time before time
|
|
5020
|
+
* @param {string} [endingAfter] end time after time
|
|
5015
5021
|
* @param {string} [search] search by name or description
|
|
5016
5022
|
* @param {*} [options] Override http request option.
|
|
5017
5023
|
* @throws {RequiredError}
|
|
5018
5024
|
*/
|
|
5019
|
-
listUserPromotions(nextToken?: string, tags?: string,
|
|
5025
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5020
5026
|
/**
|
|
5021
5027
|
* Update promotion by id
|
|
5022
5028
|
* @summary Update promotion
|
|
@@ -5141,14 +5147,16 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5141
5147
|
* @summary List promotions
|
|
5142
5148
|
* @param {string} [nextToken] This is the pagination token
|
|
5143
5149
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
5144
|
-
* @param {string} [
|
|
5145
|
-
* @param {string} [
|
|
5150
|
+
* @param {string} [startingAfter] start time after time
|
|
5151
|
+
* @param {string} [endingBefore] end time before time
|
|
5152
|
+
* @param {string} [startingBefore] start time before time
|
|
5153
|
+
* @param {string} [endingAfter] end time after time
|
|
5146
5154
|
* @param {string} [search] search by name or description
|
|
5147
5155
|
* @param {*} [options] Override http request option.
|
|
5148
5156
|
* @throws {RequiredError}
|
|
5149
5157
|
* @memberof PromotionApi
|
|
5150
5158
|
*/
|
|
5151
|
-
listUserPromotions(nextToken?: string, tags?: string,
|
|
5159
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5152
5160
|
/**
|
|
5153
5161
|
* Update promotion by id
|
|
5154
5162
|
* @summary Update promotion
|
package/dist/api.js
CHANGED
|
@@ -162,7 +162,7 @@ exports.ProductUsage = {
|
|
|
162
162
|
*/
|
|
163
163
|
exports.ProgressState = {
|
|
164
164
|
Active: 'active',
|
|
165
|
-
|
|
165
|
+
Total: 'total'
|
|
166
166
|
};
|
|
167
167
|
/**
|
|
168
168
|
*
|
|
@@ -3850,13 +3850,15 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3850
3850
|
* @summary List promotions
|
|
3851
3851
|
* @param {string} [nextToken] This is the pagination token
|
|
3852
3852
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
3853
|
-
* @param {string} [
|
|
3854
|
-
* @param {string} [
|
|
3853
|
+
* @param {string} [startingAfter] start time after time
|
|
3854
|
+
* @param {string} [endingBefore] end time before time
|
|
3855
|
+
* @param {string} [startingBefore] start time before time
|
|
3856
|
+
* @param {string} [endingAfter] end time after time
|
|
3855
3857
|
* @param {string} [search] search by name or description
|
|
3856
3858
|
* @param {*} [options] Override http request option.
|
|
3857
3859
|
* @throws {RequiredError}
|
|
3858
3860
|
*/
|
|
3859
|
-
listUserPromotions: (nextToken, tags,
|
|
3861
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3860
3862
|
const localVarPath = `/users/promotions`;
|
|
3861
3863
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3862
3864
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3876,15 +3878,25 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3876
3878
|
if (tags !== undefined) {
|
|
3877
3879
|
localVarQueryParameter['tags'] = tags;
|
|
3878
3880
|
}
|
|
3879
|
-
if (
|
|
3880
|
-
localVarQueryParameter['
|
|
3881
|
-
|
|
3882
|
-
|
|
3881
|
+
if (startingAfter !== undefined) {
|
|
3882
|
+
localVarQueryParameter['startingAfter'] = (startingAfter instanceof Date) ?
|
|
3883
|
+
startingAfter.toISOString() :
|
|
3884
|
+
startingAfter;
|
|
3885
|
+
}
|
|
3886
|
+
if (endingBefore !== undefined) {
|
|
3887
|
+
localVarQueryParameter['endingBefore'] = (endingBefore instanceof Date) ?
|
|
3888
|
+
endingBefore.toISOString() :
|
|
3889
|
+
endingBefore;
|
|
3883
3890
|
}
|
|
3884
|
-
if (
|
|
3885
|
-
localVarQueryParameter['
|
|
3886
|
-
|
|
3887
|
-
|
|
3891
|
+
if (startingBefore !== undefined) {
|
|
3892
|
+
localVarQueryParameter['startingBefore'] = (startingBefore instanceof Date) ?
|
|
3893
|
+
startingBefore.toISOString() :
|
|
3894
|
+
startingBefore;
|
|
3895
|
+
}
|
|
3896
|
+
if (endingAfter !== undefined) {
|
|
3897
|
+
localVarQueryParameter['endingAfter'] = (endingAfter instanceof Date) ?
|
|
3898
|
+
endingAfter.toISOString() :
|
|
3899
|
+
endingAfter;
|
|
3888
3900
|
}
|
|
3889
3901
|
if (search !== undefined) {
|
|
3890
3902
|
localVarQueryParameter['search'] = search;
|
|
@@ -4091,15 +4103,17 @@ const PromotionApiFp = function (configuration) {
|
|
|
4091
4103
|
* @summary List promotions
|
|
4092
4104
|
* @param {string} [nextToken] This is the pagination token
|
|
4093
4105
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4094
|
-
* @param {string} [
|
|
4095
|
-
* @param {string} [
|
|
4106
|
+
* @param {string} [startingAfter] start time after time
|
|
4107
|
+
* @param {string} [endingBefore] end time before time
|
|
4108
|
+
* @param {string} [startingBefore] start time before time
|
|
4109
|
+
* @param {string} [endingAfter] end time after time
|
|
4096
4110
|
* @param {string} [search] search by name or description
|
|
4097
4111
|
* @param {*} [options] Override http request option.
|
|
4098
4112
|
* @throws {RequiredError}
|
|
4099
4113
|
*/
|
|
4100
|
-
listUserPromotions(nextToken, tags,
|
|
4114
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4101
4115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4102
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags,
|
|
4116
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
|
|
4103
4117
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4104
4118
|
});
|
|
4105
4119
|
},
|
|
@@ -4244,14 +4258,16 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4244
4258
|
* @summary List promotions
|
|
4245
4259
|
* @param {string} [nextToken] This is the pagination token
|
|
4246
4260
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4247
|
-
* @param {string} [
|
|
4248
|
-
* @param {string} [
|
|
4261
|
+
* @param {string} [startingAfter] start time after time
|
|
4262
|
+
* @param {string} [endingBefore] end time before time
|
|
4263
|
+
* @param {string} [startingBefore] start time before time
|
|
4264
|
+
* @param {string} [endingAfter] end time after time
|
|
4249
4265
|
* @param {string} [search] search by name or description
|
|
4250
4266
|
* @param {*} [options] Override http request option.
|
|
4251
4267
|
* @throws {RequiredError}
|
|
4252
4268
|
*/
|
|
4253
|
-
listUserPromotions(nextToken, tags,
|
|
4254
|
-
return localVarFp.listUserPromotions(nextToken, tags,
|
|
4269
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4270
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
|
|
4255
4271
|
},
|
|
4256
4272
|
/**
|
|
4257
4273
|
* Update promotion by id
|
|
@@ -4401,15 +4417,17 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4401
4417
|
* @summary List promotions
|
|
4402
4418
|
* @param {string} [nextToken] This is the pagination token
|
|
4403
4419
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4404
|
-
* @param {string} [
|
|
4405
|
-
* @param {string} [
|
|
4420
|
+
* @param {string} [startingAfter] start time after time
|
|
4421
|
+
* @param {string} [endingBefore] end time before time
|
|
4422
|
+
* @param {string} [startingBefore] start time before time
|
|
4423
|
+
* @param {string} [endingAfter] end time after time
|
|
4406
4424
|
* @param {string} [search] search by name or description
|
|
4407
4425
|
* @param {*} [options] Override http request option.
|
|
4408
4426
|
* @throws {RequiredError}
|
|
4409
4427
|
* @memberof PromotionApi
|
|
4410
4428
|
*/
|
|
4411
|
-
listUserPromotions(nextToken, tags,
|
|
4412
|
-
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags,
|
|
4429
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4430
|
+
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
|
|
4413
4431
|
}
|
|
4414
4432
|
/**
|
|
4415
4433
|
* Update promotion by id
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -756,7 +756,7 @@ export interface MetricsCollection {
|
|
|
756
756
|
* @type {Metrics}
|
|
757
757
|
* @memberof MetricsCollection
|
|
758
758
|
*/
|
|
759
|
-
'
|
|
759
|
+
'total': Metrics;
|
|
760
760
|
}
|
|
761
761
|
/**
|
|
762
762
|
*
|
|
@@ -1530,7 +1530,7 @@ export interface Progress {
|
|
|
1530
1530
|
* @type {number}
|
|
1531
1531
|
* @memberof Progress
|
|
1532
1532
|
*/
|
|
1533
|
-
'periodID'
|
|
1533
|
+
'periodID': number;
|
|
1534
1534
|
}
|
|
1535
1535
|
/**
|
|
1536
1536
|
*
|
|
@@ -1558,7 +1558,7 @@ export interface ProgressResponse {
|
|
|
1558
1558
|
*/
|
|
1559
1559
|
export declare const ProgressState: {
|
|
1560
1560
|
readonly Active: "active";
|
|
1561
|
-
readonly
|
|
1561
|
+
readonly Total: "total";
|
|
1562
1562
|
};
|
|
1563
1563
|
export type ProgressState = typeof ProgressState[keyof typeof ProgressState];
|
|
1564
1564
|
/**
|
|
@@ -4772,13 +4772,15 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4772
4772
|
* @summary List promotions
|
|
4773
4773
|
* @param {string} [nextToken] This is the pagination token
|
|
4774
4774
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4775
|
-
* @param {string} [
|
|
4776
|
-
* @param {string} [
|
|
4775
|
+
* @param {string} [startingAfter] start time after time
|
|
4776
|
+
* @param {string} [endingBefore] end time before time
|
|
4777
|
+
* @param {string} [startingBefore] start time before time
|
|
4778
|
+
* @param {string} [endingAfter] end time after time
|
|
4777
4779
|
* @param {string} [search] search by name or description
|
|
4778
4780
|
* @param {*} [options] Override http request option.
|
|
4779
4781
|
* @throws {RequiredError}
|
|
4780
4782
|
*/
|
|
4781
|
-
listUserPromotions: (nextToken?: string, tags?: string,
|
|
4783
|
+
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4782
4784
|
/**
|
|
4783
4785
|
* Update promotion by id
|
|
4784
4786
|
* @summary Update promotion
|
|
@@ -4891,13 +4893,15 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
4891
4893
|
* @summary List promotions
|
|
4892
4894
|
* @param {string} [nextToken] This is the pagination token
|
|
4893
4895
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4894
|
-
* @param {string} [
|
|
4895
|
-
* @param {string} [
|
|
4896
|
+
* @param {string} [startingAfter] start time after time
|
|
4897
|
+
* @param {string} [endingBefore] end time before time
|
|
4898
|
+
* @param {string} [startingBefore] start time before time
|
|
4899
|
+
* @param {string} [endingAfter] end time after time
|
|
4896
4900
|
* @param {string} [search] search by name or description
|
|
4897
4901
|
* @param {*} [options] Override http request option.
|
|
4898
4902
|
* @throws {RequiredError}
|
|
4899
4903
|
*/
|
|
4900
|
-
listUserPromotions(nextToken?: string, tags?: string,
|
|
4904
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
4901
4905
|
/**
|
|
4902
4906
|
* Update promotion by id
|
|
4903
4907
|
* @summary Update promotion
|
|
@@ -5010,13 +5014,15 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5010
5014
|
* @summary List promotions
|
|
5011
5015
|
* @param {string} [nextToken] This is the pagination token
|
|
5012
5016
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
5013
|
-
* @param {string} [
|
|
5014
|
-
* @param {string} [
|
|
5017
|
+
* @param {string} [startingAfter] start time after time
|
|
5018
|
+
* @param {string} [endingBefore] end time before time
|
|
5019
|
+
* @param {string} [startingBefore] start time before time
|
|
5020
|
+
* @param {string} [endingAfter] end time after time
|
|
5015
5021
|
* @param {string} [search] search by name or description
|
|
5016
5022
|
* @param {*} [options] Override http request option.
|
|
5017
5023
|
* @throws {RequiredError}
|
|
5018
5024
|
*/
|
|
5019
|
-
listUserPromotions(nextToken?: string, tags?: string,
|
|
5025
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5020
5026
|
/**
|
|
5021
5027
|
* Update promotion by id
|
|
5022
5028
|
* @summary Update promotion
|
|
@@ -5141,14 +5147,16 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5141
5147
|
* @summary List promotions
|
|
5142
5148
|
* @param {string} [nextToken] This is the pagination token
|
|
5143
5149
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
5144
|
-
* @param {string} [
|
|
5145
|
-
* @param {string} [
|
|
5150
|
+
* @param {string} [startingAfter] start time after time
|
|
5151
|
+
* @param {string} [endingBefore] end time before time
|
|
5152
|
+
* @param {string} [startingBefore] start time before time
|
|
5153
|
+
* @param {string} [endingAfter] end time after time
|
|
5146
5154
|
* @param {string} [search] search by name or description
|
|
5147
5155
|
* @param {*} [options] Override http request option.
|
|
5148
5156
|
* @throws {RequiredError}
|
|
5149
5157
|
* @memberof PromotionApi
|
|
5150
5158
|
*/
|
|
5151
|
-
listUserPromotions(nextToken?: string, tags?: string,
|
|
5159
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5152
5160
|
/**
|
|
5153
5161
|
* Update promotion by id
|
|
5154
5162
|
* @summary Update promotion
|
package/dist/esm/api.js
CHANGED
|
@@ -157,7 +157,7 @@ export const ProductUsage = {
|
|
|
157
157
|
*/
|
|
158
158
|
export const ProgressState = {
|
|
159
159
|
Active: 'active',
|
|
160
|
-
|
|
160
|
+
Total: 'total'
|
|
161
161
|
};
|
|
162
162
|
/**
|
|
163
163
|
*
|
|
@@ -3797,13 +3797,15 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3797
3797
|
* @summary List promotions
|
|
3798
3798
|
* @param {string} [nextToken] This is the pagination token
|
|
3799
3799
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
3800
|
-
* @param {string} [
|
|
3801
|
-
* @param {string} [
|
|
3800
|
+
* @param {string} [startingAfter] start time after time
|
|
3801
|
+
* @param {string} [endingBefore] end time before time
|
|
3802
|
+
* @param {string} [startingBefore] start time before time
|
|
3803
|
+
* @param {string} [endingAfter] end time after time
|
|
3802
3804
|
* @param {string} [search] search by name or description
|
|
3803
3805
|
* @param {*} [options] Override http request option.
|
|
3804
3806
|
* @throws {RequiredError}
|
|
3805
3807
|
*/
|
|
3806
|
-
listUserPromotions: (nextToken, tags,
|
|
3808
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3807
3809
|
const localVarPath = `/users/promotions`;
|
|
3808
3810
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3809
3811
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3823,15 +3825,25 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3823
3825
|
if (tags !== undefined) {
|
|
3824
3826
|
localVarQueryParameter['tags'] = tags;
|
|
3825
3827
|
}
|
|
3826
|
-
if (
|
|
3827
|
-
localVarQueryParameter['
|
|
3828
|
-
|
|
3829
|
-
|
|
3828
|
+
if (startingAfter !== undefined) {
|
|
3829
|
+
localVarQueryParameter['startingAfter'] = (startingAfter instanceof Date) ?
|
|
3830
|
+
startingAfter.toISOString() :
|
|
3831
|
+
startingAfter;
|
|
3832
|
+
}
|
|
3833
|
+
if (endingBefore !== undefined) {
|
|
3834
|
+
localVarQueryParameter['endingBefore'] = (endingBefore instanceof Date) ?
|
|
3835
|
+
endingBefore.toISOString() :
|
|
3836
|
+
endingBefore;
|
|
3830
3837
|
}
|
|
3831
|
-
if (
|
|
3832
|
-
localVarQueryParameter['
|
|
3833
|
-
|
|
3834
|
-
|
|
3838
|
+
if (startingBefore !== undefined) {
|
|
3839
|
+
localVarQueryParameter['startingBefore'] = (startingBefore instanceof Date) ?
|
|
3840
|
+
startingBefore.toISOString() :
|
|
3841
|
+
startingBefore;
|
|
3842
|
+
}
|
|
3843
|
+
if (endingAfter !== undefined) {
|
|
3844
|
+
localVarQueryParameter['endingAfter'] = (endingAfter instanceof Date) ?
|
|
3845
|
+
endingAfter.toISOString() :
|
|
3846
|
+
endingAfter;
|
|
3835
3847
|
}
|
|
3836
3848
|
if (search !== undefined) {
|
|
3837
3849
|
localVarQueryParameter['search'] = search;
|
|
@@ -4037,15 +4049,17 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4037
4049
|
* @summary List promotions
|
|
4038
4050
|
* @param {string} [nextToken] This is the pagination token
|
|
4039
4051
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4040
|
-
* @param {string} [
|
|
4041
|
-
* @param {string} [
|
|
4052
|
+
* @param {string} [startingAfter] start time after time
|
|
4053
|
+
* @param {string} [endingBefore] end time before time
|
|
4054
|
+
* @param {string} [startingBefore] start time before time
|
|
4055
|
+
* @param {string} [endingAfter] end time after time
|
|
4042
4056
|
* @param {string} [search] search by name or description
|
|
4043
4057
|
* @param {*} [options] Override http request option.
|
|
4044
4058
|
* @throws {RequiredError}
|
|
4045
4059
|
*/
|
|
4046
|
-
listUserPromotions(nextToken, tags,
|
|
4060
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4047
4061
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4048
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags,
|
|
4062
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
|
|
4049
4063
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4050
4064
|
});
|
|
4051
4065
|
},
|
|
@@ -4189,14 +4203,16 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4189
4203
|
* @summary List promotions
|
|
4190
4204
|
* @param {string} [nextToken] This is the pagination token
|
|
4191
4205
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4192
|
-
* @param {string} [
|
|
4193
|
-
* @param {string} [
|
|
4206
|
+
* @param {string} [startingAfter] start time after time
|
|
4207
|
+
* @param {string} [endingBefore] end time before time
|
|
4208
|
+
* @param {string} [startingBefore] start time before time
|
|
4209
|
+
* @param {string} [endingAfter] end time after time
|
|
4194
4210
|
* @param {string} [search] search by name or description
|
|
4195
4211
|
* @param {*} [options] Override http request option.
|
|
4196
4212
|
* @throws {RequiredError}
|
|
4197
4213
|
*/
|
|
4198
|
-
listUserPromotions(nextToken, tags,
|
|
4199
|
-
return localVarFp.listUserPromotions(nextToken, tags,
|
|
4214
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4215
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
|
|
4200
4216
|
},
|
|
4201
4217
|
/**
|
|
4202
4218
|
* Update promotion by id
|
|
@@ -4345,15 +4361,17 @@ export class PromotionApi extends BaseAPI {
|
|
|
4345
4361
|
* @summary List promotions
|
|
4346
4362
|
* @param {string} [nextToken] This is the pagination token
|
|
4347
4363
|
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4348
|
-
* @param {string} [
|
|
4349
|
-
* @param {string} [
|
|
4364
|
+
* @param {string} [startingAfter] start time after time
|
|
4365
|
+
* @param {string} [endingBefore] end time before time
|
|
4366
|
+
* @param {string} [startingBefore] start time before time
|
|
4367
|
+
* @param {string} [endingAfter] end time after time
|
|
4350
4368
|
* @param {string} [search] search by name or description
|
|
4351
4369
|
* @param {*} [options] Override http request option.
|
|
4352
4370
|
* @throws {RequiredError}
|
|
4353
4371
|
* @memberof PromotionApi
|
|
4354
4372
|
*/
|
|
4355
|
-
listUserPromotions(nextToken, tags,
|
|
4356
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags,
|
|
4373
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4374
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
|
|
4357
4375
|
}
|
|
4358
4376
|
/**
|
|
4359
4377
|
* Update promotion by id
|