@managesome/eposmatic-toolkit 0.4.12 → 0.4.13

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.
@@ -142,6 +142,11 @@ const WarehouseCommunicationMetadataSchema = new Schema({
142
142
  type: [WarehouseCommunicationActionButtonSchema],
143
143
  default: [],
144
144
  },
145
+ theme_color: {
146
+ type: String,
147
+ required: false,
148
+ default: null,
149
+ },
145
150
  }, {
146
151
  _id: false,
147
152
  minimize: false,
@@ -74,6 +74,7 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
74
74
  expected_deadline?: string | null | undefined;
75
75
  notes?: string | null | undefined;
76
76
  payment_terms_days?: number | null | undefined;
77
+ theme_color?: string | null | undefined;
77
78
  };
78
79
  sent_at?: NativeDate | null | undefined;
79
80
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
@@ -146,6 +147,7 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
146
147
  expected_deadline?: string | null | undefined;
147
148
  notes?: string | null | undefined;
148
149
  payment_terms_days?: number | null | undefined;
150
+ theme_color?: string | null | undefined;
149
151
  };
150
152
  sent_at?: NativeDate | null | undefined;
151
153
  }>> & import("mongoose").FlatRecord<{
@@ -218,6 +220,7 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
218
220
  expected_deadline?: string | null | undefined;
219
221
  notes?: string | null | undefined;
220
222
  payment_terms_days?: number | null | undefined;
223
+ theme_color?: string | null | undefined;
221
224
  };
222
225
  sent_at?: NativeDate | null | undefined;
223
226
  }> & Required<{
@@ -145,6 +145,11 @@ const WarehouseCommunicationMetadataSchema = new mongoose_1.Schema({
145
145
  type: [WarehouseCommunicationActionButtonSchema],
146
146
  default: [],
147
147
  },
148
+ theme_color: {
149
+ type: String,
150
+ required: false,
151
+ default: null,
152
+ },
148
153
  }, {
149
154
  _id: false,
150
155
  minimize: false,
@@ -15,7 +15,10 @@ export interface IDelivery {
15
15
  tenant_phone_numbers: string[];
16
16
  status: DELIVERY_STATUS_ENUM;
17
17
  cancel_reason?: string | null;
18
- /** Tenant-local business date, copied from the order at creation. */
18
+ /**
19
+ * Tenant-local business date resolved from `track_order_numbers.runningLocalDate`
20
+ * at creation (order.localDate is the fallback when the tracker is absent).
21
+ */
19
22
  localDate?: string | null;
20
23
  polyline: [number, number][];
21
24
  distance_in_meters_from_store: number;
@@ -4,7 +4,7 @@ export interface IDineinTableFingerprint {
4
4
  table_id: string;
5
5
  tenant_id: string;
6
6
  dinein_floor_id: string;
7
- order_id: string;
7
+ order_id: string | null;
8
8
  order_number: number | null;
9
9
  name: string;
10
10
  num_of_seats: number;
@@ -3,7 +3,7 @@ export interface IReview {
3
3
  _id: string;
4
4
  tenant_id: string;
5
5
  order_id: string;
6
- order_number: number | number;
6
+ order_number: number | null;
7
7
  token_id?: string | null;
8
8
  customer_phone: string;
9
9
  customer_name: string;
@@ -1,6 +1,6 @@
1
1
  import { TENANT_ACTIVITY_LOG_ACTION_ENUM, TENANT_ACTIVITY_LOG_ENTITY_TYPE_ENUM, TENANT_ACTIVITY_LOG_SEVERITY_ENUM } from '../../constants';
2
2
  export interface ITenantActivityLogActor {
3
- staff_id: string;
3
+ staff_id: string | null;
4
4
  staff_name: string | null;
5
5
  staff_email: string | null;
6
6
  staff_mobile: string | null;
@@ -8,7 +8,7 @@ export interface ITenantHrEmergencyContact {
8
8
  export interface ITenantHrEmployeeDocument {
9
9
  doc_url: string;
10
10
  doc_name?: string | null;
11
- uploaded_at?: Date;
11
+ uploaded_at?: Date | null;
12
12
  }
13
13
  export interface ITenantHrEmployee {
14
14
  _id: string;
@@ -1,6 +1,6 @@
1
1
  import { WAREHOUSE_ACTIVITY_LOG_ACTION_ENUM, WAREHOUSE_ACTIVITY_LOG_ENTITY_TYPE_ENUM, WAREHOUSE_ACTIVITY_LOG_SEVERITY_ENUM } from '../../constants';
2
2
  export interface IWarehouseActivityLogActor {
3
- staff_id: string;
3
+ staff_id: string | null;
4
4
  staff_name: string | null;
5
5
  staff_email: string | null;
6
6
  staff_mobile: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",