flexinet-api 0.0.494-prerelease0 → 0.0.502-prerelease0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.494-prerelease0
1
+ ## flexinet-api@0.0.502-prerelease0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install flexinet-api@0.0.494-prerelease0 --save
39
+ npm install flexinet-api@0.0.502-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -1627,6 +1627,31 @@ export interface ProductsResponse {
1627
1627
  */
1628
1628
  'nextToken'?: string;
1629
1629
  }
1630
+ /**
1631
+ *
1632
+ * @export
1633
+ * @interface Profile
1634
+ */
1635
+ export interface Profile {
1636
+ /**
1637
+ *
1638
+ * @type {User}
1639
+ * @memberof Profile
1640
+ */
1641
+ 'user': User;
1642
+ /**
1643
+ *
1644
+ * @type {ProfileDetails}
1645
+ * @memberof Profile
1646
+ */
1647
+ 'details': ProfileDetails;
1648
+ }
1649
+ /**
1650
+ * @type ProfileDetails
1651
+ * @export
1652
+ */
1653
+ export type ProfileDetails = CustomeruserDetails | SystemUserDetails;
1654
+
1630
1655
  /**
1631
1656
  *
1632
1657
  * @export
@@ -2091,39 +2116,6 @@ export const RuleKind = {
2091
2116
  export type RuleKind = typeof RuleKind[keyof typeof RuleKind];
2092
2117
 
2093
2118
 
2094
- /**
2095
- *
2096
- * @export
2097
- * @interface SalesUserDetails
2098
- */
2099
- export interface SalesUserDetails {
2100
- /**
2101
- *
2102
- * @type {string}
2103
- * @memberof SalesUserDetails
2104
- */
2105
- 'name': string;
2106
- /**
2107
- *
2108
- * @type {string}
2109
- * @memberof SalesUserDetails
2110
- */
2111
- 'email': string;
2112
- /**
2113
- *
2114
- * @type {UserRole}
2115
- * @memberof SalesUserDetails
2116
- */
2117
- 'role': UserRole;
2118
- /**
2119
- *
2120
- * @type {string}
2121
- * @memberof SalesUserDetails
2122
- */
2123
- 'departmentId'?: string;
2124
- }
2125
-
2126
-
2127
2119
  /**
2128
2120
  *
2129
2121
  * @export
@@ -2219,6 +2211,43 @@ export const SortDirection = {
2219
2211
  export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
2220
2212
 
2221
2213
 
2214
+ /**
2215
+ *
2216
+ * @export
2217
+ * @interface SystemUserDetails
2218
+ */
2219
+ export interface SystemUserDetails {
2220
+ /**
2221
+ *
2222
+ * @type {string}
2223
+ * @memberof SystemUserDetails
2224
+ */
2225
+ 'firstName'?: string;
2226
+ /**
2227
+ *
2228
+ * @type {string}
2229
+ * @memberof SystemUserDetails
2230
+ */
2231
+ 'lastName'?: string;
2232
+ /**
2233
+ *
2234
+ * @type {string}
2235
+ * @memberof SystemUserDetails
2236
+ */
2237
+ 'email'?: string;
2238
+ /**
2239
+ *
2240
+ * @type {string}
2241
+ * @memberof SystemUserDetails
2242
+ */
2243
+ 'department'?: string;
2244
+ /**
2245
+ *
2246
+ * @type {string}
2247
+ * @memberof SystemUserDetails
2248
+ */
2249
+ 'jobTitle'?: string;
2250
+ }
2222
2251
  /**
2223
2252
  *
2224
2253
  * @export
@@ -2987,6 +3016,12 @@ export interface User {
2987
3016
  * @memberof User
2988
3017
  */
2989
3018
  'source': string;
3019
+ /**
3020
+ *
3021
+ * @type {UserRole}
3022
+ * @memberof User
3023
+ */
3024
+ 'role': UserRole;
2990
3025
  /**
2991
3026
  *
2992
3027
  * @type {string}
@@ -3005,13 +3040,9 @@ export interface User {
3005
3040
  * @memberof User
3006
3041
  */
3007
3042
  'manager'?: User;
3008
- /**
3009
- *
3010
- * @type {UserDetails}
3011
- * @memberof User
3012
- */
3013
- 'details': UserDetails;
3014
3043
  }
