@salla.sa/twilight 2.11.38 → 2.11.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight",
3
- "version": "2.11.38",
3
+ "version": "2.11.44",
4
4
  "description": "Salla Theme Toolkit, Webcomponents, Events, Requests, Utils",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "homepage": "https://salla.dev",
33
33
  "dependencies": {
34
- "@salla.sa/base": "*",
34
+ "@salla.sa/base": "^2.11.39",
35
35
  "axios": "^0.27.2",
36
36
  "infinite-scroll": "^4.0.1",
37
37
  "jwt-decode": "^3.1.2",
@@ -60,5 +60,5 @@
60
60
  "peerDependencies": {
61
61
  "webpack": "^4 || ^5"
62
62
  },
63
- "gitHead": "3ecc3bb5f32ce18409c1a71c355338db4ed17238"
63
+ "gitHead": "760e7e40f96f58e67438126ba1d6766db3853238"
64
64
  }
@@ -1,7 +1,7 @@
1
- import ProductPayload from "../product";
1
+ import Request from "../product/request";
2
2
 
3
3
  export namespace CartRequest {
4
- export interface addItem extends ProductPayload {
4
+ export interface addItem extends Request.ProductRequest.addItem {
5
5
  notes?: string;
6
6
  file?: BinaryType | string;
7
7
  }
@@ -12,6 +12,7 @@ import WishlistApi from "./wishlist";
12
12
  import ScopeApi from "./scope";
13
13
  import LandingApi from "./landing";
14
14
  import BookingApi, { Booking } from "./booking";
15
+ import { AxiosInstance } from "axios";
15
16
  import { ErrorResponse, SuccessResponse } from "@salla.sa/base/types/common";
16
17
 
17
18
  export {
@@ -103,6 +104,7 @@ export default interface Api {
103
104
  scope: ScopeApi;
104
105
  booking: BookingApi;
105
106
  landing: LandingApi;
107
+ axios: AxiosInstance;
106
108
  withoutNotifier: (callback: Function) => Promise<void>;
107
109
  getHeaders: () => {
108
110
  Accept: string | 'application/json, text/plain, */*',
@@ -122,4 +124,4 @@ export default interface Api {
122
124
  errorPromise(data: any): Promise<any>;
123
125
  successPromise(data: any): Promise<any>;
124
126
  isFastRequestsAllowed(): boolean;
125
- }
127
+ }
@@ -20,7 +20,7 @@ export namespace ProductRequest {
20
20
  export interface addItem {
21
21
  id: number;
22
22
  quantity: 1 | number;
23
- options?: ProductOption;
23
+ options?: ProductOption[];
24
24
  }
25
25
 
26
26
  export interface search {