@equisoft/account-service-sdk-typescript 9.5.1-snapshot.20250525214639 → 9.5.1-snapshot.20250605015735

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.
@@ -272,6 +272,14 @@ export declare class UserApi extends runtime.BaseAPI {
272
272
  * Get user\'s owner organization
273
273
  */
274
274
  getOwnerOrganization(requestParameters: GetOwnerOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Organization>;
275
+ /**
276
+ * Get detailed information on current user.
277
+ */
278
+ getSelfRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
279
+ /**
280
+ * Get detailed information on current user.
281
+ */
282
+ getSelf(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
275
283
  /**
276
284
  * Get detailed information about a user account.
277
285
  */
@@ -623,6 +623,39 @@ class UserApi extends runtime.BaseAPI {
623
623
  return yield response.value();
624
624
  });
625
625
  }
626
+ /**
627
+ * Get detailed information on current user.
628
+ */
629
+ getSelfRaw(initOverrides) {
630
+ return __awaiter(this, void 0, void 0, function* () {
631
+ const queryParameters = {};
632
+ const headerParameters = {};
633
+ if (this.configuration && this.configuration.accessToken) {
634
+ // oauth required
635
+ const token = this.configuration.accessToken;
636
+ const tokenString = yield token("OAuth2", []);
637
+ if (tokenString) {
638
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
639
+ }
640
+ }
641
+ const response = yield this.request({
642
+ path: `/users/self`,
643
+ method: 'GET',
644
+ headers: headerParameters,
645
+ query: queryParameters,
646
+ }, initOverrides);
647
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserFromJSON)(jsonValue));
648
+ });
649
+ }
650
+ /**
651
+ * Get detailed information on current user.
652
+ */
653
+ getSelf(initOverrides) {
654
+ return __awaiter(this, void 0, void 0, function* () {
655
+ const response = yield this.getSelfRaw(initOverrides);
656
+ return yield response.value();
657
+ });
658
+ }
626
659
  /**
627
660
  * Get detailed information about a user account.
628
661
  */
@@ -272,6 +272,14 @@ export declare class UserApi extends runtime.BaseAPI {
272
272
  * Get user\'s owner organization
273
273
  */
274
274
  getOwnerOrganization(requestParameters: GetOwnerOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Organization>;
275
+ /**
276
+ * Get detailed information on current user.
277
+ */
278
+ getSelfRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
279
+ /**
280
+ * Get detailed information on current user.
281
+ */
282
+ getSelf(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
275
283
  /**
276
284
  * Get detailed information about a user account.
277
285
  */
@@ -620,6 +620,39 @@ export class UserApi extends runtime.BaseAPI {
620
620
  return yield response.value();
621
621
  });
622
622
  }
623
+ /**
624
+ * Get detailed information on current user.
625
+ */
626
+ getSelfRaw(initOverrides) {
627
+ return __awaiter(this, void 0, void 0, function* () {
628
+ const queryParameters = {};
629
+ const headerParameters = {};
630
+ if (this.configuration && this.configuration.accessToken) {
631
+ // oauth required
632
+ const token = this.configuration.accessToken;
633
+ const tokenString = yield token("OAuth2", []);
634
+ if (tokenString) {
635
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
636
+ }
637
+ }
638
+ const response = yield this.request({
639
+ path: `/users/self`,
640
+ method: 'GET',
641
+ headers: headerParameters,
642
+ query: queryParameters,
643
+ }, initOverrides);
644
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));
645
+ });
646
+ }
647
+ /**
648
+ * Get detailed information on current user.
649
+ */
650
+ getSelf(initOverrides) {
651
+ return __awaiter(this, void 0, void 0, function* () {
652
+ const response = yield this.getSelfRaw(initOverrides);
653
+ return yield response.value();
654
+ });
655
+ }
623
656
  /**
624
657
  * Get detailed information about a user account.
625
658
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/account-service-sdk-typescript",
3
- "version": "9.5.1-snapshot.20250525214639",
3
+ "version": "9.5.1-snapshot.20250605015735",
4
4
  "description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -978,6 +978,41 @@ export class UserApi extends runtime.BaseAPI {
978
978
  return await response.value();
979
979
  }
980
980
 
981
+ /**
982
+ * Get detailed information on current user.
983
+ */
984
+ async getSelfRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>> {
985
+ const queryParameters: any = {};
986
+
987
+ const headerParameters: runtime.HTTPHeaders = {};
988
+
989
+ if (this.configuration && this.configuration.accessToken) {
990
+ // oauth required
991
+ const token = this.configuration.accessToken;
992
+ const tokenString = await token("OAuth2", []);
993
+ if (tokenString) {
994
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
995
+ }
996
+ }
997
+
998
+ const response = await this.request({
999
+ path: `/users/self`,
1000
+ method: 'GET',
1001
+ headers: headerParameters,
1002
+ query: queryParameters,
1003
+ }, initOverrides);
1004
+
1005
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));
1006
+ }
1007
+
1008
+ /**
1009
+ * Get detailed information on current user.
1010
+ */
1011
+ async getSelf(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User> {
1012
+ const response = await this.getSelfRaw(initOverrides);
1013
+ return await response.value();
1014
+ }
1015
+
981
1016
  /**
982
1017
  * Get detailed information about a user account.
983
1018
  */