@timardex/cluemart-server-shared 1.0.214 → 1.0.215
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-IFNK65HN.mjs → chunk-PF56GXHT.mjs} +49 -1
- package/dist/chunk-PF56GXHT.mjs.map +1 -0
- package/dist/index.cjs +50 -0
- 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 +48 -0
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +50 -0
- 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 +5 -1
- package/dist/service/index.cjs +46 -0
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-IFNK65HN.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, 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, SocialImageUrlType, SocialImageType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, 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';
|
|
@@ -256,6 +256,24 @@ declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose
|
|
|
256
256
|
} & {
|
|
257
257
|
__v: number;
|
|
258
258
|
}>;
|
|
259
|
+
declare const socialImageUrlSchema: mongoose.Schema<SocialImageUrlType, mongoose.Model<SocialImageUrlType, any, any, any, mongoose.Document<unknown, any, SocialImageUrlType, any, {}> & SocialImageUrlType & {
|
|
260
|
+
_id: mongoose.Types.ObjectId;
|
|
261
|
+
} & {
|
|
262
|
+
__v: number;
|
|
263
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageUrlType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageUrlType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageUrlType> & {
|
|
264
|
+
_id: mongoose.Types.ObjectId;
|
|
265
|
+
} & {
|
|
266
|
+
__v: number;
|
|
267
|
+
}>;
|
|
268
|
+
declare const socialImageSchema: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
|
|
269
|
+
_id: mongoose.Types.ObjectId;
|
|
270
|
+
} & {
|
|
271
|
+
__v: number;
|
|
272
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
|
|
273
|
+
_id: mongoose.Types.ObjectId;
|
|
274
|
+
} & {
|
|
275
|
+
__v: number;
|
|
276
|
+
}>;
|
|
259
277
|
declare const baseResourceFields: {
|
|
260
278
|
active: {
|
|
261
279
|
default: boolean;
|
|
@@ -396,6 +414,18 @@ declare const baseResourceFields: {
|
|
|
396
414
|
required: boolean;
|
|
397
415
|
type: NumberConstructor;
|
|
398
416
|
};
|
|
417
|
+
socialImage: {
|
|
418
|
+
required: boolean;
|
|
419
|
+
type: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
|
|
420
|
+
_id: mongoose.Types.ObjectId;
|
|
421
|
+
} & {
|
|
422
|
+
__v: number;
|
|
423
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
|
|
424
|
+
_id: mongoose.Types.ObjectId;
|
|
425
|
+
} & {
|
|
426
|
+
__v: number;
|
|
427
|
+
}>;
|
|
428
|
+
};
|
|
399
429
|
socialMedia: {
|
|
400
430
|
required: boolean;
|
|
401
431
|
type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
@@ -774,4 +804,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
774
804
|
*/
|
|
775
805
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
776
806
|
|
|
777
|
-
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 };
|
|
807
|
+
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, socialImageSchema, socialImageUrlSchema, 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, 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, SocialImageUrlType, SocialImageType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, 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';
|
|
@@ -256,6 +256,24 @@ declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose
|
|
|
256
256
|
} & {
|
|
257
257
|
__v: number;
|
|
258
258
|
}>;
|
|
259
|
+
declare const socialImageUrlSchema: mongoose.Schema<SocialImageUrlType, mongoose.Model<SocialImageUrlType, any, any, any, mongoose.Document<unknown, any, SocialImageUrlType, any, {}> & SocialImageUrlType & {
|
|
260
|
+
_id: mongoose.Types.ObjectId;
|
|
261
|
+
} & {
|
|
262
|
+
__v: number;
|
|
263
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageUrlType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageUrlType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageUrlType> & {
|
|
264
|
+
_id: mongoose.Types.ObjectId;
|
|
265
|
+
} & {
|
|
266
|
+
__v: number;
|
|
267
|
+
}>;
|
|
268
|
+
declare const socialImageSchema: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
|
|
269
|
+
_id: mongoose.Types.ObjectId;
|
|
270
|
+
} & {
|
|
271
|
+
__v: number;
|
|
272
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
|
|
273
|
+
_id: mongoose.Types.ObjectId;
|
|
274
|
+
} & {
|
|
275
|
+
__v: number;
|
|
276
|
+
}>;
|
|
259
277
|
declare const baseResourceFields: {
|
|
260
278
|
active: {
|
|
261
279
|
default: boolean;
|
|
@@ -396,6 +414,18 @@ declare const baseResourceFields: {
|
|
|
396
414
|
required: boolean;
|
|
397
415
|
type: NumberConstructor;
|
|
398
416
|
};
|
|
417
|
+
socialImage: {
|
|
418
|
+
required: boolean;
|
|
419
|
+
type: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
|
|
420
|
+
_id: mongoose.Types.ObjectId;
|
|
421
|
+
} & {
|
|
422
|
+
__v: number;
|
|
423
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
|
|
424
|
+
_id: mongoose.Types.ObjectId;
|
|
425
|
+
} & {
|
|
426
|
+
__v: number;
|
|
427
|
+
}>;
|
|
428
|
+
};
|
|
399
429
|
socialMedia: {
|
|
400
430
|
required: boolean;
|
|
401
431
|
type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
@@ -774,4 +804,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
774
804
|
*/
|
|
775
805
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
776
806
|
|
|
777
|
-
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 };
|
|
807
|
+
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, socialImageSchema, socialImageUrlSchema, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -5108,6 +5108,23 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
|
|
|
5108
5108
|
postType
|
|
5109
5109
|
}
|
|
5110
5110
|
`;
|
|
5111
|
+
var SOCIAL_IMAGE_URL_FIELDS_FRAGMENT = gql`
|
|
5112
|
+
fragment SocialImageUrlFields on SocialImageUrlType {
|
|
5113
|
+
url
|
|
5114
|
+
qrCode
|
|
5115
|
+
}
|
|
5116
|
+
`;
|
|
5117
|
+
var SOCIAL_IMAGE_FIELDS_FRAGMENT = gql`
|
|
5118
|
+
fragment SocialImageFields on SocialImageType {
|
|
5119
|
+
public {
|
|
5120
|
+
...SocialImageUrlFields
|
|
5121
|
+
}
|
|
5122
|
+
relation {
|
|
5123
|
+
...SocialImageUrlFields
|
|
5124
|
+
}
|
|
5125
|
+
}
|
|
5126
|
+
${SOCIAL_IMAGE_URL_FIELDS_FRAGMENT}
|
|
5127
|
+
`;
|
|
5111
5128
|
var EVENT_INFO = gql`
|
|
5112
5129
|
fragment EventInfoFields on EventInfoType {
|
|
5113
5130
|
_id
|
|
@@ -5203,6 +5220,9 @@ var EVENT = gql`
|
|
|
5203
5220
|
socialMedia {
|
|
5204
5221
|
...SocialMediaFields
|
|
5205
5222
|
}
|
|
5223
|
+
socialImage {
|
|
5224
|
+
...SocialImageFields
|
|
5225
|
+
}
|
|
5206
5226
|
tags
|
|
5207
5227
|
termsAgreement {
|
|
5208
5228
|
...TermsAgreementFields
|
|
@@ -5220,6 +5240,7 @@ var EVENT = gql`
|
|
|
5220
5240
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5221
5241
|
${RELATION_DATES_FRAGMENT}
|
|
5222
5242
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5243
|
+
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
5223
5244
|
`;
|
|
5224
5245
|
var GET_EVENTS = gql`
|
|
5225
5246
|
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
@@ -5398,6 +5419,9 @@ var VENDOR = gql`
|
|
|
5398
5419
|
socialMedia {
|
|
5399
5420
|
...SocialMediaFields
|
|
5400
5421
|
}
|
|
5422
|
+
socialImage {
|
|
5423
|
+
...SocialImageFields
|
|
5424
|
+
}
|
|
5401
5425
|
termsAgreement {
|
|
5402
5426
|
...TermsAgreementFields
|
|
5403
5427
|
}
|
|
@@ -5418,6 +5442,7 @@ var VENDOR = gql`
|
|
|
5418
5442
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5419
5443
|
${RELATION_DATES_FRAGMENT}
|
|
5420
5444
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5445
|
+
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
5421
5446
|
`;
|
|
5422
5447
|
var VENDOR_ATTRIBUTES_FRAGMENT = gql`
|
|
5423
5448
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -5882,6 +5907,9 @@ var PARTNER = gql`
|
|
|
5882
5907
|
socialMedia {
|
|
5883
5908
|
...SocialMediaFields
|
|
5884
5909
|
}
|
|
5910
|
+
socialImage {
|
|
5911
|
+
...SocialImageFields
|
|
5912
|
+
}
|
|
5885
5913
|
termsAgreement {
|
|
5886
5914
|
...TermsAgreementFields
|
|
5887
5915
|
}
|
|
@@ -5896,6 +5924,7 @@ var PARTNER = gql`
|
|
|
5896
5924
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5897
5925
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5898
5926
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5927
|
+
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
5899
5928
|
`;
|
|
5900
5929
|
var GET_PARTNERS = gql`
|
|
5901
5930
|
query getPartners {
|
|
@@ -7820,6 +7849,22 @@ var relatedPostSchema = new MongooseSchema6(
|
|
|
7820
7849
|
{ _id: false }
|
|
7821
7850
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
7822
7851
|
);
|
|
7852
|
+
var socialImageUrlSchema = new MongooseSchema6(
|
|
7853
|
+
{
|
|
7854
|
+
qrCode: { required: true, type: String },
|
|
7855
|
+
url: { required: true, type: String }
|
|
7856
|
+
},
|
|
7857
|
+
{ _id: false }
|
|
7858
|
+
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
7859
|
+
);
|
|
7860
|
+
var socialImageSchema = new MongooseSchema6(
|
|
7861
|
+
{
|
|
7862
|
+
public: { required: true, type: socialImageUrlSchema },
|
|
7863
|
+
relation: { required: false, type: socialImageUrlSchema }
|
|
7864
|
+
},
|
|
7865
|
+
{ _id: false }
|
|
7866
|
+
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
7867
|
+
);
|
|
7823
7868
|
var baseResourceFields = {
|
|
7824
7869
|
active: { default: false, required: true, type: Boolean },
|
|
7825
7870
|
adIds: {
|
|
@@ -7851,6 +7896,7 @@ var baseResourceFields = {
|
|
|
7851
7896
|
region: { required: true, type: String },
|
|
7852
7897
|
relatedPost: { required: false, type: relatedPostSchema },
|
|
7853
7898
|
reviewCount: { required: false, type: Number },
|
|
7899
|
+
socialImage: { required: false, type: socialImageSchema },
|
|
7854
7900
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
7855
7901
|
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
7856
7902
|
};
|
|
@@ -9384,6 +9430,8 @@ export {
|
|
|
9384
9430
|
resourceRelationsSchema,
|
|
9385
9431
|
saveNotificationsInDb,
|
|
9386
9432
|
sendPushNotifications,
|
|
9433
|
+
socialImageSchema,
|
|
9434
|
+
socialImageUrlSchema,
|
|
9387
9435
|
termsAgreementSchema,
|
|
9388
9436
|
updateAdStatuses,
|
|
9389
9437
|
updateAllEventDateTimeStatuses,
|