@freedom_sky/feige-lib 4.53.0 → 4.53.2

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.
@@ -8,11 +8,11 @@ import { PrinterDeviceTypeEnum, PrinterWidthEnum, TagPrinterDeviceTypeEnum, Enco
8
8
  import { TimeMenuLoopMode } from '../../enum/time-menu.enum';
9
9
  import { WeekEnum } from '../../enum/common.enum';
10
10
  import { AnnouncementTargetEnum, AnnouncementTypeEnum } from '../../index';
11
- export interface ILangList {
11
+ export interface LangList {
12
12
  [key: string]: string;
13
13
  }
14
14
  export interface BuffetDishItem {
15
- dishId: string;
15
+ readonly dishId: string;
16
16
  upperLimit: {
17
17
  enable: boolean;
18
18
  adult: number;
@@ -20,7 +20,7 @@ export interface BuffetDishItem {
20
20
  };
21
21
  }
22
22
  export interface BuffetCombosItems {
23
- _id: string;
23
+ readonly _id: string;
24
24
  names: object;
25
25
  price: {
26
26
  adult: number;
@@ -29,18 +29,19 @@ export interface BuffetCombosItems {
29
29
  dishes: BuffetDishItem[];
30
30
  }
31
31
  export interface AllergenItem {
32
- _id: string;
32
+ readonly _id: string;
33
33
  names: object;
34
34
  img: string;
35
35
  dishIds: string[];
36
36
  }
37
- export interface IAnnouncementItem {
37
+ export interface AnnouncementItem {
38
+ readonly _id: string;
38
39
  enable: boolean;
39
- titles: ILangList;
40
+ titles: LangList;
40
41
  type: AnnouncementTypeEnum;
41
42
  targets: AnnouncementTargetEnum[];
42
- textContents: ILangList;
43
- imageContents: ILangList;
43
+ textContents: LangList;
44
+ imageContents: LangList;
44
45
  }
45
46
  export interface Store {
46
47
  readonly _id: string;
@@ -112,7 +113,7 @@ export interface Store {
112
113
  allergens: AllergenItem[];
113
114
  };
114
115
  readonly announcementSetting: {
115
- announcements: IAnnouncementItem[];
116
+ announcements: AnnouncementItem[];
116
117
  };
117
118
  readonly memberSetting: {
118
119
  savingRules: MemberSavingRule[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedom_sky/feige-lib",
3
- "version": "4.53.0",
3
+ "version": "4.53.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -15,9 +15,11 @@ import { TimeMenuLoopMode } from '../../enum/time-menu.enum';
15
15
  import { WeekEnum } from '../../enum/common.enum';
16
16
  import { AnnouncementTargetEnum, AnnouncementTypeEnum } from '../../index';
17
17
 
18
- export interface ILangList {[key:string]: string}
18
+ export interface LangList {
19
+ [key: string]: string;
20
+ }
19
21
  export interface BuffetDishItem {
20
- dishId: string;
22
+ readonly dishId: string;
21
23
  upperLimit: {
22
24
  enable: boolean;
23
25
  adult: number;
@@ -26,7 +28,7 @@ export interface BuffetDishItem {
26
28
  }
27
29
 
28
30
  export interface BuffetCombosItems {
29
- _id: string;
31
+ readonly _id: string;
30
32
  names: object;
31
33
  price: {
32
34
  adult: number;
@@ -36,19 +38,20 @@ export interface BuffetCombosItems {
36
38
  }
37
39
 
38
40
  export interface AllergenItem {
39
- _id: string;
41
+ readonly _id: string;
40
42
  names: object;
41
43
  img: string;
42
44
  dishIds: string[];
43
45
  }
44
46
 
45
- export interface IAnnouncementItem {
46
- enable: boolean,
47
- titles: ILangList,
48
- type: AnnouncementTypeEnum,
49
- targets: AnnouncementTargetEnum[],
50
- textContents: ILangList,
51
- imageContents: ILangList,
47
+ export interface AnnouncementItem {
48
+ readonly _id: string;
49
+ enable: boolean;
50
+ titles: LangList;
51
+ type: AnnouncementTypeEnum;
52
+ targets: AnnouncementTargetEnum[];
53
+ textContents: LangList;
54
+ imageContents: LangList;
52
55
  }
53
56
 
54
57
  export interface Store {
@@ -120,9 +123,9 @@ export interface Store {
120
123
  enable: boolean;
121
124
  allergens: AllergenItem[];
122
125
  };
123
- readonly announcementSetting:{
124
- announcements:IAnnouncementItem[]
125
- },
126
+ readonly announcementSetting: {
127
+ announcements: AnnouncementItem[];
128
+ };
126
129
  readonly memberSetting: {
127
130
  savingRules: MemberSavingRule[];
128
131
  security: {