@managesome/eposmatic-toolkit 0.2.621 → 0.2.623
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.
package/lib/constants/types.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -88,5 +88,5 @@ exports.TENANT_CALENDAR_COLLECTION_NAME = 'tenant_calendar';
|
|
|
88
88
|
*/
|
|
89
89
|
exports.TENANT_CALENDAR_COLLECTION_INDEXES = {
|
|
90
90
|
_id: { _id: 1 }, // Unique Index
|
|
91
|
-
tenant_id__localYear: { tenant_id: 1, localYear: 1 }, // unique per (tenant_id, localYear)
|
|
91
|
+
tenant_id__localYear: { tenant_id: 1, localYear: -1 }, // unique per (tenant_id, localYear)
|
|
92
92
|
};
|