@managesome/eposmatic-toolkit 0.2.602 → 0.2.604

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.
@@ -64,9 +64,7 @@ export declare const WORKER_ENDPOINTS: {
64
64
  readonly START_INSTORE_SHIFT: "/start-instore-shift";
65
65
  readonly END_INSTORE_SHIFT: "/end-instore-shift";
66
66
  readonly REOPEN_INSTORE_SHIFT: "/reopen-instore-shift";
67
- readonly START_TENANT_DAY: "/start-tenant-day";
68
67
  readonly END_TENANT_DAY: "/end-tenant-day";
69
- readonly REOPEN_TENANT_DAY: "/reopen-tenant-day";
70
68
  readonly OPEN_CASH_DRAWER_SESSION: "/open-cash-drawer-session";
71
69
  readonly CLOSE_CASH_DRAWER_SESSION: "/close-cash-drawer-session";
72
70
  };
@@ -83,9 +83,7 @@ exports.WORKER_ENDPOINTS = {
83
83
  START_INSTORE_SHIFT: '/start-instore-shift',
84
84
  END_INSTORE_SHIFT: '/end-instore-shift',
85
85
  REOPEN_INSTORE_SHIFT: '/reopen-instore-shift',
86
- START_TENANT_DAY: '/start-tenant-day',
87
86
  END_TENANT_DAY: '/end-tenant-day',
88
- REOPEN_TENANT_DAY: '/reopen-tenant-day',
89
87
  OPEN_CASH_DRAWER_SESSION: '/open-cash-drawer-session',
90
88
  CLOSE_CASH_DRAWER_SESSION: '/close-cash-drawer-session',
91
89
  };
@@ -463,21 +463,11 @@ export interface IWorker_ReopenInstoreShift {
463
463
  /** The shift TEMPLATE id. */
464
464
  shift_id: string;
465
465
  }
466
- export interface IWorker_StartTenantDay {
467
- tenant_id: string;
468
- /** The newly opened business day (tenant_day_sessions doc id). */
469
- day_session_id: string;
470
- }
471
466
  export interface IWorker_EndTenantDay {
472
467
  tenant_id: string;
473
468
  /** The business day being closed (tenant_day_sessions doc id). */
474
469
  day_session_id: string;
475
470
  }
476
- export interface IWorker_ReopenTenantDay {
477
- tenant_id: string;
478
- /** The business day being reopened (tenant_day_sessions doc id). */
479
- day_session_id: string;
480
- }
481
471
  export interface IWorker_OpenCashDrawerSession {
482
472
  tenant_id: string;
483
473
  /** The business day (tenant_day_sessions doc id). */
@@ -64,6 +64,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
64
64
  closed_at: NativeDate;
65
65
  cash_in_out_id: string;
66
66
  };
67
+ reopened_times: number;
68
+ total_shifts: number;
67
69
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
68
70
  staff_id: string;
69
71
  staff_name: string;
@@ -85,6 +87,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
85
87
  closed_at: NativeDate;
86
88
  cash_in_out_id: string;
87
89
  };
90
+ reopened_times: number;
91
+ total_shifts: number;
88
92
  }> & {
89
93
  staff_id: string;
90
94
  staff_name: string;
@@ -106,6 +110,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
106
110
  closed_at: NativeDate;
107
111
  cash_in_out_id: string;
108
112
  };
113
+ reopened_times: number;
114
+ total_shifts: number;
109
115
  }>;
110
116
  reopened_times: number;
111
117
  total_shifts: number;
@@ -170,6 +176,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
170
176
  closed_at: NativeDate;
171
177
  cash_in_out_id: string;
172
178
  };
179
+ reopened_times: number;
180
+ total_shifts: number;
173
181
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
174
182
  staff_id: string;
175
183
  staff_name: string;
@@ -191,6 +199,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
191
199
  closed_at: NativeDate;
192
200
  cash_in_out_id: string;
193
201
  };
202
+ reopened_times: number;
203
+ total_shifts: number;
194
204
  }> & {
195
205
  staff_id: string;
196
206
  staff_name: string;
@@ -212,6 +222,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
212
222
  closed_at: NativeDate;
213
223
  cash_in_out_id: string;
214
224
  };
225
+ reopened_times: number;
226
+ total_shifts: number;
215
227
  }>;
216
228
  reopened_times: number;
217
229
  total_shifts: number;
@@ -276,6 +288,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
276
288
  closed_at: NativeDate;
277
289
  cash_in_out_id: string;
278
290
  };
291
+ reopened_times: number;
292
+ total_shifts: number;
279
293
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
280
294
  staff_id: string;
281
295
  staff_name: string;
@@ -297,6 +311,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
297
311
  closed_at: NativeDate;
298
312
  cash_in_out_id: string;
299
313
  };
314
+ reopened_times: number;
315
+ total_shifts: number;
300
316
  }> & {
301
317
  staff_id: string;
302
318
  staff_name: string;
@@ -318,6 +334,8 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
318
334
  closed_at: NativeDate;
319
335
  cash_in_out_id: string;
320
336
  };
337
+ reopened_times: number;
338
+ total_shifts: number;
321
339
  }>;
322
340
  reopened_times: number;
323
341
  total_shifts: number;
@@ -77,6 +77,14 @@ const TenantDaySessionReopeningIterationSchema = new mongoose_1.Schema({
77
77
  type: TenantDaySessionClosingSchema,
78
78
  default: null,
79
79
  },
80
+ total_shifts: {
81
+ type: Number,
82
+ required: true,
83
+ },
84
+ reopened_times: {
85
+ type: Number,
86
+ required: true,
87
+ },
80
88
  updatedAt: {
81
89
  type: mongoose_1.Schema.Types.Date,
82
90
  required: true,
@@ -22,6 +22,8 @@ export interface ITenantDaySessionReopeningIteration {
22
22
  staff_name: string;
23
23
  opening: ITenantDaySession['opening'];
24
24
  closing: ITenantDaySession['closing'];
25
+ total_shifts: number;
26
+ reopened_times: number;
25
27
  updatedAt: ITenantDaySession['updatedAt'];
26
28
  }
27
29
  export interface ITenantDaySession extends ILocalTimeFields {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.602",
3
+ "version": "0.2.604",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",