@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
package/app/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrdersService = exports.ContactsService = exports.
|
|
3
|
+
exports.OrdersService = exports.ContactsService = exports.TenantsService = exports.CartsService = exports.UserService = void 0;
|
|
4
4
|
var holderService_1 = require("../clients/holderService");
|
|
5
5
|
Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return holderService_1.UserService; } });
|
|
6
|
+
var cartService_1 = require("../clients/cartService");
|
|
7
|
+
Object.defineProperty(exports, "CartsService", { enumerable: true, get: function () { return cartService_1.CartsService; } });
|
|
6
8
|
var tenantService_1 = require("../clients/tenantService");
|
|
7
9
|
Object.defineProperty(exports, "TenantsService", { enumerable: true, get: function () { return tenantService_1.TenantsService; } });
|
|
8
|
-
var cartService_1 = require("../clients/cartService");
|
|
9
|
-
Object.defineProperty(exports, "CartService", { enumerable: true, get: function () { return cartService_1.CartService; } });
|
|
10
10
|
var crmService_1 = require("../clients/crmService");
|
|
11
11
|
Object.defineProperty(exports, "ContactsService", { enumerable: true, get: function () { return crmService_1.ContactsService; } });
|
|
12
12
|
var ordersService_1 = require("../clients/ordersService");
|
package/app/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UserService } from "../clients/holderService";
|
|
2
|
+
export { CartsService } from "../clients/cartService";
|
|
2
3
|
export { TenantsService } from "../clients/tenantService";
|
|
3
|
-
export { CartService } from "../clients/cartService";
|
|
4
4
|
export { ContactsService } from "../clients/crmService";
|
|
5
5
|
export { OrdersService } from "../clients/ordersService";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WishListsService = exports.RecordsService = exports.
|
|
3
|
+
exports.WishListsService = exports.RecordsService = exports.CompareService = exports.CartsService = exports.ItemCartRecordDto = 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 */
|
|
@@ -14,14 +14,10 @@ var OpenAPI_1 = require("./core/OpenAPI");
|
|
|
14
14
|
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
|
|
15
15
|
var ItemCartRecordDto_1 = require("./models/ItemCartRecordDto");
|
|
16
16
|
Object.defineProperty(exports, "ItemCartRecordDto", { enumerable: true, get: function () { return ItemCartRecordDto_1.ItemCartRecordDto; } });
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "
|
|
19
|
-
var CartLinesService_1 = require("./services/CartLinesService");
|
|
20
|
-
Object.defineProperty(exports, "CartLinesService", { enumerable: true, get: function () { return CartLinesService_1.CartLinesService; } });
|
|
17
|
+
var CartsService_1 = require("./services/CartsService");
|
|
18
|
+
Object.defineProperty(exports, "CartsService", { enumerable: true, get: function () { return CartsService_1.CartsService; } });
|
|
21
19
|
var CompareService_1 = require("./services/CompareService");
|
|
22
20
|
Object.defineProperty(exports, "CompareService", { enumerable: true, get: function () { return CompareService_1.CompareService; } });
|
|
23
|
-
var ECommerceService_1 = require("./services/ECommerceService");
|
|
24
|
-
Object.defineProperty(exports, "ECommerceService", { enumerable: true, get: function () { return ECommerceService_1.ECommerceService; } });
|
|
25
21
|
var RecordsService_1 = require("./services/RecordsService");
|
|
26
22
|
Object.defineProperty(exports, "RecordsService", { enumerable: true, get: function () { return RecordsService_1.RecordsService; } });
|
|
27
23
|
var WishListsService_1 = require("./services/WishListsService");
|
|
@@ -35,9 +35,7 @@ export type { WishListDtoEnvelope } from './models/WishListDtoEnvelope';
|
|
|
35
35
|
export type { WishListItemRecordDto } from './models/WishListItemRecordDto';
|
|
36
36
|
export type { WishListUpdateDto } from './models/WishListUpdateDto';
|
|
37
37
|
|
|
38
|
-
export {
|
|
39
|
-
export { CartLinesService } from './services/CartLinesService';
|
|
38
|
+
export { CartsService } from './services/CartsService';
|
|
40
39
|
export { CompareService } from './services/CompareService';
|
|
41
|
-
export { ECommerceService } from './services/ECommerceService';
|
|
42
40
|
export { RecordsService } from './services/RecordsService';
|
|
43
41
|
export { WishListsService } from './services/WishListsService';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CartsService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
class
|
|
6
|
+
class CartsService {
|
|
7
7
|
/**
|
|
8
8
|
* Get all business owned contacts
|
|
9
9
|
* Get all business owned contacts
|
|
@@ -1101,4 +1101,4 @@ class CartService {
|
|
|
1101
1101
|
});
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
exports.
|
|
1104
|
+
exports.CartsService = CartsService;
|
|
@@ -25,7 +25,7 @@ import type { WishListUpdateDto } from '../models/WishListUpdateDto';
|
|
|
25
25
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
26
26
|
import { OpenAPI } from '../core/OpenAPI';
|
|
27
27
|
import { request as __request } from '../core/request';
|
|
28
|
-
export class
|
|
28
|
+
export class CartsService {
|
|
29
29
|
/**
|
|
30
30
|
* Get all business owned contacts
|
|
31
31
|
* Get all business owned contacts
|
|
@@ -4,327 +4,6 @@ exports.WishListsService = void 0;
|
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
6
|
class WishListsService {
|
|
7
|
-
/**
|
|
8
|
-
* Get all wishlists in a cart
|
|
9
|
-
* Get all wishlists in a cart
|
|
10
|
-
* @param cartId
|
|
11
|
-
* @param xApiVersion
|
|
12
|
-
* @returns WishListDto OK
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
static getWishListAsync(cartId, xApiVersion) {
|
|
16
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
17
|
-
method: 'GET',
|
|
18
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists',
|
|
19
|
-
path: {
|
|
20
|
-
'cartId': cartId,
|
|
21
|
-
},
|
|
22
|
-
headers: {
|
|
23
|
-
'x-api-version': xApiVersion,
|
|
24
|
-
},
|
|
25
|
-
errors: {
|
|
26
|
-
401: `Unauthorized`,
|
|
27
|
-
404: `Not Found`,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Create a new wish list
|
|
33
|
-
* Create a new wish list
|
|
34
|
-
* @param cartId
|
|
35
|
-
* @param xApiVersion
|
|
36
|
-
* @param requestBody
|
|
37
|
-
* @returns EmptyEnvelope OK
|
|
38
|
-
* @throws ApiError
|
|
39
|
-
*/
|
|
40
|
-
static createWishListAsync(cartId, xApiVersion, requestBody) {
|
|
41
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
42
|
-
method: 'POST',
|
|
43
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists',
|
|
44
|
-
path: {
|
|
45
|
-
'cartId': cartId,
|
|
46
|
-
},
|
|
47
|
-
headers: {
|
|
48
|
-
'x-api-version': xApiVersion,
|
|
49
|
-
},
|
|
50
|
-
body: requestBody,
|
|
51
|
-
mediaType: 'application/json',
|
|
52
|
-
errors: {
|
|
53
|
-
401: `Unauthorized`,
|
|
54
|
-
404: `Not Found`,
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Assesses if an Item is already in any of the cart's wishlists
|
|
60
|
-
* Assesses if an Item is already in any of the cart's wishlists
|
|
61
|
-
* @param cartId
|
|
62
|
-
* @param itemId
|
|
63
|
-
* @param xApiVersion
|
|
64
|
-
* @returns BooleanEnvelope OK
|
|
65
|
-
* @throws ApiError
|
|
66
|
-
*/
|
|
67
|
-
static isItemInWishLists(cartId, itemId, xApiVersion) {
|
|
68
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
69
|
-
method: 'GET',
|
|
70
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/Contains/{itemId}',
|
|
71
|
-
path: {
|
|
72
|
-
'cartId': cartId,
|
|
73
|
-
'itemId': itemId,
|
|
74
|
-
},
|
|
75
|
-
headers: {
|
|
76
|
-
'x-api-version': xApiVersion,
|
|
77
|
-
},
|
|
78
|
-
errors: {
|
|
79
|
-
401: `Unauthorized`,
|
|
80
|
-
404: `Not Found`,
|
|
81
|
-
},
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Assesses if a WishList exists
|
|
86
|
-
* Assesses if a WishList exists
|
|
87
|
-
* @param cartId
|
|
88
|
-
* @param wishListId
|
|
89
|
-
* @param xApiVersion
|
|
90
|
-
* @returns BooleanEnvelope OK
|
|
91
|
-
* @throws ApiError
|
|
92
|
-
*/
|
|
93
|
-
static wishListExistsAsync(cartId, wishListId, xApiVersion) {
|
|
94
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
95
|
-
method: 'GET',
|
|
96
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Exists',
|
|
97
|
-
path: {
|
|
98
|
-
'cartId': cartId,
|
|
99
|
-
'wishListId': wishListId,
|
|
100
|
-
},
|
|
101
|
-
headers: {
|
|
102
|
-
'x-api-version': xApiVersion,
|
|
103
|
-
},
|
|
104
|
-
errors: {
|
|
105
|
-
401: `Unauthorized`,
|
|
106
|
-
404: `Not Found`,
|
|
107
|
-
},
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Assesses if a WishList exists
|
|
112
|
-
* Assesses if a WishList exists but does not return the content
|
|
113
|
-
* @param cartId
|
|
114
|
-
* @param wishListId
|
|
115
|
-
* @param xApiVersion
|
|
116
|
-
* @returns EmptyEnvelope OK
|
|
117
|
-
* @throws ApiError
|
|
118
|
-
*/
|
|
119
|
-
static wishListExistsHeadAsync(cartId, wishListId, xApiVersion) {
|
|
120
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
121
|
-
method: 'HEAD',
|
|
122
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Exists',
|
|
123
|
-
path: {
|
|
124
|
-
'cartId': cartId,
|
|
125
|
-
'wishListId': wishListId,
|
|
126
|
-
},
|
|
127
|
-
headers: {
|
|
128
|
-
'x-api-version': xApiVersion,
|
|
129
|
-
},
|
|
130
|
-
errors: {
|
|
131
|
-
401: `Unauthorized`,
|
|
132
|
-
404: `Not Found`,
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Update a wish list
|
|
138
|
-
* Update a wish list
|
|
139
|
-
* @param cartId
|
|
140
|
-
* @param wishListId
|
|
141
|
-
* @param xApiVersion
|
|
142
|
-
* @param requestBody
|
|
143
|
-
* @returns EmptyEnvelope OK
|
|
144
|
-
* @throws ApiError
|
|
145
|
-
*/
|
|
146
|
-
static updateItemToWishList(cartId, wishListId, xApiVersion, requestBody) {
|
|
147
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
148
|
-
method: 'PUT',
|
|
149
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
|
|
150
|
-
path: {
|
|
151
|
-
'cartId': cartId,
|
|
152
|
-
'wishListId': wishListId,
|
|
153
|
-
},
|
|
154
|
-
headers: {
|
|
155
|
-
'x-api-version': xApiVersion,
|
|
156
|
-
},
|
|
157
|
-
body: requestBody,
|
|
158
|
-
mediaType: 'application/json',
|
|
159
|
-
errors: {
|
|
160
|
-
401: `Unauthorized`,
|
|
161
|
-
404: `Not Found`,
|
|
162
|
-
},
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Get a wish list by ID
|
|
167
|
-
* Get a wish list by ID
|
|
168
|
-
* @param cartId
|
|
169
|
-
* @param wishListId
|
|
170
|
-
* @param xApiVersion
|
|
171
|
-
* @returns WishListDtoEnvelope OK
|
|
172
|
-
* @throws ApiError
|
|
173
|
-
*/
|
|
174
|
-
static getCartWishListDetailsAsync(cartId, wishListId, xApiVersion) {
|
|
175
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
176
|
-
method: 'GET',
|
|
177
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
|
|
178
|
-
path: {
|
|
179
|
-
'cartId': cartId,
|
|
180
|
-
'wishListId': wishListId,
|
|
181
|
-
},
|
|
182
|
-
headers: {
|
|
183
|
-
'x-api-version': xApiVersion,
|
|
184
|
-
},
|
|
185
|
-
errors: {
|
|
186
|
-
401: `Unauthorized`,
|
|
187
|
-
404: `Not Found`,
|
|
188
|
-
},
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Delete a wish list
|
|
193
|
-
* Delete a wish list
|
|
194
|
-
* @param cartId
|
|
195
|
-
* @param wishListId
|
|
196
|
-
* @param xApiVersion
|
|
197
|
-
* @returns EmptyEnvelope OK
|
|
198
|
-
* @throws ApiError
|
|
199
|
-
*/
|
|
200
|
-
static deleteWishList(cartId, wishListId, xApiVersion) {
|
|
201
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
202
|
-
method: 'DELETE',
|
|
203
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
|
|
204
|
-
path: {
|
|
205
|
-
'cartId': cartId,
|
|
206
|
-
'wishListId': wishListId,
|
|
207
|
-
},
|
|
208
|
-
headers: {
|
|
209
|
-
'x-api-version': xApiVersion,
|
|
210
|
-
},
|
|
211
|
-
errors: {
|
|
212
|
-
401: `Unauthorized`,
|
|
213
|
-
404: `Not Found`,
|
|
214
|
-
},
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Get all records in a wish list
|
|
219
|
-
* Get all records in a wish list
|
|
220
|
-
* @param cartId
|
|
221
|
-
* @param wishListId
|
|
222
|
-
* @param xApiVersion
|
|
223
|
-
* @returns WishListItemRecordDto OK
|
|
224
|
-
* @throws ApiError
|
|
225
|
-
*/
|
|
226
|
-
static getCartWishListItemsAsync(cartId, wishListId, xApiVersion) {
|
|
227
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
228
|
-
method: 'GET',
|
|
229
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records',
|
|
230
|
-
path: {
|
|
231
|
-
'cartId': cartId,
|
|
232
|
-
'wishListId': wishListId,
|
|
233
|
-
},
|
|
234
|
-
headers: {
|
|
235
|
-
'x-api-version': xApiVersion,
|
|
236
|
-
},
|
|
237
|
-
errors: {
|
|
238
|
-
401: `Unauthorized`,
|
|
239
|
-
404: `Not Found`,
|
|
240
|
-
},
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Add a record to a wish list
|
|
245
|
-
* Add a record to a wish list
|
|
246
|
-
* @param cartId
|
|
247
|
-
* @param wishListId
|
|
248
|
-
* @param xApiVersion
|
|
249
|
-
* @param requestBody
|
|
250
|
-
* @returns EmptyEnvelope OK
|
|
251
|
-
* @throws ApiError
|
|
252
|
-
*/
|
|
253
|
-
static addItemToWishList(cartId, wishListId, xApiVersion, requestBody) {
|
|
254
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
255
|
-
method: 'POST',
|
|
256
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records',
|
|
257
|
-
path: {
|
|
258
|
-
'cartId': cartId,
|
|
259
|
-
'wishListId': wishListId,
|
|
260
|
-
},
|
|
261
|
-
headers: {
|
|
262
|
-
'x-api-version': xApiVersion,
|
|
263
|
-
},
|
|
264
|
-
body: requestBody,
|
|
265
|
-
mediaType: 'application/json',
|
|
266
|
-
errors: {
|
|
267
|
-
401: `Unauthorized`,
|
|
268
|
-
404: `Not Found`,
|
|
269
|
-
},
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Get a record in a wish list
|
|
274
|
-
* Get a record in a wish list
|
|
275
|
-
* @param cartId
|
|
276
|
-
* @param wishListId
|
|
277
|
-
* @param recordId
|
|
278
|
-
* @param xApiVersion
|
|
279
|
-
* @returns WishListItemRecordDto OK
|
|
280
|
-
* @throws ApiError
|
|
281
|
-
*/
|
|
282
|
-
static getCartWishListItemAsync(cartId, wishListId, recordId, xApiVersion) {
|
|
283
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
284
|
-
method: 'GET',
|
|
285
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records/{recordId}',
|
|
286
|
-
path: {
|
|
287
|
-
'cartId': cartId,
|
|
288
|
-
'wishListId': wishListId,
|
|
289
|
-
'recordId': recordId,
|
|
290
|
-
},
|
|
291
|
-
headers: {
|
|
292
|
-
'x-api-version': xApiVersion,
|
|
293
|
-
},
|
|
294
|
-
errors: {
|
|
295
|
-
401: `Unauthorized`,
|
|
296
|
-
404: `Not Found`,
|
|
297
|
-
},
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Remove a record from a wish list
|
|
302
|
-
* Remove a record from a wish list
|
|
303
|
-
* @param cartId
|
|
304
|
-
* @param wishListId
|
|
305
|
-
* @param recordId
|
|
306
|
-
* @param xApiVersion
|
|
307
|
-
* @returns EmptyEnvelope OK
|
|
308
|
-
* @throws ApiError
|
|
309
|
-
*/
|
|
310
|
-
static deleteWishListRecord(cartId, wishListId, recordId, xApiVersion) {
|
|
311
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
312
|
-
method: 'DELETE',
|
|
313
|
-
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records/{recordId}',
|
|
314
|
-
path: {
|
|
315
|
-
'cartId': cartId,
|
|
316
|
-
'wishListId': wishListId,
|
|
317
|
-
'recordId': recordId,
|
|
318
|
-
},
|
|
319
|
-
headers: {
|
|
320
|
-
'x-api-version': xApiVersion,
|
|
321
|
-
},
|
|
322
|
-
errors: {
|
|
323
|
-
401: `Unauthorized`,
|
|
324
|
-
404: `Not Found`,
|
|
325
|
-
},
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
7
|
/**
|
|
329
8
|
* @param cartId
|
|
330
9
|
* @param productId
|