flexinet-api 0.0.492-prerelease0 → 0.0.501-prerelease0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -1543,6 +1543,30 @@ export interface ProductsResponse {
1543
1543
  */
1544
1544
  'nextToken'?: string;
1545
1545
  }
1546
+ /**
1547
+ *
1548
+ * @export
1549
+ * @interface Profile
1550
+ */
1551
+ export interface Profile {
1552
+ /**
1553
+ *
1554
+ * @type {User}
1555
+ * @memberof Profile
1556
+ */
1557
+ 'user': User;
1558
+ /**
1559
+ *
1560
+ * @type {ProfileDetails}
1561
+ * @memberof Profile
1562
+ */
1563
+ 'details': ProfileDetails;
1564
+ }
1565
+ /**
1566
+ * @type ProfileDetails
1567
+ * @export
1568
+ */
1569
+ export type ProfileDetails = CustomeruserDetails | SystemUserDetails;
1546
1570
  /**
1547
1571
  *
1548
1572
  * @export
@@ -1984,37 +2008,6 @@ export declare const RuleKind: {
1984
2008
  readonly Tag: "tag";
1985
2009
  };
1986
2010
  export type RuleKind = typeof RuleKind[keyof typeof RuleKind];
1987
- /**
1988
- *
1989
- * @export
1990
- * @interface SalesUserDetails
1991
- */
1992
- export interface SalesUserDetails {
1993
- /**
1994
- *
1995
- * @type {string}
1996
- * @memberof SalesUserDetails
1997
- */
1998
- 'name': string;
1999
- /**
2000
- *
2001
- * @type {string}
2002
- * @memberof SalesUserDetails
2003
- */
2004
- 'email': string;
2005
- /**
2006
- *
2007
- * @type {UserRole}
2008
- * @memberof SalesUserDetails
2009
- */
2010
- 'role': UserRole;
2011
- /**
2012
- *
2013
- * @type {string}
2014
- * @memberof SalesUserDetails
2015
- */
2016
- 'departmentId'?: string;
2017
- }
2018
2011
  /**
2019
2012
  *
2020
2013
  * @export
@@ -2106,6 +2099,43 @@ export declare const SortDirection: {
2106
2099
  readonly Desc: "desc";
2107
2100
  };
2108
2101
  export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
2102
+ /**
2103
+ *
2104
+ * @export
2105
+ * @interface SystemUserDetails
2106
+ */
2107
+ export interface SystemUserDetails {
2108
+ /**
2109
+ *
2110
+ * @type {string}
2111
+ * @memberof SystemUserDetails
2112
+ */
2113
+ 'firstName'?: string;
2114
+ /**
2115
+ *
2116
+ * @type {string}
2117
+ * @memberof SystemUserDetails
2118
+ */
2119
+ 'lastName'?: string;
2120
+ /**
2121
+ *
2122
+ * @type {string}
2123
+ * @memberof SystemUserDetails
2124
+ */
2125
+ 'email'?: string;
2126
+ /**
2127
+ *
2128
+ * @type {string}
2129
+ * @memberof SystemUserDetails
2130
+ */
2131
+ 'department'?: string;
2132
+ /**
2133
+ *
2134
+ * @type {string}
2135
+ * @memberof SystemUserDetails
2136
+ */
2137
+ 'jobTitle'?: string;
2138
+ }
2109
2139
  /**
2110
2140
  *
2111
2141
  * @export
@@ -2505,6 +2535,18 @@ export interface Transaction {
2505
2535
  * @memberof Transaction
2506
2536
  */
2507
2537
  'kind': TransactionKind;
