@liquidcommerce/elements-sdk 2.6.0-beta.3 → 2.6.0-beta.5

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.
Files changed (35) hide show
  1. package/dist/index.esm.js +10056 -10543
  2. package/dist/types/core/api/api-client.service.d.ts +9 -9
  3. package/dist/types/core/api/auth-client.service.d.ts +3 -14
  4. package/dist/types/core/client/client-action.service.d.ts +7 -4
  5. package/dist/types/core/client/client-config.service.d.ts +1 -0
  6. package/dist/types/core/command/base-command.service.d.ts +2 -2
  7. package/dist/types/core/google-tag-manager.service.d.ts +10 -10
  8. package/dist/types/core/pubsub/interfaces/address.interface.d.ts +3 -12
  9. package/dist/types/core/pubsub/interfaces/product.interface.d.ts +3 -9
  10. package/dist/types/core/store/interfaces/address.interface.d.ts +3 -12
  11. package/dist/types/core/store/interfaces/cart.interface.d.ts +3 -2
  12. package/dist/types/core/store/interfaces/core.interface.d.ts +2 -2
  13. package/dist/types/core/store/interfaces/product.interface.d.ts +12 -66
  14. package/dist/types/core/store/store.constant.d.ts +1 -1
  15. package/dist/types/core/telemetry/telemetry.interface.d.ts +0 -1
  16. package/dist/types/interfaces/api/address.interface.d.ts +28 -0
  17. package/dist/types/interfaces/api/product.interface.d.ts +106 -0
  18. package/dist/types/interfaces/cloud/cart.interface.d.ts +4 -4
  19. package/dist/types/interfaces/cloud/catalog.interface.d.ts +3 -3
  20. package/dist/types/interfaces/cloud/checkout.interface.d.ts +5 -8
  21. package/dist/types/interfaces/cloud/index.d.ts +0 -2
  22. package/dist/types/interfaces/cloud/retailer.interface.d.ts +2 -2
  23. package/dist/types/interfaces/configs/configurations.interface.d.ts +5 -5
  24. package/dist/types/modules/address/address.command.d.ts +2 -3
  25. package/dist/types/modules/address/address.interface.d.ts +0 -7
  26. package/dist/types/modules/product/components/components.d.ts +2 -4
  27. package/dist/types/modules/product/product.commands.d.ts +2 -2
  28. package/dist/types/modules/product-list/components/product-list-card.component.d.ts +2 -1
  29. package/dist/types/modules/product-list/product-list.commands.d.ts +2 -1
  30. package/package.json +2 -3
  31. package/umd/elements.js +1 -1
  32. package/dist/types/interfaces/cloud/address.interface.d.ts +0 -36
  33. package/dist/types/interfaces/cloud/product.interface.d.ts +0 -158
  34. package/dist/types/modules/product/utils/helpers.d.ts +0 -3
  35. package/dist/types/modules/product/utils/retailer-hours.d.ts +0 -9
