@timardex/cluemart-server-shared 1.1.37 → 1.1.39

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,7 +1,7 @@
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, UserActivityEvent, UserType, 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, StripeSubscription, EnumBillingPeriod, EnumUserLicence, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
- import { O as ObjectId } from './Chat-Wn7yfc3v.mjs';
4
+ import { O as ObjectId } from './index-zC8a3adw.mjs';
5
5
 
6
6
  type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
7
7
  postId: ObjectId;
@@ -375,7 +375,7 @@ declare const RelationModel: mongoose__default.Model<SchemaRelationType, {}, {},
375
375
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
376
376
  resourceId: ObjectId;
377
377
  };
378
- type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
378
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions" | "stripe"> & {
379
379
  _id: ObjectId;
380
380
  affiliate: ObjectId;
381
381
  coupon: ObjectId;
@@ -383,6 +383,7 @@ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner"
383
383
  game: ObjectId;
384
384
  partner: ObjectId;
385
385
  school: ObjectId;
386
+ stripe?: SchemaStripeSubscription;
386
387
  vendor: ObjectId;
387
388
  userActivity: {
388
389
  favourites: {
@@ -401,7 +402,18 @@ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner"
401
402
  };
402
403
  };
403
404
  };
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
+ type SchemaStripeSubscription = StripeSubscription & {
406
+ billingPeriod?: EnumBillingPeriod;
407
+ cancelAtPeriodEnd?: boolean;
408
+ pendingBillingPeriod?: EnumBillingPeriod;
409
+ pendingChangeEffectiveAt?: Date;
410
+ pendingPlan?: EnumUserLicence;
411
+ priceId?: string;
412
+ scheduleId?: string;
413
+ subscriptionMutationLockExpiresAt?: Date;
414
+ subscriptionMutationLockId?: string;
415
+ };
416
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions" | "stripe"> & {
405
417
  _id: ObjectId;
406
418
  affiliate: ObjectId;
407
419
  coupon: ObjectId;
@@ -409,6 +421,7 @@ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mon
409
421
  game: ObjectId;
410
422
  partner: ObjectId;
411
423
  school: ObjectId;
424
+ stripe?: SchemaStripeSubscription;
412
425
  vendor: ObjectId;
413
426
  userActivity: {
414
427
  favourites: {
@@ -450,4 +463,4 @@ declare const AffiliateModel: mongoose__default.Model<AffiliateDocument, {}, {},
450
463
  __v: number;
451
464
  }, any>;
452
465
 
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 };
466
+ 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 SchemaStripeSubscription as o, type SchemaAffiliateReward as p, type SchemaAffiliateResourceType as q, resourceRelationsSchema as r, socialShareResourceSchema as s, termsAgreementSchema as t, userLicenseSchema as u };
@@ -1,7 +1,7 @@
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, UserActivityEvent, UserType, 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, StripeSubscription, EnumBillingPeriod, EnumUserLicence, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
- import { O as ObjectId } from './Chat-Wn7yfc3v.js';
4
+ import { O as ObjectId } from './index-zC8a3adw.js';
5
5
 
6
6
  type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
7
7
  postId: ObjectId;
@@ -375,7 +375,7 @@ declare const RelationModel: mongoose__default.Model<SchemaRelationType, {}, {},
375
375
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
376
376
  resourceId: ObjectId;
377
377
  };
378
- type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
378
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions" | "stripe"> & {
379
379
  _id: ObjectId;
380
380
  affiliate: ObjectId;
381
381
  coupon: ObjectId;
@@ -383,6 +383,7 @@ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner"
383
383
  game: ObjectId;
384
384
  partner: ObjectId;
385
385
  school: ObjectId;
386
+ stripe?: SchemaStripeSubscription;
386
387
  vendor: ObjectId;
387
388
  userActivity: {
388
389
  favourites: {
@@ -401,7 +402,18 @@ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner"
401
402
  };
402
403
  };
403
404
  };
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
+ type SchemaStripeSubscription = StripeSubscription & {
406
+ billingPeriod?: EnumBillingPeriod;
407
+ cancelAtPeriodEnd?: boolean;
408
+ pendingBillingPeriod?: EnumBillingPeriod;
409
+ pendingChangeEffectiveAt?: Date;
410
+ pendingPlan?: EnumUserLicence;
411
+ priceId?: string;
412
+ scheduleId?: string;
413
+ subscriptionMutationLockExpiresAt?: Date;
414
+ subscriptionMutationLockId?: string;
415
+ };
416
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions" | "stripe"> & {
405
417
  _id: ObjectId;
406
418
  affiliate: ObjectId;
407
419
  coupon: ObjectId;
@@ -409,6 +421,7 @@ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mon
409
421
  game: ObjectId;
410
422
  partner: ObjectId;
411
423
  school: ObjectId;
424
+ stripe?: SchemaStripeSubscription;
412
425
  vendor: ObjectId;
413
426
  userActivity: {
414
427
  favourites: {
@@ -450,4 +463,4 @@ declare const AffiliateModel: mongoose__default.Model<AffiliateDocument, {}, {},
450
463
  __v: number;
451
464
  }, any>;
452
465
 
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 };
466
+ 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 SchemaStripeSubscription as o, type SchemaAffiliateReward as p, type SchemaAffiliateResourceType as q, resourceRelationsSchema as r, socialShareResourceSchema as s, termsAgreementSchema as t, userLicenseSchema as u };