@salla.sa/twilight 2.0.249 → 2.0.250

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.0.249",
3
+ "version": "2.0.250",
4
4
  "description": "Salla Theme Toolkit, Webcomponents, Events, Requests, Utils",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -5,7 +5,7 @@ import {CartResponse} from "./response";
5
5
  import {CartRequest} from "./request";
6
6
 
7
7
  export default interface CartApi {
8
- latest: () => Promise<CartResponse.latest>;
8
+ latest: () => Promise<CartResponse.update>;
9
9
  details: () => Promise<CartResponse.update>;
10
10
  summary: () => Promise<CartResponse.update>;
11
11
  quickAdd: (/*product_id*/id: number) => Promise<CartResponse.update>;
@@ -1,15 +1,6 @@
1
1
  import {SuccessResponse} from "../../common";
2
2
  export {SuccessResponse} from "../../common";
3
3
  export namespace CartResponse {
4
- export interface latest extends SuccessResponse {
5
- data: {
6
- cart: {
7
- id: number;
8
- user_id: number | string;
9
- }
10
- };
11
- }
12
-
13
4
  export interface update extends SuccessResponse {
14
5
  data: CartUpdatedData;
15
6
  }
@@ -6,7 +6,7 @@ export default interface CartEvent {
6
6
  onItemAdded: (callback: (response: CartResponse.update, product_id: number) => void) => void;
7
7
  onItemUpdated: (callback: (response: CartResponse.update, product_id: number) => void) => void;
8
8
  onItemDeleted: (callback: (response: CartResponse.update, product_id: number) => void) => void;
9
- onLatestFetched: (callback: (response: CartResponse.latest) => void) => void;
9
+ onLatestFetched: (callback: (response: CartResponse.update) => void) => void;
10
10
  onSubmitted: (callback: (response: CartResponse.status) => void) => void;
11
11
  onImageDeleted: (callback: (response: SuccessResponse, file_id: number) => void) => void;
12
12
  onSummaryFetched: (callback: (response: CartResponse.status) => void) => void;