@fenixalliance/abs-api-client 1.0.9 → 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 (75) hide show
  1. package/app/index.js +2 -2
  2. package/app/index.ts +1 -1
  3. package/clients/contentService/services/PortalsService.js +22 -11
  4. package/clients/contentService/services/PortalsService.ts +22 -11
  5. package/clients/crmService/services/ContactsService.js +86 -28
  6. package/clients/crmService/services/ContactsService.ts +86 -28
  7. package/clients/holderService/index.js +7 -3
  8. package/clients/holderService/index.ts +3 -2
  9. package/clients/holderService/services/{HolderService.js → IdentityService.js} +58 -176
  10. package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +58 -200
  11. package/clients/holderService/services/TenantsService.js +151 -0
  12. package/clients/holderService/services/TenantsService.ts +176 -0
  13. package/clients/holderService/services/UserService.js +364 -0
  14. package/clients/holderService/services/UserService.ts +421 -0
  15. package/clients/storageService/services/AvatarsService.js +19 -8
  16. package/clients/storageService/services/AvatarsService.ts +19 -8
  17. package/clients/systemService/services/ModulesService.js +4 -2
  18. package/clients/systemService/services/ModulesService.ts +4 -2
  19. package/clients/systemService/services/TenantsService.js +24 -8
  20. package/clients/systemService/services/TenantsService.ts +24 -8
  21. package/clients/tenantService/index.js +1 -29
  22. package/clients/tenantService/index.ts +7 -20
  23. package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → tenantService/models/TenantIndustryDtoListEnvelope.ts} +3 -3
  24. package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
  25. package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
  26. package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
  27. package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
  28. package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
  29. package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
  30. package/clients/tenantService/services/SizesService.js +15 -5
  31. package/clients/tenantService/services/SizesService.ts +15 -5
  32. package/clients/tenantService/services/TenantsService.js +2554 -233
  33. package/clients/tenantService/services/TenantsService.ts +3004 -307
  34. package/package.json +1 -1
  35. package/schemas/contentService/schema.s.ts +850 -817
  36. package/schemas/crmService/schema.s.ts +1776 -1516
  37. package/schemas/holderService/schema.s.ts +256 -115
  38. package/schemas/storageService/schema.s.ts +439 -394
  39. package/schemas/systemService/schema.s.ts +465 -387
  40. package/schemas/tenantService/schema.s.ts +5713 -4820
  41. package/clients/tenantService/services/DepartmentsService.js +0 -161
  42. package/clients/tenantService/services/DepartmentsService.ts +0 -192
  43. package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
  44. package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
  45. package/clients/tenantService/services/EnrollmentsService.js +0 -163
  46. package/clients/tenantService/services/EnrollmentsService.ts +0 -195
  47. package/clients/tenantService/services/IndustriesService.js +0 -161
  48. package/clients/tenantService/services/IndustriesService.ts +0 -190
  49. package/clients/tenantService/services/InvitationsService.js +0 -128
  50. package/clients/tenantService/services/InvitationsService.ts +0 -150
  51. package/clients/tenantService/services/PositionsService.js +0 -161
  52. package/clients/tenantService/services/PositionsService.ts +0 -192
  53. package/clients/tenantService/services/SegmentsService.js +0 -161
  54. package/clients/tenantService/services/SegmentsService.ts +0 -191
  55. package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
  56. package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
  57. package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
  58. package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
  59. package/clients/tenantService/services/TeamRecordsService.js +0 -161
  60. package/clients/tenantService/services/TeamRecordsService.ts +0 -192
  61. package/clients/tenantService/services/TeamsService.js +0 -161
  62. package/clients/tenantService/services/TeamsService.ts +0 -192
  63. package/clients/tenantService/services/TerritoriesService.js +0 -161
  64. package/clients/tenantService/services/TerritoriesService.ts +0 -192
  65. package/clients/tenantService/services/TypesService.js +0 -149
  66. package/clients/tenantService/services/TypesService.ts +0 -176
  67. package/clients/tenantService/services/UnitsService.js +0 -159
  68. package/clients/tenantService/services/UnitsService.ts +0 -190
  69. /package/clients/{holderService/models/EmptyEnvelopeEnvelope.js → tenantService/models/TenantIndustryDtoListEnvelope.js} +0 -0
  70. /package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamContactEnrollmentDtoListEnvelope.js} +0 -0
  71. /package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.js → TenantTeamDtoListEnvelope.js} +0 -0
  72. /package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamEmployeeEnrollmentDtoListEnvelope.js} +0 -0
  73. /package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamProjectEnrollmentDtoListEnvelope.js} +0 -0
  74. /package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → TenantTeamRecordDtoListEnvelope.js} +0 -0
  75. /package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.js → TenantTypeDtoListEnvelope.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
