apirocket 0.18.2 → 0.18.4
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 +23 -0
- package/dist/ecommerce.js +2 -2
- package/dist/services/api.service.d.ts +1 -1
- package/dist/types/ecommerce.type.d.ts +8 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export { countries, geolocation, getCountry, getEcommerce, getPayment, postAuth,
|
|
|
3
3
|
declare const countries: (customer: CustomerService) => Promise<Array<Country>>;
|
|
4
4
|
declare const geolocation: () => Promise<any>;
|
|
5
5
|
declare const getCountry: (countryIso: string) => Promise<Country>;
|
|
6
|
-
declare const getEcommerce: <T>(url: string, inputData: any, customer: CustomerService | undefined) => Promise<{
|
|
6
|
+
declare const getEcommerce: <T>(url: string, inputData: any, customer: CustomerService | undefined, cache: RequestCache) => Promise<{
|
|
7
7
|
__errors: any;
|
|
8
8
|
} & T>;
|
|
9
9
|
declare const getPayment: <T>(url: string, inputData: any, customer?: CustomerService) => Promise<{
|
|
@@ -20,6 +20,14 @@ export declare enum EcommerceStatus {
|
|
|
20
20
|
SALES_REMEMBER_PASSWORD = "#/sales-remember-password",
|
|
21
21
|
SALES_RESET_PASSWORD = "#/sales-reset-password"
|
|
22
22
|
}
|
|
23
|
+
export declare class CustomerLoginEvent extends Event {
|
|
24
|
+
readonly login: {
|
|
25
|
+
token?: string;
|
|
26
|
+
};
|
|
27
|
+
constructor(type: string, login: {
|
|
28
|
+
token?: string;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
23
31
|
export declare class EcommerceReadyEvent extends Event {
|
|
24
32
|
readonly ecommerce: PublicEcommerceService;
|
|
25
33
|
constructor(type: string, ecommerce: PublicEcommerceService);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.18.
|
|
1
|
+
export declare const VERSION = "0.18.4";
|