3044
+
3045
+
3015
3046
  /**
3016
3047
  *
3017
3048
  * @export
@@ -3031,12 +3062,6 @@ export interface UserBalance {
3031
3062
  */
3032
3063
  'clientBalance'?: Balance;
3033
3064
  }
3034
- /**
3035
- * @type UserDetails
3036
- * @export
3037
- */
3038
- export type UserDetails = CustomeruserDetails | SalesUserDetails;
3039
-
3040
3065
  /**
3041
3066
  *
3042
3067
  * @export
@@ -8989,6 +9014,44 @@ export class TransactionApi extends BaseAPI {
8989
9014
  */
8990
9015
  export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
8991
9016
  return {
9017
+ /**
9018
+ * Get current user
9019
+ * @summary Get current user
9020
+ * @param {*} [options] Override http request option.
9021
+ * @throws {RequiredError}
9022
+ */
9023
+ getCurrentUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9024
+ const localVarPath = `/me`;
9025
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9026
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9027
+ let baseOptions;
9028
+ if (configuration) {
9029
+ baseOptions = configuration.baseOptions;
9030
+ }
9031
+
9032
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9033
+ const localVarHeaderParameter = {} as any;
9034
+ const localVarQueryParameter = {} as any;
9035
+
9036
+ // authentication systemJWT required
9037
+ // http bearer authentication required
9038
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9039
+
9040
+ // authentication customerJWT required
9041
+ // http bearer authentication required
9042
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9043
+
9044
+
9045
+
9046
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9047
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9048
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9049
+
9050
+ return {
9051
+ url: toPathString(localVarUrlObj),
9052
+ options: localVarRequestOptions,
9053
+ };
9054
+ },
8992
9055
  /**
8993
9056
  * Get user by id
8994
9057
  * @summary Get user
@@ -9175,6 +9238,16 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
9175
9238
  export const UserApiFp = function(configuration?: Configuration) {
9176
9239
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
9177
9240
  return {
9241
+ /**
9242
+ * Get current user
9243
+ * @summary Get current user
9244
+ * @param {*} [options] Override http request option.
9245
+ * @throws {RequiredError}
9246
+ */
9247
+ async getCurrentUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>> {
9248
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUser(options);
9249
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9250
+ },
9178
9251
  /**
9179
9252
  * Get user by id
9180
9253
  * @summary Get user
@@ -9234,6 +9307,15 @@ export const UserApiFp = function(configuration?: Configuration) {
9234
9307
  export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9235
9308
  const localVarFp = UserApiFp(configuration)
9236
9309
  return {
9310
+ /**
9311
+ * Get current user
9312
+ * @summary Get current user
9313
+ * @param {*} [options] Override http request option.
9314
+ * @throws {RequiredError}
9315
+ */
9316
+ getCurrentUser(options?: any): AxiosPromise<Profile> {
9317
+ return localVarFp.getCurrentUser(options).then((request) => request(axios, basePath));
9318
+ },
9237
9319
  /**
9238
9320
  * Get user by id
9239
9321
  * @summary Get user
@@ -9289,6 +9371,17 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
9289
9371
  * @extends {BaseAPI}
9290
9372
  */
9291
9373
  export class UserApi extends BaseAPI {
9374
+ /**
9375
+ * Get current user
9376
+ * @summary Get current user
9377
+ * @param {*} [options] Override http request option.
9378
+ * @throws {RequiredError}
9379
+ * @memberof UserApi
9380
+ */
9381
+ public getCurrentUser(options?: AxiosRequestConfig) {
9382
+ return UserApiFp(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
9383
+ }
9384
+
9292
9385
  /**
9293
9386
  * Get user by id
9294
9387
  * @summary Get user
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
@@ -2835,6 +2865,12 @@ export interface User {
2835
2865
  * @memberof User
2836
2866
  */
2837
2867
  'source': string;
2868
+ /**
2869
+ *
2870
+ * @type {UserRole}
2871
+ * @memberof User
2872
+ */
2873
+ 'role': UserRole;
2838
2874
  /**
2839
2875
  *
2840
2876
  * @type {string}
@@ -2853,12 +2889,6 @@ export interface User {
2853
2889
  * @memberof User
2854
2890
  */
2855
2891
  'manager'?: User;
2856
- /**
2857
- *
2858
- * @type {UserDetails}
2859
- * @memberof User
2860
- */
2861
- 'details': UserDetails;
2862
2892
  }
2863
2893
  /**
2864
2894
  *
@@ -2879,11 +2909,6 @@ export interface UserBalance {
2879
2909
  */
2880
2910
  'clientBalance'?: Balance;
2881
2911
  }
