@timardex/cluemart-server-shared 1.1.34 → 1.1.36
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-gqV1-654.d.ts → Affiliate-CZKOOaz_.d.ts} +62 -2
- package/dist/{Affiliate-B76iZ3fE.d.mts → Affiliate-xCVhO2Cy.d.mts} +62 -2
- package/dist/{chunk-UGGLUJIR.mjs → chunk-DBGVZNUX.mjs} +57 -3002
- package/dist/chunk-DBGVZNUX.mjs.map +1 -0
- package/dist/index.cjs +1996 -3938
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +242 -8
- package/dist/index.d.ts +242 -8
- package/dist/index.mjs +1460 -3435
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +14 -3002
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +4 -64
- package/dist/mongoose/index.d.ts +4 -64
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +2001 -3943
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +243 -9
- package/dist/service/index.d.ts +243 -9
- package/dist/service/index.mjs +1022 -47
- package/dist/service/index.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-UGGLUJIR.mjs.map +0 -1
|
@@ -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
|
|
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
|
|
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 };
|