@mac777/project-pinecone-models 1.1.15 → 1.1.16

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.
package/dist/Event.d.ts CHANGED
@@ -144,8 +144,25 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
144
144
  } | null | undefined;
145
145
  } | null | undefined;
146
146
  schedule?: {
147
+ type: "single" | "multiple";
147
148
  startDate: NativeDate;
148
149
  endDate: NativeDate;
150
+ sessions: mongoose.Types.DocumentArray<{
151
+ date: NativeDate;
152
+ startTime: NativeDate;
153
+ endTime: NativeDate;
154
+ doorsOpen?: NativeDate | null | undefined;
155
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, any, {
156
+ date: NativeDate;
157
+ startTime: NativeDate;
158
+ endTime: NativeDate;
159
+ doorsOpen?: NativeDate | null | undefined;
160
+ }> & {
161
+ date: NativeDate;
162
+ startTime: NativeDate;
163
+ endTime: NativeDate;
164
+ doorsOpen?: NativeDate | null | undefined;
165
+ }>;
149
166
  timezone?: string | null | undefined;
150
167
  isMultiDay?: boolean | null | undefined;
151
168
  doors?: string | null | undefined;
@@ -433,8 +450,25 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
433
450
  } | null | undefined;
434
451
  } | null | undefined;
435
452
  schedule?: {
453
+ type: "single" | "multiple";
436
454
  startDate: NativeDate;
437
455
  endDate: NativeDate;
456
+ sessions: mongoose.Types.DocumentArray<{
457
+ date: NativeDate;
458
+ startTime: NativeDate;
459
+ endTime: NativeDate;
460
+ doorsOpen?: NativeDate | null | undefined;
461
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, any, {
462
+ date: NativeDate;
463
+ startTime: NativeDate;
464
+ endTime: NativeDate;
465
+ doorsOpen?: NativeDate | null | undefined;
466
+ }> & {
467
+ date: NativeDate;
468
+ startTime: NativeDate;
469
+ endTime: NativeDate;
470
+ doorsOpen?: NativeDate | null | undefined;
471
+ }>;
438
472
  timezone?: string | null | undefined;
439
473
  isMultiDay?: boolean | null | undefined;
440
474
  doors?: string | null | undefined;
@@ -722,8 +756,25 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
722
756
  } | null | undefined;
723
757
  } | null | undefined;
724
758
  schedule?: {
759
+ type: "single" | "multiple";
725
760
  startDate: NativeDate;
726
761
  endDate: NativeDate;
762
+ sessions: mongoose.Types.DocumentArray<{
763
+ date: NativeDate;
764
+ startTime: NativeDate;
765
+ endTime: NativeDate;
766
+ doorsOpen?: NativeDate | null | undefined;
767
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, any, {
768
+ date: NativeDate;
769
+ startTime: NativeDate;
770
+ endTime: NativeDate;
771
+ doorsOpen?: NativeDate | null | undefined;
772
+ }> & {
773
+ date: NativeDate;
774
+ startTime: NativeDate;
775
+ endTime: NativeDate;
776
+ doorsOpen?: NativeDate | null | undefined;
777
+ }>;
727
778
  timezone?: string | null | undefined;
728
779
  isMultiDay?: boolean | null | undefined;
729
780
  doors?: string | null | undefined;
package/dist/Event.js CHANGED
@@ -104,12 +104,20 @@ const ticketSchema = new mongoose_1.default.Schema({
104
104
  tier: { type: String, default: 'regular' },
105
105
  salesWindow: salesWindowSchema,
106
106
  });
107
+ const sessionSchema = new mongoose_1.default.Schema({
108
+ date: { type: Date, required: true },
109
+ startTime: { type: Date, required: true },
110
+ endTime: { type: Date, required: true },
111
+ doorsOpen: Date,
112
+ }, { _id: false });
107
113
  const scheduleSchema = new mongoose_1.default.Schema({
108
114
  startDate: { type: Date, required: true },
109
115
  endDate: { type: Date, required: true },
110
116
  timezone: String,
111
117
  isMultiDay: Boolean,
112
118
  doors: String,
119
+ type: { type: String, enum: ['single', 'multiple'], default: 'single' },
120
+ sessions: [sessionSchema]
113
121
  }, { _id: false });
114
122
  const metricsSchema = new mongoose_1.default.Schema({
115
123
  views: { type: Number, default: 0 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mac777/project-pinecone-models",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/Event.ts CHANGED
@@ -112,12 +112,21 @@ const ticketSchema = new mongoose.Schema({
112
112
  salesWindow: salesWindowSchema,
113
113
  });
114
114
 
115
+ const sessionSchema = new mongoose.Schema({
116
+ date: { type: Date, required: true },
117
+ startTime: { type: Date, required: true },
118
+ endTime: { type: Date, required: true },
119
+ doorsOpen: Date,
120
+ }, { _id: false });
121
+
115
122
  const scheduleSchema = new mongoose.Schema({
116
123
  startDate: { type: Date, required: true },
117
124
  endDate: { type: Date, required: true },
118
125
  timezone: String,
119
126
  isMultiDay: Boolean,
120
127
  doors: String,
128
+ type: { type: String, enum: ['single', 'multiple'], default: 'single' },
129
+ sessions: [sessionSchema]
121
130
  }, { _id: false });
122
131
 
123
132
  const metricsSchema = new mongoose.Schema({