2882
- /**
2883
- * @type UserDetails
2884
- * @export
2885
- */
2886
- export type UserDetails = CustomeruserDetails | SalesUserDetails;
2887
2912
  /**
2888
2913
  *
2889
2914
  * @export
@@ -5866,6 +5891,13 @@ export declare class TransactionApi extends BaseAPI {
5866
5891
  * @export
5867
5892
  */
5868
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>;
5869
5901
  /**
5870
5902
  * Get user by id
5871
5903
  * @summary Get user
@@ -5909,6 +5941,13 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
5909
5941
  * @export
5910
5942
  */
5911
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>>;
5912
5951
  /**
5913
5952
  * Get user by id
5914
5953
  * @summary Get user
@@ -5952,6 +5991,13 @@ export declare const UserApiFp: (configuration?: Configuration) => {
5952
5991
  * @export
5953
5992
  */
5954
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>;
5955
6001
  /**
5956
6002
  * Get user by id
5957
6003
  * @summary Get user
@@ -5997,6 +6043,14 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
5997
6043
  * @extends {BaseAPI}
5998
6044
  */
5999
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>>;
6000
6054
  /**
6001
6055
  * Get user by id
6002
6056
  * @summary Get user
package/dist/api.js CHANGED
@@ -5618,6 +5618,37 @@ exports.TransactionApi = TransactionApi;
5618
5618
  */
5619
5619
  const UserApiAxiosParamCreator = function (configuration) {
5620
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
+ }),
5621
5652
  /**
5622
5653
  * Get user by id
5623
5654
  * @summary Get user
@@ -5774,6 +5805,18 @@ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
5774
5805
  const UserApiFp = function (configuration) {
5775
5806
  const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
5776
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
+ },
5777
5820
  /**
5778
5821
  * Get user by id
5779
5822
  * @summary Get user
@@ -5841,6 +5884,15 @@ exports.UserApiFp = UserApiFp;
5841
5884
  const UserApiFactory = function (configuration, basePath, axios) {
5842
5885
  const localVarFp = (0, exports.UserApiFp)(configuration);
5843
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
+ },
5844
5896
  /**
5845
5897
  * Get user by id
5846
5898
  * @summary Get user
@@ -5896,6 +5948,16 @@ exports.UserApiFactory = UserApiFactory;
5896
5948
  * @extends {BaseAPI}
5897
5949
  */
5898
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
+ }
5899
5961
  /**
5900
5962
  * Get user by id
5901
5963
  * @summary Get user
package/dist/esm/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
@@ -2835,6 +2865,12 @@ export interface User {
2835
2865
  * @memberof User
2836
2866
  */
2837
2867
  'source': string;
2868
+ /**
2869
+ *
2870
+ * @type {UserRole}
2871
+ * @memberof User
2872
+ */
2873
+ 'role': UserRole;
2838
2874
  /**
2839
2875
  *
2840
2876
  * @type {string}
@@ -2853,12 +2889,6 @@ export interface User {
2853
2889
  * @memberof User
2854
2890
  */
2855
2891
  'manager'?: User;
2856
- /**
2857
- *
2858
- * @type {UserDetails}
2859
- * @memberof User
2860
- */
2861
- 'details': UserDetails;
2862
2892
  }
2863
2893
  /**
2864
2894
  *
@@ -2879,11 +2909,6 @@ export interface UserBalance {
2879
2909
  */
2880
2910
  'clientBalance'?: Balance;
2881
2911
  }
2882
- /**
2883
- * @type UserDetails
2884
- * @export
2885
- */
2886
- export type UserDetails = CustomeruserDetails | SalesUserDetails;
2887
2912
  /**
2888
2913
  *
2889
2914
  * @export
@@ -5866,6 +5891,13 @@ export declare class TransactionApi extends BaseAPI {
5866
5891
  * @export
5867
5892
  */
