apirocket 0.9.2 → 0.9.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/dist/components/notifications/notifications.service.d.ts +1 -1
- package/dist/components/notifications/notifications.types.d.ts +1 -0
- package/dist/ecommerce.css +160 -1
- package/dist/ecommerce.js +2 -3
- package/dist/lib/api.d.ts +1 -2
- package/dist/lib/utils.d.ts +2 -1
- package/dist/services/account.service.d.ts +9 -2
- package/dist/services/customer.service.d.ts +1 -0
- package/dist/types/checkout.type.d.ts +9 -0
- package/dist/types/ecommerce.type.d.ts +2 -0
- package/dist/types/types.d.ts +6 -0
- package/package.json +2 -2
- package/dist/types/account.type.d.ts +0 -6
package/dist/lib/api.d.ts
CHANGED
|
@@ -2,11 +2,10 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import type { CartType, InputCartRemoveItem, InputCartUpdate, InputCartUpdateItem, OrderType } from '@src/types/types';
|
|
3
3
|
import type { CustomerService } from '@src/services/customer.service';
|
|
4
4
|
declare const ID_ESPANA = 199;
|
|
5
|
-
export { cartRemoveItem, cartUpdate, cartUpdateItem, geolocation, orderSummary,
|
|
5
|
+
export { cartRemoveItem, cartUpdate, cartUpdateItem, geolocation, orderSummary, states, ID_ESPANA };
|
|
6
6
|
declare const cartRemoveItem: (input: InputCartRemoveItem, customer: CustomerService) => Observable<CartType>;
|
|
7
7
|
declare const cartUpdate: (input: InputCartUpdate, customer: CustomerService) => Observable<CartType>;
|
|
8
8
|
declare const cartUpdateItem: (input: InputCartUpdateItem, customer: CustomerService) => Observable<CartType>;
|
|
9
9
|
declare const orderSummary: (id: number, hash: string, customer: CustomerService) => Observable<OrderType>;
|
|
10
|
-
declare const paymentMethods: (customer: CustomerService) => Observable<Array<PaymentMethodOption>>;
|
|
11
10
|
declare const geolocation: () => Observable<any>;
|
|
12
11
|
declare const states: (countryId: number, customer: CustomerService) => Observable<Array<StateType>>;
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { account, asFloat, asInteger, backToShopping, buildQuery, cart, checkout, dataset, euroPrice, euros, isBoolean, isNumber, isString, millares, orderError, orderSummary, price, rememberPassword, round, signIn, storageAvailable };
|
|
1
|
+
export { account, asFloat, asInteger, backToShopping, buildQuery, cart, checkout, 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;
|
|
@@ -16,6 +16,7 @@ declare const round: (num: number, precision: number) => number;
|
|
|
16
16
|
declare const storageAvailable: (type: "sessionStorage" | "localStorage") => boolean;
|
|
17
17
|
declare const backToShopping: () => void;
|
|
18
18
|
declare const cart: (fullScreen?: boolean) => void;
|
|
19
|
+
declare const createAccount: () => void;
|
|
19
20
|
declare const signIn: () => void;
|
|
20
21
|
declare const checkout: () => void;
|
|
21
22
|
declare const rememberPassword: () => void;
|
|
@@ -2,12 +2,19 @@ import { Observable } from "rxjs";
|
|
|
2
2
|
import { type FormControl } from "@e-xisto/form-control";
|
|
3
3
|
import type { CustomerService } from "./customer.service";
|
|
4
4
|
import type { ShippingAddress } from "@src/models/shipping-address.model";
|
|
5
|
+
import type { EcommerceService } from "./ecommerce.service";
|
|
5
6
|
export declare class AccountService {
|
|
6
7
|
#private;
|
|
7
8
|
get myAccount$(): Observable<CustomerAccount>;
|
|
9
|
+
get myOrders$(): Observable<CustomerOrders>;
|
|
8
10
|
constructor();
|
|
11
|
+
private initMyAccountData;
|
|
12
|
+
private myAccountData;
|
|
13
|
+
passwordForm(formElement: HTMLFormElement, canChange: (canChange: boolean) => void): FormControl;
|
|
14
|
+
personalForm(formElement: HTMLFormElement, ecommerceService: EcommerceService, canUpdate: (canUpdate: boolean) => void): FormControl;
|
|
9
15
|
setCustomerService(customer: CustomerService): void;
|
|
16
|
+
updateMyAccount(form: FormControl, customer: CustomerService): Observable<void>;
|
|
10
17
|
updateShippingAddress(shippingAddress: ShippingAddress): void;
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
private myOrderData;
|
|
19
|
+
passwordChange(form: FormControl, customer: CustomerService): Observable<void>;
|
|
13
20
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export declare const EMPTY_PAYMENTMETHOD: PaymentMethod;
|
|
2
|
+
export declare const EMPTY_SHIPPINGMETHOD: {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
taxBase: number;
|
|
6
|
+
taxAmount: number;
|
|
7
|
+
total: number;
|
|
8
|
+
paymentMethods: never[];
|
|
9
|
+
};
|
|
1
10
|
export declare enum CheckoutStatus {
|
|
2
11
|
INFO = "info",
|
|
3
12
|
SHIPPING = "shipping",
|
|
@@ -2,9 +2,11 @@ import type { InputControl } from "@e-xisto/form-control";
|
|
|
2
2
|
import type { PublicEcommerceService } from "./types";
|
|
3
3
|
export declare enum EcommerceStatus {
|
|
4
4
|
ACCOUNT = "#/my-account",
|
|
5
|
+
ACTIVATE_ACCOUNT = "#/activate-account",
|
|
5
6
|
CART = "#/cart",
|
|
6
7
|
CARTLEFT = "#/cart-left",
|
|
7
8
|
CHECKOUT = "#/checkout",
|
|
9
|
+
CREATE_ACCOUNT = "#/create-account",
|
|
8
10
|
NONE = "",
|
|
9
11
|
SIGNIN = "#/signin",
|
|
10
12
|
ORDER_SUMMARY = "#/order-summary",
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apirocket",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": " ",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typescript": "^4.9.5"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@e-xisto/form-control": "0.1.
|
|
40
|
+
"@e-xisto/form-control": "0.1.17",
|
|
41
41
|
"@paypal/paypal-js": "^8.0.2",
|
|
42
42
|
"dompurify": "^3.0.1",
|
|
43
43
|
"rxjs": "^7.8.0"
|