flexinet-api 0.0.318-prerelease0 → 0.0.320-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 +269 -119
- package/dist/api.d.ts +186 -52
- package/dist/api.js +160 -120
- package/dist/esm/api.d.ts +186 -52
- package/dist/esm/api.js +150 -115
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -267,6 +267,58 @@ export interface BulkNotificationsReadRequest {
|
|
|
267
267
|
*/
|
|
268
268
|
'notificationIds': Array<string>;
|
|
269
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @export
|
|
273
|
+
* @interface CallbackBeneficiaryDetails
|
|
274
|
+
*/
|
|
275
|
+
export interface CallbackBeneficiaryDetails {
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof CallbackBeneficiaryDetails
|
|
280
|
+
*/
|
|
281
|
+
'value': string;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {BeneficiaryKind}
|
|
285
|
+
* @memberof CallbackBeneficiaryDetails
|
|
286
|
+
*/
|
|
287
|
+
'kind': BeneficiaryKind;
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof CallbackBeneficiaryDetails
|
|
292
|
+
*/
|
|
293
|
+
'reference'?: string;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @type CallbackEvent
|
|
299
|
+
* @export
|
|
300
|
+
*/
|
|
301
|
+
export type CallbackEvent = { kind: 'order' } & CallbackOrder;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @export
|
|
306
|
+
* @interface CallbackItemDetails
|
|
307
|
+
*/
|
|
308
|
+
export interface CallbackItemDetails {
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {number}
|
|
312
|
+
* @memberof CallbackItemDetails
|
|
313
|
+
*/
|
|
314
|
+
'qty': number;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {CallbackProductDetails}
|
|
318
|
+
* @memberof CallbackItemDetails
|
|
319
|
+
*/
|
|
320
|
+
'product': CallbackProductDetails;
|
|
321
|
+
}
|
|
270
322
|
/**
|
|
271
323
|
*
|
|
272
324
|
* @export
|
|
@@ -275,22 +327,80 @@ export interface BulkNotificationsReadRequest {
|
|
|
275
327
|
export interface CallbackOrder {
|
|
276
328
|
/**
|
|
277
329
|
*
|
|
278
|
-
* @type {
|
|
330
|
+
* @type {CallbackOrderDetails}
|
|
279
331
|
* @memberof CallbackOrder
|
|
280
332
|
*/
|
|
281
|
-
'order'
|
|
333
|
+
'order': CallbackOrderDetails;
|
|
282
334
|
/**
|
|
283
335
|
*
|
|
284
336
|
* @type {string}
|
|
285
337
|
* @memberof CallbackOrder
|
|
286
338
|
*/
|
|
287
|
-
'id'
|
|
339
|
+
'id': string;
|
|
288
340
|
/**
|
|
289
341
|
*
|
|
290
342
|
* @type {string}
|
|
291
343
|
* @memberof CallbackOrder
|
|
292
344
|
*/
|
|
293
|
-
'status'
|
|
345
|
+
'status': string;
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* @type {WebhookKind}
|
|
349
|
+
* @memberof CallbackOrder
|
|
350
|
+
*/
|
|
351
|
+
'kind': WebhookKind;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @export
|
|
358
|
+
* @interface CallbackOrderDetails
|
|
359
|
+
*/
|
|
360
|
+
export interface CallbackOrderDetails {
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @type {CallbackBeneficiaryDetails}
|
|
364
|
+
* @memberof CallbackOrderDetails
|
|
365
|
+
*/
|
|
366
|
+
'beneficiary': CallbackBeneficiaryDetails;
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @type {Array<CallbackItemDetails>}
|
|
370
|
+
* @memberof CallbackOrderDetails
|
|
371
|
+
*/
|
|
372
|
+
'items': Array<CallbackItemDetails>;
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @type {string}
|
|
376
|
+
* @memberof CallbackOrderDetails
|
|
377
|
+
*/
|
|
378
|
+
'id': string;
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @type {string}
|
|
382
|
+
* @memberof CallbackOrderDetails
|
|
383
|
+
*/
|
|
384
|
+
'createdAt'?: string;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @export
|
|
389
|
+
* @interface CallbackProductDetails
|
|
390
|
+
*/
|
|
391
|
+
export interface CallbackProductDetails {
|
|
392
|
+
/**
|
|
393
|
+
*
|
|
394
|
+
* @type {string}
|
|
395
|
+
* @memberof CallbackProductDetails
|
|
396
|
+
*/
|
|
397
|
+
'id': string;
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @type {string}
|
|
401
|
+
* @memberof CallbackProductDetails
|
|
402
|
+
*/
|
|
403
|
+
'productCode': string;
|
|
294
404
|
}
|
|
295
405
|
/**
|
|
296
406
|
*
|
|
@@ -2918,7 +3028,8 @@ export interface Webhook {
|
|
|
2918
3028
|
*/
|
|
2919
3029
|
|
|
2920
3030
|
export const WebhookKind = {
|
|
2921
|
-
Order: 'order'
|
|
3031
|
+
Order: 'order',
|
|
3032
|
+
Prod: 'prod'
|
|
2922
3033
|
} as const;
|
|
2923
3034
|
|
|
2924
3035
|
export type WebhookKind = typeof WebhookKind[keyof typeof WebhookKind];
|
|
@@ -2963,7 +3074,7 @@ export const AuditApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2963
3074
|
assertParamExists('listAuditLogs', 'objectType', objectType)
|
|
2964
3075
|
// verify required parameter 'objectID' is not null or undefined
|
|
2965
3076
|
assertParamExists('listAuditLogs', 'objectID', objectID)
|
|
2966
|
-
const localVarPath = `/audit/{objectType}/{objectID}`
|
|
3077
|
+
const localVarPath = `/admins/audit/{objectType}/{objectID}`
|
|
2967
3078
|
.replace(`{${"objectType"}}`, encodeURIComponent(String(objectType)))
|
|
2968
3079
|
.replace(`{${"objectID"}}`, encodeURIComponent(String(objectID)));
|
|
2969
3080
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3003,7 +3114,7 @@ export const AuditApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3003
3114
|
listUserAuditLogs: async (userID: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3004
3115
|
// verify required parameter 'userID' is not null or undefined
|
|
3005
3116
|
assertParamExists('listUserAuditLogs', 'userID', userID)
|
|
3006
|
-
const localVarPath = `/audit/user/{userID}`
|
|
3117
|
+
const localVarPath = `/admins/audit/user/{userID}`
|
|
3007
3118
|
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
|
3008
3119
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3009
3120
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3159,7 +3270,7 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3159
3270
|
assertParamExists('getBalance', 'beneficiaryValue', beneficiaryValue)
|
|
3160
3271
|
// verify required parameter 'kind' is not null or undefined
|
|
3161
3272
|
assertParamExists('getBalance', 'kind', kind)
|
|
3162
|
-
const localVarPath = `/balances`;
|
|
3273
|
+
const localVarPath = `/admins/balances`;
|
|
3163
3274
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3164
3275
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3165
3276
|
let baseOptions;
|
|
@@ -3239,7 +3350,7 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3239
3350
|
transferBalance: async (beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3240
3351
|
// verify required parameter 'beneficiaryValue' is not null or undefined
|
|
3241
3352
|
assertParamExists('transferBalance', 'beneficiaryValue', beneficiaryValue)
|
|
3242
|
-
const localVarPath = `/balances/{beneficiaryValue}/transfer`
|
|
3353
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}/transfer`
|
|
3243
3354
|
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
|
3244
3355
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3245
3356
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3277,7 +3388,7 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3277
3388
|
updateBalance: async (beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3278
3389
|
// verify required parameter 'beneficiaryValue' is not null or undefined
|
|
3279
3390
|
assertParamExists('updateBalance', 'beneficiaryValue', beneficiaryValue)
|
|
3280
|
-
const localVarPath = `/balances/{beneficiaryValue}`
|
|
3391
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}`
|
|
3281
3392
|
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
|
3282
3393
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3283
3394
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3594,7 +3705,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3594
3705
|
createClient: async (clientCreationRequest: ClientCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3595
3706
|
// verify required parameter 'clientCreationRequest' is not null or undefined
|
|
3596
3707
|
assertParamExists('createClient', 'clientCreationRequest', clientCreationRequest)
|
|
3597
|
-
const localVarPath = `/clients`;
|
|
3708
|
+
const localVarPath = `/admins/clients`;
|
|
3598
3709
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3599
3710
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3600
3711
|
let baseOptions;
|
|
@@ -3634,7 +3745,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3634
3745
|
getClient: async (clientID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3635
3746
|
// verify required parameter 'clientID' is not null or undefined
|
|
3636
3747
|
assertParamExists('getClient', 'clientID', clientID)
|
|
3637
|
-
const localVarPath = `/clients/{clientID}`
|
|
3748
|
+
const localVarPath = `/admins/clients/{clientID}`
|
|
3638
3749
|
.replace(`{${"clientID"}}`, encodeURIComponent(String(clientID)));
|
|
3639
3750
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3640
3751
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3671,7 +3782,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3671
3782
|
* @throws {RequiredError}
|
|
3672
3783
|
*/
|
|
3673
3784
|
listClients: async (nextToken?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3674
|
-
const localVarPath = `/clients`;
|
|
3785
|
+
const localVarPath = `/admins/clients`;
|
|
3675
3786
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3676
3787
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3677
3788
|
let baseOptions;
|
|
@@ -3857,7 +3968,7 @@ export const ConfigurationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
3857
3968
|
createConfiguration: async (backofficeConfig: BackofficeConfig, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3858
3969
|
// verify required parameter 'backofficeConfig' is not null or undefined
|
|
3859
3970
|
assertParamExists('createConfiguration', 'backofficeConfig', backofficeConfig)
|
|
3860
|
-
const localVarPath = `/configurations`;
|
|
3971
|
+
const localVarPath = `/admins/configurations`;
|
|
3861
3972
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3862
3973
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3863
3974
|
let baseOptions;
|
|
@@ -3896,7 +4007,7 @@ export const ConfigurationApiAxiosParamCreator = function (configuration?: Confi
|
|
|
3896
4007
|
* @throws {RequiredError}
|
|
3897
4008
|
*/
|
|
3898
4009
|
listConfigurations: async (nextToken?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3899
|
-
const localVarPath = `/configurations`;
|
|
4010
|
+
const localVarPath = `/admins/configurations`;
|
|
3900
4011
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3901
4012
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3902
4013
|
let baseOptions;
|
|
@@ -4049,7 +4160,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
4049
4160
|
createCustomDealRestrictions: async (customDealRestrictionRequest: CustomDealRestrictionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4050
4161
|
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
|
4051
4162
|
assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest)
|
|
4052
|
-
const localVarPath = `/custom-deals/restrictions`;
|
|
4163
|
+
const localVarPath = `/admins/custom-deals/restrictions`;
|
|
4053
4164
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4054
4165
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4055
4166
|
let baseOptions;
|
|
@@ -4082,7 +4193,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
4082
4193
|
* @throws {RequiredError}
|
|
4083
4194
|
*/
|
|
4084
4195
|
listCustomDealRestrictions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4085
|
-
const localVarPath = `/custom-deals/restrictions`;
|
|
4196
|
+
const localVarPath = `/admins/custom-deals/restrictions`;
|
|
4086
4197
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4087
4198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4088
4199
|
let baseOptions;
|
|
@@ -4208,13 +4319,16 @@ export class CustomDealsApi extends BaseAPI {
|
|
|
4208
4319
|
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4209
4320
|
return {
|
|
4210
4321
|
/**
|
|
4211
|
-
*
|
|
4212
|
-
* @summary
|
|
4322
|
+
* Import events to the system to be processed
|
|
4323
|
+
* @summary Add event
|
|
4324
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
4213
4325
|
* @param {*} [options] Override http request option.
|
|
4214
4326
|
* @throws {RequiredError}
|
|
4215
4327
|
*/
|
|
4216
|
-
|
|
4217
|
-
|
|
4328
|
+
importEvent: async (eventCreationRequest: Array<EventCreationRequest>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4329
|
+
// verify required parameter 'eventCreationRequest' is not null or undefined
|
|
4330
|
+
assertParamExists('importEvent', 'eventCreationRequest', eventCreationRequest)
|
|
4331
|
+
const localVarPath = `/admins/events`;
|
|
4218
4332
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4219
4333
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4220
4334
|
let baseOptions;
|
|
@@ -4232,15 +4346,28 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4232
4346
|
|
|
4233
4347
|
|
|
4234
4348
|
|
|
4349
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4350
|
+
|
|
4235
4351
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4236
4352
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4237
4353
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4354
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration)
|
|
4238
4355
|
|
|
4239
4356
|
return {
|
|
4240
4357
|
url: toPathString(localVarUrlObj),
|
|
4241
4358
|
options: localVarRequestOptions,
|
|
4242
4359
|
};
|
|
4243
4360
|
},
|
|
4361
|
+
}
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
/**
|
|
4365
|
+
* DefaultApi - functional programming interface
|
|
4366
|
+
* @export
|
|
4367
|
+
*/
|
|
4368
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
4369
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
4370
|
+
return {
|
|
4244
4371
|
/**
|
|
4245
4372
|
* Import events to the system to be processed
|
|
4246
4373
|
* @summary Add event
|
|
@@ -4248,10 +4375,69 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4248
4375
|
* @param {*} [options] Override http request option.
|
|
4249
4376
|
* @throws {RequiredError}
|
|
4250
4377
|
*/
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4378
|
+
async importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
4380
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4381
|
+
},
|
|
4382
|
+
}
|
|
4383
|
+
};
|
|
4384
|
+
|
|
4385
|
+
/**
|
|
4386
|
+
* DefaultApi - factory interface
|
|
4387
|
+
* @export
|
|
4388
|
+
*/
|
|
4389
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4390
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
4391
|
+
return {
|
|
4392
|
+
/**
|
|
4393
|
+
* Import events to the system to be processed
|
|
4394
|
+
* @summary Add event
|
|
4395
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
4396
|
+
* @param {*} [options] Override http request option.
|
|
4397
|
+
* @throws {RequiredError}
|
|
4398
|
+
*/
|
|
4399
|
+
importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void> {
|
|
4400
|
+
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
4401
|
+
},
|
|
4402
|
+
};
|
|
4403
|
+
};
|
|
4404
|
+
|
|
4405
|
+
/**
|
|
4406
|
+
* DefaultApi - object-oriented interface
|
|
4407
|
+
* @export
|
|
4408
|
+
* @class DefaultApi
|
|
4409
|
+
* @extends {BaseAPI}
|
|
4410
|
+
*/
|
|
4411
|
+
export class DefaultApi extends BaseAPI {
|
|
4412
|
+
/**
|
|
4413
|
+
* Import events to the system to be processed
|
|
4414
|
+
* @summary Add event
|
|
4415
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
4416
|
+
* @param {*} [options] Override http request option.
|
|
4417
|
+
* @throws {RequiredError}
|
|
4418
|
+
* @memberof DefaultApi
|
|
4419
|
+
*/
|
|
4420
|
+
public importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) {
|
|
4421
|
+
return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
|
|
4425
|
+
|
|
4426
|
+
|
|
4427
|
+
/**
|
|
4428
|
+
* IntegrationApi - axios parameter creator
|
|
4429
|
+
* @export
|
|
4430
|
+
*/
|
|
4431
|
+
export const IntegrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4432
|
+
return {
|
|
4433
|
+
/**
|
|
4434
|
+
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4435
|
+
* @summary Generate API key for the current tenant
|
|
4436
|
+
* @param {*} [options] Override http request option.
|
|
4437
|
+
* @throws {RequiredError}
|
|
4438
|
+
*/
|
|
4439
|
+
generateApiKey: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4440
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
4255
4441
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4256
4442
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4257
4443
|
let baseOptions;
|
|
@@ -4269,12 +4455,9 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4269
4455
|
|
|
4270
4456
|
|
|
4271
4457
|
|
|
4272
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4273
|
-
|
|
4274
4458
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4275
4459
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4276
4460
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4277
|
-
localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration)
|
|
4278
4461
|
|
|
4279
4462
|
return {
|
|
4280
4463
|
url: toPathString(localVarUrlObj),
|
|
@@ -4288,7 +4471,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4288
4471
|
* @throws {RequiredError}
|
|
4289
4472
|
*/
|
|
4290
4473
|
listWebhooks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4291
|
-
const localVarPath = `/integrations/webhooks`;
|
|
4474
|
+
const localVarPath = `/admins/integrations/webhooks`;
|
|
4292
4475
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4293
4476
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4294
4477
|
let baseOptions;
|
|
@@ -4325,7 +4508,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4325
4508
|
setWebhook: async (webhook: Webhook, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4326
4509
|
// verify required parameter 'webhook' is not null or undefined
|
|
4327
4510
|
assertParamExists('setWebhook', 'webhook', webhook)
|
|
4328
|
-
const localVarPath = `/integrations/webhooks`;
|
|
4511
|
+
const localVarPath = `/admins/integrations/webhooks`;
|
|
4329
4512
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4330
4513
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4331
4514
|
let baseOptions;
|
|
@@ -4362,7 +4545,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4362
4545
|
* @throws {RequiredError}
|
|
4363
4546
|
*/
|
|
4364
4547
|
testApiKey: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4365
|
-
const localVarPath = `/integrations/apikey`;
|
|
4548
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
4366
4549
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4367
4550
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4368
4551
|
let baseOptions;
|
|
@@ -4392,11 +4575,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4392
4575
|
};
|
|
4393
4576
|
|
|
4394
4577
|
/**
|
|
4395
|
-
*
|
|
4578
|
+
* IntegrationApi - functional programming interface
|
|
4396
4579
|
* @export
|
|
4397
4580
|
*/
|
|
4398
|
-
export const
|
|
4399
|
-
const localVarAxiosParamCreator =
|
|
4581
|
+
export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
4582
|
+
const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration)
|
|
4400
4583
|
return {
|
|
4401
4584
|
/**
|
|
4402
4585
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
@@ -4408,17 +4591,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4408
4591
|
const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(options);
|
|
4409
4592
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4410
4593
|
},
|
|
4411
|
-
/**
|
|
4412
|
-
* Import events to the system to be processed
|
|
4413
|
-
* @summary Add event
|
|
4414
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
4415
|
-
* @param {*} [options] Override http request option.
|
|
4416
|
-
* @throws {RequiredError}
|
|
4417
|
-
*/
|
|
4418
|
-
async importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4419
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
4420
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4421
|
-
},
|
|
4422
4594
|
/**
|
|
4423
4595
|
* List all webhooks for current tenant
|
|
4424
4596
|
* @summary List webhooks
|
|
@@ -4454,11 +4626,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4454
4626
|
};
|
|
4455
4627
|
|
|
4456
4628
|
/**
|
|
4457
|
-
*
|
|
4629
|
+
* IntegrationApi - factory interface
|
|
4458
4630
|
* @export
|
|
4459
4631
|
*/
|
|
4460
|
-
export const
|
|
4461
|
-
const localVarFp =
|
|
4632
|
+
export const IntegrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4633
|
+
const localVarFp = IntegrationApiFp(configuration)
|
|
4462
4634
|
return {
|
|
4463
4635
|
/**
|
|
4464
4636
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
@@ -4469,16 +4641,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4469
4641
|
generateApiKey(options?: any): AxiosPromise<ApiKey> {
|
|
4470
4642
|
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
4471
4643
|
},
|
|
4472
|
-
/**
|
|
4473
|
-
* Import events to the system to be processed
|
|
4474
|
-
* @summary Add event
|
|
4475
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
4476
|
-
* @param {*} [options] Override http request option.
|
|
4477
|
-
* @throws {RequiredError}
|
|
4478
|
-
*/
|
|
4479
|
-
importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void> {
|
|
4480
|
-
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
4481
|
-
},
|
|
4482
4644
|
/**
|
|
4483
4645
|
* List all webhooks for current tenant
|
|
4484
4646
|
* @summary List webhooks
|
|
@@ -4511,33 +4673,21 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4511
4673
|
};
|
|
4512
4674
|
|
|
4513
4675
|
/**
|
|
4514
|
-
*
|
|
4676
|
+
* IntegrationApi - object-oriented interface
|
|
4515
4677
|
* @export
|
|
4516
|
-
* @class
|
|
4678
|
+
* @class IntegrationApi
|
|
4517
4679
|
* @extends {BaseAPI}
|
|
4518
4680
|
*/
|
|
4519
|
-
export class
|
|
4681
|
+
export class IntegrationApi extends BaseAPI {
|
|
4520
4682
|
/**
|
|
4521
4683
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4522
4684
|
* @summary Generate API key for the current tenant
|
|
4523
4685
|
* @param {*} [options] Override http request option.
|
|
4524
4686
|
* @throws {RequiredError}
|
|
4525
|
-
* @memberof
|
|
4687
|
+
* @memberof IntegrationApi
|
|
4526
4688
|
*/
|
|
4527
4689
|
public generateApiKey(options?: AxiosRequestConfig) {
|
|
4528
|
-
return
|
|
4529
|
-
}
|
|
4530
|
-
|
|
4531
|
-
/**
|
|
4532
|
-
* Import events to the system to be processed
|
|
4533
|
-
* @summary Add event
|
|
4534
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
4535
|
-
* @param {*} [options] Override http request option.
|
|
4536
|
-
* @throws {RequiredError}
|
|
4537
|
-
* @memberof DefaultApi
|
|
4538
|
-
*/
|
|
4539
|
-
public importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) {
|
|
4540
|
-
return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4690
|
+
return IntegrationApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
4541
4691
|
}
|
|
4542
4692
|
|
|
4543
4693
|
/**
|
|
@@ -4545,10 +4695,10 @@ export class DefaultApi extends BaseAPI {
|
|
|
4545
4695
|
* @summary List webhooks
|
|
4546
4696
|
* @param {*} [options] Override http request option.
|
|
4547
4697
|
* @throws {RequiredError}
|
|
4548
|
-
* @memberof
|
|
4698
|
+
* @memberof IntegrationApi
|
|
4549
4699
|
*/
|
|
4550
4700
|
public listWebhooks(options?: AxiosRequestConfig) {
|
|
4551
|
-
return
|
|
4701
|
+
return IntegrationApiFp(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
|
|
4552
4702
|
}
|
|
4553
4703
|
|
|
4554
4704
|
/**
|
|
@@ -4557,10 +4707,10 @@ export class DefaultApi extends BaseAPI {
|
|
|
4557
4707
|
* @param {Webhook} webhook webhook data
|
|
4558
4708
|
* @param {*} [options] Override http request option.
|
|
4559
4709
|
* @throws {RequiredError}
|
|
4560
|
-
* @memberof
|
|
4710
|
+
* @memberof IntegrationApi
|
|
4561
4711
|
*/
|
|
4562
4712
|
public setWebhook(webhook: Webhook, options?: AxiosRequestConfig) {
|
|
4563
|
-
return
|
|
4713
|
+
return IntegrationApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
4564
4714
|
}
|
|
4565
4715
|
|
|
4566
4716
|
/**
|
|
@@ -4568,10 +4718,10 @@ export class DefaultApi extends BaseAPI {
|
|
|
4568
4718
|
* @summary Test API key security scheme
|
|
4569
4719
|
* @param {*} [options] Override http request option.
|
|
4570
4720
|
* @throws {RequiredError}
|
|
4571
|
-
* @memberof
|
|
4721
|
+
* @memberof IntegrationApi
|
|
4572
4722
|
*/
|
|
4573
4723
|
public testApiKey(options?: AxiosRequestConfig) {
|
|
4574
|
-
return
|
|
4724
|
+
return IntegrationApiFp(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
4575
4725
|
}
|
|
4576
4726
|
}
|
|
4577
4727
|
|
|
@@ -4945,7 +5095,7 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4945
5095
|
getOrder: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4946
5096
|
// verify required parameter 'id' is not null or undefined
|
|
4947
5097
|
assertParamExists('getOrder', 'id', id)
|
|
4948
|
-
const localVarPath = `/orders/{id}`
|
|
5098
|
+
const localVarPath = `/users/orders/{id}`
|
|
4949
5099
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4950
5100
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4951
5101
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5197,7 +5347,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5197
5347
|
approveProduct: async (id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5198
5348
|
// verify required parameter 'id' is not null or undefined
|
|
5199
5349
|
assertParamExists('approveProduct', 'id', id)
|
|
5200
|
-
const localVarPath = `/products/requests/{id}`
|
|
5350
|
+
const localVarPath = `/admins/products/requests/{id}`
|
|
5201
5351
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5202
5352
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5203
5353
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5229,14 +5379,14 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5229
5379
|
};
|
|
5230
5380
|
},
|
|
5231
5381
|
/**
|
|
5232
|
-
*
|
|
5233
|
-
* @summary
|
|
5382
|
+
* Create multiple products
|
|
5383
|
+
* @summary Create multiple products
|
|
5234
5384
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
5235
5385
|
* @param {*} [options] Override http request option.
|
|
5236
5386
|
* @throws {RequiredError}
|
|
5237
5387
|
*/
|
|
5238
5388
|
bulkCreateProducts: async (productBulkCreationRequest?: ProductBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5239
|
-
const localVarPath = `/products/bulk`;
|
|
5389
|
+
const localVarPath = `/admins/products/bulk`;
|
|
5240
5390
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5241
5391
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5242
5392
|
let baseOptions;
|
|
@@ -5274,7 +5424,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5274
5424
|
* @throws {RequiredError}
|
|
5275
5425
|
*/
|
|
5276
5426
|
createProduct: async (productCreationRequest?: ProductCreationRequest | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5277
|
-
const localVarPath = `/products`;
|
|
5427
|
+
const localVarPath = `/admins/products`;
|
|
5278
5428
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5279
5429
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5280
5430
|
let baseOptions;
|
|
@@ -5349,7 +5499,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5349
5499
|
* @throws {RequiredError}
|
|
5350
5500
|
*/
|
|
5351
5501
|
createUploadURL: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5352
|
-
const localVarPath = `/products/upload-urls`;
|
|
5502
|
+
const localVarPath = `/admins/products/upload-urls`;
|
|
5353
5503
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5354
5504
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5355
5505
|
let baseOptions;
|
|
@@ -5382,7 +5532,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5382
5532
|
getProductById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5383
5533
|
// verify required parameter 'id' is not null or undefined
|
|
5384
5534
|
assertParamExists('getProductById', 'id', id)
|
|
5385
|
-
const localVarPath = `/products/{id}`
|
|
5535
|
+
const localVarPath = `/admins/products/{id}`
|
|
5386
5536
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5387
5537
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5388
5538
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5420,7 +5570,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5420
5570
|
getProductRequestById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5421
5571
|
// verify required parameter 'id' is not null or undefined
|
|
5422
5572
|
assertParamExists('getProductRequestById', 'id', id)
|
|
5423
|
-
const localVarPath = `/products/requests/{id}`
|
|
5573
|
+
const localVarPath = `/admins/products/requests/{id}`
|
|
5424
5574
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5425
5575
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5426
5576
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5495,7 +5645,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5495
5645
|
* @throws {RequiredError}
|
|
5496
5646
|
*/
|
|
5497
5647
|
listProductRequests: async (status?: ProductRequestStatus, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5498
|
-
const localVarPath = `/products/requests`;
|
|
5648
|
+
const localVarPath = `/admins/products/requests`;
|
|
5499
5649
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5500
5650
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5501
5651
|
let baseOptions;
|
|
@@ -5546,7 +5696,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5546
5696
|
* @throws {RequiredError}
|
|
5547
5697
|
*/
|
|
5548
5698
|
listProducts: async (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5549
|
-
const localVarPath = `/products`;
|
|
5699
|
+
const localVarPath = `/admins/products`;
|
|
5550
5700
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5551
5701
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5552
5702
|
let baseOptions;
|
|
@@ -5620,7 +5770,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5620
5770
|
updateProduct: async (id: string, productCreationRequest?: ProductCreationRequest | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5621
5771
|
// verify required parameter 'id' is not null or undefined
|
|
5622
5772
|
assertParamExists('updateProduct', 'id', id)
|
|
5623
|
-
const localVarPath = `/products/{id}`
|
|
5773
|
+
const localVarPath = `/admins/products/{id}`
|
|
5624
5774
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5625
5775
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5626
5776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5674,8 +5824,8 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
5674
5824
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5675
5825
|
},
|
|
5676
5826
|
/**
|
|
5677
|
-
*
|
|
5678
|
-
* @summary
|
|
5827
|
+
* Create multiple products
|
|
5828
|
+
* @summary Create multiple products
|
|
5679
5829
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
5680
5830
|
* @param {*} [options] Override http request option.
|
|
5681
5831
|
* @throws {RequiredError}
|
|
@@ -5814,8 +5964,8 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
5814
5964
|
return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
|
|
5815
5965
|
},
|
|
5816
5966
|
/**
|
|
5817
|
-
*
|
|
5818
|
-
* @summary
|
|
5967
|
+
* Create multiple products
|
|
5968
|
+
* @summary Create multiple products
|
|
5819
5969
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
5820
5970
|
* @param {*} [options] Override http request option.
|
|
5821
5971
|
* @throws {RequiredError}
|
|
@@ -5946,8 +6096,8 @@ export class ProductApi extends BaseAPI {
|
|
|
5946
6096
|
}
|
|
5947
6097
|
|
|
5948
6098
|
/**
|
|
5949
|
-
*
|
|
5950
|
-
* @summary
|
|
6099
|
+
* Create multiple products
|
|
6100
|
+
* @summary Create multiple products
|
|
5951
6101
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
5952
6102
|
* @param {*} [options] Override http request option.
|
|
5953
6103
|
* @throws {RequiredError}
|
|
@@ -6098,7 +6248,7 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
6098
6248
|
listProgress: async (id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6099
6249
|
// verify required parameter 'id' is not null or undefined
|
|
6100
6250
|
assertParamExists('listProgress', 'id', id)
|
|
6101
|
-
const localVarPath = `/promotions/{id}/progress`
|
|
6251
|
+
const localVarPath = `/admins/promotions/{id}/progress`
|
|
6102
6252
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6103
6253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6104
6254
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6341,7 +6491,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6341
6491
|
claimPromotion: async (id: string, promotionClaimRequest?: PromotionClaimRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6342
6492
|
// verify required parameter 'id' is not null or undefined
|
|
6343
6493
|
assertParamExists('claimPromotion', 'id', id)
|
|
6344
|
-
const localVarPath = `/promotions/{id}/claims`
|
|
6494
|
+
const localVarPath = `/admins/promotions/{id}/claims`
|
|
6345
6495
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6346
6496
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6347
6497
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6381,7 +6531,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6381
6531
|
assertParamExists('claimPromotionProgress', 'id', id)
|
|
6382
6532
|
// verify required parameter 'progressID' is not null or undefined
|
|
6383
6533
|
assertParamExists('claimPromotionProgress', 'progressID', progressID)
|
|
6384
|
-
const localVarPath = `/
|
|
6534
|
+
const localVarPath = `/adminspromotions/{id}/progress/{progressID}/claims`
|
|
6385
6535
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
6386
6536
|
.replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
|
|
6387
6537
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6488,7 +6638,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6488
6638
|
createPromotion: async (promotionRequest: PromotionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6489
6639
|
// verify required parameter 'promotionRequest' is not null or undefined
|
|
6490
6640
|
assertParamExists('createPromotion', 'promotionRequest', promotionRequest)
|
|
6491
|
-
const localVarPath = `/promotions`;
|
|
6641
|
+
const localVarPath = `/admins/promotions`;
|
|
6492
6642
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6493
6643
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6494
6644
|
let baseOptions;
|
|
@@ -6528,7 +6678,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6528
6678
|
deletePromotion: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6529
6679
|
// verify required parameter 'id' is not null or undefined
|
|
6530
6680
|
assertParamExists('deletePromotion', 'id', id)
|
|
6531
|
-
const localVarPath = `/promotions/{id}`
|
|
6681
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
6532
6682
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6533
6683
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6534
6684
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6566,7 +6716,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6566
6716
|
getPromotion: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6567
6717
|
// verify required parameter 'id' is not null or undefined
|
|
6568
6718
|
assertParamExists('getPromotion', 'id', id)
|
|
6569
|
-
const localVarPath = `/promotions/{id}`
|
|
6719
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
6570
6720
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6571
6721
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6572
6722
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6648,7 +6798,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6648
6798
|
* @throws {RequiredError}
|
|
6649
6799
|
*/
|
|
6650
6800
|
listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6651
|
-
const localVarPath = `/promotions`;
|
|
6801
|
+
const localVarPath = `/admins/promotions`;
|
|
6652
6802
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6653
6803
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6654
6804
|
let baseOptions;
|
|
@@ -6791,7 +6941,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6791
6941
|
assertParamExists('updatePromotion', 'id', id)
|
|
6792
6942
|
// verify required parameter 'updatePromotionRequest' is not null or undefined
|
|
6793
6943
|
assertParamExists('updatePromotion', 'updatePromotionRequest', updatePromotionRequest)
|
|
6794
|
-
const localVarPath = `/promotions/{id}`
|
|
6944
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
6795
6945
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6796
6946
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6797
6947
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7399,7 +7549,7 @@ export const SegmentApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7399
7549
|
* @throws {RequiredError}
|
|
7400
7550
|
*/
|
|
7401
7551
|
createSegment: async (createSegmentRequest?: CreateSegmentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7402
|
-
const localVarPath = `/segments`;
|
|
7552
|
+
const localVarPath = `/admins/segments`;
|
|
7403
7553
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7404
7554
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7405
7555
|
let baseOptions;
|
|
@@ -7439,7 +7589,7 @@ export const SegmentApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7439
7589
|
getSegmentById: async (segmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7440
7590
|
// verify required parameter 'segmentId' is not null or undefined
|
|
7441
7591
|
assertParamExists('getSegmentById', 'segmentId', segmentId)
|
|
7442
|
-
const localVarPath = `/segments/{segmentId}`
|
|
7592
|
+
const localVarPath = `/admins/segments/{segmentId}`
|
|
7443
7593
|
.replace(`{${"segmentId"}}`, encodeURIComponent(String(segmentId)));
|
|
7444
7594
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7445
7595
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7476,7 +7626,7 @@ export const SegmentApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7476
7626
|
* @throws {RequiredError}
|
|
7477
7627
|
*/
|
|
7478
7628
|
listSegments: async (nextToken?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7479
|
-
const localVarPath = `/segments`;
|
|
7629
|
+
const localVarPath = `/admins/segments`;
|
|
7480
7630
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7481
7631
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7482
7632
|
let baseOptions;
|
|
@@ -7660,7 +7810,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7660
7810
|
* @throws {RequiredError}
|
|
7661
7811
|
*/
|
|
7662
7812
|
createTag: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7663
|
-
const localVarPath = `/tags`;
|
|
7813
|
+
const localVarPath = `/admins/tags`;
|
|
7664
7814
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7665
7815
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7666
7816
|
let baseOptions;
|
|
@@ -7700,7 +7850,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7700
7850
|
deleteTag: async (key: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7701
7851
|
// verify required parameter 'key' is not null or undefined
|
|
7702
7852
|
assertParamExists('deleteTag', 'key', key)
|
|
7703
|
-
const localVarPath = `/tags/{key}`
|
|
7853
|
+
const localVarPath = `/admins/tags/{key}`
|
|
7704
7854
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
7705
7855
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7706
7856
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7738,7 +7888,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7738
7888
|
getTagByKey: async (key: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7739
7889
|
// verify required parameter 'key' is not null or undefined
|
|
7740
7890
|
assertParamExists('getTagByKey', 'key', key)
|
|
7741
|
-
const localVarPath = `/tags/{key}`
|
|
7891
|
+
const localVarPath = `/admins/tags/{key}`
|
|
7742
7892
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
7743
7893
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7744
7894
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7774,7 +7924,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7774
7924
|
* @throws {RequiredError}
|
|
7775
7925
|
*/
|
|
7776
7926
|
listTags: async (tagKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7777
|
-
const localVarPath = `/tags`;
|
|
7927
|
+
const localVarPath = `/admins/tags`;
|
|
7778
7928
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7779
7929
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7780
7930
|
let baseOptions;
|
|
@@ -7816,7 +7966,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7816
7966
|
updateTag: async (key: string, createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7817
7967
|
// verify required parameter 'key' is not null or undefined
|
|
7818
7968
|
assertParamExists('updateTag', 'key', key)
|
|
7819
|
-
const localVarPath = `/tags/{key}`
|
|
7969
|
+
const localVarPath = `/admins/tags/{key}`
|
|
7820
7970
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
7821
7971
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7822
7972
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8063,7 +8213,7 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
|
|
|
8063
8213
|
* @throws {RequiredError}
|
|
8064
8214
|
*/
|
|
8065
8215
|
listTransactions: async (paginationToken?: string, clientID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8066
|
-
const localVarPath = `/transactions`;
|
|
8216
|
+
const localVarPath = `/admins/transactions`;
|
|
8067
8217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8068
8218
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8069
8219
|
let baseOptions;
|
|
@@ -8183,7 +8333,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
8183
8333
|
getUserByID: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8184
8334
|
// verify required parameter 'id' is not null or undefined
|
|
8185
8335
|
assertParamExists('getUserByID', 'id', id)
|
|
8186
|
-
const localVarPath = `/users/{id}`
|
|
8336
|
+
const localVarPath = `/admins/users/{id}`
|
|
8187
8337
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8188
8338
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8189
8339
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8221,7 +8371,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
8221
8371
|
getUserSubordinates: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8222
8372
|
// verify required parameter 'id' is not null or undefined
|
|
8223
8373
|
assertParamExists('getUserSubordinates', 'id', id)
|
|
8224
|
-
const localVarPath = `/
|
|
8374
|
+
const localVarPath = `/admins/users/{id}/team`
|
|
8225
8375
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8226
8376
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8227
8377
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8262,7 +8412,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
8262
8412
|
* @throws {RequiredError}
|
|
8263
8413
|
*/
|
|
8264
8414
|
listUsers: async (nextToken?: string, role?: UserRole, search?: string, clientID?: string, userIds?: string, source?: UserSource, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8265
|
-
const localVarPath = `/users`;
|
|
8415
|
+
const localVarPath = `/admins/users`;
|
|
8266
8416
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8267
8417
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8268
8418
|
let baseOptions;
|