+ }
@@ -5,12 +5,13 @@ const OpenAPI_1 = require("../core/OpenAPI");
5
5
  const request_1 = require("../core/request");
6
6
  class AvatarsService {
7
7
  /**
8
+ * Get the avatar for a given social profile.
8
9
  * @param socialProfileId
9
10
  * @param xApiVersion
10
11
  * @returns EmptyEnvelope OK
11
12
  * @throws ApiError
12
13
  */
13
- static getApiV2StorageServiceAvatars(socialProfileId, xApiVersion) {
14
+ static getAvatar(socialProfileId, xApiVersion) {
14
15
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
15
16
  method: 'GET',
16
17
  url: '/api/v2/StorageService/Avatars/{socialProfileId}',
@@ -27,11 +28,12 @@ class AvatarsService {
27
28
  });
28
29
  }
29
30
  /**
31
+ * Get the avatar for the current user.
30
32
  * @param xApiVersion
31
33
  * @returns EmptyEnvelope OK
32
34
  * @throws ApiError
33
35
  */
34
- static getApiV2StorageServiceAvatarsUser(xApiVersion) {
36
+ static getCurrentUserAvatar(xApiVersion) {
35
37
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
36
38
  method: 'GET',
37
39
  url: '/api/v2/StorageService/Avatars/User',
@@ -45,12 +47,13 @@ class AvatarsService {
45
47
  });
46
48
  }
47
49
  /**
50
+ * Update the avatar for the current user.
48
51
  * @param xApiVersion
49
52
  * @param formData
50
53
  * @returns EmptyEnvelope OK
51
54
  * @throws ApiError
52
55
  */
53
- static postApiV2StorageServiceAvatarsUser(xApiVersion, formData) {
56
+ static updateUserAvatar(xApiVersion, formData) {
54
57
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
55
58
  method: 'POST',
56
59
  url: '/api/v2/StorageService/Avatars/User',
@@ -60,18 +63,20 @@ class AvatarsService {
60
63
  formData: formData,
61
64
  mediaType: 'multipart/form-data',
62
65
  errors: {
66
+ 400: `Bad Request`,
63
67
  401: `Unauthorized`,
64
68
  403: `Forbidden`,
65
69
  },
66
70
  });
67
71
  }
68
72
  /**
73
+ * Get the avatar for a given user.
69
74
  * @param userId
70
75
  * @param xApiVersion
71
76
  * @returns EmptyEnvelope OK
72
77
  * @throws ApiError
73
78
  */
74
- static getApiV2StorageServiceAvatarsUser1(userId, xApiVersion) {
79
+ static getUserAvatar(userId, xApiVersion) {
75
80
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
76
81
  method: 'GET',
77
82
  url: '/api/v2/StorageService/Avatars/User/{userId}',
@@ -88,12 +93,13 @@ class AvatarsService {
88
93
  });
89
94
  }
90
95
  /**
96
+ * Get the avatar for a given tenant.
91
97
  * @param tenantId
92
98
  * @param xApiVersion
93
99
  * @returns EmptyEnvelope OK
94
100
  * @throws ApiError
95
101
  */
96
- static getApiV2StorageServiceAvatarsTenant(tenantId, xApiVersion) {
102
+ static getTenantAvatar(tenantId, xApiVersion) {
97
103
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
98
104
  method: 'GET',
99
105
  url: '/api/v2/StorageService/Avatars/Tenant/{tenantId}',
@@ -110,13 +116,14 @@ class AvatarsService {
110
116
  });
111
117
  }
112
118
  /**
119
+ * Update the avatar for a given tenant.
113
120
  * @param tenantId
114
121
  * @param xApiVersion
115
122
  * @param formData
116
123
  * @returns EmptyEnvelope OK
117
124
  * @throws ApiError
118
125
  */
119
- static postApiV2StorageServiceAvatarsTenant(tenantId, xApiVersion, formData) {
126
+ static updateTenantAvatar(tenantId, xApiVersion, formData) {
120
127
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
121
128
  method: 'POST',
122
129
  url: '/api/v2/StorageService/Avatars/Tenant/{tenantId}',
@@ -129,18 +136,20 @@ class AvatarsService {
129
136
  formData: formData,
130
137
  mediaType: 'multipart/form-data',
131
138
  errors: {
139
+ 400: `Bad Request`,
132
140
  401: `Unauthorized`,
133
141
  403: `Forbidden`,
134
142
  },
135
143
  });
136
144
  }
137
145
  /**
146
+ * Get the avatar for a given contact.
138
147
  * @param contactId
139
148
  * @param xApiVersion
140
149
  * @returns EmptyEnvelope OK
141
150
  * @throws ApiError
142
151
  */
143
- static getApiV2StorageServiceAvatarsContact(contactId, xApiVersion) {
152
+ static getContactAvatar(contactId, xApiVersion) {
144
153
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
145
154
  method: 'GET',
146
155
  url: '/api/v2/StorageService/Avatars/Contact/{contactId}',
@@ -157,6 +166,7 @@ class AvatarsService {
157
166
  });
158
167
  }
159
168
  /**
169
+ * Update the avatar for a given contact.
160
170
  * @param contactId
161
171
  * @param tenantId
162
172
  * @param xApiVersion
@@ -164,7 +174,7 @@ class AvatarsService {
164
174
  * @returns EmptyEnvelope OK
165
175
  * @throws ApiError
166
176
  */
167
- static postApiV2StorageServiceAvatarsContacts(contactId, tenantId, xApiVersion, formData) {
177
+ static updateContactAvatar(contactId, tenantId, xApiVersion, formData) {
168
178
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
169
179
  method: 'POST',
170
180
  url: '/api/v2/StorageService/Avatars/Contacts/{contactId}',
@@ -180,6 +190,7 @@ class AvatarsService {
180
190
  formData: formData,
181
191
  mediaType: 'multipart/form-data',
182
192
  errors: {
193
+ 400: `Bad Request`,
183
194
  401: `Unauthorized`,
184
195
  403: `Forbidden`,
185
196
  },
@@ -8,12 +8,13 @@ import { OpenAPI } from '../core/OpenAPI';
8
8
  import { request as __request } from '../core/request';
9
9
  export class AvatarsService {
10
10
  /**
11
+ * Get the avatar for a given social profile.
11
12
  * @param socialProfileId
12
13
  * @param xApiVersion
13
14
  * @returns EmptyEnvelope OK
14
15
  * @throws ApiError
15
16
  */
16
- public static getApiV2StorageServiceAvatars(
17
+ public static getAvatar(
17
18
  socialProfileId: string,
18
19
  xApiVersion?: string,
19
20
  ): CancelablePromise<EmptyEnvelope> {
@@ -33,11 +34,12 @@ export class AvatarsService {
33
34
  });
34
35
  }
35
36
  /**
37
+ * Get the avatar for the current user.
36
38
  * @param xApiVersion
37
39
  * @returns EmptyEnvelope OK
38
40
  * @throws ApiError
39
41
  */
40
- public static getApiV2StorageServiceAvatarsUser(
42
+ public static getCurrentUserAvatar(
41
43
  xApiVersion?: string,
42
44
  ): CancelablePromise<EmptyEnvelope> {
43
45
  return __request(OpenAPI, {
@@ -53,12 +55,13 @@ export class AvatarsService {
53
55
  });
54
56
  }
55
57
  /**
58
+ * Update the avatar for the current user.
56
59
  * @param xApiVersion
57
60
  * @param formData
58
61
  * @returns EmptyEnvelope OK
59
62
  * @throws ApiError
60
63
  */
61
- public static postApiV2StorageServiceAvatarsUser(
64
+ public static updateUserAvatar(
62
65
  xApiVersion?: string,
63
66
  formData?: {
64
67
  avatar?: Blob;
@@ -73,18 +76,20 @@ export class AvatarsService {
73
76
  formData: formData,
74
77
  mediaType: 'multipart/form-data',
75
78
  errors: {
79
+ 400: `Bad Request`,
76
80
  401: `Unauthorized`,
77
81
  403: `Forbidden`,
78
82
  },
79
83
  });
80
84
  }
81
85
  /**
86
+ * Get the avatar for a given user.
82
87
  * @param userId
83
88
  * @param xApiVersion
84
89
  * @returns EmptyEnvelope OK
85
90
  * @throws ApiError
86
91
  */
87
- public static getApiV2StorageServiceAvatarsUser1(
92
+ public static getUserAvatar(
88
93
  userId: string,
89
94
  xApiVersion?: string,
90
95
  ): CancelablePromise<EmptyEnvelope> {
@@ -104,12 +109,13 @@ export class AvatarsService {
104
109
  });
105
110
  }
106
111
  /**
112
+ * Get the avatar for a given tenant.
107
113
  * @param tenantId
108
114
  * @param xApiVersion
109
115
  * @returns EmptyEnvelope OK
110
116
  * @throws ApiError
111
117
  */
112
- public static getApiV2StorageServiceAvatarsTenant(
118
+ public static getTenantAvatar(
113
119
  tenantId: string,
114
120
  xApiVersion?: string,
115
121
  ): CancelablePromise<EmptyEnvelope> {
@@ -129,13 +135,14 @@ export class AvatarsService {
129
135
  });
130
136
  }
131
137
  /**
138
+ * Update the avatar for a given tenant.
132
139
  * @param tenantId
133
140
  * @param xApiVersion
134
141
  * @param formData
135
142
  * @returns EmptyEnvelope OK
136
143
  * @throws ApiError
137
144
  */
138
- public static postApiV2StorageServiceAvatarsTenant(
145
+ public static updateTenantAvatar(
139
146
  tenantId: string,
140
147
  xApiVersion?: string,
141
148
  formData?: {
@@ -154,18 +161,20 @@ export class AvatarsService {
154
161
  formData: formData,
155
162
  mediaType: 'multipart/form-data',
156
163
  errors: {
164
+ 400: `Bad Request`,
157
165
  401: `Unauthorized`,
158
166
  403: `Forbidden`,
159
167
  },
160
168
  });
161
169
  }
162
170
  /**
171
+ * Get the avatar for a given contact.
163
172
  * @param contactId
164
173
  * @param xApiVersion
165
174
  * @returns EmptyEnvelope OK
166
175
  * @throws ApiError
167
176
  */
168
- public static getApiV2StorageServiceAvatarsContact(
177
+ public static getContactAvatar(
169
178
  contactId: string,
170
179
  xApiVersion?: string,
171
180
  ): CancelablePromise<EmptyEnvelope> {
@@ -185,6 +194,7 @@ export class AvatarsService {
185
194
  });
186
195
  }
187
196
  /**
197
+ * Update the avatar for a given contact.
188
198
  * @param contactId
189
199
  * @param tenantId
190
200
  * @param xApiVersion
@@ -192,7 +202,7 @@ export class AvatarsService {
192
202
  * @returns EmptyEnvelope OK
193
203
  * @throws ApiError
194
204
  */
195
- public static postApiV2StorageServiceAvatarsContacts(
205
+ public static updateContactAvatar(
196
206
  contactId: string,
197
207
  tenantId?: string,
198
208
  xApiVersion?: string,
@@ -215,6 +225,7 @@ export class AvatarsService {
215
225
  formData: formData,
216
226
  mediaType: 'multipart/form-data',
217
227
  errors: {
228
+ 400: `Bad Request`,
218
229
  401: `Unauthorized`,
219
230
  403: `Forbidden`,
220
231
  },