@timardex/cluemart-server-shared 1.0.259 → 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-RZ3OQKLX.mjs → chunk-JFVETLOC.mjs} +50 -2
- package/dist/chunk-JFVETLOC.mjs.map +1 -0
- package/dist/index.cjs +50 -1
- 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 +49 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +50 -1
- 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 +48 -1
- 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-RZ3OQKLX.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 {
|
|
@@ -5795,11 +5824,15 @@ var POST_FIELDS_FRAGMENT = gql`
|
|
|
5795
5824
|
tags
|
|
5796
5825
|
title
|
|
5797
5826
|
slug
|
|
5827
|
+
sharePublic {
|
|
5828
|
+
...SocialShareResourceFields
|
|
5829
|
+
}
|
|
5798
5830
|
updatedAt
|
|
5799
5831
|
}
|
|
5800
5832
|
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
5801
5833
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5802
5834
|
${POST_RESOURCE_FIELDS_FRAGMENT}
|
|
5835
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5803
5836
|
`;
|
|
5804
5837
|
var GET_POSTS = gql`
|
|
5805
5838
|
query getPosts {
|
|
@@ -8047,6 +8080,14 @@ var baseResourceFields = {
|
|
|
8047
8080
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
8048
8081
|
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
8049
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
|
+
);
|
|
8050
8091
|
|
|
8051
8092
|
// src/mongoose/GoogleImportedMarket.ts
|
|
8052
8093
|
import mongoose7 from "mongoose";
|
|
@@ -8513,6 +8554,8 @@ var schema9 = new MongooseSchema13(
|
|
|
8513
8554
|
required: false,
|
|
8514
8555
|
type: [resourceRelationsSchema]
|
|
8515
8556
|
},
|
|
8557
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8558
|
+
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
8516
8559
|
unregisteredVendorId: {
|
|
8517
8560
|
ref: "UnregisteredVendor",
|
|
8518
8561
|
required: false,
|
|
@@ -8664,6 +8707,8 @@ var schema12 = new MongooseSchema16(
|
|
|
8664
8707
|
required: false,
|
|
8665
8708
|
type: [resourceRelationsSchema]
|
|
8666
8709
|
},
|
|
8710
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8711
|
+
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
8667
8712
|
tags: { required: true, type: [String] }
|
|
8668
8713
|
},
|
|
8669
8714
|
{ timestamps: true }
|
|
@@ -8694,7 +8739,8 @@ var schema13 = new MongooseSchema17(
|
|
|
8694
8739
|
enum: Object.values(EnumPartnerType),
|
|
8695
8740
|
required: true,
|
|
8696
8741
|
type: String
|
|
8697
|
-
}
|
|
8742
|
+
},
|
|
8743
|
+
sharePublic: { required: false, type: socialShareResourceSchema }
|
|
8698
8744
|
},
|
|
8699
8745
|
{ timestamps: true }
|
|
8700
8746
|
);
|
|
@@ -8757,6 +8803,7 @@ var schema14 = new MongooseSchema18(
|
|
|
8757
8803
|
required: false,
|
|
8758
8804
|
type: resourceSchema
|
|
8759
8805
|
},
|
|
8806
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8760
8807
|
slug: { required: true, type: String },
|
|
8761
8808
|
tags: { default: [], required: false, type: [String] },
|
|
8762
8809
|
title: { required: true, type: String }
|
|
@@ -9588,6 +9635,7 @@ export {
|
|
|
9588
9635
|
resourceRelationsSchema,
|
|
9589
9636
|
saveNotificationsInDb,
|
|
9590
9637
|
sendPushNotifications,
|
|
9638
|
+
socialShareResourceSchema,
|
|
9591
9639
|
termsAgreementSchema,
|
|
9592
9640
|
updateAdStatuses,
|
|
9593
9641
|
updateAllEventDateTimeStatuses,
|