@timardex/cluemart-server-shared 1.0.257 → 1.0.260
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-LG23YZU7.mjs → chunk-JFVETLOC.mjs} +62 -8
- package/dist/chunk-JFVETLOC.mjs.map +1 -0
- package/dist/index.cjs +62 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -7
- package/dist/index.d.ts +17 -7
- package/dist/index.mjs +61 -7
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +62 -7
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +17 -7
- package/dist/mongoose/index.d.ts +17 -7
- package/dist/mongoose/index.mjs +3 -1
- package/dist/service/index.cjs +60 -7
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-LG23YZU7.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, SocialShareResourceType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
export { default as mongoose } from 'mongoose';
|
|
5
5
|
import { NotificationCount, DateTimeType as DateTimeType$1 } from '@timardex/cluemart-shared/types';
|
|
@@ -427,6 +427,15 @@ declare const baseResourceFields: {
|
|
|
427
427
|
}>;
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
+
declare const socialShareResourceSchema: mongoose.Schema<SocialShareResourceType, mongoose.Model<SocialShareResourceType, any, any, any, mongoose.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
|
|
431
|
+
_id: mongoose.Types.ObjectId;
|
|
432
|
+
} & {
|
|
433
|
+
__v: number;
|
|
434
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialShareResourceType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialShareResourceType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialShareResourceType> & {
|
|
435
|
+
_id: mongoose.Types.ObjectId;
|
|
436
|
+
} & {
|
|
437
|
+
__v: number;
|
|
438
|
+
}>;
|
|
430
439
|
|
|
431
440
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
432
441
|
eventId?: mongoose.Types.ObjectId;
|
|
@@ -573,7 +582,7 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
|
|
|
573
582
|
vendorInfoId: ObjectId;
|
|
574
583
|
unregisteredVendorId?: ObjectId | null;
|
|
575
584
|
};
|
|
576
|
-
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "
|
|
585
|
+
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
|
|
577
586
|
adIds?: ObjectId[];
|
|
578
587
|
owner: SchemaOwnerType;
|
|
579
588
|
vendorInfoId: ObjectId;
|
|
@@ -616,7 +625,7 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
|
616
625
|
eventInfoId: ObjectId;
|
|
617
626
|
owner: SchemaOwnerType;
|
|
618
627
|
};
|
|
619
|
-
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "
|
|
628
|
+
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
|
|
620
629
|
adIds?: ObjectId[];
|
|
621
630
|
eventInfoId: ObjectId;
|
|
622
631
|
owner: SchemaOwnerType;
|
|
@@ -659,7 +668,7 @@ type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
|
|
|
659
668
|
adIds?: ObjectId[];
|
|
660
669
|
owner: SchemaOwnerType;
|
|
661
670
|
};
|
|
662
|
-
declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "
|
|
671
|
+
declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
|
|
663
672
|
adIds?: ObjectId[];
|
|
664
673
|
owner: SchemaOwnerType;
|
|
665
674
|
} & Required<{
|
|
@@ -672,10 +681,11 @@ type SchemaPostType = PostType;
|
|
|
672
681
|
declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
|
|
673
682
|
_id: string;
|
|
674
683
|
content: PostContentType[];
|
|
675
|
-
slug: string;
|
|
676
|
-
resource?: PostResource | null;
|
|
677
684
|
createdAt: Date;
|
|
678
685
|
deletedAt: Date | null;
|
|
686
|
+
resource?: PostResource | null;
|
|
687
|
+
slug: string;
|
|
688
|
+
sharePublic?: _timardex_cluemart_shared.SocialShareResourceType | null;
|
|
679
689
|
updatedAt: Date | null;
|
|
680
690
|
} & Required<{
|
|
681
691
|
_id: string;
|
|
@@ -780,4 +790,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
780
790
|
*/
|
|
781
791
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
782
792
|
|
|
783
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, 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 SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, didRemoveAnyEventDates, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
|
|
793
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, 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 SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, didRemoveAnyEventDates, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, socialShareResourceSchema, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, SocialShareResourceType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
export { default as mongoose } from 'mongoose';
|
|
5
5
|
import { NotificationCount, DateTimeType as DateTimeType$1 } from '@timardex/cluemart-shared/types';
|
|
@@ -427,6 +427,15 @@ declare const baseResourceFields: {
|
|
|
427
427
|
}>;
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
+
declare const socialShareResourceSchema: mongoose.Schema<SocialShareResourceType, mongoose.Model<SocialShareResourceType, any, any, any, mongoose.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
|
|
431
|
+
_id: mongoose.Types.ObjectId;
|
|
432
|
+
} & {
|
|
433
|
+
__v: number;
|
|
434
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialShareResourceType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialShareResourceType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialShareResourceType> & {
|
|
435
|
+
_id: mongoose.Types.ObjectId;
|
|
436
|
+
} & {
|
|
437
|
+
__v: number;
|
|
438
|
+
}>;
|
|
430
439
|
|
|
431
440
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
432
441
|
eventId?: mongoose.Types.ObjectId;
|
|
@@ -573,7 +582,7 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
|
|
|
573
582
|
vendorInfoId: ObjectId;
|
|
574
583
|
unregisteredVendorId?: ObjectId | null;
|
|
575
584
|
};
|
|
576
|
-
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "
|
|
585
|
+
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
|
|
577
586
|
adIds?: ObjectId[];
|
|
578
587
|
owner: SchemaOwnerType;
|
|
579
588
|
vendorInfoId: ObjectId;
|
|
@@ -616,7 +625,7 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
|
616
625
|
eventInfoId: ObjectId;
|
|
617
626
|
owner: SchemaOwnerType;
|
|
618
627
|
};
|
|
619
|
-
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "
|
|
628
|
+
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
|
|
620
629
|
adIds?: ObjectId[];
|
|
621
630
|
eventInfoId: ObjectId;
|
|
622
631
|
owner: SchemaOwnerType;
|
|
@@ -659,7 +668,7 @@ type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
|
|
|
659
668
|
adIds?: ObjectId[];
|
|
660
669
|
owner: SchemaOwnerType;
|
|
661
670
|
};
|
|
662
|
-
declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "
|
|
671
|
+
declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
|
|
663
672
|
adIds?: ObjectId[];
|
|
664
673
|
owner: SchemaOwnerType;
|
|
665
674
|
} & Required<{
|
|
@@ -672,10 +681,11 @@ type SchemaPostType = PostType;
|
|
|
672
681
|
declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
|
|
673
682
|
_id: string;
|
|
674
683
|
content: PostContentType[];
|
|
675
|
-
slug: string;
|
|
676
|
-
resource?: PostResource | null;
|
|
677
684
|
createdAt: Date;
|
|
678
685
|
deletedAt: Date | null;
|
|
686
|
+
resource?: PostResource | null;
|
|
687
|
+
slug: string;
|
|
688
|
+
sharePublic?: _timardex_cluemart_shared.SocialShareResourceType | null;
|
|
679
689
|
updatedAt: Date | null;
|
|
680
690
|
} & Required<{
|
|
681
691
|
_id: string;
|
|
@@ -780,4 +790,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
780
790
|
*/
|
|
781
791
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
782
792
|
|
|
783
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, 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 SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, didRemoveAnyEventDates, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
|
|
793
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, 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 SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, didRemoveAnyEventDates, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, socialShareResourceSchema, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -5086,6 +5086,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
|
|
|
5086
5086
|
postType
|
|
5087
5087
|
}
|
|
5088
5088
|
`;
|
|
5089
|
+
var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
5090
|
+
fragment SocialShareResourceFields on SocialShareResourceType {
|
|
5091
|
+
qrCode {
|
|
5092
|
+
...ResourceImageFields
|
|
5093
|
+
}
|
|
5094
|
+
socialImage {
|
|
5095
|
+
...ResourceImageFields
|
|
5096
|
+
}
|
|
5097
|
+
}
|
|
5098
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5099
|
+
`;
|
|
5089
5100
|
var EVENT_INFO = gql`
|
|
5090
5101
|
fragment EventInfoFields on EventInfoType {
|
|
5091
5102
|
_id
|
|
@@ -5181,6 +5192,12 @@ var EVENT = gql`
|
|
|
5181
5192
|
socialMedia {
|
|
5182
5193
|
...SocialMediaFields
|
|
5183
5194
|
}
|
|
5195
|
+
sharePublic {
|
|
5196
|
+
...SocialShareResourceFields
|
|
5197
|
+
}
|
|
5198
|
+
shareRelation {
|
|
5199
|
+
...SocialShareResourceFields
|
|
5200
|
+
}
|
|
5184
5201
|
slug
|
|
5185
5202
|
tags
|
|
5186
5203
|
termsAgreement {
|
|
@@ -5199,6 +5216,7 @@ var EVENT = gql`
|
|
|
5199
5216
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5200
5217
|
${RELATION_DATES_FRAGMENT}
|
|
5201
5218
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5219
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5202
5220
|
`;
|
|
5203
5221
|
var GET_EVENTS = gql`
|
|
5204
5222
|
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
@@ -5378,6 +5396,12 @@ var VENDOR = gql`
|
|
|
5378
5396
|
socialMedia {
|
|
5379
5397
|
...SocialMediaFields
|
|
5380
5398
|
}
|
|
5399
|
+
sharePublic {
|
|
5400
|
+
...SocialShareResourceFields
|
|
5401
|
+
}
|
|
5402
|
+
shareRelation {
|
|
5403
|
+
...SocialShareResourceFields
|
|
5404
|
+
}
|
|
5381
5405
|
termsAgreement {
|
|
5382
5406
|
...TermsAgreementFields
|
|
5383
5407
|
}
|
|
@@ -5398,6 +5422,7 @@ var VENDOR = gql`
|
|
|
5398
5422
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5399
5423
|
${RELATION_DATES_FRAGMENT}
|
|
5400
5424
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5425
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5401
5426
|
`;
|
|
5402
5427
|
var VENDOR_ATTRIBUTES_FRAGMENT = gql`
|
|
5403
5428
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -5585,6 +5610,9 @@ var PARTNER = gql`
|
|
|
5585
5610
|
...SocialMediaFields
|
|
5586
5611
|
}
|
|
5587
5612
|
slug
|
|
5613
|
+
sharePublic {
|
|
5614
|
+
...SocialShareResourceFields
|
|
5615
|
+
}
|
|
5588
5616
|
termsAgreement {
|
|
5589
5617
|
...TermsAgreementFields
|
|
5590
5618
|
}
|
|
@@ -5599,6 +5627,7 @@ var PARTNER = gql`
|
|
|
5599
5627
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5600
5628
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5601
5629
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5630
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5602
5631
|
`;
|
|
5603
5632
|
var GET_PARTNERS = gql`
|
|
5604
5633
|
query getPartners {
|
|
@@ -5767,6 +5796,14 @@ var POST_CONTENT_FIELDS_FRAGMENT = gql`
|
|
|
5767
5796
|
}
|
|
5768
5797
|
${POST_CONTENT_DATA_FIELDS_FRAGMENT}
|
|
5769
5798
|
`;
|
|
5799
|
+
var POST_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
5800
|
+
fragment PostResourceFields on PostResourceType {
|
|
5801
|
+
resourceId
|
|
5802
|
+
resourceSlug
|
|
5803
|
+
resourceRegion
|
|
5804
|
+
resourceType
|
|
5805
|
+
}
|
|
5806
|
+
`;
|
|
5770
5807
|
var POST_FIELDS_FRAGMENT = gql`
|
|
5771
5808
|
fragment PostFields on PostType {
|
|
5772
5809
|
_id
|
|
@@ -5782,18 +5819,20 @@ var POST_FIELDS_FRAGMENT = gql`
|
|
|
5782
5819
|
deletedAt
|
|
5783
5820
|
postType
|
|
5784
5821
|
resource {
|
|
5785
|
-
|
|
5786
|
-
resourceSlug
|
|
5787
|
-
resourceRegion
|
|
5788
|
-
resourceType
|
|
5822
|
+
...PostResourceFields
|
|
5789
5823
|
}
|
|
5790
5824
|
tags
|
|
5791
5825
|
title
|
|
5792
5826
|
slug
|
|
5827
|
+
sharePublic {
|
|
5828
|
+
...SocialShareResourceFields
|
|
5829
|
+
}
|
|
5793
5830
|
updatedAt
|
|
5794
5831
|
}
|
|
5795
5832
|
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
5796
5833
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5834
|
+
${POST_RESOURCE_FIELDS_FRAGMENT}
|
|
5835
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5797
5836
|
`;
|
|
5798
5837
|
var GET_POSTS = gql`
|
|
5799
5838
|
query getPosts {
|
|
@@ -7833,7 +7872,7 @@ var SocialMediaTypeSchema = new MongooseSchema6(
|
|
|
7833
7872
|
);
|
|
7834
7873
|
var ResourceImageTypeSchema = new MongooseSchema6(
|
|
7835
7874
|
{
|
|
7836
|
-
active: { default: true, type: Boolean },
|
|
7875
|
+
active: { default: true, required: true, type: Boolean },
|
|
7837
7876
|
source: { required: false, type: String },
|
|
7838
7877
|
title: { required: false, type: String }
|
|
7839
7878
|
},
|
|
@@ -8041,6 +8080,14 @@ var baseResourceFields = {
|
|
|
8041
8080
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
8042
8081
|
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
8043
8082
|
};
|
|
8083
|
+
var socialShareResourceSchema = new MongooseSchema6(
|
|
8084
|
+
{
|
|
8085
|
+
qrCode: { required: true, type: ResourceImageTypeSchema },
|
|
8086
|
+
socialImage: { required: true, type: ResourceImageTypeSchema }
|
|
8087
|
+
},
|
|
8088
|
+
{ _id: false }
|
|
8089
|
+
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
8090
|
+
);
|
|
8044
8091
|
|
|
8045
8092
|
// src/mongoose/GoogleImportedMarket.ts
|
|
8046
8093
|
import mongoose7 from "mongoose";
|
|
@@ -8507,6 +8554,8 @@ var schema9 = new MongooseSchema13(
|
|
|
8507
8554
|
required: false,
|
|
8508
8555
|
type: [resourceRelationsSchema]
|
|
8509
8556
|
},
|
|
8557
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8558
|
+
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
8510
8559
|
unregisteredVendorId: {
|
|
8511
8560
|
ref: "UnregisteredVendor",
|
|
8512
8561
|
required: false,
|
|
@@ -8658,6 +8707,8 @@ var schema12 = new MongooseSchema16(
|
|
|
8658
8707
|
required: false,
|
|
8659
8708
|
type: [resourceRelationsSchema]
|
|
8660
8709
|
},
|
|
8710
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8711
|
+
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
8661
8712
|
tags: { required: true, type: [String] }
|
|
8662
8713
|
},
|
|
8663
8714
|
{ timestamps: true }
|
|
@@ -8688,7 +8739,8 @@ var schema13 = new MongooseSchema17(
|
|
|
8688
8739
|
enum: Object.values(EnumPartnerType),
|
|
8689
8740
|
required: true,
|
|
8690
8741
|
type: String
|
|
8691
|
-
}
|
|
8742
|
+
},
|
|
8743
|
+
sharePublic: { required: false, type: socialShareResourceSchema }
|
|
8692
8744
|
},
|
|
8693
8745
|
{ timestamps: true }
|
|
8694
8746
|
);
|
|
@@ -8751,6 +8803,7 @@ var schema14 = new MongooseSchema18(
|
|
|
8751
8803
|
required: false,
|
|
8752
8804
|
type: resourceSchema
|
|
8753
8805
|
},
|
|
8806
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8754
8807
|
slug: { required: true, type: String },
|
|
8755
8808
|
tags: { default: [], required: false, type: [String] },
|
|
8756
8809
|
title: { required: true, type: String }
|
|
@@ -8759,7 +8812,7 @@ var schema14 = new MongooseSchema18(
|
|
|
8759
8812
|
);
|
|
8760
8813
|
schema14.index({ title: 1 });
|
|
8761
8814
|
schema14.index({ tags: 1 });
|
|
8762
|
-
schema14.index({ postType: 1, slug: 1 });
|
|
8815
|
+
schema14.index({ postType: 1, slug: 1 }, { unique: true });
|
|
8763
8816
|
var PostModel = mongoose18.models.Post || mongoose18.model("Post", schema14);
|
|
8764
8817
|
|
|
8765
8818
|
// src/mongoose/AppSetting.ts
|
|
@@ -9582,6 +9635,7 @@ export {
|
|
|
9582
9635
|
resourceRelationsSchema,
|
|
9583
9636
|
saveNotificationsInDb,
|
|
9584
9637
|
sendPushNotifications,
|
|
9638
|
+
socialShareResourceSchema,
|
|
9585
9639
|
termsAgreementSchema,
|
|
9586
9640
|
updateAdStatuses,
|
|
9587
9641
|
updateAllEventDateTimeStatuses,
|