flexinet-api 0.0.2211 → 0.0.2212
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 +0 -98
- package/dist/api.d.ts +0 -61
- package/dist/api.js +0 -66
- package/dist/esm/api.d.ts +0 -61
- package/dist/esm/api.js +0 -66
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.2212
|
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.2212 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -1021,32 +1021,6 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
|
|
1021
1021
|
*/
|
1022
1022
|
export type EventCreationRequestDetails = TransactionEventDetails;
|
1023
1023
|
|
1024
|
-
/**
|
1025
|
-
*
|
1026
|
-
* @export
|
1027
|
-
* @interface EventsEvaluationRequest
|
1028
|
-
*/
|
1029
|
-
export interface EventsEvaluationRequest {
|
1030
|
-
/**
|
1031
|
-
*
|
1032
|
-
* @type {Array<EventCreationRequest>}
|
1033
|
-
* @memberof EventsEvaluationRequest
|
1034
|
-
*/
|
1035
|
-
'events': Array<EventCreationRequest>;
|
1036
|
-
}
|
1037
|
-
/**
|
1038
|
-
*
|
1039
|
-
* @export
|
1040
|
-
* @interface EventsEvaluationResponse
|
1041
|
-
*/
|
1042
|
-
export interface EventsEvaluationResponse {
|
1043
|
-
/**
|
1044
|
-
*
|
1045
|
-
* @type {{ [key: string]: Array<Promotion>; }}
|
1046
|
-
* @memberof EventsEvaluationResponse
|
1047
|
-
*/
|
1048
|
-
'promotions': { [key: string]: Array<Promotion>; };
|
1049
|
-
}
|
1050
1024
|
/**
|
1051
1025
|
*
|
1052
1026
|
* @export
|
@@ -7015,45 +6989,6 @@ export class CustomDealsApi extends BaseAPI {
|
|
7015
6989
|
*/
|
7016
6990
|
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
7017
6991
|
return {
|
7018
|
-
/**
|
7019
|
-
* Evaluate events
|
7020
|
-
* @summary Evaluate events
|
7021
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
7022
|
-
* @param {*} [options] Override http request option.
|
7023
|
-
* @throws {RequiredError}
|
7024
|
-
*/
|
7025
|
-
evaluateEvents: async (eventsEvaluationRequest: EventsEvaluationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7026
|
-
// verify required parameter 'eventsEvaluationRequest' is not null or undefined
|
7027
|
-
assertParamExists('evaluateEvents', 'eventsEvaluationRequest', eventsEvaluationRequest)
|
7028
|
-
const localVarPath = `/admins/promotions/evaluation`;
|
7029
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7030
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
7031
|
-
let baseOptions;
|
7032
|
-
if (configuration) {
|
7033
|
-
baseOptions = configuration.baseOptions;
|
7034
|
-
}
|
7035
|
-
|
7036
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
7037
|
-
const localVarHeaderParameter = {} as any;
|
7038
|
-
const localVarQueryParameter = {} as any;
|
7039
|
-
|
7040
|
-
// authentication ApiKeyAuth required
|
7041
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
7042
|
-
|
7043
|
-
|
7044
|
-
|
7045
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
7046
|
-
|
7047
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7048
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7049
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7050
|
-
localVarRequestOptions.data = serializeDataIfNeeded(eventsEvaluationRequest, localVarRequestOptions, configuration)
|
7051
|
-
|
7052
|
-
return {
|
7053
|
-
url: toPathString(localVarUrlObj),
|
7054
|
-
options: localVarRequestOptions,
|
7055
|
-
};
|
7056
|
-
},
|
7057
6992
|
/**
|
7058
6993
|
* Import events to the system to be processed
|
7059
6994
|
* @summary Add event
|
@@ -7103,17 +7038,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
7103
7038
|
export const DefaultApiFp = function(configuration?: Configuration) {
|
7104
7039
|
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
7105
7040
|
return {
|
7106
|
-
/**
|
7107
|
-
* Evaluate events
|
7108
|
-
* @summary Evaluate events
|
7109
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
7110
|
-
* @param {*} [options] Override http request option.
|
7111
|
-
* @throws {RequiredError}
|
7112
|
-
*/
|
7113
|
-
async evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsEvaluationResponse>> {
|
7114
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.evaluateEvents(eventsEvaluationRequest, options);
|
7115
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7116
|
-
},
|
7117
7041
|
/**
|
7118
7042
|
* Import events to the system to be processed
|
7119
7043
|
* @summary Add event
|
@@ -7135,16 +7059,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
7135
7059
|
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
7136
7060
|
const localVarFp = DefaultApiFp(configuration)
|
7137
7061
|
return {
|
7138
|
-
/**
|
7139
|
-
* Evaluate events
|
7140
|
-
* @summary Evaluate events
|
7141
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
7142
|
-
* @param {*} [options] Override http request option.
|
7143
|
-
* @throws {RequiredError}
|
7144
|
-
*/
|
7145
|
-
evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: any): AxiosPromise<EventsEvaluationResponse> {
|
7146
|
-
return localVarFp.evaluateEvents(eventsEvaluationRequest, options).then((request) => request(axios, basePath));
|
7147
|
-
},
|
7148
7062
|
/**
|
7149
7063
|
* Import events to the system to be processed
|
7150
7064
|
* @summary Add event
|
@@ -7165,18 +7079,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
7165
7079
|
* @extends {BaseAPI}
|
7166
7080
|
*/
|
7167
7081
|
export class DefaultApi extends BaseAPI {
|
7168
|
-
/**
|
7169
|
-
* Evaluate events
|
7170
|
-
* @summary Evaluate events
|
7171
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
7172
|
-
* @param {*} [options] Override http request option.
|
7173
|
-
* @throws {RequiredError}
|
7174
|
-
* @memberof DefaultApi
|
7175
|
-
*/
|
7176
|
-
public evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: AxiosRequestConfig) {
|
7177
|
-
return DefaultApiFp(this.configuration).evaluateEvents(eventsEvaluationRequest, options).then((request) => request(this.axios, this.basePath));
|
7178
|
-
}
|
7179
|
-
|
7180
7082
|
/**
|
7181
7083
|
* Import events to the system to be processed
|
7182
7084
|
* @summary Add event
|
package/dist/api.d.ts
CHANGED
@@ -957,34 +957,6 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
|
|
957
957
|
* @export
|
958
958
|
*/
|
959
959
|
export type EventCreationRequestDetails = TransactionEventDetails;
|
960
|
-
/**
|
961
|
-
*
|
962
|
-
* @export
|
963
|
-
* @interface EventsEvaluationRequest
|
964
|
-
*/
|
965
|
-
export interface EventsEvaluationRequest {
|
966
|
-
/**
|
967
|
-
*
|
968
|
-
* @type {Array<EventCreationRequest>}
|
969
|
-
* @memberof EventsEvaluationRequest
|
970
|
-
*/
|
971
|
-
'events': Array<EventCreationRequest>;
|
972
|
-
}
|
973
|
-
/**
|
974
|
-
*
|
975
|
-
* @export
|
976
|
-
* @interface EventsEvaluationResponse
|
977
|
-
*/
|
978
|
-
export interface EventsEvaluationResponse {
|
979
|
-
/**
|
980
|
-
*
|
981
|
-
* @type {{ [key: string]: Array<Promotion>; }}
|
982
|
-
* @memberof EventsEvaluationResponse
|
983
|
-
*/
|
984
|
-
'promotions': {
|
985
|
-
[key: string]: Array<Promotion>;
|
986
|
-
};
|
987
|
-
}
|
988
960
|
/**
|
989
961
|
*
|
990
962
|
* @export
|
@@ -5669,14 +5641,6 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
5669
5641
|
* @export
|
5670
5642
|
*/
|
5671
5643
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
5672
|
-
/**
|
5673
|
-
* Evaluate events
|
5674
|
-
* @summary Evaluate events
|
5675
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
5676
|
-
* @param {*} [options] Override http request option.
|
5677
|
-
* @throws {RequiredError}
|
5678
|
-
*/
|
5679
|
-
evaluateEvents: (eventsEvaluationRequest: EventsEvaluationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5680
5644
|
/**
|
5681
5645
|
* Import events to the system to be processed
|
5682
5646
|
* @summary Add event
|
@@ -5691,14 +5655,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
5691
5655
|
* @export
|
5692
5656
|
*/
|
5693
5657
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
5694
|
-
/**
|
5695
|
-
* Evaluate events
|
5696
|
-
* @summary Evaluate events
|
5697
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
5698
|
-
* @param {*} [options] Override http request option.
|
5699
|
-
* @throws {RequiredError}
|
5700
|
-
*/
|
5701
|
-
evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsEvaluationResponse>>;
|
5702
5658
|
/**
|
5703
5659
|
* Import events to the system to be processed
|
5704
5660
|
* @summary Add event
|
@@ -5713,14 +5669,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
5713
5669
|
* @export
|
5714
5670
|
*/
|
5715
5671
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
5716
|
-
/**
|
5717
|
-
* Evaluate events
|
5718
|
-
* @summary Evaluate events
|
5719
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
5720
|
-
* @param {*} [options] Override http request option.
|
5721
|
-
* @throws {RequiredError}
|
5722
|
-
*/
|
5723
|
-
evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: any): AxiosPromise<EventsEvaluationResponse>;
|
5724
5672
|
/**
|
5725
5673
|
* Import events to the system to be processed
|
5726
5674
|
* @summary Add event
|
@@ -5737,15 +5685,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
5737
5685
|
* @extends {BaseAPI}
|
5738
5686
|
*/
|
5739
5687
|
export declare class DefaultApi extends BaseAPI {
|
5740
|
-
/**
|
5741
|
-
* Evaluate events
|
5742
|
-
* @summary Evaluate events
|
5743
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
5744
|
-
* @param {*} [options] Override http request option.
|
5745
|
-
* @throws {RequiredError}
|
5746
|
-
* @memberof DefaultApi
|
5747
|
-
*/
|
5748
|
-
evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsEvaluationResponse, any>>;
|
5749
5688
|
/**
|
5750
5689
|
* Import events to the system to be processed
|
5751
5690
|
* @summary Add event
|
package/dist/api.js
CHANGED
@@ -2444,38 +2444,6 @@ exports.CustomDealsApi = CustomDealsApi;
|
|
2444
2444
|
*/
|
2445
2445
|
const DefaultApiAxiosParamCreator = function (configuration) {
|
2446
2446
|
return {
|
2447
|
-
/**
|
2448
|
-
* Evaluate events
|
2449
|
-
* @summary Evaluate events
|
2450
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
2451
|
-
* @param {*} [options] Override http request option.
|
2452
|
-
* @throws {RequiredError}
|
2453
|
-
*/
|
2454
|
-
evaluateEvents: (eventsEvaluationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2455
|
-
// verify required parameter 'eventsEvaluationRequest' is not null or undefined
|
2456
|
-
(0, common_1.assertParamExists)('evaluateEvents', 'eventsEvaluationRequest', eventsEvaluationRequest);
|
2457
|
-
const localVarPath = `/admins/promotions/evaluation`;
|
2458
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2459
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2460
|
-
let baseOptions;
|
2461
|
-
if (configuration) {
|
2462
|
-
baseOptions = configuration.baseOptions;
|
2463
|
-
}
|
2464
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2465
|
-
const localVarHeaderParameter = {};
|
2466
|
-
const localVarQueryParameter = {};
|
2467
|
-
// authentication ApiKeyAuth required
|
2468
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
2469
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2470
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2471
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2472
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2473
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventsEvaluationRequest, localVarRequestOptions, configuration);
|
2474
|
-
return {
|
2475
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
2476
|
-
options: localVarRequestOptions,
|
2477
|
-
};
|
2478
|
-
}),
|
2479
2447
|
/**
|
2480
2448
|
* Import events to the system to be processed
|
2481
2449
|
* @summary Add event
|
@@ -2518,19 +2486,6 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
2518
2486
|
const DefaultApiFp = function (configuration) {
|
2519
2487
|
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
2520
2488
|
return {
|
2521
|
-
/**
|
2522
|
-
* Evaluate events
|
2523
|
-
* @summary Evaluate events
|
2524
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
2525
|
-
* @param {*} [options] Override http request option.
|
2526
|
-
* @throws {RequiredError}
|
2527
|
-
*/
|
2528
|
-
evaluateEvents(eventsEvaluationRequest, options) {
|
2529
|
-
return __awaiter(this, void 0, void 0, function* () {
|
2530
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.evaluateEvents(eventsEvaluationRequest, options);
|
2531
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2532
|
-
});
|
2533
|
-
},
|
2534
2489
|
/**
|
2535
2490
|
* Import events to the system to be processed
|
2536
2491
|
* @summary Add event
|
@@ -2554,16 +2509,6 @@ exports.DefaultApiFp = DefaultApiFp;
|
|
2554
2509
|
const DefaultApiFactory = function (configuration, basePath, axios) {
|
2555
2510
|
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
2556
2511
|
return {
|
2557
|
-
/**
|
2558
|
-
* Evaluate events
|
2559
|
-
* @summary Evaluate events
|
2560
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
2561
|
-
* @param {*} [options] Override http request option.
|
2562
|
-
* @throws {RequiredError}
|
2563
|
-
*/
|
2564
|
-
evaluateEvents(eventsEvaluationRequest, options) {
|
2565
|
-
return localVarFp.evaluateEvents(eventsEvaluationRequest, options).then((request) => request(axios, basePath));
|
2566
|
-
},
|
2567
2512
|
/**
|
2568
2513
|
* Import events to the system to be processed
|
2569
2514
|
* @summary Add event
|
@@ -2584,17 +2529,6 @@ exports.DefaultApiFactory = DefaultApiFactory;
|
|
2584
2529
|
* @extends {BaseAPI}
|
2585
2530
|
*/
|
2586
2531
|
class DefaultApi extends base_1.BaseAPI {
|
2587
|
-
/**
|
2588
|
-
* Evaluate events
|
2589
|
-
* @summary Evaluate events
|
2590
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
2591
|
-
* @param {*} [options] Override http request option.
|
2592
|
-
* @throws {RequiredError}
|
2593
|
-
* @memberof DefaultApi
|
2594
|
-
*/
|
2595
|
-
evaluateEvents(eventsEvaluationRequest, options) {
|
2596
|
-
return (0, exports.DefaultApiFp)(this.configuration).evaluateEvents(eventsEvaluationRequest, options).then((request) => request(this.axios, this.basePath));
|
2597
|
-
}
|
2598
2532
|
/**
|
2599
2533
|
* Import events to the system to be processed
|
2600
2534
|
* @summary Add event
|
package/dist/esm/api.d.ts
CHANGED
@@ -957,34 +957,6 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
|
|
957
957
|
* @export
|
958
958
|
*/
|
959
959
|
export type EventCreationRequestDetails = TransactionEventDetails;
|
960
|
-
/**
|
961
|
-
*
|
962
|
-
* @export
|
963
|
-
* @interface EventsEvaluationRequest
|
964
|
-
*/
|
965
|
-
export interface EventsEvaluationRequest {
|
966
|
-
/**
|
967
|
-
*
|
968
|
-
* @type {Array<EventCreationRequest>}
|
969
|
-
* @memberof EventsEvaluationRequest
|
970
|
-
*/
|
971
|
-
'events': Array<EventCreationRequest>;
|
972
|
-
}
|
973
|
-
/**
|
974
|
-
*
|
975
|
-
* @export
|
976
|
-
* @interface EventsEvaluationResponse
|
977
|
-
*/
|
978
|
-
export interface EventsEvaluationResponse {
|
979
|
-
/**
|
980
|
-
*
|
981
|
-
* @type {{ [key: string]: Array<Promotion>; }}
|
982
|
-
* @memberof EventsEvaluationResponse
|
983
|
-
*/
|
984
|
-
'promotions': {
|
985
|
-
[key: string]: Array<Promotion>;
|
986
|
-
};
|
987
|
-
}
|
988
960
|
/**
|
989
961
|
*
|
990
962
|
* @export
|
@@ -5669,14 +5641,6 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
5669
5641
|
* @export
|
5670
5642
|
*/
|
5671
5643
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
5672
|
-
/**
|
5673
|
-
* Evaluate events
|
5674
|
-
* @summary Evaluate events
|
5675
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
5676
|
-
* @param {*} [options] Override http request option.
|
5677
|
-
* @throws {RequiredError}
|
5678
|
-
*/
|
5679
|
-
evaluateEvents: (eventsEvaluationRequest: EventsEvaluationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5680
5644
|
/**
|
5681
5645
|
* Import events to the system to be processed
|
5682
5646
|
* @summary Add event
|
@@ -5691,14 +5655,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
5691
5655
|
* @export
|
5692
5656
|
*/
|
5693
5657
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
5694
|
-
/**
|
5695
|
-
* Evaluate events
|
5696
|
-
* @summary Evaluate events
|
5697
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
5698
|
-
* @param {*} [options] Override http request option.
|
5699
|
-
* @throws {RequiredError}
|
5700
|
-
*/
|
5701
|
-
evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsEvaluationResponse>>;
|
5702
5658
|
/**
|
5703
5659
|
* Import events to the system to be processed
|
5704
5660
|
* @summary Add event
|
@@ -5713,14 +5669,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
5713
5669
|
* @export
|
5714
5670
|
*/
|
5715
5671
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
5716
|
-
/**
|
5717
|
-
* Evaluate events
|
5718
|
-
* @summary Evaluate events
|
5719
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
5720
|
-
* @param {*} [options] Override http request option.
|
5721
|
-
* @throws {RequiredError}
|
5722
|
-
*/
|
5723
|
-
evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: any): AxiosPromise<EventsEvaluationResponse>;
|
5724
5672
|
/**
|
5725
5673
|
* Import events to the system to be processed
|
5726
5674
|
* @summary Add event
|
@@ -5737,15 +5685,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
5737
5685
|
* @extends {BaseAPI}
|
5738
5686
|
*/
|
5739
5687
|
export declare class DefaultApi extends BaseAPI {
|
5740
|
-
/**
|
5741
|
-
* Evaluate events
|
5742
|
-
* @summary Evaluate events
|
5743
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
5744
|
-
* @param {*} [options] Override http request option.
|
5745
|
-
* @throws {RequiredError}
|
5746
|
-
* @memberof DefaultApi
|
5747
|
-
*/
|
5748
|
-
evaluateEvents(eventsEvaluationRequest: EventsEvaluationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsEvaluationResponse, any>>;
|
5749
5688
|
/**
|
5750
5689
|
* Import events to the system to be processed
|
5751
5690
|
* @summary Add event
|
package/dist/esm/api.js
CHANGED
@@ -2411,38 +2411,6 @@ export class CustomDealsApi extends BaseAPI {
|
|
2411
2411
|
*/
|
2412
2412
|
export const DefaultApiAxiosParamCreator = function (configuration) {
|
2413
2413
|
return {
|
2414
|
-
/**
|
2415
|
-
* Evaluate events
|
2416
|
-
* @summary Evaluate events
|
2417
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
2418
|
-
* @param {*} [options] Override http request option.
|
2419
|
-
* @throws {RequiredError}
|
2420
|
-
*/
|
2421
|
-
evaluateEvents: (eventsEvaluationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2422
|
-
// verify required parameter 'eventsEvaluationRequest' is not null or undefined
|
2423
|
-
assertParamExists('evaluateEvents', 'eventsEvaluationRequest', eventsEvaluationRequest);
|
2424
|
-
const localVarPath = `/admins/promotions/evaluation`;
|
2425
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2426
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2427
|
-
let baseOptions;
|
2428
|
-
if (configuration) {
|
2429
|
-
baseOptions = configuration.baseOptions;
|
2430
|
-
}
|
2431
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2432
|
-
const localVarHeaderParameter = {};
|
2433
|
-
const localVarQueryParameter = {};
|
2434
|
-
// authentication ApiKeyAuth required
|
2435
|
-
yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
|
2436
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2437
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2438
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2439
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2440
|
-
localVarRequestOptions.data = serializeDataIfNeeded(eventsEvaluationRequest, localVarRequestOptions, configuration);
|
2441
|
-
return {
|
2442
|
-
url: toPathString(localVarUrlObj),
|
2443
|
-
options: localVarRequestOptions,
|
2444
|
-
};
|
2445
|
-
}),
|
2446
2414
|
/**
|
2447
2415
|
* Import events to the system to be processed
|
2448
2416
|
* @summary Add event
|
@@ -2484,19 +2452,6 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
2484
2452
|
export const DefaultApiFp = function (configuration) {
|
2485
2453
|
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
|
2486
2454
|
return {
|
2487
|
-
/**
|
2488
|
-
* Evaluate events
|
2489
|
-
* @summary Evaluate events
|
2490
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
2491
|
-
* @param {*} [options] Override http request option.
|
2492
|
-
* @throws {RequiredError}
|
2493
|
-
*/
|
2494
|
-
evaluateEvents(eventsEvaluationRequest, options) {
|
2495
|
-
return __awaiter(this, void 0, void 0, function* () {
|
2496
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.evaluateEvents(eventsEvaluationRequest, options);
|
2497
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2498
|
-
});
|
2499
|
-
},
|
2500
2455
|
/**
|
2501
2456
|
* Import events to the system to be processed
|
2502
2457
|
* @summary Add event
|
@@ -2519,16 +2474,6 @@ export const DefaultApiFp = function (configuration) {
|
|
2519
2474
|
export const DefaultApiFactory = function (configuration, basePath, axios) {
|
2520
2475
|
const localVarFp = DefaultApiFp(configuration);
|
2521
2476
|
return {
|
2522
|
-
/**
|
2523
|
-
* Evaluate events
|
2524
|
-
* @summary Evaluate events
|
2525
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
2526
|
-
* @param {*} [options] Override http request option.
|
2527
|
-
* @throws {RequiredError}
|
2528
|
-
*/
|
2529
|
-
evaluateEvents(eventsEvaluationRequest, options) {
|
2530
|
-
return localVarFp.evaluateEvents(eventsEvaluationRequest, options).then((request) => request(axios, basePath));
|
2531
|
-
},
|
2532
2477
|
/**
|
2533
2478
|
* Import events to the system to be processed
|
2534
2479
|
* @summary Add event
|
@@ -2548,17 +2493,6 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
2548
2493
|
* @extends {BaseAPI}
|
2549
2494
|
*/
|
2550
2495
|
export class DefaultApi extends BaseAPI {
|
2551
|
-
/**
|
2552
|
-
* Evaluate events
|
2553
|
-
* @summary Evaluate events
|
2554
|
-
* @param {EventsEvaluationRequest} eventsEvaluationRequest Entities
|
2555
|
-
* @param {*} [options] Override http request option.
|
2556
|
-
* @throws {RequiredError}
|
2557
|
-
* @memberof DefaultApi
|
2558
|
-
*/
|
2559
|
-
evaluateEvents(eventsEvaluationRequest, options) {
|
2560
|
-
return DefaultApiFp(this.configuration).evaluateEvents(eventsEvaluationRequest, options).then((request) => request(this.axios, this.basePath));
|
2561
|
-
}
|
2562
2496
|
/**
|
2563
2497
|
* Import events to the system to be processed
|
2564
2498
|
* @summary Add event
|