@ikas/storefront 0.1.12 → 0.1.14

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/build/__generated__/global-types.d.ts +1 -0
  2. package/build/api/cart/__generated__/getCart.d.ts +2 -2
  3. package/build/api/cart/__generated__/saveItemToCart.d.ts +2 -2
  4. package/build/api/checkout/__generated__/getCheckoutById.d.ts +10 -2
  5. package/build/api/checkout/__generated__/getOrder.d.ts +2 -2
  6. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +2 -2
  7. package/build/api/customer/__generated__/getCustomerOrders.d.ts +2 -2
  8. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +2 -0
  9. package/build/components/checkout/components/{cart-summary → svg}/arrow-down.d.ts +0 -0
  10. package/build/components/checkout/components/{arrow-left.d.ts → svg/arrow-left.d.ts} +0 -0
  11. package/build/components/checkout/components/{cart-summary → svg}/arrow-right.d.ts +0 -0
  12. package/build/components/checkout/components/{cart-summary → svg}/cross.d.ts +0 -0
  13. package/build/components/checkout/components/{cross.d.ts → svg/discount.d.ts} +2 -2
  14. package/build/components/checkout/components/{external.d.ts → svg/external.d.ts} +0 -0
  15. package/build/components/checkout/components/{cart-summary → svg}/gift.d.ts +0 -0
  16. package/build/components/checkout/components/{ikas.d.ts → svg/ikas.d.ts} +0 -0
  17. package/build/components/checkout/components/{lock.d.ts → svg/lock.d.ts} +0 -0
  18. package/build/components/checkout/components/{cart-summary → svg}/shopping-cart.d.ts +0 -0
  19. package/build/components/checkout/components/{success-circle.d.ts → svg/success-circle.d.ts} +0 -0
  20. package/build/components/checkout/components/{cart-summary → svg}/tag.d.ts +0 -0
  21. package/build/components/checkout/components/{warning.d.ts → svg/warning.d.ts} +0 -0
  22. package/build/components/checkout/model.d.ts +0 -1
  23. package/build/index.css +22 -0
  24. package/build/index.es.css +22 -0
  25. package/build/index.es.js +214 -2291
  26. package/build/index.js +214 -2299
  27. package/build/models/data/checkout/index.d.ts +4 -2
  28. package/build/models/data/order/index.d.ts +6 -0
  29. package/build/pages/index.d.ts +1 -11
  30. package/package.json +3 -9
  31. package/build/pages/api/getComponentDirs.d.ts +0 -3
  32. package/build/pages/api/getTheme.d.ts +0 -3
  33. package/build/pages/api/middleware.d.ts +0 -3
  34. package/build/pages/api/updateTheme.d.ts +0 -9
  35. package/build/pages/api/uploadTheme.d.ts +0 -3
@@ -46,12 +46,14 @@ export declare class IkasCheckout {
46
46
  get couponAdjustment(): IkasOrderAdjustment | undefined;
47
47
  get nonCouponAdjustments(): IkasOrderAdjustment[] | undefined;
48
48
  }
49
- export declare type IkasCheckoutCustomer = {
49
+ export declare class IkasCheckoutCustomer {
50
50
  id?: string;
51
51
  email?: string;
52
52
  firstName?: string;
53
53
  lastName?: string;
54
- };
54
+ notificationsAccepted?: boolean | null;
55
+ constructor(data: Partial<IkasCheckoutCustomer>);
56
+ }
55
57
  export declare enum IkasShippingMethod {
56
58
  CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
57
59
  NO_SHIPMENT = "NO_SHIPMENT",
@@ -40,6 +40,12 @@ export declare type IkasOrderAdjustment = {
40
40
  order: number;
41
41
  type: IkasAdjustmentEnum;
42
42
  couponId: string | null;
43
+ appliedOrderLines: IkasOrderAdjustmentAppliedLine[] | null;
44
+ };
45
+ export declare type IkasOrderAdjustmentAppliedLine = {
46
+ amount: number;
47
+ appliedQuantity: number;
48
+ orderLineId: string;
43
49
  };
44
50
  export declare type IkasOrderCustomer = {
45
51
  id: string;
@@ -17,14 +17,4 @@ import * as SearchPage from "./search";
17
17
  import * as NotFoundPage from "./404";
18
18
  import * as BlogPage from "./blog/index";
19
19
  import * as BlogSlugPage from "./blog/[slug]";
20
- import * as GetComponentDirs from "./api/getComponentDirs";
21
- import * as GetTheme from "./api/getTheme";
22
- import * as UpdateTheme from "./api/updateTheme";
23
- import * as UploadTheme from "./api/uploadTheme";
24
- declare const IkasLocalThemeAPI: {
25
- GetComponentDirs: typeof GetComponentDirs;
26
- GetTheme: typeof GetTheme;
27
- UpdateTheme: typeof UpdateTheme;
28
- UploadTheme: typeof UploadTheme;
29
- };
30
- export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, BlogPage, BlogSlugPage, IkasLocalThemeAPI, };
20
+ export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, BlogPage, BlogSlugPage, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",
@@ -20,10 +20,7 @@
20
20
  "mobx-react-lite": "^3.1.5",
21
21
  "next": "11.1.2",
22
22
  "react": "17.0.2",
23
- "react-dom": "17.0.2",
24
- "archiver": "^5.3.0",
25
- "axios": "^0.21.0",
26
- "cors": "^2.8.5"
23
+ "react-dom": "17.0.2"
27
24
  },
28
25
  "dependencies": {
29
26
  "@apollo/client": "^3.2.0",
@@ -92,10 +89,7 @@
92
89
  "ttypescript": "^1.5.12",
93
90
  "typescript": "^4.1.3",
94
91
  "typescript-transform-paths": "^2.2.2",
95
- "typings": "^2.1.1",
96
- "archiver": "^5.3.0",
97
- "axios": "^0.21.0",
98
- "cors": "^2.8.5"
92
+ "typings": "^2.1.1"
99
93
  },
100
94
  "eslintConfig": {
101
95
  "parser": "@typescript-eslint/parser",
@@ -1,3 +0,0 @@
1
- import { NextApiRequest, NextApiResponse } from "next";
2
- export declare const getComponentDirs: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
- export declare const config: {};
@@ -1,3 +0,0 @@
1
- import { NextApiRequest, NextApiResponse } from "next";
2
- export declare const getTheme: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
- export declare const config: {};
@@ -1,3 +0,0 @@
1
- import { NextApiRequest, NextApiResponse } from "next";
2
- export declare function runMiddleware(req: NextApiRequest, res: NextApiResponse, fn: any): Promise<unknown>;
3
- export declare function corsMiddleware(req: NextApiRequest, res: NextApiResponse): Promise<unknown>;
@@ -1,9 +0,0 @@
1
- import { NextApiRequest, NextApiResponse } from "next";
2
- export declare const updateTheme: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
- export declare const config: {
4
- api: {
5
- bodyParser: {
6
- sizeLimit: string;
7
- };
8
- };
9
- };
@@ -1,3 +0,0 @@
1
- import { NextApiRequest, NextApiResponse } from "next";
2
- export declare const uploadTheme: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
- export declare const config: {};