@liquidcommerce/elements-sdk 2.2.0-beta.13 → 2.2.0-beta.15

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.
@@ -113,5 +113,105 @@ export declare class GoogleTagManagerService {
113
113
  giftCardFailed(code: string, reason?: string): void;
114
114
  increaseQuantity(item: BaseItem): void;
115
115
  decreaseQuantity(item: BaseItem): void;
116
+ addressUpdated(addressData: {
117
+ googlePlacesId: string;
118
+ formattedAddress: string;
119
+ address: {
120
+ one?: string;
121
+ two?: string;
122
+ city?: string;
123
+ state?: string;
124
+ zip?: string;
125
+ country?: string;
126
+ };
127
+ coordinates?: {
128
+ lat: number;
129
+ long: number;
130
+ };
131
+ }): void;
132
+ addressFailed(errorData: {
133
+ googlePlacesId?: string;
134
+ formattedAddress?: string;
135
+ address?: {
136
+ one?: string;
137
+ two?: string;
138
+ city?: string;
139
+ state?: string;
140
+ zip?: string;
141
+ country?: string;
142
+ };
143
+ error: string;
144
+ }): void;
145
+ productNoAvailability(productData: {
146
+ productId: string;
147
+ productName: string;
148
+ productBrand?: string;
149
+ productCategory?: string;
150
+ productCategory2?: string;
151
+ productCategory3?: string;
152
+ productType?: string;
153
+ productSubtype?: string;
154
+ productPrice?: number;
155
+ upc?: string;
156
+ groupingId?: string;
157
+ address?: {
158
+ one?: string;
159
+ two?: string;
160
+ city?: string;
161
+ state?: string;
162
+ zip?: string;
163
+ country?: string;
164
+ };
165
+ reason: string;
166
+ }): void;
167
+ productSizeNoAvailability(productData: {
168
+ productId: string;
169
+ productName: string;
170
+ productBrand?: string;
171
+ productCategory?: string;
172
+ productCategory2?: string;
173
+ productCategory3?: string;
174
+ productType?: string;
175
+ productSubtype?: string;
176
+ productPrice?: number;
177
+ sizeId: string;
178
+ sizeName?: string;
179
+ upc?: string;
180
+ groupingId?: string;
181
+ address?: {
182
+ one?: string;
183
+ two?: string;
184
+ city?: string;
185
+ state?: string;
186
+ zip?: string;
187
+ country?: string;
188
+ };
189
+ reason: string;
190
+ }): void;
191
+ productFulfillmentNoAvailability(productData: {
192
+ productId: string;
193
+ productName: string;
194
+ productBrand?: string;
195
+ productCategory?: string;
196
+ productCategory2?: string;
197
+ productCategory3?: string;
198
+ productType?: string;
199
+ productSubtype?: string;
200
+ productPrice?: number;
201
+ sizeId?: string;
202
+ sizeName?: string;
203
+ fulfillmentType: string;
204
+ upc?: string;
205
+ groupingId?: string;
206
+ address?: {
207
+ one?: string;
208
+ two?: string;
209
+ city?: string;
210
+ state?: string;
211
+ zip?: string;
212
+ country?: string;
213
+ };
214
+ reason: string;
215
+ }): void;
116
216
  }
117
217
  export {};
@@ -75,7 +75,6 @@ export interface IRetailerStore {
75
75
  export interface ICartPromoCodeStore {
76
76
  code: string;
77
77
  discountAmount: number;
78
- error: string | null;
79
78
  }
80
79
  export interface ICartStore {
81
80
  id: string | null;
@@ -20,6 +20,7 @@ export declare class TelemetryService {
20
20
  private flushQueue;
21
21
  private createBatch;
22
22
  private sendBatch;
23
+ private sendBatchViaXHR;
23
24
  private truncateStackTrace;
24
25
  private handleInternalError;
25
26
  private shutdown;
@@ -23,7 +23,6 @@ export declare class CartCommands extends BaseCommand {
23
23
  handleGoToCheckout(): Promise<void>;
24
24
  applyPromoCode(promoCode: string): Promise<void>;
25
25
  removePromoCode(): Promise<void>;
26
- clearPromoCodeError(): Promise<void>;
27
26
  rerenderCart(): void;
28
27
  resetCart(): Promise<void>;
29
28
  getDetails(): IBaseCartEventData;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "LiquidCommerce Elements SDK",
4
4
  "license": "UNLICENSED",
5
5
  "author": "LiquidCommerce Team",
6
- "version": "2.2.0-beta.13",
6
+ "version": "2.2.0-beta.15",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",