@timardex/cluemart-server-shared 1.0.139 → 1.0.141
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/{Chat-DjrJ0LKo.d.mts → Chat-CM_mGOB0.d.mts} +2 -2
- package/dist/{Chat-DjrJ0LKo.d.ts → Chat-CM_mGOB0.d.ts} +2 -2
- package/dist/{chunk-PVOU5CHB.mjs → chunk-7PPWLIUD.mjs} +77 -5
- package/dist/chunk-7PPWLIUD.mjs.map +1 -0
- package/dist/index.cjs +76 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -12
- package/dist/index.d.ts +4 -12
- package/dist/index.mjs +76 -4
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +76 -4
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +4 -12
- package/dist/mongoose/index.d.ts +4 -12
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +76 -4
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +1 -1
- package/dist/service/index.d.ts +1 -1
- package/dist/service/index.mjs +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-PVOU5CHB.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType } from '@timardex/cluemart-shared';
|
|
1
|
+
import { CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType } from '@timardex/cluemart-shared';
|
|
2
2
|
import mongoose from 'mongoose';
|
|
3
3
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
4
4
|
import express from 'express';
|
|
@@ -26,7 +26,7 @@ declare enum EnumPubSubEvents {
|
|
|
26
26
|
}
|
|
27
27
|
interface AuthUser {
|
|
28
28
|
email: string;
|
|
29
|
-
role:
|
|
29
|
+
role: EnumUserRole;
|
|
30
30
|
userId: ObjectId;
|
|
31
31
|
}
|
|
32
32
|
interface SubscriptionPayload {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType } from '@timardex/cluemart-shared';
|
|
1
|
+
import { CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType } from '@timardex/cluemart-shared';
|
|
2
2
|
import mongoose from 'mongoose';
|
|
3
3
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
4
4
|
import express from 'express';
|
|
@@ -26,7 +26,7 @@ declare enum EnumPubSubEvents {
|
|
|
26
26
|
}
|
|
27
27
|
interface AuthUser {
|
|
28
28
|
email: string;
|
|
29
|
-
role:
|
|
29
|
+
role: EnumUserRole;
|
|
30
30
|
userId: ObjectId;
|
|
31
31
|
}
|
|
32
32
|
interface SubscriptionPayload {
|
|
@@ -6741,7 +6741,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
6741
6741
|
EnumNotificationResourceType22["DECLINED_EVENT"] = "declined_event";
|
|
6742
6742
|
EnumNotificationResourceType22["DECLINED_PARTNER"] = "declined_partner";
|
|
6743
6743
|
EnumNotificationResourceType22["DECLINED_VENDOR"] = "declined_vendor";
|
|
6744
|
-
EnumNotificationResourceType22["
|
|
6744
|
+
EnumNotificationResourceType22["DAILY_CLUE_GAME"] = "daily_clue_game";
|
|
6745
6745
|
EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
|
|
6746
6746
|
EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
6747
6747
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
|
|
@@ -9925,7 +9925,7 @@ var GET_GAMES = gql`
|
|
|
9925
9925
|
${GAME_DOC_FIELDS_FRAGMENT}
|
|
9926
9926
|
`;
|
|
9927
9927
|
var GET_GAME = gql`
|
|
9928
|
-
query getGame($_id: ID
|
|
9928
|
+
query getGame($_id: ID) {
|
|
9929
9929
|
game(_id: $_id) {
|
|
9930
9930
|
...GameDocFields
|
|
9931
9931
|
}
|
|
@@ -10838,6 +10838,79 @@ var schoolSchema = create$3().shape({
|
|
|
10838
10838
|
socialMedia: create$2().of(socialMediaSchema).nullable().default(null),
|
|
10839
10839
|
studentCount: create$5().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(350, "Student count must be at least 350").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
|
|
10840
10840
|
});
|
|
10841
|
+
var PKG = "@timardex/cluemart-shared";
|
|
10842
|
+
var IMAGE_EXTENSION = ".webp";
|
|
10843
|
+
var posterIds = ["poster1", "poster2", "poster3"];
|
|
10844
|
+
var posterFiles = Object.fromEntries(
|
|
10845
|
+
posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10846
|
+
);
|
|
10847
|
+
var cluiIds = [
|
|
10848
|
+
"cluiTui",
|
|
10849
|
+
"sima",
|
|
10850
|
+
"tablas",
|
|
10851
|
+
"telefonos",
|
|
10852
|
+
"ugralos"
|
|
10853
|
+
];
|
|
10854
|
+
var cluiFiles = Object.fromEntries(
|
|
10855
|
+
cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10856
|
+
);
|
|
10857
|
+
var iconIds = [
|
|
10858
|
+
"apple-maps-icon",
|
|
10859
|
+
"facebook",
|
|
10860
|
+
"google-maps-icon",
|
|
10861
|
+
"instagram",
|
|
10862
|
+
"meet",
|
|
10863
|
+
"poll",
|
|
10864
|
+
"tiktok",
|
|
10865
|
+
"tip",
|
|
10866
|
+
"waze-maps-icon",
|
|
10867
|
+
"website",
|
|
10868
|
+
"youtube"
|
|
10869
|
+
];
|
|
10870
|
+
var iconFiles = Object.fromEntries(
|
|
10871
|
+
iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10872
|
+
);
|
|
10873
|
+
var badgeIds = ["corporate", "private", "school"];
|
|
10874
|
+
var badgeFiles = Object.fromEntries(
|
|
10875
|
+
badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10876
|
+
);
|
|
10877
|
+
var logoIds = [
|
|
10878
|
+
"googleMaps-logo-dark",
|
|
10879
|
+
"googleMaps-logo-light",
|
|
10880
|
+
"logo",
|
|
10881
|
+
"logo-atr"
|
|
10882
|
+
];
|
|
10883
|
+
var logoFiles = Object.fromEntries(
|
|
10884
|
+
logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10885
|
+
);
|
|
10886
|
+
var otherImagesIds = [
|
|
10887
|
+
"banner-horizontal",
|
|
10888
|
+
"banner-vertical",
|
|
10889
|
+
"qr-code",
|
|
10890
|
+
"store-android",
|
|
10891
|
+
"store-ios"
|
|
10892
|
+
];
|
|
10893
|
+
var otherImagesFiles = Object.fromEntries(
|
|
10894
|
+
otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10895
|
+
);
|
|
10896
|
+
var posters = Object.fromEntries(
|
|
10897
|
+
Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10898
|
+
);
|
|
10899
|
+
var cluiImages = Object.fromEntries(
|
|
10900
|
+
Object.entries(cluiFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10901
|
+
);
|
|
10902
|
+
var icons = Object.fromEntries(
|
|
10903
|
+
Object.entries(iconFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10904
|
+
);
|
|
10905
|
+
var badges = Object.fromEntries(
|
|
10906
|
+
Object.entries(badgeFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10907
|
+
);
|
|
10908
|
+
var logos = Object.fromEntries(
|
|
10909
|
+
Object.entries(logoFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10910
|
+
);
|
|
10911
|
+
var otherImages = Object.fromEntries(
|
|
10912
|
+
Object.entries(otherImagesFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10913
|
+
);
|
|
10841
10914
|
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
10842
10915
|
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
10843
10916
|
EnumActivity2["GOING"] = "GOING";
|
|
@@ -11541,7 +11614,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11541
11614
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11542
11615
|
var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
|
|
11543
11616
|
|
|
11544
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11617
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-73ULMQM6.mjs
|
|
11545
11618
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11546
11619
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11547
11620
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -12203,7 +12276,6 @@ var schema15 = new MongooseSchema20(
|
|
|
12203
12276
|
required: true,
|
|
12204
12277
|
type: OwnerTypeSchema
|
|
12205
12278
|
},
|
|
12206
|
-
ranking: { default: 0, required: false, type: Number },
|
|
12207
12279
|
region: { required: true, type: String },
|
|
12208
12280
|
schoolCode: { required: true, type: String },
|
|
12209
12281
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
@@ -12280,4 +12352,4 @@ react/cjs/react.development.js:
|
|
|
12280
12352
|
* LICENSE file in the root directory of this source tree.
|
|
12281
12353
|
*)
|
|
12282
12354
|
*/
|
|
12283
|
-
//# sourceMappingURL=chunk-
|
|
12355
|
+
//# sourceMappingURL=chunk-7PPWLIUD.mjs.map
|