apirocket 0.14.0 → 0.14.1
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
CHANGED
|
@@ -40,8 +40,7 @@ interface EcommerceReadyEvent extends Event {
|
|
|
40
40
|
type PublicEcommerceService = {
|
|
41
41
|
customer: CustomerService,
|
|
42
42
|
cart: any,
|
|
43
|
-
config: (value: EcommerceConfig) => void
|
|
44
|
-
updateEvents: () => void
|
|
43
|
+
config: (value: EcommerceConfig) => void
|
|
45
44
|
}
|
|
46
45
|
```
|
|
47
46
|
|
|
@@ -51,6 +50,7 @@ type PublicEcommerceService = {
|
|
|
51
50
|
type EcommerceConfig = {
|
|
52
51
|
countryIso?: string;
|
|
53
52
|
debug?: DebugType | Array <DebugType> = '';
|
|
53
|
+
customerFilterType: '' | 'B2B' | 'B2C' = '';
|
|
54
54
|
ecommerceId: string;
|
|
55
55
|
logo?: string;
|
|
56
56
|
legalLinks?: LegalLinks;
|
|
@@ -59,6 +59,9 @@ type EcommerceConfig = {
|
|
|
59
59
|
}
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
### Eventos
|
|
63
|
+
- apirocket.ecommerce.updateEvents
|
|
64
|
+
|
|
62
65
|
### DebugType
|
|
63
66
|
|
|
64
67
|
```javascript
|
package/dist/config.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export declare const CONFIG: Config;
|
|
|
2
2
|
export declare const apiConfig: (config: Omit<EcommerceConfig, 'countryIso'>) => Promise<void>;
|
|
3
3
|
export declare const DEBUG_GRAPHQL = false;
|
|
4
4
|
export declare const isDebugType: (debug: DebugType | Array<DebugType> | undefined) => debug is DebugType;
|
|
5
|
+
export declare const isCustomerFilterType: (filter: CustomerFilterType | undefined) => filter is CustomerFilterType;
|