@open-tender/types 0.0.134 → 0.0.136

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.
@@ -1,6 +1,5 @@
1
1
  import { Favorite } from './favorite';
2
2
  import { NutritionalInfo } from './menu';
3
- import { OrderItemImages } from './order';
4
3
  export interface GuestItem {
5
4
  cart_guest_id?: number | null;
6
5
  customer_id?: number | null;
@@ -52,11 +51,11 @@ export interface CartItemGroup {
52
51
  export declare type CartItemGroups = Array<Partial<CartItemGroup>>;
53
52
  export interface CartItem {
54
53
  index?: number;
55
- id?: number;
56
- name?: string;
57
- shortName?: string;
54
+ id: number;
55
+ name: string;
56
+ shortName: string;
58
57
  cart_guest_id?: number | null;
59
- category: string | null;
58
+ category: string;
60
59
  customer_id?: number | null;
61
60
  description: string | null;
62
61
  imageUrl: string | null;
@@ -74,24 +73,15 @@ export interface CartItem {
74
73
  increment: number;
75
74
  max: number;
76
75
  min: number;
77
- points: any;
76
+ points: number | null;
78
77
  upsellItems: number[];
79
78
  similarItems: number[];
80
79
  totalPrice: number;
81
80
  totalPoints: number | null;
82
81
  totalCals: number | null;
83
- item_no?: number;
84
- nutritional_info: NutritionalInfo | null;
85
- price_total?: number;
86
- favorite_id?: number;
87
- images?: OrderItemImages;
88
- short_description?: string;
89
- shortDescription?: string;
90
- made_for?: string;
91
- signature?: string;
92
- isDefault?: boolean | number;
82
+ favorite: Favorite;
93
83
  isSoldOut?: boolean;
94
- favorite?: Favorite;
84
+ signature?: string;
95
85
  }
96
86
  export declare type Cart = Array<CartItem>;
97
87
  export declare type CartCounts = Record<string, number>;
@@ -1,6 +1,5 @@
1
1
  import { Favorite } from './favorite';
2
2
  import { NutritionalInfo } from './menu';
3
- import { OrderItemImages } from './order';
4
3
  export interface GuestItem {
5
4
  cart_guest_id?: number | null;
6
5
  customer_id?: number | null;
@@ -52,11 +51,11 @@ export interface CartItemGroup {
52
51
  export declare type CartItemGroups = Array<Partial<CartItemGroup>>;
53
52
  export interface CartItem {
54
53
  index?: number;
55
- id?: number;
56
- name?: string;
57
- shortName?: string;
54
+ id: number;
55
+ name: string;
56
+ shortName: string;
58
57
  cart_guest_id?: number | null;
59
- category: string | null;
58
+ category: string;
60
59
  customer_id?: number | null;
61
60
  description: string | null;
62
61
  imageUrl: string | null;
@@ -74,24 +73,15 @@ export interface CartItem {
74
73
  increment: number;
75
74
  max: number;
76
75
  min: number;
77
- points: any;
76
+ points: number | null;
78
77
  upsellItems: number[];
79
78
  similarItems: number[];
80
79
  totalPrice: number;
81
80
  totalPoints: number | null;
82
81
  totalCals: number | null;
83
- item_no?: number;
84
- nutritional_info: NutritionalInfo | null;
85
- price_total?: number;
86
- favorite_id?: number;
87
- images?: OrderItemImages;
88
- short_description?: string;
89
- shortDescription?: string;
90
- made_for?: string;
91
- signature?: string;
92
- isDefault?: boolean | number;
82
+ favorite: Favorite;
93
83
  isSoldOut?: boolean;
94
- favorite?: Favorite;
84
+ signature?: string;
95
85
  }
96
86
  export declare type Cart = Array<CartItem>;
97
87
  export declare type CartCounts = Record<string, number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",