2538
+ /**
2539
+ *
2540
+ * @type {TransactionSource}
2541
+ * @memberof Transaction
2542
+ */
2543
+ 'source': TransactionSource;
2544
+ /**
2545
+ *
2546
+ * @type {string}
2547
+ * @memberof Transaction
2548
+ */
2549
+ 'sourceReference'?: string;
2508
2550
  /**
2509
2551
  *
2510
2552
  * @type {number}
@@ -2621,6 +2663,20 @@ export declare const TransactionKind: {
2621
2663
  readonly Debit: "debit";
2622
2664
  };
2623
2665
  export type TransactionKind = typeof TransactionKind[keyof typeof TransactionKind];
2666
+ /**
2667
+ *
2668
+ * @export
2669
+ * @enum {string}
2670
+ */
2671
+ export declare const TransactionSource: {
2672
+ readonly SalesEvent: "sales_event";
2673
+ readonly Webshop: "webshop";
2674
+ readonly Promotion: "promotion";
2675
+ readonly Manual: "manual";
2676
+ readonly Expiry: "expiry";
2677
+ readonly Transfer: "transfer";
2678
+ };
2679
+ export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
2624
2680
  /**
2625
2681
  *
2626
2682
  * @export
@@ -2809,6 +2865,12 @@ export interface User {
2809
2865
  * @memberof User
2810
2866
  */
2811
2867
  'source': string;
2868
+ /**
2869
+ *
2870
+ * @type {UserRole}
2871
+ * @memberof User
2872
+ */
2873
+ 'role': UserRole;
2812
2874
  /**
2813
2875
  *
2814
2876
  * @type {string}
@@ -2827,12 +2889,6 @@ export interface User {
2827
2889
  * @memberof User
2828
2890
  */
2829
2891
  'manager'?: User;
2830
- /**
2831
- *
2832
- * @type {UserDetails}
2833
- * @memberof User
2834
- */
2835
- 'details': UserDetails;
2836
2892
  }
2837
2893
  /**
2838
2894
  *
@@ -2853,11 +2909,6 @@ export interface UserBalance {
2853
2909
  */
2854
2910
  'clientBalance'?: Balance;
2855
2911
  }
2856
- /**
2857
- * @type UserDetails
2858
- * @export
2859
- */
2860
- export type UserDetails = CustomeruserDetails | SalesUserDetails;
2861
2912
  /**
2862
2913
  *
2863
2914
  * @export
@@ -5746,6 +5797,15 @@ export declare const TransactionApiAxiosParamCreator: (configuration?: Configura
5746
5797
  * @throws {RequiredError}
5747
5798
  */
5748
5799
  listTransactions: (paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5800
+ /**
5801
+ * List existing transactions
5802
+ * @summary List existing transactions for users
5803
+ * @param {string} [paginationToken] This is the pagination token
5804
+ * @param {Array<string>} [userIDs] This is the user ID
5805
+ * @param {*} [options] Override http request option.
5806
+ * @throws {RequiredError}
5807
+ */
5808
+ listUserTransactions: (paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5749
5809
  };
5750
5810
  /**
5751
5811
  * TransactionApi - functional programming interface
@@ -5762,6 +5822,15 @@ export declare const TransactionApiFp: (configuration?: Configuration) => {
5762
5822
  * @throws {RequiredError}
5763
5823
  */
5764
5824
  listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>>;
5825
+ /**
5826
+ * List existing transactions
5827
+ * @summary List existing transactions for users
5828
+ * @param {string} [paginationToken] This is the pagination token
5829
+ * @param {Array<string>} [userIDs] This is the user ID
5830
+ * @param {*} [options] Override http request option.
5831
+ * @throws {RequiredError}
5832
+ */
5833
+ listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>>;
5765
5834
  };
5766
5835
  /**
5767
5836
  * TransactionApi - factory interface
@@ -5778,6 +5847,15 @@ export declare const TransactionApiFactory: (configuration?: Configuration, base
5778
5847
  * @throws {RequiredError}
5779
5848
  */
5780
5849
  listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse>;
5850
+ /**
5851
+ * List existing transactions
5852
+ * @summary List existing transactions for users
5853
+ * @param {string} [paginationToken] This is the pagination token
5854
+ * @param {Array<string>} [userIDs] This is the user ID
5855
+ * @param {*} [options] Override http request option.
5856
+ * @throws {RequiredError}
5857
+ */
5858
+ listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse>;
5781
5859
  };
