@freedom_sky/feige-lib 4.9.0 → 4.13.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.
@@ -125,14 +125,7 @@ export interface Store {
125
125
  name: string;
126
126
  enabled: boolean;
127
127
  }[];
128
- readonly areas: {
129
- name: string;
130
- }[];
131
- readonly tables: {
132
- name: string;
133
- seatNUm: number;
134
- areaId: string;
135
- }[];
128
+ readonly areas: Area[];
136
129
  }
137
130
  export interface ReceptionPrinter {
138
131
  _id: string;
@@ -192,4 +185,14 @@ interface DayLoopItem {
192
185
  removeMode: boolean;
193
186
  dishId: string[];
194
187
  }
188
+ export interface Area {
189
+ readonly _id?: string;
190
+ readonly name: string;
191
+ readonly tables: Table[];
192
+ }
193
+ export interface Table {
194
+ readonly _id?: string;
195
+ readonly name: string;
196
+ readonly seatNum: number;
197
+ }
195
198
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedom_sky/feige-lib",
3
- "version": "4.9.0",
3
+ "version": "4.13.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -126,14 +126,7 @@ export interface Store {
126
126
  name: string;
127
127
  enabled: boolean;
128
128
  }[];
129
- readonly areas:{
130
- name: string;
131
- }[];
132
- readonly tables:{
133
- name:string,
134
- seatNUm:number,
135
- areaId:string
136
- }[];
129
+ readonly areas: Area[];
137
130
  }
138
131
 
139
132
  export interface ReceptionPrinter {
@@ -197,3 +190,15 @@ interface DayLoopItem {
197
190
  removeMode: boolean;
198
191
  dishId: string[];
199
192
  }
193
+
194
+ export interface Area {
195
+ readonly _id?:string,
196
+ readonly name: string;
197
+ readonly tables: Table[]
198
+ }
199
+
200
+ export interface Table {
201
+ readonly _id?:string,
202
+ readonly name: string;
203
+ readonly seatNum: number;
204
+ }