flexinet-api 0.0.2304 → 0.0.2307

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/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
@@ -3082,6 +3392,55 @@ export interface PromotionConfig {
3082
3392
  */
3083
3393
  'allowRunningPromotionsUpdate': boolean;
3084
3394
  }
3395
+ /**
3396
+ *
3397
+ * @export
3398
+ * @interface PromotionConfigRequest
3399
+ */
3400
+ export interface PromotionConfigRequest {
3401
+ /**
3402
+ *
3403
+ * @type {number}
3404
+ * @memberof PromotionConfigRequest
3405
+ */
3406
+ 'adminClaimGracePeriod'?: number;
3407
+ /**
3408
+ *
3409
+ * @type {number}
3410
+ * @memberof PromotionConfigRequest
3411
+ */
3412
+ 'userClaimGracePeriod'?: number;
3413
+ /**
3414
+ *
3415
+ * @type {number}
3416
+ * @memberof PromotionConfigRequest
3417
+ */
3418
+ 'refundLapsePeriod'?: number;
3419
+ /**
3420
+ *
3421
+ * @type {number}
3422
+ * @memberof PromotionConfigRequest
3423
+ */
3424
+ 'customDealMinDuration'?: number;
3425
+ /**
3426
+ *
3427
+ * @type {number}
3428
+ * @memberof PromotionConfigRequest
3429
+ */
3430
+ 'customDealMinTargetValue'?: number;
3431
+ /**
3432
+ *
3433
+ * @type {number}
3434
+ * @memberof PromotionConfigRequest
3435
+ */
3436
+ 'customDealRefundWindow'?: number;
3437
+ /**
3438
+ *
3439
+ * @type {boolean}
3440
+ * @memberof PromotionConfigRequest
3441
+ */
3442
+ 'allowRunningPromotionsUpdate'?: boolean;
3443
+ }
3085
3444
  /**
3086
3445
  *
3087
3446
  * @export
@@ -3446,6 +3805,25 @@ export const ReportTypesResponseTypesEnum = {
3446
3805
 
3447
3806
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
3448
3807
 
3808
+ /**
3809
+ *
3810
+ * @export
3811
+ * @interface ReportUrlResponse
3812
+ */
3813
+ export interface ReportUrlResponse {
3814
+ /**
3815
+ *
3816
+ * @type {string}
3817
+ * @memberof ReportUrlResponse
3818
+ */
3819
+ 'datalakeUrl': string;
3820
+ /**
3821
+ *
3822
+ * @type {string}
3823
+ * @memberof ReportUrlResponse
3824
+ */
3825
+ 'token': string;
3826
+ }
3449
3827
  /**
3450
3828
  * @type Rule
3451
3829
  * @export
@@ -4416,7 +4794,277 @@ export interface TenantConfing {
4416
4794
  * @type {AuthorizationConfig}
4417
4795
  * @memberof TenantConfing
4418
4796
  */
