@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.
- package/dist/{Affiliate-xCVhO2Cy.d.mts → Affiliate-BLh0EcNI.d.mts} +18 -5
- package/dist/{Affiliate-CZKOOaz_.d.ts → Affiliate-CBp0M850.d.ts} +18 -5
- package/dist/{chunk-DBGVZNUX.mjs → chunk-6RUQHYTK.mjs} +644 -287
- package/dist/chunk-6RUQHYTK.mjs.map +1 -0
- package/dist/{Chat-Wn7yfc3v.d.mts → index-zC8a3adw.d.mts} +34 -34
- package/dist/{Chat-Wn7yfc3v.d.ts → index-zC8a3adw.d.ts} +34 -34
- package/dist/index.cjs +704 -309
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +113 -58
- package/dist/index.d.ts +113 -58
- package/dist/index.mjs +698 -308
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +646 -286
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +46 -6
- package/dist/mongoose/index.d.ts +46 -6
- package/dist/mongoose/index.mjs +9 -1
- package/dist/service/index.cjs +637 -308
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +14 -12
- package/dist/service/index.d.ts +14 -12
- package/dist/service/index.mjs +53 -18
- package/dist/service/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-DBGVZNUX.mjs.map +0 -1
|
@@ -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 './
|
|
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
|
-
|
|
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
|
|
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 './
|
|
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
|
-
|
|
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
|
|
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 };
|