@freedom_sky/feige-lib 4.18.0 → 4.22.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.
@@ -0,0 +1,7 @@
1
+ export declare enum RoleEnum {
2
+ Manager = "manager",
3
+ Waiter = "waiter",
4
+ Chef = "chef",
5
+ Receptionist = "receptionist",
6
+ Partner = "partner"
7
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var RoleEnum;
4
+ (function (RoleEnum) {
5
+ RoleEnum["Manager"] = "manager";
6
+ RoleEnum["Waiter"] = "waiter";
7
+ RoleEnum["Chef"] = "chef";
8
+ RoleEnum["Receptionist"] = "receptionist";
9
+ RoleEnum["Partner"] = "partner";
10
+ })(RoleEnum = exports.RoleEnum || (exports.RoleEnum = {}));
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export * from './enum/user-status.enum';
20
20
  export * from './enum/visit-task.enum';
21
21
  export * from './enum/receptionist.enum';
22
22
  export * from './enum/from.enum';
23
+ export * from './enum/role.enum';
23
24
  export * from './interfaces/member/member.interface';
24
25
  export * from './interfaces/member/member-transaction.interface';
25
26
  export * from './interfaces/store/store.interface';
package/dist/index.js CHANGED
@@ -25,6 +25,7 @@ __export(require("./enum/user-status.enum"));
25
25
  __export(require("./enum/visit-task.enum"));
26
26
  __export(require("./enum/receptionist.enum"));
27
27
  __export(require("./enum/from.enum"));
28
+ __export(require("./enum/role.enum"));
28
29
  var pay_company_enum_1 = require("./enum/pay-company.enum");
29
30
  exports.PayCompanyEnum = pay_company_enum_1.PayCompanyEnum;
30
31
  var moment = require("moment");
@@ -22,10 +22,11 @@ export interface Order {
22
22
  readonly storeId: string;
23
23
  readonly clientId: string;
24
24
  readonly date: Date | string;
25
- readonly autoCleanTime: Date | string;
25
+ readonly autoCleanTime?: Date | string;
26
26
  readonly status: string;
27
27
  readonly checkoutFirst: boolean;
28
28
  readonly operatorId: string;
29
+ readonly salesmanId: string;
29
30
  readonly __v: number;
30
31
  readonly process?: Process[];
31
32
  readonly checkout?: Checkout[];
@@ -150,6 +150,7 @@ export interface ReceptionPrinter {
150
150
  customInformationAtStart?: string;
151
151
  customInformationAtEnd?: string;
152
152
  showWaiterName?: boolean;
153
+ showSalesmanName?: boolean;
153
154
  showUnitPrice?: boolean;
154
155
  }
155
156
  export interface ChefPrinter {
@@ -171,6 +172,8 @@ export interface ChefPrinter {
171
172
  lineBetweenDishes?: boolean;
172
173
  specificationInNewLine?: boolean;
173
174
  countFront?: boolean;
175
+ showWaiterName?: boolean;
176
+ showSalesmanName?: boolean;
174
177
  }
175
178
  export interface LabelPrinter {
176
179
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedom_sky/feige-lib",
3
- "version": "4.18.0",
3
+ "version": "4.22.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,7 @@
1
+ export enum RoleEnum {
2
+ Manager = 'manager',
3
+ Waiter = 'waiter',
4
+ Chef = 'chef',
5
+ Receptionist = 'receptionist',
6
+ Partner = 'partner',
7
+ }
package/src/index.ts CHANGED
@@ -21,6 +21,7 @@ export * from './enum/user-status.enum';
21
21
  export * from './enum/visit-task.enum';
22
22
  export * from './enum/receptionist.enum';
23
23
  export * from './enum/from.enum';
24
+ export * from './enum/role.enum';
24
25
  export * from './interfaces/member/member.interface';
25
26
  export * from './interfaces/member/member-transaction.interface';
26
27
  export * from './interfaces/store/store.interface';
@@ -22,10 +22,11 @@ export interface Order {
22
22
  readonly storeId: string;
23
23
  readonly clientId: string;
24
24
  readonly date: Date | string;
25
- readonly autoCleanTime: Date | string;
25
+ readonly autoCleanTime?: Date | string;
26
26
  readonly status: string;
27
27
  readonly checkoutFirst: boolean;
28
28
  readonly operatorId: string;
29
+ readonly salesmanId: string;
29
30
  readonly __v: number;
30
31
  readonly process?: Process[];
31
32
  readonly checkout?: Checkout[];
@@ -152,6 +152,7 @@ export interface ReceptionPrinter {
152
152
  customInformationAtStart?: string;
153
153
  customInformationAtEnd?: string;
154
154
  showWaiterName?: boolean;
155
+ showSalesmanName?: boolean;
155
156
  showUnitPrice?: boolean;
156
157
  }
157
158
 
@@ -174,6 +175,8 @@ export interface ChefPrinter {
174
175
  lineBetweenDishes?: boolean;
175
176
  specificationInNewLine?: boolean;
176
177
  countFront?: boolean;
178
+ showWaiterName?: boolean;
179
+ showSalesmanName?: boolean;
177
180
  }
178
181
 
179
182
  export interface LabelPrinter {