5782
5860
  /**
5783
5861
  * TransactionApi - object-oriented interface
@@ -5797,12 +5875,29 @@ export declare class TransactionApi extends BaseAPI {
5797
5875
  * @memberof TransactionApi
5798
5876
  */
5799
5877
  listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionsResponse, any>>;
5878
+ /**
5879
+ * List existing transactions
5880
+ * @summary List existing transactions for users
5881
+ * @param {string} [paginationToken] This is the pagination token
5882
+ * @param {Array<string>} [userIDs] This is the user ID
5883
+ * @param {*} [options] Override http request option.
5884
+ * @throws {RequiredError}
5885
+ * @memberof TransactionApi
5886
+ */
5887
+ listUserTransactions(paginationToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionsResponse, any>>;
5800
5888
  }
5801
5889
  /**
5802
5890
  * UserApi - axios parameter creator
5803
5891
  * @export
5804
5892
  */
5805
5893
  export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
5894
+ /**
5895
+ * Get current user
5896
+ * @summary Get current user
5897
+ * @param {*} [options] Override http request option.
5898
+ * @throws {RequiredError}
5899
+ */
5900
+ getCurrentUser: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
5806
5901
  /**
5807
5902
  * Get user by id
5808
5903
  * @summary Get user
@@ -5846,6 +5941,13 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
5846
5941
  * @export
5847
5942
  */
5848
5943
  export declare const UserApiFp: (configuration?: Configuration) => {
5944
+ /**
5945
+ * Get current user
5946
+ * @summary Get current user
5947
+ * @param {*} [options] Override http request option.
5948
+ * @throws {RequiredError}
5949
+ */
5950
+ getCurrentUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>>;
5849
5951
  /**
5850
5952
  * Get user by id
5851
5953
  * @summary Get user
@@ -5889,6 +5991,13 @@ export declare const UserApiFp: (configuration?: Configuration) => {
5889
5991
  * @export
5890
5992
  */
5891
5993
  export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5994
+ /**
5995
+ * Get current user
5996
+ * @summary Get current user
5997
+ * @param {*} [options] Override http request option.
5998
+ * @throws {RequiredError}
5999
+ */
6000
+ getCurrentUser(options?: any): AxiosPromise<Profile>;
5892
6001
  /**
5893
6002
  * Get user by id
5894
6003
  * @summary Get user
@@ -5934,6 +6043,14 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
5934
6043
  * @extends {BaseAPI}
5935
6044
  */
5936
6045
  export declare class UserApi extends BaseAPI {
6046
+ /**
6047
+ * Get current user
6048
+ * @summary Get current user
6049
+ * @param {*} [options] Override http request option.
6050
+ * @throws {RequiredError}
6051
+ * @memberof UserApi
6052
+ */
6053
+ getCurrentUser(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Profile, any>>;
5937
6054
  /**
5938
6055
  * Get user by id
5939
6056
  * @summary Get user
package/dist/api.js CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
26
- exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = void 0;
27
- exports.UserApi = void 0;
25
+ exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
26
+ exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = void 0;
27
+ exports.UserApi = exports.UserApiFactory = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -280,6 +280,19 @@ exports.TransactionKind = {
280
280
  Credit: 'credit',
281
281
  Debit: 'debit'
282
282
  };
283
+ /**
284
+ *
285
+ * @export
286
+ * @enum {string}
287
+ */
288
+ exports.TransactionSource = {
289
+ SalesEvent: 'sales_event',
290
+ Webshop: 'webshop',
291
+ Promotion: 'promotion',
292
+ Manual: 'manual',
293
+ Expiry: 'expiry',
294
+ Transfer: 'transfer'
295
+ };
283
296
  /**
284
297
  *
285
298
  * @export
@@ -5454,6 +5467,42 @@ const TransactionApiAxiosParamCreator = function (configuration) {
5454
5467
  options: localVarRequestOptions,
5455
5468
  };
5456
5469
  }),
5470
+ /**
5471
+ * List existing transactions
5472
+ * @summary List existing transactions for users
5473
+ * @param {string} [paginationToken] This is the pagination token
5474
+ * @param {Array<string>} [userIDs] This is the user ID
5475
+ * @param {*} [options] Override http request option.
5476
+ * @throws {RequiredError}
5477
+ */
5478
+ listUserTransactions: (paginationToken, userIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
5479
+ const localVarPath = `/users/transactions`;
5480
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5481
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5482
+ let baseOptions;
5483
+ if (configuration) {
5484
+ baseOptions = configuration.baseOptions;
5485
+ }
5486
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5487
+ const localVarHeaderParameter = {};
5488
+ const localVarQueryParameter = {};
5489
+ // authentication customerJWT required
5490
+ // http bearer authentication required
5491
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5492
+ if (paginationToken !== undefined) {
5493
+ localVarQueryParameter['paginationToken'] = paginationToken;
5494
+ }
5495
+ if (userIDs) {
5496
+ localVarQueryParameter['userIDs'] = userIDs;
5497
+ }
5498
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5500
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5501
+ return {
5502
+ url: (0, common_1.toPathString)(localVarUrlObj),
5503
+ options: localVarRequestOptions,
5504
+ };
5505
+ }),
5457
5506
  };
5458
5507
  };
