apirocket 0.9.7 → 0.10.0
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/dist/config.d.ts +1 -1
- package/dist/ecommerce.js +2 -2
- package/dist/lib/api.d.ts +2 -2
- package/dist/lib/utils.d.ts +2 -1
- package/dist/services/cart.service.d.ts +4 -2
- package/dist/services/checkout.service.d.ts +1 -0
- package/dist/services/ecommerce.service.d.ts +1 -1
- package/package.json +1 -1
package/dist/lib/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import type { CustomerService } from '@src/services/customer.service';
|
|
3
|
-
|
|
4
|
-
export { geolocation, states, ID_ESPANA };
|
|
3
|
+
export { geolocation, getCountryId, states, };
|
|
5
4
|
declare const geolocation: () => Observable<any>;
|
|
6
5
|
declare const states: (countryId: number, customer: CustomerService) => Observable<Array<StateType>>;
|
|
6
|
+
declare const getCountryId: (countryIso: string) => Promise<number>;
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { account, asFloat, asInteger, backToShopping, buildQuery, cart, checkout, createAccount, dataset, euroPrice, euros, isBoolean, isNumber, isString, millares, orderError, orderSummary, price, rememberPassword, round, signIn, storageAvailable };
|
|
1
|
+
export { account, asFloat, asInteger, backToShopping, buildQuery, cart, checkout, clearHtml, createAccount, dataset, euroPrice, euros, isBoolean, isNumber, isString, millares, orderError, orderSummary, price, rememberPassword, round, signIn, storageAvailable };
|
|
2
2
|
declare const buildQuery: (data: {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}) => string;
|
|
@@ -23,3 +23,4 @@ declare const rememberPassword: () => void;
|
|
|
23
23
|
declare const orderError: () => void;
|
|
24
24
|
declare const orderSummary: () => void;
|
|
25
25
|
declare const account: () => void;
|
|
26
|
+
declare const clearHtml: (cadena: string) => string;
|
|
@@ -6,6 +6,7 @@ export declare class CartService {
|
|
|
6
6
|
#private;
|
|
7
7
|
readonly change$: Observable<CartService>;
|
|
8
8
|
get count(): number;
|
|
9
|
+
get countryId(): number;
|
|
9
10
|
get items(): Array<CartItem>;
|
|
10
11
|
get lastOrder(): LastOrder;
|
|
11
12
|
get numItems(): number;
|
|
@@ -20,7 +21,7 @@ export declare class CartService {
|
|
|
20
21
|
private getItems;
|
|
21
22
|
private restoreStorage;
|
|
22
23
|
private saveStorage;
|
|
23
|
-
|
|
24
|
+
setServices(customer: CustomerService, checkout: CheckoutService): void;
|
|
24
25
|
subscribe(cb: (cart: CartService) => void): () => void;
|
|
25
26
|
private changeCart;
|
|
26
27
|
add(data: CartItem): void;
|
|
@@ -34,8 +35,9 @@ export declare class CartService {
|
|
|
34
35
|
clear(): void;
|
|
35
36
|
private updateCart;
|
|
36
37
|
cartToOrder(checkoutService: CheckoutService, customer: CustomerService): Observable<PaymentInfo>;
|
|
37
|
-
private addItemCart;
|
|
38
38
|
removeItem(item: CartItem): void;
|
|
39
39
|
updateItem(item: CartItem, quantity: number): void;
|
|
40
|
+
private addItemCart;
|
|
41
|
+
setCountryId(countryId: number): void;
|
|
40
42
|
update(): void;
|
|
41
43
|
}
|
|
@@ -21,6 +21,7 @@ export declare class CheckoutService {
|
|
|
21
21
|
get steps(): Set<CheckoutStatus>;
|
|
22
22
|
get taxAmount(): number;
|
|
23
23
|
get total(): number;
|
|
24
|
+
private getShippingAddress;
|
|
24
25
|
constructor(cartService: CartService, customer: CustomerService);
|
|
25
26
|
private saveStorage;
|
|
26
27
|
setStatus(newStatus: CheckoutStatus): void;
|