4419
- 'auth': AuthorizationConfig;
4797
+ 'auth': AuthorizationConfig;
4798
+ }
4799
+
4800
+
4801
+ /**
4802
+ *
4803
+ * @export
4804
+ * @interface TenantConfingRequest
4805
+ */
4806
+ export interface TenantConfingRequest {
4807
+ /**
4808
+ *
4809
+ * @type {string}
4810
+ * @memberof TenantConfingRequest
4811
+ */
4812
+ 'id': string;
4813
+ /**
4814
+ *
4815
+ * @type {string}
4816
+ * @memberof TenantConfingRequest
4817
+ */
4818
+ 'name'?: string;
4819
+ /**
4820
+ *
4821
+ * @type {string}
4822
+ * @memberof TenantConfingRequest
4823
+ */
4824
+ 'adminKeyConfig'?: string;
4825
+ /**
4826
+ *
4827
+ * @type {string}
4828
+ * @memberof TenantConfingRequest
4829
+ */
4830
+ 'adminIssuer'?: string;
4831
+ /**
4832
+ *
4833
+ * @type {string}
4834
+ * @memberof TenantConfingRequest
4835
+ */
4836
+ 'customerOpenIDKeyConfig'?: string;
4837
+ /**
4838
+ *
4839
+ * @type {string}
4840
+ * @memberof TenantConfingRequest
4841
+ */
4842
+ 'customerOpenIDIssuer'?: string;
4843
+ /**
4844
+ *
4845
+ * @type {string}
4846
+ * @memberof TenantConfingRequest
4847
+ */
4848
+ 'customerOpenIDClientID'?: string;
4849
+ /**
4850
+ *
4851
+ * @type {string}
4852
+ * @memberof TenantConfingRequest
4853
+ */
4854
+ 'customerOpenIDMetadataURL'?: string;
4855
+ /**
4856
+ *
4857
+ * @type {{ [key: string]: string; }}
4858
+ * @memberof TenantConfingRequest
4859
+ */
4860
+ 'customerOpenIDParameters'?: { [key: string]: string; };
4861
+ /**
4862
+ *
4863
+ * @type {string}
4864
+ * @memberof TenantConfingRequest
4865
+ */
4866
+ 'ppURL'?: string;
4867
+ /**
4868
+ *
4869
+ * @type {string}
4870
+ * @memberof TenantConfingRequest
4871
+ */
4872
+ 'tcURL'?: string;
4873
+ /**
4874
+ *
4875
+ * @type {string}
4876
+ * @memberof TenantConfingRequest
4877
+ */
4878
+ 'cookiesURL'?: string;
4879
+ /**
4880
+ *
4881
+ * @type {string}
4882
+ * @memberof TenantConfingRequest
4883
+ */
4884
+ 'azureEntraTenantID'?: string;
4885
+ /**
4886
+ *
4887
+ * @type {string}
4888
+ * @memberof TenantConfingRequest
4889
+ */
4890
+ 'azureEntraClientID'?: string;
4891
+ /**
4892
+ *
4893
+ * @type {Locale}
4894
+ * @memberof TenantConfingRequest
4895
+ */
4896
+ 'locale'?: Locale;
4897
+ /**
4898
+ *
4899
+ * @type {string}
4900
+ * @memberof TenantConfingRequest
4901
+ */
4902
+ 'announcement'?: string;
4903
+ /**
4904
+ *
4905
+ * @type {Currency}
4906
+ * @memberof TenantConfingRequest
4907
+ */
4908
+ 'currency'?: Currency;
4909
+ /**
4910
+ *
4911
+ * @type {boolean}
4912
+ * @memberof TenantConfingRequest
4913
+ */
4914
+ 'customDealAutoClaim'?: boolean;
4915
+ /**
4916
+ *
4917
+ * @type {LedgerConfigRequest}
4918
+ * @memberof TenantConfingRequest
4919
+ */
4920
+ 'ledger'?: LedgerConfigRequest;
4921
+ /**
4922
+ *
4923
+ * @type {PromotionConfigRequest}
4924
+ * @memberof TenantConfingRequest
4925
+ */
4926
+ 'promotion'?: PromotionConfigRequest;
4927
+ /**
4928
+ *
4929
+ * @type {FeatureFlagsRequest}
4930
+ * @memberof TenantConfingRequest
4931
+ */
4932
+ 'featureFlags'?: FeatureFlagsRequest;
4933
+ /**
4934
+ *
4935
+ * @type {NotificationConfigRequest}
4936
+ * @memberof TenantConfingRequest
4937
+ */
4938
+ 'notifications'?: NotificationConfigRequest;
4939
+ /**
4940
+ *
4941
+ * @type {IntegrationsConfigRequest}
4942
+ * @memberof TenantConfingRequest
4943
+ */
4944
+ 'integrations'?: IntegrationsConfigRequest;
4945
+ /**
4946
+ *
4947
+ * @type {BrandingConfigRequest}
4948
+ * @memberof TenantConfingRequest
4949
+ */
4950
+ 'branding'?: BrandingConfigRequest;
4951
+ /**
4952
+ *
4953
+ * @type {AuthorizationConfigRequest}
4954
+ * @memberof TenantConfingRequest
4955
+ */
4956
+ 'auth'?: AuthorizationConfigRequest;
4957
+ }
4958
+
4959
+
4960
+ /**
4961
+ *
4962
+ * @export
4963
+ * @interface TenantRequest
4964
+ */
4965
+ export interface TenantRequest {
4966
+ /**
4967
+ *
4968
+ * @type {string}
4969
+ * @memberof TenantRequest
4970
+ */
4971
+ 'id': string;
4972
+ /**
4973
+ *
4974
+ * @type {string}
4975
+ * @memberof TenantRequest
4976
+ */
4977
+ 'name'?: string;
4978
+ /**
4979
+ *
4980
+ * @type {string}
4981
+ * @memberof TenantRequest
4982
+ */
4983
+ 'adminKeyConfig'?: string;
4984
+ /**
4985
+ *
4986
+ * @type {string}
4987
+ * @memberof TenantRequest
4988
+ */
4989
+ 'adminIssuer'?: string;
4990
+ /**
4991
+ *
4992
+ * @type {string}
4993
+ * @memberof TenantRequest
4994
+ */
4995
+ 'customerOpenIDKeyConfig'?: string;
4996
+ /**
4997
+ *
4998
+ * @type {string}
4999
+ * @memberof TenantRequest
5000
+ */
5001
+ 'customerOpenIDIssuer'?: string;
5002
+ /**
5003
+ *
5004
+ * @type {string}
5005
+ * @memberof TenantRequest
5006
+ */
5007
+ 'customerOpenIDClientID'?: string;
5008
+ /**
5009
+ *
5010
+ * @type {string}
5011
+ * @memberof TenantRequest
5012
+ */
5013
+ 'customerOpenIDMetadataURL'?: string;
5014
+ /**
5015
+ *
5016
+ * @type {{ [key: string]: string; }}
5017
+ * @memberof TenantRequest
5018
+ */
5019
+ 'customerOpenIDParameters'?: { [key: string]: string; };
5020
+ /**
5021
+ *
5022
+ * @type {string}
5023
+ * @memberof TenantRequest
5024
+ */
5025
+ 'ppURL'?: string;
5026
+ /**
5027
+ *
5028
+ * @type {string}
5029
+ * @memberof TenantRequest
5030
+ */
5031
+ 'tcURL'?: string;
5032
+ /**
5033
+ *
5034
+ * @type {string}
5035
+ * @memberof TenantRequest
5036
+ */
5037
+ 'cookiesURL'?: string;
5038
+ /**
5039
+ *
5040
+ * @type {string}
5041
+ * @memberof TenantRequest
5042
+ */
5043
+ 'azureEntraTenantID'?: string;
5044
+ /**
5045
+ *
5046
+ * @type {string}
5047
+ * @memberof TenantRequest
5048
+ */
5049
+ 'azureEntraClientID'?: string;
5050
+ /**
5051
+ *
5052
+ * @type {Locale}
5053
+ * @memberof TenantRequest
5054
+ */
5055
+ 'locale'?: Locale;
5056
+ /**
5057
+ *
5058
+ * @type {string}
5059
+ * @memberof TenantRequest
5060
+ */
5061
+ 'announcement'?: string;
5062
+ /**
5063
+ *
5064
+ * @type {Currency}
5065
+ * @memberof TenantRequest
5066
+ */
5067
+ 'currency'?: Currency;
4420
5068
  }
