@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/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
export { default as mongoose } from 'mongoose';
|
|
5
5
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
@@ -36,7 +36,7 @@ declare enum EnumPubSubEvents {
|
|
|
36
36
|
}
|
|
37
37
|
interface AuthUser {
|
|
38
38
|
email: string;
|
|
39
|
-
role:
|
|
39
|
+
role: EnumUserRole;
|
|
40
40
|
userId: ObjectId;
|
|
41
41
|
}
|
|
42
42
|
interface SubscriptionPayload {
|
|
@@ -673,16 +673,8 @@ declare const GameModel: mongoose.Model<GameDocType, {}, {}, {}, mongoose.Docume
|
|
|
673
673
|
__v: number;
|
|
674
674
|
}, any>;
|
|
675
675
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
createdAt: Date;
|
|
679
|
-
deletedAt: Date | null;
|
|
680
|
-
overallPoints: number | null;
|
|
681
|
-
owner: _timardex_cluemart_shared.OwnerType | null;
|
|
682
|
-
ranking: number | null;
|
|
683
|
-
schoolCode: string;
|
|
684
|
-
updatedAt: Date | null;
|
|
685
|
-
} & Required<{
|
|
676
|
+
type SchoolDocument = Omit<SchoolType, "ranking">;
|
|
677
|
+
declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.Document<unknown, {}, SchoolDocument, {}, {}> & SchoolDocument & Required<{
|
|
686
678
|
_id: string;
|
|
687
679
|
}> & {
|
|
688
680
|
__v: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
export { default as mongoose } from 'mongoose';
|
|
5
5
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
@@ -36,7 +36,7 @@ declare enum EnumPubSubEvents {
|
|
|
36
36
|
}
|
|
37
37
|
interface AuthUser {
|
|
38
38
|
email: string;
|
|
39
|
-
role:
|
|
39
|
+
role: EnumUserRole;
|
|
40
40
|
userId: ObjectId;
|
|
41
41
|
}
|
|
42
42
|
interface SubscriptionPayload {
|
|
@@ -673,16 +673,8 @@ declare const GameModel: mongoose.Model<GameDocType, {}, {}, {}, mongoose.Docume
|
|
|
673
673
|
__v: number;
|
|
674
674
|
}, any>;
|
|
675
675
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
createdAt: Date;
|
|
679
|
-
deletedAt: Date | null;
|
|
680
|
-
overallPoints: number | null;
|
|
681
|
-
owner: _timardex_cluemart_shared.OwnerType | null;
|
|
682
|
-
ranking: number | null;
|
|
683
|
-
schoolCode: string;
|
|
684
|
-
updatedAt: Date | null;
|
|
685
|
-
} & Required<{
|
|
676
|
+
type SchoolDocument = Omit<SchoolType, "ranking">;
|
|
677
|
+
declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.Document<unknown, {}, SchoolDocument, {}, {}> & SchoolDocument & Required<{
|
|
686
678
|
_id: string;
|
|
687
679
|
}> & {
|
|
688
680
|
__v: number;
|
package/dist/index.mjs
CHANGED
|
@@ -6762,7 +6762,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
6762
6762
|
EnumNotificationResourceType22["DECLINED_EVENT"] = "declined_event";
|
|
6763
6763
|
EnumNotificationResourceType22["DECLINED_PARTNER"] = "declined_partner";
|
|
6764
6764
|
EnumNotificationResourceType22["DECLINED_VENDOR"] = "declined_vendor";
|
|
6765
|
-
EnumNotificationResourceType22["
|
|
6765
|
+
EnumNotificationResourceType22["DAILY_CLUE_GAME"] = "daily_clue_game";
|
|
6766
6766
|
EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
|
|
6767
6767
|
EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
6768
6768
|
EnumNotificationResourceType22["EXPIRATION_REMINDER_EVENT"] = "expiration_reminder_event";
|
|
@@ -9946,7 +9946,7 @@ var GET_GAMES = gql`
|
|
|
9946
9946
|
${GAME_DOC_FIELDS_FRAGMENT}
|
|
9947
9947
|
`;
|
|
9948
9948
|
var GET_GAME = gql`
|
|
9949
|
-
query getGame($_id: ID
|
|
9949
|
+
query getGame($_id: ID) {
|
|
9950
9950
|
game(_id: $_id) {
|
|
9951
9951
|
...GameDocFields
|
|
9952
9952
|
}
|
|
@@ -10859,6 +10859,79 @@ var schoolSchema = create$3().shape({
|
|
|
10859
10859
|
socialMedia: create$2().of(socialMediaSchema).nullable().default(null),
|
|
10860
10860
|
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"))
|
|
10861
10861
|
});
|
|
10862
|
+
var PKG = "@timardex/cluemart-shared";
|
|
10863
|
+
var IMAGE_EXTENSION = ".webp";
|
|
10864
|
+
var posterIds = ["poster1", "poster2", "poster3"];
|
|
10865
|
+
var posterFiles = Object.fromEntries(
|
|
10866
|
+
posterIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10867
|
+
);
|
|
10868
|
+
var cluiIds = [
|
|
10869
|
+
"cluiTui",
|
|
10870
|
+
"sima",
|
|
10871
|
+
"tablas",
|
|
10872
|
+
"telefonos",
|
|
10873
|
+
"ugralos"
|
|
10874
|
+
];
|
|
10875
|
+
var cluiFiles = Object.fromEntries(
|
|
10876
|
+
cluiIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10877
|
+
);
|
|
10878
|
+
var iconIds = [
|
|
10879
|
+
"apple-maps-icon",
|
|
10880
|
+
"facebook",
|
|
10881
|
+
"google-maps-icon",
|
|
10882
|
+
"instagram",
|
|
10883
|
+
"meet",
|
|
10884
|
+
"poll",
|
|
10885
|
+
"tiktok",
|
|
10886
|
+
"tip",
|
|
10887
|
+
"waze-maps-icon",
|
|
10888
|
+
"website",
|
|
10889
|
+
"youtube"
|
|
10890
|
+
];
|
|
10891
|
+
var iconFiles = Object.fromEntries(
|
|
10892
|
+
iconIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10893
|
+
);
|
|
10894
|
+
var badgeIds = ["corporate", "private", "school"];
|
|
10895
|
+
var badgeFiles = Object.fromEntries(
|
|
10896
|
+
badgeIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10897
|
+
);
|
|
10898
|
+
var logoIds = [
|
|
10899
|
+
"googleMaps-logo-dark",
|
|
10900
|
+
"googleMaps-logo-light",
|
|
10901
|
+
"logo",
|
|
10902
|
+
"logo-atr"
|
|
10903
|
+
];
|
|
10904
|
+
var logoFiles = Object.fromEntries(
|
|
10905
|
+
logoIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10906
|
+
);
|
|
10907
|
+
var otherImagesIds = [
|
|
10908
|
+
"banner-horizontal",
|
|
10909
|
+
"banner-vertical",
|
|
10910
|
+
"qr-code",
|
|
10911
|
+
"store-android",
|
|
10912
|
+
"store-ios"
|
|
10913
|
+
];
|
|
10914
|
+
var otherImagesFiles = Object.fromEntries(
|
|
10915
|
+
otherImagesIds.map((id) => [id, `${id}${IMAGE_EXTENSION}`])
|
|
10916
|
+
);
|
|
10917
|
+
var posters = Object.fromEntries(
|
|
10918
|
+
Object.entries(posterFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10919
|
+
);
|
|
10920
|
+
var cluiImages = Object.fromEntries(
|
|
10921
|
+
Object.entries(cluiFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10922
|
+
);
|
|
10923
|
+
var icons = Object.fromEntries(
|
|
10924
|
+
Object.entries(iconFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10925
|
+
);
|
|
10926
|
+
var badges = Object.fromEntries(
|
|
10927
|
+
Object.entries(badgeFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10928
|
+
);
|
|
10929
|
+
var logos = Object.fromEntries(
|
|
10930
|
+
Object.entries(logoFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10931
|
+
);
|
|
10932
|
+
var otherImages = Object.fromEntries(
|
|
10933
|
+
Object.entries(otherImagesFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
10934
|
+
);
|
|
10862
10935
|
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
10863
10936
|
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
10864
10937
|
EnumActivity2["GOING"] = "GOING";
|
|
@@ -11562,7 +11635,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11562
11635
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11563
11636
|
var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
|
|
11564
11637
|
|
|
11565
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11638
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-73ULMQM6.mjs
|
|
11566
11639
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11567
11640
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11568
11641
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -12224,7 +12297,6 @@ var schema15 = new MongooseSchema20(
|
|
|
12224
12297
|
required: true,
|
|
12225
12298
|
type: OwnerTypeSchema
|
|
12226
12299
|
},
|
|
12227
|
-
ranking: { default: 0, required: false, type: Number },
|
|
12228
12300
|
region: { required: true, type: String },
|
|
12229
12301
|
schoolCode: { required: true, type: String },
|
|
12230
12302
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|