@managesome/eposmatic-toolkit 0.2.311 → 0.2.312
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,11 +17,15 @@ export declare const ReservationsSchema: Schema<any, import("mongoose").Model<an
|
|
|
17
17
|
customer_name: string;
|
|
18
18
|
num_of_guests: number;
|
|
19
19
|
special_instructions: string;
|
|
20
|
-
tables: import("mongoose").Types.ObjectId[];
|
|
21
20
|
reservation_time: NativeDate;
|
|
22
|
-
customer_email: string;
|
|
23
21
|
reservation_duration: number;
|
|
24
22
|
reservation_status: RESERVATION_STATUS_ENUM;
|
|
23
|
+
tables?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
24
|
+
customer_email?: string | null | undefined;
|
|
25
|
+
cancellation_requested?: boolean | null | undefined;
|
|
26
|
+
cancellation_requested_at?: NativeDate | null | undefined;
|
|
27
|
+
cancellation_requested_by?: string | null | undefined;
|
|
28
|
+
cancellation_request_note?: string | null | undefined;
|
|
25
29
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
26
30
|
createdAt: NativeDate;
|
|
27
31
|
updatedAt: NativeDate;
|
|
@@ -35,11 +39,15 @@ export declare const ReservationsSchema: Schema<any, import("mongoose").Model<an
|
|
|
35
39
|
customer_name: string;
|
|
36
40
|
num_of_guests: number;
|
|
37
41
|
special_instructions: string;
|
|
38
|
-
tables: import("mongoose").Types.ObjectId[];
|
|
39
42
|
reservation_time: NativeDate;
|
|
40
|
-
customer_email: string;
|
|
41
43
|
reservation_duration: number;
|
|
42
44
|
reservation_status: RESERVATION_STATUS_ENUM;
|
|
45
|
+
tables?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
46
|
+
customer_email?: string | null | undefined;
|
|
47
|
+
cancellation_requested?: boolean | null | undefined;
|
|
48
|
+
cancellation_requested_at?: NativeDate | null | undefined;
|
|
49
|
+
cancellation_requested_by?: string | null | undefined;
|
|
50
|
+
cancellation_request_note?: string | null | undefined;
|
|
43
51
|
}>> & import("mongoose").FlatRecord<{
|
|
44
52
|
createdAt: NativeDate;
|
|
45
53
|
updatedAt: NativeDate;
|
|
@@ -53,11 +61,15 @@ export declare const ReservationsSchema: Schema<any, import("mongoose").Model<an
|
|
|
53
61
|
customer_name: string;
|
|
54
62
|
num_of_guests: number;
|
|
55
63
|
special_instructions: string;
|
|
56
|
-
tables: import("mongoose").Types.ObjectId[];
|
|
57
64
|
reservation_time: NativeDate;
|
|
58
|
-
customer_email: string;
|
|
59
65
|
reservation_duration: number;
|
|
60
66
|
reservation_status: RESERVATION_STATUS_ENUM;
|
|
67
|
+
tables?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
68
|
+
customer_email?: string | null | undefined;
|
|
69
|
+
cancellation_requested?: boolean | null | undefined;
|
|
70
|
+
cancellation_requested_at?: NativeDate | null | undefined;
|
|
71
|
+
cancellation_requested_by?: string | null | undefined;
|
|
72
|
+
cancellation_request_note?: string | null | undefined;
|
|
61
73
|
}> & Required<{
|
|
62
74
|
_id: import("mongoose").Types.ObjectId;
|
|
63
75
|
}> & {
|
|
@@ -18,7 +18,6 @@ exports.ReservationsSchema = new mongoose_1.Schema({
|
|
|
18
18
|
customer_phone: {
|
|
19
19
|
type: String,
|
|
20
20
|
required: true,
|
|
21
|
-
immutable: true,
|
|
22
21
|
ref: 'customers',
|
|
23
22
|
},
|
|
24
23
|
customer_name: {
|
|
@@ -27,7 +26,7 @@ exports.ReservationsSchema = new mongoose_1.Schema({
|
|
|
27
26
|
},
|
|
28
27
|
customer_email: {
|
|
29
28
|
type: String,
|
|
30
|
-
required:
|
|
29
|
+
required: false,
|
|
31
30
|
},
|
|
32
31
|
tables: {
|
|
33
32
|
type: [
|
|
@@ -36,7 +35,7 @@ exports.ReservationsSchema = new mongoose_1.Schema({
|
|
|
36
35
|
ref: 'dinein_tables',
|
|
37
36
|
},
|
|
38
37
|
],
|
|
39
|
-
|
|
38
|
+
required: false,
|
|
40
39
|
},
|
|
41
40
|
reservation_time: {
|
|
42
41
|
type: mongoose_1.Schema.Types.Date,
|
|
@@ -60,6 +59,22 @@ exports.ReservationsSchema = new mongoose_1.Schema({
|
|
|
60
59
|
type: String,
|
|
61
60
|
default: '',
|
|
62
61
|
},
|
|
62
|
+
cancellation_requested: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
required: false,
|
|
65
|
+
},
|
|
66
|
+
cancellation_requested_at: {
|
|
67
|
+
type: mongoose_1.Schema.Types.Date,
|
|
68
|
+
required: false,
|
|
69
|
+
},
|
|
70
|
+
cancellation_requested_by: {
|
|
71
|
+
type: String,
|
|
72
|
+
required: false,
|
|
73
|
+
},
|
|
74
|
+
cancellation_request_note: {
|
|
75
|
+
type: String,
|
|
76
|
+
required: false,
|
|
77
|
+
},
|
|
63
78
|
createdAt_mins: {
|
|
64
79
|
type: Number,
|
|
65
80
|
required: true,
|
|
@@ -4,13 +4,17 @@ export interface IReservation {
|
|
|
4
4
|
tenant_id: string;
|
|
5
5
|
customer_phone: string;
|
|
6
6
|
customer_name: string;
|
|
7
|
-
customer_email
|
|
8
|
-
tables
|
|
7
|
+
customer_email?: string;
|
|
8
|
+
tables?: string[];
|
|
9
9
|
reservation_time: Date;
|
|
10
10
|
reservation_duration: number;
|
|
11
11
|
num_of_guests: number;
|
|
12
12
|
reservation_status: RESERVATION_STATUS_ENUM;
|
|
13
13
|
special_instructions: string;
|
|
14
|
+
cancellation_requested?: boolean;
|
|
15
|
+
cancellation_requested_at?: Date | null;
|
|
16
|
+
cancellation_requested_by?: string | null;
|
|
17
|
+
cancellation_request_note?: string | null;
|
|
14
18
|
createdAt_mins: number;
|
|
15
19
|
createdAt: Date;
|
|
16
20
|
updatedAt: Date;
|