@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.
- package/app/index.js +2 -2
- package/app/index.ts +1 -1
- package/clients/contentService/services/PortalsService.js +22 -11
- package/clients/contentService/services/PortalsService.ts +22 -11
- package/clients/crmService/services/ContactsService.js +86 -28
- package/clients/crmService/services/ContactsService.ts +86 -28
- package/clients/holderService/index.js +7 -3
- package/clients/holderService/index.ts +3 -2
- package/clients/holderService/services/{HolderService.js → IdentityService.js} +58 -176
- package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +58 -200
- package/clients/holderService/services/TenantsService.js +151 -0
- package/clients/holderService/services/TenantsService.ts +176 -0
- package/clients/holderService/services/UserService.js +364 -0
- package/clients/holderService/services/UserService.ts +421 -0
- package/clients/storageService/services/AvatarsService.js +19 -8
- package/clients/storageService/services/AvatarsService.ts +19 -8
- package/clients/systemService/services/ModulesService.js +4 -2
- package/clients/systemService/services/ModulesService.ts +4 -2
- package/clients/systemService/services/TenantsService.js +24 -8
- package/clients/systemService/services/TenantsService.ts +24 -8
- package/clients/tenantService/index.js +1 -29
- package/clients/tenantService/index.ts +7 -20
- package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → tenantService/models/TenantIndustryDtoListEnvelope.ts} +3 -3
- package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/services/SizesService.js +15 -5
- package/clients/tenantService/services/SizesService.ts +15 -5
- package/clients/tenantService/services/TenantsService.js +2554 -233
- package/clients/tenantService/services/TenantsService.ts +3004 -307
- package/package.json +1 -1
- package/schemas/contentService/schema.s.ts +850 -817
- package/schemas/crmService/schema.s.ts +1776 -1516
- package/schemas/holderService/schema.s.ts +256 -115
- package/schemas/storageService/schema.s.ts +439 -394
- package/schemas/systemService/schema.s.ts +465 -387
- package/schemas/tenantService/schema.s.ts +5713 -4820
- package/clients/tenantService/services/DepartmentsService.js +0 -161
- package/clients/tenantService/services/DepartmentsService.ts +0 -192
- package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
- package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
- package/clients/tenantService/services/EnrollmentsService.js +0 -163
- package/clients/tenantService/services/EnrollmentsService.ts +0 -195
- package/clients/tenantService/services/IndustriesService.js +0 -161
- package/clients/tenantService/services/IndustriesService.ts +0 -190
- package/clients/tenantService/services/InvitationsService.js +0 -128
- package/clients/tenantService/services/InvitationsService.ts +0 -150
- package/clients/tenantService/services/PositionsService.js +0 -161
- package/clients/tenantService/services/PositionsService.ts +0 -192
- package/clients/tenantService/services/SegmentsService.js +0 -161
- package/clients/tenantService/services/SegmentsService.ts +0 -191
- package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
- package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
- package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
- package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
- package/clients/tenantService/services/TeamRecordsService.js +0 -161
- package/clients/tenantService/services/TeamRecordsService.ts +0 -192
- package/clients/tenantService/services/TeamsService.js +0 -161
- package/clients/tenantService/services/TeamsService.ts +0 -192
- package/clients/tenantService/services/TerritoriesService.js +0 -161
- package/clients/tenantService/services/TerritoriesService.ts +0 -192
- package/clients/tenantService/services/TypesService.js +0 -149
- package/clients/tenantService/services/TypesService.ts +0 -176
- package/clients/tenantService/services/UnitsService.js +0 -159
- package/clients/tenantService/services/UnitsService.ts +0 -190
- /package/clients/{holderService/models/EmptyEnvelopeEnvelope.js → tenantService/models/TenantIndustryDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamContactEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.js → TenantTeamDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamEmployeeEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamProjectEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → TenantTeamRecordDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.js → TenantTypeDtoListEnvelope.js} +0 -0
|
@@ -5,20 +5,12 @@
|
|
|
5
5
|
import type { AddressDtoListEnvelope } from '../models/AddressDtoListEnvelope';
|
|
6
6
|
import type { CartDtoEnvelope } from '../models/CartDtoEnvelope';
|
|
7
7
|
import type { EmptyEnvelope } from '../models/EmptyEnvelope';
|
|
8
|
-
import type { EmptyEnvelopeEnvelope } from '../models/EmptyEnvelopeEnvelope';
|
|
9
|
-
import type { EnrollmentId } from '../models/EnrollmentId';
|
|
10
|
-
import type { ExtendedTenantDtoListEnvelope } from '../models/ExtendedTenantDtoListEnvelope';
|
|
11
|
-
import type { ExtendedTenantEnrolmentDtoListEnvelope } from '../models/ExtendedTenantEnrolmentDtoListEnvelope';
|
|
12
8
|
import type { ExtendedUserDtoEnvelope } from '../models/ExtendedUserDtoEnvelope';
|
|
13
9
|
import type { FollowRecordDtoListEnvelope } from '../models/FollowRecordDtoListEnvelope';
|
|
14
10
|
import type { Int32Envelope } from '../models/Int32Envelope';
|
|
15
11
|
import type { NotificationDtoListEnvelope } from '../models/NotificationDtoListEnvelope';
|
|
16
12
|
import type { Operation } from '../models/Operation';
|
|
17
13
|
import type { SocialProfileDtoEnvelope } from '../models/SocialProfileDtoEnvelope';
|
|
18
|
-
import type { TenantDtoListEnvelope } from '../models/TenantDtoListEnvelope';
|
|
19
|
-
import type { TenantEnrolmentDtoEnvelope } from '../models/TenantEnrolmentDtoEnvelope';
|
|
20
|
-
import type { TenantEnrolmentDtoListEnvelope } from '../models/TenantEnrolmentDtoListEnvelope';
|
|
21
|
-
import type { TenantInvitationDtoListEnvelope } from '../models/TenantInvitationDtoListEnvelope';
|
|
22
14
|
import type { UserDtoEnvelope } from '../models/UserDtoEnvelope';
|
|
23
15
|
import type { UserSettingsDtoEnvelope } from '../models/UserSettingsDtoEnvelope';
|
|
24
16
|
import type { UserSettingsUpdateDto } from '../models/UserSettingsUpdateDto';
|
|
@@ -27,14 +19,15 @@ import type { WalletDtoEnvelope } from '../models/WalletDtoEnvelope';
|
|
|
27
19
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
28
20
|
import { OpenAPI } from '../core/OpenAPI';
|
|
29
21
|
import { request as __request } from '../core/request';
|
|
30
|
-
export class
|
|
22
|
+
export class IdentityService {
|
|
31
23
|
/**
|
|
32
24
|
* Gets the current user
|
|
25
|
+
* Get the currently acting user.
|
|
33
26
|
* @param xApiVersion
|
|
34
27
|
* @returns UserDtoEnvelope OK
|
|
35
28
|
* @throws ApiError
|
|
36
29
|
*/
|
|
37
|
-
public static
|
|
30
|
+
public static getCurrentUserAsync(
|
|
38
31
|
xApiVersion?: string,
|
|
39
32
|
): CancelablePromise<UserDtoEnvelope> {
|
|
40
33
|
return __request(OpenAPI, {
|
|
@@ -49,16 +42,17 @@ export class HolderService {
|
|
|
49
42
|
});
|
|
50
43
|
}
|
|
51
44
|
/**
|
|
52
|
-
*
|
|
45
|
+
* Update the current user's profile
|
|
46
|
+
* Update the current user's profile
|
|
53
47
|
* @param xApiVersion
|
|
54
48
|
* @param requestBody
|
|
55
|
-
* @returns
|
|
49
|
+
* @returns EmptyEnvelope OK
|
|
56
50
|
* @throws ApiError
|
|
57
51
|
*/
|
|
58
|
-
public static
|
|
52
|
+
public static updateCurrentUserAsync(
|
|
59
53
|
xApiVersion?: string,
|
|
60
54
|
requestBody?: UserUpdateDto,
|
|
61
|
-
): CancelablePromise<
|
|
55
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
62
56
|
return __request(OpenAPI, {
|
|
63
57
|
method: 'PUT',
|
|
64
58
|
url: '/api/v2/Me',
|
|
@@ -73,16 +67,17 @@ export class HolderService {
|
|
|
73
67
|
});
|
|
74
68
|
}
|
|
75
69
|
/**
|
|
76
|
-
*
|
|
70
|
+
* Partially update the current user's profile
|
|
71
|
+
* Partially update the current user's profile
|
|
77
72
|
* @param xApiVersion
|
|
78
73
|
* @param requestBody
|
|
79
|
-
* @returns
|
|
74
|
+
* @returns EmptyEnvelope OK
|
|
80
75
|
* @throws ApiError
|
|
81
76
|
*/
|
|
82
|
-
public static
|
|
77
|
+
public static patchCurrentUserAsync(
|
|
83
78
|
xApiVersion?: string,
|
|
84
79
|
requestBody?: Array<Operation>,
|
|
85
|
-
): CancelablePromise<
|
|
80
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
86
81
|
return __request(OpenAPI, {
|
|
87
82
|
method: 'PATCH',
|
|
88
83
|
url: '/api/v2/Me',
|
|
@@ -97,12 +92,13 @@ export class HolderService {
|
|
|
97
92
|
});
|
|
98
93
|
}
|
|
99
94
|
/**
|
|
100
|
-
*
|
|
95
|
+
* Get the current user's extended profile
|
|
96
|
+
* Get the current user's extended profile
|
|
101
97
|
* @param xApiVersion
|
|
102
98
|
* @returns ExtendedUserDtoEnvelope OK
|
|
103
99
|
* @throws ApiError
|
|
104
100
|
*/
|
|
105
|
-
public static
|
|
101
|
+
public static getExtendedCurrentUserAsync(
|
|
106
102
|
xApiVersion?: string,
|
|
107
103
|
): CancelablePromise<ExtendedUserDtoEnvelope> {
|
|
108
104
|
return __request(OpenAPI, {
|
|
@@ -117,12 +113,13 @@ export class HolderService {
|
|
|
117
113
|
});
|
|
118
114
|
}
|
|
119
115
|
/**
|
|
120
|
-
*
|
|
116
|
+
* Get the current user's avatar
|
|
117
|
+
* Get the current user's avatar
|
|
121
118
|
* @param xApiVersion
|
|
122
119
|
* @returns binary OK
|
|
123
120
|
* @throws ApiError
|
|
124
121
|
*/
|
|
125
|
-
public static
|
|
122
|
+
public static getCurrentUserAvatarAsync(
|
|
126
123
|
xApiVersion?: string,
|
|
127
124
|
): CancelablePromise<Blob> {
|
|
128
125
|
return __request(OpenAPI, {
|
|
@@ -138,13 +135,14 @@ export class HolderService {
|
|
|
138
135
|
});
|
|
139
136
|
}
|
|
140
137
|
/**
|
|
141
|
-
*
|
|
138
|
+
* Update the current user's avatar
|
|
139
|
+
* Update the current user's avatar
|
|
142
140
|
* @param xApiVersion
|
|
143
141
|
* @param formData
|
|
144
142
|
* @returns EmptyEnvelope OK
|
|
145
143
|
* @throws ApiError
|
|
146
144
|
*/
|
|
147
|
-
public static
|
|
145
|
+
public static updateAvatarAsync(
|
|
148
146
|
xApiVersion?: string,
|
|
149
147
|
formData?: {
|
|
150
148
|
avatar?: Blob;
|
|
@@ -165,12 +163,13 @@ export class HolderService {
|
|
|
165
163
|
});
|
|
166
164
|
}
|
|
167
165
|
/**
|
|
168
|
-
*
|
|
166
|
+
* Get the social profiles that the current user follows
|
|
167
|
+
* Get the social profiles that the current user follows
|
|
169
168
|
* @param xApiVersion
|
|
170
169
|
* @returns FollowRecordDtoListEnvelope OK
|
|
171
170
|
* @throws ApiError
|
|
172
171
|
*/
|
|
173
|
-
public static
|
|
172
|
+
public static getCurrentUserFollowsAsync(
|
|
174
173
|
xApiVersion?: string,
|
|
175
174
|
): CancelablePromise<FollowRecordDtoListEnvelope> {
|
|
176
175
|
return __request(OpenAPI, {
|
|
@@ -185,12 +184,13 @@ export class HolderService {
|
|
|
185
184
|
});
|
|
186
185
|
}
|
|
187
186
|
/**
|
|
188
|
-
*
|
|
187
|
+
* Count the social profiles that the current user follows
|
|
188
|
+
* Count the social profiles that the current user follows
|
|
189
189
|
* @param xApiVersion
|
|
190
190
|
* @returns Int32Envelope OK
|
|
191
191
|
* @throws ApiError
|
|
192
192
|
*/
|
|
193
|
-
public static
|
|
193
|
+
public static countCurrentUserFollowsAsync(
|
|
194
194
|
xApiVersion?: string,
|
|
195
195
|
): CancelablePromise<Int32Envelope> {
|
|
196
196
|
return __request(OpenAPI, {
|
|
@@ -205,12 +205,13 @@ export class HolderService {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
|
-
*
|
|
208
|
+
* Get the social profiles that follow the current user
|
|
209
|
+
* Get the social profiles that follow the current user
|
|
209
210
|
* @param xApiVersion
|
|
210
211
|
* @returns FollowRecordDtoListEnvelope OK
|
|
211
212
|
* @throws ApiError
|
|
212
213
|
*/
|
|
213
|
-
public static
|
|
214
|
+
public static getCurrentUserFollowersAsync(
|
|
214
215
|
xApiVersion?: string,
|
|
215
216
|
): CancelablePromise<FollowRecordDtoListEnvelope> {
|
|
216
217
|
return __request(OpenAPI, {
|
|
@@ -225,12 +226,13 @@ export class HolderService {
|
|
|
225
226
|
});
|
|
226
227
|
}
|
|
227
228
|
/**
|
|
228
|
-
*
|
|
229
|
+
* Count the social profiles that follow the current user
|
|
230
|
+
* Count the social profiles that follow the current user
|
|
229
231
|
* @param xApiVersion
|
|
230
232
|
* @returns Int32Envelope OK
|
|
231
233
|
* @throws ApiError
|
|
232
234
|
*/
|
|
233
|
-
public static
|
|
235
|
+
public static countCurrentUserFollowersAsync(
|
|
234
236
|
xApiVersion?: string,
|
|
235
237
|
): CancelablePromise<Int32Envelope> {
|
|
236
238
|
return __request(OpenAPI, {
|
|
@@ -245,144 +247,13 @@ export class HolderService {
|
|
|
245
247
|
});
|
|
246
248
|
}
|
|
247
249
|
/**
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
* @returns TenantDtoListEnvelope OK
|
|
251
|
-
* @throws ApiError
|
|
252
|
-
*/
|
|
253
|
-
public static getMyTenants(
|
|
254
|
-
xApiVersion?: string,
|
|
255
|
-
): CancelablePromise<TenantDtoListEnvelope> {
|
|
256
|
-
return __request(OpenAPI, {
|
|
257
|
-
method: 'GET',
|
|
258
|
-
url: '/api/v2/Me/Businesses',
|
|
259
|
-
headers: {
|
|
260
|
-
'x-api-version': xApiVersion,
|
|
261
|
-
},
|
|
262
|
-
errors: {
|
|
263
|
-
401: `Unauthorized`,
|
|
264
|
-
403: `Forbidden`,
|
|
265
|
-
},
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Counts the tenants that the current user is enrolled in
|
|
270
|
-
* @param xApiVersion
|
|
271
|
-
* @returns Int32Envelope OK
|
|
272
|
-
* @throws ApiError
|
|
273
|
-
*/
|
|
274
|
-
public static countMyTenants(
|
|
275
|
-
xApiVersion?: string,
|
|
276
|
-
): CancelablePromise<Int32Envelope> {
|
|
277
|
-
return __request(OpenAPI, {
|
|
278
|
-
method: 'GET',
|
|
279
|
-
url: '/api/v2/Me/Businesses/Count',
|
|
280
|
-
headers: {
|
|
281
|
-
'x-api-version': xApiVersion,
|
|
282
|
-
},
|
|
283
|
-
errors: {
|
|
284
|
-
401: `Unauthorized`,
|
|
285
|
-
403: `Forbidden`,
|
|
286
|
-
},
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Gets the tenants that the current user is enrolled in with extended information
|
|
291
|
-
* @param xApiVersion
|
|
292
|
-
* @returns ExtendedTenantDtoListEnvelope OK
|
|
293
|
-
* @throws ApiError
|
|
294
|
-
*/
|
|
295
|
-
public static getMyTenantsExtended(
|
|
296
|
-
xApiVersion?: string,
|
|
297
|
-
): CancelablePromise<ExtendedTenantDtoListEnvelope> {
|
|
298
|
-
return __request(OpenAPI, {
|
|
299
|
-
method: 'GET',
|
|
300
|
-
url: '/api/v2/Me/Businesses/Extended',
|
|
301
|
-
headers: {
|
|
302
|
-
'x-api-version': xApiVersion,
|
|
303
|
-
},
|
|
304
|
-
errors: {
|
|
305
|
-
401: `Unauthorized`,
|
|
306
|
-
403: `Forbidden`,
|
|
307
|
-
},
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Gets the list of enrollments for the current user
|
|
312
|
-
* @param xApiVersion
|
|
313
|
-
* @returns TenantEnrolmentDtoListEnvelope OK
|
|
314
|
-
* @throws ApiError
|
|
315
|
-
*/
|
|
316
|
-
public static getMyEnrollments(
|
|
317
|
-
xApiVersion?: string,
|
|
318
|
-
): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
|
|
319
|
-
return __request(OpenAPI, {
|
|
320
|
-
method: 'GET',
|
|
321
|
-
url: '/api/v2/Me/Enrollments',
|
|
322
|
-
headers: {
|
|
323
|
-
'x-api-version': xApiVersion,
|
|
324
|
-
},
|
|
325
|
-
errors: {
|
|
326
|
-
401: `Unauthorized`,
|
|
327
|
-
},
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Gets the list of enrollments for the current user with extended information
|
|
332
|
-
* @param xApiVersion
|
|
333
|
-
* @returns ExtendedTenantEnrolmentDtoListEnvelope OK
|
|
334
|
-
* @throws ApiError
|
|
335
|
-
*/
|
|
336
|
-
public static getMyEnrollmentsExtended(
|
|
337
|
-
xApiVersion?: string,
|
|
338
|
-
): CancelablePromise<ExtendedTenantEnrolmentDtoListEnvelope> {
|
|
339
|
-
return __request(OpenAPI, {
|
|
340
|
-
method: 'GET',
|
|
341
|
-
url: '/api/v2/Me/Enrollments/Extended',
|
|
342
|
-
headers: {
|
|
343
|
-
'x-api-version': xApiVersion,
|
|
344
|
-
},
|
|
345
|
-
errors: {
|
|
346
|
-
401: `Unauthorized`,
|
|
347
|
-
},
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Gets a single TenantEnrollment by its ID
|
|
352
|
-
* @param enrollmentId
|
|
353
|
-
* @param xApiVersion
|
|
354
|
-
* @param requestBody
|
|
355
|
-
* @returns TenantEnrolmentDtoEnvelope OK
|
|
356
|
-
* @throws ApiError
|
|
357
|
-
*/
|
|
358
|
-
public static getMyEnrollment(
|
|
359
|
-
enrollmentId: string,
|
|
360
|
-
xApiVersion?: string,
|
|
361
|
-
requestBody?: EnrollmentId,
|
|
362
|
-
): CancelablePromise<TenantEnrolmentDtoEnvelope> {
|
|
363
|
-
return __request(OpenAPI, {
|
|
364
|
-
method: 'GET',
|
|
365
|
-
url: '/api/v2/Me/Enrollments/{enrollmentId}',
|
|
366
|
-
path: {
|
|
367
|
-
'enrollmentId': enrollmentId,
|
|
368
|
-
},
|
|
369
|
-
headers: {
|
|
370
|
-
'x-api-version': xApiVersion,
|
|
371
|
-
},
|
|
372
|
-
body: requestBody,
|
|
373
|
-
mediaType: 'application/json',
|
|
374
|
-
errors: {
|
|
375
|
-
401: `Unauthorized`,
|
|
376
|
-
},
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* Gets the current user's social profile
|
|
250
|
+
* Get the current user's social profile
|
|
251
|
+
* Get the current user's social profile
|
|
381
252
|
* @param xApiVersion
|
|
382
253
|
* @returns SocialProfileDtoEnvelope OK
|
|
383
254
|
* @throws ApiError
|
|
384
255
|
*/
|
|
385
|
-
public static
|
|
256
|
+
public static getCurrentUserSocialProfileAsync(
|
|
386
257
|
xApiVersion?: string,
|
|
387
258
|
): CancelablePromise<SocialProfileDtoEnvelope> {
|
|
388
259
|
return __request(OpenAPI, {
|
|
@@ -397,12 +268,13 @@ export class HolderService {
|
|
|
397
268
|
});
|
|
398
269
|
}
|
|
399
270
|
/**
|
|
400
|
-
*
|
|
271
|
+
* Get the current user's cart
|
|
272
|
+
* Get the current user's cart
|
|
401
273
|
* @param xApiVersion
|
|
402
274
|
* @returns CartDtoEnvelope OK
|
|
403
275
|
* @throws ApiError
|
|
404
276
|
*/
|
|
405
|
-
public static
|
|
277
|
+
public static getCurrentUserCartAsync(
|
|
406
278
|
xApiVersion?: string,
|
|
407
279
|
): CancelablePromise<CartDtoEnvelope> {
|
|
408
280
|
return __request(OpenAPI, {
|
|
@@ -417,12 +289,13 @@ export class HolderService {
|
|
|
417
289
|
});
|
|
418
290
|
}
|
|
419
291
|
/**
|
|
420
|
-
*
|
|
292
|
+
* Get the current user's billing profile
|
|
293
|
+
* Get the current user's billing profile
|
|
421
294
|
* @param xApiVersion
|
|
422
295
|
* @returns WalletDtoEnvelope OK
|
|
423
296
|
* @throws ApiError
|
|
424
297
|
*/
|
|
425
|
-
public static
|
|
298
|
+
public static getCurrentUserWalletAsync(
|
|
426
299
|
xApiVersion?: string,
|
|
427
300
|
): CancelablePromise<WalletDtoEnvelope> {
|
|
428
301
|
return __request(OpenAPI, {
|
|
@@ -437,12 +310,13 @@ export class HolderService {
|
|
|
437
310
|
});
|
|
438
311
|
}
|
|
439
312
|
/**
|
|
440
|
-
*
|
|
313
|
+
* Get the list of notifications for the current user
|
|
314
|
+
* Get the list of notifications for the current user
|
|
441
315
|
* @param xApiVersion
|
|
442
316
|
* @returns NotificationDtoListEnvelope OK
|
|
443
317
|
* @throws ApiError
|
|
444
318
|
*/
|
|
445
|
-
public static
|
|
319
|
+
public static getCurrentUserNotificationsAsync(
|
|
446
320
|
xApiVersion?: string,
|
|
447
321
|
): CancelablePromise<NotificationDtoListEnvelope> {
|
|
448
322
|
return __request(OpenAPI, {
|
|
@@ -457,12 +331,13 @@ export class HolderService {
|
|
|
457
331
|
});
|
|
458
332
|
}
|
|
459
333
|
/**
|
|
460
|
-
*
|
|
334
|
+
* Count the notifications for the current user
|
|
335
|
+
* Count the notifications for the current user
|
|
461
336
|
* @param xApiVersion
|
|
462
337
|
* @returns Int32Envelope OK
|
|
463
338
|
* @throws ApiError
|
|
464
339
|
*/
|
|
465
|
-
public static
|
|
340
|
+
public static countCurrentUserNotificationsAsync(
|
|
466
341
|
xApiVersion?: string,
|
|
467
342
|
): CancelablePromise<Int32Envelope> {
|
|
468
343
|
return __request(OpenAPI, {
|
|
@@ -477,12 +352,13 @@ export class HolderService {
|
|
|
477
352
|
});
|
|
478
353
|
}
|
|
479
354
|
/**
|
|
480
|
-
*
|
|
355
|
+
* Get the settings for the current user
|
|
356
|
+
* Get the settings for the current user
|
|
481
357
|
* @param xApiVersion
|
|
482
358
|
* @returns UserSettingsDtoEnvelope OK
|
|
483
359
|
* @throws ApiError
|
|
484
360
|
*/
|
|
485
|
-
public static
|
|
361
|
+
public static getCurrentUserSettingsAsync(
|
|
486
362
|
xApiVersion?: string,
|
|
487
363
|
): CancelablePromise<UserSettingsDtoEnvelope> {
|
|
488
364
|
return __request(OpenAPI, {
|
|
@@ -497,13 +373,14 @@ export class HolderService {
|
|
|
497
373
|
});
|
|
498
374
|
}
|
|
499
375
|
/**
|
|
500
|
-
*
|
|
376
|
+
* Update the settings for the current user
|
|
377
|
+
* Update the settings for the current user
|
|
501
378
|
* @param xApiVersion
|
|
502
379
|
* @param requestBody
|
|
503
380
|
* @returns UserSettingsDtoEnvelope OK
|
|
504
381
|
* @throws ApiError
|
|
505
382
|
*/
|
|
506
|
-
public static
|
|
383
|
+
public static updateCurrentUserSettingsAsync(
|
|
507
384
|
xApiVersion?: string,
|
|
508
385
|
requestBody?: UserSettingsUpdateDto,
|
|
509
386
|
): CancelablePromise<UserSettingsDtoEnvelope> {
|
|
@@ -521,12 +398,13 @@ export class HolderService {
|
|
|
521
398
|
});
|
|
522
399
|
}
|
|
523
400
|
/**
|
|
524
|
-
*
|
|
401
|
+
* Get the list of addresses for the current user
|
|
402
|
+
* Get the list of addresses for the current user
|
|
525
403
|
* @param xApiVersion
|
|
526
404
|
* @returns AddressDtoListEnvelope OK
|
|
527
405
|
* @throws ApiError
|
|
528
406
|
*/
|
|
529
|
-
public static
|
|
407
|
+
public static getCurrentUserAddressesAsync(
|
|
530
408
|
xApiVersion?: string,
|
|
531
409
|
): CancelablePromise<AddressDtoListEnvelope> {
|
|
532
410
|
return __request(OpenAPI, {
|
|
@@ -540,24 +418,4 @@ export class HolderService {
|
|
|
540
418
|
},
|
|
541
419
|
});
|
|
542
420
|
}
|
|
543
|
-
/**
|
|
544
|
-
* Gets the list of tenant enrollment invitations for the current user
|
|
545
|
-
* @param xApiVersion
|
|
546
|
-
* @returns TenantInvitationDtoListEnvelope OK
|
|
547
|
-
* @throws ApiError
|
|
548
|
-
*/
|
|
549
|
-
public static getMyInvitations(
|
|
550
|
-
xApiVersion?: string,
|
|
551
|
-
): CancelablePromise<TenantInvitationDtoListEnvelope> {
|
|
552
|
-
return __request(OpenAPI, {
|
|
553
|
-
method: 'GET',
|
|
554
|
-
url: '/api/v2/Me/Invitations',
|
|
555
|
-
headers: {
|
|
556
|
-
'x-api-version': xApiVersion,
|
|
557
|
-
},
|
|
558
|
-
errors: {
|
|
559
|
-
401: `Unauthorized`,
|
|
560
|
-
},
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
421
|
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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;
|