4421
5069
 
4422
5070
 
@@ -6860,13 +7508,13 @@ export const ConfigurationsApiAxiosParamCreator = function (configuration?: Conf
6860
7508
  /**
6861
7509
  * Create or update backoffice configuration for the current tenant
6862
7510
  * @summary Create configuration
6863
- * @param {TenantConfing} tenantConfing Configuration data
7511
+ * @param {TenantConfingRequest} tenantConfingRequest Configuration data
6864
7512
  * @param {*} [options] Override http request option.
6865
7513
  * @throws {RequiredError}
6866
7514
  */
6867
- createV2Configuration: async (tenantConfing: TenantConfing, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6868
- // verify required parameter 'tenantConfing' is not null or undefined
6869
- assertParamExists('createV2Configuration', 'tenantConfing', tenantConfing)
7515
+ createV2Configuration: async (tenantConfingRequest: TenantConfingRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7516
+ // verify required parameter 'tenantConfingRequest' is not null or undefined
7517
+ assertParamExists('createV2Configuration', 'tenantConfingRequest', tenantConfingRequest)
6870
7518
  const localVarPath = `/v2/admins/configurations`;
6871
7519
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6872
7520
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6890,7 +7538,7 @@ export const ConfigurationsApiAxiosParamCreator = function (configuration?: Conf
6890
7538
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6891
7539
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6892
7540
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6893
- localVarRequestOptions.data = serializeDataIfNeeded(tenantConfing, localVarRequestOptions, configuration)
7541
+ localVarRequestOptions.data = serializeDataIfNeeded(tenantConfingRequest, localVarRequestOptions, configuration)
6894
7542
 
6895
7543
  return {
6896
7544
  url: toPathString(localVarUrlObj),
@@ -7094,12 +7742,12 @@ export const ConfigurationsApiFp = function(configuration?: Configuration) {
7094
7742
  /**
7095
7743
  * Create or update backoffice configuration for the current tenant
7096
7744
  * @summary Create configuration
7097
- * @param {TenantConfing} tenantConfing Configuration data
7745
+ * @param {TenantConfingRequest} tenantConfingRequest Configuration data
7098
7746
  * @param {*} [options] Override http request option.
7099
7747
  * @throws {RequiredError}
7100
7748
  */
7101
- async createV2Configuration(tenantConfing: TenantConfing, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7102
- const localVarAxiosArgs = await localVarAxiosParamCreator.createV2Configuration(tenantConfing, options);
7749
+ async createV2Configuration(tenantConfingRequest: TenantConfingRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7750
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createV2Configuration(tenantConfingRequest, options);
7103
7751
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7104
7752
  },
7105
7753
  /**
@@ -7176,12 +7824,12 @@ export const ConfigurationsApiFactory = function (configuration?: Configuration,
7176
7824
  /**
7177
7825
  * Create or update backoffice configuration for the current tenant
7178
7826
  * @summary Create configuration
7179
- * @param {TenantConfing} tenantConfing Configuration data
7827
+ * @param {TenantConfingRequest} tenantConfingRequest Configuration data
7180
7828
  * @param {*} [options] Override http request option.
7181
7829
  * @throws {RequiredError}
7182
7830
  */
7183
- createV2Configuration(tenantConfing: TenantConfing, options?: any): AxiosPromise<void> {
7184
- return localVarFp.createV2Configuration(tenantConfing, options).then((request) => request(axios, basePath));
7831
+ createV2Configuration(tenantConfingRequest: TenantConfingRequest, options?: any): AxiosPromise<void> {
7832
+ return localVarFp.createV2Configuration(tenantConfingRequest, options).then((request) => request(axios, basePath));
7185
7833
  },
7186
7834
  /**
7187
7835
  * List backoffice configurations for the current tenant
@@ -7254,13 +7902,13 @@ export class ConfigurationsApi extends BaseAPI {
7254
7902
  /**
7255
7903
  * Create or update backoffice configuration for the current tenant
7256
7904
  * @summary Create configuration
7257
- * @param {TenantConfing} tenantConfing Configuration data
7905
+ * @param {TenantConfingRequest} tenantConfingRequest Configuration data
7258
7906
  * @param {*} [options] Override http request option.
7259
7907
  * @throws {RequiredError}
7260
7908
  * @memberof ConfigurationsApi
7261
7909
  */
7262
- public createV2Configuration(tenantConfing: TenantConfing, options?: AxiosRequestConfig) {
7263
- return ConfigurationsApiFp(this.configuration).createV2Configuration(tenantConfing, options).then((request) => request(this.axios, this.basePath));
7910
+ public createV2Configuration(tenantConfingRequest: TenantConfingRequest, options?: AxiosRequestConfig) {
7911
+ return ConfigurationsApiFp(this.configuration).createV2Configuration(tenantConfingRequest, options).then((request) => request(this.axios, this.basePath));
7264
7912
  }
7265
7913
 
7266
7914
  /**
@@ -7722,6 +8370,52 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
7722
8370
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7723
8371
  localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration)
7724
8372
 
8373
+ return {
8374
+ url: toPathString(localVarUrlObj),
8375
+ options: localVarRequestOptions,
8376
+ };
8377
+ },
8378
+ /**
8379
+ * Search events
8380
+ * @summary Search events
8381
+ * @param {string} reference Reference ID
8382
+ * @param {string} [nextToken] This is the pagination token
8383
+ * @param {*} [options] Override http request option.
8384
+ * @throws {RequiredError}
8385
+ */
8386
+ searchEvents: async (reference: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8387
+ // verify required parameter 'reference' is not null or undefined
8388
+ assertParamExists('searchEvents', 'reference', reference)
8389
+ const localVarPath = `/admins/events`;
8390
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8391
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8392
+ let baseOptions;
8393
+ if (configuration) {
8394
+ baseOptions = configuration.baseOptions;
8395
+ }
8396
+
8397
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8398
+ const localVarHeaderParameter = {} as any;
8399
+ const localVarQueryParameter = {} as any;
8400
+
8401
+ // authentication systemJWT required
8402
+ // http bearer authentication required
8403
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8404
+
8405
+ if (nextToken !== undefined) {
8406
+ localVarQueryParameter['nextToken'] = nextToken;
8407
+ }
8408
+
8409
+ if (reference !== undefined) {
8410
+ localVarQueryParameter['reference'] = reference;
8411
+ }
8412
+
8413
+
8414
+
8415
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8416
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8417
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8418
+
7725
8419
  return {
7726
8420
  url: toPathString(localVarUrlObj),
7727
8421
  options: localVarRequestOptions,
@@ -7748,6 +8442,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
7748
8442
  const localVarAxiosArgs = await localVarAxiosParamCreator.importEvents(eventCreationRequest, options);
7749
8443
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7750
8444
  },
8445
+ /**
8446
+ * Search events
8447
+ * @summary Search events
8448
+ * @param {string} reference Reference ID
8449
+ * @param {string} [nextToken] This is the pagination token
8450
+ * @param {*} [options] Override http request option.
8451
+ * @throws {RequiredError}
8452
+ */
8453
+ async searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsResponse>> {
8454
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchEvents(reference, nextToken, options);
8455
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8456
+ },
7751
8457
  }
7752
8458
  };
7753
8459
 
@@ -7768,6 +8474,17 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
7768
8474
  importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void> {
7769
8475
  return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
7770
8476
  },
8477
+ /**
8478
+ * Search events
8479
+ * @summary Search events
8480
+ * @param {string} reference Reference ID
8481
+ * @param {string} [nextToken] This is the pagination token
8482
+ * @param {*} [options] Override http request option.
8483
+ * @throws {RequiredError}
8484
+ */
8485
+ searchEvents(reference: string, nextToken?: string, options?: any): AxiosPromise<EventsResponse> {
8486
+ return localVarFp.searchEvents(reference, nextToken, options).then((request) => request(axios, basePath));
8487
+ },
7771
8488
  };
7772
8489
  };
7773
8490
 
@@ -7789,6 +8506,19 @@ export class EventsApi extends BaseAPI {
7789
8506
  public importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) {
7790
8507
  return EventsApiFp(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
7791
8508
  }
8509
+
8510
+ /**
8511
+ * Search events
8512
+ * @summary Search events
8513
+ * @param {string} reference Reference ID
8514
+ * @param {string} [nextToken] This is the pagination token
8515
+ * @param {*} [options] Override http request option.
8516
+ * @throws {RequiredError}
8517
+ * @memberof EventsApi
8518
+ */
8519
+ public searchEvents(reference: string, nextToken?: string, options?: AxiosRequestConfig) {
8520
+ return EventsApiFp(this.configuration).searchEvents(reference, nextToken, options).then((request) => request(this.axios, this.basePath));
8521
+ }
7792
8522
  }
7793
8523
 
7794
8524
 
@@ -7945,272 +8675,96 @@ export const IntegrationsApiFp = function(configuration?: Configuration) {
7945
8675
  /**
7946
8676
  * Set up webhook url for a given webhook kind
7947
8677
  * @summary Update webhook
7948
- * @param {Webhook} webhook Webhook data
7949
- * @param {*} [options] Override http request option.
7950
- * @throws {RequiredError}
7951
- */
7952
- async setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7953
- const localVarAxiosArgs = await localVarAxiosParamCreator.setWebhook(webhook, options);
7954
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7955
- },
7956
- }
7957
- };
7958
-
7959
- /**
7960
- * IntegrationsApi - factory interface
7961
- * @export
7962
- */
7963
- export const IntegrationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7964
- const localVarFp = IntegrationsApiFp(configuration)
7965
- return {
7966
- /**
7967
- * 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.
7968
- * @summary Generate API key
7969
- * @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
7970
- * @param {*} [options] Override http request option.
7971
- * @throws {RequiredError}
7972
- */
7973
- generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: any): AxiosPromise<ApiKey> {
7974
- return localVarFp.generateApiKey(apiKeyCreationRequest, options).then((request) => request(axios, basePath));
7975
- },
7976
- /**
7977
- * List all webhooks for the current tenant
7978
- * @summary List webhooks
7979
- * @param {*} [options] Override http request option.
7980
- * @throws {RequiredError}
7981
- */
7982
- listWebhooks(options?: any): AxiosPromise<WebhooksResponse> {
7983
- return localVarFp.listWebhooks(options).then((request) => request(axios, basePath));
7984
- },
7985
- /**
7986
- * Set up webhook url for a given webhook kind
7987
- * @summary Update webhook
7988
- * @param {Webhook} webhook Webhook data
7989
- * @param {*} [options] Override http request option.
7990
- * @throws {RequiredError}
7991
- */
7992
- setWebhook(webhook: Webhook, options?: any): AxiosPromise<void> {
7993
- return localVarFp.setWebhook(webhook, options).then((request) => request(axios, basePath));
7994
- },
7995
- };
7996
- };
7997
-
7998
- /**
7999
- * IntegrationsApi - object-oriented interface
8000
- * @export
8001
- * @class IntegrationsApi
8002
- * @extends {BaseAPI}
8003
- */
8004
- export class IntegrationsApi extends BaseAPI {
8005
- /**
8006
- * 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.
8007
- * @summary Generate API key
8008
- * @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
8009
- * @param {*} [options] Override http request option.
8010
- * @throws {RequiredError}
8011
- * @memberof IntegrationsApi
8012
- */
8013
- public generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig) {
8014
- return IntegrationsApiFp(this.configuration).generateApiKey(apiKeyCreationRequest, options).then((request) => request(this.axios, this.basePath));
8015
- }
8016
-
8017
- /**
8018
- * 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 customerJWT 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 customerJWT 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
8678
+ * @param {Webhook} webhook Webhook data
8147
8679
  * @param {*} [options] Override http request option.
8148
8680
  * @throws {RequiredError}
8149
8681
  */
8150
- async updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8151
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateSystemPreferences(notificationPreference, options);
8682
+ async setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8683
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setWebhook(webhook, options);
8152
8684
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8153
8685
  },
8154
8686
  }
