@timardex/cluemart-server-shared 1.0.88 → 1.0.90
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/{chunk-H4HID6QS.mjs → chunk-5PNTTWNZ.mjs} +81 -16
- package/dist/chunk-5PNTTWNZ.mjs.map +1 -0
- package/dist/index.cjs +81 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +32 -2
- package/dist/index.d.ts +32 -2
- package/dist/index.mjs +80 -15
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +81 -15
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +32 -2
- package/dist/mongoose/index.d.ts +32 -2
- package/dist/mongoose/index.mjs +3 -1
- package/dist/service/index.cjs +79 -15
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-H4HID6QS.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -570,6 +570,36 @@ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallTy
|
|
|
570
570
|
} & {
|
|
571
571
|
__v: number;
|
|
572
572
|
}>;
|
|
573
|
+
declare const refundPolicySchema: mongoose.Schema<{
|
|
574
|
+
cancelledByOrganiser: string[];
|
|
575
|
+
cancelledByVendor: string[];
|
|
576
|
+
}, mongoose.Model<{
|
|
577
|
+
cancelledByOrganiser: string[];
|
|
578
|
+
cancelledByVendor: string[];
|
|
579
|
+
}, any, any, any, mongoose.Document<unknown, any, {
|
|
580
|
+
cancelledByOrganiser: string[];
|
|
581
|
+
cancelledByVendor: string[];
|
|
582
|
+
}, any, {}> & {
|
|
583
|
+
cancelledByOrganiser: string[];
|
|
584
|
+
cancelledByVendor: string[];
|
|
585
|
+
} & {
|
|
586
|
+
_id: mongoose.Types.ObjectId;
|
|
587
|
+
} & {
|
|
588
|
+
__v: number;
|
|
589
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
590
|
+
cancelledByOrganiser: string[];
|
|
591
|
+
cancelledByVendor: string[];
|
|
592
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
593
|
+
cancelledByOrganiser: string[];
|
|
594
|
+
cancelledByVendor: string[];
|
|
595
|
+
}>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
|
|
596
|
+
cancelledByOrganiser: string[];
|
|
597
|
+
cancelledByVendor: string[];
|
|
598
|
+
}> & {
|
|
599
|
+
_id: mongoose.Types.ObjectId;
|
|
600
|
+
} & {
|
|
601
|
+
__v: number;
|
|
602
|
+
}>;
|
|
573
603
|
type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
|
|
574
604
|
eventId: ObjectId;
|
|
575
605
|
};
|
|
@@ -595,7 +625,7 @@ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoo
|
|
|
595
625
|
}, any>;
|
|
596
626
|
|
|
597
627
|
type SchemaPostType = PostType;
|
|
598
|
-
declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "content"> & {
|
|
628
|
+
declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "content" | "coverUpload"> & {
|
|
599
629
|
_id: string;
|
|
600
630
|
content: PostContentType[];
|
|
601
631
|
createdAt: Date;
|
|
@@ -644,4 +674,4 @@ declare function sendPushNotifications({ data, message, title, userIds, }: Schem
|
|
|
644
674
|
*/
|
|
645
675
|
declare function updateAdStatuses(): Promise<void>;
|
|
646
676
|
|
|
647
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, EnumPubSubEvents, EventInfoModel, EventModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, dateTimeSchema, locationGeoSchema, locationsSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, userLicenseSchema };
|
|
677
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, EnumPubSubEvents, EventInfoModel, EventModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, userLicenseSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -570,6 +570,36 @@ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallTy
|
|
|
570
570
|
} & {
|
|
571
571
|
__v: number;
|
|
572
572
|
}>;
|
|
573
|
+
declare const refundPolicySchema: mongoose.Schema<{
|
|
574
|
+
cancelledByOrganiser: string[];
|
|
575
|
+
cancelledByVendor: string[];
|
|
576
|
+
}, mongoose.Model<{
|
|
577
|
+
cancelledByOrganiser: string[];
|
|
578
|
+
cancelledByVendor: string[];
|
|
579
|
+
}, any, any, any, mongoose.Document<unknown, any, {
|
|
580
|
+
cancelledByOrganiser: string[];
|
|
581
|
+
cancelledByVendor: string[];
|
|
582
|
+
}, any, {}> & {
|
|
583
|
+
cancelledByOrganiser: string[];
|
|
584
|
+
cancelledByVendor: string[];
|
|
585
|
+
} & {
|
|
586
|
+
_id: mongoose.Types.ObjectId;
|
|
587
|
+
} & {
|
|
588
|
+
__v: number;
|
|
589
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
590
|
+
cancelledByOrganiser: string[];
|
|
591
|
+
cancelledByVendor: string[];
|
|
592
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
593
|
+
cancelledByOrganiser: string[];
|
|
594
|
+
cancelledByVendor: string[];
|
|
595
|
+
}>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
|
|
596
|
+
cancelledByOrganiser: string[];
|
|
597
|
+
cancelledByVendor: string[];
|
|
598
|
+
}> & {
|
|
599
|
+
_id: mongoose.Types.ObjectId;
|
|
600
|
+
} & {
|
|
601
|
+
__v: number;
|
|
602
|
+
}>;
|
|
573
603
|
type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
|
|
574
604
|
eventId: ObjectId;
|
|
575
605
|
};
|
|
@@ -595,7 +625,7 @@ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoo
|
|
|
595
625
|
}, any>;
|
|
596
626
|
|
|
597
627
|
type SchemaPostType = PostType;
|
|
598
|
-
declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "content"> & {
|
|
628
|
+
declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "content" | "coverUpload"> & {
|
|
599
629
|
_id: string;
|
|
600
630
|
content: PostContentType[];
|
|
601
631
|
createdAt: Date;
|
|
@@ -644,4 +674,4 @@ declare function sendPushNotifications({ data, message, title, userIds, }: Schem
|
|
|
644
674
|
*/
|
|
645
675
|
declare function updateAdStatuses(): Promise<void>;
|
|
646
676
|
|
|
647
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, EnumPubSubEvents, EventInfoModel, EventModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, dateTimeSchema, locationGeoSchema, locationsSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, userLicenseSchema };
|
|
677
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, EnumPubSubEvents, EventInfoModel, EventModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, userLicenseSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -8198,6 +8198,7 @@ var LICENCE_FIELDS_FRAGMENT = gql`
|
|
|
8198
8198
|
expiryDate
|
|
8199
8199
|
issuedDate
|
|
8200
8200
|
licenceType
|
|
8201
|
+
prevLicenceType
|
|
8201
8202
|
}
|
|
8202
8203
|
`;
|
|
8203
8204
|
var ASSOCIATES_FIELDS_FRAGMENT = gql`
|
|
@@ -8434,6 +8435,10 @@ var EVENT_INFO = gql`
|
|
|
8434
8435
|
link
|
|
8435
8436
|
paymentMethod
|
|
8436
8437
|
}
|
|
8438
|
+
refundPolicy {
|
|
8439
|
+
cancelledByOrganiser
|
|
8440
|
+
cancelledByVendor
|
|
8441
|
+
}
|
|
8437
8442
|
requirements {
|
|
8438
8443
|
category
|
|
8439
8444
|
label
|
|
@@ -9939,9 +9944,6 @@ var DELETE_PARTNER_MUTATION = gql`
|
|
|
9939
9944
|
`;
|
|
9940
9945
|
var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql`
|
|
9941
9946
|
fragment PostContentDataFields on PostContentData {
|
|
9942
|
-
cover {
|
|
9943
|
-
...ResourceImageFields
|
|
9944
|
-
}
|
|
9945
9947
|
textarea {
|
|
9946
9948
|
title
|
|
9947
9949
|
data
|
|
@@ -9980,6 +9982,9 @@ var POST_FIELDS_FRAGMENT = gql`
|
|
|
9980
9982
|
content {
|
|
9981
9983
|
...PostContentFields
|
|
9982
9984
|
}
|
|
9985
|
+
cover {
|
|
9986
|
+
...ResourceImageFields
|
|
9987
|
+
}
|
|
9983
9988
|
createdAt
|
|
9984
9989
|
deletedAt
|
|
9985
9990
|
postType
|
|
@@ -9992,6 +9997,7 @@ var POST_FIELDS_FRAGMENT = gql`
|
|
|
9992
9997
|
updatedAt
|
|
9993
9998
|
}
|
|
9994
9999
|
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
10000
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
9995
10001
|
`;
|
|
9996
10002
|
var GET_POSTS = gql`
|
|
9997
10003
|
query getPosts {
|
|
@@ -10335,7 +10341,17 @@ var eventInfoSchema = create$3().shape({
|
|
|
10335
10341
|
return value < applicationDeadlineHours;
|
|
10336
10342
|
}
|
|
10337
10343
|
),
|
|
10338
|
-
paymentInfo: create$2().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required")
|
|
10344
|
+
paymentInfo: create$2().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required"),
|
|
10345
|
+
refundPolicy: create$3({
|
|
10346
|
+
cancelledByOrganiser: create$2().of(create$6().defined()).min(
|
|
10347
|
+
1,
|
|
10348
|
+
"At least one refund policy for cancellations by organiser is required"
|
|
10349
|
+
).required("Refund policy for cancellations by organiser is required"),
|
|
10350
|
+
cancelledByVendor: create$2().of(create$6().defined()).min(
|
|
10351
|
+
1,
|
|
10352
|
+
"At least one refund policy for cancellations by vendor is required"
|
|
10353
|
+
).required("Refund policy for cancellations by vendor is required")
|
|
10354
|
+
})
|
|
10339
10355
|
});
|
|
10340
10356
|
var vendroMenuSchema = create$3().shape({
|
|
10341
10357
|
description: create$6().trim().nullable().defined().test(
|
|
@@ -10388,15 +10404,27 @@ var vendorInfoSchema = create$3().shape({
|
|
|
10388
10404
|
).min(1, "Food flavors list must contain at least one item").required("Food flavors are required"),
|
|
10389
10405
|
packaging: create$2().of(create$6().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
|
|
10390
10406
|
priceRange: create$3().shape({
|
|
10391
|
-
max: create$
|
|
10407
|
+
max: create$6().required("Max price is required").test(
|
|
10408
|
+
"is-number",
|
|
10409
|
+
"Max price must be a valid number",
|
|
10410
|
+
(value) => value !== void 0 && value !== "" && !isNaN(Number(value))
|
|
10411
|
+
).test(
|
|
10392
10412
|
"is-greater",
|
|
10393
10413
|
"Max price must be greater than or equal to Min price",
|
|
10394
10414
|
function(max) {
|
|
10395
10415
|
const { min } = this.parent;
|
|
10396
|
-
|
|
10416
|
+
if (!max || !min) return true;
|
|
10417
|
+
const maxNum = Number(max);
|
|
10418
|
+
const minNum = Number(min);
|
|
10419
|
+
if (isNaN(maxNum) || isNaN(minNum)) return true;
|
|
10420
|
+
return maxNum >= minNum;
|
|
10397
10421
|
}
|
|
10398
10422
|
),
|
|
10399
|
-
min: create$
|
|
10423
|
+
min: create$6().required("Min price is required").test(
|
|
10424
|
+
"is-number",
|
|
10425
|
+
"Min price must be a valid number",
|
|
10426
|
+
(value) => value !== void 0 && value !== "" && !isNaN(Number(value))
|
|
10427
|
+
)
|
|
10400
10428
|
}),
|
|
10401
10429
|
producedIn: create$2().of(create$6().defined()).min(1, "Produced in list must contain at least one item").required("Produced in is required")
|
|
10402
10430
|
}),
|
|
@@ -10434,8 +10462,24 @@ var vendorInfoSchema = create$3().shape({
|
|
|
10434
10462
|
}).optional(),
|
|
10435
10463
|
stallInfo: create$3().shape({
|
|
10436
10464
|
size: create$3().shape({
|
|
10437
|
-
depth: create$
|
|
10438
|
-
|
|
10465
|
+
depth: create$6().required("Depth is required").test(
|
|
10466
|
+
"is-number",
|
|
10467
|
+
"Depth must be a valid number",
|
|
10468
|
+
(value) => value !== void 0 && value !== "" && !isNaN(Number(value))
|
|
10469
|
+
).test(
|
|
10470
|
+
"is-positive",
|
|
10471
|
+
"Depth must be greater than 0",
|
|
10472
|
+
(value) => value !== void 0 && value !== "" && Number(value) > 0
|
|
10473
|
+
),
|
|
10474
|
+
width: create$6().required("Width is required").test(
|
|
10475
|
+
"is-number",
|
|
10476
|
+
"Width must be a valid number",
|
|
10477
|
+
(value) => value !== void 0 && value !== "" && !isNaN(Number(value))
|
|
10478
|
+
).test(
|
|
10479
|
+
"is-positive",
|
|
10480
|
+
"Width must be greater than 0",
|
|
10481
|
+
(value) => value !== void 0 && value !== "" && Number(value) > 0
|
|
10482
|
+
)
|
|
10439
10483
|
})
|
|
10440
10484
|
}),
|
|
10441
10485
|
vendorId: create$6().trim().required("Vendor ID is required")
|
|
@@ -10673,7 +10717,6 @@ var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
|
10673
10717
|
return EnumPostType2;
|
|
10674
10718
|
})(EnumPostType || {});
|
|
10675
10719
|
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
10676
|
-
EnumPostContentType2["COVER"] = "cover";
|
|
10677
10720
|
EnumPostContentType2["IMAGE"] = "image";
|
|
10678
10721
|
EnumPostContentType2["LIST"] = "list";
|
|
10679
10722
|
EnumPostContentType2["TEXTAREA"] = "textarea";
|
|
@@ -10859,6 +10902,13 @@ var requirementsSchema = new MongooseSchema(
|
|
|
10859
10902
|
// Prevents Mongoose from creating an additional _id field for
|
|
10860
10903
|
}
|
|
10861
10904
|
);
|
|
10905
|
+
var refundPolicySchema = new MongooseSchema(
|
|
10906
|
+
{
|
|
10907
|
+
cancelledByOrganiser: { required: true, type: [String] },
|
|
10908
|
+
cancelledByVendor: { required: true, type: [String] }
|
|
10909
|
+
},
|
|
10910
|
+
{ _id: false }
|
|
10911
|
+
);
|
|
10862
10912
|
var schema = new MongooseSchema(
|
|
10863
10913
|
{
|
|
10864
10914
|
applicationDeadlineHours: { required: true, type: Number },
|
|
@@ -10871,6 +10921,7 @@ var schema = new MongooseSchema(
|
|
|
10871
10921
|
packInTime: { required: true, type: Number },
|
|
10872
10922
|
paymentDueHours: { required: true, type: Number },
|
|
10873
10923
|
paymentInfo: [paymentInfoSchema2],
|
|
10924
|
+
refundPolicy: { required: true, type: refundPolicySchema },
|
|
10874
10925
|
requirements: [requirementsSchema]
|
|
10875
10926
|
},
|
|
10876
10927
|
{ timestamps: true }
|
|
@@ -11024,6 +11075,11 @@ var userLicenseSchema = new MongooseSchema3(
|
|
|
11024
11075
|
enum: Object.values(EnumUserLicence),
|
|
11025
11076
|
required: true,
|
|
11026
11077
|
type: String
|
|
11078
|
+
},
|
|
11079
|
+
prevLicenceType: {
|
|
11080
|
+
enum: Object.values(EnumUserLicence),
|
|
11081
|
+
required: false,
|
|
11082
|
+
type: String
|
|
11027
11083
|
}
|
|
11028
11084
|
},
|
|
11029
11085
|
{ _id: false, timestamps: false }
|
|
@@ -11981,8 +12037,8 @@ var schema10 = new MongooseSchema15(
|
|
|
11981
12037
|
},
|
|
11982
12038
|
packaging: { required: true, type: [String] },
|
|
11983
12039
|
priceRange: {
|
|
11984
|
-
max: { required: true, type:
|
|
11985
|
-
min: { required: true, type:
|
|
12040
|
+
max: { required: true, type: String },
|
|
12041
|
+
min: { required: true, type: String }
|
|
11986
12042
|
},
|
|
11987
12043
|
producedIn: { required: true, type: [String] }
|
|
11988
12044
|
},
|
|
@@ -11993,8 +12049,8 @@ var schema10 = new MongooseSchema15(
|
|
|
11993
12049
|
},
|
|
11994
12050
|
stallInfo: {
|
|
11995
12051
|
size: {
|
|
11996
|
-
depth: { required: true, type:
|
|
11997
|
-
width: { required: true, type:
|
|
12052
|
+
depth: { required: true, type: String },
|
|
12053
|
+
width: { required: true, type: String }
|
|
11998
12054
|
}
|
|
11999
12055
|
},
|
|
12000
12056
|
vendorId: {
|
|
@@ -12100,7 +12156,15 @@ var schema13 = new MongooseSchema18(
|
|
|
12100
12156
|
{
|
|
12101
12157
|
active: { default: true, required: true, type: Boolean },
|
|
12102
12158
|
caption: { required: true, type: String },
|
|
12103
|
-
content:
|
|
12159
|
+
content: {
|
|
12160
|
+
default: [],
|
|
12161
|
+
required: false,
|
|
12162
|
+
type: [contentSchema]
|
|
12163
|
+
},
|
|
12164
|
+
cover: {
|
|
12165
|
+
required: false,
|
|
12166
|
+
type: ResourceImageTypeSchema
|
|
12167
|
+
},
|
|
12104
12168
|
deletedAt: { default: null, required: false, type: Date },
|
|
12105
12169
|
postType: {
|
|
12106
12170
|
enum: Object.values(EnumPostType),
|
|
@@ -12385,6 +12449,7 @@ export {
|
|
|
12385
12449
|
locationGeoSchema,
|
|
12386
12450
|
locationsSchema,
|
|
12387
12451
|
mongoose21 as mongoose,
|
|
12452
|
+
refundPolicySchema,
|
|
12388
12453
|
relationDatesSchema,
|
|
12389
12454
|
resourceRelationsSchema,
|
|
12390
12455
|
saveNotificationsInDb,
|