@mac777/project-pinecone-models 1.0.10 → 1.0.12
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 +9 -9
- package/dist/Event.js +5 -2
- package/package.json +1 -1
- package/src/Event.ts +5 -2
package/dist/Event.d.ts
CHANGED
|
@@ -176,7 +176,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
176
176
|
verification?: {
|
|
177
177
|
status: "pending" | "rejected" | "unverified" | "verified" | "needs_info";
|
|
178
178
|
documents: mongoose.Types.DocumentArray<{
|
|
179
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
179
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
180
180
|
url?: string | null | undefined;
|
|
181
181
|
filename?: string | null | undefined;
|
|
182
182
|
objectKey?: string | null | undefined;
|
|
@@ -184,7 +184,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
184
184
|
rejectionReason?: string | null | undefined;
|
|
185
185
|
status?: "pending" | "approved" | "rejected" | null | undefined;
|
|
186
186
|
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, any, {
|
|
187
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
187
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
188
188
|
url?: string | null | undefined;
|
|
189
189
|
filename?: string | null | undefined;
|
|
190
190
|
objectKey?: string | null | undefined;
|
|
@@ -192,7 +192,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
192
192
|
rejectionReason?: string | null | undefined;
|
|
193
193
|
status?: "pending" | "approved" | "rejected" | null | undefined;
|
|
194
194
|
}> & {
|
|
195
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
195
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
196
196
|
url?: string | null | undefined;
|
|
197
197
|
filename?: string | null | undefined;
|
|
198
198
|
objectKey?: string | null | undefined;
|
|
@@ -460,7 +460,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
460
460
|
verification?: {
|
|
461
461
|
status: "pending" | "rejected" | "unverified" | "verified" | "needs_info";
|
|
462
462
|
documents: mongoose.Types.DocumentArray<{
|
|
463
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
463
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
464
464
|
url?: string | null | undefined;
|
|
465
465
|
filename?: string | null | undefined;
|
|
466
466
|
objectKey?: string | null | undefined;
|
|
@@ -468,7 +468,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
468
468
|
rejectionReason?: string | null | undefined;
|
|
469
469
|
status?: "pending" | "approved" | "rejected" | null | undefined;
|
|
470
470
|
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, any, {
|
|
471
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
471
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
472
472
|
url?: string | null | undefined;
|
|
473
473
|
filename?: string | null | undefined;
|
|
474
474
|
objectKey?: string | null | undefined;
|
|
@@ -476,7 +476,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
476
476
|
rejectionReason?: string | null | undefined;
|
|
477
477
|
status?: "pending" | "approved" | "rejected" | null | undefined;
|
|
478
478
|
}> & {
|
|
479
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
479
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
480
480
|
url?: string | null | undefined;
|
|
481
481
|
filename?: string | null | undefined;
|
|
482
482
|
objectKey?: string | null | undefined;
|
|
@@ -744,7 +744,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
744
744
|
verification?: {
|
|
745
745
|
status: "pending" | "rejected" | "unverified" | "verified" | "needs_info";
|
|
746
746
|
documents: mongoose.Types.DocumentArray<{
|
|
747
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
747
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
748
748
|
url?: string | null | undefined;
|
|
749
749
|
filename?: string | null | undefined;
|
|
750
750
|
objectKey?: string | null | undefined;
|
|
@@ -752,7 +752,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
752
752
|
rejectionReason?: string | null | undefined;
|
|
753
753
|
status?: "pending" | "approved" | "rejected" | null | undefined;
|
|
754
754
|
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, any, {
|
|
755
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
755
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
756
756
|
url?: string | null | undefined;
|
|
757
757
|
filename?: string | null | undefined;
|
|
758
758
|
objectKey?: string | null | undefined;
|
|
@@ -760,7 +760,7 @@ declare const eventSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
760
760
|
rejectionReason?: string | null | undefined;
|
|
761
761
|
status?: "pending" | "approved" | "rejected" | null | undefined;
|
|
762
762
|
}> & {
|
|
763
|
-
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "other" | null | undefined;
|
|
763
|
+
type?: "venue_booking" | "permit" | "insurance" | "license" | "portfolio" | "additional_docs" | "other" | null | undefined;
|
|
764
764
|
url?: string | null | undefined;
|
|
765
765
|
filename?: string | null | undefined;
|
|
766
766
|
objectKey?: string | null | undefined;
|
package/dist/Event.js
CHANGED
|
@@ -32,7 +32,10 @@ const venueSchema = new mongoose_1.default.Schema({
|
|
|
32
32
|
enum: ['Point'],
|
|
33
33
|
default: 'Point'
|
|
34
34
|
},
|
|
35
|
-
coordinates:
|
|
35
|
+
coordinates: {
|
|
36
|
+
type: [Number],
|
|
37
|
+
default: [0, 0]
|
|
38
|
+
} // [lng, lat]
|
|
36
39
|
},
|
|
37
40
|
capacity: { type: Number, required: true, min: 10, max: 100000 },
|
|
38
41
|
type: { type: String, enum: ['indoor', 'outdoor', 'hybrid'] },
|
|
@@ -51,7 +54,7 @@ const organizerSchema = new mongoose_1.default.Schema({
|
|
|
51
54
|
contactPerson: contactPersonSchema,
|
|
52
55
|
}, { _id: false });
|
|
53
56
|
const documentSchema = new mongoose_1.default.Schema({
|
|
54
|
-
type: { type: String, enum: ['venue_booking', 'permit', 'insurance', 'license', 'portfolio', 'other'] },
|
|
57
|
+
type: { type: String, enum: ['venue_booking', 'permit', 'insurance', 'license', 'portfolio', 'additional_docs', 'other'] },
|
|
55
58
|
url: String,
|
|
56
59
|
filename: String,
|
|
57
60
|
objectKey: String,
|
package/package.json
CHANGED
package/src/Event.ts
CHANGED
|
@@ -30,7 +30,10 @@ const venueSchema = new mongoose.Schema({
|
|
|
30
30
|
enum: ['Point'],
|
|
31
31
|
default: 'Point'
|
|
32
32
|
},
|
|
33
|
-
coordinates:
|
|
33
|
+
coordinates: {
|
|
34
|
+
type: [Number],
|
|
35
|
+
default: [0, 0]
|
|
36
|
+
} // [lng, lat]
|
|
34
37
|
},
|
|
35
38
|
capacity: { type: Number, required: true, min: 10, max: 100000 },
|
|
36
39
|
type: { type: String, enum: ['indoor', 'outdoor', 'hybrid'] },
|
|
@@ -52,7 +55,7 @@ const organizerSchema = new mongoose.Schema({
|
|
|
52
55
|
}, { _id: false });
|
|
53
56
|
|
|
54
57
|
const documentSchema = new mongoose.Schema({
|
|
55
|
-
type: { type: String, enum: ['venue_booking', 'permit', 'insurance', 'license', 'portfolio', 'other'] },
|
|
58
|
+
type: { type: String, enum: ['venue_booking', 'permit', 'insurance', 'license', 'portfolio', 'additional_docs', 'other'] },
|
|
56
59
|
url: String,
|
|
57
60
|
filename: String,
|
|
58
61
|
objectKey: String,
|