flexinet-api 0.0.2314 → 0.0.2318
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 +1133 -230
- package/dist/api.d.ts +952 -151
- package/dist/api.js +353 -182
- package/dist/esm/api.d.ts +952 -151
- package/dist/esm/api.js +351 -176
- package/package.json +1 -1
package/api.ts
CHANGED
@@ -128,6 +128,12 @@ export interface AuditLog {
|
|
128
128
|
* @memberof AuditLog
|
129
129
|
*/
|
130
130
|
'objectId'?: string;
|
131
|
+
/**
|
132
|
+
*
|
133
|
+
* @type {string}
|
134
|
+
* @memberof AuditLog
|
135
|
+
*/
|
136
|
+
'diff'?: string;
|
131
137
|
}
|
132
138
|
|
133
139
|
export const AuditLogActionEnum = {
|
@@ -176,7 +182,8 @@ export interface AuditLogListResponse {
|
|
176
182
|
|
177
183
|
export const AuditLogObjectType = {
|
178
184
|
Promotion: 'promotion',
|
179
|
-
ApiKey: 'api_key'
|
185
|
+
ApiKey: 'api_key',
|
186
|
+
Config: 'config'
|
180
187
|
} as const;
|
181
188
|
|
182
189
|
export type AuditLogObjectType = typeof AuditLogObjectType[keyof typeof AuditLogObjectType];
|
@@ -230,12 +237,6 @@ export interface AuthorizationConfig {
|
|
230
237
|
* @memberof AuthorizationConfig
|
231
238
|
*/
|
232
239
|
'customerOpenIDClientID': string;
|
233
|
-
/**
|
234
|
-
*
|
235
|
-
* @type {string}
|
236
|
-
* @memberof AuthorizationConfig
|
237
|
-
*/
|
238
|
-
'customerOpenIDSecret': string;
|
239
240
|
/**
|
240
241
|
*
|
241
242
|
* @type {string}
|
@@ -267,6 +268,85 @@ export interface AuthorizationConfig {
|
|
267
268
|
*/
|
268
269
|
'customerLoginUrl': string;
|
269
270
|
}
|
271
|
+
/**
|
272
|
+
*
|
273
|
+
* @export
|
274
|
+
* @interface AuthorizationConfigRequest
|
275
|
+
*/
|
276
|
+
export interface AuthorizationConfigRequest {
|
277
|
+
/**
|
278
|
+
*
|
279
|
+
* @type {string}
|
280
|
+
* @memberof AuthorizationConfigRequest
|
281
|
+
*/
|
282
|
+
'adminKeyConfig'?: string;
|
283
|
+
/**
|
284
|
+
*
|
285
|
+
* @type {string}
|
286
|
+
* @memberof AuthorizationConfigRequest
|
287
|
+
*/
|
288
|
+
'adminIssuer'?: string;
|
289
|
+
/**
|
290
|
+
*
|
291
|
+
* @type {string}
|
292
|
+
* @memberof AuthorizationConfigRequest
|
293
|
+
*/
|
294
|
+
'adminAudience'?: string;
|
295
|
+
/**
|
296
|
+
*
|
297
|
+
* @type {string}
|
298
|
+
* @memberof AuthorizationConfigRequest
|
299
|
+
*/
|
300
|
+
'customerAudience'?: string;
|
301
|
+
/**
|
302
|
+
*
|
303
|
+
* @type {string}
|
304
|
+
* @memberof AuthorizationConfigRequest
|
305
|
+
*/
|
306
|
+
'customerOpenIDKeyConfig'?: string;
|
307
|
+
/**
|
308
|
+
*
|
309
|
+
* @type {string}
|
310
|
+
* @memberof AuthorizationConfigRequest
|
311
|
+
*/
|
312
|
+
'customerOpenIDIssuer'?: string;
|
313
|
+
/**
|
314
|
+
*
|
315
|
+
* @type {string}
|
316
|
+
* @memberof AuthorizationConfigRequest
|
317
|
+
*/
|
318
|
+
'customerOpenIDClientID'?: string;
|
319
|
+
/**
|
320
|
+
*
|
321
|
+
* @type {string}
|
322
|
+
* @memberof AuthorizationConfigRequest
|
323
|
+
*/
|
324
|
+
'customerOpenIDMetadataURL'?: string;
|
325
|
+
/**
|
326
|
+
*
|
327
|
+
* @type {{ [key: string]: string; }}
|
328
|
+
* @memberof AuthorizationConfigRequest
|
329
|
+
*/
|
330
|
+
'customerOpenIDParameters'?: { [key: string]: string; };
|
331
|
+
/**
|
332
|
+
*
|
333
|
+
* @type {string}
|
334
|
+
* @memberof AuthorizationConfigRequest
|
335
|
+
*/
|
336
|
+
'azureEntraTenantID'?: string;
|
337
|
+
/**
|
338
|
+
*
|
339
|
+
* @type {string}
|
340
|
+
* @memberof AuthorizationConfigRequest
|
341
|
+
*/
|
342
|
+
'azureEntraClientID'?: string;
|
343
|
+
/**
|
344
|
+
*
|
345
|
+
* @type {string}
|
346
|
+
* @memberof AuthorizationConfigRequest
|
347
|
+
*/
|
348
|
+
'customerLoginUrl'?: string;
|
349
|
+
}
|
270
350
|
/**
|
271
351
|
*
|
272
352
|
* @export
|
@@ -700,6 +780,37 @@ export interface BrandingConfig {
|
|
700
780
|
*/
|
701
781
|
'coinLogoURL': string;
|
702
782
|
}
|
783
|
+
/**
|
784
|
+
*
|
785
|
+
* @export
|
786
|
+
* @interface BrandingConfigRequest
|
787
|
+
*/
|
788
|
+
export interface BrandingConfigRequest {
|
789
|
+
/**
|
790
|
+
*
|
791
|
+
* @type {string}
|
792
|
+
* @memberof BrandingConfigRequest
|
793
|
+
*/
|
794
|
+
'logoURL'?: string;
|
795
|
+
/**
|
796
|
+
*
|
797
|
+
* @type {string}
|
798
|
+
* @memberof BrandingConfigRequest
|
799
|
+
*/
|
800
|
+
'mainColor'?: string;
|
801
|
+
/**
|
802
|
+
*
|
803
|
+
* @type {string}
|
804
|
+
* @memberof BrandingConfigRequest
|
805
|
+
*/
|
806
|
+
'coinName'?: string;
|
807
|
+
/**
|
808
|
+
*
|
809
|
+
* @type {string}
|
810
|
+
* @memberof BrandingConfigRequest
|
811
|
+
*/
|
812
|
+
'coinLogoURL'?: string;
|
813
|
+
}
|
703
814
|
/**
|
704
815
|
*
|
705
816
|
* @export
|
@@ -1165,6 +1276,25 @@ export interface CustomerUserDetails {
|
|
1165
1276
|
*/
|
1166
1277
|
'lastName'?: string;
|
1167
1278
|
}
|
1279
|
+
/**
|
1280
|
+
*
|
1281
|
+
* @export
|
1282
|
+
* @interface Event
|
1283
|
+
*/
|
1284
|
+
export interface Event {
|
1285
|
+
/**
|
1286
|
+
*
|
1287
|
+
* @type {TransactionEventDetails}
|
1288
|
+
* @memberof Event
|
1289
|
+
*/
|
1290
|
+
'event': TransactionEventDetails;
|
1291
|
+
/**
|
1292
|
+
*
|
1293
|
+
* @type {Array<Promotion>}
|
1294
|
+
* @memberof Event
|
1295
|
+
*/
|
1296
|
+
'promotions': Array<Promotion>;
|
1297
|
+
}
|
1168
1298
|
/**
|
1169
1299
|
*
|
1170
1300
|
* @export
|
@@ -1223,6 +1353,25 @@ export interface EventsEvaluationResponse {
|
|
1223
1353
|
*/
|
1224
1354
|
'promotions': { [key: string]: Array<Promotion>; };
|
1225
1355
|
}
|
1356
|
+
/**
|
1357
|
+
*
|
1358
|
+
* @export
|
1359
|
+
* @interface EventsResponse
|
1360
|
+
*/
|
1361
|
+
export interface EventsResponse {
|
1362
|
+
/**
|
1363
|
+
*
|
1364
|
+
* @type {Array<Event>}
|
1365
|
+
* @memberof EventsResponse
|
1366
|
+
*/
|
1367
|
+
'events': Array<Event>;
|
1368
|
+
/**
|
1369
|
+
* This is the pagination token
|
1370
|
+
* @type {string}
|
1371
|
+
* @memberof EventsResponse
|
1372
|
+
*/
|
1373
|
+
'nextToken'?: string;
|
1374
|
+
}
|
1226
1375
|
/**
|
1227
1376
|
*
|
1228
1377
|
* @export
|
@@ -1236,7 +1385,8 @@ export const Feature = {
|
|
1236
1385
|
UserInfo: 'user_info',
|
1237
1386
|
ExternalInventory: 'external_inventory',
|
1238
1387
|
OrderEvents: 'order_events',
|
1239
|
-
OrderStatusPolling: 'order_status_polling'
|
1388
|
+
OrderStatusPolling: 'order_status_polling',
|
1389
|
+
SmsSending: 'sms_sending'
|
1240
1390
|
} as const;
|
1241
1391
|
|
1242
1392
|
export type Feature = typeof Feature[keyof typeof Feature];
|
@@ -1261,6 +1411,25 @@ export interface FeatureFlags {
|
|
1261
1411
|
*/
|
1262
1412
|
'features': { [key: string]: boolean; };
|
1263
1413
|
}
|
1414
|
+
/**
|
1415
|
+
*
|
1416
|
+
* @export
|
1417
|
+
* @interface FeatureFlagsRequest
|
1418
|
+
*/
|
1419
|
+
export interface FeatureFlagsRequest {
|
1420
|
+
/**
|
1421
|
+
*
|
1422
|
+
* @type {boolean}
|
1423
|
+
* @memberof FeatureFlagsRequest
|
1424
|
+
*/
|
1425
|
+
'enforce'?: boolean;
|
1426
|
+
/**
|
1427
|
+
*
|
1428
|
+
* @type {{ [key: string]: boolean; }}
|
1429
|
+
* @memberof FeatureFlagsRequest
|
1430
|
+
*/
|
1431
|
+
'features'?: { [key: string]: boolean; };
|
1432
|
+
}
|
1264
1433
|
/**
|
1265
1434
|
*
|
1266
1435
|
* @export
|
@@ -1341,6 +1510,73 @@ export interface IntegrationsConfig {
|
|
1341
1510
|
*/
|
1342
1511
|
'externalUserServiceEnabled': boolean;
|
1343
1512
|
}
|
1513
|
+
/**
|
1514
|
+
*
|
1515
|
+
* @export
|
1516
|
+
* @interface IntegrationsConfigRequest
|
1517
|
+
*/
|
1518
|
+
export interface IntegrationsConfigRequest {
|
1519
|
+
/**
|
1520
|
+
*
|
1521
|
+
* @type {string}
|
1522
|
+
* @memberof IntegrationsConfigRequest
|
1523
|
+
*/
|
1524
|
+
'userInfoURL'?: string;
|
1525
|
+
/**
|
1526
|
+
*
|
1527
|
+
* @type {string}
|
1528
|
+
* @memberof IntegrationsConfigRequest
|
1529
|
+
*/
|
1530
|
+
'productInventoryURL'?: string;
|
1531
|
+
/**
|
1532
|
+
*
|
1533
|
+
* @type {string}
|
1534
|
+
* @memberof IntegrationsConfigRequest
|
1535
|
+
*/
|
1536
|
+
'orderStatusURL'?: string;
|
1537
|
+
/**
|
1538
|
+
*
|
1539
|
+
* @type {boolean}
|
1540
|
+
* @memberof IntegrationsConfigRequest
|
1541
|
+
*/
|
1542
|
+
'useOrderEventsExternalID'?: boolean;
|
1543
|
+
/**
|
1544
|
+
*
|
1545
|
+
* @type {string}
|
1546
|
+
* @memberof IntegrationsConfigRequest
|
1547
|
+
*/
|
1548
|
+
'smsURL'?: string;
|
1549
|
+
/**
|
1550
|
+
*
|
1551
|
+
* @type {string}
|
1552
|
+
* @memberof IntegrationsConfigRequest
|
1553
|
+
*/
|
1554
|
+
'smsKey'?: string;
|
1555
|
+
/**
|
1556
|
+
*
|
1557
|
+
* @type {string}
|
1558
|
+
* @memberof IntegrationsConfigRequest
|
1559
|
+
*/
|
1560
|
+
'authEndpoint'?: string;
|
1561
|
+
/**
|
1562
|
+
*
|
1563
|
+
* @type {string}
|
1564
|
+
* @memberof IntegrationsConfigRequest
|
1565
|
+
*/
|
1566
|
+
'authClientID'?: string;
|
1567
|
+
/**
|
1568
|
+
*
|
1569
|
+
* @type {string}
|
1570
|
+
* @memberof IntegrationsConfigRequest
|
1571
|
+
*/
|
1572
|
+
'authClientSecretName'?: string;
|
1573
|
+
/**
|
1574
|
+
*
|
1575
|
+
* @type {boolean}
|
1576
|
+
* @memberof IntegrationsConfigRequest
|
1577
|
+
*/
|
1578
|
+
'externalUserServiceEnabled'?: boolean;
|
1579
|
+
}
|
1344
1580
|
/**
|
1345
1581
|
*
|
1346
1582
|
* @export
|
@@ -1391,6 +1627,37 @@ export interface LedgerConfig {
|
|
1391
1627
|
*/
|
1392
1628
|
'expiry': { [key: string]: string; };
|
1393
1629
|
}
|
1630
|
+
/**
|
1631
|
+
*
|
1632
|
+
* @export
|
1633
|
+
* @interface LedgerConfigRequest
|
1634
|
+
*/
|
1635
|
+
export interface LedgerConfigRequest {
|
1636
|
+
/**
|
1637
|
+
*
|
1638
|
+
* @type {number}
|
1639
|
+
* @memberof LedgerConfigRequest
|
1640
|
+
*/
|
1641
|
+
'balanceGracePeriod'?: number;
|
1642
|
+
/**
|
1643
|
+
*
|
1644
|
+
* @type {number}
|
1645
|
+
* @memberof LedgerConfigRequest
|
1646
|
+
*/
|
1647
|
+
'maxManagerOrderValue'?: number;
|
1648
|
+
/**
|
1649
|
+
*
|
1650
|
+
* @type {boolean}
|
1651
|
+
* @memberof LedgerConfigRequest
|
1652
|
+
*/
|
1653
|
+
'allowNegativeBalance'?: boolean;
|
1654
|
+
/**
|
1655
|
+
*
|
1656
|
+
* @type {{ [key: string]: string; }}
|
1657
|
+
* @memberof LedgerConfigRequest
|
1658
|
+
*/
|
1659
|
+
'expiry'?: { [key: string]: string; };
|
1660
|
+
}
|
1394
1661
|
/**
|
1395
1662
|
*
|
1396
1663
|
* @export
|
@@ -1731,6 +1998,49 @@ export interface NotificationConfig {
|
|
1731
1998
|
*/
|
1732
1999
|
'templateDir'?: string;
|
1733
2000
|
}
|
2001
|
+
/**
|
2002
|
+
*
|
2003
|
+
* @export
|
2004
|
+
* @interface NotificationConfigRequest
|
2005
|
+
*/
|
2006
|
+
export interface NotificationConfigRequest {
|
2007
|
+
/**
|
2008
|
+
*
|
2009
|
+
* @type {Array<string>}
|
2010
|
+
* @memberof NotificationConfigRequest
|
2011
|
+
*/
|
2012
|
+
'emails'?: Array<string>;
|
2013
|
+
/**
|
2014
|
+
*
|
2015
|
+
* @type {Array<NotificationPreference>}
|
2016
|
+
* @memberof NotificationConfigRequest
|
2017
|
+
*/
|
2018
|
+
'preferences'?: Array<NotificationPreference>;
|
2019
|
+
/**
|
2020
|
+
*
|
2021
|
+
* @type {{ [key: string]: NotificationTemplateConfig; }}
|
2022
|
+
* @memberof NotificationConfigRequest
|
2023
|
+
*/
|
2024
|
+
'templates'?: { [key: string]: NotificationTemplateConfig; };
|
2025
|
+
/**
|
2026
|
+
*
|
2027
|
+
* @type {string}
|
2028
|
+
* @memberof NotificationConfigRequest
|
2029
|
+
*/
|
2030
|
+
'customerWebappHostname'?: string;
|
2031
|
+
/**
|
2032
|
+
*
|
2033
|
+
* @type {string}
|
2034
|
+
* @memberof NotificationConfigRequest
|
2035
|
+
*/
|
2036
|
+
'adminWebappHostname'?: string;
|
2037
|
+
/**
|
2038
|
+
*
|
2039
|
+
* @type {string}
|
2040
|
+
* @memberof NotificationConfigRequest
|
2041
|
+
*/
|
2042
|
+
'templateDir'?: string;
|
2043
|
+
}
|
1734
2044
|
/**
|
1735
2045
|
*
|
1736
2046
|
* @export
|
@@ -1953,7 +2263,75 @@ export interface OrderCreationRequest {
|
|
1953
2263
|
* @type {Array<OrderItemCreationRequest>}
|
1954
2264
|
* @memberof OrderCreationRequest
|
1955
2265
|
*/
|
1956
|
-
'items': Array<OrderItemCreationRequest>;
|
2266
|
+
'items': Array<OrderItemCreationRequest>;
|
2267
|
+
}
|
2268
|
+
/**
|
2269
|
+
*
|
2270
|
+
* @export
|
2271
|
+
* @interface OrderEvent
|
2272
|
+
*/
|
2273
|
+
export interface OrderEvent {
|
2274
|
+
/**
|
2275
|
+
*
|
2276
|
+
* @type {string}
|
2277
|
+
* @memberof OrderEvent
|
2278
|
+
*/
|
2279
|
+
'id': string;
|
2280
|
+
/**
|
2281
|
+
*
|
2282
|
+
* @type {string}
|
2283
|
+
* @memberof OrderEvent
|
2284
|
+
*/
|
2285
|
+
'orderID': string;
|
2286
|
+
/**
|
2287
|
+
*
|
2288
|
+
* @type {Order}
|
2289
|
+
* @memberof OrderEvent
|
2290
|
+
*/
|
2291
|
+
'order': Order;
|
2292
|
+
/**
|
2293
|
+
*
|
2294
|
+
* @type {string}
|
2295
|
+
* @memberof OrderEvent
|
2296
|
+
*/
|
2297
|
+
'status': string;
|
2298
|
+
/**
|
2299
|
+
*
|
2300
|
+
* @type {number}
|
2301
|
+
* @memberof OrderEvent
|
2302
|
+
*/
|
2303
|
+
'httpResponse'?: number;
|
2304
|
+
/**
|
2305
|
+
*
|
2306
|
+
* @type {string}
|
2307
|
+
* @memberof OrderEvent
|
2308
|
+
*/
|
2309
|
+
'lastRun'?: string;
|
2310
|
+
/**
|
2311
|
+
*
|
2312
|
+
* @type {string}
|
2313
|
+
* @memberof OrderEvent
|
2314
|
+
*/
|
2315
|
+
'body'?: string;
|
2316
|
+
}
|
2317
|
+
/**
|
2318
|
+
*
|
2319
|
+
* @export
|
2320
|
+
* @interface OrderEventListResponse
|
2321
|
+
*/
|
2322
|
+
export interface OrderEventListResponse {
|
2323
|
+
/**
|
2324
|
+
*
|
2325
|
+
* @type {Array<OrderEvent>}
|
2326
|
+
* @memberof OrderEventListResponse
|
2327
|
+
*/
|
2328
|
+
'events': Array<OrderEvent>;
|
2329
|
+
/**
|
2330
|
+
* This is the pagination token
|
2331
|
+
* @type {string}
|
2332
|
+
* @memberof OrderEventListResponse
|
2333
|
+
*/
|
2334
|
+
'nextToken'?: string;
|
1957
2335
|
}
|
1958
2336
|
/**
|
1959
2337
|
*
|
@@ -3082,6 +3460,55 @@ export interface PromotionConfig {
|
|
3082
3460
|
*/
|
3083
3461
|
'allowRunningPromotionsUpdate': boolean;
|
3084
3462
|
}
|
3463
|
+
/**
|
3464
|
+
*
|
3465
|
+
* @export
|
3466
|
+
* @interface PromotionConfigRequest
|
3467
|
+
*/
|
3468
|
+
export interface PromotionConfigRequest {
|
3469
|
+
/**
|
3470
|
+
*
|
3471
|
+
* @type {number}
|
3472
|
+
* @memberof PromotionConfigRequest
|
3473
|
+
*/
|
3474
|
+
'adminClaimGracePeriod'?: number;
|
3475
|
+
/**
|
3476
|
+
*
|
3477
|
+
* @type {number}
|
3478
|
+
* @memberof PromotionConfigRequest
|
3479
|
+
*/
|
3480
|
+
'userClaimGracePeriod'?: number;
|
3481
|
+
/**
|
3482
|
+
*
|
3483
|
+
* @type {number}
|
3484
|
+
* @memberof PromotionConfigRequest
|
3485
|
+
*/
|
3486
|
+
'refundLapsePeriod'?: number;
|
3487
|
+
/**
|
3488
|
+
*
|
3489
|
+
* @type {number}
|
3490
|
+
* @memberof PromotionConfigRequest
|
3491
|
+
*/
|
3492
|
+
'customDealMinDuration'?: number;
|
3493
|
+
/**
|
3494
|
+
*
|
3495
|
+
* @type {number}
|
3496
|
+
* @memberof PromotionConfigRequest
|
3497
|
+
*/
|
3498
|
+
'customDealMinTargetValue'?: number;
|
3499
|
+
/**
|
3500
|
+
*
|
3501
|
+
* @type {number}
|
3502
|
+
* @memberof PromotionConfigRequest
|
3503
|
+
*/
|
3504
|
+
'customDealRefundWindow'?: number;
|
3505
|
+
/**
|
3506
|
+
*
|
3507
|
+
* @type {boolean}
|
3508
|
+
* @memberof PromotionConfigRequest
|
3509
|
+
*/
|
3510
|
+
'allowRunningPromotionsUpdate'?: boolean;
|
3511
|
+
}
|
3085
3512
|
/**
|
3086
3513
|
*
|
3087
3514
|
* @export
|
@@ -3446,6 +3873,25 @@ export const ReportTypesResponseTypesEnum = {
|
|
3446
3873
|
|
3447
3874
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
3448
3875
|
|
3876
|
+
/**
|
3877
|
+
*
|
3878
|
+
* @export
|
3879
|
+
* @interface ReportUrlResponse
|
3880
|
+
*/
|
3881
|
+
export interface ReportUrlResponse {
|
3882
|
+
/**
|
3883
|
+
*
|
3884
|
+
* @type {string}
|
3885
|
+
* @memberof ReportUrlResponse
|
3886
|
+
*/
|
3887
|
+
'datalakeUrl': string;
|
3888
|
+
/**
|
3889
|
+
*
|
3890
|
+
* @type {string}
|
3891
|
+
* @memberof ReportUrlResponse
|
3892
|
+
*/
|
3893
|
+
'token': string;
|
3894
|
+
}
|
3449
3895
|
/**
|
3450
3896
|
* @type Rule
|
3451
3897
|
* @export
|
@@ -4377,46 +4823,316 @@ export interface TenantConfing {
|
|
4377
4823
|
'customDealAutoClaim': boolean;
|
4378
4824
|
/**
|
4379
4825
|
*
|
4380
|
-
* @type {LedgerConfig}
|
4381
|
-
* @memberof TenantConfing
|
4826
|
+
* @type {LedgerConfig}
|
4827
|
+
* @memberof TenantConfing
|
4828
|
+
*/
|
4829
|
+
'ledger': LedgerConfig;
|
4830
|
+
/**
|
4831
|
+
*
|
4832
|
+
* @type {PromotionConfig}
|
4833
|
+
* @memberof TenantConfing
|
4834
|
+
*/
|
4835
|
+
'promotion': PromotionConfig;
|
4836
|
+
/**
|
4837
|
+
*
|
4838
|
+
* @type {FeatureFlags}
|
4839
|
+
* @memberof TenantConfing
|
4840
|
+
*/
|
4841
|
+
'featureFlags': FeatureFlags;
|
4842
|
+
/**
|
4843
|
+
*
|
4844
|
+
* @type {NotificationConfig}
|
4845
|
+
* @memberof TenantConfing
|
4846
|
+
*/
|
4847
|
+
'notifications': NotificationConfig;
|
4848
|
+
/**
|
4849
|
+
*
|
4850
|
+
* @type {IntegrationsConfig}
|
4851
|
+
* @memberof TenantConfing
|
4852
|
+
*/
|
4853
|
+
'integrations': IntegrationsConfig;
|
4854
|
+
/**
|
4855
|
+
*
|
4856
|
+
* @type {BrandingConfig}
|
4857
|
+
* @memberof TenantConfing
|
4858
|
+
*/
|
4859
|
+
'branding': BrandingConfig;
|
4860
|
+
/**
|
4861
|
+
*
|
4862
|
+
* @type {AuthorizationConfig}
|
4863
|
+
* @memberof TenantConfing
|
4864
|
+
*/
|
4865
|
+
'auth': AuthorizationConfig;
|
4866
|
+
}
|
4867
|
+
|
4868
|
+
|
4869
|
+
/**
|
4870
|
+
*
|
4871
|
+
* @export
|
4872
|
+
* @interface TenantConfingRequest
|
4873
|
+
*/
|
4874
|
+
export interface TenantConfingRequest {
|
4875
|
+
/**
|
4876
|
+
*
|
4877
|
+
* @type {string}
|
4878
|
+
* @memberof TenantConfingRequest
|
4879
|
+
*/
|
4880
|
+
'id': string;
|
4881
|
+
/**
|
4882
|
+
*
|
4883
|
+
* @type {string}
|
4884
|
+
* @memberof TenantConfingRequest
|
4885
|
+
*/
|
4886
|
+
'name'?: string;
|
4887
|
+
/**
|
4888
|
+
*
|
4889
|
+
* @type {string}
|
4890
|
+
* @memberof TenantConfingRequest
|
4891
|
+
*/
|
4892
|
+
'adminKeyConfig'?: string;
|
4893
|
+
/**
|
4894
|
+
*
|
4895
|
+
* @type {string}
|
4896
|
+
* @memberof TenantConfingRequest
|
4897
|
+
*/
|
4898
|
+
'adminIssuer'?: string;
|
4899
|
+
/**
|
4900
|
+
*
|
4901
|
+
* @type {string}
|
4902
|
+
* @memberof TenantConfingRequest
|
4903
|
+
*/
|
4904
|
+
'customerOpenIDKeyConfig'?: string;
|
4905
|
+
/**
|
4906
|
+
*
|
4907
|
+
* @type {string}
|
4908
|
+
* @memberof TenantConfingRequest
|
4909
|
+
*/
|
4910
|
+
'customerOpenIDIssuer'?: string;
|
4911
|
+
/**
|
4912
|
+
*
|
4913
|
+
* @type {string}
|
4914
|
+
* @memberof TenantConfingRequest
|
4915
|
+
*/
|
4916
|
+
'customerOpenIDClientID'?: string;
|
4917
|
+
/**
|
4918
|
+
*
|
4919
|
+
* @type {string}
|
4920
|
+
* @memberof TenantConfingRequest
|
4921
|
+
*/
|
4922
|
+
'customerOpenIDMetadataURL'?: string;
|
4923
|
+
/**
|
4924
|
+
*
|
4925
|
+
* @type {{ [key: string]: string; }}
|
4926
|
+
* @memberof TenantConfingRequest
|
4927
|
+
*/
|
4928
|
+
'customerOpenIDParameters'?: { [key: string]: string; };
|
4929
|
+
/**
|
4930
|
+
*
|
4931
|
+
* @type {string}
|
4932
|
+
* @memberof TenantConfingRequest
|
4933
|
+
*/
|
4934
|
+
'ppURL'?: string;
|
4935
|
+
/**
|
4936
|
+
*
|
4937
|
+
* @type {string}
|
4938
|
+
* @memberof TenantConfingRequest
|
4939
|
+
*/
|
4940
|
+
'tcURL'?: string;
|
4941
|
+
/**
|
4942
|
+
*
|
4943
|
+
* @type {string}
|
4944
|
+
* @memberof TenantConfingRequest
|
4945
|
+
*/
|
4946
|
+
'cookiesURL'?: string;
|
4947
|
+
/**
|
4948
|
+
*
|
4949
|
+
* @type {string}
|
4950
|
+
* @memberof TenantConfingRequest
|
4951
|
+
*/
|
4952
|
+
'azureEntraTenantID'?: string;
|
4953
|
+
/**
|
4954
|
+
*
|
4955
|
+
* @type {string}
|
4956
|
+
* @memberof TenantConfingRequest
|
4957
|
+
*/
|
4958
|
+
'azureEntraClientID'?: string;
|
4959
|
+
/**
|
4960
|
+
*
|
4961
|
+
* @type {Locale}
|
4962
|
+
* @memberof TenantConfingRequest
|
4963
|
+
*/
|
4964
|
+
'locale'?: Locale;
|
4965
|
+
/**
|
4966
|
+
*
|
4967
|
+
* @type {string}
|
4968
|
+
* @memberof TenantConfingRequest
|
4969
|
+
*/
|
4970
|
+
'announcement'?: string;
|
4971
|
+
/**
|
4972
|
+
*
|
4973
|
+
* @type {Currency}
|
4974
|
+
* @memberof TenantConfingRequest
|
4975
|
+
*/
|
4976
|
+
'currency'?: Currency;
|
4977
|
+
/**
|
4978
|
+
*
|
4979
|
+
* @type {boolean}
|
4980
|
+
* @memberof TenantConfingRequest
|
4981
|
+
*/
|
4982
|
+
'customDealAutoClaim'?: boolean;
|
4983
|
+
/**
|
4984
|
+
*
|
4985
|
+
* @type {LedgerConfigRequest}
|
4986
|
+
* @memberof TenantConfingRequest
|
4987
|
+
*/
|
4988
|
+
'ledger'?: LedgerConfigRequest;
|
4989
|
+
/**
|
4990
|
+
*
|
4991
|
+
* @type {PromotionConfigRequest}
|
4992
|
+
* @memberof TenantConfingRequest
|
4993
|
+
*/
|
4994
|
+
'promotion'?: PromotionConfigRequest;
|
4995
|
+
/**
|
4996
|
+
*
|
4997
|
+
* @type {FeatureFlagsRequest}
|
4998
|
+
* @memberof TenantConfingRequest
|
4999
|
+
*/
|
5000
|
+
'featureFlags'?: FeatureFlagsRequest;
|
5001
|
+
/**
|
5002
|
+
*
|
5003
|
+
* @type {NotificationConfigRequest}
|
5004
|
+
* @memberof TenantConfingRequest
|
5005
|
+
*/
|
5006
|
+
'notifications'?: NotificationConfigRequest;
|
5007
|
+
/**
|
5008
|
+
*
|
5009
|
+
* @type {IntegrationsConfigRequest}
|
5010
|
+
* @memberof TenantConfingRequest
|
5011
|
+
*/
|
5012
|
+
'integrations'?: IntegrationsConfigRequest;
|
5013
|
+
/**
|
5014
|
+
*
|
5015
|
+
* @type {BrandingConfigRequest}
|
5016
|
+
* @memberof TenantConfingRequest
|
5017
|
+
*/
|
5018
|
+
'branding'?: BrandingConfigRequest;
|
5019
|
+
/**
|
5020
|
+
*
|
5021
|
+
* @type {AuthorizationConfigRequest}
|
5022
|
+
* @memberof TenantConfingRequest
|
5023
|
+
*/
|
5024
|
+
'auth'?: AuthorizationConfigRequest;
|
5025
|
+
}
|
5026
|
+
|
5027
|
+
|
5028
|
+
/**
|
5029
|
+
*
|
5030
|
+
* @export
|
5031
|
+
* @interface TenantRequest
|
5032
|
+
*/
|
5033
|
+
export interface TenantRequest {
|
5034
|
+
/**
|
5035
|
+
*
|
5036
|
+
* @type {string}
|
5037
|
+
* @memberof TenantRequest
|
5038
|
+
*/
|
5039
|
+
'id': string;
|
5040
|
+
/**
|
5041
|
+
*
|
5042
|
+
* @type {string}
|
5043
|
+
* @memberof TenantRequest
|
5044
|
+
*/
|
5045
|
+
'name'?: string;
|
5046
|
+
/**
|
5047
|
+
*
|
5048
|
+
* @type {string}
|
5049
|
+
* @memberof TenantRequest
|
5050
|
+
*/
|
5051
|
+
'adminKeyConfig'?: string;
|
5052
|
+
/**
|
5053
|
+
*
|
5054
|
+
* @type {string}
|
5055
|
+
* @memberof TenantRequest
|
5056
|
+
*/
|
5057
|
+
'adminIssuer'?: string;
|
5058
|
+
/**
|
5059
|
+
*
|
5060
|
+
* @type {string}
|
5061
|
+
* @memberof TenantRequest
|
5062
|
+
*/
|
5063
|
+
'customerOpenIDKeyConfig'?: string;
|
5064
|
+
/**
|
5065
|
+
*
|
5066
|
+
* @type {string}
|
5067
|
+
* @memberof TenantRequest
|
5068
|
+
*/
|
5069
|
+
'customerOpenIDIssuer'?: string;
|
5070
|
+
/**
|
5071
|
+
*
|
5072
|
+
* @type {string}
|
5073
|
+
* @memberof TenantRequest
|
5074
|
+
*/
|
5075
|
+
'customerOpenIDClientID'?: string;
|
5076
|
+
/**
|
5077
|
+
*
|
5078
|
+
* @type {string}
|
5079
|
+
* @memberof TenantRequest
|
5080
|
+
*/
|
5081
|
+
'customerOpenIDMetadataURL'?: string;
|
5082
|
+
/**
|
5083
|
+
*
|
5084
|
+
* @type {{ [key: string]: string; }}
|
5085
|
+
* @memberof TenantRequest
|
5086
|
+
*/
|
5087
|
+
'customerOpenIDParameters'?: { [key: string]: string; };
|
5088
|
+
/**
|
5089
|
+
*
|
5090
|
+
* @type {string}
|
5091
|
+
* @memberof TenantRequest
|
5092
|
+
*/
|
5093
|
+
'ppURL'?: string;
|
5094
|
+
/**
|
5095
|
+
*
|
5096
|
+
* @type {string}
|
5097
|
+
* @memberof TenantRequest
|
4382
5098
|
*/
|
4383
|
-
'
|
5099
|
+
'tcURL'?: string;
|
4384
5100
|
/**
|
4385
5101
|
*
|
4386
|
-
* @type {
|
4387
|
-
* @memberof
|
5102
|
+
* @type {string}
|
5103
|
+
* @memberof TenantRequest
|
4388
5104
|
*/
|
4389
|
-
'
|
5105
|
+
'cookiesURL'?: string;
|
4390
5106
|
/**
|
4391
5107
|
*
|
4392
|
-
* @type {
|
4393
|
-
* @memberof
|
5108
|
+
* @type {string}
|
5109
|
+
* @memberof TenantRequest
|
4394
5110
|
*/
|
4395
|
-
'
|
5111
|
+
'azureEntraTenantID'?: string;
|
4396
5112
|
/**
|
4397
5113
|
*
|
4398
|
-
* @type {
|
4399
|
-
* @memberof
|
5114
|
+
* @type {string}
|
5115
|
+
* @memberof TenantRequest
|
4400
5116
|
*/
|
4401
|
-
'
|
5117
|
+
'azureEntraClientID'?: string;
|
4402
5118
|
/**
|
4403
5119
|
*
|
4404
|
-
* @type {
|
4405
|
-
* @memberof
|
5120
|
+
* @type {Locale}
|
5121
|
+
* @memberof TenantRequest
|
4406
5122
|
*/
|
4407
|
-
'
|
5123
|
+
'locale'?: Locale;
|
4408
5124
|
/**
|
4409
5125
|
*
|
4410
|
-
* @type {
|
4411
|
-
* @memberof
|
5126
|
+
* @type {string}
|
5127
|
+
* @memberof TenantRequest
|
4412
5128
|
*/
|
4413
|
-
'
|
5129
|
+
'announcement'?: string;
|
4414
5130
|
/**
|
4415
5131
|
*
|
4416
|
-
* @type {
|
4417
|
-
* @memberof
|
5132
|
+
* @type {Currency}
|
5133
|
+
* @memberof TenantRequest
|
4418
5134
|
*/
|
4419
|
-
'
|
5135
|
+
'currency'?: Currency;
|
4420
5136
|
}
|
4421
5137
|
|
4422
5138
|
|
@@ -6860,13 +7576,13 @@ export const ConfigurationsApiAxiosParamCreator = function (configuration?: Conf
|
|
6860
7576
|
/**
|
6861
7577
|
* Create or update backoffice configuration for the current tenant
|
6862
7578
|
* @summary Create configuration
|
6863
|
-
* @param {
|
7579
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
6864
7580
|
* @param {*} [options] Override http request option.
|
6865
7581
|
* @throws {RequiredError}
|
6866
7582
|
*/
|
6867
|
-
createV2Configuration: async (
|
6868
|
-
// verify required parameter '
|
6869
|
-
assertParamExists('createV2Configuration', '
|
7583
|
+
createV2Configuration: async (tenantConfingRequest: TenantConfingRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7584
|
+
// verify required parameter 'tenantConfingRequest' is not null or undefined
|
7585
|
+
assertParamExists('createV2Configuration', 'tenantConfingRequest', tenantConfingRequest)
|
6870
7586
|
const localVarPath = `/v2/admins/configurations`;
|
6871
7587
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6872
7588
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6890,7 +7606,7 @@ export const ConfigurationsApiAxiosParamCreator = function (configuration?: Conf
|
|
6890
7606
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6891
7607
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6892
7608
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6893
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
7609
|
+
localVarRequestOptions.data = serializeDataIfNeeded(tenantConfingRequest, localVarRequestOptions, configuration)
|
6894
7610
|
|
6895
7611
|
return {
|
6896
7612
|
url: toPathString(localVarUrlObj),
|
@@ -7094,12 +7810,12 @@ export const ConfigurationsApiFp = function(configuration?: Configuration) {
|
|
7094
7810
|
/**
|
7095
7811
|
* Create or update backoffice configuration for the current tenant
|
7096
7812
|
* @summary Create configuration
|
7097
|
-
* @param {
|
7813
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
7098
7814
|
* @param {*} [options] Override http request option.
|
7099
7815
|
* @throws {RequiredError}
|
7100
7816
|
*/
|
7101
|
-
async createV2Configuration(
|
7102
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createV2Configuration(
|
7817
|
+
async createV2Configuration(tenantConfingRequest: TenantConfingRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
7818
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createV2Configuration(tenantConfingRequest, options);
|
7103
7819
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7104
7820
|
},
|
7105
7821
|
/**
|
@@ -7176,12 +7892,12 @@ export const ConfigurationsApiFactory = function (configuration?: Configuration,
|
|
7176
7892
|
/**
|
7177
7893
|
* Create or update backoffice configuration for the current tenant
|
7178
7894
|
* @summary Create configuration
|
7179
|
-
* @param {
|
7895
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
7180
7896
|
* @param {*} [options] Override http request option.
|
7181
7897
|
* @throws {RequiredError}
|
7182
7898
|
*/
|
7183
|
-
createV2Configuration(
|
7184
|
-
return localVarFp.createV2Configuration(
|
7899
|
+
createV2Configuration(tenantConfingRequest: TenantConfingRequest, options?: any): AxiosPromise<void> {
|
7900
|
+
return localVarFp.createV2Configuration(tenantConfingRequest, options).then((request) => request(axios, basePath));
|
7185
7901
|
},
|
7186
7902
|
/**
|
7187
7903
|
* List backoffice configurations for the current tenant
|
@@ -7254,13 +7970,13 @@ export class ConfigurationsApi extends BaseAPI {
|
|
7254
7970
|
/**
|
7255
7971
|
* Create or update backoffice configuration for the current tenant
|
7256
7972
|
* @summary Create configuration
|
7257
|
-
* @param {
|
7973
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
7258
7974
|
* @param {*} [options] Override http request option.
|
7259
7975
|
* @throws {RequiredError}
|
7260
7976
|
* @memberof ConfigurationsApi
|
7261
7977
|
*/
|
7262
|
-
public createV2Configuration(
|
7263
|
-
return ConfigurationsApiFp(this.configuration).createV2Configuration(
|
7978
|
+
public createV2Configuration(tenantConfingRequest: TenantConfingRequest, options?: AxiosRequestConfig) {
|
7979
|
+
return ConfigurationsApiFp(this.configuration).createV2Configuration(tenantConfingRequest, options).then((request) => request(this.axios, this.basePath));
|
7264
7980
|
}
|
7265
7981
|
|
7266
7982
|
/**
|
@@ -7722,6 +8438,52 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
7722
8438
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7723
8439
|
localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration)
|
7724
8440
|
|
8441
|
+
return {
|
8442
|
+
url: toPathString(localVarUrlObj),
|
8443
|
+
options: localVarRequestOptions,
|
8444
|
+
};
|
8445
|
+
},
|
8446
|
+
/**
|
8447
|
+
* Search events
|
8448
|
+
* @summary Search events
|
8449
|
+
* @param {string} reference Reference ID
|
8450
|
+
* @param {string} [nextToken] This is the pagination token
|
8451
|
+
* @param {*} [options] Override http request option.
|
8452
|
+
* @throws {RequiredError}
|
8453
|
+
*/
|
8454
|
+
searchEvents: async (reference: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
8455
|
+
// verify required parameter 'reference' is not null or undefined
|
8456
|
+
assertParamExists('searchEvents', 'reference', reference)
|
8457
|
+
const localVarPath = `/admins/events`;
|
8458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
8459
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
8460
|
+
let baseOptions;
|
8461
|
+
if (configuration) {
|
8462
|
+
baseOptions = configuration.baseOptions;
|
8463
|
+
}
|
8464
|
+
|
8465
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
8466
|
+
const localVarHeaderParameter = {} as any;
|
8467
|
+
const localVarQueryParameter = {} as any;
|
8468
|
+
|
8469
|
+
// authentication systemJWT required
|
8470
|
+
// http bearer authentication required
|
8471
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
8472
|
+
|
8473
|
+
if (nextToken !== undefined) {
|
8474
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
8475
|
+
}
|
8476
|
+
|
8477
|
+
if (reference !== undefined) {
|
8478
|
+
localVarQueryParameter['reference'] = reference;
|
8479
|
+
}
|
8480
|
+
|
8481
|
+
|
8482
|
+
|
8483
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
8484
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
8485
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
8486
|
+
|
7725
8487
|
return {
|
7726
8488
|
url: toPathString(localVarUrlObj),
|
7727
8489
|
options: localVarRequestOptions,
|
@@ -7748,6 +8510,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
7748
8510
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importEvents(eventCreationRequest, options);
|
7749
8511
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7750
8512
|
},
|
8513
|
+
/**
|
8514
|
+
* Search events
|
8515
|
+
* @summary Search events
|
8516
|
+
* @param {string} reference Reference ID
|
8517
|
+
* @param {string} [nextToken] This is the pagination token
|
8518
|
+
* @param {*} [options] Override http request option.
|
8519
|
+
* @throws {RequiredError}
|
8520
|
+
*/
|
8521
|
+
async searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsResponse>> {
|
8522
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchEvents(reference, nextToken, options);
|
8523
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
8524
|
+
},
|
7751
8525
|
}
|
7752
8526
|
};
|
7753
8527
|
|
@@ -7768,6 +8542,17 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
7768
8542
|
importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void> {
|
7769
8543
|
return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
|
7770
8544
|
},
|
8545
|
+
/**
|
8546
|
+
* Search events
|
8547
|
+
* @summary Search events
|
8548
|
+
* @param {string} reference Reference ID
|
8549
|
+
* @param {string} [nextToken] This is the pagination token
|
8550
|
+
* @param {*} [options] Override http request option.
|
8551
|
+
* @throws {RequiredError}
|
8552
|
+
*/
|
8553
|
+
searchEvents(reference: string, nextToken?: string, options?: any): AxiosPromise<EventsResponse> {
|
8554
|
+
return localVarFp.searchEvents(reference, nextToken, options).then((request) => request(axios, basePath));
|
8555
|
+
},
|
7771
8556
|
};
|
7772
8557
|
};
|
7773
8558
|
|
@@ -7789,6 +8574,19 @@ export class EventsApi extends BaseAPI {
|
|
7789
8574
|
public importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) {
|
7790
8575
|
return EventsApiFp(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
7791
8576
|
}
|
8577
|
+
|
8578
|
+
/**
|
8579
|
+
* Search events
|
8580
|
+
* @summary Search events
|
8581
|
+
* @param {string} reference Reference ID
|
8582
|
+
* @param {string} [nextToken] This is the pagination token
|
8583
|
+
* @param {*} [options] Override http request option.
|
8584
|
+
* @throws {RequiredError}
|
8585
|
+
* @memberof EventsApi
|
8586
|
+
*/
|
8587
|
+
public searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig) {
|
8588
|
+
return EventsApiFp(this.configuration).searchEvents(reference, nextToken, options).then((request) => request(this.axios, this.basePath));
|
8589
|
+
}
|
7792
8590
|
}
|
7793
8591
|
|
7794
8592
|
|
@@ -8016,201 +8814,25 @@ export class IntegrationsApi extends BaseAPI {
|
|
8016
8814
|
|
8017
8815
|
/**
|
8018
8816
|
* List all webhooks for the current tenant
|
8019
|
-
* @summary List webhooks
|
8020
|
-
* @param {*} [options] Override http request option.
|
8021
|
-
* @throws {RequiredError}
|
8022
|
-
* @memberof IntegrationsApi
|
8023
|
-
*/
|
8024
|
-
public listWebhooks(options?: AxiosRequestConfig) {
|
8025
|
-
return IntegrationsApiFp(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
|
8026
|
-
}
|
8027
|
-
|
8028
|
-
/**
|
8029
|
-
* Set up webhook url for a given webhook kind
|
8030
|
-
* @summary Update webhook
|
8031
|
-
* @param {Webhook} webhook Webhook data
|
8032
|
-
* @param {*} [options] Override http request option.
|
8033
|
-
* @throws {RequiredError}
|
8034
|
-
* @memberof IntegrationsApi
|
8035
|
-
*/
|
8036
|
-
public setWebhook(webhook: Webhook, options?: AxiosRequestConfig) {
|
8037
|
-
return IntegrationsApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
8038
|
-
}
|
8039
|
-
}
|
8040
|
-
|
8041
|
-
|
8042
|
-
|
8043
|
-
/**
|
8044
|
-
* NotificationApi - axios parameter creator
|
8045
|
-
* @export
|
8046
|
-
*/
|
8047
|
-
export const NotificationApiAxiosParamCreator = function (configuration?: Configuration) {
|
8048
|
-
return {
|
8049
|
-
/**
|
8050
|
-
* Get preferences for the authenticated user
|
8051
|
-
* @summary Get preferences
|
8052
|
-
* @param {*} [options] Override http request option.
|
8053
|
-
* @throws {RequiredError}
|
8054
|
-
*/
|
8055
|
-
getSystemPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
8056
|
-
const localVarPath = `/admins/preferences/system`;
|
8057
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
8058
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
8059
|
-
let baseOptions;
|
8060
|
-
if (configuration) {
|
8061
|
-
baseOptions = configuration.baseOptions;
|
8062
|
-
}
|
8063
|
-
|
8064
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
8065
|
-
const localVarHeaderParameter = {} as any;
|
8066
|
-
const localVarQueryParameter = {} as any;
|
8067
|
-
|
8068
|
-
// authentication systemJWT required
|
8069
|
-
// http bearer authentication required
|
8070
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
8071
|
-
|
8072
|
-
|
8073
|
-
|
8074
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
8075
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
8076
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
8077
|
-
|
8078
|
-
return {
|
8079
|
-
url: toPathString(localVarUrlObj),
|
8080
|
-
options: localVarRequestOptions,
|
8081
|
-
};
|
8082
|
-
},
|
8083
|
-
/**
|
8084
|
-
* Update preferences for the authenticated user
|
8085
|
-
* @summary Update preferences
|
8086
|
-
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
8087
|
-
* @param {*} [options] Override http request option.
|
8088
|
-
* @throws {RequiredError}
|
8089
|
-
*/
|
8090
|
-
updateSystemPreferences: async (notificationPreference: Array<NotificationPreference>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
8091
|
-
// verify required parameter 'notificationPreference' is not null or undefined
|
8092
|
-
assertParamExists('updateSystemPreferences', 'notificationPreference', notificationPreference)
|
8093
|
-
const localVarPath = `/admins/preferences/system`;
|
8094
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
8095
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
8096
|
-
let baseOptions;
|
8097
|
-
if (configuration) {
|
8098
|
-
baseOptions = configuration.baseOptions;
|
8099
|
-
}
|
8100
|
-
|
8101
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
8102
|
-
const localVarHeaderParameter = {} as any;
|
8103
|
-
const localVarQueryParameter = {} as any;
|
8104
|
-
|
8105
|
-
// authentication systemJWT required
|
8106
|
-
// http bearer authentication required
|
8107
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
8108
|
-
|
8109
|
-
|
8110
|
-
|
8111
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
8112
|
-
|
8113
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
8114
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
8115
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
8116
|
-
localVarRequestOptions.data = serializeDataIfNeeded(notificationPreference, localVarRequestOptions, configuration)
|
8117
|
-
|
8118
|
-
return {
|
8119
|
-
url: toPathString(localVarUrlObj),
|
8120
|
-
options: localVarRequestOptions,
|
8121
|
-
};
|
8122
|
-
},
|
8123
|
-
}
|
8124
|
-
};
|
8125
|
-
|
8126
|
-
/**
|
8127
|
-
* NotificationApi - functional programming interface
|
8128
|
-
* @export
|
8129
|
-
*/
|
8130
|
-
export const NotificationApiFp = function(configuration?: Configuration) {
|
8131
|
-
const localVarAxiosParamCreator = NotificationApiAxiosParamCreator(configuration)
|
8132
|
-
return {
|
8133
|
-
/**
|
8134
|
-
* Get preferences for the authenticated user
|
8135
|
-
* @summary Get preferences
|
8136
|
-
* @param {*} [options] Override http request option.
|
8137
|
-
* @throws {RequiredError}
|
8138
|
-
*/
|
8139
|
-
async getSystemPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<NotificationPreference>>> {
|
8140
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSystemPreferences(options);
|
8141
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
8142
|
-
},
|
8143
|
-
/**
|
8144
|
-
* Update preferences for the authenticated user
|
8145
|
-
* @summary Update preferences
|
8146
|
-
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
8147
|
-
* @param {*} [options] Override http request option.
|
8148
|
-
* @throws {RequiredError}
|
8149
|
-
*/
|
8150
|
-
async updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
8151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSystemPreferences(notificationPreference, options);
|
8152
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
8153
|
-
},
|
8154
|
-
}
|
8155
|
-
};
|
8156
|
-
|
8157
|
-
/**
|
8158
|
-
* NotificationApi - factory interface
|
8159
|
-
* @export
|
8160
|
-
*/
|
8161
|
-
export const NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
8162
|
-
const localVarFp = NotificationApiFp(configuration)
|
8163
|
-
return {
|
8164
|
-
/**
|
8165
|
-
* Get preferences for the authenticated user
|
8166
|
-
* @summary Get preferences
|
8167
|
-
* @param {*} [options] Override http request option.
|
8168
|
-
* @throws {RequiredError}
|
8169
|
-
*/
|
8170
|
-
getSystemPreferences(options?: any): AxiosPromise<Array<NotificationPreference>> {
|
8171
|
-
return localVarFp.getSystemPreferences(options).then((request) => request(axios, basePath));
|
8172
|
-
},
|
8173
|
-
/**
|
8174
|
-
* Update preferences for the authenticated user
|
8175
|
-
* @summary Update preferences
|
8176
|
-
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
8177
|
-
* @param {*} [options] Override http request option.
|
8178
|
-
* @throws {RequiredError}
|
8179
|
-
*/
|
8180
|
-
updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: any): AxiosPromise<void> {
|
8181
|
-
return localVarFp.updateSystemPreferences(notificationPreference, options).then((request) => request(axios, basePath));
|
8182
|
-
},
|
8183
|
-
};
|
8184
|
-
};
|
8185
|
-
|
8186
|
-
/**
|
8187
|
-
* NotificationApi - object-oriented interface
|
8188
|
-
* @export
|
8189
|
-
* @class NotificationApi
|
8190
|
-
* @extends {BaseAPI}
|
8191
|
-
*/
|
8192
|
-
export class NotificationApi extends BaseAPI {
|
8193
|
-
/**
|
8194
|
-
* Get preferences for the authenticated user
|
8195
|
-
* @summary Get preferences
|
8817
|
+
* @summary List webhooks
|
8196
8818
|
* @param {*} [options] Override http request option.
|
8197
8819
|
* @throws {RequiredError}
|
8198
|
-
* @memberof
|
8820
|
+
* @memberof IntegrationsApi
|
8199
8821
|
*/
|
8200
|
-
public
|
8201
|
-
return
|
8822
|
+
public listWebhooks(options?: AxiosRequestConfig) {
|
8823
|
+
return IntegrationsApiFp(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
|
8202
8824
|
}
|
8203
8825
|
|
8204
8826
|
/**
|
8205
|
-
*
|
8206
|
-
* @summary Update
|
8207
|
-
* @param {
|
8827
|
+
* Set up webhook url for a given webhook kind
|
8828
|
+
* @summary Update webhook
|
8829
|
+
* @param {Webhook} webhook Webhook data
|
8208
8830
|
* @param {*} [options] Override http request option.
|
8209
8831
|
* @throws {RequiredError}
|
8210
|
-
* @memberof
|
8832
|
+
* @memberof IntegrationsApi
|
8211
8833
|
*/
|
8212
|
-
public
|
8213
|
-
return
|
8834
|
+
public setWebhook(webhook: Webhook, options?: AxiosRequestConfig) {
|
8835
|
+
return IntegrationsApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
8214
8836
|
}
|
8215
8837
|
}
|
8216
8838
|
|
@@ -8325,6 +8947,40 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
|
|
8325
8947
|
|
8326
8948
|
|
8327
8949
|
|
8950
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
8951
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
8952
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
8953
|
+
|
8954
|
+
return {
|
8955
|
+
url: toPathString(localVarUrlObj),
|
8956
|
+
options: localVarRequestOptions,
|
8957
|
+
};
|
8958
|
+
},
|
8959
|
+
/**
|
8960
|
+
* Get preferences for the authenticated user
|
8961
|
+
* @summary Get preferences
|
8962
|
+
* @param {*} [options] Override http request option.
|
8963
|
+
* @throws {RequiredError}
|
8964
|
+
*/
|
8965
|
+
getSystemPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
8966
|
+
const localVarPath = `/admins/preferences/system`;
|
8967
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
8968
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
8969
|
+
let baseOptions;
|
8970
|
+
if (configuration) {
|
8971
|
+
baseOptions = configuration.baseOptions;
|
8972
|
+
}
|
8973
|
+
|
8974
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
8975
|
+
const localVarHeaderParameter = {} as any;
|
8976
|
+
const localVarQueryParameter = {} as any;
|
8977
|
+
|
8978
|
+
// authentication systemJWT required
|
8979
|
+
// http bearer authentication required
|
8980
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
8981
|
+
|
8982
|
+
|
8983
|
+
|
8328
8984
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
8329
8985
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
8330
8986
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
@@ -8490,6 +9146,46 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
|
|
8490
9146
|
options: localVarRequestOptions,
|
8491
9147
|
};
|
8492
9148
|
},
|
9149
|
+
/**
|
9150
|
+
* Update preferences for the authenticated user
|
9151
|
+
* @summary Update preferences
|
9152
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
9153
|
+
* @param {*} [options] Override http request option.
|
9154
|
+
* @throws {RequiredError}
|
9155
|
+
*/
|
9156
|
+
updateSystemPreferences: async (notificationPreference: Array<NotificationPreference>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9157
|
+
// verify required parameter 'notificationPreference' is not null or undefined
|
9158
|
+
assertParamExists('updateSystemPreferences', 'notificationPreference', notificationPreference)
|
9159
|
+
const localVarPath = `/admins/preferences/system`;
|
9160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
9161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
9162
|
+
let baseOptions;
|
9163
|
+
if (configuration) {
|
9164
|
+
baseOptions = configuration.baseOptions;
|
9165
|
+
}
|
9166
|
+
|
9167
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
9168
|
+
const localVarHeaderParameter = {} as any;
|
9169
|
+
const localVarQueryParameter = {} as any;
|
9170
|
+
|
9171
|
+
// authentication systemJWT required
|
9172
|
+
// http bearer authentication required
|
9173
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
9174
|
+
|
9175
|
+
|
9176
|
+
|
9177
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
9178
|
+
|
9179
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
9180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
9181
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
9182
|
+
localVarRequestOptions.data = serializeDataIfNeeded(notificationPreference, localVarRequestOptions, configuration)
|
9183
|
+
|
9184
|
+
return {
|
9185
|
+
url: toPathString(localVarUrlObj),
|
9186
|
+
options: localVarRequestOptions,
|
9187
|
+
};
|
9188
|
+
},
|
8493
9189
|
/**
|
8494
9190
|
* Update notification preferences for the authenticated user
|
8495
9191
|
* @summary Update notification preferences
|
@@ -8572,6 +9268,16 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
|
|
8572
9268
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferences(options);
|
8573
9269
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
8574
9270
|
},
|
9271
|
+
/**
|
9272
|
+
* Get preferences for the authenticated user
|
9273
|
+
* @summary Get preferences
|
9274
|
+
* @param {*} [options] Override http request option.
|
9275
|
+
* @throws {RequiredError}
|
9276
|
+
*/
|
9277
|
+
async getSystemPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<NotificationPreference>>> {
|
9278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSystemPreferences(options);
|
9279
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9280
|
+
},
|
8575
9281
|
/**
|
8576
9282
|
* Get notification preferences for the authenticated user
|
8577
9283
|
* @summary Get notification preferences
|
@@ -8616,6 +9322,17 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
|
|
8616
9322
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
|
8617
9323
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
8618
9324
|
},
|
9325
|
+
/**
|
9326
|
+
* Update preferences for the authenticated user
|
9327
|
+
* @summary Update preferences
|
9328
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
9329
|
+
* @param {*} [options] Override http request option.
|
9330
|
+
* @throws {RequiredError}
|
9331
|
+
*/
|
9332
|
+
async updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
9333
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSystemPreferences(notificationPreference, options);
|
9334
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9335
|
+
},
|
8619
9336
|
/**
|
8620
9337
|
* Update notification preferences for the authenticated user
|
8621
9338
|
* @summary Update notification preferences
|
@@ -8666,6 +9383,15 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
|
|
8666
9383
|
getPreferences(options?: any): AxiosPromise<Preferences> {
|
8667
9384
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
8668
9385
|
},
|
9386
|
+
/**
|
9387
|
+
* Get preferences for the authenticated user
|
9388
|
+
* @summary Get preferences
|
9389
|
+
* @param {*} [options] Override http request option.
|
9390
|
+
* @throws {RequiredError}
|
9391
|
+
*/
|
9392
|
+
getSystemPreferences(options?: any): AxiosPromise<Array<NotificationPreference>> {
|
9393
|
+
return localVarFp.getSystemPreferences(options).then((request) => request(axios, basePath));
|
9394
|
+
},
|
8669
9395
|
/**
|
8670
9396
|
* Get notification preferences for the authenticated user
|
8671
9397
|
* @summary Get notification preferences
|
@@ -8706,6 +9432,16 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
|
|
8706
9432
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void> {
|
8707
9433
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
8708
9434
|
},
|
9435
|
+
/**
|
9436
|
+
* Update preferences for the authenticated user
|
9437
|
+
* @summary Update preferences
|
9438
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
9439
|
+
* @param {*} [options] Override http request option.
|
9440
|
+
* @throws {RequiredError}
|
9441
|
+
*/
|
9442
|
+
updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: any): AxiosPromise<void> {
|
9443
|
+
return localVarFp.updateSystemPreferences(notificationPreference, options).then((request) => request(axios, basePath));
|
9444
|
+
},
|
8709
9445
|
/**
|
8710
9446
|
* Update notification preferences for the authenticated user
|
8711
9447
|
* @summary Update notification preferences
|
@@ -8761,6 +9497,17 @@ export class NotificationsApi extends BaseAPI {
|
|
8761
9497
|
return NotificationsApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
8762
9498
|
}
|
8763
9499
|
|
9500
|
+
/**
|
9501
|
+
* Get preferences for the authenticated user
|
9502
|
+
* @summary Get preferences
|
9503
|
+
* @param {*} [options] Override http request option.
|
9504
|
+
* @throws {RequiredError}
|
9505
|
+
* @memberof NotificationsApi
|
9506
|
+
*/
|
9507
|
+
public getSystemPreferences(options?: AxiosRequestConfig) {
|
9508
|
+
return NotificationsApiFp(this.configuration).getSystemPreferences(options).then((request) => request(this.axios, this.basePath));
|
9509
|
+
}
|
9510
|
+
|
8764
9511
|
/**
|
8765
9512
|
* Get notification preferences for the authenticated user
|
8766
9513
|
* @summary Get notification preferences
|
@@ -8809,6 +9556,18 @@ export class NotificationsApi extends BaseAPI {
|
|
8809
9556
|
return NotificationsApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
8810
9557
|
}
|
8811
9558
|
|
9559
|
+
/**
|
9560
|
+
* Update preferences for the authenticated user
|
9561
|
+
* @summary Update preferences
|
9562
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
9563
|
+
* @param {*} [options] Override http request option.
|
9564
|
+
* @throws {RequiredError}
|
9565
|
+
* @memberof NotificationsApi
|
9566
|
+
*/
|
9567
|
+
public updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: AxiosRequestConfig) {
|
9568
|
+
return NotificationsApiFp(this.configuration).updateSystemPreferences(notificationPreference, options).then((request) => request(this.axios, this.basePath));
|
9569
|
+
}
|
9570
|
+
|
8812
9571
|
/**
|
8813
9572
|
* Update notification preferences for the authenticated user
|
8814
9573
|
* @summary Update notification preferences
|
@@ -8973,6 +9732,50 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
8973
9732
|
|
8974
9733
|
|
8975
9734
|
|
9735
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
9736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
9737
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
9738
|
+
|
9739
|
+
return {
|
9740
|
+
url: toPathString(localVarUrlObj),
|
9741
|
+
options: localVarRequestOptions,
|
9742
|
+
};
|
9743
|
+
},
|
9744
|
+
/**
|
9745
|
+
* List order events
|
9746
|
+
* @summary List order events
|
9747
|
+
* @param {string} [orderId] Order ID
|
9748
|
+
* @param {string} [nextToken] This is the pagination token
|
9749
|
+
* @param {*} [options] Override http request option.
|
9750
|
+
* @throws {RequiredError}
|
9751
|
+
*/
|
9752
|
+
listOrderEvents: async (orderId?: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9753
|
+
const localVarPath = `/admins/order-events`;
|
9754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
9755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
9756
|
+
let baseOptions;
|
9757
|
+
if (configuration) {
|
9758
|
+
baseOptions = configuration.baseOptions;
|
9759
|
+
}
|
9760
|
+
|
9761
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
9762
|
+
const localVarHeaderParameter = {} as any;
|
9763
|
+
const localVarQueryParameter = {} as any;
|
9764
|
+
|
9765
|
+
// authentication systemJWT required
|
9766
|
+
// http bearer authentication required
|
9767
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
9768
|
+
|
9769
|
+
if (orderId !== undefined) {
|
9770
|
+
localVarQueryParameter['orderId'] = orderId;
|
9771
|
+
}
|
9772
|
+
|
9773
|
+
if (nextToken !== undefined) {
|
9774
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
9775
|
+
}
|
9776
|
+
|
9777
|
+
|
9778
|
+
|
8976
9779
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
8977
9780
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
8978
9781
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
@@ -9197,6 +10000,18 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
9197
10000
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserOrder(id, options);
|
9198
10001
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9199
10002
|
},
|
10003
|
+
/**
|
10004
|
+
* List order events
|
10005
|
+
* @summary List order events
|
10006
|
+
* @param {string} [orderId] Order ID
|
10007
|
+
* @param {string} [nextToken] This is the pagination token
|
10008
|
+
* @param {*} [options] Override http request option.
|
10009
|
+
* @throws {RequiredError}
|
10010
|
+
*/
|
10011
|
+
async listOrderEvents(orderId?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderEventListResponse>> {
|
10012
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrderEvents(orderId, nextToken, options);
|
10013
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
10014
|
+
},
|
9200
10015
|
/**
|
9201
10016
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
9202
10017
|
* @summary List orders
|
@@ -9284,6 +10099,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
9284
10099
|
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder> {
|
9285
10100
|
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
9286
10101
|
},
|
10102
|
+
/**
|
10103
|
+
* List order events
|
10104
|
+
* @summary List order events
|
10105
|
+
* @param {string} [orderId] Order ID
|
10106
|
+
* @param {string} [nextToken] This is the pagination token
|
10107
|
+
* @param {*} [options] Override http request option.
|
10108
|
+
* @throws {RequiredError}
|
10109
|
+
*/
|
10110
|
+
listOrderEvents(orderId?: string, nextToken?: string, options?: any): AxiosPromise<OrderEventListResponse> {
|
10111
|
+
return localVarFp.listOrderEvents(orderId, nextToken, options).then((request) => request(axios, basePath));
|
10112
|
+
},
|
9287
10113
|
/**
|
9288
10114
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
9289
10115
|
* @summary List orders
|
@@ -9377,6 +10203,19 @@ export class OrdersApi extends BaseAPI {
|
|
9377
10203
|
return OrdersApiFp(this.configuration).getUserOrder(id, options).then((request) => request(this.axios, this.basePath));
|
9378
10204
|
}
|
9379
10205
|
|
10206
|
+
/**
|
10207
|
+
* List order events
|
10208
|
+
* @summary List order events
|
10209
|
+
* @param {string} [orderId] Order ID
|
10210
|
+
* @param {string} [nextToken] This is the pagination token
|
10211
|
+
* @param {*} [options] Override http request option.
|
10212
|
+
* @throws {RequiredError}
|
10213
|
+
* @memberof OrdersApi
|
10214
|
+
*/
|
10215
|
+
public listOrderEvents(orderId?: string, nextToken?: string, options?: AxiosRequestConfig) {
|
10216
|
+
return OrdersApiFp(this.configuration).listOrderEvents(orderId, nextToken, options).then((request) => request(this.axios, this.basePath));
|
10217
|
+
}
|
10218
|
+
|
9380
10219
|
/**
|
9381
10220
|
* List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
|
9382
10221
|
* @summary List orders
|
@@ -11943,6 +12782,40 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
|
|
11943
12782
|
options: localVarRequestOptions,
|
11944
12783
|
};
|
11945
12784
|
},
|
12785
|
+
/**
|
12786
|
+
* Get signed access URL for report
|
12787
|
+
* @summary Get signed access URL for report
|
12788
|
+
* @param {*} [options] Override http request option.
|
12789
|
+
* @throws {RequiredError}
|
12790
|
+
*/
|
12791
|
+
getReportUrl: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
12792
|
+
const localVarPath = `/admin/reports/url`;
|
12793
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
12794
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
12795
|
+
let baseOptions;
|
12796
|
+
if (configuration) {
|
12797
|
+
baseOptions = configuration.baseOptions;
|
12798
|
+
}
|
12799
|
+
|
12800
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
12801
|
+
const localVarHeaderParameter = {} as any;
|
12802
|
+
const localVarQueryParameter = {} as any;
|
12803
|
+
|
12804
|
+
// authentication systemJWT required
|
12805
|
+
// http bearer authentication required
|
12806
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
12807
|
+
|
12808
|
+
|
12809
|
+
|
12810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
12811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
12812
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
12813
|
+
|
12814
|
+
return {
|
12815
|
+
url: toPathString(localVarUrlObj),
|
12816
|
+
options: localVarRequestOptions,
|
12817
|
+
};
|
12818
|
+
},
|
11946
12819
|
/**
|
11947
12820
|
* List all supported report types, which can be generated by the user
|
11948
12821
|
* @summary List report types
|
@@ -12037,6 +12910,16 @@ export const ReportsApiFp = function(configuration?: Configuration) {
|
|
12037
12910
|
const localVarAxiosArgs = await localVarAxiosParamCreator.generateReport(type, reportCreationRequest, options);
|
12038
12911
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
12039
12912
|
},
|
12913
|
+
/**
|
12914
|
+
* Get signed access URL for report
|
12915
|
+
* @summary Get signed access URL for report
|
12916
|
+
* @param {*} [options] Override http request option.
|
12917
|
+
* @throws {RequiredError}
|
12918
|
+
*/
|
12919
|
+
async getReportUrl(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportUrlResponse>> {
|
12920
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportUrl(options);
|
12921
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
12922
|
+
},
|
12040
12923
|
/**
|
12041
12924
|
* List all supported report types, which can be generated by the user
|
12042
12925
|
* @summary List report types
|
@@ -12079,6 +12962,15 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
|
|
12079
12962
|
generateReport(type: string, reportCreationRequest?: ReportCreationRequest, options?: any): AxiosPromise<ReportResponse> {
|
12080
12963
|
return localVarFp.generateReport(type, reportCreationRequest, options).then((request) => request(axios, basePath));
|
12081
12964
|
},
|
12965
|
+
/**
|
12966
|
+
* Get signed access URL for report
|
12967
|
+
* @summary Get signed access URL for report
|
12968
|
+
* @param {*} [options] Override http request option.
|
12969
|
+
* @throws {RequiredError}
|
12970
|
+
*/
|
12971
|
+
getReportUrl(options?: any): AxiosPromise<ReportUrlResponse> {
|
12972
|
+
return localVarFp.getReportUrl(options).then((request) => request(axios, basePath));
|
12973
|
+
},
|
12082
12974
|
/**
|
12083
12975
|
* List all supported report types, which can be generated by the user
|
12084
12976
|
* @summary List report types
|
@@ -12121,6 +13013,17 @@ export class ReportsApi extends BaseAPI {
|
|
12121
13013
|
return ReportsApiFp(this.configuration).generateReport(type, reportCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
12122
13014
|
}
|
12123
13015
|
|
13016
|
+
/**
|
13017
|
+
* Get signed access URL for report
|
13018
|
+
* @summary Get signed access URL for report
|
13019
|
+
* @param {*} [options] Override http request option.
|
13020
|
+
* @throws {RequiredError}
|
13021
|
+
* @memberof ReportsApi
|
13022
|
+
*/
|
13023
|
+
public getReportUrl(options?: AxiosRequestConfig) {
|
13024
|
+
return ReportsApiFp(this.configuration).getReportUrl(options).then((request) => request(this.axios, this.basePath));
|
13025
|
+
}
|
13026
|
+
|
12124
13027
|
/**
|
12125
13028
|
* List all supported report types, which can be generated by the user
|
12126
13029
|
* @summary List report types
|