@timardex/cluemart-server-shared 1.0.297 → 1.0.299
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-DGmeZnDs.d.ts → Affiliate-B3kOq3DU.d.ts} +1 -1
- package/dist/{Affiliate-DaZKnzMu.d.mts → Affiliate-CiXqVASx.d.mts} +1 -1
- package/dist/{Chat-Bnqec74U.d.mts → Chat-Wn7yfc3v.d.mts} +1 -1
- package/dist/{Chat-Bnqec74U.d.ts → Chat-Wn7yfc3v.d.ts} +1 -1
- package/dist/{chunk-YXUJ4VQU.mjs → chunk-6PNG5BI5.mjs} +1 -1
- package/dist/chunk-6PNG5BI5.mjs.map +1 -0
- package/dist/{chunk-NBJNO6FV.mjs → chunk-UEGYYYX5.mjs} +12 -11
- package/dist/chunk-UEGYYYX5.mjs.map +1 -0
- package/dist/index.cjs +11 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +11 -10
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +6 -6
- package/dist/mongoose/index.d.ts +6 -6
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +11 -10
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +2 -2
- package/dist/service/index.d.ts +2 -2
- package/dist/service/index.mjs +2 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-NBJNO6FV.mjs.map +0 -1
- package/dist/chunk-YXUJ4VQU.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
2
|
import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
|
-
import { O as ObjectId } from '../Chat-
|
|
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-
|
|
6
|
-
import { S as SchemaOwnerType } from '../Affiliate-
|
|
7
|
-
export { A as AffiliateModel, C as CategorySchema, d as ContactDetailsSchema, O as OwnerTypeSchema, m as RelationModel, k as RelationTypeSchema, R as ResourceImageTypeSchema, o as SchemaAffiliateResourceType, n as SchemaAffiliateReward, a as SchemaRelatedPostType, j as SchemaRelationType, b as SocialMediaTypeSchema, c as associatesSchema, h as baseResourceFields, e as dateTimeSchema, l as locationGeoSchema, f as locationsSchema, g as relatedPostSchema, i as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-
|
|
4
|
+
import { O as ObjectId } from '../Chat-Wn7yfc3v.mjs';
|
|
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-Wn7yfc3v.mjs';
|
|
6
|
+
import { S as SchemaOwnerType } from '../Affiliate-CiXqVASx.mjs';
|
|
7
|
+
export { A as AffiliateModel, C as CategorySchema, d as ContactDetailsSchema, O as OwnerTypeSchema, m as RelationModel, k as RelationTypeSchema, R as ResourceImageTypeSchema, o as SchemaAffiliateResourceType, n as SchemaAffiliateReward, a as SchemaRelatedPostType, j as SchemaRelationType, b as SocialMediaTypeSchema, c as associatesSchema, h as baseResourceFields, e as dateTimeSchema, l as locationGeoSchema, f as locationsSchema, g as relatedPostSchema, i as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-CiXqVASx.mjs';
|
|
8
8
|
import '@timardex/cluemart-shared/types';
|
|
9
9
|
import 'express';
|
|
10
10
|
|
|
@@ -62,7 +62,7 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
|
|
|
62
62
|
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
63
63
|
resourceId: ObjectId;
|
|
64
64
|
};
|
|
65
|
-
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate"> & {
|
|
65
|
+
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
66
66
|
_id: ObjectId;
|
|
67
67
|
affiliate: ObjectId;
|
|
68
68
|
events: ObjectId[];
|
|
@@ -87,7 +87,7 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate"> & {
|
|
90
|
+
declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
91
91
|
_id: ObjectId;
|
|
92
92
|
affiliate: ObjectId;
|
|
93
93
|
events: ObjectId[];
|
package/dist/mongoose/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
2
|
import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
|
-
import { O as ObjectId } from '../Chat-
|
|
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-
|
|
6
|
-
import { S as SchemaOwnerType } from '../Affiliate-
|
|
7
|
-
export { A as AffiliateModel, C as CategorySchema, d as ContactDetailsSchema, O as OwnerTypeSchema, m as RelationModel, k as RelationTypeSchema, R as ResourceImageTypeSchema, o as SchemaAffiliateResourceType, n as SchemaAffiliateReward, a as SchemaRelatedPostType, j as SchemaRelationType, b as SocialMediaTypeSchema, c as associatesSchema, h as baseResourceFields, e as dateTimeSchema, l as locationGeoSchema, f as locationsSchema, g as relatedPostSchema, i as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-
|
|
4
|
+
import { O as ObjectId } from '../Chat-Wn7yfc3v.js';
|
|
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-Wn7yfc3v.js';
|
|
6
|
+
import { S as SchemaOwnerType } from '../Affiliate-B3kOq3DU.js';
|
|
7
|
+
export { A as AffiliateModel, C as CategorySchema, d as ContactDetailsSchema, O as OwnerTypeSchema, m as RelationModel, k as RelationTypeSchema, R as ResourceImageTypeSchema, o as SchemaAffiliateResourceType, n as SchemaAffiliateReward, a as SchemaRelatedPostType, j as SchemaRelationType, b as SocialMediaTypeSchema, c as associatesSchema, h as baseResourceFields, e as dateTimeSchema, l as locationGeoSchema, f as locationsSchema, g as relatedPostSchema, i as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-B3kOq3DU.js';
|
|
8
8
|
import '@timardex/cluemart-shared/types';
|
|
9
9
|
import 'express';
|
|
10
10
|
|
|
@@ -62,7 +62,7 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
|
|
|
62
62
|
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
63
63
|
resourceId: ObjectId;
|
|
64
64
|
};
|
|
65
|
-
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate"> & {
|
|
65
|
+
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
66
66
|
_id: ObjectId;
|
|
67
67
|
affiliate: ObjectId;
|
|
68
68
|
events: ObjectId[];
|
|
@@ -87,7 +87,7 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate"> & {
|
|
90
|
+
declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
91
91
|
_id: ObjectId;
|
|
92
92
|
affiliate: ObjectId;
|
|
93
93
|
events: ObjectId[];
|
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -3410,13 +3410,13 @@ var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence22) => {
|
|
|
3410
3410
|
})(EnumUserLicence || {});
|
|
3411
3411
|
var EnumUserRole = /* @__PURE__ */ ((EnumUserRole22) => {
|
|
3412
3412
|
EnumUserRole22["ADMIN"] = "admin";
|
|
3413
|
-
EnumUserRole22["SUPER_ADMIN"] = "super_admin";
|
|
3414
|
-
EnumUserRole22["CUSTOMER"] = "customer";
|
|
3415
|
-
EnumUserRole22["MARKETING"] = "marketing";
|
|
3416
|
-
EnumUserRole22["MODERATOR"] = "moderator";
|
|
3417
|
-
EnumUserRole22["SUPPORT"] = "support";
|
|
3418
3413
|
EnumUserRole22["AFFILIATE"] = "affiliate";
|
|
3414
|
+
EnumUserRole22["CUSTOMER"] = "customer";
|
|
3415
|
+
EnumUserRole22["EVENT"] = "event";
|
|
3416
|
+
EnumUserRole22["PARTNER"] = "partner";
|
|
3419
3417
|
EnumUserRole22["SCHOOL"] = "school";
|
|
3418
|
+
EnumUserRole22["SUPER_ADMIN"] = "super_admin";
|
|
3419
|
+
EnumUserRole22["VENDOR"] = "vendor";
|
|
3420
3420
|
return EnumUserRole22;
|
|
3421
3421
|
})(EnumUserRole || {});
|
|
3422
3422
|
var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
|
|
@@ -5128,8 +5128,9 @@ var USER_FIELDS_FRAGMENT = gql`
|
|
|
5128
5128
|
overallPoints
|
|
5129
5129
|
platform
|
|
5130
5130
|
preferredRegion
|
|
5131
|
+
permissions
|
|
5131
5132
|
promoCodes
|
|
5132
|
-
|
|
5133
|
+
roles
|
|
5133
5134
|
redeemedRewards {
|
|
5134
5135
|
...RedeemedRewardFields
|
|
5135
5136
|
}
|
|
@@ -8309,7 +8310,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8309
8310
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8310
8311
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
8311
8312
|
|
|
8312
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8313
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-VR3TDBJL.mjs
|
|
8313
8314
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
8314
8315
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
8315
8316
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -8534,11 +8535,11 @@ var schema7 = new MongooseSchema11(
|
|
|
8534
8535
|
required: false,
|
|
8535
8536
|
type: String
|
|
8536
8537
|
},
|
|
8537
|
-
|
|
8538
|
-
default: EnumUserRole.CUSTOMER,
|
|
8538
|
+
roles: {
|
|
8539
|
+
default: [EnumUserRole.CUSTOMER],
|
|
8539
8540
|
enum: Object.values(EnumUserRole),
|
|
8540
8541
|
required: true,
|
|
8541
|
-
type: String
|
|
8542
|
+
type: [String]
|
|
8542
8543
|
},
|
|
8543
8544
|
school: {
|
|
8544
8545
|
ref: "School",
|