@fenixalliance/abs-api-client 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/index.js +3 -3
- package/app/index.ts +1 -1
- package/clients/cartService/index.js +3 -7
- package/clients/cartService/index.ts +1 -3
- package/clients/cartService/services/{CartService.js → CartsService.js} +3 -3
- package/clients/cartService/services/{CartService.ts → CartsService.ts} +1 -1
- package/clients/cartService/services/WishListsService.js +0 -321
- package/clients/cartService/services/WishListsService.ts +0 -373
- package/clients/holderService/index.js +1 -5
- package/clients/holderService/index.ts +0 -2
- package/clients/holderService/services/UserService.js +143 -0
- package/clients/holderService/services/UserService.ts +166 -0
- package/clients/tenantService/services/TenantsService.js +33 -57
- package/clients/tenantService/services/TenantsService.ts +33 -65
- package/package.json +1 -1
- package/schemas/tenantService/schema.s.ts +144 -70
- package/tsconfig.json +1 -1
- package/clients/cartService/services/CartLinesService.js +0 -173
- package/clients/cartService/services/CartLinesService.ts +0 -203
- package/clients/cartService/services/ECommerceService.js +0 -1104
- package/clients/cartService/services/ECommerceService.ts +0 -1289
- package/clients/holderService/services/IdentityService.js +0 -364
- package/clients/holderService/services/IdentityService.ts +0 -421
- package/clients/holderService/services/TenantsService.js +0 -151
- package/clients/holderService/services/TenantsService.ts +0 -176
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IdentityService = void 0;
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class IdentityService {
|
|
7
|
-
/**
|
|
8
|
-
* Gets the current user
|
|
9
|
-
* Get the currently acting user.
|
|
10
|
-
* @param xApiVersion
|
|
11
|
-
* @returns UserDtoEnvelope OK
|
|
12
|
-
* @throws ApiError
|
|
13
|
-
*/
|
|
14
|
-
static getCurrentUserAsync(xApiVersion) {
|
|
15
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
|
-
method: 'GET',
|
|
17
|
-
url: '/api/v2/Me',
|
|
18
|
-
headers: {
|
|
19
|
-
'x-api-version': xApiVersion,
|
|
20
|
-
},
|
|
21
|
-
errors: {
|
|
22
|
-
401: `Unauthorized`,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Update the current user's profile
|
|
28
|
-
* Update the current user's profile
|
|
29
|
-
* @param xApiVersion
|
|
30
|
-
* @param requestBody
|
|
31
|
-
* @returns EmptyEnvelope OK
|
|
32
|
-
* @throws ApiError
|
|
33
|
-
*/
|
|
34
|
-
static updateCurrentUserAsync(xApiVersion, requestBody) {
|
|
35
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
|
-
method: 'PUT',
|
|
37
|
-
url: '/api/v2/Me',
|
|
38
|
-
headers: {
|
|
39
|
-
'x-api-version': xApiVersion,
|
|
40
|
-
},
|
|
41
|
-
body: requestBody,
|
|
42
|
-
mediaType: 'application/json',
|
|
43
|
-
errors: {
|
|
44
|
-
401: `Unauthorized`,
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Partially update the current user's profile
|
|
50
|
-
* Partially update the current user's profile
|
|
51
|
-
* @param xApiVersion
|
|
52
|
-
* @param requestBody
|
|
53
|
-
* @returns EmptyEnvelope OK
|
|
54
|
-
* @throws ApiError
|
|
55
|
-
*/
|
|
56
|
-
static patchCurrentUserAsync(xApiVersion, requestBody) {
|
|
57
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
58
|
-
method: 'PATCH',
|
|
59
|
-
url: '/api/v2/Me',
|
|
60
|
-
headers: {
|
|
61
|
-
'x-api-version': xApiVersion,
|
|
62
|
-
},
|
|
63
|
-
body: requestBody,
|
|
64
|
-
mediaType: 'application/json',
|
|
65
|
-
errors: {
|
|
66
|
-
401: `Unauthorized`,
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get the current user's extended profile
|
|
72
|
-
* Get the current user's extended profile
|
|
73
|
-
* @param xApiVersion
|
|
74
|
-
* @returns ExtendedUserDtoEnvelope OK
|
|
75
|
-
* @throws ApiError
|
|
76
|
-
*/
|
|
77
|
-
static getExtendedCurrentUserAsync(xApiVersion) {
|
|
78
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
79
|
-
method: 'GET',
|
|
80
|
-
url: '/api/v2/Me/Extended',
|
|
81
|
-
headers: {
|
|
82
|
-
'x-api-version': xApiVersion,
|
|
83
|
-
},
|
|
84
|
-
errors: {
|
|
85
|
-
401: `Unauthorized`,
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Get the current user's avatar
|
|
91
|
-
* Get the current user's avatar
|
|
92
|
-
* @param xApiVersion
|
|
93
|
-
* @returns binary OK
|
|
94
|
-
* @throws ApiError
|
|
95
|
-
*/
|
|
96
|
-
static getCurrentUserAvatarAsync(xApiVersion) {
|
|
97
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
98
|
-
method: 'GET',
|
|
99
|
-
url: '/api/v2/Me/Avatar',
|
|
100
|
-
headers: {
|
|
101
|
-
'x-api-version': xApiVersion,
|
|
102
|
-
},
|
|
103
|
-
errors: {
|
|
104
|
-
401: `Unauthorized`,
|
|
105
|
-
403: `Forbidden`,
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Update the current user's avatar
|
|
111
|
-
* Update the current user's avatar
|
|
112
|
-
* @param xApiVersion
|
|
113
|
-
* @param formData
|
|
114
|
-
* @returns EmptyEnvelope OK
|
|
115
|
-
* @throws ApiError
|
|
116
|
-
*/
|
|
117
|
-
static updateAvatarAsync(xApiVersion, formData) {
|
|
118
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
119
|
-
method: 'POST',
|
|
120
|
-
url: '/api/v2/Me/Avatar',
|
|
121
|
-
headers: {
|
|
122
|
-
'x-api-version': xApiVersion,
|
|
123
|
-
},
|
|
124
|
-
formData: formData,
|
|
125
|
-
mediaType: 'multipart/form-data',
|
|
126
|
-
errors: {
|
|
127
|
-
401: `Unauthorized`,
|
|
128
|
-
403: `Forbidden`,
|
|
129
|
-
},
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Get the social profiles that the current user follows
|
|
134
|
-
* Get the social profiles that the current user follows
|
|
135
|
-
* @param xApiVersion
|
|
136
|
-
* @returns FollowRecordDtoListEnvelope OK
|
|
137
|
-
* @throws ApiError
|
|
138
|
-
*/
|
|
139
|
-
static getCurrentUserFollowsAsync(xApiVersion) {
|
|
140
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
141
|
-
method: 'GET',
|
|
142
|
-
url: '/api/v2/Me/Follows',
|
|
143
|
-
headers: {
|
|
144
|
-
'x-api-version': xApiVersion,
|
|
145
|
-
},
|
|
146
|
-
errors: {
|
|
147
|
-
401: `Unauthorized`,
|
|
148
|
-
},
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Count the social profiles that the current user follows
|
|
153
|
-
* Count the social profiles that the current user follows
|
|
154
|
-
* @param xApiVersion
|
|
155
|
-
* @returns Int32Envelope OK
|
|
156
|
-
* @throws ApiError
|
|
157
|
-
*/
|
|
158
|
-
static countCurrentUserFollowsAsync(xApiVersion) {
|
|
159
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
160
|
-
method: 'GET',
|
|
161
|
-
url: '/api/v2/Me/Follows/Count',
|
|
162
|
-
headers: {
|
|
163
|
-
'x-api-version': xApiVersion,
|
|
164
|
-
},
|
|
165
|
-
errors: {
|
|
166
|
-
401: `Unauthorized`,
|
|
167
|
-
},
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Get the social profiles that follow the current user
|
|
172
|
-
* Get the social profiles that follow the current user
|
|
173
|
-
* @param xApiVersion
|
|
174
|
-
* @returns FollowRecordDtoListEnvelope OK
|
|
175
|
-
* @throws ApiError
|
|
176
|
-
*/
|
|
177
|
-
static getCurrentUserFollowersAsync(xApiVersion) {
|
|
178
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
179
|
-
method: 'GET',
|
|
180
|
-
url: '/api/v2/Me/Followers',
|
|
181
|
-
headers: {
|
|
182
|
-
'x-api-version': xApiVersion,
|
|
183
|
-
},
|
|
184
|
-
errors: {
|
|
185
|
-
401: `Unauthorized`,
|
|
186
|
-
},
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Count the social profiles that follow the current user
|
|
191
|
-
* Count the social profiles that follow the current user
|
|
192
|
-
* @param xApiVersion
|
|
193
|
-
* @returns Int32Envelope OK
|
|
194
|
-
* @throws ApiError
|
|
195
|
-
*/
|
|
196
|
-
static countCurrentUserFollowersAsync(xApiVersion) {
|
|
197
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
198
|
-
method: 'GET',
|
|
199
|
-
url: '/api/v2/Me/Followers/Count',
|
|
200
|
-
headers: {
|
|
201
|
-
'x-api-version': xApiVersion,
|
|
202
|
-
},
|
|
203
|
-
errors: {
|
|
204
|
-
401: `Unauthorized`,
|
|
205
|
-
},
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Get the current user's social profile
|
|
210
|
-
* Get the current user's social profile
|
|
211
|
-
* @param xApiVersion
|
|
212
|
-
* @returns SocialProfileDtoEnvelope OK
|
|
213
|
-
* @throws ApiError
|
|
214
|
-
*/
|
|
215
|
-
static getCurrentUserSocialProfileAsync(xApiVersion) {
|
|
216
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
217
|
-
method: 'GET',
|
|
218
|
-
url: '/api/v2/Me/SocialProfile',
|
|
219
|
-
headers: {
|
|
220
|
-
'x-api-version': xApiVersion,
|
|
221
|
-
},
|
|
222
|
-
errors: {
|
|
223
|
-
401: `Unauthorized`,
|
|
224
|
-
},
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Get the current user's cart
|
|
229
|
-
* Get the current user's cart
|
|
230
|
-
* @param xApiVersion
|
|
231
|
-
* @returns CartDtoEnvelope OK
|
|
232
|
-
* @throws ApiError
|
|
233
|
-
*/
|
|
234
|
-
static getCurrentUserCartAsync(xApiVersion) {
|
|
235
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
236
|
-
method: 'GET',
|
|
237
|
-
url: '/api/v2/Me/Cart',
|
|
238
|
-
headers: {
|
|
239
|
-
'x-api-version': xApiVersion,
|
|
240
|
-
},
|
|
241
|
-
errors: {
|
|
242
|
-
401: `Unauthorized`,
|
|
243
|
-
},
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Get the current user's billing profile
|
|
248
|
-
* Get the current user's billing profile
|
|
249
|
-
* @param xApiVersion
|
|
250
|
-
* @returns WalletDtoEnvelope OK
|
|
251
|
-
* @throws ApiError
|
|
252
|
-
*/
|
|
253
|
-
static getCurrentUserWalletAsync(xApiVersion) {
|
|
254
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
255
|
-
method: 'GET',
|
|
256
|
-
url: '/api/v2/Me/Wallet',
|
|
257
|
-
headers: {
|
|
258
|
-
'x-api-version': xApiVersion,
|
|
259
|
-
},
|
|
260
|
-
errors: {
|
|
261
|
-
401: `Unauthorized`,
|
|
262
|
-
},
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Get the list of notifications for the current user
|
|
267
|
-
* Get the list of notifications for the current user
|
|
268
|
-
* @param xApiVersion
|
|
269
|
-
* @returns NotificationDtoListEnvelope OK
|
|
270
|
-
* @throws ApiError
|
|
271
|
-
*/
|
|
272
|
-
static getCurrentUserNotificationsAsync(xApiVersion) {
|
|
273
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
274
|
-
method: 'GET',
|
|
275
|
-
url: '/api/v2/Me/Notifications',
|
|
276
|
-
headers: {
|
|
277
|
-
'x-api-version': xApiVersion,
|
|
278
|
-
},
|
|
279
|
-
errors: {
|
|
280
|
-
401: `Unauthorized`,
|
|
281
|
-
},
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Count the notifications for the current user
|
|
286
|
-
* Count the notifications for the current user
|
|
287
|
-
* @param xApiVersion
|
|
288
|
-
* @returns Int32Envelope OK
|
|
289
|
-
* @throws ApiError
|
|
290
|
-
*/
|
|
291
|
-
static countCurrentUserNotificationsAsync(xApiVersion) {
|
|
292
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
293
|
-
method: 'GET',
|
|
294
|
-
url: '/api/v2/Me/Notifications/Count',
|
|
295
|
-
headers: {
|
|
296
|
-
'x-api-version': xApiVersion,
|
|
297
|
-
},
|
|
298
|
-
errors: {
|
|
299
|
-
401: `Unauthorized`,
|
|
300
|
-
},
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Get the settings for the current user
|
|
305
|
-
* Get the settings for the current user
|
|
306
|
-
* @param xApiVersion
|
|
307
|
-
* @returns UserSettingsDtoEnvelope OK
|
|
308
|
-
* @throws ApiError
|
|
309
|
-
*/
|
|
310
|
-
static getCurrentUserSettingsAsync(xApiVersion) {
|
|
311
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
312
|
-
method: 'GET',
|
|
313
|
-
url: '/api/v2/Me/Settings',
|
|
314
|
-
headers: {
|
|
315
|
-
'x-api-version': xApiVersion,
|
|
316
|
-
},
|
|
317
|
-
errors: {
|
|
318
|
-
401: `Unauthorized`,
|
|
319
|
-
},
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* Update the settings for the current user
|
|
324
|
-
* Update the settings for the current user
|
|
325
|
-
* @param xApiVersion
|
|
326
|
-
* @param requestBody
|
|
327
|
-
* @returns UserSettingsDtoEnvelope OK
|
|
328
|
-
* @throws ApiError
|
|
329
|
-
*/
|
|
330
|
-
static updateCurrentUserSettingsAsync(xApiVersion, requestBody) {
|
|
331
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
332
|
-
method: 'PUT',
|
|
333
|
-
url: '/api/v2/Me/Settings',
|
|
334
|
-
headers: {
|
|
335
|
-
'x-api-version': xApiVersion,
|
|
336
|
-
},
|
|
337
|
-
body: requestBody,
|
|
338
|
-
mediaType: 'application/json',
|
|
339
|
-
errors: {
|
|
340
|
-
401: `Unauthorized`,
|
|
341
|
-
},
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* Get the list of addresses for the current user
|
|
346
|
-
* Get the list of addresses for the current user
|
|
347
|
-
* @param xApiVersion
|
|
348
|
-
* @returns AddressDtoListEnvelope OK
|
|
349
|
-
* @throws ApiError
|
|
350
|
-
*/
|
|
351
|
-
static getCurrentUserAddressesAsync(xApiVersion) {
|
|
352
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
353
|
-
method: 'GET',
|
|
354
|
-
url: '/api/v2/Me/Addresses',
|
|
355
|
-
headers: {
|
|
356
|
-
'x-api-version': xApiVersion,
|
|
357
|
-
},
|
|
358
|
-
errors: {
|
|
359
|
-
401: `Unauthorized`,
|
|
360
|
-
},
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
exports.IdentityService = IdentityService;
|