@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.
@@ -18,10 +18,8 @@ export declare class IkasCartStore {
18
18
  private getCart;
19
19
  private setCart;
20
20
  private beforeCartOperationCheck;
21
- private findExistingItem;
22
- private createCartLineOptions;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",
@@ -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 {};
@@ -1,6 +0,0 @@
1
- export declare class IkasOrderLineOptionsValue {
2
- name: string | null;
3
- price: number | null;
4
- value: string;
5
- constructor(data: IkasOrderLineOptionsValue);
6
- }
@@ -1,6 +0,0 @@
1
- export declare class IkasProductCartLineOption {
2
- productOptionId: string;
3
- productOptionsSetId: string;
4
- values: string[];
5
- constructor(data?: Partial<IkasProductCartLineOption>);
6
- }