@managesome/eposmatic-toolkit 0.2.550 → 0.2.551

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.
@@ -30,6 +30,20 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
30
30
  cash_in_out_id: string;
31
31
  };
32
32
  total_shifts: number;
33
+ reopened_iterations: import("mongoose").Types.DocumentArray<{
34
+ staff_id: string;
35
+ staff_name: string;
36
+ reopened_at: NativeDate;
37
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
38
+ staff_id: string;
39
+ staff_name: string;
40
+ reopened_at: NativeDate;
41
+ }> & {
42
+ staff_id: string;
43
+ staff_name: string;
44
+ reopened_at: NativeDate;
45
+ }>;
46
+ reopened_times: number;
33
47
  day_index: import("../../constants").DAY_INDEX_ENUM;
34
48
  localSecond: number;
35
49
  localMinute: number;
@@ -71,6 +85,20 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
71
85
  cash_in_out_id: string;
72
86
  };
73
87
  total_shifts: number;
88
+ reopened_iterations: import("mongoose").Types.DocumentArray<{
89
+ staff_id: string;
90
+ staff_name: string;
91
+ reopened_at: NativeDate;
92
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
93
+ staff_id: string;
94
+ staff_name: string;
95
+ reopened_at: NativeDate;
96
+ }> & {
97
+ staff_id: string;
98
+ staff_name: string;
99
+ reopened_at: NativeDate;
100
+ }>;
101
+ reopened_times: number;
74
102
  day_index: import("../../constants").DAY_INDEX_ENUM;
75
103
  localSecond: number;
76
104
  localMinute: number;
@@ -112,6 +140,20 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
112
140
  cash_in_out_id: string;
113
141
  };
114
142
  total_shifts: number;
143
+ reopened_iterations: import("mongoose").Types.DocumentArray<{
144
+ staff_id: string;
145
+ staff_name: string;
146
+ reopened_at: NativeDate;
147
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
148
+ staff_id: string;
149
+ staff_name: string;
150
+ reopened_at: NativeDate;
151
+ }> & {
152
+ staff_id: string;
153
+ staff_name: string;
154
+ reopened_at: NativeDate;
155
+ }>;
156
+ reopened_times: number;
115
157
  day_index: import("../../constants").DAY_INDEX_ENUM;
116
158
  localSecond: number;
117
159
  localMinute: number;
@@ -60,6 +60,20 @@ const TenantDaySessionClosingSchema = new mongoose_1.Schema({
60
60
  default: null,
61
61
  },
62
62
  }, { _id: false, minimize: false });
