@fenixalliance/abs-api-client 1.0.9 → 1.0.11
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 +3 -3
- package/app/index.ts +2 -2
- package/clients/cartService/index.js +7 -3
- package/clients/cartService/index.ts +3 -1
- package/clients/cartService/services/CartLinesService.js +173 -0
- package/clients/cartService/services/CartLinesService.ts +203 -0
- package/clients/cartService/services/{CartsService.js → CartService.js} +137 -44
- package/clients/cartService/services/{CartsService.ts → CartService.ts} +135 -42
- package/clients/cartService/services/ECommerceService.js +1104 -0
- package/clients/cartService/services/ECommerceService.ts +1289 -0
- package/clients/cartService/services/WishListsService.js +321 -0
- package/clients/cartService/services/WishListsService.ts +373 -0
- 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/cartService/schema.s.ts +2239 -1868
- 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
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IdentityService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
class
|
|
6
|
+
class IdentityService {
|
|
7
7
|
/**
|
|
8
8
|
* Gets the current user
|
|
9
|
+
* Get the currently acting user.
|
|
9
10
|
* @param xApiVersion
|
|
10
11
|
* @returns UserDtoEnvelope OK
|
|
11
12
|
* @throws ApiError
|
|
12
13
|
*/
|
|
13
|
-
static
|
|
14
|
+
static getCurrentUserAsync(xApiVersion) {
|
|
14
15
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
15
16
|
method: 'GET',
|
|
16
17
|
url: '/api/v2/Me',
|
|
@@ -23,13 +24,14 @@ class HolderService {
|
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
|
-
*
|
|
27
|
+
* Update the current user's profile
|
|
28
|
+
* Update the current user's profile
|
|
27
29
|
* @param xApiVersion
|
|
28
30
|
* @param requestBody
|
|
29
|
-
* @returns
|
|
31
|
+
* @returns EmptyEnvelope OK
|
|
30
32
|
* @throws ApiError
|
|
31
33
|
*/
|
|
32
|
-
static
|
|
34
|
+
static updateCurrentUserAsync(xApiVersion, requestBody) {
|
|
33
35
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
34
36
|
method: 'PUT',
|
|
35
37
|
url: '/api/v2/Me',
|
|
@@ -44,13 +46,14 @@ class HolderService {
|
|
|
44
46
|
});
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
|
-
*
|
|
49
|
+
* Partially update the current user's profile
|
|
50
|
+
* Partially update the current user's profile
|
|
48
51
|
* @param xApiVersion
|
|
49
52
|
* @param requestBody
|
|
50
|
-
* @returns
|
|
53
|
+
* @returns EmptyEnvelope OK
|
|
51
54
|
* @throws ApiError
|
|
52
55
|
*/
|
|
53
|
-
static
|
|
56
|
+
static patchCurrentUserAsync(xApiVersion, requestBody) {
|
|
54
57
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
55
58
|
method: 'PATCH',
|
|
56
59
|
url: '/api/v2/Me',
|
|
@@ -65,12 +68,13 @@ class HolderService {
|
|
|
65
68
|
});
|
|
66
69
|
}
|
|
67
70
|
/**
|
|
68
|
-
*
|
|
71
|
+
* Get the current user's extended profile
|
|
72
|
+
* Get the current user's extended profile
|
|
69
73
|
* @param xApiVersion
|
|
70
74
|
* @returns ExtendedUserDtoEnvelope OK
|
|
71
75
|
* @throws ApiError
|
|
72
76
|
*/
|
|
73
|
-
static
|
|
77
|
+
static getExtendedCurrentUserAsync(xApiVersion) {
|
|
74
78
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
75
79
|
method: 'GET',
|
|
76
80
|
url: '/api/v2/Me/Extended',
|
|
@@ -83,12 +87,13 @@ class HolderService {
|
|
|
83
87
|
});
|
|
84
88
|
}
|
|
85
89
|
/**
|
|
86
|
-
*
|
|
90
|
+
* Get the current user's avatar
|
|
91
|
+
* Get the current user's avatar
|
|
87
92
|
* @param xApiVersion
|
|
88
93
|
* @returns binary OK
|
|
89
94
|
* @throws ApiError
|
|
90
95
|
*/
|
|
91
|
-
static
|
|
96
|
+
static getCurrentUserAvatarAsync(xApiVersion) {
|
|
92
97
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
93
98
|
method: 'GET',
|
|
94
99
|
url: '/api/v2/Me/Avatar',
|
|
@@ -102,13 +107,14 @@ class HolderService {
|
|
|
102
107
|
});
|
|
103
108
|
}
|
|
104
109
|
/**
|
|
105
|
-
*
|
|
110
|
+
* Update the current user's avatar
|
|
111
|
+
* Update the current user's avatar
|
|
106
112
|
* @param xApiVersion
|
|
107
113
|
* @param formData
|
|
108
114
|
* @returns EmptyEnvelope OK
|
|
109
115
|
* @throws ApiError
|
|
110
116
|
*/
|
|
111
|
-
static
|
|
117
|
+
static updateAvatarAsync(xApiVersion, formData) {
|
|
112
118
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
113
119
|
method: 'POST',
|
|
114
120
|
url: '/api/v2/Me/Avatar',
|
|
@@ -124,12 +130,13 @@ class HolderService {
|
|
|
124
130
|
});
|
|
125
131
|
}
|
|
126
132
|
/**
|
|
127
|
-
*
|
|
133
|
+
* Get the social profiles that the current user follows
|
|
134
|
+
* Get the social profiles that the current user follows
|
|
128
135
|
* @param xApiVersion
|
|
129
136
|
* @returns FollowRecordDtoListEnvelope OK
|
|
130
137
|
* @throws ApiError
|
|
131
138
|
*/
|
|
132
|
-
static
|
|
139
|
+
static getCurrentUserFollowsAsync(xApiVersion) {
|
|
133
140
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
134
141
|
method: 'GET',
|
|
135
142
|
url: '/api/v2/Me/Follows',
|
|
@@ -142,12 +149,13 @@ class HolderService {
|
|
|
142
149
|
});
|
|
143
150
|
}
|
|
144
151
|
/**
|
|
145
|
-
*
|
|
152
|
+
* Count the social profiles that the current user follows
|
|
153
|
+
* Count the social profiles that the current user follows
|
|
146
154
|
* @param xApiVersion
|
|
147
155
|
* @returns Int32Envelope OK
|
|
148
156
|
* @throws ApiError
|
|
149
157
|
*/
|
|
150
|
-
static
|
|
158
|
+
static countCurrentUserFollowsAsync(xApiVersion) {
|
|
151
159
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
152
160
|
method: 'GET',
|
|
153
161
|
url: '/api/v2/Me/Follows/Count',
|
|
@@ -160,12 +168,13 @@ class HolderService {
|
|
|
160
168
|
});
|
|
161
169
|
}
|
|
162
170
|
/**
|
|
163
|
-
*
|
|
171
|
+
* Get the social profiles that follow the current user
|
|
172
|
+
* Get the social profiles that follow the current user
|
|
164
173
|
* @param xApiVersion
|
|
165
174
|
* @returns FollowRecordDtoListEnvelope OK
|
|
166
175
|
* @throws ApiError
|
|
167
176
|
*/
|
|
168
|
-
static
|
|
177
|
+
static getCurrentUserFollowersAsync(xApiVersion) {
|
|
169
178
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
170
179
|
method: 'GET',
|
|
171
180
|
url: '/api/v2/Me/Followers',
|
|
@@ -178,12 +187,13 @@ class HolderService {
|
|
|
178
187
|
});
|
|
179
188
|
}
|
|
180
189
|
/**
|
|
181
|
-
*
|
|
190
|
+
* Count the social profiles that follow the current user
|
|
191
|
+
* Count the social profiles that follow the current user
|
|
182
192
|
* @param xApiVersion
|
|
183
193
|
* @returns Int32Envelope OK
|
|
184
194
|
* @throws ApiError
|
|
185
195
|
*/
|
|
186
|
-
static
|
|
196
|
+
static countCurrentUserFollowersAsync(xApiVersion) {
|
|
187
197
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
188
198
|
method: 'GET',
|
|
189
199
|
url: '/api/v2/Me/Followers/Count',
|
|
@@ -196,130 +206,13 @@ class HolderService {
|
|
|
196
206
|
});
|
|
197
207
|
}
|
|
198
208
|
/**
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
* @returns TenantDtoListEnvelope OK
|
|
202
|
-
* @throws ApiError
|
|
203
|
-
*/
|
|
204
|
-
static getMyTenants(xApiVersion) {
|
|
205
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
206
|
-
method: 'GET',
|
|
207
|
-
url: '/api/v2/Me/Businesses',
|
|
208
|
-
headers: {
|
|
209
|
-
'x-api-version': xApiVersion,
|
|
210
|
-
},
|
|
211
|
-
errors: {
|
|
212
|
-
401: `Unauthorized`,
|
|
213
|
-
403: `Forbidden`,
|
|
214
|
-
},
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Counts the tenants that the current user is enrolled in
|
|
219
|
-
* @param xApiVersion
|
|
220
|
-
* @returns Int32Envelope OK
|
|
221
|
-
* @throws ApiError
|
|
222
|
-
*/
|
|
223
|
-
static countMyTenants(xApiVersion) {
|
|
224
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
225
|
-
method: 'GET',
|
|
226
|
-
url: '/api/v2/Me/Businesses/Count',
|
|
227
|
-
headers: {
|
|
228
|
-
'x-api-version': xApiVersion,
|
|
229
|
-
},
|
|
230
|
-
errors: {
|
|
231
|
-
401: `Unauthorized`,
|
|
232
|
-
403: `Forbidden`,
|
|
233
|
-
},
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Gets the tenants that the current user is enrolled in with extended information
|
|
238
|
-
* @param xApiVersion
|
|
239
|
-
* @returns ExtendedTenantDtoListEnvelope OK
|
|
240
|
-
* @throws ApiError
|
|
241
|
-
*/
|
|
242
|
-
static getMyTenantsExtended(xApiVersion) {
|
|
243
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
244
|
-
method: 'GET',
|
|
245
|
-
url: '/api/v2/Me/Businesses/Extended',
|
|
246
|
-
headers: {
|
|
247
|
-
'x-api-version': xApiVersion,
|
|
248
|
-
},
|
|
249
|
-
errors: {
|
|
250
|
-
401: `Unauthorized`,
|
|
251
|
-
403: `Forbidden`,
|
|
252
|
-
},
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Gets the list of enrollments for the current user
|
|
257
|
-
* @param xApiVersion
|
|
258
|
-
* @returns TenantEnrolmentDtoListEnvelope OK
|
|
259
|
-
* @throws ApiError
|
|
260
|
-
*/
|
|
261
|
-
static getMyEnrollments(xApiVersion) {
|
|
262
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
263
|
-
method: 'GET',
|
|
264
|
-
url: '/api/v2/Me/Enrollments',
|
|
265
|
-
headers: {
|
|
266
|
-
'x-api-version': xApiVersion,
|
|
267
|
-
},
|
|
268
|
-
errors: {
|
|
269
|
-
401: `Unauthorized`,
|
|
270
|
-
},
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* Gets the list of enrollments for the current user with extended information
|
|
275
|
-
* @param xApiVersion
|
|
276
|
-
* @returns ExtendedTenantEnrolmentDtoListEnvelope OK
|
|
277
|
-
* @throws ApiError
|
|
278
|
-
*/
|
|
279
|
-
static getMyEnrollmentsExtended(xApiVersion) {
|
|
280
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
281
|
-
method: 'GET',
|
|
282
|
-
url: '/api/v2/Me/Enrollments/Extended',
|
|
283
|
-
headers: {
|
|
284
|
-
'x-api-version': xApiVersion,
|
|
285
|
-
},
|
|
286
|
-
errors: {
|
|
287
|
-
401: `Unauthorized`,
|
|
288
|
-
},
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* Gets a single TenantEnrollment by its ID
|
|
293
|
-
* @param enrollmentId
|
|
294
|
-
* @param xApiVersion
|
|
295
|
-
* @param requestBody
|
|
296
|
-
* @returns TenantEnrolmentDtoEnvelope OK
|
|
297
|
-
* @throws ApiError
|
|
298
|
-
*/
|
|
299
|
-
static getMyEnrollment(enrollmentId, xApiVersion, requestBody) {
|
|
300
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
301
|
-
method: 'GET',
|
|
302
|
-
url: '/api/v2/Me/Enrollments/{enrollmentId}',
|
|
303
|
-
path: {
|
|
304
|
-
'enrollmentId': enrollmentId,
|
|
305
|
-
},
|
|
306
|
-
headers: {
|
|
307
|
-
'x-api-version': xApiVersion,
|
|
308
|
-
},
|
|
309
|
-
body: requestBody,
|
|
310
|
-
mediaType: 'application/json',
|
|
311
|
-
errors: {
|
|
312
|
-
401: `Unauthorized`,
|
|
313
|
-
},
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Gets the current user's social profile
|
|
209
|
+
* Get the current user's social profile
|
|
210
|
+
* Get the current user's social profile
|
|
318
211
|
* @param xApiVersion
|
|
319
212
|
* @returns SocialProfileDtoEnvelope OK
|
|
320
213
|
* @throws ApiError
|
|
321
214
|
*/
|
|
322
|
-
static
|
|
215
|
+
static getCurrentUserSocialProfileAsync(xApiVersion) {
|
|
323
216
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
324
217
|
method: 'GET',
|
|
325
218
|
url: '/api/v2/Me/SocialProfile',
|
|
@@ -332,12 +225,13 @@ class HolderService {
|
|
|
332
225
|
});
|
|
333
226
|
}
|
|
334
227
|
/**
|
|
335
|
-
*
|
|
228
|
+
* Get the current user's cart
|
|
229
|
+
* Get the current user's cart
|
|
336
230
|
* @param xApiVersion
|
|
337
231
|
* @returns CartDtoEnvelope OK
|
|
338
232
|
* @throws ApiError
|
|
339
233
|
*/
|
|
340
|
-
static
|
|
234
|
+
static getCurrentUserCartAsync(xApiVersion) {
|
|
341
235
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
342
236
|
method: 'GET',
|
|
343
237
|
url: '/api/v2/Me/Cart',
|
|
@@ -350,12 +244,13 @@ class HolderService {
|
|
|
350
244
|
});
|
|
351
245
|
}
|
|
352
246
|
/**
|
|
353
|
-
*
|
|
247
|
+
* Get the current user's billing profile
|
|
248
|
+
* Get the current user's billing profile
|
|
354
249
|
* @param xApiVersion
|
|
355
250
|
* @returns WalletDtoEnvelope OK
|
|
356
251
|
* @throws ApiError
|
|
357
252
|
*/
|
|
358
|
-
static
|
|
253
|
+
static getCurrentUserWalletAsync(xApiVersion) {
|
|
359
254
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
360
255
|
method: 'GET',
|
|
361
256
|
url: '/api/v2/Me/Wallet',
|
|
@@ -368,12 +263,13 @@ class HolderService {
|
|
|
368
263
|
});
|
|
369
264
|
}
|
|
370
265
|
/**
|
|
371
|
-
*
|
|
266
|
+
* Get the list of notifications for the current user
|
|
267
|
+
* Get the list of notifications for the current user
|
|
372
268
|
* @param xApiVersion
|
|
373
269
|
* @returns NotificationDtoListEnvelope OK
|
|
374
270
|
* @throws ApiError
|
|
375
271
|
*/
|
|
376
|
-
static
|
|
272
|
+
static getCurrentUserNotificationsAsync(xApiVersion) {
|
|
377
273
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
378
274
|
method: 'GET',
|
|
379
275
|
url: '/api/v2/Me/Notifications',
|
|
@@ -386,12 +282,13 @@ class HolderService {
|
|
|
386
282
|
});
|
|
387
283
|
}
|
|
388
284
|
/**
|
|
389
|
-
*
|
|
285
|
+
* Count the notifications for the current user
|
|
286
|
+
* Count the notifications for the current user
|
|
390
287
|
* @param xApiVersion
|
|
391
288
|
* @returns Int32Envelope OK
|
|
392
289
|
* @throws ApiError
|
|
393
290
|
*/
|
|
394
|
-
static
|
|
291
|
+
static countCurrentUserNotificationsAsync(xApiVersion) {
|
|
395
292
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
396
293
|
method: 'GET',
|
|
397
294
|
url: '/api/v2/Me/Notifications/Count',
|
|
@@ -404,12 +301,13 @@ class HolderService {
|
|
|
404
301
|
});
|
|
405
302
|
}
|
|
406
303
|
/**
|
|
407
|
-
*
|
|
304
|
+
* Get the settings for the current user
|
|
305
|
+
* Get the settings for the current user
|
|
408
306
|
* @param xApiVersion
|
|
409
307
|
* @returns UserSettingsDtoEnvelope OK
|
|
410
308
|
* @throws ApiError
|
|
411
309
|
*/
|
|
412
|
-
static
|
|
310
|
+
static getCurrentUserSettingsAsync(xApiVersion) {
|
|
413
311
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
414
312
|
method: 'GET',
|
|
415
313
|
url: '/api/v2/Me/Settings',
|
|
@@ -422,13 +320,14 @@ class HolderService {
|
|
|
422
320
|
});
|
|
423
321
|
}
|
|
424
322
|
/**
|
|
425
|
-
*
|
|
323
|
+
* Update the settings for the current user
|
|
324
|
+
* Update the settings for the current user
|
|
426
325
|
* @param xApiVersion
|
|
427
326
|
* @param requestBody
|
|
428
327
|
* @returns UserSettingsDtoEnvelope OK
|
|
429
328
|
* @throws ApiError
|
|
430
329
|
*/
|
|
431
|
-
static
|
|
330
|
+
static updateCurrentUserSettingsAsync(xApiVersion, requestBody) {
|
|
432
331
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
433
332
|
method: 'PUT',
|
|
434
333
|
url: '/api/v2/Me/Settings',
|
|
@@ -443,12 +342,13 @@ class HolderService {
|
|
|
443
342
|
});
|
|
444
343
|
}
|
|
445
344
|
/**
|
|
446
|
-
*
|
|
345
|
+
* Get the list of addresses for the current user
|
|
346
|
+
* Get the list of addresses for the current user
|
|
447
347
|
* @param xApiVersion
|
|
448
348
|
* @returns AddressDtoListEnvelope OK
|
|
449
349
|
* @throws ApiError
|
|
450
350
|
*/
|
|
451
|
-
static
|
|
351
|
+
static getCurrentUserAddressesAsync(xApiVersion) {
|
|
452
352
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
453
353
|
method: 'GET',
|
|
454
354
|
url: '/api/v2/Me/Addresses',
|
|
@@ -460,23 +360,5 @@ class HolderService {
|
|
|
460
360
|
},
|
|
461
361
|
});
|
|
462
362
|
}
|
|
463
|
-
/**
|
|
464
|
-
* Gets the list of tenant enrollment invitations for the current user
|
|
465
|
-
* @param xApiVersion
|
|
466
|
-
* @returns TenantInvitationDtoListEnvelope OK
|
|
467
|
-
* @throws ApiError
|
|
468
|
-
*/
|
|
469
|
-
static getMyInvitations(xApiVersion) {
|
|
470
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
471
|
-
method: 'GET',
|
|
472
|
-
url: '/api/v2/Me/Invitations',
|
|
473
|
-
headers: {
|
|
474
|
-
'x-api-version': xApiVersion,
|
|
475
|
-
},
|
|
476
|
-
errors: {
|
|
477
|
-
401: `Unauthorized`,
|
|
478
|
-
},
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
363
|
}
|
|
482
|
-
exports.
|
|
364
|
+
exports.IdentityService = IdentityService;
|