@timardex/cluemart-server-shared 1.1.29 → 1.1.31
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/{chunk-HO5LGPTL.mjs → chunk-IAFTMRVS.mjs} +53 -20
- package/dist/chunk-IAFTMRVS.mjs.map +1 -0
- package/dist/index.cjs +82 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +82 -39
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +52 -19
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +82 -39
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +31 -21
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-HO5LGPTL.mjs.map +0 -1
|
@@ -3241,9 +3241,10 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor22) => {
|
|
|
3241
3241
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
|
|
3242
3242
|
EnumResourceType22["AFFILIATE"] = "affiliate";
|
|
3243
3243
|
EnumResourceType22["EVENT"] = "event";
|
|
3244
|
-
EnumResourceType22["VENDOR"] = "vendor";
|
|
3245
3244
|
EnumResourceType22["PARTNER"] = "partner";
|
|
3246
3245
|
EnumResourceType22["SCHOOL"] = "school";
|
|
3246
|
+
EnumResourceType22["VENDOR"] = "vendor";
|
|
3247
|
+
EnumResourceType22["VISITOR"] = "visitor";
|
|
3247
3248
|
return EnumResourceType22;
|
|
3248
3249
|
})(EnumResourceType || {});
|
|
3249
3250
|
var EnumEventType = /* @__PURE__ */ ((EnumEventType22) => {
|
|
@@ -3390,20 +3391,15 @@ var EnumReward = /* @__PURE__ */ ((EnumReward22) => {
|
|
|
3390
3391
|
var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
|
|
3391
3392
|
var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
|
|
3392
3393
|
var gameScreenIdentifierList = [
|
|
3393
|
-
{
|
|
3394
|
-
clue: "Where your actions turn into a timeline.",
|
|
3395
|
-
id: "activities",
|
|
3396
|
-
match: "/profile/account/favourites"
|
|
3397
|
-
},
|
|
3398
3394
|
{
|
|
3399
3395
|
clue: "Where conversations happen without speaking.",
|
|
3400
3396
|
id: "chat",
|
|
3401
3397
|
match: "/chat"
|
|
3402
3398
|
},
|
|
3403
3399
|
{
|
|
3404
|
-
clue: "
|
|
3405
|
-
id: "
|
|
3406
|
-
match: "/
|
|
3400
|
+
clue: "Where you can find your loyalties.",
|
|
3401
|
+
id: "coupons",
|
|
3402
|
+
match: "/coupons"
|
|
3407
3403
|
},
|
|
3408
3404
|
{
|
|
3409
3405
|
clue: "A single moment worth showing up for.",
|
|
@@ -3438,18 +3434,13 @@ var gameScreenIdentifierList = [
|
|
|
3438
3434
|
{
|
|
3439
3435
|
clue: "Your starting point for everything.",
|
|
3440
3436
|
id: "home",
|
|
3441
|
-
match: "/"
|
|
3437
|
+
match: "/home"
|
|
3442
3438
|
},
|
|
3443
3439
|
{
|
|
3444
3440
|
clue: "Where the app whispers what you shouldn\u2019t miss.",
|
|
3445
3441
|
id: "notifications",
|
|
3446
3442
|
match: "/notifications"
|
|
3447
3443
|
},
|
|
3448
|
-
{
|
|
3449
|
-
clue: "Where you fine-tune your experience.",
|
|
3450
|
-
id: "options",
|
|
3451
|
-
match: "/options"
|
|
3452
|
-
},
|
|
3453
3444
|
{
|
|
3454
3445
|
clue: "An organisation or creator supporting the community.",
|
|
3455
3446
|
id: "single-partner",
|
|
@@ -3461,15 +3452,30 @@ var gameScreenIdentifierList = [
|
|
|
3461
3452
|
match: "/partners"
|
|
3462
3453
|
},
|
|
3463
3454
|
{
|
|
3464
|
-
clue: "
|
|
3465
|
-
id: "
|
|
3466
|
-
match:
|
|
3455
|
+
clue: "Where your actions turn into a timeline.",
|
|
3456
|
+
id: "activities",
|
|
3457
|
+
match: "/profile/account/favourites"
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
clue: "The place to redefine who you are.",
|
|
3461
|
+
id: "edit-profile",
|
|
3462
|
+
match: "/profile/account"
|
|
3467
3463
|
},
|
|
3468
3464
|
{
|
|
3469
3465
|
clue: "Your identity, on display.",
|
|
3470
3466
|
id: "profile",
|
|
3471
3467
|
match: "/profile"
|
|
3472
3468
|
},
|
|
3469
|
+
{
|
|
3470
|
+
clue: "Where you can redeem your rewards.",
|
|
3471
|
+
id: "rewards",
|
|
3472
|
+
match: "/profile/account/rewards"
|
|
3473
|
+
},
|
|
3474
|
+
{
|
|
3475
|
+
clue: "A single published post in full view.",
|
|
3476
|
+
id: "single-visitor-post",
|
|
3477
|
+
match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`)
|
|
3478
|
+
},
|
|
3473
3479
|
{
|
|
3474
3480
|
clue: "One stallholder offering something valuable.",
|
|
3475
3481
|
id: "single-vendor",
|
|
@@ -3484,6 +3490,11 @@ var gameScreenIdentifierList = [
|
|
|
3484
3490
|
clue: "Where you browse articles and posts from around the platform.",
|
|
3485
3491
|
id: "visitors",
|
|
3486
3492
|
match: "/visitors"
|
|
3493
|
+
},
|
|
3494
|
+
{
|
|
3495
|
+
clue: "Where you fine-tune your experience.",
|
|
3496
|
+
id: "options",
|
|
3497
|
+
match: "/options"
|
|
3487
3498
|
}
|
|
3488
3499
|
];
|
|
3489
3500
|
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
@@ -5079,6 +5090,7 @@ var USER_FIELDS_FRAGMENT = gql`
|
|
|
5079
5090
|
firstName
|
|
5080
5091
|
game
|
|
5081
5092
|
isTester
|
|
5093
|
+
interests
|
|
5082
5094
|
lastName
|
|
5083
5095
|
nickName
|
|
5084
5096
|
licences {
|
|
@@ -5364,11 +5376,13 @@ var GET_EVENTS_BY_REGION = gql`
|
|
|
5364
5376
|
$region: String!
|
|
5365
5377
|
$options: ResourcesByRegionOptions
|
|
5366
5378
|
$dateStatus: EventDateStatusEnumType
|
|
5379
|
+
$tags: [String]
|
|
5367
5380
|
) {
|
|
5368
5381
|
eventsByRegion(
|
|
5369
5382
|
region: $region
|
|
5370
5383
|
options: $options
|
|
5371
5384
|
dateStatus: $dateStatus
|
|
5385
|
+
tags: $tags
|
|
5372
5386
|
) {
|
|
5373
5387
|
...EventListItemFields
|
|
5374
5388
|
}
|
|
@@ -6647,6 +6661,20 @@ var GET_USER_RESOURCES = gql`
|
|
|
6647
6661
|
}
|
|
6648
6662
|
}
|
|
6649
6663
|
`;
|
|
6664
|
+
var GET_USERS_BY_PROMO_CODE = gql`
|
|
6665
|
+
query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
|
|
6666
|
+
usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
|
|
6667
|
+
active
|
|
6668
|
+
avatar {
|
|
6669
|
+
...ResourceImageFields
|
|
6670
|
+
}
|
|
6671
|
+
deletedAt
|
|
6672
|
+
nickName
|
|
6673
|
+
userId
|
|
6674
|
+
}
|
|
6675
|
+
}
|
|
6676
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
6677
|
+
`;
|
|
6650
6678
|
var NOTIFICATION_FRAGMENT = gql`
|
|
6651
6679
|
fragment NotificationFields on Notification {
|
|
6652
6680
|
_id
|
|
@@ -8766,7 +8794,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8766
8794
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8767
8795
|
var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
|
|
8768
8796
|
|
|
8769
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8797
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-7IB7QPVH.mjs
|
|
8770
8798
|
var EnumInviteStatus2 = /* @__PURE__ */ ((EnumInviteStatus22) => {
|
|
8771
8799
|
EnumInviteStatus22["ACCEPTED"] = "Accepted";
|
|
8772
8800
|
EnumInviteStatus22["COMPLETED"] = "Completed";
|
|
@@ -9023,6 +9051,11 @@ var schema7 = new MongooseSchema11(
|
|
|
9023
9051
|
required: false,
|
|
9024
9052
|
type: mongoose11.Schema.Types.ObjectId
|
|
9025
9053
|
},
|
|
9054
|
+
interests: {
|
|
9055
|
+
enum: Object.values(EnumResourceType),
|
|
9056
|
+
required: false,
|
|
9057
|
+
type: [String]
|
|
9058
|
+
},
|
|
9026
9059
|
isTester: { default: false, required: true, type: Boolean },
|
|
9027
9060
|
lastName: { required: true, type: String },
|
|
9028
9061
|
licences: {
|
|
@@ -9983,4 +10016,4 @@ export {
|
|
|
9983
10016
|
AffiliateModel,
|
|
9984
10017
|
CouponModel
|
|
9985
10018
|
};
|
|
9986
|
-
//# sourceMappingURL=chunk-
|
|
10019
|
+
//# sourceMappingURL=chunk-IAFTMRVS.mjs.map
|