@@ -1,36 +0,0 @@
1
- import type { ICoreParams } from './core.interface';
2
- export interface IAddress {
3
- id?: string;
4
- one: string;
5
- two: string;
6
- city: string;
7
- state: string;
8
- zip: string;
9
- country?: string;
10
- }
11
- export interface ICoords {
12
- lat: number;
13
- long: number;
14
- }
15
- export interface ILoc {
16
- address?: IAddress;
17
- coords?: ICoords;
18
- }
19
- export interface ILocBase extends ICoreParams {
20
- loc?: ILoc;
21
- }
22
- export interface IAddressAutocompleteParams extends ICoreParams {
23
- input: string;
24
- }
25
- export interface IAddressAutocompleteResult {
26
- id: string;
27
- description: string;
28
- }
29
- export interface IAddressDetailsParams extends ICoreParams {
30
- id: string;
31
- }
32
- export interface IAddressDetailsResult {
33
- formattedAddress: string;
34
- coords: ICoords;
35
- address: Omit<IAddress, 'id'>;
36
- }
@@ -1,158 +0,0 @@
1
- import type { FulfillmentType } from '@/enums';
2
- import type { ILocBase } from './address.interface';
3
- import type { IRetailer } from './retailer.interface';
4
- export interface IAvailabilityParams extends ILocBase {
5
- upcs?: string[];
6
- grouping?: string[];
7
- ids?: string[];
8
- shouldShowOffHours?: boolean;
9
- }
10
- export interface IAvailabilityResponse {
11
- products: IProduct[];
12
- retailers: IRetailer[];
13
- }
14
- export interface IAttributesImage {
15
- backOfBottle: string;
16
- frontOfBottle: string;
17
- lifestyle: string[];
18
- }
19
- export interface IAttributesAward {
20
- image: string;
21
- statement: string;
22
- title: string;
23
- }
24
- export interface IAttributesRecipeIngredient {
25
- name: string;
26
- amount: string;
27
- }
28
- export interface IAttributesRecipe {
29
- image: string;
30
- ingredients: IAttributesRecipeIngredient[];
31
- steps: string[];
32
- title: string;
33
- }
34
- export interface IAttributesVideo {
35
- link: string;
36
- image: string;
37
- title: string;
38
- }
39
- export interface IAttributesTastingNote {
40
- statement: string;
41
- image: string;
42
- title: string;
43
- }
44
- export interface IAttributesPersonalization {
45
- type: string;
46
- engravingMaxLines: number;
47
- engravingMaxCharsPerLine: number;
48
- location: string[];
49
- width: number;
50
- height: number;
51
- image: string;
52
- fee: number;
53
- availableFrom: Date;
54
- availableTo: Date;
55
- }
56
- export interface IAttributes {
57
- brandOrigin: string;
58
- originStatement: string;
59
- ownershipType: string[];
60
- tags: string[];
61
- images: IAttributesImage;
62
- awards: IAttributesAward[];
63
- recipes: IAttributesRecipe[];
64
- video: IAttributesVideo[];
65
- tastingNotes: IAttributesTastingNote[];
66
- personalizations: IAttributesPersonalization[];
67
- }
68
- export interface IProductFulfillmentTypes {
69
- shipping: string;
70
- onDemand: string;
71
- }
72
- export interface IProductVariant {
73
- partNumber: string;
74
- retailerId: string;
75
- price: number;
76
- modalities?: FulfillmentType[];
77
- salePrice: number;
78
- isEngravable: boolean;
79
- stock: number;
80
- fulfillments: string[];
81
- fulfillmentTypes: IProductFulfillmentTypes;
82
- }
83
- export interface IProductSizeEngraving {
84
- status: boolean;
85
- validated?: boolean;
86
- maxLines: number;
87
- maxCharsPerLine: number;
88
- fee: number;
89
- location: string;
90
- }
91
- export interface IProductSizeAttributes {
92
- engraving?: IProductSizeEngraving;
93
- presale?: IProductPresale;
94
- maxQuantityPerOrder?: number;
95
- }
96
- export interface IProductSize {
97
- id: string;
98
- salsifyPid?: string;
99
- upc: string;
100
- size: string;
101
- volume: string;
102
- uom: string;
103
- image: string;
104
- pack: boolean;
105
- packDesc: string;
106
- container: string;
107
- maxQuantityPerOrder: number;
108
- containerType: string;
109
- attributes: IProductSizeAttributes;
110
- variants: IProductVariant[];
111
- }
112
- export interface IProductPriceInfo {
113
- currency: string;
114
- minimum: number;
115
- average: number;
116
- maximum: number;
117
- }
118
- export interface IProduct {
119
- id?: string;
120
- name: string;
121
- brand: string;
122
- catPath: string;
123
- category: string;
124
- classification: string;
125
- type: string;
126
- salsifyGrouping: string;
127
- subType: string;
128
- region: string;
129
- country: string;
130
- material: string;
131
- abv: string;
132
- proof: string;
133
- age: string;
134
- color: string;
135
- flavor: string;
136
- variety: string;
137
- appellation: string;
138
- vintage: string;
139
- description: string;
140
- htmlDescription: string;
141
- tastingNotes: string;
142
- images: string[];
143
- sizes: IProductSize[];
144
- attributes?: Partial<IAttributes>;
145
- priceInfo: IProductPriceInfo | null;
146
- }
147
- export interface IProductData {
148
- products: IProduct[];
149
- retailers: IRetailer[];
150
- }
151
- export interface IProductPresale {
152
- canPurchaseOn: null | string;
153
- estimatedShipBy: null | string;
154
- isActive: boolean;
155
- language: string;
156
- presaleLimit: number;
157
- price: number;
158
- }
@@ -1,3 +0,0 @@
1
- import type { IProductFulfillmentStore } from '@/core/store/interfaces/product.interface';
2
- import { type FulfillmentType } from '@/enums';
3
- export declare function fulfillmentAddress(address: IProductFulfillmentStore['retailerAddress'], selectedFulfillmentType: FulfillmentType): string;
@@ -1,9 +0,0 @@
1
- import type { IProductFulfillmentStore } from '@/core/store/interfaces/product.interface';
2
- export interface RetailerStatus {
3
- message: string | null;
4
- isOpen: boolean;
5
- openTime?: string;
6
- closeTime?: string;
7
- isClosed: boolean;
8
- }
9
- export declare function getRetailerOffHours(fulfillment: IProductFulfillmentStore): RetailerStatus;