flexinet-api 0.0.359-prerelease0 → 0.0.364-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 +27 -7
- package/dist/api.d.ts +12 -4
- package/dist/api.js +25 -7
- package/dist/esm/api.d.ts +12 -4
- package/dist/esm/api.js +25 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.364-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.364-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -6894,12 +6894,14 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6894
6894
|
* @param {PromotionType} [type] type to filter by
|
|
6895
6895
|
* @param {string} [startingAfter] start time after time
|
|
6896
6896
|
* @param {string} [endingBefore] end time before time
|
|
6897
|
+
* @param {string} [startingBefore] start time before time
|
|
6898
|
+
* @param {string} [endingAfter] end time after time
|
|
6897
6899
|
* @param {string} [clientID] client ID to filter by
|
|
6898
6900
|
* @param {string} [search] search by name or description
|
|
6899
6901
|
* @param {*} [options] Override http request option.
|
|
6900
6902
|
* @throws {RequiredError}
|
|
6901
6903
|
*/
|
|
6902
|
-
listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6904
|
+
listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6903
6905
|
const localVarPath = `/admins/promotions`;
|
|
6904
6906
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6905
6907
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6948,6 +6950,18 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6948
6950
|
endingBefore;
|
|
6949
6951
|
}
|
|
6950
6952
|
|
|
6953
|
+
if (startingBefore !== undefined) {
|
|
6954
|
+
localVarQueryParameter['startingBefore'] = (startingBefore as any instanceof Date) ?
|
|
6955
|
+
(startingBefore as any).toISOString() :
|
|
6956
|
+
startingBefore;
|
|
6957
|
+
}
|
|
6958
|
+
|
|
6959
|
+
if (endingAfter !== undefined) {
|
|
6960
|
+
localVarQueryParameter['endingAfter'] = (endingAfter as any instanceof Date) ?
|
|
6961
|
+
(endingAfter as any).toISOString() :
|
|
6962
|
+
endingAfter;
|
|
6963
|
+
}
|
|
6964
|
+
|
|
6951
6965
|
if (clientID !== undefined) {
|
|
6952
6966
|
localVarQueryParameter['clientID'] = clientID;
|
|
6953
6967
|
}
|
|
@@ -7195,13 +7209,15 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7195
7209
|
* @param {PromotionType} [type] type to filter by
|
|
7196
7210
|
* @param {string} [startingAfter] start time after time
|
|
7197
7211
|
* @param {string} [endingBefore] end time before time
|
|
7212
|
+
* @param {string} [startingBefore] start time before time
|
|
7213
|
+
* @param {string} [endingAfter] end time after time
|
|
7198
7214
|
* @param {string} [clientID] client ID to filter by
|
|
7199
7215
|
* @param {string} [search] search by name or description
|
|
7200
7216
|
* @param {*} [options] Override http request option.
|
|
7201
7217
|
* @throws {RequiredError}
|
|
7202
7218
|
*/
|
|
7203
|
-
async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7204
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options);
|
|
7219
|
+
async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options);
|
|
7205
7221
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7206
7222
|
},
|
|
7207
7223
|
/**
|
|
@@ -7343,13 +7359,15 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7343
7359
|
* @param {PromotionType} [type] type to filter by
|
|
7344
7360
|
* @param {string} [startingAfter] start time after time
|
|
7345
7361
|
* @param {string} [endingBefore] end time before time
|
|
7362
|
+
* @param {string} [startingBefore] start time before time
|
|
7363
|
+
* @param {string} [endingAfter] end time after time
|
|
7346
7364
|
* @param {string} [clientID] client ID to filter by
|
|
7347
7365
|
* @param {string} [search] search by name or description
|
|
7348
7366
|
* @param {*} [options] Override http request option.
|
|
7349
7367
|
* @throws {RequiredError}
|
|
7350
7368
|
*/
|
|
7351
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7352
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(axios, basePath));
|
|
7369
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7370
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options).then((request) => request(axios, basePath));
|
|
7353
7371
|
},
|
|
7354
7372
|
/**
|
|
7355
7373
|
* List users promotions
|
|
@@ -7506,14 +7524,16 @@ export class PromotionApi extends BaseAPI {
|
|
|
7506
7524
|
* @param {PromotionType} [type] type to filter by
|
|
7507
7525
|
* @param {string} [startingAfter] start time after time
|
|
7508
7526
|
* @param {string} [endingBefore] end time before time
|
|
7527
|
+
* @param {string} [startingBefore] start time before time
|
|
7528
|
+
* @param {string} [endingAfter] end time after time
|
|
7509
7529
|
* @param {string} [clientID] client ID to filter by
|
|
7510
7530
|
* @param {string} [search] search by name or description
|
|
7511
7531
|
* @param {*} [options] Override http request option.
|
|
7512
7532
|
* @throws {RequiredError}
|
|
7513
7533
|
* @memberof PromotionApi
|
|
7514
7534
|
*/
|
|
7515
|
-
public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig) {
|
|
7516
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(this.axios, this.basePath));
|
|
7535
|
+
public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: AxiosRequestConfig) {
|
|
7536
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options).then((request) => request(this.axios, this.basePath));
|
|
7517
7537
|
}
|
|
7518
7538
|
|
|
7519
7539
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -4755,12 +4755,14 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4755
4755
|
* @param {PromotionType} [type] type to filter by
|
|
4756
4756
|
* @param {string} [startingAfter] start time after time
|
|
4757
4757
|
* @param {string} [endingBefore] end time before time
|
|
4758
|
+
* @param {string} [startingBefore] start time before time
|
|
4759
|
+
* @param {string} [endingAfter] end time after time
|
|
4758
4760
|
* @param {string} [clientID] client ID to filter by
|
|
4759
4761
|
* @param {string} [search] search by name or description
|
|
4760
4762
|
* @param {*} [options] Override http request option.
|
|
4761
4763
|
* @throws {RequiredError}
|
|
4762
4764
|
*/
|
|
4763
|
-
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4765
|
+
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4764
4766
|
/**
|
|
4765
4767
|
* List users promotions
|
|
4766
4768
|
* @summary List promotions
|
|
@@ -4872,12 +4874,14 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
4872
4874
|
* @param {PromotionType} [type] type to filter by
|
|
4873
4875
|
* @param {string} [startingAfter] start time after time
|
|
4874
4876
|
* @param {string} [endingBefore] end time before time
|
|
4877
|
+
* @param {string} [startingBefore] start time before time
|
|
4878
|
+
* @param {string} [endingAfter] end time after time
|
|
4875
4879
|
* @param {string} [clientID] client ID to filter by
|
|
4876
4880
|
* @param {string} [search] search by name or description
|
|
4877
4881
|
* @param {*} [options] Override http request option.
|
|
4878
4882
|
* @throws {RequiredError}
|
|
4879
4883
|
*/
|
|
4880
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
4884
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
4881
4885
|
/**
|
|
4882
4886
|
* List users promotions
|
|
4883
4887
|
* @summary List promotions
|
|
@@ -4989,12 +4993,14 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
4989
4993
|
* @param {PromotionType} [type] type to filter by
|
|
4990
4994
|
* @param {string} [startingAfter] start time after time
|
|
4991
4995
|
* @param {string} [endingBefore] end time before time
|
|
4996
|
+
* @param {string} [startingBefore] start time before time
|
|
4997
|
+
* @param {string} [endingAfter] end time after time
|
|
4992
4998
|
* @param {string} [clientID] client ID to filter by
|
|
4993
4999
|
* @param {string} [search] search by name or description
|
|
4994
5000
|
* @param {*} [options] Override http request option.
|
|
4995
5001
|
* @throws {RequiredError}
|
|
4996
5002
|
*/
|
|
4997
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5003
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
4998
5004
|
/**
|
|
4999
5005
|
* List users promotions
|
|
5000
5006
|
* @summary List promotions
|
|
@@ -5117,13 +5123,15 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5117
5123
|
* @param {PromotionType} [type] type to filter by
|
|
5118
5124
|
* @param {string} [startingAfter] start time after time
|
|
5119
5125
|
* @param {string} [endingBefore] end time before time
|
|
5126
|
+
* @param {string} [startingBefore] start time before time
|
|
5127
|
+
* @param {string} [endingAfter] end time after time
|
|
5120
5128
|
* @param {string} [clientID] client ID to filter by
|
|
5121
5129
|
* @param {string} [search] search by name or description
|
|
5122
5130
|
* @param {*} [options] Override http request option.
|
|
5123
5131
|
* @throws {RequiredError}
|
|
5124
5132
|
* @memberof PromotionApi
|
|
5125
5133
|
*/
|
|
5126
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5134
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5127
5135
|
/**
|
|
5128
5136
|
* List users promotions
|
|
5129
5137
|
* @summary List promotions
|
package/dist/api.js
CHANGED
|
@@ -3769,12 +3769,14 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3769
3769
|
* @param {PromotionType} [type] type to filter by
|
|
3770
3770
|
* @param {string} [startingAfter] start time after time
|
|
3771
3771
|
* @param {string} [endingBefore] end time before time
|
|
3772
|
+
* @param {string} [startingBefore] start time before time
|
|
3773
|
+
* @param {string} [endingAfter] end time after time
|
|
3772
3774
|
* @param {string} [clientID] client ID to filter by
|
|
3773
3775
|
* @param {string} [search] search by name or description
|
|
3774
3776
|
* @param {*} [options] Override http request option.
|
|
3775
3777
|
* @throws {RequiredError}
|
|
3776
3778
|
*/
|
|
3777
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3779
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3778
3780
|
const localVarPath = `/admins/promotions`;
|
|
3779
3781
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3780
3782
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3813,6 +3815,16 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3813
3815
|
endingBefore.toISOString() :
|
|
3814
3816
|
endingBefore;
|
|
3815
3817
|
}
|
|
3818
|
+
if (startingBefore !== undefined) {
|
|
3819
|
+
localVarQueryParameter['startingBefore'] = (startingBefore instanceof Date) ?
|
|
3820
|
+
startingBefore.toISOString() :
|
|
3821
|
+
startingBefore;
|
|
3822
|
+
}
|
|
3823
|
+
if (endingAfter !== undefined) {
|
|
3824
|
+
localVarQueryParameter['endingAfter'] = (endingAfter instanceof Date) ?
|
|
3825
|
+
endingAfter.toISOString() :
|
|
3826
|
+
endingAfter;
|
|
3827
|
+
}
|
|
3816
3828
|
if (clientID !== undefined) {
|
|
3817
3829
|
localVarQueryParameter['clientID'] = clientID;
|
|
3818
3830
|
}
|
|
@@ -4055,14 +4067,16 @@ const PromotionApiFp = function (configuration) {
|
|
|
4055
4067
|
* @param {PromotionType} [type] type to filter by
|
|
4056
4068
|
* @param {string} [startingAfter] start time after time
|
|
4057
4069
|
* @param {string} [endingBefore] end time before time
|
|
4070
|
+
* @param {string} [startingBefore] start time before time
|
|
4071
|
+
* @param {string} [endingAfter] end time after time
|
|
4058
4072
|
* @param {string} [clientID] client ID to filter by
|
|
4059
4073
|
* @param {string} [search] search by name or description
|
|
4060
4074
|
* @param {*} [options] Override http request option.
|
|
4061
4075
|
* @throws {RequiredError}
|
|
4062
4076
|
*/
|
|
4063
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options) {
|
|
4077
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options) {
|
|
4064
4078
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4065
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options);
|
|
4079
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options);
|
|
4066
4080
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4067
4081
|
});
|
|
4068
4082
|
},
|
|
@@ -4209,13 +4223,15 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4209
4223
|
* @param {PromotionType} [type] type to filter by
|
|
4210
4224
|
* @param {string} [startingAfter] start time after time
|
|
4211
4225
|
* @param {string} [endingBefore] end time before time
|
|
4226
|
+
* @param {string} [startingBefore] start time before time
|
|
4227
|
+
* @param {string} [endingAfter] end time after time
|
|
4212
4228
|
* @param {string} [clientID] client ID to filter by
|
|
4213
4229
|
* @param {string} [search] search by name or description
|
|
4214
4230
|
* @param {*} [options] Override http request option.
|
|
4215
4231
|
* @throws {RequiredError}
|
|
4216
4232
|
*/
|
|
4217
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options) {
|
|
4218
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(axios, basePath));
|
|
4233
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options) {
|
|
4234
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options).then((request) => request(axios, basePath));
|
|
4219
4235
|
},
|
|
4220
4236
|
/**
|
|
4221
4237
|
* List users promotions
|
|
@@ -4363,14 +4379,16 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4363
4379
|
* @param {PromotionType} [type] type to filter by
|
|
4364
4380
|
* @param {string} [startingAfter] start time after time
|
|
4365
4381
|
* @param {string} [endingBefore] end time before time
|
|
4382
|
+
* @param {string} [startingBefore] start time before time
|
|
4383
|
+
* @param {string} [endingAfter] end time after time
|
|
4366
4384
|
* @param {string} [clientID] client ID to filter by
|
|
4367
4385
|
* @param {string} [search] search by name or description
|
|
4368
4386
|
* @param {*} [options] Override http request option.
|
|
4369
4387
|
* @throws {RequiredError}
|
|
4370
4388
|
* @memberof PromotionApi
|
|
4371
4389
|
*/
|
|
4372
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options) {
|
|
4373
|
-
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(this.axios, this.basePath));
|
|
4390
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options) {
|
|
4391
|
+
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options).then((request) => request(this.axios, this.basePath));
|
|
4374
4392
|
}
|
|
4375
4393
|
/**
|
|
4376
4394
|
* List users promotions
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -4755,12 +4755,14 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4755
4755
|
* @param {PromotionType} [type] type to filter by
|
|
4756
4756
|
* @param {string} [startingAfter] start time after time
|
|
4757
4757
|
* @param {string} [endingBefore] end time before time
|
|
4758
|
+
* @param {string} [startingBefore] start time before time
|
|
4759
|
+
* @param {string} [endingAfter] end time after time
|
|
4758
4760
|
* @param {string} [clientID] client ID to filter by
|
|
4759
4761
|
* @param {string} [search] search by name or description
|
|
4760
4762
|
* @param {*} [options] Override http request option.
|
|
4761
4763
|
* @throws {RequiredError}
|
|
4762
4764
|
*/
|
|
4763
|
-
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4765
|
+
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4764
4766
|
/**
|
|
4765
4767
|
* List users promotions
|
|
4766
4768
|
* @summary List promotions
|
|
@@ -4872,12 +4874,14 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
4872
4874
|
* @param {PromotionType} [type] type to filter by
|
|
4873
4875
|
* @param {string} [startingAfter] start time after time
|
|
4874
4876
|
* @param {string} [endingBefore] end time before time
|
|
4877
|
+
* @param {string} [startingBefore] start time before time
|
|
4878
|
+
* @param {string} [endingAfter] end time after time
|
|
4875
4879
|
* @param {string} [clientID] client ID to filter by
|
|
4876
4880
|
* @param {string} [search] search by name or description
|
|
4877
4881
|
* @param {*} [options] Override http request option.
|
|
4878
4882
|
* @throws {RequiredError}
|
|
4879
4883
|
*/
|
|
4880
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
4884
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
4881
4885
|
/**
|
|
4882
4886
|
* List users promotions
|
|
4883
4887
|
* @summary List promotions
|
|
@@ -4989,12 +4993,14 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
4989
4993
|
* @param {PromotionType} [type] type to filter by
|
|
4990
4994
|
* @param {string} [startingAfter] start time after time
|
|
4991
4995
|
* @param {string} [endingBefore] end time before time
|
|
4996
|
+
* @param {string} [startingBefore] start time before time
|
|
4997
|
+
* @param {string} [endingAfter] end time after time
|
|
4992
4998
|
* @param {string} [clientID] client ID to filter by
|
|
4993
4999
|
* @param {string} [search] search by name or description
|
|
4994
5000
|
* @param {*} [options] Override http request option.
|
|
4995
5001
|
* @throws {RequiredError}
|
|
4996
5002
|
*/
|
|
4997
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5003
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
4998
5004
|
/**
|
|
4999
5005
|
* List users promotions
|
|
5000
5006
|
* @summary List promotions
|
|
@@ -5117,13 +5123,15 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5117
5123
|
* @param {PromotionType} [type] type to filter by
|
|
5118
5124
|
* @param {string} [startingAfter] start time after time
|
|
5119
5125
|
* @param {string} [endingBefore] end time before time
|
|
5126
|
+
* @param {string} [startingBefore] start time before time
|
|
5127
|
+
* @param {string} [endingAfter] end time after time
|
|
5120
5128
|
* @param {string} [clientID] client ID to filter by
|
|
5121
5129
|
* @param {string} [search] search by name or description
|
|
5122
5130
|
* @param {*} [options] Override http request option.
|
|
5123
5131
|
* @throws {RequiredError}
|
|
5124
5132
|
* @memberof PromotionApi
|
|
5125
5133
|
*/
|
|
5126
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5134
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5127
5135
|
/**
|
|
5128
5136
|
* List users promotions
|
|
5129
5137
|
* @summary List promotions
|
package/dist/esm/api.js
CHANGED
|
@@ -3716,12 +3716,14 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3716
3716
|
* @param {PromotionType} [type] type to filter by
|
|
3717
3717
|
* @param {string} [startingAfter] start time after time
|
|
3718
3718
|
* @param {string} [endingBefore] end time before time
|
|
3719
|
+
* @param {string} [startingBefore] start time before time
|
|
3720
|
+
* @param {string} [endingAfter] end time after time
|
|
3719
3721
|
* @param {string} [clientID] client ID to filter by
|
|
3720
3722
|
* @param {string} [search] search by name or description
|
|
3721
3723
|
* @param {*} [options] Override http request option.
|
|
3722
3724
|
* @throws {RequiredError}
|
|
3723
3725
|
*/
|
|
3724
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3726
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3725
3727
|
const localVarPath = `/admins/promotions`;
|
|
3726
3728
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3727
3729
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3760,6 +3762,16 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3760
3762
|
endingBefore.toISOString() :
|
|
3761
3763
|
endingBefore;
|
|
3762
3764
|
}
|
|
3765
|
+
if (startingBefore !== undefined) {
|
|
3766
|
+
localVarQueryParameter['startingBefore'] = (startingBefore instanceof Date) ?
|
|
3767
|
+
startingBefore.toISOString() :
|
|
3768
|
+
startingBefore;
|
|
3769
|
+
}
|
|
3770
|
+
if (endingAfter !== undefined) {
|
|
3771
|
+
localVarQueryParameter['endingAfter'] = (endingAfter instanceof Date) ?
|
|
3772
|
+
endingAfter.toISOString() :
|
|
3773
|
+
endingAfter;
|
|
3774
|
+
}
|
|
3763
3775
|
if (clientID !== undefined) {
|
|
3764
3776
|
localVarQueryParameter['clientID'] = clientID;
|
|
3765
3777
|
}
|
|
@@ -4001,14 +4013,16 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4001
4013
|
* @param {PromotionType} [type] type to filter by
|
|
4002
4014
|
* @param {string} [startingAfter] start time after time
|
|
4003
4015
|
* @param {string} [endingBefore] end time before time
|
|
4016
|
+
* @param {string} [startingBefore] start time before time
|
|
4017
|
+
* @param {string} [endingAfter] end time after time
|
|
4004
4018
|
* @param {string} [clientID] client ID to filter by
|
|
4005
4019
|
* @param {string} [search] search by name or description
|
|
4006
4020
|
* @param {*} [options] Override http request option.
|
|
4007
4021
|
* @throws {RequiredError}
|
|
4008
4022
|
*/
|
|
4009
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options) {
|
|
4023
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options) {
|
|
4010
4024
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4011
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options);
|
|
4025
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options);
|
|
4012
4026
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4013
4027
|
});
|
|
4014
4028
|
},
|
|
@@ -4154,13 +4168,15 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4154
4168
|
* @param {PromotionType} [type] type to filter by
|
|
4155
4169
|
* @param {string} [startingAfter] start time after time
|
|
4156
4170
|
* @param {string} [endingBefore] end time before time
|
|
4171
|
+
* @param {string} [startingBefore] start time before time
|
|
4172
|
+
* @param {string} [endingAfter] end time after time
|
|
4157
4173
|
* @param {string} [clientID] client ID to filter by
|
|
4158
4174
|
* @param {string} [search] search by name or description
|
|
4159
4175
|
* @param {*} [options] Override http request option.
|
|
4160
4176
|
* @throws {RequiredError}
|
|
4161
4177
|
*/
|
|
4162
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options) {
|
|
4163
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(axios, basePath));
|
|
4178
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options) {
|
|
4179
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options).then((request) => request(axios, basePath));
|
|
4164
4180
|
},
|
|
4165
4181
|
/**
|
|
4166
4182
|
* List users promotions
|
|
@@ -4307,14 +4323,16 @@ export class PromotionApi extends BaseAPI {
|
|
|
4307
4323
|
* @param {PromotionType} [type] type to filter by
|
|
4308
4324
|
* @param {string} [startingAfter] start time after time
|
|
4309
4325
|
* @param {string} [endingBefore] end time before time
|
|
4326
|
+
* @param {string} [startingBefore] start time before time
|
|
4327
|
+
* @param {string} [endingAfter] end time after time
|
|
4310
4328
|
* @param {string} [clientID] client ID to filter by
|
|
4311
4329
|
* @param {string} [search] search by name or description
|
|
4312
4330
|
* @param {*} [options] Override http request option.
|
|
4313
4331
|
* @throws {RequiredError}
|
|
4314
4332
|
* @memberof PromotionApi
|
|
4315
4333
|
*/
|
|
4316
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options) {
|
|
4317
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(this.axios, this.basePath));
|
|
4334
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options) {
|
|
4335
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientID, search, options).then((request) => request(this.axios, this.basePath));
|
|
4318
4336
|
}
|
|
4319
4337
|
/**
|
|
4320
4338
|
* List users promotions
|