@fenixalliance/abs-api-client 1.0.11 → 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.
@@ -7,385 +7,12 @@ import type { EmptyEnvelope } from '../models/EmptyEnvelope';
7
7
  import type { NewWishListRequest } from '../models/NewWishListRequest';
8
8
  import type { ProductToWishListRequest } from '../models/ProductToWishListRequest';
9
9
  import type { WishListDto } from '../models/WishListDto';
10
- import type { WishListDtoEnvelope } from '../models/WishListDtoEnvelope';
11
10
  import type { WishListItemRecordDto } from '../models/WishListItemRecordDto';
12
11
  import type { WishListUpdateDto } from '../models/WishListUpdateDto';
13
12
  import type { CancelablePromise } from '../core/CancelablePromise';
14
13
  import { OpenAPI } from '../core/OpenAPI';
15
14
  import { request as __request } from '../core/request';
16
15
  export class WishListsService {
17
- /**
18
- * Get all wishlists in a cart
19
- * Get all wishlists in a cart
20
- * @param cartId
21
- * @param xApiVersion
22
- * @returns WishListDto OK
23
- * @throws ApiError
24
- */
25
- public static getWishListAsync(
26
- cartId: string,
27
- xApiVersion?: string,
28
- ): CancelablePromise<Array<WishListDto>> {
29
- return __request(OpenAPI, {
30
- method: 'GET',
31
- url: '/api/v2/CartService/Carts/{cartId}/WishLists',
32
- path: {
33
- 'cartId': cartId,
34
- },
35
- headers: {
36
- 'x-api-version': xApiVersion,
37
- },
38
- errors: {
39
- 401: `Unauthorized`,
40
- 404: `Not Found`,
41
- },
42
- });
43
- }
44
- /**
45
- * Create a new wish list
46
- * Create a new wish list
47
- * @param cartId
48
- * @param xApiVersion
49
- * @param requestBody
50
- * @returns EmptyEnvelope OK
51
- * @throws ApiError
52
- */
53
- public static createWishListAsync(
54
- cartId: string,
55
- xApiVersion?: string,
56
- requestBody?: NewWishListRequest,
57
- ): CancelablePromise<EmptyEnvelope> {
58
- return __request(OpenAPI, {
59
- method: 'POST',
60
- url: '/api/v2/CartService/Carts/{cartId}/WishLists',
61
- path: {
62
- 'cartId': cartId,
63
- },
64
- headers: {
65
- 'x-api-version': xApiVersion,
66
- },
67
- body: requestBody,
68
- mediaType: 'application/json',
69
- errors: {
70
- 401: `Unauthorized`,
71
- 404: `Not Found`,
72
- },
73
- });
74
- }
75
- /**
76
- * Assesses if an Item is already in any of the cart's wishlists
77
- * Assesses if an Item is already in any of the cart's wishlists
78
- * @param cartId
79
- * @param itemId
80
- * @param xApiVersion
81
- * @returns BooleanEnvelope OK
82
- * @throws ApiError
83
- */
84
- public static isItemInWishLists(
85
- cartId: string,
86
- itemId: string,
87
- xApiVersion?: string,
88
- ): CancelablePromise<BooleanEnvelope> {
89
- return __request(OpenAPI, {
90
- method: 'GET',
91
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/Contains/{itemId}',
92
- path: {
93
- 'cartId': cartId,
94
- 'itemId': itemId,
95
- },
96
- headers: {
97
- 'x-api-version': xApiVersion,
98
- },
99
- errors: {
100
- 401: `Unauthorized`,
101
- 404: `Not Found`,
102
- },
103
- });
104
- }
105
- /**
106
- * Assesses if a WishList exists
107
- * Assesses if a WishList exists
108
- * @param cartId
109
- * @param wishListId
110
- * @param xApiVersion
111
- * @returns BooleanEnvelope OK
112
- * @throws ApiError
113
- */
114
- public static wishListExistsAsync(
115
- cartId: string,
116
- wishListId: string,
117
- xApiVersion?: string,
118
- ): CancelablePromise<BooleanEnvelope> {
119
- return __request(OpenAPI, {
120
- method: 'GET',
121
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Exists',
122
- path: {
123
- 'cartId': cartId,
124
- 'wishListId': wishListId,
125
- },
126
- headers: {
127
- 'x-api-version': xApiVersion,
128
- },
129
- errors: {
130
- 401: `Unauthorized`,
131
- 404: `Not Found`,
132
- },
133
- });
134
- }
135
- /**
136
- * Assesses if a WishList exists
137
- * Assesses if a WishList exists but does not return the content
138
- * @param cartId
139
- * @param wishListId
140
- * @param xApiVersion
141
- * @returns EmptyEnvelope OK
142
- * @throws ApiError
143
- */
144
- public static wishListExistsHeadAsync(
145
- cartId: string,
146
- wishListId: string,
147
- xApiVersion?: string,
148
- ): CancelablePromise<EmptyEnvelope> {
149
- return __request(OpenAPI, {
150
- method: 'HEAD',
151
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Exists',
152
- path: {
153
- 'cartId': cartId,
154
- 'wishListId': wishListId,
155
- },
156
- headers: {
157
- 'x-api-version': xApiVersion,
158
- },
159
- errors: {
160
- 401: `Unauthorized`,
161
- 404: `Not Found`,
162
- },
163
- });
164
- }
165
- /**
166
- * Update a wish list
167
- * Update a wish list
168
- * @param cartId
169
- * @param wishListId
170
- * @param xApiVersion
171
- * @param requestBody
172
- * @returns EmptyEnvelope OK
173
- * @throws ApiError
174
- */
175
- public static updateItemToWishList(
176
- cartId: string,
177
- wishListId: string,
178
- xApiVersion?: string,
179
- requestBody?: WishListUpdateDto,
180
- ): CancelablePromise<EmptyEnvelope> {
181
- return __request(OpenAPI, {
182
- method: 'PUT',
183
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
184
- path: {
185
- 'cartId': cartId,
186
- 'wishListId': wishListId,
187
- },
188
- headers: {
189
- 'x-api-version': xApiVersion,
190
- },
191
- body: requestBody,
192
- mediaType: 'application/json',
193
- errors: {
194
- 401: `Unauthorized`,
195
- 404: `Not Found`,
196
- },
197
- });
198
- }
199
- /**
200
- * Get a wish list by ID
201
- * Get a wish list by ID
202
- * @param cartId
203
- * @param wishListId
204
- * @param xApiVersion
205
- * @returns WishListDtoEnvelope OK
206
- * @throws ApiError
207
- */
208
- public static getCartWishListDetailsAsync(
209
- cartId: string,
210
- wishListId: string,
211
- xApiVersion?: string,
212
- ): CancelablePromise<WishListDtoEnvelope> {
213
- return __request(OpenAPI, {
214
- method: 'GET',
215
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
216
- path: {
217
- 'cartId': cartId,
218
- 'wishListId': wishListId,
219
- },
220
- headers: {
221
- 'x-api-version': xApiVersion,
222
- },
223
- errors: {
224
- 401: `Unauthorized`,
225
- 404: `Not Found`,
226
- },
227
- });
228
- }
229
- /**
230
- * Delete a wish list
231
- * Delete a wish list
232
- * @param cartId
233
- * @param wishListId
234
- * @param xApiVersion
235
- * @returns EmptyEnvelope OK
236
- * @throws ApiError
237
- */
238
- public static deleteWishList(
239
- cartId: string,
240
- wishListId: string,
241
- xApiVersion?: string,
242
- ): CancelablePromise<EmptyEnvelope> {
243
- return __request(OpenAPI, {
244
- method: 'DELETE',
245
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
246
- path: {
247
- 'cartId': cartId,
248
- 'wishListId': wishListId,
249
- },
250
- headers: {
251
- 'x-api-version': xApiVersion,
252
- },
253
- errors: {
254
- 401: `Unauthorized`,
255
- 404: `Not Found`,
256
- },
257
- });
258
- }
259
- /**
260
- * Get all records in a wish list
261
- * Get all records in a wish list
262
- * @param cartId
263
- * @param wishListId
264
- * @param xApiVersion
265
- * @returns WishListItemRecordDto OK
266
- * @throws ApiError
267
- */
268
- public static getCartWishListItemsAsync(
269
- cartId: string,
270
- wishListId: string,
271
- xApiVersion?: string,
272
- ): CancelablePromise<Array<WishListItemRecordDto>> {
273
- return __request(OpenAPI, {
274
- method: 'GET',
275
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records',
276
- path: {
277
- 'cartId': cartId,
278
- 'wishListId': wishListId,
279
- },
280
- headers: {
281
- 'x-api-version': xApiVersion,
282
- },
283
- errors: {
284
- 401: `Unauthorized`,
285
- 404: `Not Found`,
286
- },
287
- });
288
- }
289
- /**
290
- * Add a record to a wish list
291
- * Add a record to a wish list
292
- * @param cartId
293
- * @param wishListId
294
- * @param xApiVersion
295
- * @param requestBody
296
- * @returns EmptyEnvelope OK
297
- * @throws ApiError
298
- */
299
- public static addItemToWishList(
300
- cartId: string,
301
- wishListId: string,
302
- xApiVersion?: string,
303
- requestBody?: ProductToWishListRequest,
304
- ): CancelablePromise<EmptyEnvelope> {
305
- return __request(OpenAPI, {
306
- method: 'POST',
307
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records',
308
- path: {
309
- 'cartId': cartId,
310
- 'wishListId': wishListId,
311
- },
312
- headers: {
313
- 'x-api-version': xApiVersion,
314
- },
315
- body: requestBody,
316
- mediaType: 'application/json',
317
- errors: {
318
- 401: `Unauthorized`,
319
- 404: `Not Found`,
320
- },
321
- });
322
- }
323
- /**
324
- * Get a record in a wish list
325
- * Get a record in a wish list
326
- * @param cartId
327
- * @param wishListId
328
- * @param recordId
329
- * @param xApiVersion
330
- * @returns WishListItemRecordDto OK
331
- * @throws ApiError
332
- */
333
- public static getCartWishListItemAsync(
334
- cartId: string,
335
- wishListId: string,
336
- recordId: string,
337
- xApiVersion?: string,
338
- ): CancelablePromise<Array<WishListItemRecordDto>> {
339
- return __request(OpenAPI, {
340
- method: 'GET',
341
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records/{recordId}',
342
- path: {
343
- 'cartId': cartId,
344
- 'wishListId': wishListId,
345
- 'recordId': recordId,
346
- },
347
- headers: {
348
- 'x-api-version': xApiVersion,
349
- },
350
- errors: {
351
- 401: `Unauthorized`,
352
- 404: `Not Found`,
353
- },
354
- });
355
- }
356
- /**
357
- * Remove a record from a wish list
358
- * Remove a record from a wish list
359
- * @param cartId
360
- * @param wishListId
361
- * @param recordId
362
- * @param xApiVersion
363
- * @returns EmptyEnvelope OK
364
- * @throws ApiError
365
- */
366
- public static deleteWishListRecord(
367
- cartId: string,
368
- wishListId: string,
369
- recordId: string,
370
- xApiVersion?: string,
371
- ): CancelablePromise<EmptyEnvelope> {
372
- return __request(OpenAPI, {
373
- method: 'DELETE',
374
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records/{recordId}',
375
- path: {
376
- 'cartId': cartId,
377
- 'wishListId': wishListId,
378
- 'recordId': recordId,
379
- },
380
- headers: {
381
- 'x-api-version': xApiVersion,
382
- },
383
- errors: {
384
- 401: `Unauthorized`,
385
- 404: `Not Found`,
386
- },
387
- });
388
- }
389
16
  /**
390
17
  * @param cartId
391
18
  * @param productId
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserService = exports.TenantsService = exports.IdentityService = exports.UserUpdateDto = exports.UserSettingsUpdateDto = exports.UserSettingsDto = exports.UserDto = exports.SocialProfileDto = exports.Operation = exports.ExtendedUserDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
3
+ exports.UserService = exports.UserUpdateDto = exports.UserSettingsUpdateDto = exports.UserSettingsDto = exports.UserDto = exports.SocialProfileDto = exports.Operation = exports.ExtendedUserDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
4
4
  /* generated using openapi-typescript-codegen -- do no edit */
5
5
  /* istanbul ignore file */
6
6
  /* tslint:disable */
@@ -26,9 +26,5 @@ var UserSettingsUpdateDto_1 = require("./models/UserSettingsUpdateDto");
26
26
  Object.defineProperty(exports, "UserSettingsUpdateDto", { enumerable: true, get: function () { return UserSettingsUpdateDto_1.UserSettingsUpdateDto; } });
27
27
  var UserUpdateDto_1 = require("./models/UserUpdateDto");
28
28
  Object.defineProperty(exports, "UserUpdateDto", { enumerable: true, get: function () { return UserUpdateDto_1.UserUpdateDto; } });
29
- var IdentityService_1 = require("./services/IdentityService");
30
- Object.defineProperty(exports, "IdentityService", { enumerable: true, get: function () { return IdentityService_1.IdentityService; } });
31
- var TenantsService_1 = require("./services/TenantsService");
32
- Object.defineProperty(exports, "TenantsService", { enumerable: true, get: function () { return TenantsService_1.TenantsService; } });
33
29
  var UserService_1 = require("./services/UserService");
34
30
  Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return UserService_1.UserService; } });
