@fenixalliance/abs-api-client 1.0.12 → 1.0.14

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.
Files changed (145) hide show
  1. package/app/index.js +3 -3
  2. package/app/index.ts +1 -1
  3. package/clients/authService/core/ApiError.js +20 -0
  4. package/clients/authService/core/ApiError.ts +25 -0
  5. package/clients/authService/core/ApiRequestOptions.js +2 -0
  6. package/clients/authService/core/ApiRequestOptions.ts +17 -0
  7. package/clients/authService/core/ApiResult.js +2 -0
  8. package/clients/authService/core/ApiResult.ts +11 -0
  9. package/clients/authService/core/CancelablePromise.js +104 -0
  10. package/clients/authService/core/CancelablePromise.ts +131 -0
  11. package/clients/authService/core/OpenAPI.js +14 -0
  12. package/clients/authService/core/OpenAPI.ts +32 -0
  13. package/clients/authService/core/request.js +294 -0
  14. package/clients/authService/core/request.ts +322 -0
  15. package/clients/authService/index.js +28 -0
  16. package/clients/authService/index.ts +48 -0
  17. package/clients/authService/models/AccessTokenResponse.js +2 -0
  18. package/clients/authService/models/AccessTokenResponse.ts +11 -0
  19. package/clients/authService/models/AccountHolderCreateDto.js +12 -0
  20. package/clients/authService/models/AccountHolderCreateDto.ts +41 -0
  21. package/clients/authService/models/AccountHolderCreateDtoEnvelope.js +2 -0
  22. package/clients/authService/models/AccountHolderCreateDtoEnvelope.ts +14 -0
  23. package/clients/authService/models/ApiAuthorizationResult.js +2 -0
  24. package/clients/authService/models/ApiAuthorizationResult.ts +17 -0
  25. package/clients/authService/models/ApiAuthorizationResultEnvelope.js +2 -0
  26. package/clients/authService/models/ApiAuthorizationResultEnvelope.ts +14 -0
  27. package/clients/authService/models/EnrollmentId.js +2 -0
  28. package/clients/authService/models/EnrollmentId.ts +5 -0
  29. package/clients/authService/models/ErrorEnvelope.js +2 -0
  30. package/clients/authService/models/ErrorEnvelope.ts +12 -0
  31. package/clients/authService/models/ForgotPasswordRequest.js +2 -0
  32. package/clients/authService/models/ForgotPasswordRequest.ts +8 -0
  33. package/clients/authService/models/HttpValidationProblemDetails.js +2 -0
  34. package/clients/authService/models/HttpValidationProblemDetails.ts +5 -0
  35. package/clients/authService/models/InfoRequest.js +2 -0
  36. package/clients/authService/models/InfoRequest.ts +10 -0
  37. package/clients/authService/models/InfoResponse.js +2 -0
  38. package/clients/authService/models/InfoResponse.ts +9 -0
  39. package/clients/authService/models/JsonWebKey.js +2 -0
  40. package/clients/authService/models/JsonWebKey.ts +13 -0
  41. package/clients/authService/models/JsonWebKeySet.js +2 -0
  42. package/clients/authService/models/JsonWebKeySet.ts +9 -0
  43. package/clients/authService/models/JsonWebKeySetEnvelope.js +2 -0
  44. package/clients/authService/models/JsonWebKeySetEnvelope.ts +14 -0
  45. package/clients/authService/models/JsonWebToken.js +2 -0
  46. package/clients/authService/models/JsonWebToken.ts +15 -0
  47. package/clients/authService/models/JsonWebTokenEnvelope.js +2 -0
  48. package/clients/authService/models/JsonWebTokenEnvelope.ts +14 -0
  49. package/clients/authService/models/JsonWebTokenHeader.js +2 -0
  50. package/clients/authService/models/JsonWebTokenHeader.ts +11 -0
  51. package/clients/authService/models/JsonWebTokenPayload.js +2 -0
  52. package/clients/authService/models/JsonWebTokenPayload.ts +17 -0
  53. package/clients/authService/models/LoginRequest.js +2 -0
  54. package/clients/authService/models/LoginRequest.ts +11 -0
  55. package/clients/authService/models/OAuthTokenRequest.js +2 -0
  56. package/clients/authService/models/OAuthTokenRequest.ts +12 -0
  57. package/clients/authService/models/OpenIdConfiguration.js +2 -0
  58. package/clients/authService/models/OpenIdConfiguration.ts +19 -0
  59. package/clients/authService/models/OpenIdConfigurationEnvelope.js +2 -0
  60. package/clients/authService/models/OpenIdConfigurationEnvelope.ts +14 -0
  61. package/clients/authService/models/RefreshRequest.js +2 -0
  62. package/clients/authService/models/RefreshRequest.ts +8 -0
  63. package/clients/authService/models/RegisterRequest.js +2 -0
  64. package/clients/authService/models/RegisterRequest.ts +9 -0
  65. package/clients/authService/models/ResendConfirmationEmailRequest.js +2 -0
  66. package/clients/authService/models/ResendConfirmationEmailRequest.ts +8 -0
  67. package/clients/authService/models/ResetPasswordRequest.js +2 -0
  68. package/clients/authService/models/ResetPasswordRequest.ts +10 -0
  69. package/clients/authService/models/SigninModel.js +2 -0
  70. package/clients/authService/models/SigninModel.ts +9 -0
  71. package/clients/authService/models/StringListEnvelope.js +2 -0
  72. package/clients/authService/models/StringListEnvelope.ts +13 -0
  73. package/clients/authService/models/TenantId.js +2 -0
  74. package/clients/authService/models/TenantId.ts +5 -0
  75. package/clients/authService/models/TwoFactorRequest.js +2 -0
  76. package/clients/authService/models/TwoFactorRequest.ts +12 -0
  77. package/clients/authService/models/TwoFactorResponse.js +2 -0
  78. package/clients/authService/models/TwoFactorResponse.ts +12 -0
  79. package/clients/authService/models/UserId.js +2 -0
  80. package/clients/authService/models/UserId.ts +5 -0
  81. package/clients/authService/services/ApplicationsService.js +112 -0
  82. package/clients/authService/services/ApplicationsService.ts +132 -0
  83. package/clients/authService/services/AuthService.js +246 -0
  84. package/clients/authService/services/AuthService.ts +293 -0
  85. package/clients/authService/services/CheckerService.js +22 -0
  86. package/clients/authService/services/CheckerService.ts +25 -0
  87. package/clients/{holderService/services/TenantsService.js → authService/services/OAuthService.js} +52 -51
  88. package/clients/authService/services/OAuthService.ts +183 -0
  89. package/clients/authService/services/ResourceService.js +22 -0
  90. package/clients/authService/services/ResourceService.ts +25 -0
  91. package/clients/authService/services/UserInfoService.js +36 -0
  92. package/clients/authService/services/UserInfoService.ts +41 -0
  93. package/clients/cartService/index.js +3 -7
  94. package/clients/cartService/index.ts +1 -3
  95. package/clients/cartService/services/{CartService.js → CartsService.js} +3 -3
  96. package/clients/cartService/services/{CartService.ts → CartsService.ts} +1 -1
  97. package/clients/cartService/services/WishListsService.js +0 -321
  98. package/clients/cartService/services/WishListsService.ts +0 -373
  99. package/clients/holderService/index.js +1 -5
  100. package/clients/holderService/index.ts +0 -2
  101. package/clients/holderService/services/UserService.js +143 -0
  102. package/clients/holderService/services/UserService.ts +166 -0
  103. package/clients/identityService/index.js +3 -1
  104. package/clients/identityService/index.ts +13 -0
  105. package/clients/identityService/models/AccessTokenResponse.js +2 -0
  106. package/clients/identityService/models/AccessTokenResponse.ts +11 -0
  107. package/clients/identityService/models/ForgotPasswordRequest.js +2 -0
  108. package/clients/identityService/models/ForgotPasswordRequest.ts +8 -0
  109. package/clients/identityService/models/HttpValidationProblemDetails.js +2 -0
  110. package/clients/identityService/models/HttpValidationProblemDetails.ts +5 -0
  111. package/clients/identityService/models/InfoRequest.js +2 -0
  112. package/clients/identityService/models/InfoRequest.ts +10 -0
  113. package/clients/identityService/models/InfoResponse.js +2 -0
  114. package/clients/identityService/models/InfoResponse.ts +9 -0
  115. package/clients/identityService/models/LoginRequest.js +2 -0
  116. package/clients/identityService/models/LoginRequest.ts +11 -0
  117. package/clients/identityService/models/RefreshRequest.js +2 -0
  118. package/clients/identityService/models/RefreshRequest.ts +8 -0
  119. package/clients/identityService/models/RegisterRequest.js +2 -0
  120. package/clients/identityService/models/RegisterRequest.ts +9 -0
  121. package/clients/identityService/models/ResendConfirmationEmailRequest.js +2 -0
  122. package/clients/identityService/models/ResendConfirmationEmailRequest.ts +8 -0
  123. package/clients/identityService/models/ResetPasswordRequest.js +2 -0
  124. package/clients/identityService/models/ResetPasswordRequest.ts +10 -0
  125. package/clients/identityService/models/TwoFactorRequest.js +2 -0
  126. package/clients/identityService/models/TwoFactorRequest.ts +12 -0
  127. package/clients/identityService/models/TwoFactorResponse.js +2 -0
  128. package/clients/identityService/models/TwoFactorResponse.ts +12 -0
  129. package/clients/identityService/services/FenixAllianceAbsModulesWebService.js +246 -0
  130. package/clients/identityService/services/FenixAllianceAbsModulesWebService.ts +293 -0
  131. package/clients/tenantService/services/TenantsService.js +33 -57
  132. package/clients/tenantService/services/TenantsService.ts +33 -65
  133. package/package.json +1 -1
  134. package/schemas/authService/schema.s.js +6 -0
  135. package/schemas/authService/schema.s.ts +894 -0
  136. package/schemas/identityService/schema.s.ts +382 -1
  137. package/schemas/tenantService/schema.s.ts +144 -70
  138. package/tsconfig.json +1 -1
  139. package/clients/cartService/services/CartLinesService.js +0 -173
  140. package/clients/cartService/services/CartLinesService.ts +0 -203
  141. package/clients/cartService/services/ECommerceService.js +0 -1104
  142. package/clients/cartService/services/ECommerceService.ts +0 -1289
  143. package/clients/holderService/services/IdentityService.js +0 -364
  144. package/clients/holderService/services/IdentityService.ts +0 -421
  145. package/clients/holderService/services/TenantsService.ts +0 -176
