@managesome/eposmatic-toolkit 0.2.619 → 0.2.622

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.
@@ -73,6 +73,7 @@ export declare enum TENANT_ACTIVITY_LOG_SEVERITY_ENUM {
73
73
  }
74
74
  export declare const ALL_TENANT_ACTIVITY_LOG_SEVERITY_NAMES: TENANT_ACTIVITY_LOG_SEVERITY_ENUM[];
75
75
  export declare enum TENANT_ACTIVE_JOBS_ENUM {
76
+ CALENDAR = "CALENDAR",
76
77
  X_REPORT = "X_REPORT",
77
78
  Z_REPORT = "Z_REPORT"
78
79
  }
@@ -86,6 +86,7 @@ exports.ALL_TENANT_ACTIVITY_LOG_SEVERITY_NAMES = Object.values(TENANT_ACTIVITY_L
86
86
  // ======================>> Active Jobs <<====================== //
87
87
  var TENANT_ACTIVE_JOBS_ENUM;
88
88
  (function (TENANT_ACTIVE_JOBS_ENUM) {
89
+ TENANT_ACTIVE_JOBS_ENUM["CALENDAR"] = "CALENDAR";
89
90
  TENANT_ACTIVE_JOBS_ENUM["X_REPORT"] = "X_REPORT";
90
91
  TENANT_ACTIVE_JOBS_ENUM["Z_REPORT"] = "Z_REPORT";
91
92
  })(TENANT_ACTIVE_JOBS_ENUM || (exports.TENANT_ACTIVE_JOBS_ENUM = TENANT_ACTIVE_JOBS_ENUM = {}));
@@ -1,5 +1,5 @@
1
- import { IReceiptEngine, ISettingsForPrinter, ISettingsForWeb, ISimplifiedCatalog } from '../helpers';
2
- import { IOrder, IPrinterSettings, ITenantCashDrawerSession, ITenantDaySession, ITenantInstoreShiftSession } from '../schemas';
1
+ import { IMinifiedCategory, IMinifiedItem, IReceiptEngine, ISettingsForPOS, ISettingsForPrinter, ISettingsForWeb, ISimplifiedCatalog } from '../helpers';
2
+ import { IAppConfig, ICloseDate, ICourse, IDeliveryArea, IDeliveryOrder, IDineinLayout, IDiscount, IGiftCard, IHalfHalfSetup, IMenu, IOffer, IOperationalRoles, IOrder, IPrinterSettings, IPublicHoliday, IReservation, IRider, ISpecial, ITenant, ITenantActiveJob, ITenantCalendar, ITenantCashDrawer, ITenantCashDrawerSession, ITenantDaySession, ITenantInstoreShift, ITenantInstoreShiftSession, ITenantMetadata, ITenantStaff, ITerminalDevice, IVoucher } from '../schemas';
3
3
  import { KITCHEN_DOCKET_FONT_TYPE_ENUM, KITCHEN_RECEIPT_TYPE_ENUM, PLATFORMS_ENUM, PRINTER_BRAND_TYPE_ENUM, PRINTER_EVENT_TYPE_ENUM, PRINTER_INTERFACE_ENUM, RECEIPT_IMAGE_TYPE_ENUM, RECEIPT_TYPE_ENUM, TAX_INVOICE_PROVIDER_ENUM } from './ENUMS';
4
4
  export interface ISocketReconciledTenantDay {
5
5
  shiftSessions: ITenantInstoreShiftSession[] | null;
@@ -390,4 +390,69 @@ export interface IWebviewOoPlacedReview {
390
390
  export interface IWebviewOoSetLoading {
391
391
  isLoading: boolean;
392
392
  }
393
+ export interface IPosDeltaOnReConnect {
394
+ orders: IOrder[];
395
+ transferredOrders: IOrder[];
396
+ timestamp: number;
397
+ }
398
+ export interface IPOSDataOnConnect {
399
+ categories: IMinifiedCategory[];
400
+ items: IMinifiedItem[];
401
+ orders: IOrder[];
402
+ transferredOrders: IOrder[];
403
+ settings: ISettingsForPOS | null;
404
+ dineinLayout: IDineinLayout[];
405
+ operationalRoles: IOperationalRoles | null;
406
+ staff: ITenantStaff | null;
407
+ allStaff: ITenantStaff[];
408
+ shifts: ITenantInstoreShift[];
409
+ courses: ICourse[];
410
+ printers: ISocketPrinter[];
411
+ deliveryAreas: IDeliveryArea[];
412
+ publicHolidays: IPublicHoliday[];
413
+ closeDates: ICloseDate[];
414
+ specials: ISpecial[];
415
+ halfhalfSetup: IHalfHalfSetup[];
416
+ offers: IOffer[];
417
+ vouchers: IVoucher[];
418
+ gift_cards: IGiftCard[];
419
+ terminalDevices: ITerminalDevice[];
420
+ appConfigV1: IAppConfig | null;
421
+ menus: IMenu[];
422
+ reservations: IReservation[];
423
+ printersSettings: IPrinterSettings[];
424
+ discounts: IDiscount[];
425
+ soldoutModifiers: string[];
426
+ cashDrawers: ITenantCashDrawer[];
427
+ runningCashDrawerSessions: ITenantCashDrawerSession[];
428
+ runningTenantDaySession: ITenantDaySession | null;
429
+ runningInstoreShiftSessions: ITenantInstoreShiftSession[];
430
+ activeJobs: ITenantActiveJob | null;
431
+ timestamp: number;
432
+ }
433
+ export interface IAdminDataOnConnect {
434
+ settings: ITenant;
435
+ operationalRoles: IOperationalRoles;
436
+ staff: ITenantStaff;
437
+ tenantMetadata: ITenantMetadata;
438
+ appConfigV1: IAppConfig;
439
+ runningTenantDaySession: ITenantDaySession | null;
440
+ calendar: ITenantCalendar[];
441
+ activeJobs: ITenantActiveJob | null;
442
+ timestamp: number;
443
+ }
444
+ export interface IReportAppDataOnConnect {
445
+ settings: ITenant;
446
+ operationalRoles: IOperationalRoles;
447
+ staff: ITenantStaff;
448
+ reports_app_version: string;
449
+ runningTenantDaySession: ITenantDaySession | null;
450
+ timestamp: number;
451
+ }
452
+ export interface IRiderAppDataOnConnect {
453
+ rider: IRider;
454
+ deliveryOrders: IDeliveryOrder[];
455
+ rider_app_version: string;
456
+ timestamp: number;
457
+ }
393
458
  export {};
@@ -12,6 +12,7 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
12
12
  createdAt: NativeDate;
13
13
  updatedAt: NativeDate;
14
14
  localDate: string;
15
+ progress: number;
15
16
  completed_at: NativeDate;
16
17
  jobs_status: Map<string, boolean>;
17
18
  active_job: import("../../constants").TENANT_ACTIVE_JOBS_ENUM;
@@ -27,6 +28,7 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
27
28
  createdAt: NativeDate;
28
29
  updatedAt: NativeDate;
29
30
  localDate: string;
31
+ progress: number;
30
32
  completed_at: NativeDate;
31
33
  jobs_status: Map<string, boolean>;
32
34
  active_job: import("../../constants").TENANT_ACTIVE_JOBS_ENUM;
@@ -42,6 +44,7 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
42
44
  createdAt: NativeDate;
43
45
  updatedAt: NativeDate;
44
46
  localDate: string;
47
+ progress: number;
45
48
  completed_at: NativeDate;
46
49
  jobs_status: Map<string, boolean>;
47
50
  active_job: import("../../constants").TENANT_ACTIVE_JOBS_ENUM;
@@ -35,6 +35,10 @@ exports.TenantActiveJobSchema = new mongoose_1.Schema({
35
35
  enum: constants_1.ALL_TENANT_ACTIVE_JOBS_NAMES,
36
36
  default: [],
37
37
  },
38
+ progress: {
39
+ type: Number,
40
+ default: 0,
41
+ },
38
42
  started_at: {
39
43
  type: mongoose_1.Schema.Types.Date,
40
44
  default: null,
@@ -6,6 +6,7 @@ export interface ITenantActiveJob {
6
6
  jobs_status: Record<TENANT_ACTIVE_JOBS_ENUM, boolean>;
7
7
  active_job: TENANT_ACTIVE_JOBS_ENUM | null;
8
8
  failed_jobs: TENANT_ACTIVE_JOBS_ENUM[];
9
+ progress: number;
9
10
  started_at: Date | null;
10
11
  completed_at: Date | null;
11
12
  last_heartbeat_at: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.619",
3
+ "version": "0.2.622",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",