@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
@@ -1,421 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { AddressDtoListEnvelope } from '../models/AddressDtoListEnvelope';
6
- import type { CartDtoEnvelope } from '../models/CartDtoEnvelope';
7
- import type { EmptyEnvelope } from '../models/EmptyEnvelope';
8
- import type { ExtendedUserDtoEnvelope } from '../models/ExtendedUserDtoEnvelope';
9
- import type { FollowRecordDtoListEnvelope } from '../models/FollowRecordDtoListEnvelope';
10
- import type { Int32Envelope } from '../models/Int32Envelope';
11
- import type { NotificationDtoListEnvelope } from '../models/NotificationDtoListEnvelope';
12
- import type { Operation } from '../models/Operation';
13
- import type { SocialProfileDtoEnvelope } from '../models/SocialProfileDtoEnvelope';
14
- import type { UserDtoEnvelope } from '../models/UserDtoEnvelope';
15
- import type { UserSettingsDtoEnvelope } from '../models/UserSettingsDtoEnvelope';
16
- import type { UserSettingsUpdateDto } from '../models/UserSettingsUpdateDto';
17
- import type { UserUpdateDto } from '../models/UserUpdateDto';
18
- import type { WalletDtoEnvelope } from '../models/WalletDtoEnvelope';
19
- import type { CancelablePromise } from '../core/CancelablePromise';
20
- import { OpenAPI } from '../core/OpenAPI';
21
- import { request as __request } from '../core/request';
22
- export class IdentityService {
23
- /**
24
- * Gets the current user
25
- * Get the currently acting user.
26
- * @param xApiVersion
27
- * @returns UserDtoEnvelope OK
28
- * @throws ApiError
29
- */
30
- public static getCurrentUserAsync(
31
- xApiVersion?: string,
32
- ): CancelablePromise<UserDtoEnvelope> {
33
- return __request(OpenAPI, {
34
- method: 'GET',
35
- url: '/api/v2/Me',
36
- headers: {
37
- 'x-api-version': xApiVersion,
38
- },
39
- errors: {
40
- 401: `Unauthorized`,
41
- },
42
- });
43
- }
44
- /**
45
- * Update the current user's profile
46
- * Update the current user's profile
47
- * @param xApiVersion
48
- * @param requestBody
49
- * @returns EmptyEnvelope OK
50
- * @throws ApiError
51
- */
52
- public static updateCurrentUserAsync(
53
- xApiVersion?: string,
54
- requestBody?: UserUpdateDto,
55
- ): CancelablePromise<EmptyEnvelope> {
56
- return __request(OpenAPI, {
57
- method: 'PUT',
58
- url: '/api/v2/Me',
59
- headers: {
60
- 'x-api-version': xApiVersion,
61
- },
62
- body: requestBody,
63
- mediaType: 'application/json',
64
- errors: {
65
- 401: `Unauthorized`,
66
- },
67
- });
68
- }
69
- /**
70
- * Partially update the current user's profile
71
- * Partially update the current user's profile
72
- * @param xApiVersion
73
- * @param requestBody
74
- * @returns EmptyEnvelope OK
75
- * @throws ApiError
76
- */
77
- public static patchCurrentUserAsync(
78
- xApiVersion?: string,
79
- requestBody?: Array<Operation>,
80
- ): CancelablePromise<EmptyEnvelope> {
81
- return __request(OpenAPI, {
82
- method: 'PATCH',
83
- url: '/api/v2/Me',
84
- headers: {
85
- 'x-api-version': xApiVersion,
86
- },
87
- body: requestBody,
88
- mediaType: 'application/json',
89
- errors: {
90
- 401: `Unauthorized`,
91
- },
92
- });
93
- }
94
- /**
95
- * Get the current user's extended profile
96
- * Get the current user's extended profile
97
- * @param xApiVersion
98
- * @returns ExtendedUserDtoEnvelope OK
99
- * @throws ApiError
100
- */
101
- public static getExtendedCurrentUserAsync(
102
- xApiVersion?: string,
103
- ): CancelablePromise<ExtendedUserDtoEnvelope> {
104
- return __request(OpenAPI, {
105
- method: 'GET',
106
- url: '/api/v2/Me/Extended',
107
- headers: {
108
- 'x-api-version': xApiVersion,
109
- },
110
- errors: {
111
- 401: `Unauthorized`,
112
- },
113
- });
114
- }
115
- /**
116
- * Get the current user's avatar
117
- * Get the current user's avatar
118
- * @param xApiVersion
119
- * @returns binary OK
120
- * @throws ApiError
121
- */
122
- public static getCurrentUserAvatarAsync(
123
- xApiVersion?: string,
124
- ): CancelablePromise<Blob> {
125
- return __request(OpenAPI, {
126
- method: 'GET',
127
- url: '/api/v2/Me/Avatar',
128
- headers: {
129
- 'x-api-version': xApiVersion,
130
- },
131
- errors: {
132
- 401: `Unauthorized`,
133
- 403: `Forbidden`,
134
- },
135
- });
136
- }
137
- /**
138
- * Update the current user's avatar
139
- * Update the current user's avatar
140
- * @param xApiVersion
141
- * @param formData
142
- * @returns EmptyEnvelope OK
143
- * @throws ApiError
144
- */
145
- public static updateAvatarAsync(
146
- xApiVersion?: string,
147
- formData?: {
148
- avatar?: Blob;
149
- },
150
- ): CancelablePromise<EmptyEnvelope> {
151
- return __request(OpenAPI, {
152
- method: 'POST',
153
- url: '/api/v2/Me/Avatar',
154
- headers: {
155
- 'x-api-version': xApiVersion,
156
- },
157
- formData: formData,
158
- mediaType: 'multipart/form-data',
159
- errors: {
160
- 401: `Unauthorized`,
161
- 403: `Forbidden`,
162
- },
163
- });
164
- }
165
- /**
166
- * Get the social profiles that the current user follows
167
- * Get the social profiles that the current user follows
168
- * @param xApiVersion
169
- * @returns FollowRecordDtoListEnvelope OK
170
- * @throws ApiError
171
- */
172
- public static getCurrentUserFollowsAsync(
173
- xApiVersion?: string,
174
- ): CancelablePromise<FollowRecordDtoListEnvelope> {
175
- return __request(OpenAPI, {
176
- method: 'GET',
177
- url: '/api/v2/Me/Follows',
178
- headers: {
179
- 'x-api-version': xApiVersion,
180
- },
181
- errors: {
182
- 401: `Unauthorized`,
183
- },
184
- });
185
- }
186
- /**
187
- * Count the social profiles that the current user follows
188
- * Count the social profiles that the current user follows
189
- * @param xApiVersion
190
- * @returns Int32Envelope OK
191
- * @throws ApiError
192
- */
193
- public static countCurrentUserFollowsAsync(
194
- xApiVersion?: string,
195
- ): CancelablePromise<Int32Envelope> {
196
- return __request(OpenAPI, {
197
- method: 'GET',
198
- url: '/api/v2/Me/Follows/Count',
199
- headers: {
200
- 'x-api-version': xApiVersion,
201
- },
202
- errors: {
203
- 401: `Unauthorized`,
204
- },
205
- });
206
- }
207
- /**
208
- * Get the social profiles that follow the current user
209
- * Get the social profiles that follow the current user
210
- * @param xApiVersion
211
- * @returns FollowRecordDtoListEnvelope OK
212
- * @throws ApiError
213
- */
214
- public static getCurrentUserFollowersAsync(
215
- xApiVersion?: string,
216
- ): CancelablePromise<FollowRecordDtoListEnvelope> {
217
- return __request(OpenAPI, {
218
- method: 'GET',
219
- url: '/api/v2/Me/Followers',
220
- headers: {
221
- 'x-api-version': xApiVersion,
222
- },
223
- errors: {
224
- 401: `Unauthorized`,
225
- },
226
- });
227
- }
228
- /**
229
- * Count the social profiles that follow the current user
230
- * Count the social profiles that follow the current user
231
- * @param xApiVersion
232
- * @returns Int32Envelope OK
233
- * @throws ApiError
234
- */
235
- public static countCurrentUserFollowersAsync(
236
- xApiVersion?: string,
237
- ): CancelablePromise<Int32Envelope> {
238
- return __request(OpenAPI, {
239
- method: 'GET',
240
- url: '/api/v2/Me/Followers/Count',
241
- headers: {
242
- 'x-api-version': xApiVersion,
243
- },
244
- errors: {
245
- 401: `Unauthorized`,
246
- },
247
- });
248
- }
249
- /**
250
- * Get the current user's social profile
251
- * Get the current user's social profile
252
- * @param xApiVersion
253
- * @returns SocialProfileDtoEnvelope OK
254
- * @throws ApiError
255
- */
256
- public static getCurrentUserSocialProfileAsync(
257
- xApiVersion?: string,
258
- ): CancelablePromise<SocialProfileDtoEnvelope> {
259
- return __request(OpenAPI, {
260
- method: 'GET',
261
- url: '/api/v2/Me/SocialProfile',
262
- headers: {
263
- 'x-api-version': xApiVersion,
264
- },
265
- errors: {
266
- 401: `Unauthorized`,
267
- },
268
- });
269
- }
270
- /**
271
- * Get the current user's cart
272
- * Get the current user's cart
273
- * @param xApiVersion
274
- * @returns CartDtoEnvelope OK
275
- * @throws ApiError
276
- */
277
- public static getCurrentUserCartAsync(
278
- xApiVersion?: string,
279
- ): CancelablePromise<CartDtoEnvelope> {
280
- return __request(OpenAPI, {
281
- method: 'GET',
282
- url: '/api/v2/Me/Cart',
283
- headers: {
284
- 'x-api-version': xApiVersion,
285
- },
286
- errors: {
287
- 401: `Unauthorized`,
288
- },
289
- });
290
- }
291
- /**
292
- * Get the current user's billing profile
293
- * Get the current user's billing profile
294
- * @param xApiVersion
295
- * @returns WalletDtoEnvelope OK
296
- * @throws ApiError
297
- */
298
- public static getCurrentUserWalletAsync(
299
- xApiVersion?: string,
300
- ): CancelablePromise<WalletDtoEnvelope> {
301
- return __request(OpenAPI, {
302
- method: 'GET',
303
- url: '/api/v2/Me/Wallet',
304
- headers: {
305
- 'x-api-version': xApiVersion,
306
- },
307
- errors: {
308
- 401: `Unauthorized`,
309
- },
310
- });
311
- }
312
- /**
313
- * Get the list of notifications for the current user
314
- * Get the list of notifications for the current user
315
- * @param xApiVersion
316
- * @returns NotificationDtoListEnvelope OK
317
- * @throws ApiError
318
- */
319
- public static getCurrentUserNotificationsAsync(
320
- xApiVersion?: string,
321
- ): CancelablePromise<NotificationDtoListEnvelope> {
322
- return __request(OpenAPI, {
323
- method: 'GET',
324
- url: '/api/v2/Me/Notifications',
325
- headers: {
326
- 'x-api-version': xApiVersion,
327
- },
328
- errors: {
329
- 401: `Unauthorized`,
330
- },
331
- });
332
- }
333
- /**
334
- * Count the notifications for the current user
335
- * Count the notifications for the current user
336
- * @param xApiVersion
337
- * @returns Int32Envelope OK
338
- * @throws ApiError
339
- */
340
- public static countCurrentUserNotificationsAsync(
341
- xApiVersion?: string,
342
- ): CancelablePromise<Int32Envelope> {
343
- return __request(OpenAPI, {
344
- method: 'GET',
345
- url: '/api/v2/Me/Notifications/Count',
346
- headers: {
347
- 'x-api-version': xApiVersion,
348
- },
349
- errors: {
350
- 401: `Unauthorized`,
351
- },
352
- });
353
- }
354
- /**
355
- * Get the settings for the current user
356
- * Get the settings for the current user
357
- * @param xApiVersion
358
- * @returns UserSettingsDtoEnvelope OK
359
- * @throws ApiError
360
- */
361
- public static getCurrentUserSettingsAsync(
362
- xApiVersion?: string,
363
- ): CancelablePromise<UserSettingsDtoEnvelope> {
364
- return __request(OpenAPI, {
365
- method: 'GET',
366
- url: '/api/v2/Me/Settings',
367
- headers: {
368
- 'x-api-version': xApiVersion,
369
- },
370
- errors: {
371
- 401: `Unauthorized`,
372
- },
373
- });
374
- }
375
- /**
376
- * Update the settings for the current user
377
- * Update the settings for the current user
378
- * @param xApiVersion
379
- * @param requestBody
380
- * @returns UserSettingsDtoEnvelope OK
381
- * @throws ApiError
382
- */
383
- public static updateCurrentUserSettingsAsync(
384
- xApiVersion?: string,
385
- requestBody?: UserSettingsUpdateDto,
386
- ): CancelablePromise<UserSettingsDtoEnvelope> {
387
- return __request(OpenAPI, {
388
- method: 'PUT',
389
- url: '/api/v2/Me/Settings',
390
- headers: {
391
- 'x-api-version': xApiVersion,
392
- },
393
- body: requestBody,
394
- mediaType: 'application/json',
395
- errors: {
396
- 401: `Unauthorized`,
397
- },
398
- });
399
- }
400
- /**
401
- * Get the list of addresses for the current user
402
- * Get the list of addresses for the current user
403
- * @param xApiVersion
404
- * @returns AddressDtoListEnvelope OK
405
- * @throws ApiError
406
- */
407
- public static getCurrentUserAddressesAsync(
408
- xApiVersion?: string,
409
- ): CancelablePromise<AddressDtoListEnvelope> {
410
- return __request(OpenAPI, {
411
- method: 'GET',
412
- url: '/api/v2/Me/Addresses',
413
- headers: {
414
- 'x-api-version': xApiVersion,
415
- },
416
- errors: {
417
- 401: `Unauthorized`,
418
- },
419
- });
420
- }
421
- }
@@ -1,176 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { EnrollmentId } from '../models/EnrollmentId';
6
- import type { ExtendedTenantDtoListEnvelope } from '../models/ExtendedTenantDtoListEnvelope';
7
- import type { ExtendedTenantEnrolmentDtoListEnvelope } from '../models/ExtendedTenantEnrolmentDtoListEnvelope';
8
- import type { Int32Envelope } from '../models/Int32Envelope';
9
- import type { TenantDtoListEnvelope } from '../models/TenantDtoListEnvelope';
10
- import type { TenantEnrolmentDtoEnvelope } from '../models/TenantEnrolmentDtoEnvelope';
11
- import type { TenantEnrolmentDtoListEnvelope } from '../models/TenantEnrolmentDtoListEnvelope';
12
- import type { TenantInvitationDtoListEnvelope } from '../models/TenantInvitationDtoListEnvelope';
13
- import type { CancelablePromise } from '../core/CancelablePromise';
14
- import { OpenAPI } from '../core/OpenAPI';
15
- import { request as __request } from '../core/request';
16
- export class TenantsService {
17
- /**
18
- * Get the tenants that the current user is enrolled in
19
- * Get the tenants that the current user is enrolled in
20
- * @param xApiVersion
21
- * @returns TenantDtoListEnvelope OK
22
- * @throws ApiError
23
- */
24
- public static getCurrentUserTenantsAsync(
25
- xApiVersion?: string,
26
- ): CancelablePromise<TenantDtoListEnvelope> {
27
- return __request(OpenAPI, {
28
- method: 'GET',
29
- url: '/api/v2/Me/Businesses',
30
- headers: {
31
- 'x-api-version': xApiVersion,
32
- },
33
- errors: {
34
- 401: `Unauthorized`,
35
- 403: `Forbidden`,
36
- },
37
- });
38
- }
39
- /**
40
- * Count the tenants that the current user is enrolled in
41
- * Count the tenants that the current user is enrolled in
42
- * @param xApiVersion
43
- * @returns Int32Envelope OK
44
- * @throws ApiError
45
- */
46
- public static countCurrentUserTenantsAsync(
47
- xApiVersion?: string,
48
- ): CancelablePromise<Int32Envelope> {
49
- return __request(OpenAPI, {
50
- method: 'GET',
51
- url: '/api/v2/Me/Businesses/Count',
52
- headers: {
53
- 'x-api-version': xApiVersion,
54
- },
55
- errors: {
56
- 401: `Unauthorized`,
57
- 403: `Forbidden`,
58
- },
59
- });
60
- }
61
- /**
62
- * Get the tenants that the current user is enrolled in
63
- * Get the tenants that the current user is enrolled in
64
- * @param xApiVersion
65
- * @returns ExtendedTenantDtoListEnvelope OK
66
- * @throws ApiError
67
- */
68
- public static getCurrentUserTenantsExtendedAsync(
69
- xApiVersion?: string,
70
- ): CancelablePromise<ExtendedTenantDtoListEnvelope> {
71
- return __request(OpenAPI, {
72
- method: 'GET',
73
- url: '/api/v2/Me/Businesses/Extended',
74
- headers: {
75
- 'x-api-version': xApiVersion,
76
- },
77
- errors: {
78
- 401: `Unauthorized`,
79
- 403: `Forbidden`,
80
- },
81
- });
82
- }
83
- /**
84
- * Get the list of enrollments for the current user
85
- * Get the list of enrollments for the current user
86
- * @param xApiVersion
87
- * @returns TenantEnrolmentDtoListEnvelope OK
88
- * @throws ApiError
89
- */
90
- public static getCurrentUserEnrollmentsAsync(
91
- xApiVersion?: string,
92
- ): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
93
- return __request(OpenAPI, {
94
- method: 'GET',
95
- url: '/api/v2/Me/Enrollments',
96
- headers: {
97
- 'x-api-version': xApiVersion,
98
- },
99
- errors: {
100
- 401: `Unauthorized`,
101
- },
102
- });
103
- }
104
- /**
105
- * Get the list of enrollments for the current user
106
- * Get the list of enrollments for the current user
107
- * @param xApiVersion
108
- * @returns ExtendedTenantEnrolmentDtoListEnvelope OK
109
- * @throws ApiError
110
- */
111
- public static getCurrentUserEnrollmentsExtendedAsync(
112
- xApiVersion?: string,
113
- ): CancelablePromise<ExtendedTenantEnrolmentDtoListEnvelope> {
114
- return __request(OpenAPI, {
115
- method: 'GET',
116
- url: '/api/v2/Me/Enrollments/Extended',
117
- headers: {
118
- 'x-api-version': xApiVersion,
119
- },
120
- errors: {
121
- 401: `Unauthorized`,
122
- },
123
- });
124
- }
125
- /**
126
- * Get a single TenantEnrollment by its ID
127
- * Get a single TenantEnrollment by its ID
128
- * @param enrollmentId
129
- * @param xApiVersion
130
- * @param requestBody
131
- * @returns TenantEnrolmentDtoEnvelope OK
132
- * @throws ApiError
133
- */
134
- public static getTenantEnrollmentAsync(
135
- enrollmentId: string,
136
- xApiVersion?: string,
137
- requestBody?: EnrollmentId,
138
- ): CancelablePromise<TenantEnrolmentDtoEnvelope> {
139
- return __request(OpenAPI, {
140
- method: 'GET',
141
- url: '/api/v2/Me/Enrollments/{enrollmentId}',
142
- path: {
143
- 'enrollmentId': enrollmentId,
144
- },
145
- headers: {
146
- 'x-api-version': xApiVersion,
147
- },
148
- body: requestBody,
149
- mediaType: 'application/json',
150
- errors: {
151
- 401: `Unauthorized`,
152
- },
153
- });
154
- }
155
- /**
156
- * Get the list of tenant enrollment invitations for the current user
157
- * Get the list of tenant enrollment invitations for the current user
158
- * @param xApiVersion
159
- * @returns TenantInvitationDtoListEnvelope OK
160
- * @throws ApiError
161
- */
162
- public static getCurrentUserInvitationAsync(
163
- xApiVersion?: string,
164
- ): CancelablePromise<TenantInvitationDtoListEnvelope> {
165
- return __request(OpenAPI, {
166
- method: 'GET',
167
- url: '/api/v2/Me/Invitations',
168
- headers: {
169
- 'x-api-version': xApiVersion,
170
- },
171
- errors: {
172
- 401: `Unauthorized`,
173
- },
174
- });
175
- }
176
- }