@fenixalliance/abs-api-client 1.0.8 → 1.0.10

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 (119) hide show
  1. package/app/index.js +2 -2
  2. package/app/index.ts +1 -1
  3. package/clients/contentService/index.ts +2 -2
  4. package/clients/contentService/models/{Portal.ts → PortalSettings.ts} +1 -1
  5. package/clients/contentService/models/PortalSettingsEnvelope.ts +14 -0
  6. package/clients/contentService/services/PortalsService.js +23 -12
  7. package/clients/contentService/services/PortalsService.ts +25 -14
  8. package/clients/crmService/services/ContactsService.js +86 -28
  9. package/clients/crmService/services/ContactsService.ts +86 -28
  10. package/clients/holderService/index.js +7 -3
  11. package/clients/holderService/index.ts +4 -2
  12. package/clients/holderService/models/FollowRecordDtoListEnvelope.ts +14 -0
  13. package/clients/holderService/services/{HolderService.js → IdentityService.js} +65 -157
  14. package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +70 -186
  15. package/clients/holderService/services/TenantsService.js +151 -0
  16. package/clients/holderService/services/TenantsService.ts +176 -0
  17. package/clients/holderService/services/UserService.js +364 -0
  18. package/clients/holderService/services/UserService.ts +421 -0
  19. package/clients/storageService/core/ApiError.js +20 -0
  20. package/clients/storageService/core/ApiError.ts +25 -0
  21. package/clients/storageService/core/ApiRequestOptions.ts +17 -0
  22. package/clients/storageService/core/ApiResult.ts +11 -0
  23. package/clients/storageService/core/CancelablePromise.js +104 -0
  24. package/clients/storageService/core/CancelablePromise.ts +131 -0
  25. package/clients/storageService/core/OpenAPI.js +14 -0
  26. package/clients/storageService/core/OpenAPI.ts +32 -0
  27. package/clients/storageService/core/request.js +294 -0
  28. package/clients/storageService/core/request.ts +322 -0
  29. package/clients/storageService/index.js +26 -0
  30. package/clients/storageService/index.ts +23 -0
  31. package/clients/storageService/models/Blob.js +11 -0
  32. package/clients/storageService/models/Blob.ts +26 -0
  33. package/clients/{contentService/models/PortalEnvelope.ts → storageService/models/BlobEnvelope.ts} +3 -3
  34. package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → storageService/models/EmptyEnvelope.ts} +1 -3
  35. package/clients/storageService/models/ErrorEnvelope.ts +12 -0
  36. package/clients/storageService/models/FileUploadCreateDto.ts +20 -0
  37. package/clients/storageService/models/FileUploadDto.js +2 -0
  38. package/clients/storageService/models/FileUploadDto.ts +29 -0
  39. package/clients/storageService/models/FileUploadDtoEnvelope.js +2 -0
  40. package/clients/storageService/models/FileUploadDtoEnvelope.ts +14 -0
  41. package/clients/storageService/models/FileUploadUpdateDto.js +2 -0
  42. package/clients/storageService/models/FileUploadUpdateDto.ts +19 -0
  43. package/clients/storageService/services/AvatarsService.js +200 -0
  44. package/clients/storageService/services/AvatarsService.ts +234 -0
  45. package/clients/storageService/services/BlobsService.js +66 -0
  46. package/clients/storageService/services/BlobsService.ts +81 -0
  47. package/clients/{tenantService/services/EnrollmentsService.js → storageService/services/FilesService.js} +50 -42
  48. package/clients/{tenantService/services/UnitsService.ts → storageService/services/FilesService.ts} +75 -65
  49. package/clients/storageService/services/RadzenEditorService.js +117 -0
  50. package/clients/storageService/services/RadzenEditorService.ts +149 -0
  51. package/clients/storageService/services/UploadsService.js +33 -0
  52. package/clients/storageService/services/UploadsService.ts +53 -0
  53. package/clients/systemService/services/ModulesService.js +4 -2
  54. package/clients/systemService/services/ModulesService.ts +4 -2
  55. package/clients/systemService/services/TenantsService.js +24 -8
  56. package/clients/systemService/services/TenantsService.ts +24 -8
  57. package/clients/tenantService/index.js +1 -29
  58. package/clients/tenantService/index.ts +7 -20
  59. package/clients/tenantService/models/TenantIndustryDtoListEnvelope.js +2 -0
  60. package/clients/tenantService/models/TenantIndustryDtoListEnvelope.ts +14 -0
  61. package/clients/tenantService/models/TenantTeamContactEnrollmentDtoListEnvelope.js +2 -0
  62. package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
  63. package/clients/tenantService/models/TenantTeamDtoListEnvelope.js +2 -0
  64. package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
  65. package/clients/tenantService/models/TenantTeamEmployeeEnrollmentDtoListEnvelope.js +2 -0
  66. package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
  67. package/clients/tenantService/models/TenantTeamProjectEnrollmentDtoListEnvelope.js +2 -0
  68. package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
  69. package/clients/tenantService/models/TenantTeamRecordDtoListEnvelope.js +2 -0
  70. package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
  71. package/clients/tenantService/models/TenantTypeDtoListEnvelope.js +2 -0
  72. package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
  73. package/clients/tenantService/services/SizesService.js +15 -5
  74. package/clients/tenantService/services/SizesService.ts +15 -5
  75. package/clients/tenantService/services/TenantsService.js +2554 -233
  76. package/clients/tenantService/services/TenantsService.ts +3004 -307
  77. package/package.json +1 -1
  78. package/schemas/contentService/schema.s.ts +877 -844
  79. package/schemas/crmService/schema.s.ts +1776 -1516
  80. package/schemas/holderService/schema.s.ts +1024 -789
  81. package/schemas/storageService/schema.s.js +6 -0
  82. package/schemas/storageService/schema.s.ts +1087 -0
  83. package/schemas/systemService/schema.s.ts +465 -387
  84. package/schemas/tenantService/schema.s.ts +5713 -4820
  85. package/clients/tenantService/services/DepartmentsService.js +0 -161
  86. package/clients/tenantService/services/DepartmentsService.ts +0 -192
  87. package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
  88. package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
  89. package/clients/tenantService/services/EnrollmentsService.ts +0 -195
  90. package/clients/tenantService/services/IndustriesService.js +0 -161
  91. package/clients/tenantService/services/IndustriesService.ts +0 -190
  92. package/clients/tenantService/services/InvitationsService.js +0 -128
  93. package/clients/tenantService/services/InvitationsService.ts +0 -150
  94. package/clients/tenantService/services/PositionsService.js +0 -161
  95. package/clients/tenantService/services/PositionsService.ts +0 -192
  96. package/clients/tenantService/services/SegmentsService.js +0 -161
  97. package/clients/tenantService/services/SegmentsService.ts +0 -191
  98. package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
  99. package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
  100. package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
  101. package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
  102. package/clients/tenantService/services/TeamRecordsService.js +0 -161
  103. package/clients/tenantService/services/TeamRecordsService.ts +0 -192
  104. package/clients/tenantService/services/TeamsService.js +0 -161
  105. package/clients/tenantService/services/TeamsService.ts +0 -192
  106. package/clients/tenantService/services/TerritoriesService.js +0 -161
  107. package/clients/tenantService/services/TerritoriesService.ts +0 -192
  108. package/clients/tenantService/services/TypesService.js +0 -149
  109. package/clients/tenantService/services/TypesService.ts +0 -176
  110. package/clients/tenantService/services/UnitsService.js +0 -159
  111. /package/clients/contentService/models/{Portal.js → PortalSettings.js} +0 -0
  112. /package/clients/contentService/models/{PortalEnvelope.js → PortalSettingsEnvelope.js} +0 -0
  113. /package/clients/holderService/models/{EmptyEnvelopeEnvelope.js → FollowRecordDtoListEnvelope.js} +0 -0
  114. /package/clients/{tenantService/models/TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/core/ApiRequestOptions.js} +0 -0
  115. /package/clients/{tenantService/models/TenantTeamDtoIReadOnlyCollectionEnvelope.js → storageService/core/ApiResult.js} +0 -0
  116. /package/clients/{tenantService/models/TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/models/BlobEnvelope.js} +0 -0
  117. /package/clients/{tenantService/models/TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/models/EmptyEnvelope.js} +0 -0
  118. /package/clients/{tenantService/models/TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → storageService/models/ErrorEnvelope.js} +0 -0
  119. /package/clients/{tenantService/models/TenantTypeDtoIReadOnlyCollectionEnvelope.js → storageService/models/FileUploadCreateDto.js} +0 -0
