@managesome/eposmatic-toolkit 0.2.273 → 0.2.274

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.
@@ -17,6 +17,7 @@ export declare const OfferFingerprintSchema: Schema<any, import("mongoose").Mode
17
17
  brand_id: string;
18
18
  customer_phone: string;
19
19
  offer_id: import("mongoose").Types.ObjectId;
20
+ customer_name: string;
20
21
  redeemed_times: number;
21
22
  redeemed_at: NativeDate;
22
23
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
@@ -32,6 +33,7 @@ export declare const OfferFingerprintSchema: Schema<any, import("mongoose").Mode
32
33
  brand_id: string;
33
34
  customer_phone: string;
34
35
  offer_id: import("mongoose").Types.ObjectId;
36
+ customer_name: string;
35
37
  redeemed_times: number;
36
38
  redeemed_at: NativeDate;
37
39
  }>> & import("mongoose").FlatRecord<{
@@ -47,6 +49,7 @@ export declare const OfferFingerprintSchema: Schema<any, import("mongoose").Mode
47
49
  brand_id: string;
48
50
  customer_phone: string;
49
51
  offer_id: import("mongoose").Types.ObjectId;
52
+ customer_name: string;
50
53
  redeemed_times: number;
51
54
  redeemed_at: NativeDate;
52
55
  }> & Required<{
@@ -36,6 +36,11 @@ exports.OfferFingerprintSchema = new mongoose_1.Schema({
36
36
  required: true,
37
37
  immutable: true,
38
38
  },
39
+ customer_name: {
40
+ type: String,
41
+ required: true,
42
+ default: 'N/A',
43
+ },
39
44
  redeemed_times: {
40
45
  type: Number,
41
46
  default: 0,
@@ -16,9 +16,9 @@ export declare const ReservationsSchema: Schema<any, import("mongoose").Model<an
16
16
  num_of_guests: number;
17
17
  customer_phone: string;
18
18
  special_instructions: string;
19
+ customer_name: string;
19
20
  tables: import("mongoose").Types.ObjectId[];
20
21
  reservation_time: NativeDate;
21
- customer_name: string;
22
22
  customer_email: string;
23
23
  reservation_duration: number;
24
24
  reservation_status: RESERVATION_STATUS_ENUM;
@@ -34,9 +34,9 @@ export declare const ReservationsSchema: Schema<any, import("mongoose").Model<an
34
34
  num_of_guests: number;
35
35
  customer_phone: string;
36
36
  special_instructions: string;
37
+ customer_name: string;
37
38
  tables: import("mongoose").Types.ObjectId[];
38
39
  reservation_time: NativeDate;
39
- customer_name: string;
40
40
  customer_email: string;
41
41
  reservation_duration: number;
42
42
  reservation_status: RESERVATION_STATUS_ENUM;
@@ -52,9 +52,9 @@ export declare const ReservationsSchema: Schema<any, import("mongoose").Model<an
52
52
  num_of_guests: number;
53
53
  customer_phone: string;
54
54
  special_instructions: string;
55
+ customer_name: string;
55
56
  tables: import("mongoose").Types.ObjectId[];
56
57
  reservation_time: NativeDate;
57
- customer_name: string;
58
58
  customer_email: string;
59
59
  reservation_duration: number;
60
60
  reservation_status: RESERVATION_STATUS_ENUM;
@@ -6,6 +6,7 @@ export interface IOfferFingerprint {
6
6
  offer_id: string;
7
7
  type: OFFER_FINGERPRINT_TYPE_ENUM;
8
8
  customer_phone: string;
9
+ customer_name: string;
9
10
  redeemed_times: number;
10
11
  redeemed_at: Date | null;
11
12
  createdAt_mins: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.273",
3
+ "version": "0.2.274",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",