@ikas/storefront 0.2.0-beta.1 → 0.2.0
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/build/api/cart/__generated__/getCart.d.ts +1 -16
- package/build/index.es.js +39 -309
- package/build/index.js +39 -309
- package/build/models/data/cart/index.d.ts +0 -2
- package/build/models/data/order/line-item/index.d.ts +0 -2
- package/build/models/data/product/index.d.ts +0 -1
- package/build/models/data/product-option-set/index.d.ts +3 -18
- package/build/store/cart.d.ts +2 -4
- package/package.json +1 -1
- package/build/models/data/order/line-item/options/index.d.ts +0 -20
- package/build/models/data/order/line-item/options/options-value/index.d.ts +0 -6
- package/build/models/data/product-cart-item-options/index.d.ts +0 -6
package/build/store/cart.d.ts
CHANGED
|
@@ -18,10 +18,8 @@ export declare class IkasCartStore {
|
|
|
18
18
|
private getCart;
|
|
19
19
|
private setCart;
|
|
20
20
|
private beforeCartOperationCheck;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
addItem: (variant: IkasProductVariant, product: IkasProduct, initialQuantity?: number) => Promise<boolean>;
|
|
24
|
-
changeItemQuantity: (item: IkasOrderLineItem, quantity: number) => Promise<boolean>;
|
|
21
|
+
addItem: (variant: IkasProductVariant, product: IkasProduct, initialQuantity?: number) => Promise<void>;
|
|
22
|
+
changeItemQuantity: (item: IkasOrderLineItem, quantity: number) => Promise<void>;
|
|
25
23
|
removeItem: (item: IkasOrderLineItem) => Promise<void>;
|
|
26
24
|
removeCardIfEmpty: () => void;
|
|
27
25
|
removeCart: () => void;
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IkasOrderLineOptionsValue } from "./options-value/index";
|
|
2
|
-
declare enum ProductOptionTypeEnum {
|
|
3
|
-
CHECKBOX = "CHECKBOX",
|
|
4
|
-
CHOICE = "CHOICE",
|
|
5
|
-
COLOR_PICKER = "COLOR_PICKER",
|
|
6
|
-
DATE_PICKER = "DATE_PICKER",
|
|
7
|
-
FILE = "FILE",
|
|
8
|
-
IMAGE = "IMAGE",
|
|
9
|
-
TEXT = "TEXT",
|
|
10
|
-
TEXT_AREA = "TEXT_AREA"
|
|
11
|
-
}
|
|
12
|
-
export declare class IkasOrderLineOptions {
|
|
13
|
-
name: string;
|
|
14
|
-
productOptionId: string;
|
|
15
|
-
productOptionsSetId: string;
|
|
16
|
-
type: ProductOptionTypeEnum;
|
|
17
|
-
values: IkasOrderLineOptionsValue[];
|
|
18
|
-
constructor(data: IkasOrderLineOptions);
|
|
19
|
-
}
|
|
20
|
-
export {};
|