apirocket 0.16.9 → 0.16.11
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/README.md +4 -0
- package/dist/ecommerce.js +2 -2
- package/dist/lib/utils.d.ts +4 -3
- package/dist/services/customer.service.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,7 @@ type PublicEcommerceService = {
|
|
|
50
50
|
type EcommerceConfig = {
|
|
51
51
|
countryIso?: string;
|
|
52
52
|
debug?: DebugType | Array <DebugType> = '';
|
|
53
|
+
defaultPriceListId?: number;
|
|
53
54
|
customerFilterType: '' | 'B2B' | 'B2C' = '';
|
|
54
55
|
ecommerceId: string;
|
|
55
56
|
logo?: string;
|
|
@@ -101,6 +102,8 @@ interface ReadOnly <CustomerService> {
|
|
|
101
102
|
createBillingAddress: (input: Omit <BillingAddress, 'id'>) => Promise <BillingAddress>;
|
|
102
103
|
createShippingAddress: (input: Omit <ShippingAddress, 'id'>) => Promise <ShippingAddress>;
|
|
103
104
|
deleteShippingAddress: (id: number) => Promise <boolean>;
|
|
105
|
+
login: (email: string, password: string) => customer.login (email, password);
|
|
106
|
+
logout: () => customer.logout ();
|
|
104
107
|
myAccount: () => Promise <CustomerAccount>;
|
|
105
108
|
price: (productId: number) => Promise <ProductPrice>;
|
|
106
109
|
orders: (filter: OrdersFilter = {}) => Promise <Array <Order>>;
|
|
@@ -145,6 +148,7 @@ interface ReadOnly <CartService> {
|
|
|
145
148
|
|
|
146
149
|
```javascript
|
|
147
150
|
type CartAddItem = {
|
|
151
|
+
customPayload?: any;
|
|
148
152
|
id: number;
|
|
149
153
|
description?: string;
|
|
150
154
|
image?: string;
|