@managesome/eposmatic-toolkit 0.2.553 → 0.2.555

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.
@@ -135,6 +135,7 @@ export declare function getChangeCourseStatusData(data: Partial<IOrder>, course_
135
135
  order_status_updated_at?: Date | undefined;
136
136
  rating?: number | null | undefined;
137
137
  review?: string | null | undefined;
138
+ synced_offline?: boolean | undefined;
138
139
  is_reopened?: boolean | undefined;
139
140
  deferred_settlement?: boolean | undefined;
140
141
  payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | undefined;
@@ -359,6 +359,8 @@ function getOrderWithAllFields(order, skipItemMetadata) {
359
359
  rating: order['rating'] ?? null,
360
360
  review: order['review'] ?? null,
361
361
  is_reopened: order['is_reopened'] ?? false,
362
+ synced_offline: order['synced_offline'] ?? false,
363
+ deferred_settlement: order['deferred_settlement'] ?? false,
362
364
  split_parent_id: order['split_parent_id'] ?? null,
363
365
  split_child_ids: order['split_child_ids'] ?? null,
364
366
  split_type: order['split_type'] ?? null,
@@ -1,6 +1,9 @@
1
1
  export declare enum DIALER_TYPES_ENUM {
2
- CALLING = "CALLING",
3
- PING = "PING"
2
+ INCOMING_CALL = "INCOMING_CALL",
3
+ OUTGOING_CALL = "OUTGOING_CALL",
4
+ MISSED_CALL = "MISSED_CALL",
5
+ CALL_ENDED = "CALL_ENDED",
6
+ POS_PING = "POS_PING"
4
7
  }
5
8
  export interface IDialerRequest {
6
9
  phone_number: string;
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DIALER_TYPES_ENUM = void 0;
4
4
  var DIALER_TYPES_ENUM;
5
5
  (function (DIALER_TYPES_ENUM) {
6
- DIALER_TYPES_ENUM["CALLING"] = "CALLING";
7
- DIALER_TYPES_ENUM["PING"] = "PING";
6
+ DIALER_TYPES_ENUM["INCOMING_CALL"] = "INCOMING_CALL";
7
+ DIALER_TYPES_ENUM["OUTGOING_CALL"] = "OUTGOING_CALL";
8
+ DIALER_TYPES_ENUM["MISSED_CALL"] = "MISSED_CALL";
9
+ DIALER_TYPES_ENUM["CALL_ENDED"] = "CALL_ENDED";
10
+ DIALER_TYPES_ENUM["POS_PING"] = "POS_PING";
8
11
  })(DIALER_TYPES_ENUM || (exports.DIALER_TYPES_ENUM = DIALER_TYPES_ENUM = {}));
@@ -66,6 +66,7 @@ offers: IOffer[]): {
66
66
  order_status_updated_at?: Date | undefined;
67
67
  rating?: number | null | undefined;
68
68
  review?: string | null | undefined;
69
+ synced_offline?: boolean | undefined;
69
70
  is_reopened?: boolean | undefined;
70
71
  deferred_settlement?: boolean | undefined;
71
72
  payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | undefined;
@@ -5084,6 +5084,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5084
5084
  tax_invoice_id?: string | null | undefined;
5085
5085
  rating?: number | null | undefined;
5086
5086
  review?: string | null | undefined;
5087
+ synced_offline?: boolean | null | undefined;
5087
5088
  payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
5088
5089
  order_taker_details?: {
5089
5090
  staff_id: string;
@@ -10189,6 +10190,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10189
10190
  tax_invoice_id?: string | null | undefined;
10190
10191
  rating?: number | null | undefined;
10191
10192
  review?: string | null | undefined;
10193
+ synced_offline?: boolean | null | undefined;
10192
10194
  payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
10193
10195
  order_taker_details?: {
10194
10196
  staff_id: string;
@@ -15294,6 +15296,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15294
15296
  tax_invoice_id?: string | null | undefined;
15295
15297
  rating?: number | null | undefined;
15296
15298
  review?: string | null | undefined;
15299
+ synced_offline?: boolean | null | undefined;
15297
15300
  payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
15298
15301
  order_taker_details?: {
15299
15302
  staff_id: string;
@@ -817,6 +817,10 @@ exports.OrderSchema = new mongoose_1.Schema({
817
817
  type: String,
818
818
  required: false,
819
819
  },
820
+ synced_offline: {
821
+ type: Boolean,
822
+ required: false,
823
+ },
820
824
  is_reopened: {
821
825
  type: Boolean,
822
826
  required: false,
@@ -227,6 +227,7 @@ export interface IOrder extends CommonOptionalFields, Partial<ILocalTimeFields>
227
227
  order_status_updated_at: Date;
228
228
  rating?: number | null;
229
229
  review?: string | null;
230
+ synced_offline?: boolean;
230
231
  is_reopened?: boolean;
231
232
  deferred_settlement?: boolean;
232
233
  payment_method_expected?: PAYMENT_METHOD_EXPECTED_ENUM;
@@ -1,9 +1,10 @@
1
+ import { DAY_INDEX_ENUM } from '../../constants';
1
2
  export interface ITenantInstoreShift {
2
3
  _id: string;
3
4
  tenants: string[];
4
5
  active: boolean;
5
6
  name: string;
6
- day_indexes: string[];
7
+ day_indexes: DAY_INDEX_ENUM[];
7
8
  start_time: number;
8
9
  end_time: number;
9
10
  createdAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.553",
3
+ "version": "0.2.555",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",