@liquidcommerce/elements-sdk 2.6.0-beta.5 → 2.6.0-beta.7
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/index.esm.js +9846 -10432
- package/dist/types/core/api/api-client.service.d.ts +3 -4
- package/dist/types/core/command/common-command.service.d.ts +1 -1
- package/dist/types/core/google-tag-manager.service.d.ts +2 -0
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +2 -14
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +2 -1
- package/dist/types/core/pubsub/interfaces/product.interface.d.ts +0 -1
- package/dist/types/core/store/interfaces/cart.interface.d.ts +16 -55
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +2 -2
- package/dist/types/core/store/interfaces/core.interface.d.ts +3 -2
- package/dist/types/enums/cloud.enum.d.ts +3 -300
- package/dist/types/interfaces/api/cart.interface.d.ts +91 -0
- package/dist/types/interfaces/cloud/catalog.interface.d.ts +2 -3
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +9 -2
- package/dist/types/interfaces/cloud/index.d.ts +0 -1
- package/dist/types/modules/cart/cart.commands.d.ts +0 -1
- package/dist/types/modules/cart/cart.commands.helper.d.ts +1 -6
- package/dist/types/modules/cart/components/cart-footer.component.d.ts +0 -1
- package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +0 -2
- package/dist/types/modules/product-list/components/product-list-card.component.d.ts +3 -3
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +1 -1
- package/dist/types/modules/product-list/product-list.component.d.ts +2 -3
- package/dist/types/modules/product-list/product-list.interface.d.ts +2 -2
- package/dist/types/modules/ui-components/purchase-min-alert/index.d.ts +0 -1
- package/dist/types/utils/helper.d.ts +2 -1
- package/package.json +3 -3
- package/umd/elements.js +1 -1
- package/dist/types/interfaces/cloud/cart.interface.d.ts +0 -132
- package/dist/types/modules/ui-components/purchase-min-alert/helpers.d.ts +0 -7
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import type { CartEventEnum } from '@/enums';
|
|
2
|
-
import type { ILocation } from '@/interfaces/api/address.interface';
|
|
3
|
-
import type { IProduct, IProductPresale } from '@/interfaces/api/product.interface';
|
|
4
|
-
import type { IRetailer } from './retailer.interface';
|
|
5
|
-
export interface ICartItemEngraving {
|
|
6
|
-
isEngravable: boolean;
|
|
7
|
-
hasEngraving: boolean;
|
|
8
|
-
fee: number;
|
|
9
|
-
maxCharsPerLine: number;
|
|
10
|
-
maxLines: number;
|
|
11
|
-
location: string;
|
|
12
|
-
lines: string[];
|
|
13
|
-
}
|
|
14
|
-
export interface ICartItemGiftCart {
|
|
15
|
-
sender: string;
|
|
16
|
-
message: string;
|
|
17
|
-
recipients: string[];
|
|
18
|
-
sendDate: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ICartItemAttributes {
|
|
21
|
-
engraving: ICartItemEngraving;
|
|
22
|
-
presale: IProductPresale;
|
|
23
|
-
giftCard: ICartItemGiftCart;
|
|
24
|
-
}
|
|
25
|
-
export interface ICartItem extends Partial<Omit<IProduct, 'attributes'>> {
|
|
26
|
-
id: string;
|
|
27
|
-
retailerId: string;
|
|
28
|
-
fulfillmentId: string;
|
|
29
|
-
variantId: string;
|
|
30
|
-
liquidId: string;
|
|
31
|
-
salsifyGrouping: string;
|
|
32
|
-
salsifyPid?: string;
|
|
33
|
-
partNumber: string;
|
|
34
|
-
upc: string;
|
|
35
|
-
sku: string;
|
|
36
|
-
name: string;
|
|
37
|
-
brand: string;
|
|
38
|
-
size: string;
|
|
39
|
-
volume: string;
|
|
40
|
-
uom: string;
|
|
41
|
-
abv: string;
|
|
42
|
-
proof: string;
|
|
43
|
-
catPath: string;
|
|
44
|
-
pack: boolean;
|
|
45
|
-
packDesc: string;
|
|
46
|
-
container: string;
|
|
47
|
-
containerType: string;
|
|
48
|
-
quantity: number;
|
|
49
|
-
maxQuantity: number;
|
|
50
|
-
unitPrice: number;
|
|
51
|
-
price: number;
|
|
52
|
-
scheduledFor: string | Date;
|
|
53
|
-
availableAt: string | Date;
|
|
54
|
-
images: string[];
|
|
55
|
-
mainImage: string;
|
|
56
|
-
attributes: ICartItemAttributes;
|
|
57
|
-
}
|
|
58
|
-
export interface ICartAttributesPromoCode {
|
|
59
|
-
value: string;
|
|
60
|
-
discount: number;
|
|
61
|
-
freeDelivery: boolean;
|
|
62
|
-
freeServiceFee: boolean;
|
|
63
|
-
freeShipping: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface ICartAttributesAmountsFees {
|
|
66
|
-
shipping: number;
|
|
67
|
-
onDemand: number;
|
|
68
|
-
}
|
|
69
|
-
export interface ICartAttributesAmountsDiscounts {
|
|
70
|
-
shipping: number;
|
|
71
|
-
onDemand: number;
|
|
72
|
-
engraving: number;
|
|
73
|
-
service: number;
|
|
74
|
-
products: number;
|
|
75
|
-
}
|
|
76
|
-
export interface ICartAttributesAmounts {
|
|
77
|
-
fees: ICartAttributesAmountsFees;
|
|
78
|
-
discounts: ICartAttributesAmountsDiscounts;
|
|
79
|
-
}
|
|
80
|
-
export interface ICartAttributes {
|
|
81
|
-
promoCode: ICartAttributesPromoCode;
|
|
82
|
-
amounts: ICartAttributesAmounts;
|
|
83
|
-
}
|
|
84
|
-
export interface ICartRetailer extends IRetailer {
|
|
85
|
-
platformFee: number;
|
|
86
|
-
engravingFee: number;
|
|
87
|
-
deliveryFee: number;
|
|
88
|
-
shippingFee: number;
|
|
89
|
-
subtotal: number;
|
|
90
|
-
total: number;
|
|
91
|
-
}
|
|
92
|
-
export interface ICartEvent {
|
|
93
|
-
type: CartEventEnum;
|
|
94
|
-
message: string;
|
|
95
|
-
items?: Array<Partial<ICartItem>>;
|
|
96
|
-
}
|
|
97
|
-
export interface ICart {
|
|
98
|
-
id: string;
|
|
99
|
-
quantity: number;
|
|
100
|
-
platformFee: number;
|
|
101
|
-
deliveryFee: number;
|
|
102
|
-
engravingFee: number;
|
|
103
|
-
shippingFee: number;
|
|
104
|
-
discounts: number;
|
|
105
|
-
giftCardTotal: number;
|
|
106
|
-
subtotal: number;
|
|
107
|
-
total: number;
|
|
108
|
-
isPresaleLocked: boolean;
|
|
109
|
-
presaleExpiresAt: string | null;
|
|
110
|
-
createdAt: string | Date;
|
|
111
|
-
updatedAt: string | Date;
|
|
112
|
-
items: ICartItem[];
|
|
113
|
-
loc: ILocation;
|
|
114
|
-
retailers: ICartRetailer[];
|
|
115
|
-
attributes: ICartAttributes;
|
|
116
|
-
events: ICartEvent[];
|
|
117
|
-
}
|
|
118
|
-
export interface ICartUpdateItem {
|
|
119
|
-
id?: string;
|
|
120
|
-
upc?: string;
|
|
121
|
-
partNumber: string;
|
|
122
|
-
sku?: string;
|
|
123
|
-
quantity: number;
|
|
124
|
-
fulfillmentId: string;
|
|
125
|
-
engravingLines?: string[];
|
|
126
|
-
scheduledFor?: string | Date;
|
|
127
|
-
}
|
|
128
|
-
export interface ICartUpdateParams {
|
|
129
|
-
id: string;
|
|
130
|
-
items: ICartUpdateItem[];
|
|
131
|
-
promoCode?: string;
|
|
132
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { IRetailerFulfillmentStore } from '@/core/store/interfaces/cart.interface';
|
|
2
|
-
export declare const shouldShowMinimumPurchaseAlert: (fulfillment: IRetailerFulfillmentStore | undefined, isPack?: boolean) => boolean;
|
|
3
|
-
export declare const getMinimumPurchaseMessage: (fulfillment: IRetailerFulfillmentStore | undefined, isPack?: boolean) => {
|
|
4
|
-
message: string;
|
|
5
|
-
type: "warning" | "info";
|
|
6
|
-
};
|
|
7
|
-
export declare const hasUnmetMinimum: (fulfillment: IRetailerFulfillmentStore | undefined, isPack?: boolean) => boolean;
|