63
+ const TenantDaySessionReopeningSchema = new mongoose_1.Schema({
64
+ staff_id: {
65
+ type: String,
66
+ required: true,
67
+ },
68
+ staff_name: {
69
+ type: String,
70
+ required: true,
71
+ },
72
+ reopened_at: {
73
+ type: Date,
74
+ required: true,
75
+ },
76
+ }, { _id: false, minimize: false });
63
77
  exports.TenantDaySessionSchema = new mongoose_1.Schema({
64
78
  _id: {
65
79
  type: mongoose_1.Schema.Types.ObjectId,
@@ -90,6 +104,15 @@ exports.TenantDaySessionSchema = new mongoose_1.Schema({
90
104
  required: true,
91
105
  default: 1,
92
106
  },
107
+ reopened_iterations: {
108
+ type: [TenantDaySessionReopeningSchema],
109
+ default: [],
110
+ },
111
+ reopened_times: {
112
+ type: Number,
113
+ required: true,
114
+ default: 0,
115
+ },
93
116
  ...common_models_1.LocalTimeFieldsSchema,
94
117
  createdAt: {
95
118
  type: mongoose_1.Schema.Types.Date,
@@ -26,6 +26,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
26
26
  cash_amount: number;
27
27
  closed_at: NativeDate;
28
28
  };
29
+ reopened_iterations: import("mongoose").Types.DocumentArray<{
30
+ staff_id: string;
31
+ staff_name: string;
32
+ reopened_at: NativeDate;
33
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
34
+ staff_id: string;
35
+ staff_name: string;
36
+ reopened_at: NativeDate;
37
+ }> & {
38
+ staff_id: string;
39
+ staff_name: string;
40
+ reopened_at: NativeDate;
41
+ }>;
42
+ reopened_times: number;
29
43
  day_index: import("../../constants").DAY_INDEX_ENUM;
30
44
  localSecond: number;
31
45
  localMinute: number;
@@ -71,6 +85,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
71
85
  cash_amount: number;
72
86
  closed_at: NativeDate;
73
87
  };
88
+ reopened_iterations: import("mongoose").Types.DocumentArray<{
89
+ staff_id: string;
90
+ staff_name: string;
91
+ reopened_at: NativeDate;
92
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
93
+ staff_id: string;
94
+ staff_name: string;
95
+ reopened_at: NativeDate;
96
+ }> & {
97
+ staff_id: string;
98
+ staff_name: string;
99
+ reopened_at: NativeDate;
100
+ }>;
101
+ reopened_times: number;
74
102
  day_index: import("../../constants").DAY_INDEX_ENUM;
75
103
  localSecond: number;
76
104
  localMinute: number;
@@ -116,6 +144,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
116
144
  cash_amount: number;
117
145
  closed_at: NativeDate;
118
146
  };
147
+ reopened_iterations: import("mongoose").Types.DocumentArray<{
148
+ staff_id: string;
149
+ staff_name: string;
150
+ reopened_at: NativeDate;
151
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
152
+ staff_id: string;
153
+ staff_name: string;
154
+ reopened_at: NativeDate;
155
+ }> & {
156
+ staff_id: string;
157
+ staff_name: string;
158
+ reopened_at: NativeDate;
159
+ }>;
160
+ reopened_times: number;
119
161
  day_index: import("../../constants").DAY_INDEX_ENUM;
120
162
  localSecond: number;
121
163
  localMinute: number;
@@ -48,6 +48,20 @@ const TenantInstoreShiftClosingSchema = new mongoose_1.Schema({
48
48
  required: true,
49
49
  },
50
50
  }, { _id: false, minimize: false });
51
+ const TenantInstoreShiftReopeningSchema = new mongoose_1.Schema({
52
+ staff_id: {
53
+ type: String,
54
+ required: true,
55
+ },
56
+ staff_name: {
57
+ type: String,
58
+ required: true,
59
+ },
60
+ reopened_at: {
61
+ type: Date,
62
+ required: true,
63
+ },
64
+ }, { _id: false, minimize: false });
51
65
  exports.TenantInstoreShiftSessionSchema = new mongoose_1.Schema({
52
66
  _id: {
53
67
  type: mongoose_1.Schema.Types.ObjectId,
@@ -105,6 +119,15 @@ exports.TenantInstoreShiftSessionSchema = new mongoose_1.Schema({
105
119
  type: Number,
106
120
  required: true,
107
121
  },
122
+ reopened_iterations: {
123
+ type: [TenantInstoreShiftReopeningSchema],
124
+ default: [],
125
+ },
126
+ reopened_times: {
127
+ type: Number,
128
+ required: true,
129
+ default: 0,
130
+ },
108
131
  ...common_models_1.LocalTimeFieldsSchema,
109
132
  createdAt: {
110
133
  type: mongoose_1.Schema.Types.Date,
@@ -17,6 +17,11 @@ export interface ITenantDaySessionClosing {
17
17
  difference: number;
18
18
  cash_in_out_id: string | null;
19
19
  }
20
+ export interface ITenantDaySessionReopening {
21
+ staff_id: string;
22
+ staff_name: string;
23
+ reopened_at: Date;
24
+ }
20
25
  export interface ITenantDaySession extends ILocalTimeFields {
21
26
  _id: string;
22
27
  tenant_id: string;
@@ -24,6 +29,8 @@ export interface ITenantDaySession extends ILocalTimeFields {
24
29
  opening: ITenantDaySessionOpening | null;
25
30
  closing: ITenantDaySessionClosing | null;
26
31
  total_shifts: number;
32
+ reopened_iterations: ITenantDaySessionReopening[];
33
+ reopened_times: number;
27
34
  createdAt: Date;
28
35
  updatedAt: Date;
29
36
  }
@@ -14,6 +14,11 @@ export interface ITenantInstoreShiftClosing {
14
14
  closed_at: Date;
15
15
  cash_amount: number;
16
16
  }
17
+ export interface ITenantInstoreShiftReopening {
18
+ staff_id: string;
19
+ staff_name: string;
20
+ reopened_at: Date;
21
+ }
17
22
  export interface ITenantInstoreShiftSession extends ILocalTimeFields {
18
23
  _id: string;
19
24
  tenant_id: string;
@@ -28,6 +33,8 @@ export interface ITenantInstoreShiftSession extends ILocalTimeFields {
28
33
  expected_drawer_total: number;
29
34
  actual_drawer_total: number;
30
35
  difference: number;
36
+ reopened_iterations: ITenantInstoreShiftReopening[];
37
+ reopened_times: number;
31
38
  createdAt: Date;
32
39
  updatedAt: Date;
33
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.550",
3
+ "version": "0.2.551",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",