5868
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>;
5869
5901
  /**
5870
5902
  * Get user by id
5871
5903
  * @summary Get user
@@ -5909,6 +5941,13 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
5909
5941
  * @export
5910
5942
  */
5911
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>>;
5912
5951
  /**
5913
5952
  * Get user by id
5914
5953
  * @summary Get user
@@ -5952,6 +5991,13 @@ export declare const UserApiFp: (configuration?: Configuration) => {
5952
5991
  * @export
5953
5992
  */
5954
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>;
5955
6001
  /**
5956
6002
  * Get user by id
5957
6003
  * @summary Get user
@@ -5997,6 +6043,14 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
5997
6043
  * @extends {BaseAPI}
5998
6044
  */
5999
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>>;
6000
6054
  /**
6001
6055
  * Get user by id
6002
6056
  * @summary Get user
package/dist/esm/api.js CHANGED
@@ -5549,6 +5549,37 @@ export class TransactionApi extends BaseAPI {
5549
5549
  */
5550
5550
  export const UserApiAxiosParamCreator = function (configuration) {
5551
5551
  return {
5552
+ /**
5553
+ * Get current user
5554
+ * @summary Get current user
5555
+ * @param {*} [options] Override http request option.
5556
+ * @throws {RequiredError}
5557
+ */
5558
+ getCurrentUser: (options = {}) => __awaiter(this, void 0, void 0, function* () {
5559
+ const localVarPath = `/me`;
5560
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5561
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5562
+ let baseOptions;
5563
+ if (configuration) {
5564
+ baseOptions = configuration.baseOptions;
5565
+ }
5566
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5567
+ const localVarHeaderParameter = {};
5568
+ const localVarQueryParameter = {};
5569
+ // authentication systemJWT required
5570
+ // http bearer authentication required
5571
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5572
+ // authentication customerJWT required
5573
+ // http bearer authentication required
5574
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5575
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5576
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5577
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5578
+ return {
5579
+ url: toPathString(localVarUrlObj),
5580
+ options: localVarRequestOptions,
5581
+ };
5582
+ }),
5552
5583
  /**
5553
5584
  * Get user by id
5554
5585
  * @summary Get user
@@ -5704,6 +5735,18 @@ export const UserApiAxiosParamCreator = function (configuration) {
5704
5735
  export const UserApiFp = function (configuration) {
5705
5736
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
5706
5737
  return {
5738
+ /**
5739
+ * Get current user
5740
+ * @summary Get current user
5741
+ * @param {*} [options] Override http request option.
5742
+ * @throws {RequiredError}
5743
+ */
5744
+ getCurrentUser(options) {
5745
+ return __awaiter(this, void 0, void 0, function* () {
5746
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentUser(options);
5747
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5748
+ });
5749
+ },
5707
5750
  /**
5708
5751
  * Get user by id
5709
5752
  * @summary Get user
@@ -5770,6 +5813,15 @@ export const UserApiFp = function (configuration) {
5770
5813
  export const UserApiFactory = function (configuration, basePath, axios) {
5771
5814
  const localVarFp = UserApiFp(configuration);
5772
5815
  return {
5816
+ /**
5817
+ * Get current user
5818
+ * @summary Get current user
5819
+ * @param {*} [options] Override http request option.
5820
+ * @throws {RequiredError}
5821
+ */
5822
+ getCurrentUser(options) {
5823
+ return localVarFp.getCurrentUser(options).then((request) => request(axios, basePath));
5824
+ },
5773
5825
  /**
5774
5826
  * Get user by id
5775
5827
  * @summary Get user
@@ -5824,6 +5876,16 @@ export const UserApiFactory = function (configuration, basePath, axios) {
5824
5876
  * @extends {BaseAPI}
5825
5877
  */
5826
5878
  export class UserApi extends BaseAPI {
5879
+ /**
5880
+ * Get current user
5881
+ * @summary Get current user
5882
+ * @param {*} [options] Override http request option.
5883
+ * @throws {RequiredError}
5884
+ * @memberof UserApi
5885
+ */
5886
+ getCurrentUser(options) {
5887
+ return UserApiFp(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
5888
+ }
5827
5889
  /**
5828
5890
  * Get user by id
5829
5891
  * @summary Get user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.494-prerelease0",
3
+ "version": "0.0.502-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {