@timardex/cluemart-server-shared 1.0.215 → 1.0.251
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-PF56GXHT.mjs → chunk-VDAGFBU4.mjs} +1 -49
- package/dist/chunk-VDAGFBU4.mjs.map +1 -0
- package/dist/index.cjs +1 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -32
- package/dist/index.d.ts +2 -32
- package/dist/index.mjs +1 -49
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +0 -50
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +2 -32
- package/dist/mongoose/index.d.ts +2 -32
- package/dist/mongoose/index.mjs +1 -5
- package/dist/service/index.cjs +1 -47
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +2 -2
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-PF56GXHT.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,
|
|
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';
|
|
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,24 +256,6 @@ 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
|
-
}>;
|
|
277
259
|
declare const baseResourceFields: {
|
|
278
260
|
active: {
|
|
279
261
|
default: boolean;
|
|
@@ -414,18 +396,6 @@ declare const baseResourceFields: {
|
|
|
414
396
|
required: boolean;
|
|
415
397
|
type: NumberConstructor;
|
|
416
398
|
};
|
|
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
|
-
};
|
|
429
399
|
socialMedia: {
|
|
430
400
|
required: boolean;
|
|
431
401
|
type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
@@ -804,4 +774,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
804
774
|
*/
|
|
805
775
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
806
776
|
|
|
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,
|
|
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 };
|
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,
|
|
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';
|
|
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,24 +256,6 @@ 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
|
-
}>;
|
|
277
259
|
declare const baseResourceFields: {
|
|
278
260
|
active: {
|
|
279
261
|
default: boolean;
|
|
@@ -414,18 +396,6 @@ declare const baseResourceFields: {
|
|
|
414
396
|
required: boolean;
|
|
415
397
|
type: NumberConstructor;
|
|
416
398
|
};
|
|
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
|
-
};
|
|
429
399
|
socialMedia: {
|
|
430
400
|
required: boolean;
|
|
431
401
|
type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
@@ -804,4 +774,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
804
774
|
*/
|
|
805
775
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
806
776
|
|
|
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,
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -5108,23 +5108,6 @@ 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
|
-
`;
|
|
5128
5111
|
var EVENT_INFO = gql`
|
|
5129
5112
|
fragment EventInfoFields on EventInfoType {
|
|
5130
5113
|
_id
|
|
@@ -5220,9 +5203,6 @@ var EVENT = gql`
|
|
|
5220
5203
|
socialMedia {
|
|
5221
5204
|
...SocialMediaFields
|
|
5222
5205
|
}
|
|
5223
|
-
socialImage {
|
|
5224
|
-
...SocialImageFields
|
|
5225
|
-
}
|
|
5226
5206
|
tags
|
|
5227
5207
|
termsAgreement {
|
|
5228
5208
|
...TermsAgreementFields
|
|
@@ -5240,7 +5220,6 @@ var EVENT = gql`
|
|
|
5240
5220
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5241
5221
|
${RELATION_DATES_FRAGMENT}
|
|
5242
5222
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5243
|
-
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
5244
5223
|
`;
|
|
5245
5224
|
var GET_EVENTS = gql`
|
|
5246
5225
|
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
@@ -5419,9 +5398,6 @@ var VENDOR = gql`
|
|
|
5419
5398
|
socialMedia {
|
|
5420
5399
|
...SocialMediaFields
|
|
5421
5400
|
}
|
|
5422
|
-
socialImage {
|
|
5423
|
-
...SocialImageFields
|
|
5424
|
-
}
|
|
5425
5401
|
termsAgreement {
|
|
5426
5402
|
...TermsAgreementFields
|
|
5427
5403
|
}
|
|
@@ -5442,7 +5418,6 @@ var VENDOR = gql`
|
|
|
5442
5418
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5443
5419
|
${RELATION_DATES_FRAGMENT}
|
|
5444
5420
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5445
|
-
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
5446
5421
|
`;
|
|
5447
5422
|
var VENDOR_ATTRIBUTES_FRAGMENT = gql`
|
|
5448
5423
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -5907,9 +5882,6 @@ var PARTNER = gql`
|
|
|
5907
5882
|
socialMedia {
|
|
5908
5883
|
...SocialMediaFields
|
|
5909
5884
|
}
|
|
5910
|
-
socialImage {
|
|
5911
|
-
...SocialImageFields
|
|
5912
|
-
}
|
|
5913
5885
|
termsAgreement {
|
|
5914
5886
|
...TermsAgreementFields
|
|
5915
5887
|
}
|
|
@@ -5924,7 +5896,6 @@ var PARTNER = gql`
|
|
|
5924
5896
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5925
5897
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5926
5898
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5927
|
-
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
5928
5899
|
`;
|
|
5929
5900
|
var GET_PARTNERS = gql`
|
|
5930
5901
|
query getPartners {
|
|
@@ -7849,22 +7820,6 @@ var relatedPostSchema = new MongooseSchema6(
|
|
|
7849
7820
|
{ _id: false }
|
|
7850
7821
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
7851
7822
|
);
|
|
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
|
-
);
|
|
7868
7823
|
var baseResourceFields = {
|
|
7869
7824
|
active: { default: false, required: true, type: Boolean },
|
|
7870
7825
|
adIds: {
|
|
@@ -7896,7 +7851,6 @@ var baseResourceFields = {
|
|
|
7896
7851
|
region: { required: true, type: String },
|
|
7897
7852
|
relatedPost: { required: false, type: relatedPostSchema },
|
|
7898
7853
|
reviewCount: { required: false, type: Number },
|
|
7899
|
-
socialImage: { required: false, type: socialImageSchema },
|
|
7900
7854
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
7901
7855
|
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
7902
7856
|
};
|
|
@@ -8909,7 +8863,7 @@ function createPushMessages({
|
|
|
8909
8863
|
messages.push({
|
|
8910
8864
|
body: message,
|
|
8911
8865
|
data: { ...data },
|
|
8912
|
-
sound: "
|
|
8866
|
+
sound: "tui.wav",
|
|
8913
8867
|
title,
|
|
8914
8868
|
to: token
|
|
8915
8869
|
});
|
|
@@ -9430,8 +9384,6 @@ export {
|
|
|
9430
9384
|
resourceRelationsSchema,
|
|
9431
9385
|
saveNotificationsInDb,
|
|
9432
9386
|
sendPushNotifications,
|
|
9433
|
-
socialImageSchema,
|
|
9434
|
-
socialImageUrlSchema,
|
|
9435
9387
|
termsAgreementSchema,
|
|
9436
9388
|
updateAdStatuses,
|
|
9437
9389
|
updateAllEventDateTimeStatuses,
|