@@ -44,6 +44,4 @@ export { UserUpdateDto } from './models/UserUpdateDto';
44
44
  export type { WalletDto } from './models/WalletDto';
45
45
  export type { WalletDtoEnvelope } from './models/WalletDtoEnvelope';
46
46
 
47
- export { IdentityService } from './services/IdentityService';
48
- export { TenantsService } from './services/TenantsService';
49
47
  export { UserService } from './services/UserService';
@@ -205,6 +205,130 @@ class UserService {
205
205
  },
206
206
  });
207
207
  }
208
+ /**
209
+ * Get the tenants that the current user is enrolled in
210
+ * Get the tenants that the current user is enrolled in
211
+ * @param xApiVersion
212
+ * @returns TenantDtoListEnvelope OK
213
+ * @throws ApiError
214
+ */
215
+ static getCurrentUserTenantsAsync(xApiVersion) {
216
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
217
+ method: 'GET',
218
+ url: '/api/v2/Me/Businesses',
219
+ headers: {
220
+ 'x-api-version': xApiVersion,
221
+ },
222
+ errors: {
223
+ 401: `Unauthorized`,
224
+ 403: `Forbidden`,
225
+ },
226
+ });
227
+ }
228
+ /**
229
+ * Count the tenants that the current user is enrolled in
230
+ * Count the tenants that the current user is enrolled in
231
+ * @param xApiVersion
232
+ * @returns Int32Envelope OK
233
+ * @throws ApiError
234
+ */
235
+ static countCurrentUserTenantsAsync(xApiVersion) {
236
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
237
+ method: 'GET',
238
+ url: '/api/v2/Me/Businesses/Count',
239
+ headers: {
240
+ 'x-api-version': xApiVersion,
241
+ },
242
+ errors: {
243
+ 401: `Unauthorized`,
244
+ 403: `Forbidden`,
245
+ },
246
+ });
247
+ }
248
+ /**
249
+ * Get the tenants that the current user is enrolled in
250
+ * Get the tenants that the current user is enrolled in
251
+ * @param xApiVersion
252
+ * @returns ExtendedTenantDtoListEnvelope OK
253
+ * @throws ApiError
254
+ */
255
+ static getCurrentUserTenantsExtendedAsync(xApiVersion) {
256
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
257
+ method: 'GET',
258
+ url: '/api/v2/Me/Businesses/Extended',
259
+ headers: {
260
+ 'x-api-version': xApiVersion,
261
+ },
262
+ errors: {
263
+ 401: `Unauthorized`,
264
+ 403: `Forbidden`,
265
+ },
266
+ });
267
+ }
268
+ /**
269
+ * Get the list of enrollments for the current user
270
+ * Get the list of enrollments for the current user
271
+ * @param xApiVersion
272
+ * @returns TenantEnrolmentDtoListEnvelope OK
273
+ * @throws ApiError
274
+ */
275
+ static getCurrentUserEnrollmentsAsync(xApiVersion) {
276
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
277
+ method: 'GET',
278
+ url: '/api/v2/Me/Enrollments',
279
+ headers: {
280
+ 'x-api-version': xApiVersion,
281
+ },
282
+ errors: {
283
+ 401: `Unauthorized`,
284
+ },
285
+ });
286
+ }
287
+ /**
288
+ * Get the list of enrollments for the current user
289
+ * Get the list of enrollments for the current user
290
+ * @param xApiVersion
291
+ * @returns ExtendedTenantEnrolmentDtoListEnvelope OK
292
+ * @throws ApiError
293
+ */
294
+ static getCurrentUserEnrollmentsExtendedAsync(xApiVersion) {
295
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
296
+ method: 'GET',
297
+ url: '/api/v2/Me/Enrollments/Extended',
298
+ headers: {
299
+ 'x-api-version': xApiVersion,
300
+ },
301
+ errors: {
302
+ 401: `Unauthorized`,
303
+ },
304
+ });
305
+ }
306
+ /**
307
+ * Get a single TenantEnrollment by its ID
308
+ * Get a single TenantEnrollment by its ID
309
+ * @param enrollmentId
310
+ * @param xApiVersion
311
+ * @param requestBody
312
+ * @returns TenantEnrolmentDtoEnvelope OK
313
+ * @throws ApiError
314
+ */
315
+ static getTenantEnrollmentAsync(enrollmentId, xApiVersion, requestBody) {
316
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
317
+ method: 'GET',
318
+ url: '/api/v2/Me/Enrollments/{enrollmentId}',
319
+ path: {
320
+ 'enrollmentId': enrollmentId,
321
+ },
322
+ headers: {
323
+ 'x-api-version': xApiVersion,
324
+ },
325
+ body: requestBody,
326
+ mediaType: 'application/json',
327
+ errors: {
328
+ 401: `Unauthorized`,
329
+ },
330
+ });
331
+ }
208
332
  /**
209
333
  * Get the current user's social profile
210
334
  * Get the current user's social profile
@@ -360,5 +484,24 @@ class UserService {
360
484
  },
361
485
  });
362
486
  }
487
+ /**
488
+ * Get the list of tenant enrollment invitations for the current user
489
+ * Get the list of tenant enrollment invitations for the current user
490
+ * @param xApiVersion
491
+ * @returns TenantInvitationDtoListEnvelope OK
492
+ * @throws ApiError
493
+ */
494
+ static getCurrentUserInvitationAsync(xApiVersion) {
495
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
496
+ method: 'GET',
497
+ url: '/api/v2/Me/Invitations',
498
+ headers: {
499
+ 'x-api-version': xApiVersion,
500
+ },
501
+ errors: {
502
+ 401: `Unauthorized`,
503
+ },
504
+ });
505
+ }
363
506
  }
364
507
  exports.UserService = UserService;