@chevre/domain 21.4.0-alpha.21 → 21.4.0-alpha.22
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.
|
@@ -85,9 +85,9 @@ async function main() {
|
|
|
85
85
|
'movieTheaterBranchCode:', movieTheaterBranchCode,
|
|
86
86
|
i
|
|
87
87
|
);
|
|
88
|
-
|
|
88
|
+
throw new Error('movieTheater not found');
|
|
89
89
|
|
|
90
|
-
return;
|
|
90
|
+
// return;
|
|
91
91
|
}
|
|
92
92
|
if (typeof sellerId === 'string') {
|
|
93
93
|
const newProvider: chevre.factory.reservation.IProvider = {
|
|
@@ -53,12 +53,13 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
55
|
typeOf: string;
|
|
56
|
+
project: any;
|
|
56
57
|
reservationNumber: string;
|
|
58
|
+
provider: any;
|
|
57
59
|
reservationStatus: string;
|
|
58
60
|
checkedIn: boolean;
|
|
59
61
|
attended: boolean;
|
|
60
62
|
_id?: string | undefined;
|
|
61
|
-
project?: any;
|
|
62
63
|
broker?: any;
|
|
63
64
|
price?: any;
|
|
64
65
|
priceCurrency?: string | undefined;
|
|
@@ -67,7 +68,6 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
67
68
|
underName?: any;
|
|
68
69
|
issuedThrough?: any;
|
|
69
70
|
subReservation?: any;
|
|
70
|
-
provider?: any;
|
|
71
71
|
reservedTicket?: any;
|
|
72
72
|
additionalTicketText?: string | undefined;
|
|
73
73
|
bookingTime?: Date | undefined;
|
|
@@ -82,12 +82,13 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
82
82
|
previousReservationStatus?: string | undefined;
|
|
83
83
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
84
84
|
typeOf: string;
|
|
85
|
+
project: any;
|
|
85
86
|
reservationNumber: string;
|
|
87
|
+
provider: any;
|
|
86
88
|
reservationStatus: string;
|
|
87
89
|
checkedIn: boolean;
|
|
88
90
|
attended: boolean;
|
|
89
91
|
_id?: string | undefined;
|
|
90
|
-
project?: any;
|
|
91
92
|
broker?: any;
|
|
92
93
|
price?: any;
|
|
93
94
|
priceCurrency?: string | undefined;
|
|
@@ -96,7 +97,6 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
96
97
|
underName?: any;
|
|
97
98
|
issuedThrough?: any;
|
|
98
99
|
subReservation?: any;
|
|
99
|
-
provider?: any;
|
|
100
100
|
reservedTicket?: any;
|
|
101
101
|
additionalTicketText?: string | undefined;
|
|
102
102
|
bookingTime?: Date | undefined;
|
|
@@ -111,12 +111,13 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
111
111
|
previousReservationStatus?: string | undefined;
|
|
112
112
|
}>> & Omit<import("mongoose").FlatRecord<{
|
|
113
113
|
typeOf: string;
|
|
114
|
+
project: any;
|
|
114
115
|
reservationNumber: string;
|
|
116
|
+
provider: any;
|
|
115
117
|
reservationStatus: string;
|
|
116
118
|
checkedIn: boolean;
|
|
117
119
|
attended: boolean;
|
|
118
120
|
_id?: string | undefined;
|
|
119
|
-
project?: any;
|
|
120
121
|
broker?: any;
|
|
121
122
|
price?: any;
|
|
122
123
|
priceCurrency?: string | undefined;
|
|
@@ -125,7 +126,6 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
125
126
|
underName?: any;
|
|
126
127
|
issuedThrough?: any;
|
|
127
128
|
subReservation?: any;
|
|
128
|
-
provider?: any;
|
|
129
129
|
reservedTicket?: any;
|
|
130
130
|
additionalTicketText?: string | undefined;
|
|
131
131
|
bookingTime?: Date | undefined;
|
|
@@ -9,8 +9,14 @@ exports.modelName = modelName;
|
|
|
9
9
|
* 予約スキーマ
|
|
10
10
|
*/
|
|
11
11
|
const schema = new mongoose_1.Schema({
|
|
12
|
-
project:
|
|
13
|
-
|
|
12
|
+
project: {
|
|
13
|
+
type: mongoose_1.SchemaTypes.Mixed,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
provider: {
|
|
17
|
+
type: mongoose_1.SchemaTypes.Mixed,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
14
20
|
_id: String,
|
|
15
21
|
typeOf: {
|
|
16
22
|
type: String,
|
|
@@ -76,10 +82,7 @@ schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
|
|
|
76
82
|
schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
|
|
77
83
|
schema.index({ bookingTime: -1 }, { name: 'searchByBookingTime-v3' });
|
|
78
84
|
schema.index({ 'project.id': 1, bookingTime: -1 }, { name: 'searchByProjectId-v20220721' });
|
|
79
|
-
|
|
80
|
-
// { 'provider.id': 1, bookingTime: -1 },
|
|
81
|
-
// { name: 'searchByProviderId' }
|
|
82
|
-
// );
|
|
85
|
+
schema.index({ 'provider.id': 1, bookingTime: -1 }, { name: 'searchByProviderId' });
|
|
83
86
|
schema.index({ typeOf: 1, bookingTime: -1 }, { name: 'searchByTypeOf-v3' });
|
|
84
87
|
schema.index({ reservationNumber: 1, bookingTime: -1 }, { name: 'searchByReservationNumber-v3' });
|
|
85
88
|
schema.index({ reservationStatus: 1, bookingTime: -1 }, { name: 'searchByReservationStatus-v3' });
|
package/package.json
CHANGED