@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.
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
2
+ import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialImageUrlType, SocialImageType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
3
3
  import mongoose from 'mongoose';
4
4
  import { O as ObjectId } from '../Chat-DYkhie3G.mjs';
5
5
  export { C as ChatModel, N as NotificationModel, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DYkhie3G.mjs';
@@ -178,6 +178,24 @@ declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose
178
178
  } & {
179
179
  __v: number;
180
180
  }>;
181
+ declare const socialImageUrlSchema: mongoose.Schema<SocialImageUrlType, mongoose.Model<SocialImageUrlType, any, any, any, mongoose.Document<unknown, any, SocialImageUrlType, any, {}> & SocialImageUrlType & {
182
+ _id: mongoose.Types.ObjectId;
183
+ } & {
184
+ __v: number;
185
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageUrlType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageUrlType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageUrlType> & {
186
+ _id: mongoose.Types.ObjectId;
187
+ } & {
188
+ __v: number;
189
+ }>;
190
+ declare const socialImageSchema: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
191
+ _id: mongoose.Types.ObjectId;
192
+ } & {
193
+ __v: number;
194
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
195
+ _id: mongoose.Types.ObjectId;
196
+ } & {
197
+ __v: number;
198
+ }>;
181
199
  declare const baseResourceFields: {
182
200
  active: {
183
201
  default: boolean;
@@ -318,6 +336,18 @@ declare const baseResourceFields: {
318
336
  required: boolean;
319
337
  type: NumberConstructor;
320
338
  };
339
+ socialImage: {
340
+ required: boolean;
341
+ type: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
342
+ _id: mongoose.Types.ObjectId;
343
+ } & {
344
+ __v: number;
345
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
346
+ _id: mongoose.Types.ObjectId;
347
+ } & {
348
+ __v: number;
349
+ }>;
350
+ };
321
351
  socialMedia: {
322
352
  required: boolean;
323
353
  type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
@@ -587,4 +617,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
587
617
  __v: number;
588
618
  }, any>;
589
619
 
590
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
620
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, socialImageSchema, socialImageUrlSchema, termsAgreementSchema, userLicenseSchema };
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
2
+ import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialImageUrlType, SocialImageType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
3
3
  import mongoose from 'mongoose';
4
4
  import { O as ObjectId } from '../Chat-DYkhie3G.js';
5
5
  export { C as ChatModel, N as NotificationModel, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DYkhie3G.js';
@@ -178,6 +178,24 @@ declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose
178
178
  } & {
179
179
  __v: number;
180
180
  }>;
181
+ declare const socialImageUrlSchema: mongoose.Schema<SocialImageUrlType, mongoose.Model<SocialImageUrlType, any, any, any, mongoose.Document<unknown, any, SocialImageUrlType, any, {}> & SocialImageUrlType & {
182
+ _id: mongoose.Types.ObjectId;
183
+ } & {
184
+ __v: number;
185
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageUrlType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageUrlType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageUrlType> & {
186
+ _id: mongoose.Types.ObjectId;
187
+ } & {
188
+ __v: number;
189
+ }>;
190
+ declare const socialImageSchema: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
191
+ _id: mongoose.Types.ObjectId;
192
+ } & {
193
+ __v: number;
194
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
195
+ _id: mongoose.Types.ObjectId;
196
+ } & {
197
+ __v: number;
198
+ }>;
181
199
  declare const baseResourceFields: {
182
200
  active: {
183
201
  default: boolean;
@@ -318,6 +336,18 @@ declare const baseResourceFields: {
318
336
  required: boolean;
319
337
  type: NumberConstructor;
320
338
  };
339
+ socialImage: {
340
+ required: boolean;
341
+ type: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
342
+ _id: mongoose.Types.ObjectId;
343
+ } & {
344
+ __v: number;
345
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
346
+ _id: mongoose.Types.ObjectId;
347
+ } & {
348
+ __v: number;
349
+ }>;
350
+ };
321
351
  socialMedia: {
322
352
  required: boolean;
323
353
  type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
@@ -587,4 +617,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
587
617
  __v: number;
588
618
  }, any>;
589
619
 
590
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
620
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, socialImageSchema, socialImageUrlSchema, termsAgreementSchema, userLicenseSchema };
@@ -36,9 +36,11 @@ import {
36
36
  relatedPostSchema,
37
37
  relationDatesSchema,
38
38
  resourceRelationsSchema,
39
+ socialImageSchema,
40
+ socialImageUrlSchema,
39
41
  termsAgreementSchema,
40
42
  userLicenseSchema
41
- } from "../chunk-IFNK65HN.mjs";
43
+ } from "../chunk-PF56GXHT.mjs";
42
44
  export {
43
45
  APP_SETTINGS_ID,
44
46
  AdModel,
@@ -77,6 +79,8 @@ export {
77
79
  relatedPostSchema,
78
80
  relationDatesSchema,
79
81
  resourceRelationsSchema,
82
+ socialImageSchema,
83
+ socialImageUrlSchema,
80
84
  termsAgreementSchema,
81
85
  userLicenseSchema
82
86
  };
@@ -5179,6 +5179,23 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
5179
5179
  postType
5180
5180
  }