8155
8687
  };
8156
8688
 
8157
8689
  /**
8158
- * NotificationApi - factory interface
8690
+ * IntegrationsApi - factory interface
8159
8691
  * @export
8160
8692
  */
8161
- export const NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8162
- const localVarFp = NotificationApiFp(configuration)
8693
+ export const IntegrationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8694
+ const localVarFp = IntegrationsApiFp(configuration)
8163
8695
  return {
8164
8696
  /**
8165
- * Get preferences for the authenticated user
8166
- * @summary Get preferences
8697
+ * 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.
8698
+ * @summary Generate API key
8699
+ * @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
8167
8700
  * @param {*} [options] Override http request option.
8168
8701
  * @throws {RequiredError}
8169
8702
  */
8170
- getSystemPreferences(options?: any): AxiosPromise<Array<NotificationPreference>> {
8171
- return localVarFp.getSystemPreferences(options).then((request) => request(axios, basePath));
8703
+ generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: any): AxiosPromise<ApiKey> {
8704
+ return localVarFp.generateApiKey(apiKeyCreationRequest, options).then((request) => request(axios, basePath));
8172
8705
  },
8173
8706
  /**
8174
- * Update preferences for the authenticated user
8175
- * @summary Update preferences
8176
- * @param {Array<NotificationPreference>} notificationPreference notification preferences
8707
+ * List all webhooks for the current tenant
8708
+ * @summary List webhooks
8177
8709
  * @param {*} [options] Override http request option.
8178
8710
  * @throws {RequiredError}
8179
8711
  */
8180
- updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: any): AxiosPromise<void> {
8181
- return localVarFp.updateSystemPreferences(notificationPreference, options).then((request) => request(axios, basePath));
8712
+ listWebhooks(options?: any): AxiosPromise<WebhooksResponse> {
8713
+ return localVarFp.listWebhooks(options).then((request) => request(axios, basePath));
8714
+ },
8715
+ /**
8716
+ * Set up webhook url for a given webhook kind
8717
+ * @summary Update webhook
8718
+ * @param {Webhook} webhook Webhook data
8719
+ * @param {*} [options] Override http request option.
8720
+ * @throws {RequiredError}
8721
+ */
8722
+ setWebhook(webhook: Webhook, options?: any): AxiosPromise<void> {
8723
+ return localVarFp.setWebhook(webhook, options).then((request) => request(axios, basePath));
8182
8724
  },
8183
8725
  };