@@ -0,0 +1,246 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class AuthService {
7
+ /**
8
+ * @returns any OK
9
+ * @throws ApiError
10
+ */
11
+ static getVersion() {
12
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
13
+ method: 'GET',
14
+ url: '/version',
15
+ });
16
+ }
17
+ /**
18
+ * @returns any OK
19
+ * @throws ApiError
20
+ */
21
+ static getHealth() {
22
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
23
+ method: 'GET',
24
+ url: '/health',
25
+ });
26
+ }
27
+ /**
28
+ * @returns any OK
29
+ * @throws ApiError
30
+ */
31
+ static getHello() {
32
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
33
+ method: 'GET',
34
+ url: '/hello',
35
+ });
36
+ }
37
+ /**
38
+ * @param requestBody
39
+ * @returns any OK
40
+ * @throws ApiError
41
+ */
42
+ static postRegister(requestBody) {
43
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
44
+ method: 'POST',
45
+ url: '/register',
46
+ body: requestBody,
47
+ mediaType: 'application/json',
48
+ errors: {
49
+ 400: `Bad Request`,
50
+ },
51
+ });
52
+ }
53
+ /**
54
+ * @param useCookies
55
+ * @param useSessionCookies
56
+ * @param requestBody
57
+ * @returns AccessTokenResponse OK
58
+ * @throws ApiError
59
+ */
60
+ static postLogin(useCookies, useSessionCookies, requestBody) {
61
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
62
+ method: 'POST',
63
+ url: '/login',
64
+ query: {
65
+ 'useCookies': useCookies,
66
+ 'useSessionCookies': useSessionCookies,
67
+ },
68
+ body: requestBody,
69
+ mediaType: 'application/json',
70
+ });
71
+ }
72
+ /**
73
+ * @param requestBody
74
+ * @returns AccessTokenResponse OK
75
+ * @throws ApiError
76
+ */
77
+ static postRefresh(requestBody) {
78
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
79
+ method: 'POST',
80
+ url: '/refresh',
81
+ body: requestBody,
82
+ mediaType: 'application/json',
83
+ });
84
+ }
85
+ /**
86
+ * @param userId
87
+ * @param code
88
+ * @param changedEmail
89
+ * @returns any OK
90
+ * @throws ApiError
91
+ */
92
+ static mapIdentityApiConfirmEmail(userId, code, changedEmail) {
93
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
94
+ method: 'GET',
95
+ url: '/confirmEmail',
96
+ query: {
97
+ 'userId': userId,
98
+ 'code': code,
99
+ 'changedEmail': changedEmail,
100
+ },
101
+ });
102
+ }
103
+ /**
104
+ * @param requestBody
105
+ * @returns any OK
106
+ * @throws ApiError
107
+ */
108
+ static postResendConfirmationEmail(requestBody) {
109
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
110
+ method: 'POST',
111
+ url: '/resendConfirmationEmail',
112
+ body: requestBody,
113
+ mediaType: 'application/json',
114
+ });
115
+ }
116
+ /**
117
+ * @param requestBody
118
+ * @returns any OK
119
+ * @throws ApiError
120
+ */
121
+ static postForgotPassword(requestBody) {
122
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
123
+ method: 'POST',
124
+ url: '/forgotPassword',
125
+ body: requestBody,
126
+ mediaType: 'application/json',
127
+ errors: {
128
+ 400: `Bad Request`,
129
+ },
130
+ });
131
+ }
132
+ /**
133
+ * @param requestBody
134
+ * @returns any OK
135
+ * @throws ApiError
136
+ */
137
+ static postResetPassword(requestBody) {
138
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
139
+ method: 'POST',
140
+ url: '/resetPassword',
141
+ body: requestBody,
142
+ mediaType: 'application/json',
143
+ errors: {
144
+ 400: `Bad Request`,
145
+ },
146
+ });
147
+ }
148
+ /**
149
+ * @param requestBody
150
+ * @returns TwoFactorResponse OK
151
+ * @throws ApiError
152
+ */
153
+ static postManage2Fa(requestBody) {
154
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
155
+ method: 'POST',
156
+ url: '/manage/2fa',
157
+ body: requestBody,
158
+ mediaType: 'application/json',
159
+ errors: {
160
+ 400: `Bad Request`,
161
+ 404: `Not Found`,
162
+ },
163
+ });
164
+ }
165
+ /**
166
+ * @returns InfoResponse OK
167
+ * @throws ApiError
168
+ */
169
+ static getManageInfo() {
170
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
171
+ method: 'GET',
172
+ url: '/manage/info',
173
+ errors: {
174
+ 400: `Bad Request`,
175
+ 404: `Not Found`,
176
+ },
177
+ });
178
+ }
179
+ /**
180
+ * @param requestBody
181
+ * @returns InfoResponse OK
182
+ * @throws ApiError
183
+ */
184
+ static postManageInfo(requestBody) {
185
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
186
+ method: 'POST',
187
+ url: '/manage/info',
188
+ body: requestBody,
189
+ mediaType: 'application/json',
190
+ errors: {
191
+ 400: `Bad Request`,
192
+ 404: `Not Found`,
193
+ },
194
+ });
195
+ }
196
+ /**
197
+ * @param formData
198
+ * @returns any OK
199
+ * @throws ApiError
200
+ */
201
+ static postAccountPerformExternalLogin(formData) {
202
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
203
+ method: 'POST',
204
+ url: '/Account/PerformExternalLogin',
205
+ formData: formData,
206
+ mediaType: 'multipart/form-data',
207
+ });
208
+ }
209
+ /**
210
+ * @param formData
211
+ * @returns any OK
212
+ * @throws ApiError
213
+ */
214
+ static postAccountLogout(formData) {
215
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
216
+ method: 'POST',
217
+ url: '/Account/Logout',
218
+ formData: formData,
219
+ mediaType: 'multipart/form-data',
220
+ });
221
+ }
222
+ /**
223
+ * @param formData
224
+ * @returns any OK
225
+ * @throws ApiError
226
+ */
227
+ static postAccountManageLinkExternalLogin(formData) {
228
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
229
+ method: 'POST',
230
+ url: '/Account/Manage/LinkExternalLogin',
231
+ formData: formData,
232
+ mediaType: 'multipart/form-data',
233
+ });
234
+ }
235
+ /**
236
+ * @returns any OK
237
+ * @throws ApiError
238
+ */
239
+ static postAccountManageDownloadPersonalData() {
240
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
241
+ method: 'POST',
242
+ url: '/Account/Manage/DownloadPersonalData',
243
+ });
244
+ }
245
+ }
246
+ exports.AuthService = AuthService;
@@ -0,0 +1,293 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { AccessTokenResponse } from '../models/AccessTokenResponse';
6
+ import type { ForgotPasswordRequest } from '../models/ForgotPasswordRequest';
7
+ import type { InfoRequest } from '../models/InfoRequest';
8
+ import type { InfoResponse } from '../models/InfoResponse';
9
+ import type { LoginRequest } from '../models/LoginRequest';
10
+ import type { RefreshRequest } from '../models/RefreshRequest';
11
+ import type { RegisterRequest } from '../models/RegisterRequest';
12
+ import type { ResendConfirmationEmailRequest } from '../models/ResendConfirmationEmailRequest';
13
+ import type { ResetPasswordRequest } from '../models/ResetPasswordRequest';
14
+ import type { TwoFactorRequest } from '../models/TwoFactorRequest';
15
+ import type { TwoFactorResponse } from '../models/TwoFactorResponse';
16
+ import type { CancelablePromise } from '../core/CancelablePromise';
17
+ import { OpenAPI } from '../core/OpenAPI';
18
+ import { request as __request } from '../core/request';
19
+ export class AuthService {
20
+ /**
21
+ * @returns any OK
22
+ * @throws ApiError
23
+ */
24
+ public static getVersion(): CancelablePromise<any> {
25
+ return __request(OpenAPI, {
26
+ method: 'GET',
27
+ url: '/version',
28
+ });
29
+ }
30
+ /**
31
+ * @returns any OK
32
+ * @throws ApiError
33
+ */
34
+ public static getHealth(): CancelablePromise<any> {
35
+ return __request(OpenAPI, {
36
+ method: 'GET',
37
+ url: '/health',
38
+ });
39
+ }
40
+ /**
41
+ * @returns any OK
42
+ * @throws ApiError
43
+ */
44
+ public static getHello(): CancelablePromise<any> {
45
+ return __request(OpenAPI, {
46
+ method: 'GET',
47
+ url: '/hello',
48
+ });
49
+ }
50
+ /**
51
+ * @param requestBody
52
+ * @returns any OK
53
+ * @throws ApiError
54
+ */
55
+ public static postRegister(
56
+ requestBody?: RegisterRequest,
57
+ ): CancelablePromise<any> {
58
+ return __request(OpenAPI, {
59
+ method: 'POST',
60
+ url: '/register',
61
+ body: requestBody,
62
+ mediaType: 'application/json',
63
+ errors: {
64
+ 400: `Bad Request`,
65
+ },
66
+ });
67
+ }
68
+ /**
69
+ * @param useCookies
70
+ * @param useSessionCookies
71
+ * @param requestBody
72
+ * @returns AccessTokenResponse OK
73
+ * @throws ApiError
74
+ */
75
+ public static postLogin(
76
+ useCookies?: boolean,
77
+ useSessionCookies?: boolean,
78
+ requestBody?: LoginRequest,
79
+ ): CancelablePromise<AccessTokenResponse> {
80
+ return __request(OpenAPI, {
81
+ method: 'POST',
82
+ url: '/login',
83
+ query: {
84
+ 'useCookies': useCookies,
85
+ 'useSessionCookies': useSessionCookies,
86
+ },
87
+ body: requestBody,
88
+ mediaType: 'application/json',
89
+ });
90
+ }
91
+ /**
92
+ * @param requestBody
93
+ * @returns AccessTokenResponse OK
94
+ * @throws ApiError
95
+ */
96
+ public static postRefresh(
97
+ requestBody?: RefreshRequest,
98
+ ): CancelablePromise<AccessTokenResponse> {
99
+ return __request(OpenAPI, {
100
+ method: 'POST',
101
+ url: '/refresh',
102
+ body: requestBody,
103
+ mediaType: 'application/json',
104
+ });
105
+ }
106
+ /**
107
+ * @param userId
108
+ * @param code
109
+ * @param changedEmail
110
+ * @returns any OK
111
+ * @throws ApiError
112
+ */
113
+ public static mapIdentityApiConfirmEmail(
114
+ userId?: string,
115
+ code?: string,
116
+ changedEmail?: string,
117
+ ): CancelablePromise<any> {
118
+ return __request(OpenAPI, {
119
+ method: 'GET',
120
+ url: '/confirmEmail',
121
+ query: {
122
+ 'userId': userId,
123
+ 'code': code,
124
+ 'changedEmail': changedEmail,
125
+ },
126
+ });
127
+ }
128
+ /**
129
+ * @param requestBody
130
+ * @returns any OK
131
+ * @throws ApiError
132
+ */
133
+ public static postResendConfirmationEmail(
134
+ requestBody?: ResendConfirmationEmailRequest,
135
+ ): CancelablePromise<any> {
136
+ return __request(OpenAPI, {
137
+ method: 'POST',
138
+ url: '/resendConfirmationEmail',
139
+ body: requestBody,
140
+ mediaType: 'application/json',
141
+ });
142
+ }
143
+ /**
144
+ * @param requestBody
145
+ * @returns any OK
146
+ * @throws ApiError
147
+ */
148
+ public static postForgotPassword(
149
+ requestBody?: ForgotPasswordRequest,
150
+ ): CancelablePromise<any> {
151
+ return __request(OpenAPI, {
152
+ method: 'POST',
153
+ url: '/forgotPassword',
154
+ body: requestBody,
155
+ mediaType: 'application/json',
156
+ errors: {
157
+ 400: `Bad Request`,
158
+ },
159
+ });
160
+ }
161
+ /**
162
+ * @param requestBody
163
+ * @returns any OK
164
+ * @throws ApiError
165
+ */
166
+ public static postResetPassword(
167
+ requestBody?: ResetPasswordRequest,
168
+ ): CancelablePromise<any> {
169
+ return __request(OpenAPI, {
170
+ method: 'POST',
171
+ url: '/resetPassword',
172
+ body: requestBody,
173
+ mediaType: 'application/json',
174
+ errors: {
175
+ 400: `Bad Request`,
176
+ },
177
+ });
178
+ }
179
+ /**
180
+ * @param requestBody
181
+ * @returns TwoFactorResponse OK
182
+ * @throws ApiError
183
+ */
184
+ public static postManage2Fa(
185
+ requestBody?: TwoFactorRequest,
186
+ ): CancelablePromise<TwoFactorResponse> {
187
+ return __request(OpenAPI, {
188
+ method: 'POST',
189
+ url: '/manage/2fa',
190
+ body: requestBody,
191
+ mediaType: 'application/json',
192
+ errors: {
193
+ 400: `Bad Request`,
194
+ 404: `Not Found`,
195
+ },
196
+ });
197
+ }
198
+ /**
199
+ * @returns InfoResponse OK
200
+ * @throws ApiError
201
+ */
202
+ public static getManageInfo(): CancelablePromise<InfoResponse> {
203
+ return __request(OpenAPI, {
204
+ method: 'GET',
205
+ url: '/manage/info',
206
+ errors: {
207
+ 400: `Bad Request`,
208
+ 404: `Not Found`,
209
+ },
210
+ });
211
+ }
212
+ /**
213
+ * @param requestBody
214
+ * @returns InfoResponse OK
215
+ * @throws ApiError
216
+ */
217
+ public static postManageInfo(
218
+ requestBody?: InfoRequest,
219
+ ): CancelablePromise<InfoResponse> {
220
+ return __request(OpenAPI, {
221
+ method: 'POST',
222
+ url: '/manage/info',
223
+ body: requestBody,
224
+ mediaType: 'application/json',
225
+ errors: {
226
+ 400: `Bad Request`,
227
+ 404: `Not Found`,
228
+ },
229
+ });
230
+ }
231
+ /**
232
+ * @param formData
233
+ * @returns any OK
234
+ * @throws ApiError
235
+ */
236
+ public static postAccountPerformExternalLogin(
237
+ formData?: {
238
+ provider: string;
239
+ returnUrl: string;
240
+ },
241
+ ): CancelablePromise<any> {
242
+ return __request(OpenAPI, {
243
+ method: 'POST',
244
+ url: '/Account/PerformExternalLogin',
245
+ formData: formData,
246
+ mediaType: 'multipart/form-data',
247
+ });
248
+ }
249
+ /**
250
+ * @param formData
251
+ * @returns any OK
252
+ * @throws ApiError
253
+ */
254
+ public static postAccountLogout(
255
+ formData?: {
256
+ returnUrl: string;
257
+ },
258
+ ): CancelablePromise<any> {
259
+ return __request(OpenAPI, {
260
+ method: 'POST',
261
+ url: '/Account/Logout',
262
+ formData: formData,
263
+ mediaType: 'multipart/form-data',
264
+ });
265
+ }
266
+ /**
267
+ * @param formData
268
+ * @returns any OK
269
+ * @throws ApiError
270
+ */
271
+ public static postAccountManageLinkExternalLogin(
272
+ formData?: {
273
+ provider: string;
274
+ },
275
+ ): CancelablePromise<any> {
276
+ return __request(OpenAPI, {
277
+ method: 'POST',
278
+ url: '/Account/Manage/LinkExternalLogin',
279
+ formData: formData,
280
+ mediaType: 'multipart/form-data',
281
+ });
282
+ }
283
+ /**
284
+ * @returns any OK
285
+ * @throws ApiError
286
+ */
287
+ public static postAccountManageDownloadPersonalData(): CancelablePromise<any> {
288
+ return __request(OpenAPI, {
289
+ method: 'POST',
290
+ url: '/Account/Manage/DownloadPersonalData',
291
+ });
292
+ }
293
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckerService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class CheckerService {
7
+ /**
8
+ * @param xApiVersion
9
+ * @returns boolean OK
10
+ * @throws ApiError
11
+ */
12
+ static getApiV2AuthCheckerIsAuthenticated(xApiVersion) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/api/v2/Auth/Checker/IsAuthenticated',
16
+ headers: {
17
+ 'x-api-version': xApiVersion,
18
+ },
19
+ });
20
+ }
21
+ }
22
+ exports.CheckerService = CheckerService;
@@ -0,0 +1,25 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ import { OpenAPI } from '../core/OpenAPI';
7
+ import { request as __request } from '../core/request';
8
+ export class CheckerService {
9
+ /**
10
+ * @param xApiVersion
11
+ * @returns boolean OK
12
+ * @throws ApiError
13
+ */
14
+ public static getApiV2AuthCheckerIsAuthenticated(
15
+ xApiVersion?: string,
16
+ ): CancelablePromise<boolean> {
17
+ return __request(OpenAPI, {
18
+ method: 'GET',
19
+ url: '/api/v2/Auth/Checker/IsAuthenticated',
20
+ headers: {
21
+ 'x-api-version': xApiVersion,
22
+ },
23
+ });
24
+ }
25
+ }