5181
5181
  `;
5182
+ var SOCIAL_IMAGE_URL_FIELDS_FRAGMENT = gql`
5183
+ fragment SocialImageUrlFields on SocialImageUrlType {
5184
+ url
5185
+ qrCode
5186
+ }
5187
+ `;
5188
+ var SOCIAL_IMAGE_FIELDS_FRAGMENT = gql`
5189
+ fragment SocialImageFields on SocialImageType {
5190
+ public {
5191
+ ...SocialImageUrlFields
5192
+ }
5193
+ relation {
5194
+ ...SocialImageUrlFields
5195
+ }
5196
+ }
5197
+ ${SOCIAL_IMAGE_URL_FIELDS_FRAGMENT}
5198
+ `;
5182
5199
  var EVENT_INFO = gql`
5183
5200
  fragment EventInfoFields on EventInfoType {
5184
5201
  _id
@@ -5274,6 +5291,9 @@ var EVENT = gql`
5274
5291
  socialMedia {
5275
5292
  ...SocialMediaFields
5276
5293
  }
5294
+ socialImage {
5295
+ ...SocialImageFields
5296
+ }
5277
5297
  tags
5278
5298
  termsAgreement {
5279
5299
  ...TermsAgreementFields
@@ -5291,6 +5311,7 @@ var EVENT = gql`
5291
5311
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5292
5312
  ${RELATION_DATES_FRAGMENT}
5293
5313
  ${RELATED_POST_FIELDS_FRAGMENT}
5314
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5294
5315
  `;
5295
5316
  var GET_EVENTS = gql`
5296
5317
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5469,6 +5490,9 @@ var VENDOR = gql`
5469
5490
  socialMedia {
5470
5491
  ...SocialMediaFields
5471
5492
  }
5493
+ socialImage {
5494
+ ...SocialImageFields
5495
+ }
5472
5496
  termsAgreement {
5473
5497
  ...TermsAgreementFields
5474
5498
  }
@@ -5489,6 +5513,7 @@ var VENDOR = gql`
5489
5513
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5490
5514
  ${RELATION_DATES_FRAGMENT}
5491
5515
  ${RELATED_POST_FIELDS_FRAGMENT}
5516
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5492
5517
  `;
5493
5518
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5494
5519
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5953,6 +5978,9 @@ var PARTNER = gql`
5953
5978
  socialMedia {
5954
5979
  ...SocialMediaFields
5955
5980
  }
5981
+ socialImage {
5982
+ ...SocialImageFields
5983
+ }
5956
5984
  termsAgreement {
5957
5985
  ...TermsAgreementFields
5958
5986
  }
@@ -5967,6 +5995,7 @@ var PARTNER = gql`
5967
5995
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5968
5996
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5969
5997
  ${RELATED_POST_FIELDS_FRAGMENT}
5998
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5970
5999
  `;
5971
6000
  var GET_PARTNERS = gql`
5972
6001
  query getPartners {
@@ -8090,6 +8119,22 @@ var relatedPostSchema = new MongooseSchema8(
8090
8119
  { _id: false }
8091
8120
  // Prevents Mongoose from creating an additional _id field for subdocuments
8092
8121
  );
8122
+ var socialImageUrlSchema = new MongooseSchema8(
8123
+ {
8124
+ qrCode: { required: true, type: String },
8125
+ url: { required: true, type: String }
8126
+ },
8127
+ { _id: false }
8128
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8129
+ );
8130
+ var socialImageSchema = new MongooseSchema8(
8131
+ {
8132
+ public: { required: true, type: socialImageUrlSchema },
8133
+ relation: { required: false, type: socialImageUrlSchema }
8134
+ },
8135
+ { _id: false }
8136
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8137
+ );
8093
8138
  var baseResourceFields = {
8094
8139
  active: { default: false, required: true, type: Boolean },
8095
8140
  adIds: {
@@ -8121,6 +8166,7 @@ var baseResourceFields = {
8121
8166
  region: { required: true, type: String },
8122
8167
  relatedPost: { required: false, type: relatedPostSchema },
8123
8168
  reviewCount: { required: false, type: Number },
8169
+ socialImage: { required: false, type: socialImageSchema },
8124
8170
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
8125
8171
  termsAgreement: { required: true, type: termsAgreementSchema }
8126
8172
  };