@freedom_sky/feige-lib 4.61.0 → 4.61.1

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,12 +1,12 @@
1
1
  import { ContinentEnum } from '../enum/continent.enum';
2
2
  import { LanguageItem } from '../interfaces/common/language.interface';
3
3
  declare class Const {
4
- ROLE: {
5
- MANAGER: string;
6
- WAITER: string;
7
- CHEF: string;
8
- RECEPTIONIST: string;
9
- PARTNER: string;
4
+ readonly ROLE: {
5
+ readonly MANAGER: "manager";
6
+ readonly WAITER: "waiter";
7
+ readonly CHEF: "chef";
8
+ readonly RECEPTIONIST: "receptionist";
9
+ readonly PARTNER: "partner";
10
10
  };
11
11
  TASK_TYPE: {
12
12
  CHECK: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedom_sky/feige-lib",
3
- "version": "4.61.0",
3
+ "version": "4.61.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -3,13 +3,13 @@ import { EncodeTypeEnum } from '../enum/printer.enum';
3
3
  import { ContinentEnum } from '../enum/continent.enum';
4
4
  import { LanguageItem } from '../interfaces/common/language.interface';
5
5
  class Const {
6
- ROLE = {
6
+ readonly ROLE = {
7
7
  MANAGER: 'manager',
8
8
  WAITER: 'waiter',
9
9
  CHEF: 'chef',
10
10
  RECEPTIONIST: 'receptionist',
11
11
  PARTNER: 'partner',
12
- };
12
+ } as const;
13
13
  TASK_TYPE = {
14
14
  CHECK: 'check',
15
15
  DELIVER: 'deliver',
@@ -461,25 +461,25 @@ class Const {
461
461
  DINE: 'dine',
462
462
  TAKEOUT: 'takeout',
463
463
  };
464
- AREA_CODE:{
465
- continent: ContinentEnum,
466
- en: string,
467
- zh: string,
468
- phoneCode: string,
469
- zhHead: string,
470
- cost?: number // SMS cost
464
+ AREA_CODE: {
465
+ continent: ContinentEnum;
466
+ en: string;
467
+ zh: string;
468
+ phoneCode: string;
469
+ zhHead: string;
470
+ cost?: number; // SMS cost
471
471
  setting?: {
472
- defaultCurrency: string,
473
- timeZoneNum: number,
472
+ defaultCurrency: string;
473
+ timeZoneNum: number;
474
474
  agent: {
475
- instruction: string,
476
- showPriceInStore: boolean,
477
- qrCode: string,
478
- phone?: string,
479
- email?: string
480
- },
481
- cashDenominations?: number[]
482
- }
475
+ instruction: string;
476
+ showPriceInStore: boolean;
477
+ qrCode: string;
478
+ phone?: string;
479
+ email?: string;
480
+ };
481
+ cashDenominations?: number[];
482
+ };
483
483
  }[] = [
484
484
  {
485
485
  en: 'Angola',
@@ -4,5 +4,5 @@ export enum ContinentEnum {
4
4
  Europe = 'Europe',
5
5
  NorthAmerica = 'NorthAmerica',
6
6
  SouthAmerica = 'SouthAmerica',
7
- Oceania = 'Oceania'
7
+ Oceania = 'Oceania',
8
8
  }