8184
8726
  };
8185
8727
 
8186
8728
  /**
8187
- * NotificationApi - object-oriented interface
8729
+ * IntegrationsApi - object-oriented interface
8188
8730
  * @export
8189
- * @class NotificationApi
8731
+ * @class IntegrationsApi
8190
8732
  * @extends {BaseAPI}
8191
8733
  */
8192
- export class NotificationApi extends BaseAPI {
8734
+ export class IntegrationsApi extends BaseAPI {
8193
8735
  /**
8194
- * Get preferences for the authenticated user
8195
- * @summary Get preferences
8736
+ * 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.
8737
+ * @summary Generate API key
8738
+ * @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
8196
8739
  * @param {*} [options] Override http request option.
8197
8740
  * @throws {RequiredError}
8198
- * @memberof NotificationApi
8741
+ * @memberof IntegrationsApi
8199
8742
  */
8200
- public getSystemPreferences(options?: AxiosRequestConfig) {
8201
- return NotificationApiFp(this.configuration).getSystemPreferences(options).then((request) => request(this.axios, this.basePath));
8743
+ public generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig) {
8744
+ return IntegrationsApiFp(this.configuration).generateApiKey(apiKeyCreationRequest, options).then((request) => request(this.axios, this.basePath));
8202
8745
  }
8203
8746
 
8204
8747
  /**
8205
- * Update preferences for the authenticated user
8206
- * @summary Update preferences
8207
- * @param {Array<NotificationPreference>} notificationPreference notification preferences
8748
+ * List all webhooks for the current tenant
8749
+ * @summary List webhooks
8208
8750
  * @param {*} [options] Override http request option.
8209
8751
  * @throws {RequiredError}
8210
- * @memberof NotificationApi
8752
+ * @memberof IntegrationsApi
8211
8753
  */
8212
- public updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: AxiosRequestConfig) {
8213
- return NotificationApiFp(this.configuration).updateSystemPreferences(notificationPreference, options).then((request) => request(this.axios, this.basePath));
8754
+ public listWebhooks(options?: AxiosRequestConfig) {
8755
+ return IntegrationsApiFp(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
8756
+ }
8757
+
8758
+ /**
8759
+ * Set up webhook url for a given webhook kind
8760
+ * @summary Update webhook
8761
+ * @param {Webhook} webhook Webhook data
8762
+ * @param {*} [options] Override http request option.
8763
+ * @throws {RequiredError}
8764
+ * @memberof IntegrationsApi
8765
+ */
8766
+ public setWebhook(webhook: Webhook, options?: AxiosRequestConfig) {
8767
+ return IntegrationsApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
8214
8768
  }
8215
8769
  }
8216
8770
 
@@ -8319,7 +8873,41 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
8319
8873
  const localVarHeaderParameter = {} as any;
8320
8874
  const localVarQueryParameter = {} as any;
8321
8875
 
8322
- // authentication customerJWT required
8876
+ // authentication systemJWT required
8877
+ // http bearer authentication required
8878
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8879
+
8880
+
8881
+
8882
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8883
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8884
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8885
+
8886
+ return {
8887
+ url: toPathString(localVarUrlObj),
8888
+ options: localVarRequestOptions,
8889
+ };
8890
+ },
8891
+ /**
8892
+ * Get preferences for the authenticated user
8893
+ * @summary Get preferences
8894
+ * @param {*} [options] Override http request option.
8895
+ * @throws {RequiredError}
8896
+ */
8897
+ getSystemPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8898
+ const localVarPath = `/admins/preferences/system`;
8899
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8900
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8901
+ let baseOptions;
8902
+ if (configuration) {
8903
+ baseOptions = configuration.baseOptions;
8904
+ }
8905
+
8906
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8907
+ const localVarHeaderParameter = {} as any;
8908
+ const localVarQueryParameter = {} as any;
8909
+
8910
+ // authentication systemJWT required
8323
8911
  // http bearer authentication required
8324
8912
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
8325
8913
 
@@ -8472,7 +9060,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
8472
9060
  const localVarHeaderParameter = {} as any;
8473
9061
  const localVarQueryParameter = {} as any;
8474
9062
 
8475
- // authentication customerJWT required
9063
+ // authentication systemJWT required
8476
9064
  // http bearer authentication required
8477
9065
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
8478
9066
 
@@ -8490,6 +9078,46 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
8490
9078
  options: localVarRequestOptions,
8491
9079
  };
