flexinet-api 0.0.2299 → 0.0.2303
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 +120 -0
- package/dist/api.d.ts +75 -0
- package/dist/api.js +75 -0
- package/dist/esm/api.d.ts +75 -0
- package/dist/esm/api.js +75 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.2303
|
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.2303 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -1165,6 +1165,25 @@ export interface CustomerUserDetails {
|
|
1165
1165
|
*/
|
1166
1166
|
'lastName'?: string;
|
1167
1167
|
}
|
1168
|
+
/**
|
1169
|
+
*
|
1170
|
+
* @export
|
1171
|
+
* @interface Event
|
1172
|
+
*/
|
1173
|
+
export interface Event {
|
1174
|
+
/**
|
1175
|
+
*
|
1176
|
+
* @type {TransactionEventDetails}
|
1177
|
+
* @memberof Event
|
1178
|
+
*/
|
1179
|
+
'event': TransactionEventDetails;
|
1180
|
+
/**
|
1181
|
+
*
|
1182
|
+
* @type {Array<Promotion>}
|
1183
|
+
* @memberof Event
|
1184
|
+
*/
|
1185
|
+
'promotions': Array<Promotion>;
|
1186
|
+
}
|
1168
1187
|
/**
|
1169
1188
|
*
|
1170
1189
|
* @export
|
@@ -1223,6 +1242,25 @@ export interface EventsEvaluationResponse {
|
|
1223
1242
|
*/
|
1224
1243
|
'promotions': { [key: string]: Array<Promotion>; };
|
1225
1244
|
}
|
1245
|
+
/**
|
1246
|
+
*
|
1247
|
+
* @export
|
1248
|
+
* @interface EventsResponse
|
1249
|
+
*/
|
1250
|
+
export interface EventsResponse {
|
1251
|
+
/**
|
1252
|
+
*
|
1253
|
+
* @type {Array<Event>}
|
1254
|
+
* @memberof EventsResponse
|
1255
|
+
*/
|
1256
|
+
'events': Array<Event>;
|
1257
|
+
/**
|
1258
|
+
* This is the pagination token
|
1259
|
+
* @type {string}
|
1260
|
+
* @memberof EventsResponse
|
1261
|
+
*/
|
1262
|
+
'nextToken'?: string;
|
1263
|
+
}
|
1226
1264
|
/**
|
1227
1265
|
*
|
1228
1266
|
* @export
|
@@ -7742,6 +7780,52 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
7742
7780
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7743
7781
|
localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration)
|
7744
7782
|
|
7783
|
+
return {
|
7784
|
+
url: toPathString(localVarUrlObj),
|
7785
|
+
options: localVarRequestOptions,
|
7786
|
+
};
|
7787
|
+
},
|
7788
|
+
/**
|
7789
|
+
* Search events
|
7790
|
+
* @summary Search events
|
7791
|
+
* @param {string} reference Reference ID
|
7792
|
+
* @param {string} [nextToken] This is the pagination token
|
7793
|
+
* @param {*} [options] Override http request option.
|
7794
|
+
* @throws {RequiredError}
|
7795
|
+
*/
|
7796
|
+
searchEvents: async (reference: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7797
|
+
// verify required parameter 'reference' is not null or undefined
|
7798
|
+
assertParamExists('searchEvents', 'reference', reference)
|
7799
|
+
const localVarPath = `/admins/events`;
|
7800
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7801
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
7802
|
+
let baseOptions;
|
7803
|
+
if (configuration) {
|
7804
|
+
baseOptions = configuration.baseOptions;
|
7805
|
+
}
|
7806
|
+
|
7807
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
7808
|
+
const localVarHeaderParameter = {} as any;
|
7809
|
+
const localVarQueryParameter = {} as any;
|
7810
|
+
|
7811
|
+
// authentication systemJWT required
|
7812
|
+
// http bearer authentication required
|
7813
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
7814
|
+
|
7815
|
+
if (nextToken !== undefined) {
|
7816
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
7817
|
+
}
|
7818
|
+
|
7819
|
+
if (reference !== undefined) {
|
7820
|
+
localVarQueryParameter['reference'] = reference;
|
7821
|
+
}
|
7822
|
+
|
7823
|
+
|
7824
|
+
|
7825
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7827
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7828
|
+
|
7745
7829
|
return {
|
7746
7830
|
url: toPathString(localVarUrlObj),
|
7747
7831
|
options: localVarRequestOptions,
|
@@ -7768,6 +7852,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
7768
7852
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importEvents(eventCreationRequest, options);
|
7769
7853
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7770
7854
|
},
|
7855
|
+
/**
|
7856
|
+
* Search events
|
7857
|
+
* @summary Search events
|
7858
|
+
* @param {string} reference Reference ID
|
7859
|
+
* @param {string} [nextToken] This is the pagination token
|
7860
|
+
* @param {*} [options] Override http request option.
|
7861
|
+
* @throws {RequiredError}
|
7862
|
+
*/
|
7863
|
+
async searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsResponse>> {
|
7864
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchEvents(reference, nextToken, options);
|
7865
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7866
|
+
},
|
7771
7867
|
}
|
7772
7868
|
};
|
7773
7869
|
|
@@ -7788,6 +7884,17 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
7788
7884
|
importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void> {
|
7789
7885
|
return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
|
7790
7886
|
},
|
7887
|
+
/**
|
7888
|
+
* Search events
|
7889
|
+
* @summary Search events
|
7890
|
+
* @param {string} reference Reference ID
|
7891
|
+
* @param {string} [nextToken] This is the pagination token
|
7892
|
+
* @param {*} [options] Override http request option.
|
7893
|
+
* @throws {RequiredError}
|
7894
|
+
*/
|
7895
|
+
searchEvents(reference: string, nextToken?: string, options?: any): AxiosPromise<EventsResponse> {
|
7896
|
+
return localVarFp.searchEvents(reference, nextToken, options).then((request) => request(axios, basePath));
|
7897
|
+
},
|
7791
7898
|
};
|
7792
7899
|
};
|
7793
7900
|
|
@@ -7809,6 +7916,19 @@ export class EventsApi extends BaseAPI {
|
|
7809
7916
|
public importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) {
|
7810
7917
|
return EventsApiFp(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
7811
7918
|
}
|
7919
|
+
|
7920
|
+
/**
|
7921
|
+
* Search events
|
7922
|
+
* @summary Search events
|
7923
|
+
* @param {string} reference Reference ID
|
7924
|
+
* @param {string} [nextToken] This is the pagination token
|
7925
|
+
* @param {*} [options] Override http request option.
|
7926
|
+
* @throws {RequiredError}
|
7927
|
+
* @memberof EventsApi
|
7928
|
+
*/
|
7929
|
+
public searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig) {
|
7930
|
+
return EventsApiFp(this.configuration).searchEvents(reference, nextToken, options).then((request) => request(this.axios, this.basePath));
|
7931
|
+
}
|
7812
7932
|
}
|
7813
7933
|
|
7814
7934
|
|
package/dist/api.d.ts
CHANGED
@@ -1103,6 +1103,25 @@ export interface CustomerUserDetails {
|
|
1103
1103
|
*/
|
1104
1104
|
'lastName'?: string;
|
1105
1105
|
}
|
1106
|
+
/**
|
1107
|
+
*
|
1108
|
+
* @export
|
1109
|
+
* @interface Event
|
1110
|
+
*/
|
1111
|
+
export interface Event {
|
1112
|
+
/**
|
1113
|
+
*
|
1114
|
+
* @type {TransactionEventDetails}
|
1115
|
+
* @memberof Event
|
1116
|
+
*/
|
1117
|
+
'event': TransactionEventDetails;
|
1118
|
+
/**
|
1119
|
+
*
|
1120
|
+
* @type {Array<Promotion>}
|
1121
|
+
* @memberof Event
|
1122
|
+
*/
|
1123
|
+
'promotions': Array<Promotion>;
|
1124
|
+
}
|
1106
1125
|
/**
|
1107
1126
|
*
|
1108
1127
|
* @export
|
@@ -1159,6 +1178,25 @@ export interface EventsEvaluationResponse {
|
|
1159
1178
|
[key: string]: Array<Promotion>;
|
1160
1179
|
};
|
1161
1180
|
}
|
1181
|
+
/**
|
1182
|
+
*
|
1183
|
+
* @export
|
1184
|
+
* @interface EventsResponse
|
1185
|
+
*/
|
1186
|
+
export interface EventsResponse {
|
1187
|
+
/**
|
1188
|
+
*
|
1189
|
+
* @type {Array<Event>}
|
1190
|
+
* @memberof EventsResponse
|
1191
|
+
*/
|
1192
|
+
'events': Array<Event>;
|
1193
|
+
/**
|
1194
|
+
* This is the pagination token
|
1195
|
+
* @type {string}
|
1196
|
+
* @memberof EventsResponse
|
1197
|
+
*/
|
1198
|
+
'nextToken'?: string;
|
1199
|
+
}
|
1162
1200
|
/**
|
1163
1201
|
*
|
1164
1202
|
* @export
|
@@ -6305,6 +6343,15 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
|
|
6305
6343
|
* @throws {RequiredError}
|
6306
6344
|
*/
|
6307
6345
|
importEvents: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
6346
|
+
/**
|
6347
|
+
* Search events
|
6348
|
+
* @summary Search events
|
6349
|
+
* @param {string} reference Reference ID
|
6350
|
+
* @param {string} [nextToken] This is the pagination token
|
6351
|
+
* @param {*} [options] Override http request option.
|
6352
|
+
* @throws {RequiredError}
|
6353
|
+
*/
|
6354
|
+
searchEvents: (reference: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
6308
6355
|
};
|
6309
6356
|
/**
|
6310
6357
|
* EventsApi - functional programming interface
|
@@ -6319,6 +6366,15 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
6319
6366
|
* @throws {RequiredError}
|
6320
6367
|
*/
|
6321
6368
|
importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
6369
|
+
/**
|
6370
|
+
* Search events
|
6371
|
+
* @summary Search events
|
6372
|
+
* @param {string} reference Reference ID
|
6373
|
+
* @param {string} [nextToken] This is the pagination token
|
6374
|
+
* @param {*} [options] Override http request option.
|
6375
|
+
* @throws {RequiredError}
|
6376
|
+
*/
|
6377
|
+
searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsResponse>>;
|
6322
6378
|
};
|
6323
6379
|
/**
|
6324
6380
|
* EventsApi - factory interface
|
@@ -6333,6 +6389,15 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
|
|
6333
6389
|
* @throws {RequiredError}
|
6334
6390
|
*/
|
6335
6391
|
importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
|
6392
|
+
/**
|
6393
|
+
* Search events
|
6394
|
+
* @summary Search events
|
6395
|
+
* @param {string} reference Reference ID
|
6396
|
+
* @param {string} [nextToken] This is the pagination token
|
6397
|
+
* @param {*} [options] Override http request option.
|
6398
|
+
* @throws {RequiredError}
|
6399
|
+
*/
|
6400
|
+
searchEvents(reference: string, nextToken?: string, options?: any): AxiosPromise<EventsResponse>;
|
6336
6401
|
};
|
6337
6402
|
/**
|
6338
6403
|
* EventsApi - object-oriented interface
|
@@ -6350,6 +6415,16 @@ export declare class EventsApi extends BaseAPI {
|
|
6350
6415
|
* @memberof EventsApi
|
6351
6416
|
*/
|
6352
6417
|
importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
6418
|
+
/**
|
6419
|
+
* Search events
|
6420
|
+
* @summary Search events
|
6421
|
+
* @param {string} reference Reference ID
|
6422
|
+
* @param {string} [nextToken] This is the pagination token
|
6423
|
+
* @param {*} [options] Override http request option.
|
6424
|
+
* @throws {RequiredError}
|
6425
|
+
* @memberof EventsApi
|
6426
|
+
*/
|
6427
|
+
searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsResponse, any>>;
|
6353
6428
|
}
|
6354
6429
|
/**
|
6355
6430
|
* IntegrationsApi - axios parameter creator
|
package/dist/api.js
CHANGED
@@ -2603,6 +2603,44 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
2603
2603
|
options: localVarRequestOptions,
|
2604
2604
|
};
|
2605
2605
|
}),
|
2606
|
+
/**
|
2607
|
+
* Search events
|
2608
|
+
* @summary Search events
|
2609
|
+
* @param {string} reference Reference ID
|
2610
|
+
* @param {string} [nextToken] This is the pagination token
|
2611
|
+
* @param {*} [options] Override http request option.
|
2612
|
+
* @throws {RequiredError}
|
2613
|
+
*/
|
2614
|
+
searchEvents: (reference, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2615
|
+
// verify required parameter 'reference' is not null or undefined
|
2616
|
+
(0, common_1.assertParamExists)('searchEvents', 'reference', reference);
|
2617
|
+
const localVarPath = `/admins/events`;
|
2618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2619
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2620
|
+
let baseOptions;
|
2621
|
+
if (configuration) {
|
2622
|
+
baseOptions = configuration.baseOptions;
|
2623
|
+
}
|
2624
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2625
|
+
const localVarHeaderParameter = {};
|
2626
|
+
const localVarQueryParameter = {};
|
2627
|
+
// authentication systemJWT required
|
2628
|
+
// http bearer authentication required
|
2629
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2630
|
+
if (nextToken !== undefined) {
|
2631
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
2632
|
+
}
|
2633
|
+
if (reference !== undefined) {
|
2634
|
+
localVarQueryParameter['reference'] = reference;
|
2635
|
+
}
|
2636
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2637
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2638
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2639
|
+
return {
|
2640
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2641
|
+
options: localVarRequestOptions,
|
2642
|
+
};
|
2643
|
+
}),
|
2606
2644
|
};
|
2607
2645
|
};
|
2608
2646
|
exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
@@ -2626,6 +2664,20 @@ const EventsApiFp = function (configuration) {
|
|
2626
2664
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2627
2665
|
});
|
2628
2666
|
},
|
2667
|
+
/**
|
2668
|
+
* Search events
|
2669
|
+
* @summary Search events
|
2670
|
+
* @param {string} reference Reference ID
|
2671
|
+
* @param {string} [nextToken] This is the pagination token
|
2672
|
+
* @param {*} [options] Override http request option.
|
2673
|
+
* @throws {RequiredError}
|
2674
|
+
*/
|
2675
|
+
searchEvents(reference, nextToken, options) {
|
2676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2677
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchEvents(reference, nextToken, options);
|
2678
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2679
|
+
});
|
2680
|
+
},
|
2629
2681
|
};
|
2630
2682
|
};
|
2631
2683
|
exports.EventsApiFp = EventsApiFp;
|
@@ -2646,6 +2698,17 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
2646
2698
|
importEvents(eventCreationRequest, options) {
|
2647
2699
|
return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
|
2648
2700
|
},
|
2701
|
+
/**
|
2702
|
+
* Search events
|
2703
|
+
* @summary Search events
|
2704
|
+
* @param {string} reference Reference ID
|
2705
|
+
* @param {string} [nextToken] This is the pagination token
|
2706
|
+
* @param {*} [options] Override http request option.
|
2707
|
+
* @throws {RequiredError}
|
2708
|
+
*/
|
2709
|
+
searchEvents(reference, nextToken, options) {
|
2710
|
+
return localVarFp.searchEvents(reference, nextToken, options).then((request) => request(axios, basePath));
|
2711
|
+
},
|
2649
2712
|
};
|
2650
2713
|
};
|
2651
2714
|
exports.EventsApiFactory = EventsApiFactory;
|
@@ -2667,6 +2730,18 @@ class EventsApi extends base_1.BaseAPI {
|
|
2667
2730
|
importEvents(eventCreationRequest, options) {
|
2668
2731
|
return (0, exports.EventsApiFp)(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
2669
2732
|
}
|
2733
|
+
/**
|
2734
|
+
* Search events
|
2735
|
+
* @summary Search events
|
2736
|
+
* @param {string} reference Reference ID
|
2737
|
+
* @param {string} [nextToken] This is the pagination token
|
2738
|
+
* @param {*} [options] Override http request option.
|
2739
|
+
* @throws {RequiredError}
|
2740
|
+
* @memberof EventsApi
|
2741
|
+
*/
|
2742
|
+
searchEvents(reference, nextToken, options) {
|
2743
|
+
return (0, exports.EventsApiFp)(this.configuration).searchEvents(reference, nextToken, options).then((request) => request(this.axios, this.basePath));
|
2744
|
+
}
|
2670
2745
|
}
|
2671
2746
|
exports.EventsApi = EventsApi;
|
2672
2747
|
/**
|
package/dist/esm/api.d.ts
CHANGED
@@ -1103,6 +1103,25 @@ export interface CustomerUserDetails {
|
|
1103
1103
|
*/
|
1104
1104
|
'lastName'?: string;
|
1105
1105
|
}
|
1106
|
+
/**
|
1107
|
+
*
|
1108
|
+
* @export
|
1109
|
+
* @interface Event
|
1110
|
+
*/
|
1111
|
+
export interface Event {
|
1112
|
+
/**
|
1113
|
+
*
|
1114
|
+
* @type {TransactionEventDetails}
|
1115
|
+
* @memberof Event
|
1116
|
+
*/
|
1117
|
+
'event': TransactionEventDetails;
|
1118
|
+
/**
|
1119
|
+
*
|
1120
|
+
* @type {Array<Promotion>}
|
1121
|
+
* @memberof Event
|
1122
|
+
*/
|
1123
|
+
'promotions': Array<Promotion>;
|
1124
|
+
}
|
1106
1125
|
/**
|
1107
1126
|
*
|
1108
1127
|
* @export
|
@@ -1159,6 +1178,25 @@ export interface EventsEvaluationResponse {
|
|
1159
1178
|
[key: string]: Array<Promotion>;
|
1160
1179
|
};
|
1161
1180
|
}
|
1181
|
+
/**
|
1182
|
+
*
|
1183
|
+
* @export
|
1184
|
+
* @interface EventsResponse
|
1185
|
+
*/
|
1186
|
+
export interface EventsResponse {
|
1187
|
+
/**
|
1188
|
+
*
|
1189
|
+
* @type {Array<Event>}
|
1190
|
+
* @memberof EventsResponse
|
1191
|
+
*/
|
1192
|
+
'events': Array<Event>;
|
1193
|
+
/**
|
1194
|
+
* This is the pagination token
|
1195
|
+
* @type {string}
|
1196
|
+
* @memberof EventsResponse
|
1197
|
+
*/
|
1198
|
+
'nextToken'?: string;
|
1199
|
+
}
|
1162
1200
|
/**
|
1163
1201
|
*
|
1164
1202
|
* @export
|
@@ -6305,6 +6343,15 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
|
|
6305
6343
|
* @throws {RequiredError}
|
6306
6344
|
*/
|
6307
6345
|
importEvents: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
6346
|
+
/**
|
6347
|
+
* Search events
|
6348
|
+
* @summary Search events
|
6349
|
+
* @param {string} reference Reference ID
|
6350
|
+
* @param {string} [nextToken] This is the pagination token
|
6351
|
+
* @param {*} [options] Override http request option.
|
6352
|
+
* @throws {RequiredError}
|
6353
|
+
*/
|
6354
|
+
searchEvents: (reference: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
6308
6355
|
};
|
6309
6356
|
/**
|
6310
6357
|
* EventsApi - functional programming interface
|
@@ -6319,6 +6366,15 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
6319
6366
|
* @throws {RequiredError}
|
6320
6367
|
*/
|
6321
6368
|
importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
6369
|
+
/**
|
6370
|
+
* Search events
|
6371
|
+
* @summary Search events
|
6372
|
+
* @param {string} reference Reference ID
|
6373
|
+
* @param {string} [nextToken] This is the pagination token
|
6374
|
+
* @param {*} [options] Override http request option.
|
6375
|
+
* @throws {RequiredError}
|
6376
|
+
*/
|
6377
|
+
searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsResponse>>;
|
6322
6378
|
};
|
6323
6379
|
/**
|
6324
6380
|
* EventsApi - factory interface
|
@@ -6333,6 +6389,15 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
|
|
6333
6389
|
* @throws {RequiredError}
|
6334
6390
|
*/
|
6335
6391
|
importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
|
6392
|
+
/**
|
6393
|
+
* Search events
|
6394
|
+
* @summary Search events
|
6395
|
+
* @param {string} reference Reference ID
|
6396
|
+
* @param {string} [nextToken] This is the pagination token
|
6397
|
+
* @param {*} [options] Override http request option.
|
6398
|
+
* @throws {RequiredError}
|
6399
|
+
*/
|
6400
|
+
searchEvents(reference: string, nextToken?: string, options?: any): AxiosPromise<EventsResponse>;
|
6336
6401
|
};
|
6337
6402
|
/**
|
6338
6403
|
* EventsApi - object-oriented interface
|
@@ -6350,6 +6415,16 @@ export declare class EventsApi extends BaseAPI {
|
|
6350
6415
|
* @memberof EventsApi
|
6351
6416
|
*/
|
6352
6417
|
importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
6418
|
+
/**
|
6419
|
+
* Search events
|
6420
|
+
* @summary Search events
|
6421
|
+
* @param {string} reference Reference ID
|
6422
|
+
* @param {string} [nextToken] This is the pagination token
|
6423
|
+
* @param {*} [options] Override http request option.
|
6424
|
+
* @throws {RequiredError}
|
6425
|
+
* @memberof EventsApi
|
6426
|
+
*/
|
6427
|
+
searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsResponse, any>>;
|
6353
6428
|
}
|
6354
6429
|
/**
|
6355
6430
|
* IntegrationsApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
@@ -2570,6 +2570,44 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
2570
2570
|
options: localVarRequestOptions,
|
2571
2571
|
};
|
2572
2572
|
}),
|
2573
|
+
/**
|
2574
|
+
* Search events
|
2575
|
+
* @summary Search events
|
2576
|
+
* @param {string} reference Reference ID
|
2577
|
+
* @param {string} [nextToken] This is the pagination token
|
2578
|
+
* @param {*} [options] Override http request option.
|
2579
|
+
* @throws {RequiredError}
|
2580
|
+
*/
|
2581
|
+
searchEvents: (reference, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2582
|
+
// verify required parameter 'reference' is not null or undefined
|
2583
|
+
assertParamExists('searchEvents', 'reference', reference);
|
2584
|
+
const localVarPath = `/admins/events`;
|
2585
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2586
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2587
|
+
let baseOptions;
|
2588
|
+
if (configuration) {
|
2589
|
+
baseOptions = configuration.baseOptions;
|
2590
|
+
}
|
2591
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2592
|
+
const localVarHeaderParameter = {};
|
2593
|
+
const localVarQueryParameter = {};
|
2594
|
+
// authentication systemJWT required
|
2595
|
+
// http bearer authentication required
|
2596
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2597
|
+
if (nextToken !== undefined) {
|
2598
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
2599
|
+
}
|
2600
|
+
if (reference !== undefined) {
|
2601
|
+
localVarQueryParameter['reference'] = reference;
|
2602
|
+
}
|
2603
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2604
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2605
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2606
|
+
return {
|
2607
|
+
url: toPathString(localVarUrlObj),
|
2608
|
+
options: localVarRequestOptions,
|
2609
|
+
};
|
2610
|
+
}),
|
2573
2611
|
};
|
2574
2612
|
};
|
2575
2613
|
/**
|
@@ -2592,6 +2630,20 @@ export const EventsApiFp = function (configuration) {
|
|
2592
2630
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2593
2631
|
});
|
2594
2632
|
},
|
2633
|
+
/**
|
2634
|
+
* Search events
|
2635
|
+
* @summary Search events
|
2636
|
+
* @param {string} reference Reference ID
|
2637
|
+
* @param {string} [nextToken] This is the pagination token
|
2638
|
+
* @param {*} [options] Override http request option.
|
2639
|
+
* @throws {RequiredError}
|
2640
|
+
*/
|
2641
|
+
searchEvents(reference, nextToken, options) {
|
2642
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2643
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchEvents(reference, nextToken, options);
|
2644
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2645
|
+
});
|
2646
|
+
},
|
2595
2647
|
};
|
2596
2648
|
};
|
2597
2649
|
/**
|
@@ -2611,6 +2663,17 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
2611
2663
|
importEvents(eventCreationRequest, options) {
|
2612
2664
|
return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
|
2613
2665
|
},
|
2666
|
+
/**
|
2667
|
+
* Search events
|
2668
|
+
* @summary Search events
|
2669
|
+
* @param {string} reference Reference ID
|
2670
|
+
* @param {string} [nextToken] This is the pagination token
|
2671
|
+
* @param {*} [options] Override http request option.
|
2672
|
+
* @throws {RequiredError}
|
2673
|
+
*/
|
2674
|
+
searchEvents(reference, nextToken, options) {
|
2675
|
+
return localVarFp.searchEvents(reference, nextToken, options).then((request) => request(axios, basePath));
|
2676
|
+
},
|
2614
2677
|
};
|
2615
2678
|
};
|
2616
2679
|
/**
|
@@ -2631,6 +2694,18 @@ export class EventsApi extends BaseAPI {
|
|
2631
2694
|
importEvents(eventCreationRequest, options) {
|
2632
2695
|
return EventsApiFp(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
2633
2696
|
}
|
2697
|
+
/**
|
2698
|
+
* Search events
|
2699
|
+
* @summary Search events
|
2700
|
+
* @param {string} reference Reference ID
|
2701
|
+
* @param {string} [nextToken] This is the pagination token
|
2702
|
+
* @param {*} [options] Override http request option.
|
2703
|
+
* @throws {RequiredError}
|
2704
|
+
* @memberof EventsApi
|
2705
|
+
*/
|
2706
|
+
searchEvents(reference, nextToken, options) {
|
2707
|
+
return EventsApiFp(this.configuration).searchEvents(reference, nextToken, options).then((request) => request(this.axios, this.basePath));
|
2708
|
+
}
|
2634
2709
|
}
|
2635
2710
|
/**
|
2636
2711
|
* IntegrationsApi - axios parameter creator
|