@timardex/cluemart-server-shared 1.1.35 → 1.1.37

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 { RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialShareResourceType, PosterUsageType, RelationType, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
2
+ import { RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialShareResourceType, PosterUsageType, RelationType, UserActivityEvent, UserType, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from './Chat-Wn7yfc3v.js';
5
5
 
@@ -372,6 +372,66 @@ declare const RelationModel: mongoose__default.Model<SchemaRelationType, {}, {},
372
372
  __v: number;
373
373
  }, any>;
374
374
 
375
+ type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
376
+ resourceId: ObjectId;
377
+ };
378
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
379
+ _id: ObjectId;
380
+ affiliate: ObjectId;
381
+ coupon: ObjectId;
382
+ events: ObjectId[];
383
+ game: ObjectId;
384
+ partner: ObjectId;
385
+ school: ObjectId;
386
+ vendor: ObjectId;
387
+ userActivity: {
388
+ favourites: {
389
+ events: ObjectId[];
390
+ vendors: ObjectId[];
391
+ partners: ObjectId[];
392
+ };
393
+ interested: {
394
+ events: SchemaUserActivityEvent[];
395
+ };
396
+ going: {
397
+ events: SchemaUserActivityEvent[];
398
+ };
399
+ present: {
400
+ events: SchemaUserActivityEvent[];
401
+ };
402
+ };
403
+ };
404
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
405
+ _id: ObjectId;
406
+ affiliate: ObjectId;
407
+ coupon: ObjectId;
408
+ events: ObjectId[];
409
+ game: ObjectId;
410
+ partner: ObjectId;
411
+ school: ObjectId;
412
+ vendor: ObjectId;
413
+ userActivity: {
414
+ favourites: {
415
+ events: ObjectId[];
416
+ vendors: ObjectId[];
417
+ partners: ObjectId[];
418
+ };
419
+ interested: {
420
+ events: SchemaUserActivityEvent[];
421
+ };
422
+ going: {
423
+ events: SchemaUserActivityEvent[];
424
+ };
425
+ present: {
426
+ events: SchemaUserActivityEvent[];
427
+ };
428
+ };
429
+ } & Required<{
430
+ _id: mongoose__default.Types.ObjectId;
431
+ }> & {
432
+ __v: number;
433
+ }, any>;
434
+
375
435
  type SchemaAffiliateReward = AffiliateRewardType;
376
436
  type SchemaAffiliateResourceType = Omit<AffiliateResourceType, "resourceId" | "resourceOwner"> & {
377
437
  resourceId: ObjectId;
@@ -390,4 +450,4 @@ declare const AffiliateModel: mongoose__default.Model<AffiliateDocument, {}, {},
390
450
  __v: number;
391
451
  }, any>;
392
452
 
393
- export { AffiliateModel as A, CategorySchema as C, OwnerTypeSchema as O, ResourceImageTypeSchema as R, type SchemaOwnerType as S, type SchemaRelatedPostType as a, SocialMediaTypeSchema as b, ContactDetailsSchema as c, dateTimeSchema as d, locationsSchema as e, relatedPostSchema as f, baseResourceFields as g, relationDatesSchema as h, type SchemaRelationType as i, RelationTypeSchema as j, RelationModel as k, locationGeoSchema as l, type SchemaAffiliateReward as m, type SchemaAffiliateResourceType as n, resourceRelationsSchema as r, socialShareResourceSchema as s, termsAgreementSchema as t, userLicenseSchema as u };
453
+ export { AffiliateModel as A, CategorySchema as C, OwnerTypeSchema as O, ResourceImageTypeSchema as R, type SchemaOwnerType as S, UserModel as U, type SchemaRelatedPostType as a, SocialMediaTypeSchema as b, ContactDetailsSchema as c, dateTimeSchema as d, locationsSchema as e, relatedPostSchema as f, baseResourceFields as g, relationDatesSchema as h, type SchemaRelationType as i, RelationTypeSchema as j, RelationModel as k, locationGeoSchema as l, type SchemaUserActivityEvent as m, type SchemaUserType as n, type SchemaAffiliateReward as o, type SchemaAffiliateResourceType as p, resourceRelationsSchema as r, socialShareResourceSchema as s, termsAgreementSchema as t, userLicenseSchema as u };
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialShareResourceType, PosterUsageType, RelationType, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
2
+ import { RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialShareResourceType, PosterUsageType, RelationType, UserActivityEvent, UserType, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from './Chat-Wn7yfc3v.mjs';
5
5
 
@@ -372,6 +372,66 @@ declare const RelationModel: mongoose__default.Model<SchemaRelationType, {}, {},
372
372
  __v: number;
373
373
  }, any>;