8492
9080
  },
9081
+ /**
9082
+ * Update preferences for the authenticated user
9083
+ * @summary Update preferences
9084
+ * @param {Array<NotificationPreference>} notificationPreference notification preferences
9085
+ * @param {*} [options] Override http request option.
9086
+ * @throws {RequiredError}
9087
+ */
9088
+ updateSystemPreferences: async (notificationPreference: Array<NotificationPreference>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9089
+ // verify required parameter 'notificationPreference' is not null or undefined
9090
+ assertParamExists('updateSystemPreferences', 'notificationPreference', notificationPreference)
9091
+ const localVarPath = `/admins/preferences/system`;
9092
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9093
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9094
+ let baseOptions;
9095
+ if (configuration) {
9096
+ baseOptions = configuration.baseOptions;
9097
+ }
9098
+
9099
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
9100
+ const localVarHeaderParameter = {} as any;
9101
+ const localVarQueryParameter = {} as any;
9102
+
9103
+ // authentication systemJWT required
9104
+ // http bearer authentication required
9105
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9106
+
9107
+
9108
+
9109
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9110
+
9111
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9112
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9113
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9114
+ localVarRequestOptions.data = serializeDataIfNeeded(notificationPreference, localVarRequestOptions, configuration)
9115
+
9116
+ return {
9117
+ url: toPathString(localVarUrlObj),
9118
+ options: localVarRequestOptions,
9119
+ };
9120
+ },
8493
9121
  /**
8494
9122
  * Update notification preferences for the authenticated user
8495
9123
  * @summary Update notification preferences
@@ -8572,6 +9200,16 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
8572
9200
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferences(options);
8573
9201
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8574
9202
  },
9203
+ /**
9204
+ * Get preferences for the authenticated user
9205
+ * @summary Get preferences
9206
+ * @param {*} [options] Override http request option.
9207
+ * @throws {RequiredError}
9208
+ */
9209
+ async getSystemPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<NotificationPreference>>> {
9210
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSystemPreferences(options);
9211
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9212
+ },
8575
9213
  /**
8576
9214
  * Get notification preferences for the authenticated user
8577
9215
  * @summary Get notification preferences
@@ -8616,6 +9254,17 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
8616
9254
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
8617
9255
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8618
9256
  },
9257
+ /**
9258
+ * Update preferences for the authenticated user
9259
+ * @summary Update preferences
9260
+ * @param {Array<NotificationPreference>} notificationPreference notification preferences
9261
+ * @param {*} [options] Override http request option.
9262
+ * @throws {RequiredError}
9263
+ */
9264
+ async updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSystemPreferences(notificationPreference, options);
9266
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9267
+ },
8619
9268
  /**
8620
9269
  * Update notification preferences for the authenticated user
8621
9270
  * @summary Update notification preferences
@@ -8666,6 +9315,15 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
8666
9315
  getPreferences(options?: any): AxiosPromise<Preferences> {
8667
9316
  return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
8668
9317
  },
9318
+ /**
9319
+ * Get preferences for the authenticated user
9320
+ * @summary Get preferences
9321
+ * @param {*} [options] Override http request option.
9322
+ * @throws {RequiredError}
9323
+ */
9324
+ getSystemPreferences(options?: any): AxiosPromise<Array<NotificationPreference>> {
9325
+ return localVarFp.getSystemPreferences(options).then((request) => request(axios, basePath));
9326
+ },
8669
9327
  /**
8670
9328
  * Get notification preferences for the authenticated user
8671
9329
  * @summary Get notification preferences
@@ -8706,6 +9364,16 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
8706
9364
  updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void> {
8707
9365
  return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
8708
9366
  },
9367
+ /**
9368
+ * Update preferences for the authenticated user
9369
+ * @summary Update preferences
9370
+ * @param {Array<NotificationPreference>} notificationPreference notification preferences
9371
+ * @param {*} [options] Override http request option.
9372
+ * @throws {RequiredError}
9373
+ */
9374
+ updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: any): AxiosPromise<void> {
9375
+ return localVarFp.updateSystemPreferences(notificationPreference, options).then((request) => request(axios, basePath));
9376
+ },
8709
9377
  /**
8710
9378
  * Update notification preferences for the authenticated user
8711
9379
  * @summary Update notification preferences
@@ -8761,6 +9429,17 @@ export class NotificationsApi extends BaseAPI {
8761
9429
  return NotificationsApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
8762
9430
  }
8763
9431
 
9432
+ /**
9433
+ * Get preferences for the authenticated user
9434
+ * @summary Get preferences
9435
+ * @param {*} [options] Override http request option.
9436
+ * @throws {RequiredError}
9437
+ * @memberof NotificationsApi
9438
+ */
9439
+ public getSystemPreferences(options?: AxiosRequestConfig) {
9440
+ return NotificationsApiFp(this.configuration).getSystemPreferences(options).then((request) => request(this.axios, this.basePath));
9441
+ }
9442
+
8764
9443
  /**
8765
9444
  * Get notification preferences for the authenticated user
8766
9445
  * @summary Get notification preferences
@@ -8809,6 +9488,18 @@ export class NotificationsApi extends BaseAPI {
8809
9488
  return NotificationsApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
8810
9489
  }
8811
9490
 
9491
+ /**
9492
+ * Update preferences for the authenticated user
9493
+ * @summary Update preferences
9494
+ * @param {Array<NotificationPreference>} notificationPreference notification preferences
9495
+ * @param {*} [options] Override http request option.
9496
+ * @throws {RequiredError}
9497
+ * @memberof NotificationsApi
9498
+ */
9499
+ public updateSystemPreferences(notificationPreference: Array<NotificationPreference>, options?: AxiosRequestConfig) {
9500
+ return NotificationsApiFp(this.configuration).updateSystemPreferences(notificationPreference, options).then((request) => request(this.axios, this.basePath));
9501
+ }
9502
+
8812
9503
  /**
8813
9504
  * Update notification preferences for the authenticated user
8814
9505
  * @summary Update notification preferences
@@ -11943,6 +12634,40 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
11943
12634
  options: localVarRequestOptions,
11944
12635
  };
11945
12636
  },
12637
+ /**
12638
+ * Get signed access URL for report
12639
+ * @summary Get signed access URL for report
12640
+ * @param {*} [options] Override http request option.
12641
+ * @throws {RequiredError}
12642
+ */
12643
+ getReportUrl: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12644
+ const localVarPath = `/admin/reports/url`;
12645
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12646
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12647
+ let baseOptions;
12648
+ if (configuration) {
12649
+ baseOptions = configuration.baseOptions;
12650
+ }
12651
+
12652
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12653
+ const localVarHeaderParameter = {} as any;
12654
+ const localVarQueryParameter = {} as any;
12655
+
12656
+ // authentication systemJWT required
12657
+ // http bearer authentication required
12658
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12659
+
12660
+
12661
+
12662
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12663
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12664
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12665
+
12666
+ return {
12667
+ url: toPathString(localVarUrlObj),
12668
+ options: localVarRequestOptions,
12669
+ };
12670
+ },
11946
12671
  /**
11947
12672
  * List all supported report types, which can be generated by the user
11948
12673
  * @summary List report types
@@ -12037,6 +12762,16 @@ export const ReportsApiFp = function(configuration?: Configuration) {
12037
12762
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateReport(type, reportCreationRequest, options);
12038
12763
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12039
12764
  },
12765
+ /**
12766
+ * Get signed access URL for report
12767
+ * @summary Get signed access URL for report
12768
+ * @param {*} [options] Override http request option.
12769
+ * @throws {RequiredError}
12770
+ */
12771
+ async getReportUrl(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportUrlResponse>> {
12772
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReportUrl(options);
12773
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12774
+ },
12040
12775
  /**
12041
12776
  * List all supported report types, which can be generated by the user
12042
12777
  * @summary List report types
@@ -12079,6 +12814,15 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
12079
12814
  generateReport(type: string, reportCreationRequest?: ReportCreationRequest, options?: any): AxiosPromise<ReportResponse> {
12080
12815
  return localVarFp.generateReport(type, reportCreationRequest, options).then((request) => request(axios, basePath));
12081
12816
  },
12817
+ /**
12818
+ * Get signed access URL for report
12819
+ * @summary Get signed access URL for report
12820
+ * @param {*} [options] Override http request option.
12821
+ * @throws {RequiredError}
12822
+ */
12823
+ getReportUrl(options?: any): AxiosPromise<ReportUrlResponse> {
12824
+ return localVarFp.getReportUrl(options).then((request) => request(axios, basePath));
12825
+ },
12082
12826
  /**
12083
12827
  * List all supported report types, which can be generated by the user
12084
12828
  * @summary List report types
@@ -12121,6 +12865,17 @@ export class ReportsApi extends BaseAPI {
12121
12865
  return ReportsApiFp(this.configuration).generateReport(type, reportCreationRequest, options).then((request) => request(this.axios, this.basePath));
12122
12866
  }
12123
12867
 
12868
+ /**
12869
+ * Get signed access URL for report
12870
+ * @summary Get signed access URL for report
12871
+ * @param {*} [options] Override http request option.
12872
+ * @throws {RequiredError}
12873
+ * @memberof ReportsApi
12874
+ */
12875
+ public getReportUrl(options?: AxiosRequestConfig) {
12876
+ return ReportsApiFp(this.configuration).getReportUrl(options).then((request) => request(this.axios, this.basePath));
12877
+ }
12878
+
12124
12879
  /**
12125
12880
  * List all supported report types, which can be generated by the user
12126
12881
  * @summary List report types