@debales/ai 1.1.52 → 1.1.53
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/browser/ai-browser.js +648 -648
- package/dist/module/adapter/DefaultCartAdapter.d.ts +1 -2
- package/dist/module/adapter/MagentoCartAdapter.d.ts +1 -2
- package/dist/module/adapter/ShopifyCartAdapter.d.ts +1 -2
- package/dist/module/adapter/TheCollectiveCartAdapter.d.ts +2 -2
- package/dist/module/ai.js +29152 -28763
- package/dist/module/ai.umd.js +657 -657
- package/dist/module/components/common/ProductSlider.d.ts +2 -2
- package/dist/module/lib/platformDetection.d.ts +2 -2
- package/dist/module/types/debales.d.ts +3 -3
- package/dist/module/types/index.d.ts +10 -9
- package/package.json +1 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CartItem, CartState } from '@debales/shared';
|
|
2
2
|
import { Product } from '../types';
|
|
3
3
|
import { CartOperationResult } from '../types/cart';
|
|
4
|
-
import { EcommercePlatform } from '../types/index';
|
|
5
4
|
import { BaseCartAdapter } from './BaseCartAdapter';
|
|
6
5
|
export declare class DefaultCartAdapter extends BaseCartAdapter {
|
|
7
|
-
readonly platform
|
|
6
|
+
readonly platform: "DEFAULT";
|
|
8
7
|
fetchCart(): Promise<CartOperationResult<CartState>>;
|
|
9
8
|
addToCart(variantId: string, quantity?: number, properties?: Record<string, string>): Promise<CartOperationResult<void>>;
|
|
10
9
|
removeFromCart(itemId: number): Promise<CartOperationResult<void>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CartItem, CartState } from '@debales/shared';
|
|
2
2
|
import { Product } from '../types';
|
|
3
3
|
import { CartOperationResult } from '../types/cart';
|
|
4
|
-
import { EcommercePlatform } from '../types/index';
|
|
5
4
|
import { BaseCartAdapter } from './BaseCartAdapter';
|
|
6
5
|
declare global {
|
|
7
6
|
interface Window {
|
|
@@ -12,7 +11,7 @@ declare global {
|
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
export declare class MagentoCartAdapter extends BaseCartAdapter {
|
|
15
|
-
readonly platform
|
|
14
|
+
readonly platform: "MAGENTO";
|
|
16
15
|
private readonly checkoutEndpoint;
|
|
17
16
|
private readonly baseUrl;
|
|
18
17
|
constructor();
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CartItem, CartState } from '@debales/shared';
|
|
2
2
|
import { Product } from '../types';
|
|
3
3
|
import { CartOperationResult } from '../types/cart';
|
|
4
|
-
import { EcommercePlatform } from '../types/index';
|
|
5
4
|
import { BaseCartAdapter } from './BaseCartAdapter';
|
|
6
5
|
export declare class ShopifyCartAdapter extends BaseCartAdapter {
|
|
7
|
-
readonly platform
|
|
6
|
+
readonly platform: "SHOPIFY";
|
|
8
7
|
private readonly cartEndpoint;
|
|
9
8
|
private readonly localCartKey;
|
|
10
9
|
constructor();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CartItem, CartState } from '@debales/shared';
|
|
2
2
|
import { CartOperationResult } from '../types/cart';
|
|
3
|
-
import {
|
|
3
|
+
import { Product } from '../types/index';
|
|
4
4
|
import { BaseCartAdapter } from './BaseCartAdapter';
|
|
5
5
|
export declare class TheCollectiveCartAdapter extends BaseCartAdapter {
|
|
6
|
-
readonly platform
|
|
6
|
+
readonly platform: "THE_COLLECTIVE";
|
|
7
7
|
readonly apiBaseURL: string;
|
|
8
8
|
private defaultHeaders;
|
|
9
9
|
private getCookie;
|