@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
|
@@ -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
|
-
import type {
|
|
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,13 +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
|
/**
|
|
24
|
+
* Gets the current user
|
|
25
|
+
* Get the currently acting user.
|
|
32
26
|
* @param xApiVersion
|
|
33
27
|
* @returns UserDtoEnvelope OK
|
|
34
28
|
* @throws ApiError
|
|
35
29
|
*/
|
|
36
|
-
public static
|
|
30
|
+
public static getCurrentUserAsync(
|
|
37
31
|
xApiVersion?: string,
|
|
38
32
|
): CancelablePromise<UserDtoEnvelope> {
|
|
39
33
|
return __request(OpenAPI, {
|
|
@@ -48,15 +42,17 @@ export class HolderService {
|
|
|
48
42
|
});
|
|
49
43
|
}
|
|
50
44
|
/**
|
|
45
|
+
* Update the current user's profile
|
|
46
|
+
* Update the current user's profile
|
|
51
47
|
* @param xApiVersion
|
|
52
48
|
* @param requestBody
|
|
53
|
-
* @returns
|
|
49
|
+
* @returns EmptyEnvelope OK
|
|
54
50
|
* @throws ApiError
|
|
55
51
|
*/
|
|
56
|
-
public static
|
|
52
|
+
public static updateCurrentUserAsync(
|
|
57
53
|
xApiVersion?: string,
|
|
58
54
|
requestBody?: UserUpdateDto,
|
|
59
|
-
): CancelablePromise<
|
|
55
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
60
56
|
return __request(OpenAPI, {
|
|
61
57
|
method: 'PUT',
|
|
62
58
|
url: '/api/v2/Me',
|
|
@@ -71,15 +67,17 @@ export class HolderService {
|
|
|
71
67
|
});
|
|
72
68
|
}
|
|
73
69
|
/**
|
|
70
|
+
* Partially update the current user's profile
|
|
71
|
+
* Partially update the current user's profile
|
|
74
72
|
* @param xApiVersion
|
|
75
73
|
* @param requestBody
|
|
76
|
-
* @returns
|
|
74
|
+
* @returns EmptyEnvelope OK
|
|
77
75
|
* @throws ApiError
|
|
78
76
|
*/
|
|
79
|
-
public static
|
|
77
|
+
public static patchCurrentUserAsync(
|
|
80
78
|
xApiVersion?: string,
|
|
81
79
|
requestBody?: Array<Operation>,
|
|
82
|
-
): CancelablePromise<
|
|
80
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
83
81
|
return __request(OpenAPI, {
|
|
84
82
|
method: 'PATCH',
|
|
85
83
|
url: '/api/v2/Me',
|
|
@@ -94,11 +92,13 @@ export class HolderService {
|
|
|
94
92
|
});
|
|
95
93
|
}
|
|
96
94
|
/**
|
|
95
|
+
* Get the current user's extended profile
|
|
96
|
+
* Get the current user's extended profile
|
|
97
97
|
* @param xApiVersion
|
|
98
98
|
* @returns ExtendedUserDtoEnvelope OK
|
|
99
99
|
* @throws ApiError
|
|
100
100
|
*/
|
|
101
|
-
public static
|
|
101
|
+
public static getExtendedCurrentUserAsync(
|
|
102
102
|
xApiVersion?: string,
|
|
103
103
|
): CancelablePromise<ExtendedUserDtoEnvelope> {
|
|
104
104
|
return __request(OpenAPI, {
|
|
@@ -113,13 +113,15 @@ export class HolderService {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
+
* Get the current user's avatar
|
|
117
|
+
* Get the current user's avatar
|
|
116
118
|
* @param xApiVersion
|
|
117
|
-
* @returns
|
|
119
|
+
* @returns binary OK
|
|
118
120
|
* @throws ApiError
|
|
119
121
|
*/
|
|
120
|
-
public static
|
|
122
|
+
public static getCurrentUserAvatarAsync(
|
|
121
123
|
xApiVersion?: string,
|
|
122
|
-
): CancelablePromise<
|
|
124
|
+
): CancelablePromise<Blob> {
|
|
123
125
|
return __request(OpenAPI, {
|
|
124
126
|
method: 'GET',
|
|
125
127
|
url: '/api/v2/Me/Avatar',
|
|
@@ -128,16 +130,19 @@ export class HolderService {
|
|
|
128
130
|
},
|
|
129
131
|
errors: {
|
|
130
132
|
401: `Unauthorized`,
|
|
133
|
+
403: `Forbidden`,
|
|
131
134
|
},
|
|
132
135
|
});
|
|
133
136
|
}
|
|
134
137
|
/**
|
|
138
|
+
* Update the current user's avatar
|
|
139
|
+
* Update the current user's avatar
|
|
135
140
|
* @param xApiVersion
|
|
136
141
|
* @param formData
|
|
137
142
|
* @returns EmptyEnvelope OK
|
|
138
143
|
* @throws ApiError
|
|
139
144
|
*/
|
|
140
|
-
public static
|
|
145
|
+
public static updateAvatarAsync(
|
|
141
146
|
xApiVersion?: string,
|
|
142
147
|
formData?: {
|
|
143
148
|
avatar?: Blob;
|
|
@@ -158,13 +163,15 @@ export class HolderService {
|
|
|
158
163
|
});
|
|
159
164
|
}
|
|
160
165
|
/**
|
|
166
|
+
* Get the social profiles that the current user follows
|
|
167
|
+
* Get the social profiles that the current user follows
|
|
161
168
|
* @param xApiVersion
|
|
162
|
-
* @returns
|
|
169
|
+
* @returns FollowRecordDtoListEnvelope OK
|
|
163
170
|
* @throws ApiError
|
|
164
171
|
*/
|
|
165
|
-
public static
|
|
172
|
+
public static getCurrentUserFollowsAsync(
|
|
166
173
|
xApiVersion?: string,
|
|
167
|
-
): CancelablePromise<
|
|
174
|
+
): CancelablePromise<FollowRecordDtoListEnvelope> {
|
|
168
175
|
return __request(OpenAPI, {
|
|
169
176
|
method: 'GET',
|
|
170
177
|
url: '/api/v2/Me/Follows',
|
|
@@ -177,13 +184,15 @@ export class HolderService {
|
|
|
177
184
|
});
|
|
178
185
|
}
|
|
179
186
|
/**
|
|
187
|
+
* Count the social profiles that the current user follows
|
|
188
|
+
* Count the social profiles that the current user follows
|
|
180
189
|
* @param xApiVersion
|
|
181
|
-
* @returns
|
|
190
|
+
* @returns Int32Envelope OK
|
|
182
191
|
* @throws ApiError
|
|
183
192
|
*/
|
|
184
|
-
public static
|
|
193
|
+
public static countCurrentUserFollowsAsync(
|
|
185
194
|
xApiVersion?: string,
|
|
186
|
-
): CancelablePromise<
|
|
195
|
+
): CancelablePromise<Int32Envelope> {
|
|
187
196
|
return __request(OpenAPI, {
|
|
188
197
|
method: 'GET',
|
|
189
198
|
url: '/api/v2/Me/Follows/Count',
|
|
@@ -196,13 +205,15 @@ export class HolderService {
|
|
|
196
205
|
});
|
|
197
206
|
}
|
|
198
207
|
/**
|
|
208
|
+
* Get the social profiles that follow the current user
|
|
209
|
+
* Get the social profiles that follow the current user
|
|
199
210
|
* @param xApiVersion
|
|
200
|
-
* @returns
|
|
211
|
+
* @returns FollowRecordDtoListEnvelope OK
|
|
201
212
|
* @throws ApiError
|
|
202
213
|
*/
|
|
203
|
-
public static
|
|
214
|
+
public static getCurrentUserFollowersAsync(
|
|
204
215
|
xApiVersion?: string,
|
|
205
|
-
): CancelablePromise<
|
|
216
|
+
): CancelablePromise<FollowRecordDtoListEnvelope> {
|
|
206
217
|
return __request(OpenAPI, {
|
|
207
218
|
method: 'GET',
|
|
208
219
|
url: '/api/v2/Me/Followers',
|
|
@@ -215,156 +226,34 @@ export class HolderService {
|
|
|
215
226
|
});
|
|
216
227
|
}
|
|
217
228
|
/**
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
* @throws ApiError
|
|
221
|
-
*/
|
|
222
|
-
public static getApiV2MeFollowersCount(
|
|
223
|
-
xApiVersion?: string,
|
|
224
|
-
): CancelablePromise<Array<FollowRecordDto>> {
|
|
225
|
-
return __request(OpenAPI, {
|
|
226
|
-
method: 'GET',
|
|
227
|
-
url: '/api/v2/Me/Followers/Count',
|
|
228
|
-
headers: {
|
|
229
|
-
'x-api-version': xApiVersion,
|
|
230
|
-
},
|
|
231
|
-
errors: {
|
|
232
|
-
401: `Unauthorized`,
|
|
233
|
-
},
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* @param xApiVersion
|
|
238
|
-
* @returns TenantDtoListEnvelope OK
|
|
239
|
-
* @throws ApiError
|
|
240
|
-
*/
|
|
241
|
-
public static getApiV2MeBusinesses(
|
|
242
|
-
xApiVersion?: string,
|
|
243
|
-
): CancelablePromise<TenantDtoListEnvelope> {
|
|
244
|
-
return __request(OpenAPI, {
|
|
245
|
-
method: 'GET',
|
|
246
|
-
url: '/api/v2/Me/Businesses',
|
|
247
|
-
headers: {
|
|
248
|
-
'x-api-version': xApiVersion,
|
|
249
|
-
},
|
|
250
|
-
errors: {
|
|
251
|
-
401: `Unauthorized`,
|
|
252
|
-
403: `Forbidden`,
|
|
253
|
-
},
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
229
|
+
* Count the social profiles that follow the current user
|
|
230
|
+
* Count the social profiles that follow the current user
|
|
257
231
|
* @param xApiVersion
|
|
258
232
|
* @returns Int32Envelope OK
|
|
259
233
|
* @throws ApiError
|
|
260
234
|
*/
|
|
261
|
-
public static
|
|
235
|
+
public static countCurrentUserFollowersAsync(
|
|
262
236
|
xApiVersion?: string,
|
|
263
237
|
): CancelablePromise<Int32Envelope> {
|
|
264
238
|
return __request(OpenAPI, {
|
|
265
239
|
method: 'GET',
|
|
266
|
-
url: '/api/v2/Me/
|
|
267
|
-
headers: {
|
|
268
|
-
'x-api-version': xApiVersion,
|
|
269
|
-
},
|
|
270
|
-
errors: {
|
|
271
|
-
401: `Unauthorized`,
|
|
272
|
-
403: `Forbidden`,
|
|
273
|
-
},
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* @param xApiVersion
|
|
278
|
-
* @returns ExtendedTenantDtoListEnvelope OK
|
|
279
|
-
* @throws ApiError
|
|
280
|
-
*/
|
|
281
|
-
public static getApiV2MeBusinessesExtended(
|
|
282
|
-
xApiVersion?: string,
|
|
283
|
-
): CancelablePromise<ExtendedTenantDtoListEnvelope> {
|
|
284
|
-
return __request(OpenAPI, {
|
|
285
|
-
method: 'GET',
|
|
286
|
-
url: '/api/v2/Me/Businesses/Extended',
|
|
287
|
-
headers: {
|
|
288
|
-
'x-api-version': xApiVersion,
|
|
289
|
-
},
|
|
290
|
-
errors: {
|
|
291
|
-
401: `Unauthorized`,
|
|
292
|
-
403: `Forbidden`,
|
|
293
|
-
},
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* @param xApiVersion
|
|
298
|
-
* @returns TenantEnrolmentDtoListEnvelope OK
|
|
299
|
-
* @throws ApiError
|
|
300
|
-
*/
|
|
301
|
-
public static getApiV2MeEnrollments(
|
|
302
|
-
xApiVersion?: string,
|
|
303
|
-
): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
|
|
304
|
-
return __request(OpenAPI, {
|
|
305
|
-
method: 'GET',
|
|
306
|
-
url: '/api/v2/Me/Enrollments',
|
|
307
|
-
headers: {
|
|
308
|
-
'x-api-version': xApiVersion,
|
|
309
|
-
},
|
|
310
|
-
errors: {
|
|
311
|
-
401: `Unauthorized`,
|
|
312
|
-
},
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* @param xApiVersion
|
|
317
|
-
* @returns ExtendedTenantEnrolmentDtoListEnvelope OK
|
|
318
|
-
* @throws ApiError
|
|
319
|
-
*/
|
|
320
|
-
public static getApiV2MeEnrollmentsExtended(
|
|
321
|
-
xApiVersion?: string,
|
|
322
|
-
): CancelablePromise<ExtendedTenantEnrolmentDtoListEnvelope> {
|
|
323
|
-
return __request(OpenAPI, {
|
|
324
|
-
method: 'GET',
|
|
325
|
-
url: '/api/v2/Me/Enrollments/Extended',
|
|
326
|
-
headers: {
|
|
327
|
-
'x-api-version': xApiVersion,
|
|
328
|
-
},
|
|
329
|
-
errors: {
|
|
330
|
-
401: `Unauthorized`,
|
|
331
|
-
},
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* @param enrollmentId
|
|
336
|
-
* @param xApiVersion
|
|
337
|
-
* @param requestBody
|
|
338
|
-
* @returns TenantEnrolmentDtoEnvelope OK
|
|
339
|
-
* @throws ApiError
|
|
340
|
-
*/
|
|
341
|
-
public static getApiV2MeEnrollments1(
|
|
342
|
-
enrollmentId: string,
|
|
343
|
-
xApiVersion?: string,
|
|
344
|
-
requestBody?: EnrollmentId,
|
|
345
|
-
): CancelablePromise<TenantEnrolmentDtoEnvelope> {
|
|
346
|
-
return __request(OpenAPI, {
|
|
347
|
-
method: 'GET',
|
|
348
|
-
url: '/api/v2/Me/Enrollments/{enrollmentId}',
|
|
349
|
-
path: {
|
|
350
|
-
'enrollmentId': enrollmentId,
|
|
351
|
-
},
|
|
240
|
+
url: '/api/v2/Me/Followers/Count',
|
|
352
241
|
headers: {
|
|
353
242
|
'x-api-version': xApiVersion,
|
|
354
243
|
},
|
|
355
|
-
body: requestBody,
|
|
356
|
-
mediaType: 'application/json',
|
|
357
244
|
errors: {
|
|
358
245
|
401: `Unauthorized`,
|
|
359
246
|
},
|
|
360
247
|
});
|
|
361
248
|
}
|
|
362
249
|
/**
|
|
250
|
+
* Get the current user's social profile
|
|
251
|
+
* Get the current user's social profile
|
|
363
252
|
* @param xApiVersion
|
|
364
253
|
* @returns SocialProfileDtoEnvelope OK
|
|
365
254
|
* @throws ApiError
|
|
366
255
|
*/
|
|
367
|
-
public static
|
|
256
|
+
public static getCurrentUserSocialProfileAsync(
|
|
368
257
|
xApiVersion?: string,
|
|
369
258
|
): CancelablePromise<SocialProfileDtoEnvelope> {
|
|
370
259
|
return __request(OpenAPI, {
|
|
@@ -379,11 +268,13 @@ export class HolderService {
|
|
|
379
268
|
});
|
|
380
269
|
}
|
|
381
270
|
/**
|
|
271
|
+
* Get the current user's cart
|
|
272
|
+
* Get the current user's cart
|
|
382
273
|
* @param xApiVersion
|
|
383
274
|
* @returns CartDtoEnvelope OK
|
|
384
275
|
* @throws ApiError
|
|
385
276
|
*/
|
|
386
|
-
public static
|
|
277
|
+
public static getCurrentUserCartAsync(
|
|
387
278
|
xApiVersion?: string,
|
|
388
279
|
): CancelablePromise<CartDtoEnvelope> {
|
|
389
280
|
return __request(OpenAPI, {
|
|
@@ -398,11 +289,13 @@ export class HolderService {
|
|
|
398
289
|
});
|
|
399
290
|
}
|
|
400
291
|
/**
|
|
292
|
+
* Get the current user's billing profile
|
|
293
|
+
* Get the current user's billing profile
|
|
401
294
|
* @param xApiVersion
|
|
402
295
|
* @returns WalletDtoEnvelope OK
|
|
403
296
|
* @throws ApiError
|
|
404
297
|
*/
|
|
405
|
-
public static
|
|
298
|
+
public static getCurrentUserWalletAsync(
|
|
406
299
|
xApiVersion?: string,
|
|
407
300
|
): CancelablePromise<WalletDtoEnvelope> {
|
|
408
301
|
return __request(OpenAPI, {
|
|
@@ -417,11 +310,13 @@ export class HolderService {
|
|
|
417
310
|
});
|
|
418
311
|
}
|
|
419
312
|
/**
|
|
313
|
+
* Get the list of notifications for the current user
|
|
314
|
+
* Get the list of notifications for the current user
|
|
420
315
|
* @param xApiVersion
|
|
421
316
|
* @returns NotificationDtoListEnvelope OK
|
|
422
317
|
* @throws ApiError
|
|
423
318
|
*/
|
|
424
|
-
public static
|
|
319
|
+
public static getCurrentUserNotificationsAsync(
|
|
425
320
|
xApiVersion?: string,
|
|
426
321
|
): CancelablePromise<NotificationDtoListEnvelope> {
|
|
427
322
|
return __request(OpenAPI, {
|
|
@@ -436,11 +331,13 @@ export class HolderService {
|
|
|
436
331
|
});
|
|
437
332
|
}
|
|
438
333
|
/**
|
|
334
|
+
* Count the notifications for the current user
|
|
335
|
+
* Count the notifications for the current user
|
|
439
336
|
* @param xApiVersion
|
|
440
337
|
* @returns Int32Envelope OK
|
|
441
338
|
* @throws ApiError
|
|
442
339
|
*/
|
|
443
|
-
public static
|
|
340
|
+
public static countCurrentUserNotificationsAsync(
|
|
444
341
|
xApiVersion?: string,
|
|
445
342
|
): CancelablePromise<Int32Envelope> {
|
|
446
343
|
return __request(OpenAPI, {
|
|
@@ -455,11 +352,13 @@ export class HolderService {
|
|
|
455
352
|
});
|
|
456
353
|
}
|
|
457
354
|
/**
|
|
355
|
+
* Get the settings for the current user
|
|
356
|
+
* Get the settings for the current user
|
|
458
357
|
* @param xApiVersion
|
|
459
358
|
* @returns UserSettingsDtoEnvelope OK
|
|
460
359
|
* @throws ApiError
|
|
461
360
|
*/
|
|
462
|
-
public static
|
|
361
|
+
public static getCurrentUserSettingsAsync(
|
|
463
362
|
xApiVersion?: string,
|
|
464
363
|
): CancelablePromise<UserSettingsDtoEnvelope> {
|
|
465
364
|
return __request(OpenAPI, {
|
|
@@ -474,12 +373,14 @@ export class HolderService {
|
|
|
474
373
|
});
|
|
475
374
|
}
|
|
476
375
|
/**
|
|
376
|
+
* Update the settings for the current user
|
|
377
|
+
* Update the settings for the current user
|
|
477
378
|
* @param xApiVersion
|
|
478
379
|
* @param requestBody
|
|
479
380
|
* @returns UserSettingsDtoEnvelope OK
|
|
480
381
|
* @throws ApiError
|
|
481
382
|
*/
|
|
482
|
-
public static
|
|
383
|
+
public static updateCurrentUserSettingsAsync(
|
|
483
384
|
xApiVersion?: string,
|
|
484
385
|
requestBody?: UserSettingsUpdateDto,
|
|
485
386
|
): CancelablePromise<UserSettingsDtoEnvelope> {
|
|
@@ -497,11 +398,13 @@ export class HolderService {
|
|
|
497
398
|
});
|
|
498
399
|
}
|
|
499
400
|
/**
|
|
401
|
+
* Get the list of addresses for the current user
|
|
402
|
+
* Get the list of addresses for the current user
|
|
500
403
|
* @param xApiVersion
|
|
501
404
|
* @returns AddressDtoListEnvelope OK
|
|
502
405
|
* @throws ApiError
|
|
503
406
|
*/
|
|
504
|
-
public static
|
|
407
|
+
public static getCurrentUserAddressesAsync(
|
|
505
408
|
xApiVersion?: string,
|
|
506
409
|
): CancelablePromise<AddressDtoListEnvelope> {
|
|
507
410
|
return __request(OpenAPI, {
|
|
@@ -515,23 +418,4 @@ export class HolderService {
|
|
|
515
418
|
},
|
|
516
419
|
});
|
|
517
420
|
}
|
|
518
|
-
/**
|
|
519
|
-
* @param xApiVersion
|
|
520
|
-
* @returns TenantInvitationDtoListEnvelope OK
|
|
521
|
-
* @throws ApiError
|
|
522
|
-
*/
|
|
523
|
-
public static getApiV2MeInvitations(
|
|
524
|
-
xApiVersion?: string,
|
|
525
|
-
): CancelablePromise<TenantInvitationDtoListEnvelope> {
|
|
526
|
-
return __request(OpenAPI, {
|
|
527
|
-
method: 'GET',
|
|
528
|
-
url: '/api/v2/Me/Invitations',
|
|
529
|
-
headers: {
|
|
530
|
-
'x-api-version': xApiVersion,
|
|
531
|
-
},
|
|
532
|
-
errors: {
|
|
533
|
-
401: `Unauthorized`,
|
|
534
|
-
},
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
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;
|