@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,7 +1,7 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
2
|
import { RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialShareResourceType, PosterUsageType, RelationType, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
|
-
import { O as ObjectId } from './Chat-
|
|
4
|
+
import { O as ObjectId } from './Chat-Wn7yfc3v.js';
|
|
5
5
|
|
|
6
6
|
type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
|
|
7
7
|
postId: ObjectId;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
2
|
import { RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialShareResourceType, PosterUsageType, RelationType, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
|
-
import { O as ObjectId } from './Chat-
|
|
4
|
+
import { O as ObjectId } from './Chat-Wn7yfc3v.mjs';
|
|
5
5
|
|
|
6
6
|
type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
|
|
7
7
|
postId: ObjectId;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/index.ts"],"sourcesContent":["import { EnumUserRole } from \"@timardex/cluemart-shared\";\nimport { NotificationCount } from \"@timardex/cluemart-shared/types\";\nimport express from \"express\";\nimport mongoose from \"mongoose\";\n\nimport { SchemaChatType } from \"../mongoose/chat/Chat\";\nimport { SchemaNotificationType } from \"../mongoose/Notification\";\n\n// chnage to export type ObjectId = mongoose.Types.ObjectId;\n// chnage in server when setting decideGameType\nexport type ObjectId = mongoose.Types.ObjectId;\n\nexport enum EnumPubSubEvents {\n GET_CHAT_MESSAGE = \"GET_CHAT_MESSAGE\",\n GET_NOTIFICATIONS = \"GET_NOTIFICATIONS\",\n GET_NOTIFICATIONS_COUNT = \"GET_NOTIFICATIONS_COUNT\",\n USER_TYPING = \"USER_TYPING\",\n}\n\nexport interface AuthUser {\n email: string;\n roles: EnumUserRole[];\n userId: ObjectId;\n}\n\nexport interface SubscriptionPayload {\n getChatMessage?: SchemaChatType;\n userTyping?: SchemaChatType; // NOT USED\n getNotifications?: SchemaNotificationType[];\n // Used only for filtering; not part of the GraphQL schema output\n getNotificationsUserId?: ObjectId;\n getNotificationsCount?: NotificationCount & { userId: ObjectId };\n}\n\nexport interface GraphQLContext {\n appVersion: string | null;\n user: AuthUser | null;\n pubsub: {\n publish: (\n eventName: EnumPubSubEvents,\n payload: SubscriptionPayload,\n ) => void;\n subscribe: (eventName: EnumPubSubEvents) => AsyncIterable<any>;\n };\n request: express.Request;\n response: express.Response;\n}\n\nexport { mongoose, express };\n"],"mappings":";AAEA,OAAO,aAAa;AACpB,OAAO,cAAc;AASd,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,sBAAmB;AACnB,EAAAA,kBAAA,uBAAoB;AACpB,EAAAA,kBAAA,6BAA0B;AAC1B,EAAAA,kBAAA,iBAAc;AAJJ,SAAAA;AAAA,GAAA;","names":["EnumPubSubEvents"]}
|
|
@@ -3352,13 +3352,13 @@ var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence22) => {
|
|
|
3352
3352
|
})(EnumUserLicence || {});
|
|
3353
3353
|
var EnumUserRole = /* @__PURE__ */ ((EnumUserRole22) => {
|
|
3354
3354
|
EnumUserRole22["ADMIN"] = "admin";
|
|
3355
|
-
EnumUserRole22["SUPER_ADMIN"] = "super_admin";
|
|
3356
|
-
EnumUserRole22["CUSTOMER"] = "customer";
|
|
3357
|
-
EnumUserRole22["MARKETING"] = "marketing";
|
|
3358
|
-
EnumUserRole22["MODERATOR"] = "moderator";
|
|
3359
|
-
EnumUserRole22["SUPPORT"] = "support";
|
|
3360
3355
|
EnumUserRole22["AFFILIATE"] = "affiliate";
|
|
3356
|
+
EnumUserRole22["CUSTOMER"] = "customer";
|
|
3357
|
+
EnumUserRole22["EVENT"] = "event";
|
|
3358
|
+
EnumUserRole22["PARTNER"] = "partner";
|
|
3361
3359
|
EnumUserRole22["SCHOOL"] = "school";
|
|
3360
|
+
EnumUserRole22["SUPER_ADMIN"] = "super_admin";
|
|
3361
|
+
EnumUserRole22["VENDOR"] = "vendor";
|
|
3362
3362
|
return EnumUserRole22;
|
|
3363
3363
|
})(EnumUserRole || {});
|
|
3364
3364
|
var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
|
|
@@ -5070,8 +5070,9 @@ var USER_FIELDS_FRAGMENT = gql`
|
|
|
5070
5070
|
overallPoints
|
|
5071
5071
|
platform
|
|
5072
5072
|
preferredRegion
|
|
5073
|
+
permissions
|
|
5073
5074
|
promoCodes
|
|
5074
|
-
|
|
5075
|
+
roles
|
|
5075
5076
|
redeemedRewards {
|
|
5076
5077
|
...RedeemedRewardFields
|
|
5077
5078
|
}
|
|
@@ -8251,7 +8252,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8251
8252
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8252
8253
|
var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
|
|
8253
8254
|
|
|
8254
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8255
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-VR3TDBJL.mjs
|
|
8255
8256
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
8256
8257
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
8257
8258
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -8476,11 +8477,11 @@ var schema7 = new MongooseSchema11(
|
|
|
8476
8477
|
required: false,
|
|
8477
8478
|
type: String
|
|
8478
8479
|
},
|
|
8479
|
-
|
|
8480
|
-
default: EnumUserRole.CUSTOMER,
|
|
8480
|
+
roles: {
|
|
8481
|
+
default: [EnumUserRole.CUSTOMER],
|
|
8481
8482
|
enum: Object.values(EnumUserRole),
|
|
8482
8483
|
required: true,
|
|
8483
|
-
type: String
|
|
8484
|
+
type: [String]
|
|
8484
8485
|
},
|
|
8485
8486
|
school: {
|
|
8486
8487
|
ref: "School",
|
|
@@ -9280,4 +9281,4 @@ export {
|
|
|
9280
9281
|
SchoolModel,
|
|
9281
9282
|
AffiliateModel
|
|
9282
9283
|
};
|
|
9283
|
-
//# sourceMappingURL=chunk-
|
|
9284
|
+
//# sourceMappingURL=chunk-UEGYYYX5.mjs.map
|