5459
5508
  exports.TransactionApiAxiosParamCreator = TransactionApiAxiosParamCreator;
@@ -5479,6 +5528,20 @@ const TransactionApiFp = function (configuration) {
5479
5528
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
5480
5529
  });
5481
5530
  },
5531
+ /**
5532
+ * List existing transactions
5533
+ * @summary List existing transactions for users
5534
+ * @param {string} [paginationToken] This is the pagination token
5535
+ * @param {Array<string>} [userIDs] This is the user ID
5536
+ * @param {*} [options] Override http request option.
5537
+ * @throws {RequiredError}
5538
+ */
5539
+ listUserTransactions(paginationToken, userIDs, options) {
5540
+ return __awaiter(this, void 0, void 0, function* () {
5541
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserTransactions(paginationToken, userIDs, options);
5542
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
5543
+ });
5544
+ },
5482
5545
  };
5483
5546
  };
5484
5547
  exports.TransactionApiFp = TransactionApiFp;
@@ -5501,6 +5564,17 @@ const TransactionApiFactory = function (configuration, basePath, axios) {
5501
5564
  listTransactions(paginationToken, clientIDs, userIDs, options) {
5502
5565
  return localVarFp.listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(axios, basePath));
5503
5566
  },
5567
+ /**
5568
+ * List existing transactions
5569
+ * @summary List existing transactions for users
5570
+ * @param {string} [paginationToken] This is the pagination token
5571
+ * @param {Array<string>} [userIDs] This is the user ID
5572
+ * @param {*} [options] Override http request option.
5573
+ * @throws {RequiredError}
5574
+ */
5575
+ listUserTransactions(paginationToken, userIDs, options) {
5576
+ return localVarFp.listUserTransactions(paginationToken, userIDs, options).then((request) => request(axios, basePath));
5577
+ },
5504
5578
  };
5505
5579
  };
5506
5580
  exports.TransactionApiFactory = TransactionApiFactory;
@@ -5524,6 +5598,18 @@ class TransactionApi extends base_1.BaseAPI {
5524
5598
  listTransactions(paginationToken, clientIDs, userIDs, options) {
5525
5599
  return (0, exports.TransactionApiFp)(this.configuration).listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(this.axios, this.basePath));
5526
5600
  }