@@ -0,0 +1,421 @@
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 UserService {
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
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiError = void 0;
4
+ class ApiError extends Error {
5
+ url;
6
+ status;
7
+ statusText;
8
+ body;
9
+ request;
10
+ constructor(request, response, message) {
11
+ super(message);
12
+ this.name = 'ApiError';
13
+ this.url = response.url;
14
+ this.status = response.status;
15
+ this.statusText = response.statusText;
16
+ this.body = response.body;
17
+ this.request = request;
18
+ }
19
+ }
20
+ exports.ApiError = ApiError;
@@ -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 { ApiRequestOptions } from './ApiRequestOptions';
6
+ import type { ApiResult } from './ApiResult';
7
+
8
+ export class ApiError extends Error {
9
+ public readonly url: string;
10
+ public readonly status: number;
11
+ public readonly statusText: string;
12
+ public readonly body: any;
13
+ public readonly request: ApiRequestOptions;
14
+
15
+ constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
16
+ super(message);
17
+
18
+ this.name = 'ApiError';
19
+ this.url = response.url;
20
+ this.status = response.status;
21
+ this.statusText = response.statusText;
22
+ this.body = response.body;
23
+ this.request = request;
24
+ }
25
+ }
@@ -0,0 +1,17 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type ApiRequestOptions = {
6
+ readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
7
+ readonly url: string;
8
+ readonly path?: Record<string, any>;
9
+ readonly cookies?: Record<string, any>;
10
+ readonly headers?: Record<string, any>;
11
+ readonly query?: Record<string, any>;
12
+ readonly formData?: Record<string, any>;
13
+ readonly body?: any;
14
+ readonly mediaType?: string;
15
+ readonly responseHeader?: string;
16
+ readonly errors?: Record<number, string>;
17
+ };
@@ -0,0 +1,11 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type ApiResult = {
6
+ readonly url: string;
7
+ readonly ok: boolean;
8
+ readonly status: number;
9
+ readonly statusText: string;
10
+ readonly body: any;
11
+ };
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelablePromise = exports.CancelError = void 0;
4
+ /* generated using openapi-typescript-codegen -- do no edit */
5
+ /* istanbul ignore file */
6
+ /* tslint:disable */
7
+ /* eslint-disable */
8
+ class CancelError extends Error {
9
+ constructor(message) {
10
+ super(message);
11
+ this.name = 'CancelError';
12
+ }
13
+ get isCancelled() {
14
+ return true;
15
+ }
16
+ }
17
+ exports.CancelError = CancelError;
18
+ class CancelablePromise {
19
+ #isResolved;
20
+ #isRejected;
21
+ #isCancelled;
22
+ #cancelHandlers;
23
+ #promise;
24
+ #resolve;
25
+ #reject;
26
+ constructor(executor) {
27
+ this.#isResolved = false;
28
+ this.#isRejected = false;
29
+ this.#isCancelled = false;
30
+ this.#cancelHandlers = [];
31
+ this.#promise = new Promise((resolve, reject) => {
32
+ this.#resolve = resolve;
33
+ this.#reject = reject;
34
+ const onResolve = (value) => {
35
+ if (this.#isResolved || this.#isRejected || this.#isCancelled) {
36
+ return;
37
+ }
38
+ this.#isResolved = true;
39
+ if (this.#resolve)
40
+ this.#resolve(value);
41
+ };
42
+ const onReject = (reason) => {
43
+ if (this.#isResolved || this.#isRejected || this.#isCancelled) {
44
+ return;
45
+ }
46
+ this.#isRejected = true;
47
+ if (this.#reject)
48
+ this.#reject(reason);
49
+ };
50
+ const onCancel = (cancelHandler) => {
51
+ if (this.#isResolved || this.#isRejected || this.#isCancelled) {
52
+ return;
53
+ }
54
+ this.#cancelHandlers.push(cancelHandler);
55
+ };
56
+ Object.defineProperty(onCancel, 'isResolved', {
57
+ get: () => this.#isResolved,
58
+ });
59
+ Object.defineProperty(onCancel, 'isRejected', {
60
+ get: () => this.#isRejected,
61
+ });
62
+ Object.defineProperty(onCancel, 'isCancelled', {
63
+ get: () => this.#isCancelled,
64
+ });
65
+ return executor(onResolve, onReject, onCancel);
66
+ });
67
+ }
68
+ get [Symbol.toStringTag]() {
69
+ return "Cancellable Promise";
70
+ }
71
+ then(onFulfilled, onRejected) {
72
+ return this.#promise.then(onFulfilled, onRejected);
73
+ }
74
+ catch(onRejected) {
75
+ return this.#promise.catch(onRejected);
76
+ }
77
+ finally(onFinally) {
78
+ return this.#promise.finally(onFinally);
79
+ }
80
+ cancel() {
81
+ if (this.#isResolved || this.#isRejected || this.#isCancelled) {
82
+ return;
83
+ }
84
+ this.#isCancelled = true;
85
+ if (this.#cancelHandlers.length) {
86
+ try {
87
+ for (const cancelHandler of this.#cancelHandlers) {
88
+ cancelHandler();
89
+ }
90
+ }
91
+ catch (error) {
92
+ console.warn('Cancellation threw an error', error);
93
+ return;
94
+ }
95
+ }
96
+ this.#cancelHandlers.length = 0;
97
+ if (this.#reject)
98
+ this.#reject(new CancelError('Request aborted'));
99
+ }
100
+ get isCancelled() {
101
+ return this.#isCancelled;
102
+ }
103
+ }
104
+ exports.CancelablePromise = CancelablePromise;