@fenixalliance/abs-api-client 1.0.11 → 1.0.13

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.
@@ -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,151 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TenantsService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class TenantsService {
7
- /**
8
- * Get the tenants that the current user is enrolled in
9
- * Get the tenants that the current user is enrolled in
10
- * @param xApiVersion
11
- * @returns TenantDtoListEnvelope OK
12
- * @throws ApiError
13
- */
14
- static getCurrentUserTenantsAsync(xApiVersion) {
15
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
16
- method: 'GET',
17
- url: '/api/v2/Me/Businesses',
18
- headers: {
19
- 'x-api-version': xApiVersion,
20
- },
21
- errors: {
22
- 401: `Unauthorized`,
23
- 403: `Forbidden`,
24
- },
25
- });
26
- }
27
- /**
28
- * Count the tenants that the current user is enrolled in
29
- * Count the tenants that the current user is enrolled in
30
- * @param xApiVersion
31
- * @returns Int32Envelope OK
32
- * @throws ApiError
33
- */
34
- static countCurrentUserTenantsAsync(xApiVersion) {
35
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
36
- method: 'GET',
37
- url: '/api/v2/Me/Businesses/Count',
38
- headers: {
39
- 'x-api-version': xApiVersion,
40
- },
41
- errors: {
42
- 401: `Unauthorized`,
43
- 403: `Forbidden`,
44
- },
45
- });
46
- }
47
- /**
48
- * Get the tenants that the current user is enrolled in
49
- * Get the tenants that the current user is enrolled in
50
- * @param xApiVersion
51
- * @returns ExtendedTenantDtoListEnvelope OK
52
- * @throws ApiError
53
- */
54
- static getCurrentUserTenantsExtendedAsync(xApiVersion) {
55
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
56
- method: 'GET',
57
- url: '/api/v2/Me/Businesses/Extended',
58
- headers: {
59
- 'x-api-version': xApiVersion,
60
- },
61
- errors: {
62
- 401: `Unauthorized`,
63
- 403: `Forbidden`,
64
- },
65
- });
66
- }
67
- /**
68
- * Get the list of enrollments for the current user
69
- * Get the list of enrollments for the current user
70
- * @param xApiVersion
71
- * @returns TenantEnrolmentDtoListEnvelope OK
72
- * @throws ApiError
73
- */
74
- static getCurrentUserEnrollmentsAsync(xApiVersion) {
75
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
76
- method: 'GET',
77
- url: '/api/v2/Me/Enrollments',
78
- headers: {
79
- 'x-api-version': xApiVersion,
80
- },
81
- errors: {
82
- 401: `Unauthorized`,
83
- },
84
- });
85
- }
86
- /**
87
- * Get the list of enrollments for the current user
88
- * Get the list of enrollments for the current user
89
- * @param xApiVersion
90
- * @returns ExtendedTenantEnrolmentDtoListEnvelope OK
91
- * @throws ApiError
92
- */
93
- static getCurrentUserEnrollmentsExtendedAsync(xApiVersion) {
94
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
95
- method: 'GET',
96
- url: '/api/v2/Me/Enrollments/Extended',
97
- headers: {
98
- 'x-api-version': xApiVersion,
99
- },
100
- errors: {
101
- 401: `Unauthorized`,
102
- },
103
- });
104
- }
105
- /**
106
- * Get a single TenantEnrollment by its ID
107
- * Get a single TenantEnrollment by its ID
108
- * @param enrollmentId
109
- * @param xApiVersion
110
- * @param requestBody
111
- * @returns TenantEnrolmentDtoEnvelope OK
112
- * @throws ApiError
113
- */
114
- static getTenantEnrollmentAsync(enrollmentId, xApiVersion, requestBody) {
115
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
116
- method: 'GET',
117
- url: '/api/v2/Me/Enrollments/{enrollmentId}',
118
- path: {
119
- 'enrollmentId': enrollmentId,
120
- },
121
- headers: {
122
- 'x-api-version': xApiVersion,
123
- },
124
- body: requestBody,
125
- mediaType: 'application/json',
126
- errors: {
127
- 401: `Unauthorized`,
128
- },
129
- });
130
- }
131
- /**
132
- * Get the list of tenant enrollment invitations for the current user
133
- * Get the list of tenant enrollment invitations for the current user
134
- * @param xApiVersion
135
- * @returns TenantInvitationDtoListEnvelope OK
136
- * @throws ApiError
137
- */
138
- static getCurrentUserInvitationAsync(xApiVersion) {
139
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
140
- method: 'GET',
141
- url: '/api/v2/Me/Invitations',
142
- headers: {
143
- 'x-api-version': xApiVersion,
144
- },
145
- errors: {
146
- 401: `Unauthorized`,
147
- },
148
- });
149
- }
150
- }
151
- exports.TenantsService = TenantsService;