@fenixalliance/abs-api-client 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/index.js +2 -2
- package/app/index.ts +1 -1
- package/clients/contentService/index.ts +2 -2
- package/clients/contentService/models/{Portal.ts → PortalSettings.ts} +1 -1
- package/clients/contentService/models/PortalSettingsEnvelope.ts +14 -0
- package/clients/contentService/services/PortalsService.js +23 -12
- package/clients/contentService/services/PortalsService.ts +25 -14
- 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 +4 -2
- package/clients/holderService/models/FollowRecordDtoListEnvelope.ts +14 -0
- package/clients/holderService/services/{HolderService.js → IdentityService.js} +65 -157
- package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +70 -186
- 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/core/ApiError.js +20 -0
- package/clients/storageService/core/ApiError.ts +25 -0
- package/clients/storageService/core/ApiRequestOptions.ts +17 -0
- package/clients/storageService/core/ApiResult.ts +11 -0
- package/clients/storageService/core/CancelablePromise.js +104 -0
- package/clients/storageService/core/CancelablePromise.ts +131 -0
- package/clients/storageService/core/OpenAPI.js +14 -0
- package/clients/storageService/core/OpenAPI.ts +32 -0
- package/clients/storageService/core/request.js +294 -0
- package/clients/storageService/core/request.ts +322 -0
- package/clients/storageService/index.js +26 -0
- package/clients/storageService/index.ts +23 -0
- package/clients/storageService/models/Blob.js +11 -0
- package/clients/storageService/models/Blob.ts +26 -0
- package/clients/{contentService/models/PortalEnvelope.ts → storageService/models/BlobEnvelope.ts} +3 -3
- package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → storageService/models/EmptyEnvelope.ts} +1 -3
- package/clients/storageService/models/ErrorEnvelope.ts +12 -0
- package/clients/storageService/models/FileUploadCreateDto.ts +20 -0
- package/clients/storageService/models/FileUploadDto.js +2 -0
- package/clients/storageService/models/FileUploadDto.ts +29 -0
- package/clients/storageService/models/FileUploadDtoEnvelope.js +2 -0
- package/clients/storageService/models/FileUploadDtoEnvelope.ts +14 -0
- package/clients/storageService/models/FileUploadUpdateDto.js +2 -0
- package/clients/storageService/models/FileUploadUpdateDto.ts +19 -0
- package/clients/storageService/services/AvatarsService.js +200 -0
- package/clients/storageService/services/AvatarsService.ts +234 -0
- package/clients/storageService/services/BlobsService.js +66 -0
- package/clients/storageService/services/BlobsService.ts +81 -0
- package/clients/{tenantService/services/EnrollmentsService.js → storageService/services/FilesService.js} +50 -42
- package/clients/{tenantService/services/UnitsService.ts → storageService/services/FilesService.ts} +75 -65
- package/clients/storageService/services/RadzenEditorService.js +117 -0
- package/clients/storageService/services/RadzenEditorService.ts +149 -0
- package/clients/storageService/services/UploadsService.js +33 -0
- package/clients/storageService/services/UploadsService.ts +53 -0
- 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/tenantService/models/TenantIndustryDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/TenantIndustryDtoListEnvelope.ts +14 -0
- package/clients/tenantService/models/TenantTeamContactEnrollmentDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTeamDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTeamEmployeeEnrollmentDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTeamProjectEnrollmentDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTeamRecordDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTypeDtoListEnvelope.js +2 -0
- 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 +877 -844
- package/schemas/crmService/schema.s.ts +1776 -1516
- package/schemas/holderService/schema.s.ts +1024 -789
- package/schemas/storageService/schema.s.js +6 -0
- package/schemas/storageService/schema.s.ts +1087 -0
- 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.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/contentService/models/{Portal.js → PortalSettings.js} +0 -0
- /package/clients/contentService/models/{PortalEnvelope.js → PortalSettingsEnvelope.js} +0 -0
- /package/clients/holderService/models/{EmptyEnvelopeEnvelope.js → FollowRecordDtoListEnvelope.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/core/ApiRequestOptions.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamDtoIReadOnlyCollectionEnvelope.js → storageService/core/ApiResult.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/models/BlobEnvelope.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/models/EmptyEnvelope.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → storageService/models/ErrorEnvelope.js} +0 -0
- /package/clients/{tenantService/models/TenantTypeDtoIReadOnlyCollectionEnvelope.js → storageService/models/FileUploadCreateDto.js} +0 -0
|
@@ -1,15 +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
|
+
* Gets the current user
|
|
9
|
+
* Get the currently acting user.
|
|
8
10
|
* @param xApiVersion
|
|
9
11
|
* @returns UserDtoEnvelope OK
|
|
10
12
|
* @throws ApiError
|
|
11
13
|
*/
|
|
12
|
-
static
|
|
14
|
+
static getCurrentUserAsync(xApiVersion) {
|
|
13
15
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
16
|
method: 'GET',
|
|
15
17
|
url: '/api/v2/Me',
|
|
@@ -22,12 +24,14 @@ class HolderService {
|
|
|
22
24
|
});
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
27
|
+
* Update the current user's profile
|
|
28
|
+
* Update the current user's profile
|
|
25
29
|
* @param xApiVersion
|
|
26
30
|
* @param requestBody
|
|
27
|
-
* @returns
|
|
31
|
+
* @returns EmptyEnvelope OK
|
|
28
32
|
* @throws ApiError
|
|
29
33
|
*/
|
|
30
|
-
static
|
|
34
|
+
static updateCurrentUserAsync(xApiVersion, requestBody) {
|
|
31
35
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
32
36
|
method: 'PUT',
|
|
33
37
|
url: '/api/v2/Me',
|
|
@@ -42,12 +46,14 @@ class HolderService {
|
|
|
42
46
|
});
|
|
43
47
|
}
|
|
44
48
|
/**
|
|
49
|
+
* Partially update the current user's profile
|
|
50
|
+
* Partially update the current user's profile
|
|
45
51
|
* @param xApiVersion
|
|
46
52
|
* @param requestBody
|
|
47
|
-
* @returns
|
|
53
|
+
* @returns EmptyEnvelope OK
|
|
48
54
|
* @throws ApiError
|
|
49
55
|
*/
|
|
50
|
-
static
|
|
56
|
+
static patchCurrentUserAsync(xApiVersion, requestBody) {
|
|
51
57
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
52
58
|
method: 'PATCH',
|
|
53
59
|
url: '/api/v2/Me',
|
|
@@ -62,11 +68,13 @@ class HolderService {
|
|
|
62
68
|
});
|
|
63
69
|
}
|
|
64
70
|
/**
|
|
71
|
+
* Get the current user's extended profile
|
|
72
|
+
* Get the current user's extended profile
|
|
65
73
|
* @param xApiVersion
|
|
66
74
|
* @returns ExtendedUserDtoEnvelope OK
|
|
67
75
|
* @throws ApiError
|
|
68
76
|
*/
|
|
69
|
-
static
|
|
77
|
+
static getExtendedCurrentUserAsync(xApiVersion) {
|
|
70
78
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
71
79
|
method: 'GET',
|
|
72
80
|
url: '/api/v2/Me/Extended',
|
|
@@ -79,11 +87,13 @@ class HolderService {
|
|
|
79
87
|
});
|
|
80
88
|
}
|
|
81
89
|
/**
|
|
90
|
+
* Get the current user's avatar
|
|
91
|
+
* Get the current user's avatar
|
|
82
92
|
* @param xApiVersion
|
|
83
|
-
* @returns
|
|
93
|
+
* @returns binary OK
|
|
84
94
|
* @throws ApiError
|
|
85
95
|
*/
|
|
86
|
-
static
|
|
96
|
+
static getCurrentUserAvatarAsync(xApiVersion) {
|
|
87
97
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
88
98
|
method: 'GET',
|
|
89
99
|
url: '/api/v2/Me/Avatar',
|
|
@@ -92,16 +102,19 @@ class HolderService {
|
|
|
92
102
|
},
|
|
93
103
|
errors: {
|
|
94
104
|
401: `Unauthorized`,
|
|
105
|
+
403: `Forbidden`,
|
|
95
106
|
},
|
|
96
107
|
});
|
|
97
108
|
}
|
|
98
109
|
/**
|
|
110
|
+
* Update the current user's avatar
|
|
111
|
+
* Update the current user's avatar
|
|
99
112
|
* @param xApiVersion
|
|
100
113
|
* @param formData
|
|
101
114
|
* @returns EmptyEnvelope OK
|
|
102
115
|
* @throws ApiError
|
|
103
116
|
*/
|
|
104
|
-
static
|
|
117
|
+
static updateAvatarAsync(xApiVersion, formData) {
|
|
105
118
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
106
119
|
method: 'POST',
|
|
107
120
|
url: '/api/v2/Me/Avatar',
|
|
@@ -117,11 +130,13 @@ class HolderService {
|
|
|
117
130
|
});
|
|
118
131
|
}
|
|
119
132
|
/**
|
|
133
|
+
* Get the social profiles that the current user follows
|
|
134
|
+
* Get the social profiles that the current user follows
|
|
120
135
|
* @param xApiVersion
|
|
121
|
-
* @returns
|
|
136
|
+
* @returns FollowRecordDtoListEnvelope OK
|
|
122
137
|
* @throws ApiError
|
|
123
138
|
*/
|
|
124
|
-
static
|
|
139
|
+
static getCurrentUserFollowsAsync(xApiVersion) {
|
|
125
140
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
126
141
|
method: 'GET',
|
|
127
142
|
url: '/api/v2/Me/Follows',
|
|
@@ -134,11 +149,13 @@ class HolderService {
|
|
|
134
149
|
});
|
|
135
150
|
}
|
|
136
151
|
/**
|
|
152
|
+
* Count the social profiles that the current user follows
|
|
153
|
+
* Count the social profiles that the current user follows
|
|
137
154
|
* @param xApiVersion
|
|
138
|
-
* @returns
|
|
155
|
+
* @returns Int32Envelope OK
|
|
139
156
|
* @throws ApiError
|
|
140
157
|
*/
|
|
141
|
-
static
|
|
158
|
+
static countCurrentUserFollowsAsync(xApiVersion) {
|
|
142
159
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
143
160
|
method: 'GET',
|
|
144
161
|
url: '/api/v2/Me/Follows/Count',
|
|
@@ -151,11 +168,13 @@ class HolderService {
|
|
|
151
168
|
});
|
|
152
169
|
}
|
|
153
170
|
/**
|
|
171
|
+
* Get the social profiles that follow the current user
|
|
172
|
+
* Get the social profiles that follow the current user
|
|
154
173
|
* @param xApiVersion
|
|
155
|
-
* @returns
|
|
174
|
+
* @returns FollowRecordDtoListEnvelope OK
|
|
156
175
|
* @throws ApiError
|
|
157
176
|
*/
|
|
158
|
-
static
|
|
177
|
+
static getCurrentUserFollowersAsync(xApiVersion) {
|
|
159
178
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
160
179
|
method: 'GET',
|
|
161
180
|
url: '/api/v2/Me/Followers',
|
|
@@ -168,140 +187,32 @@ class HolderService {
|
|
|
168
187
|
});
|
|
169
188
|
}
|
|
170
189
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* @throws ApiError
|
|
174
|
-
*/
|
|
175
|
-
static getApiV2MeFollowersCount(xApiVersion) {
|
|
176
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
177
|
-
method: 'GET',
|
|
178
|
-
url: '/api/v2/Me/Followers/Count',
|
|
179
|
-
headers: {
|
|
180
|
-
'x-api-version': xApiVersion,
|
|
181
|
-
},
|
|
182
|
-
errors: {
|
|
183
|
-
401: `Unauthorized`,
|
|
184
|
-
},
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* @param xApiVersion
|
|
189
|
-
* @returns TenantDtoListEnvelope OK
|
|
190
|
-
* @throws ApiError
|
|
191
|
-
*/
|
|
192
|
-
static getApiV2MeBusinesses(xApiVersion) {
|
|
193
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
194
|
-
method: 'GET',
|
|
195
|
-
url: '/api/v2/Me/Businesses',
|
|
196
|
-
headers: {
|
|
197
|
-
'x-api-version': xApiVersion,
|
|
198
|
-
},
|
|
199
|
-
errors: {
|
|
200
|
-
401: `Unauthorized`,
|
|
201
|
-
403: `Forbidden`,
|
|
202
|
-
},
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
190
|
+
* Count the social profiles that follow the current user
|
|
191
|
+
* Count the social profiles that follow the current user
|
|
206
192
|
* @param xApiVersion
|
|
207
193
|
* @returns Int32Envelope OK
|
|
208
194
|
* @throws ApiError
|
|
209
195
|
*/
|
|
210
|
-
static
|
|
211
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
212
|
-
method: 'GET',
|
|
213
|
-
url: '/api/v2/Me/Businesses/Count',
|
|
214
|
-
headers: {
|
|
215
|
-
'x-api-version': xApiVersion,
|
|
216
|
-
},
|
|
217
|
-
errors: {
|
|
218
|
-
401: `Unauthorized`,
|
|
219
|
-
403: `Forbidden`,
|
|
220
|
-
},
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* @param xApiVersion
|
|
225
|
-
* @returns ExtendedTenantDtoListEnvelope OK
|
|
226
|
-
* @throws ApiError
|
|
227
|
-
*/
|
|
228
|
-
static getApiV2MeBusinessesExtended(xApiVersion) {
|
|
196
|
+
static countCurrentUserFollowersAsync(xApiVersion) {
|
|
229
197
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
230
198
|
method: 'GET',
|
|
231
|
-
url: '/api/v2/Me/
|
|
232
|
-
headers: {
|
|
233
|
-
'x-api-version': xApiVersion,
|
|
234
|
-
},
|
|
235
|
-
errors: {
|
|
236
|
-
401: `Unauthorized`,
|
|
237
|
-
403: `Forbidden`,
|
|
238
|
-
},
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* @param xApiVersion
|
|
243
|
-
* @returns TenantEnrolmentDtoListEnvelope OK
|
|
244
|
-
* @throws ApiError
|
|
245
|
-
*/
|
|
246
|
-
static getApiV2MeEnrollments(xApiVersion) {
|
|
247
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
248
|
-
method: 'GET',
|
|
249
|
-
url: '/api/v2/Me/Enrollments',
|
|
250
|
-
headers: {
|
|
251
|
-
'x-api-version': xApiVersion,
|
|
252
|
-
},
|
|
253
|
-
errors: {
|
|
254
|
-
401: `Unauthorized`,
|
|
255
|
-
},
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* @param xApiVersion
|
|
260
|
-
* @returns ExtendedTenantEnrolmentDtoListEnvelope OK
|
|
261
|
-
* @throws ApiError
|
|
262
|
-
*/
|
|
263
|
-
static getApiV2MeEnrollmentsExtended(xApiVersion) {
|
|
264
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
265
|
-
method: 'GET',
|
|
266
|
-
url: '/api/v2/Me/Enrollments/Extended',
|
|
267
|
-
headers: {
|
|
268
|
-
'x-api-version': xApiVersion,
|
|
269
|
-
},
|
|
270
|
-
errors: {
|
|
271
|
-
401: `Unauthorized`,
|
|
272
|
-
},
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* @param enrollmentId
|
|
277
|
-
* @param xApiVersion
|
|
278
|
-
* @param requestBody
|
|
279
|
-
* @returns TenantEnrolmentDtoEnvelope OK
|
|
280
|
-
* @throws ApiError
|
|
281
|
-
*/
|
|
282
|
-
static getApiV2MeEnrollments1(enrollmentId, xApiVersion, requestBody) {
|
|
283
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
284
|
-
method: 'GET',
|
|
285
|
-
url: '/api/v2/Me/Enrollments/{enrollmentId}',
|
|
286
|
-
path: {
|
|
287
|
-
'enrollmentId': enrollmentId,
|
|
288
|
-
},
|
|
199
|
+
url: '/api/v2/Me/Followers/Count',
|
|
289
200
|
headers: {
|
|
290
201
|
'x-api-version': xApiVersion,
|
|
291
202
|
},
|
|
292
|
-
body: requestBody,
|
|
293
|
-
mediaType: 'application/json',
|
|
294
203
|
errors: {
|
|
295
204
|
401: `Unauthorized`,
|
|
296
205
|
},
|
|
297
206
|
});
|
|
298
207
|
}
|
|
299
208
|
/**
|
|
209
|
+
* Get the current user's social profile
|
|
210
|
+
* Get the current user's social profile
|
|
300
211
|
* @param xApiVersion
|
|
301
212
|
* @returns SocialProfileDtoEnvelope OK
|
|
302
213
|
* @throws ApiError
|
|
303
214
|
*/
|
|
304
|
-
static
|
|
215
|
+
static getCurrentUserSocialProfileAsync(xApiVersion) {
|
|
305
216
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
306
217
|
method: 'GET',
|
|
307
218
|
url: '/api/v2/Me/SocialProfile',
|
|
@@ -314,11 +225,13 @@ class HolderService {
|
|
|
314
225
|
});
|
|
315
226
|
}
|
|
316
227
|
/**
|
|
228
|
+
* Get the current user's cart
|
|
229
|
+
* Get the current user's cart
|
|
317
230
|
* @param xApiVersion
|
|
318
231
|
* @returns CartDtoEnvelope OK
|
|
319
232
|
* @throws ApiError
|
|
320
233
|
*/
|
|
321
|
-
static
|
|
234
|
+
static getCurrentUserCartAsync(xApiVersion) {
|
|
322
235
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
323
236
|
method: 'GET',
|
|
324
237
|
url: '/api/v2/Me/Cart',
|
|
@@ -331,11 +244,13 @@ class HolderService {
|
|
|
331
244
|
});
|
|
332
245
|
}
|
|
333
246
|
/**
|
|
247
|
+
* Get the current user's billing profile
|
|
248
|
+
* Get the current user's billing profile
|
|
334
249
|
* @param xApiVersion
|
|
335
250
|
* @returns WalletDtoEnvelope OK
|
|
336
251
|
* @throws ApiError
|
|
337
252
|
*/
|
|
338
|
-
static
|
|
253
|
+
static getCurrentUserWalletAsync(xApiVersion) {
|
|
339
254
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
340
255
|
method: 'GET',
|
|
341
256
|
url: '/api/v2/Me/Wallet',
|
|
@@ -348,11 +263,13 @@ class HolderService {
|
|
|
348
263
|
});
|
|
349
264
|
}
|
|
350
265
|
/**
|
|
266
|
+
* Get the list of notifications for the current user
|
|
267
|
+
* Get the list of notifications for the current user
|
|
351
268
|
* @param xApiVersion
|
|
352
269
|
* @returns NotificationDtoListEnvelope OK
|
|
353
270
|
* @throws ApiError
|
|
354
271
|
*/
|
|
355
|
-
static
|
|
272
|
+
static getCurrentUserNotificationsAsync(xApiVersion) {
|
|
356
273
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
357
274
|
method: 'GET',
|
|
358
275
|
url: '/api/v2/Me/Notifications',
|
|
@@ -365,11 +282,13 @@ class HolderService {
|
|
|
365
282
|
});
|
|
366
283
|
}
|
|
367
284
|
/**
|
|
285
|
+
* Count the notifications for the current user
|
|
286
|
+
* Count the notifications for the current user
|
|
368
287
|
* @param xApiVersion
|
|
369
288
|
* @returns Int32Envelope OK
|
|
370
289
|
* @throws ApiError
|
|
371
290
|
*/
|
|
372
|
-
static
|
|
291
|
+
static countCurrentUserNotificationsAsync(xApiVersion) {
|
|
373
292
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
374
293
|
method: 'GET',
|
|
375
294
|
url: '/api/v2/Me/Notifications/Count',
|
|
@@ -382,11 +301,13 @@ class HolderService {
|
|
|
382
301
|
});
|
|
383
302
|
}
|
|
384
303
|
/**
|
|
304
|
+
* Get the settings for the current user
|
|
305
|
+
* Get the settings for the current user
|
|
385
306
|
* @param xApiVersion
|
|
386
307
|
* @returns UserSettingsDtoEnvelope OK
|
|
387
308
|
* @throws ApiError
|
|
388
309
|
*/
|
|
389
|
-
static
|
|
310
|
+
static getCurrentUserSettingsAsync(xApiVersion) {
|
|
390
311
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
391
312
|
method: 'GET',
|
|
392
313
|
url: '/api/v2/Me/Settings',
|
|
@@ -399,12 +320,14 @@ class HolderService {
|
|
|
399
320
|
});
|
|
400
321
|
}
|
|
401
322
|
/**
|
|
323
|
+
* Update the settings for the current user
|
|
324
|
+
* Update the settings for the current user
|
|
402
325
|
* @param xApiVersion
|
|
403
326
|
* @param requestBody
|
|
404
327
|
* @returns UserSettingsDtoEnvelope OK
|
|
405
328
|
* @throws ApiError
|
|
406
329
|
*/
|
|
407
|
-
static
|
|
330
|
+
static updateCurrentUserSettingsAsync(xApiVersion, requestBody) {
|
|
408
331
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
409
332
|
method: 'PUT',
|
|
410
333
|
url: '/api/v2/Me/Settings',
|
|
@@ -419,11 +342,13 @@ class HolderService {
|
|
|
419
342
|
});
|
|
420
343
|
}
|
|
421
344
|
/**
|
|
345
|
+
* Get the list of addresses for the current user
|
|
346
|
+
* Get the list of addresses for the current user
|
|
422
347
|
* @param xApiVersion
|
|
423
348
|
* @returns AddressDtoListEnvelope OK
|
|
424
349
|
* @throws ApiError
|
|
425
350
|
*/
|
|
426
|
-
static
|
|
351
|
+
static getCurrentUserAddressesAsync(xApiVersion) {
|
|
427
352
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
428
353
|
method: 'GET',
|
|
429
354
|
url: '/api/v2/Me/Addresses',
|
|
@@ -435,22 +360,5 @@ class HolderService {
|
|
|
435
360
|
},
|
|
436
361
|
});
|
|
437
362
|
}
|
|
438
|
-
/**
|
|
439
|
-
* @param xApiVersion
|
|
440
|
-
* @returns TenantInvitationDtoListEnvelope OK
|
|
441
|
-
* @throws ApiError
|
|
442
|
-
*/
|
|
443
|
-
static getApiV2MeInvitations(xApiVersion) {
|
|
444
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
445
|
-
method: 'GET',
|
|
446
|
-
url: '/api/v2/Me/Invitations',
|
|
447
|
-
headers: {
|
|
448
|
-
'x-api-version': xApiVersion,
|
|
449
|
-
},
|
|
450
|
-
errors: {
|
|
451
|
-
401: `Unauthorized`,
|
|
452
|
-
},
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
363
|
}
|
|
456
|
-
exports.
|
|
364
|
+
exports.IdentityService = IdentityService;
|