374
374
 
375
+ type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
376
+ resourceId: ObjectId;
377
+ };
378
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
379
+ _id: ObjectId;
380
+ affiliate: ObjectId;
381
+ coupon: ObjectId;
382
+ events: ObjectId[];
383
+ game: ObjectId;
384
+ partner: ObjectId;
385
+ school: ObjectId;
386
+ vendor: ObjectId;
387
+ userActivity: {
388
+ favourites: {
389
+ events: ObjectId[];
390
+ vendors: ObjectId[];
391
+ partners: ObjectId[];
392
+ };
393
+ interested: {
394
+ events: SchemaUserActivityEvent[];
395
+ };
396
+ going: {
397
+ events: SchemaUserActivityEvent[];
398
+ };
399
+ present: {
400
+ events: SchemaUserActivityEvent[];
401
+ };
402
+ };
403
+ };
404
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
405
+ _id: ObjectId;
406
+ affiliate: ObjectId;
407
+ coupon: ObjectId;
408
+ events: ObjectId[];
409
+ game: ObjectId;
410
+ partner: ObjectId;
411
+ school: ObjectId;
412
+ vendor: ObjectId;
413
+ userActivity: {
414
+ favourites: {
415
+ events: ObjectId[];
416
+ vendors: ObjectId[];
417
+ partners: ObjectId[];
418
+ };
419
+ interested: {
420
+ events: SchemaUserActivityEvent[];
421
+ };
422
+ going: {
423
+ events: SchemaUserActivityEvent[];
424
+ };
425
+ present: {
426
+ events: SchemaUserActivityEvent[];
427
+ };
428
+ };
429
+ } & Required<{
430
+ _id: mongoose__default.Types.ObjectId;
431
+ }> & {
432
+ __v: number;
433
+ }, any>;
434
+
375
435
  type SchemaAffiliateReward = AffiliateRewardType;
376
436
  type SchemaAffiliateResourceType = Omit<AffiliateResourceType, "resourceId" | "resourceOwner"> & {
377
437
  resourceId: ObjectId;
@@ -390,4 +450,4 @@ declare const AffiliateModel: mongoose__default.Model<AffiliateDocument, {}, {},
390
450
  __v: number;
391
451
  }, any>;
392
452
 
393
- export { AffiliateModel as A, CategorySchema as C, OwnerTypeSchema as O, ResourceImageTypeSchema as R, type SchemaOwnerType as S, type SchemaRelatedPostType as a, SocialMediaTypeSchema as b, ContactDetailsSchema as c, dateTimeSchema as d, locationsSchema as e, relatedPostSchema as f, baseResourceFields as g, relationDatesSchema as h, type SchemaRelationType as i, RelationTypeSchema as j, RelationModel as k, locationGeoSchema as l, type SchemaAffiliateReward as m, type SchemaAffiliateResourceType as n, resourceRelationsSchema as r, socialShareResourceSchema as s, termsAgreementSchema as t, userLicenseSchema as u };
453
+ export { AffiliateModel as A, CategorySchema as C, OwnerTypeSchema as O, ResourceImageTypeSchema as R, type SchemaOwnerType as S, UserModel as U, type SchemaRelatedPostType as a, SocialMediaTypeSchema as b, ContactDetailsSchema as c, dateTimeSchema as d, locationsSchema as e, relatedPostSchema as f, baseResourceFields as g, relationDatesSchema as h, type SchemaRelationType as i, RelationTypeSchema as j, RelationModel as k, locationGeoSchema as l, type SchemaUserActivityEvent as m, type SchemaUserType as n, type SchemaAffiliateReward as o, type SchemaAffiliateResourceType as p, resourceRelationsSchema as r, socialShareResourceSchema as s, termsAgreementSchema as t, userLicenseSchema as u };