@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
package/dist/mongoose/index.cjs
CHANGED
|
@@ -6812,7 +6812,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
6812
6812
|
EnumNotificationResourceType22["DECLINED_EVENT"] = "declined_event";
|
|
6813
6813
|
EnumNotificationResourceType22["DECLINED_PARTNER"] = "declined_partner";
|
|
6814
6814
|
EnumNotificationResourceType22["DECLINED_VENDOR"] = "declined_vendor";
|
|
6815
|
-
EnumNotificationResourceType22["
|
|
6815
|
+
EnumNotificationResourceType22["DAILY_CLUE_GAME"] = "daily_clue_game";
|
|
6816
6816
|
EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
|
|
6817
6817
|
EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
6818
6818
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
|
|
@@ -9996,7 +9996,7 @@ var GET_GAMES = gql`
|
|
|
9996
9996
|
${GAME_DOC_FIELDS_FRAGMENT}
|
|
9997
9997
|
`;
|
|
9998
9998
|
var GET_GAME = gql`
|
|
9999
|
-
query getGame($_id: ID
|
|
9999
|
+
query getGame($_id: ID) {
|
|
10000
10000
|
game(_id: $_id) {
|
|
10001
10001
|
...GameDocFields
|
|
10002
10002
|
}
|
|
@@ -10909,6 +10909,79 @@ var schoolSchema = create$3().shape({
|
|
|
10909
10909
|
socialMedia: create$2().of(socialMediaSchema).nullable().default(null),
|
|
10910
10910
|
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"))
|
|
10911
10911
|
});
|
|
10912
|
+
var PKG = "@timardex/cluemart-shared";
|
|
10913
|
+
var IMAGE_EXTENSION = ".webp";
|
|
10914
|
+
var posterIds = ["poster1", "poster2", "poster3"];
|
|
10915
|
+
var posterFiles = Object.fromEntries(
|
|
10916
|
+
posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10917
|
+
);
|
|
10918
|
+
var cluiIds = [
|
|
10919
|
+
"cluiTui",
|
|
10920
|
+
"sima",
|
|
10921
|
+
"tablas",
|
|
10922
|
+
"telefonos",
|
|
10923
|
+
"ugralos"
|
|
10924
|
+
];
|
|
10925
|
+
var cluiFiles = Object.fromEntries(
|
|
10926
|
+
cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10927
|
+
);
|
|
10928
|
+
var iconIds = [
|
|
10929
|
+
"apple-maps-icon",
|
|
10930
|
+
"facebook",
|
|
10931
|
+
"google-maps-icon",
|
|
10932
|
+
"instagram",
|
|
10933
|
+
"meet",
|
|
10934
|
+
"poll",
|
|
10935
|
+
"tiktok",
|
|
10936
|
+
"tip",
|
|
10937
|
+
"waze-maps-icon",
|
|
10938
|
+
"website",
|
|
10939
|
+
"youtube"
|
|
10940
|
+
];
|
|
10941
|
+
var iconFiles = Object.fromEntries(
|
|
10942
|
+
iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10943
|
+
);
|
|
10944
|
+
var badgeIds = ["corporate", "private", "school"];
|
|
10945
|
+
var badgeFiles = Object.fromEntries(
|
|
10946
|
+
badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10947
|
+
);
|
|
10948
|
+
var logoIds = [
|
|
10949
|
+
"googleMaps-logo-dark",
|
|
10950
|
+
"googleMaps-logo-light",
|
|
10951
|
+
"logo",
|
|
10952
|
+
"logo-atr"
|
|
10953
|
+
];
|
|
10954
|
+
var logoFiles = Object.fromEntries(
|
|
10955
|
+
logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10956
|
+
);
|
|
10957
|
+
var otherImagesIds = [
|
|
10958
|
+
"banner-horizontal",
|
|
10959
|
+
"banner-vertical",
|
|
10960
|
+
"qr-code",
|
|
10961
|
+
"store-android",
|
|
10962
|
+
"store-ios"
|
|
10963
|
+
];
|
|
10964
|
+
var otherImagesFiles = Object.fromEntries(
|
|
10965
|
+
otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10966
|
+
);
|
|
10967
|
+
var posters = Object.fromEntries(
|
|
10968
|
+
Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10969
|
+
);
|
|
10970
|
+
var cluiImages = Object.fromEntries(
|
|
10971
|
+
Object.entries(cluiFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10972
|
+
);
|
|
10973
|
+
var icons = Object.fromEntries(
|
|
10974
|
+
Object.entries(iconFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10975
|
+
);
|
|
10976
|
+
var badges = Object.fromEntries(
|
|
10977
|
+
Object.entries(badgeFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10978
|
+
);
|
|
10979
|
+
var logos = Object.fromEntries(
|
|
10980
|
+
Object.entries(logoFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10981
|
+
);
|
|
10982
|
+
var otherImages = Object.fromEntries(
|
|
10983
|
+
Object.entries(otherImagesFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10984
|
+
);
|
|
10912
10985
|
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
10913
10986
|
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
10914
10987
|
EnumActivity2["GOING"] = "GOING";
|
|
@@ -11612,7 +11685,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11612
11685
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11613
11686
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
11614
11687
|
|
|
11615
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11688
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-73ULMQM6.mjs
|
|
11616
11689
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11617
11690
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11618
11691
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -12274,7 +12347,6 @@ var schema15 = new MongooseSchema20(
|
|
|
12274
12347
|
required: true,
|
|
12275
12348
|
type: OwnerTypeSchema
|
|
12276
12349
|
},
|
|
12277
|
-
ranking: { default: 0, required: false, type: Number },
|
|
12278
12350
|
region: { required: true, type: String },
|
|
12279
12351
|
schoolCode: { required: true, type: String },
|
|
12280
12352
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|