5601
+ /**
5602
+ * List existing transactions
5603
+ * @summary List existing transactions for users
5604
+ * @param {string} [paginationToken] This is the pagination token
5605
+ * @param {Array<string>} [userIDs] This is the user ID
5606
+ * @param {*} [options] Override http request option.
5607
+ * @throws {RequiredError}
5608
+ * @memberof TransactionApi
5609
+ */
5610
+ listUserTransactions(paginationToken, userIDs, options) {
5611
+ return (0, exports.TransactionApiFp)(this.configuration).listUserTransactions(paginationToken, userIDs, options).then((request) => request(this.axios, this.basePath));
5612
+ }
5527
5613
  }
5528
5614
  exports.TransactionApi = TransactionApi;
5529
5615
  /**
@@ -5532,6 +5618,37 @@ exports.TransactionApi = TransactionApi;
5532
5618
  */
5533
5619
  const UserApiAxiosParamCreator = function (configuration) {
5534
5620
  return {
5621
+ /**
5622
+ * Get current user
5623
+ * @summary Get current user
5624
+ * @param {*} [options] Override http request option.
5625
+ * @throws {RequiredError}
5626
+ */
5627
+ getCurrentUser: (options = {}) => __awaiter(this, void 0, void 0, function* () {
5628
+ const localVarPath = `/me`;
5629
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5630
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5631
+ let baseOptions;
5632
+ if (configuration) {
5633
+ baseOptions = configuration.baseOptions;
5634
+ }
5635
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5636
+ const localVarHeaderParameter = {};
5637
+ const localVarQueryParameter = {};
5638
+ // authentication systemJWT required
5639
+ // http bearer authentication required
5640
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5641
+ // authentication customerJWT required
5642
+ // http bearer authentication required
5643
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5644
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5646
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5647
+ return {
5648
+ url: (0, common_1.toPathString)(localVarUrlObj),
5649
+ options: localVarRequestOptions,
5650
+ };
5651
+ }),
5535
5652
  /**
5536
5653
  * Get user by id
5537
5654
  * @summary Get user
@@ -5688,6 +5805,18 @@ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
5688
5805
  const UserApiFp = function (configuration) {
5689
5806
  const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
5690
5807
  return {
5808
+ /**
5809
+ * Get current user
5810
+ * @summary Get current user
5811
+ * @param {*} [options] Override http request option.
5812
+ * @throws {RequiredError}
5813
+ */
5814
+ getCurrentUser(options) {
5815
+ return __awaiter(this, void 0, void 0, function* () {
5816
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentUser(options);
5817
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
5818
+ });
5819
+ },
5691
5820
  /**
5692
5821
  * Get user by id
5693
5822
  * @summary Get user
@@ -5755,6 +5884,15 @@ exports.UserApiFp = UserApiFp;
5755
5884
  const UserApiFactory = function (configuration, basePath, axios) {
5756
5885
  const localVarFp = (0, exports.UserApiFp)(configuration);
5757
5886
  return {
5887
+ /**
5888
+ * Get current user
5889
+ * @summary Get current user
5890
+ * @param {*} [options] Override http request option.
5891
+ * @throws {RequiredError}
5892
+ */
5893
+ getCurrentUser(options) {
5894
+ return localVarFp.getCurrentUser(options).then((request) => request(axios, basePath));
5895
+ },
5758
5896
  /**
5759
5897
  * Get user by id
5760
5898
  * @summary Get user
@@ -5810,6 +5948,16 @@ exports.UserApiFactory = UserApiFactory;
5810
5948
  * @extends {BaseAPI}
5811
5949
  */
5812
5950
  class UserApi extends base_1.BaseAPI {
5951
+ /**
5952
+ * Get current user
5953
+ * @summary Get current user
5954
+ * @param {*} [options] Override http request option.
5955
+ * @throws {RequiredError}
5956
+ * @memberof UserApi
5957
+ */
5958
+ getCurrentUser(options) {
5959
+ return (0, exports.UserApiFp)(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
5960
+ }
5813
5961
  /**
5814
5962
  * Get user by id
5815
5963
  * @summary Get user