@timardex/cluemart-server-shared 2.5.0 → 3.0.0
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-zioeZDyH.d.ts → Affiliate-CpoM9_Bb.d.mts} +7 -1
- package/dist/{Affiliate-DIAzxxfs.d.mts → Affiliate-YoKkDGxN.d.ts} +7 -1
- package/dist/{chunk-TMPPPLIW.mjs → chunk-F54NB7VH.mjs} +1 -1
- package/dist/chunk-F54NB7VH.mjs.map +1 -0
- package/dist/{chunk-T5TP2XMR.mjs → chunk-YMDOR6W2.mjs} +248 -234
- package/dist/chunk-YMDOR6W2.mjs.map +1 -0
- package/dist/{index-CmtBYjpi.d.mts → index-BptxBl9x.d.mts} +8 -1
- package/dist/{index-CmtBYjpi.d.ts → index-BptxBl9x.d.ts} +8 -1
- package/dist/index.cjs +249 -236
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +47 -20
- package/dist/index.d.ts +47 -20
- package/dist/index.mjs +247 -233
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +249 -236
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +38 -24
- package/dist/mongoose/index.d.ts +38 -24
- package/dist/mongoose/index.mjs +3 -5
- package/dist/service/index.cjs +247 -228
- 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-T5TP2XMR.mjs.map +0 -1
- package/dist/chunk-TMPPPLIW.mjs.map +0 -1
|
@@ -319,30 +319,6 @@ var schema4 = new mongoose4.Schema(
|
|
|
319
319
|
schema4.index({ adId: 1, date: 1, placement: 1, platform: 1 }, { unique: true });
|
|
320
320
|
var AdMetricsModel = mongoose4.models.AdMetrics || mongoose4.model("AdMetrics", schema4);
|
|
321
321
|
|
|
322
|
-
// src/mongoose/ad/AdSettings.ts
|
|
323
|
-
import mongoose5 from "mongoose";
|
|
324
|
-
var DEFAULT_AD_SETTINGS = {
|
|
325
|
-
_id: "default",
|
|
326
|
-
approvalRequired: true
|
|
327
|
-
};
|
|
328
|
-
var schema5 = new mongoose5.Schema(
|
|
329
|
-
{
|
|
330
|
-
_id: { default: "default", enum: ["default"], type: String },
|
|
331
|
-
approvalRequired: { default: true, required: true, type: Boolean },
|
|
332
|
-
minAppearancesPerHour: {
|
|
333
|
-
max: 12,
|
|
334
|
-
min: 1,
|
|
335
|
-
type: Number,
|
|
336
|
-
validate: Number.isInteger
|
|
337
|
-
},
|
|
338
|
-
paidSlotsPerPlacement: { enum: [30], immutable: true, type: Number },
|
|
339
|
-
reservedSlotsPerPlacement: { enum: [7], immutable: true, type: Number },
|
|
340
|
-
rotationSeconds: { enum: [8], immutable: true, type: Number }
|
|
341
|
-
},
|
|
342
|
-
{ collection: "adSettings", timestamps: true }
|
|
343
|
-
);
|
|
344
|
-
var AdSettingsModel = mongoose5.models.AdSettings || mongoose5.model("AdSettings", schema5, "adSettings");
|
|
345
|
-
|
|
346
322
|
// src/mongoose/BillingCatalog.ts
|
|
347
323
|
import {
|
|
348
324
|
BILLING_CATALOG_CURRENCY,
|
|
@@ -353,8 +329,8 @@ import {
|
|
|
353
329
|
EnumUserLicence,
|
|
354
330
|
INITIAL_BILLING_CATALOG
|
|
355
331
|
} from "@timardex/cluemart-shared";
|
|
356
|
-
import
|
|
357
|
-
var MongooseSchema2 =
|
|
332
|
+
import mongoose5 from "mongoose";
|
|
333
|
+
var MongooseSchema2 = mongoose5.Schema;
|
|
358
334
|
var BILLING_CATALOG_COLLECTION_NAME = "billingCatalog";
|
|
359
335
|
var paidVendorLicences = [
|
|
360
336
|
EnumUserLicence.PRO_VENDOR,
|
|
@@ -401,7 +377,7 @@ var priceHistorySchema = new MongooseSchema2(
|
|
|
401
377
|
default: null,
|
|
402
378
|
ref: "User",
|
|
403
379
|
required: false,
|
|
404
|
-
type:
|
|
380
|
+
type: mongoose5.Schema.Types.ObjectId
|
|
405
381
|
},
|
|
406
382
|
currency: currencyField,
|
|
407
383
|
effectiveFrom: { required: true, type: Date },
|
|
@@ -412,7 +388,7 @@ var priceHistorySchema = new MongooseSchema2(
|
|
|
412
388
|
},
|
|
413
389
|
{ _id: false }
|
|
414
390
|
);
|
|
415
|
-
var
|
|
391
|
+
var schema5 = new MongooseSchema2(
|
|
416
392
|
{
|
|
417
393
|
active: { default: true, required: true, type: Boolean },
|
|
418
394
|
billingPeriod: {
|
|
@@ -468,7 +444,7 @@ var schema6 = new MongooseSchema2(
|
|
|
468
444
|
default: null,
|
|
469
445
|
ref: "User",
|
|
470
446
|
required: false,
|
|
471
|
-
type:
|
|
447
|
+
type: mongoose5.Schema.Types.ObjectId
|
|
472
448
|
}
|
|
473
449
|
},
|
|
474
450
|
{
|
|
@@ -477,7 +453,7 @@ var schema6 = new MongooseSchema2(
|
|
|
477
453
|
timestamps: true
|
|
478
454
|
}
|
|
479
455
|
);
|
|
480
|
-
|
|
456
|
+
schema5.pre("validate", function validateDefinition() {
|
|
481
457
|
if (!billingCatalogDefinitionMatches(this)) {
|
|
482
458
|
this.invalidate(
|
|
483
459
|
"key",
|
|
@@ -485,18 +461,18 @@ schema6.pre("validate", function validateDefinition() {
|
|
|
485
461
|
);
|
|
486
462
|
}
|
|
487
463
|
});
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
464
|
+
schema5.index({ billingPeriod: 1, licenceType: 1 }, { unique: true });
|
|
465
|
+
schema5.index({ active: 1, licenceType: 1 });
|
|
466
|
+
schema5.index(
|
|
491
467
|
{ stripePriceId: 1 },
|
|
492
468
|
{
|
|
493
469
|
partialFilterExpression: { stripePriceId: { $type: "string" } },
|
|
494
470
|
unique: true
|
|
495
471
|
}
|
|
496
472
|
);
|
|
497
|
-
var BillingCatalogModel =
|
|
473
|
+
var BillingCatalogModel = mongoose5.models.BillingCatalogEntry || mongoose5.model(
|
|
498
474
|
"BillingCatalogEntry",
|
|
499
|
-
|
|
475
|
+
schema5,
|
|
500
476
|
BILLING_CATALOG_COLLECTION_NAME
|
|
501
477
|
);
|
|
502
478
|
function buildInitialBillingCatalogEntries(now = /* @__PURE__ */ new Date()) {
|
|
@@ -524,15 +500,15 @@ function getBillingCatalogDefinition(key) {
|
|
|
524
500
|
import {
|
|
525
501
|
EnumChatType
|
|
526
502
|
} from "@timardex/cluemart-shared";
|
|
527
|
-
import
|
|
528
|
-
var MongooseSchema3 =
|
|
503
|
+
import mongoose6 from "mongoose";
|
|
504
|
+
var MongooseSchema3 = mongoose6.Schema;
|
|
529
505
|
var MessageReplyPreviewSchema = new MongooseSchema3(
|
|
530
506
|
{
|
|
531
507
|
contentPreview: { required: true, type: String },
|
|
532
508
|
senderId: {
|
|
533
509
|
ref: "User",
|
|
534
510
|
required: true,
|
|
535
|
-
type:
|
|
511
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
536
512
|
},
|
|
537
513
|
senderName: { required: true, type: String }
|
|
538
514
|
},
|
|
@@ -544,7 +520,7 @@ var MessageReactionSchema = new MongooseSchema3(
|
|
|
544
520
|
userId: {
|
|
545
521
|
ref: "User",
|
|
546
522
|
required: true,
|
|
547
|
-
type:
|
|
523
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
548
524
|
}
|
|
549
525
|
},
|
|
550
526
|
{ _id: false }
|
|
@@ -555,7 +531,7 @@ var MessageSeenSchema = new MongooseSchema3(
|
|
|
555
531
|
userId: {
|
|
556
532
|
ref: "User",
|
|
557
533
|
required: true,
|
|
558
|
-
type:
|
|
534
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
559
535
|
}
|
|
560
536
|
},
|
|
561
537
|
{ _id: false }
|
|
@@ -571,13 +547,13 @@ var MessageSchema = new MongooseSchema3(
|
|
|
571
547
|
replyToMessageId: {
|
|
572
548
|
ref: "Chat.messages",
|
|
573
549
|
required: false,
|
|
574
|
-
type:
|
|
550
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
575
551
|
},
|
|
576
552
|
seenBy: { default: [], required: false, type: [MessageSeenSchema] },
|
|
577
553
|
senderId: {
|
|
578
554
|
ref: "User",
|
|
579
555
|
required: true,
|
|
580
|
-
type:
|
|
556
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
581
557
|
}
|
|
582
558
|
},
|
|
583
559
|
{ timestamps: true }
|
|
@@ -590,7 +566,7 @@ var ParticipantSchema = new MongooseSchema3(
|
|
|
590
566
|
userId: {
|
|
591
567
|
ref: "User",
|
|
592
568
|
required: true,
|
|
593
|
-
type:
|
|
569
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
594
570
|
},
|
|
595
571
|
userName: { required: true, type: String }
|
|
596
572
|
},
|
|
@@ -621,14 +597,14 @@ ChatSchema.index({
|
|
|
621
597
|
"participants.userId": 1,
|
|
622
598
|
updatedAt: -1
|
|
623
599
|
});
|
|
624
|
-
var ChatModel =
|
|
600
|
+
var ChatModel = mongoose6.models.Chat || mongoose6.model("Chat", ChatSchema);
|
|
625
601
|
|
|
626
602
|
// src/mongoose/chat/ChatReport.ts
|
|
627
603
|
import {
|
|
628
604
|
EnumChatReportReason
|
|
629
605
|
} from "@timardex/cluemart-shared";
|
|
630
|
-
import
|
|
631
|
-
var MongooseSchema4 =
|
|
606
|
+
import mongoose7 from "mongoose";
|
|
607
|
+
var MongooseSchema4 = mongoose7.Schema;
|
|
632
608
|
var ReasonSchema = new MongooseSchema4(
|
|
633
609
|
{
|
|
634
610
|
details: { default: null, required: false, type: String },
|
|
@@ -645,18 +621,18 @@ var ChatReportSchema = new MongooseSchema4(
|
|
|
645
621
|
chatId: {
|
|
646
622
|
ref: "Chat",
|
|
647
623
|
required: true,
|
|
648
|
-
type:
|
|
624
|
+
type: mongoose7.Schema.Types.ObjectId
|
|
649
625
|
},
|
|
650
626
|
reason: { required: true, type: ReasonSchema },
|
|
651
627
|
reportedUserId: {
|
|
652
628
|
ref: "User",
|
|
653
629
|
required: true,
|
|
654
|
-
type:
|
|
630
|
+
type: mongoose7.Schema.Types.ObjectId
|
|
655
631
|
},
|
|
656
632
|
reporterUserId: {
|
|
657
633
|
ref: "User",
|
|
658
634
|
required: true,
|
|
659
|
-
type:
|
|
635
|
+
type: mongoose7.Schema.Types.ObjectId
|
|
660
636
|
},
|
|
661
637
|
resolved: { default: false, required: true, type: Boolean }
|
|
662
638
|
},
|
|
@@ -664,7 +640,7 @@ var ChatReportSchema = new MongooseSchema4(
|
|
|
664
640
|
);
|
|
665
641
|
ChatReportSchema.index({ chatId: 1, reportedUserId: 1 });
|
|
666
642
|
ChatReportSchema.index({ createdAt: -1, reporterUserId: 1 });
|
|
667
|
-
var ChatReportModel =
|
|
643
|
+
var ChatReportModel = mongoose7.models.ChatReport || mongoose7.model("ChatReport", ChatReportSchema);
|
|
668
644
|
|
|
669
645
|
// src/mongoose/global.ts
|
|
670
646
|
import {
|
|
@@ -672,15 +648,15 @@ import {
|
|
|
672
648
|
EnumPostType,
|
|
673
649
|
EnumUserLicence as EnumUserLicence2
|
|
674
650
|
} from "@timardex/cluemart-shared";
|
|
675
|
-
import
|
|
676
|
-
var MongooseSchema5 =
|
|
651
|
+
import mongoose8 from "mongoose";
|
|
652
|
+
var MongooseSchema5 = mongoose8.Schema;
|
|
677
653
|
var OwnerTypeSchema = new MongooseSchema5(
|
|
678
654
|
{
|
|
679
655
|
email: { required: true, type: String },
|
|
680
656
|
userId: {
|
|
681
657
|
ref: "User",
|
|
682
658
|
required: true,
|
|
683
|
-
type:
|
|
659
|
+
type: mongoose8.Schema.Types.ObjectId
|
|
684
660
|
}
|
|
685
661
|
},
|
|
686
662
|
{ _id: false }
|
|
@@ -823,7 +799,7 @@ var relatedPostSchema = new MongooseSchema5(
|
|
|
823
799
|
postId: {
|
|
824
800
|
ref: "Post",
|
|
825
801
|
required: true,
|
|
826
|
-
type:
|
|
802
|
+
type: mongoose8.Schema.Types.ObjectId
|
|
827
803
|
},
|
|
828
804
|
postSlug: { required: true, type: String },
|
|
829
805
|
postType: {
|
|
@@ -848,7 +824,7 @@ var baseResourceFields = {
|
|
|
848
824
|
adIds: {
|
|
849
825
|
ref: "Ad",
|
|
850
826
|
required: false,
|
|
851
|
-
type: [
|
|
827
|
+
type: [mongoose8.Schema.Types.ObjectId]
|
|
852
828
|
},
|
|
853
829
|
approvedAt: { default: null, required: false, type: Date },
|
|
854
830
|
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
@@ -881,7 +857,7 @@ var baseResourceFields = {
|
|
|
881
857
|
import {
|
|
882
858
|
EnumEventType
|
|
883
859
|
} from "@timardex/cluemart-shared";
|
|
884
|
-
import
|
|
860
|
+
import mongoose9 from "mongoose";
|
|
885
861
|
|
|
886
862
|
// src/mongoose/searchNamePlugin.ts
|
|
887
863
|
function deriveSearchName(name) {
|
|
@@ -977,7 +953,7 @@ function searchNamePlugin(schema25) {
|
|
|
977
953
|
}
|
|
978
954
|
|
|
979
955
|
// src/mongoose/GoogleImportedMarket.ts
|
|
980
|
-
var MongooseSchema6 =
|
|
956
|
+
var MongooseSchema6 = mongoose9.Schema;
|
|
981
957
|
var addressComponentSchema = new MongooseSchema6(
|
|
982
958
|
{
|
|
983
959
|
longName: { required: false, type: String },
|
|
@@ -986,7 +962,7 @@ var addressComponentSchema = new MongooseSchema6(
|
|
|
986
962
|
},
|
|
987
963
|
{ _id: false }
|
|
988
964
|
);
|
|
989
|
-
var
|
|
965
|
+
var schema6 = new MongooseSchema6(
|
|
990
966
|
{
|
|
991
967
|
active: { default: false, required: true, type: Boolean },
|
|
992
968
|
address: { required: true, type: String },
|
|
@@ -998,7 +974,7 @@ var schema7 = new MongooseSchema6(
|
|
|
998
974
|
claimedByUserId: {
|
|
999
975
|
ref: "User",
|
|
1000
976
|
required: false,
|
|
1001
|
-
type:
|
|
977
|
+
type: mongoose9.Schema.Types.ObjectId
|
|
1002
978
|
},
|
|
1003
979
|
cover: {
|
|
1004
980
|
required: false,
|
|
@@ -1010,7 +986,7 @@ var schema7 = new MongooseSchema6(
|
|
|
1010
986
|
eventId: {
|
|
1011
987
|
ref: "Event",
|
|
1012
988
|
required: false,
|
|
1013
|
-
type:
|
|
989
|
+
type: mongoose9.Schema.Types.ObjectId
|
|
1014
990
|
},
|
|
1015
991
|
eventType: {
|
|
1016
992
|
enum: Object.values(EnumEventType),
|
|
@@ -1044,23 +1020,23 @@ var schema7 = new MongooseSchema6(
|
|
|
1044
1020
|
},
|
|
1045
1021
|
{ timestamps: true }
|
|
1046
1022
|
);
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
var GoogleImportedMarketModel =
|
|
1023
|
+
schema6.index({ "location.geo": "2dsphere" });
|
|
1024
|
+
schema6.index({ name: 1 });
|
|
1025
|
+
schema6.index({ region: 1 });
|
|
1026
|
+
schema6.index({ deletedAt: 1 });
|
|
1027
|
+
schema6.index({ "dateTime.dateStatus": 1 });
|
|
1028
|
+
schema6.index({ slug: 1 });
|
|
1029
|
+
schema6.index({ description: "text", name: "text" });
|
|
1030
|
+
schema6.plugin(searchNamePlugin);
|
|
1031
|
+
var GoogleImportedMarketModel = mongoose9.models.GoogleImportedMarket || mongoose9.model("GoogleImportedMarket", schema6);
|
|
1056
1032
|
|
|
1057
1033
|
// src/mongoose/Notification.ts
|
|
1058
1034
|
import {
|
|
1059
1035
|
EnumNotificationResourceType,
|
|
1060
1036
|
EnumNotificationType
|
|
1061
1037
|
} from "@timardex/cluemart-shared";
|
|
1062
|
-
import
|
|
1063
|
-
var MongooseSchema7 =
|
|
1038
|
+
import mongoose10 from "mongoose";
|
|
1039
|
+
var MongooseSchema7 = mongoose10.Schema;
|
|
1064
1040
|
var notificationDataSchema = new MongooseSchema7(
|
|
1065
1041
|
{
|
|
1066
1042
|
resourceId: { required: true, type: String },
|
|
@@ -1073,7 +1049,7 @@ var notificationDataSchema = new MongooseSchema7(
|
|
|
1073
1049
|
},
|
|
1074
1050
|
{ _id: false }
|
|
1075
1051
|
);
|
|
1076
|
-
var
|
|
1052
|
+
var schema7 = new MongooseSchema7(
|
|
1077
1053
|
{
|
|
1078
1054
|
data: {
|
|
1079
1055
|
default: null,
|
|
@@ -1092,20 +1068,20 @@ var schema8 = new MongooseSchema7(
|
|
|
1092
1068
|
userId: {
|
|
1093
1069
|
ref: "User",
|
|
1094
1070
|
required: true,
|
|
1095
|
-
type:
|
|
1071
|
+
type: mongoose10.Schema.Types.ObjectId
|
|
1096
1072
|
}
|
|
1097
1073
|
},
|
|
1098
1074
|
{ timestamps: true }
|
|
1099
1075
|
);
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
var NotificationModel =
|
|
1076
|
+
schema7.index({ isRead: 1, userId: 1 });
|
|
1077
|
+
schema7.index({ createdAt: -1, userId: 1 });
|
|
1078
|
+
var NotificationModel = mongoose10.models.Notification || mongoose10.model("Notification", schema7);
|
|
1103
1079
|
|
|
1104
1080
|
// src/mongoose/PushToken.ts
|
|
1105
1081
|
import { EnumOSPlatform } from "@timardex/cluemart-shared/enums";
|
|
1106
|
-
import
|
|
1107
|
-
var MongooseSchema8 =
|
|
1108
|
-
var
|
|
1082
|
+
import mongoose11 from "mongoose";
|
|
1083
|
+
var MongooseSchema8 = mongoose11.Schema;
|
|
1084
|
+
var schema8 = new MongooseSchema8(
|
|
1109
1085
|
{
|
|
1110
1086
|
platform: {
|
|
1111
1087
|
enum: Object.values(EnumOSPlatform),
|
|
@@ -1116,12 +1092,12 @@ var schema9 = new MongooseSchema8(
|
|
|
1116
1092
|
userId: {
|
|
1117
1093
|
ref: "User",
|
|
1118
1094
|
required: true,
|
|
1119
|
-
type:
|
|
1095
|
+
type: mongoose11.Schema.Types.ObjectId
|
|
1120
1096
|
}
|
|
1121
1097
|
},
|
|
1122
1098
|
{ timestamps: true }
|
|
1123
1099
|
);
|
|
1124
|
-
var PushTokenModel =
|
|
1100
|
+
var PushTokenModel = mongoose11.models.PushToken || mongoose11.model("PushToken", schema8);
|
|
1125
1101
|
|
|
1126
1102
|
// src/mongoose/Relation.ts
|
|
1127
1103
|
import {
|
|
@@ -1130,15 +1106,15 @@ import {
|
|
|
1130
1106
|
EnumRelationResource,
|
|
1131
1107
|
EnumResourceType as EnumResourceType2
|
|
1132
1108
|
} from "@timardex/cluemart-shared";
|
|
1133
|
-
import
|
|
1109
|
+
import mongoose13 from "mongoose";
|
|
1134
1110
|
|
|
1135
1111
|
// src/mongoose/event/EventInfo.ts
|
|
1136
1112
|
import {
|
|
1137
1113
|
EnumEventDateStatus as EnumEventDateStatus2,
|
|
1138
1114
|
EnumPaymentMethod
|
|
1139
1115
|
} from "@timardex/cluemart-shared";
|
|
1140
|
-
import
|
|
1141
|
-
var MongooseSchema9 =
|
|
1116
|
+
import mongoose12 from "mongoose";
|
|
1117
|
+
var MongooseSchema9 = mongoose12.Schema;
|
|
1142
1118
|
var StallTypeSchema = new MongooseSchema9(
|
|
1143
1119
|
{
|
|
1144
1120
|
label: { required: false, type: String },
|
|
@@ -1199,7 +1175,7 @@ var refundPolicySchema = new MongooseSchema9(
|
|
|
1199
1175
|
},
|
|
1200
1176
|
{ _id: false }
|
|
1201
1177
|
);
|
|
1202
|
-
var
|
|
1178
|
+
var schema9 = new MongooseSchema9(
|
|
1203
1179
|
{
|
|
1204
1180
|
active: { default: true, type: Boolean },
|
|
1205
1181
|
applicationDeadlineHours: { required: true, type: Number },
|
|
@@ -1207,7 +1183,7 @@ var schema10 = new MongooseSchema9(
|
|
|
1207
1183
|
eventId: {
|
|
1208
1184
|
ref: "Event",
|
|
1209
1185
|
required: true,
|
|
1210
|
-
type:
|
|
1186
|
+
type: mongoose12.Schema.Types.ObjectId
|
|
1211
1187
|
},
|
|
1212
1188
|
packInTime: { required: true, type: Number },
|
|
1213
1189
|
paymentDueHours: { required: true, type: Number },
|
|
@@ -1217,11 +1193,11 @@ var schema10 = new MongooseSchema9(
|
|
|
1217
1193
|
},
|
|
1218
1194
|
{ timestamps: true }
|
|
1219
1195
|
);
|
|
1220
|
-
|
|
1221
|
-
var EventInfoModel =
|
|
1196
|
+
schema9.index({ eventId: 1 });
|
|
1197
|
+
var EventInfoModel = mongoose12.models.EventInfo || mongoose12.model("EventInfo", schema9);
|
|
1222
1198
|
|
|
1223
1199
|
// src/mongoose/Relation.ts
|
|
1224
|
-
var MongooseSchema10 =
|
|
1200
|
+
var MongooseSchema10 = mongoose13.Schema;
|
|
1225
1201
|
var relationDateTimeSchema = new MongooseSchema10(
|
|
1226
1202
|
{
|
|
1227
1203
|
dateStatus: {
|
|
@@ -1262,13 +1238,13 @@ var RelationTypeSchema = new MongooseSchema10(
|
|
|
1262
1238
|
chatId: {
|
|
1263
1239
|
ref: "Chat",
|
|
1264
1240
|
required: true,
|
|
1265
|
-
type:
|
|
1241
|
+
type: mongoose13.Schema.Types.ObjectId
|
|
1266
1242
|
},
|
|
1267
1243
|
deletedAt: { default: null, required: false, type: Date },
|
|
1268
1244
|
eventId: {
|
|
1269
1245
|
ref: "Event",
|
|
1270
1246
|
required: true,
|
|
1271
|
-
type:
|
|
1247
|
+
type: mongoose13.Schema.Types.ObjectId
|
|
1272
1248
|
},
|
|
1273
1249
|
lastUpdateBy: {
|
|
1274
1250
|
enum: Object.values(EnumResourceType2),
|
|
@@ -1284,7 +1260,7 @@ var RelationTypeSchema = new MongooseSchema10(
|
|
|
1284
1260
|
vendorId: {
|
|
1285
1261
|
ref: "Vendor",
|
|
1286
1262
|
required: true,
|
|
1287
|
-
type:
|
|
1263
|
+
type: mongoose13.Schema.Types.ObjectId
|
|
1288
1264
|
}
|
|
1289
1265
|
},
|
|
1290
1266
|
{ timestamps: true }
|
|
@@ -1296,7 +1272,7 @@ RelationTypeSchema.index({
|
|
|
1296
1272
|
"relationDates.status": 1,
|
|
1297
1273
|
vendorId: 1
|
|
1298
1274
|
});
|
|
1299
|
-
var RelationModel =
|
|
1275
|
+
var RelationModel = mongoose13.models.Relation || mongoose13.model("Relation", RelationTypeSchema);
|
|
1300
1276
|
|
|
1301
1277
|
// src/mongoose/ResourceActivity.ts
|
|
1302
1278
|
import {
|
|
@@ -1305,8 +1281,8 @@ import {
|
|
|
1305
1281
|
EnumOSPlatform as EnumOSPlatform2,
|
|
1306
1282
|
EnumResourceType as EnumResourceType3
|
|
1307
1283
|
} from "@timardex/cluemart-shared";
|
|
1308
|
-
import
|
|
1309
|
-
var MongooseSchema11 =
|
|
1284
|
+
import mongoose14 from "mongoose";
|
|
1285
|
+
var MongooseSchema11 = mongoose14.Schema;
|
|
1310
1286
|
var ActivitySchema = new MongooseSchema11(
|
|
1311
1287
|
{
|
|
1312
1288
|
activityType: {
|
|
@@ -1335,7 +1311,7 @@ var ActivitySchema = new MongooseSchema11(
|
|
|
1335
1311
|
},
|
|
1336
1312
|
{ _id: false }
|
|
1337
1313
|
);
|
|
1338
|
-
var
|
|
1314
|
+
var schema10 = new MongooseSchema11(
|
|
1339
1315
|
{
|
|
1340
1316
|
activity: { default: [], type: [ActivitySchema] },
|
|
1341
1317
|
resourceId: { required: true, type: String },
|
|
@@ -1347,9 +1323,9 @@ var schema11 = new MongooseSchema11(
|
|
|
1347
1323
|
},
|
|
1348
1324
|
{ timestamps: true }
|
|
1349
1325
|
);
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
var ResourceActivityModel =
|
|
1326
|
+
schema10.index({ resourceId: 1, resourceType: 1 }, { unique: true });
|
|
1327
|
+
schema10.index({ "views.location": "2dsphere" });
|
|
1328
|
+
var ResourceActivityModel = mongoose14.models.ResourceActivity || mongoose14.model("ResourceActivity", schema10);
|
|
1353
1329
|
|
|
1354
1330
|
// src/mongoose/User.ts
|
|
1355
1331
|
import {
|
|
@@ -1363,15 +1339,15 @@ import {
|
|
|
1363
1339
|
EnumUserLicence as EnumUserLicence3,
|
|
1364
1340
|
EnumUserRole
|
|
1365
1341
|
} from "@timardex/cluemart-shared";
|
|
1366
|
-
import
|
|
1367
|
-
var MongooseSchema12 =
|
|
1342
|
+
import mongoose15 from "mongoose";
|
|
1343
|
+
var MongooseSchema12 = mongoose15.Schema;
|
|
1368
1344
|
var userActivityEventSchema = new MongooseSchema12(
|
|
1369
1345
|
{
|
|
1370
1346
|
dateTime: dateTimeSchema,
|
|
1371
1347
|
resourceId: {
|
|
1372
1348
|
ref: "Event",
|
|
1373
1349
|
required: false,
|
|
1374
|
-
type:
|
|
1350
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
1375
1351
|
}
|
|
1376
1352
|
},
|
|
1377
1353
|
{ _id: false }
|
|
@@ -1381,17 +1357,17 @@ var userActivityFavouritesSchema = new MongooseSchema12(
|
|
|
1381
1357
|
events: {
|
|
1382
1358
|
ref: "Event",
|
|
1383
1359
|
required: false,
|
|
1384
|
-
type: [
|
|
1360
|
+
type: [mongoose15.Schema.Types.ObjectId]
|
|
1385
1361
|
},
|
|
1386
1362
|
partners: {
|
|
1387
1363
|
ref: "Partner",
|
|
1388
1364
|
required: false,
|
|
1389
|
-
type: [
|
|
1365
|
+
type: [mongoose15.Schema.Types.ObjectId]
|
|
1390
1366
|
},
|
|
1391
1367
|
vendors: {
|
|
1392
1368
|
ref: "Vendor",
|
|
1393
1369
|
required: false,
|
|
1394
|
-
type: [
|
|
1370
|
+
type: [mongoose15.Schema.Types.ObjectId]
|
|
1395
1371
|
}
|
|
1396
1372
|
},
|
|
1397
1373
|
{ _id: false }
|
|
@@ -1503,13 +1479,13 @@ var userOverallPointsSchema = new MongooseSchema12(
|
|
|
1503
1479
|
},
|
|
1504
1480
|
{ _id: false }
|
|
1505
1481
|
);
|
|
1506
|
-
var
|
|
1482
|
+
var schema11 = new MongooseSchema12(
|
|
1507
1483
|
{
|
|
1508
1484
|
active: { default: false, required: true, type: Boolean },
|
|
1509
1485
|
affiliate: {
|
|
1510
1486
|
ref: "Affiliate",
|
|
1511
1487
|
required: false,
|
|
1512
|
-
type:
|
|
1488
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
1513
1489
|
},
|
|
1514
1490
|
avatar: {
|
|
1515
1491
|
required: false,
|
|
@@ -1518,7 +1494,7 @@ var schema12 = new MongooseSchema12(
|
|
|
1518
1494
|
coupon: {
|
|
1519
1495
|
ref: "Coupon",
|
|
1520
1496
|
required: false,
|
|
1521
|
-
type:
|
|
1497
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
1522
1498
|
},
|
|
1523
1499
|
deletedAt: { default: null, required: false, type: Date },
|
|
1524
1500
|
email: { required: true, type: String },
|
|
@@ -1530,13 +1506,13 @@ var schema12 = new MongooseSchema12(
|
|
|
1530
1506
|
events: {
|
|
1531
1507
|
ref: "Event",
|
|
1532
1508
|
required: false,
|
|
1533
|
-
type: [
|
|
1509
|
+
type: [mongoose15.Schema.Types.ObjectId]
|
|
1534
1510
|
},
|
|
1535
1511
|
firstName: { required: true, type: String },
|
|
1536
1512
|
game: {
|
|
1537
1513
|
ref: "Game",
|
|
1538
1514
|
required: false,
|
|
1539
|
-
type:
|
|
1515
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
1540
1516
|
},
|
|
1541
1517
|
interests: {
|
|
1542
1518
|
enum: Object.values(EnumResourceType4),
|
|
@@ -1562,7 +1538,7 @@ var schema12 = new MongooseSchema12(
|
|
|
1562
1538
|
partner: {
|
|
1563
1539
|
ref: "Partner",
|
|
1564
1540
|
required: false,
|
|
1565
|
-
type:
|
|
1541
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
1566
1542
|
},
|
|
1567
1543
|
password: { required: true, type: String },
|
|
1568
1544
|
platform: {
|
|
@@ -1582,7 +1558,15 @@ var schema12 = new MongooseSchema12(
|
|
|
1582
1558
|
required: false,
|
|
1583
1559
|
type: [redeemedRewardSchema]
|
|
1584
1560
|
},
|
|
1585
|
-
|
|
1561
|
+
// Per-client slots: a mobile session and an in-app WebView admin session
|
|
1562
|
+
// coexist without rotating each other out.
|
|
1563
|
+
refreshTokenAdmin: {
|
|
1564
|
+
default: null,
|
|
1565
|
+
required: false,
|
|
1566
|
+
type: String
|
|
1567
|
+
},
|
|
1568
|
+
refreshTokenMobile: {
|
|
1569
|
+
default: null,
|
|
1586
1570
|
required: false,
|
|
1587
1571
|
type: String
|
|
1588
1572
|
},
|
|
@@ -1595,7 +1579,7 @@ var schema12 = new MongooseSchema12(
|
|
|
1595
1579
|
school: {
|
|
1596
1580
|
ref: "School",
|
|
1597
1581
|
required: false,
|
|
1598
|
-
type:
|
|
1582
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
1599
1583
|
},
|
|
1600
1584
|
stripe: {
|
|
1601
1585
|
required: false,
|
|
@@ -1620,21 +1604,21 @@ var schema12 = new MongooseSchema12(
|
|
|
1620
1604
|
vendor: {
|
|
1621
1605
|
ref: "Vendor",
|
|
1622
1606
|
required: false,
|
|
1623
|
-
type:
|
|
1607
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
1624
1608
|
}
|
|
1625
1609
|
},
|
|
1626
1610
|
{ strict: false, timestamps: true }
|
|
1627
1611
|
);
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
var UserModel =
|
|
1612
|
+
schema11.index({ "licences.expiryDate": 1 });
|
|
1613
|
+
schema11.index({ "licences.licenceType": 1 });
|
|
1614
|
+
schema11.index({ promoCodes: 1, active: 1, deletedAt: 1 });
|
|
1615
|
+
schema11.index({ email: "text", firstName: "text", lastName: "text" });
|
|
1616
|
+
var UserModel = mongoose15.models.User || mongoose15.model("User", schema11);
|
|
1633
1617
|
|
|
1634
1618
|
// src/mongoose/VerificationToken.ts
|
|
1635
|
-
import
|
|
1636
|
-
var MongooseSchema13 =
|
|
1637
|
-
var
|
|
1619
|
+
import mongoose16 from "mongoose";
|
|
1620
|
+
var MongooseSchema13 = mongoose16.Schema;
|
|
1621
|
+
var schema12 = new MongooseSchema13(
|
|
1638
1622
|
{
|
|
1639
1623
|
createdAt: {
|
|
1640
1624
|
default: Date.now,
|
|
@@ -1649,15 +1633,15 @@ var schema13 = new MongooseSchema13(
|
|
|
1649
1633
|
},
|
|
1650
1634
|
{ timestamps: true }
|
|
1651
1635
|
);
|
|
1652
|
-
var VerificationTokenModel =
|
|
1636
|
+
var VerificationTokenModel = mongoose16.models.VerificationToken || mongoose16.model("VerificationToken", schema12);
|
|
1653
1637
|
|
|
1654
1638
|
// src/mongoose/vendor/Vendor.ts
|
|
1655
1639
|
import {
|
|
1656
1640
|
EnumEventDateStatus as EnumEventDateStatus5,
|
|
1657
1641
|
EnumVendorType
|
|
1658
1642
|
} from "@timardex/cluemart-shared";
|
|
1659
|
-
import
|
|
1660
|
-
var MongooseSchema14 =
|
|
1643
|
+
import mongoose17 from "mongoose";
|
|
1644
|
+
var MongooseSchema14 = mongoose17.Schema;
|
|
1661
1645
|
var vendorProductTypeSchema = new MongooseSchema14(
|
|
1662
1646
|
{
|
|
1663
1647
|
description: { required: false, type: String },
|
|
@@ -1720,7 +1704,7 @@ var downgradeSnapshotSchema = new MongooseSchema14(
|
|
|
1720
1704
|
},
|
|
1721
1705
|
{ _id: false }
|
|
1722
1706
|
);
|
|
1723
|
-
var
|
|
1707
|
+
var schema13 = new MongooseSchema14(
|
|
1724
1708
|
{
|
|
1725
1709
|
...baseResourceFields,
|
|
1726
1710
|
// Importing base resource fields from global.ts
|
|
@@ -1739,12 +1723,12 @@ var schema14 = new MongooseSchema14(
|
|
|
1739
1723
|
unregisteredVendorId: {
|
|
1740
1724
|
ref: "UnregisteredVendor",
|
|
1741
1725
|
required: false,
|
|
1742
|
-
type:
|
|
1726
|
+
type: mongoose17.Schema.Types.ObjectId
|
|
1743
1727
|
},
|
|
1744
1728
|
vendorInfoId: {
|
|
1745
1729
|
ref: "VendorInfo",
|
|
1746
1730
|
required: false,
|
|
1747
|
-
type:
|
|
1731
|
+
type: mongoose17.Schema.Types.ObjectId
|
|
1748
1732
|
},
|
|
1749
1733
|
vendorType: {
|
|
1750
1734
|
enum: Object.values(EnumVendorType),
|
|
@@ -1754,26 +1738,26 @@ var schema14 = new MongooseSchema14(
|
|
|
1754
1738
|
},
|
|
1755
1739
|
{ timestamps: true }
|
|
1756
1740
|
);
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1741
|
+
schema13.index({ name: 1 });
|
|
1742
|
+
schema13.index({ description: 1 });
|
|
1743
|
+
schema13.index({ region: 1 });
|
|
1744
|
+
schema13.index({ "categories.name": 1 });
|
|
1745
|
+
schema13.index({ slug: 1 });
|
|
1746
|
+
schema13.index({
|
|
1763
1747
|
categoriesNames: "text",
|
|
1764
1748
|
description: "text",
|
|
1765
1749
|
name: "text"
|
|
1766
1750
|
});
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
var VendorModel =
|
|
1751
|
+
schema13.index({ deletedAt: 1, "owner.userId": 1 });
|
|
1752
|
+
schema13.plugin(searchNamePlugin);
|
|
1753
|
+
var VendorModel = mongoose17.models.Vendor || mongoose17.model("Vendor", schema13);
|
|
1770
1754
|
|
|
1771
1755
|
// src/mongoose/vendor/VendorInfo.ts
|
|
1772
1756
|
import {
|
|
1773
1757
|
EnumFoodFlavor
|
|
1774
1758
|
} from "@timardex/cluemart-shared";
|
|
1775
|
-
import
|
|
1776
|
-
var MongooseSchema15 =
|
|
1759
|
+
import mongoose18 from "mongoose";
|
|
1760
|
+
var MongooseSchema15 = mongoose18.Schema;
|
|
1777
1761
|
var AttributesSchema = new MongooseSchema15(
|
|
1778
1762
|
{
|
|
1779
1763
|
details: { required: false, type: String },
|
|
@@ -1781,7 +1765,7 @@ var AttributesSchema = new MongooseSchema15(
|
|
|
1781
1765
|
},
|
|
1782
1766
|
{ _id: false }
|
|
1783
1767
|
);
|
|
1784
|
-
var
|
|
1768
|
+
var schema14 = new MongooseSchema15(
|
|
1785
1769
|
{
|
|
1786
1770
|
active: { default: true, type: Boolean },
|
|
1787
1771
|
compliance: {
|
|
@@ -1816,29 +1800,29 @@ var schema15 = new MongooseSchema15(
|
|
|
1816
1800
|
vendorId: {
|
|
1817
1801
|
ref: "Vendor",
|
|
1818
1802
|
required: true,
|
|
1819
|
-
type:
|
|
1803
|
+
type: mongoose18.Schema.Types.ObjectId
|
|
1820
1804
|
}
|
|
1821
1805
|
},
|
|
1822
1806
|
{ timestamps: true }
|
|
1823
1807
|
);
|
|
1824
|
-
|
|
1825
|
-
var VendorInfoModel =
|
|
1808
|
+
schema14.index({ vendorId: 1 });
|
|
1809
|
+
var VendorInfoModel = mongoose18.models.VendorInfo || mongoose18.model("VendorInfo", schema14);
|
|
1826
1810
|
|
|
1827
1811
|
// src/mongoose/vendor/UnregisteredVendor.ts
|
|
1828
|
-
import
|
|
1829
|
-
var MongooseSchema16 =
|
|
1812
|
+
import mongoose19 from "mongoose";
|
|
1813
|
+
var MongooseSchema16 = mongoose19.Schema;
|
|
1830
1814
|
var invitationSchema = new MongooseSchema16(
|
|
1831
1815
|
{
|
|
1832
1816
|
dateTime: { required: true, type: [dateTimeSchema] },
|
|
1833
1817
|
inviterId: {
|
|
1834
1818
|
ref: "Event",
|
|
1835
1819
|
required: true,
|
|
1836
|
-
type:
|
|
1820
|
+
type: mongoose19.Schema.Types.ObjectId
|
|
1837
1821
|
}
|
|
1838
1822
|
},
|
|
1839
1823
|
{ _id: false }
|
|
1840
1824
|
);
|
|
1841
|
-
var
|
|
1825
|
+
var schema15 = new MongooseSchema16(
|
|
1842
1826
|
{
|
|
1843
1827
|
active: { default: true, required: true, type: Boolean },
|
|
1844
1828
|
categoryIds: { required: true, type: [String] },
|
|
@@ -1847,7 +1831,7 @@ var schema16 = new MongooseSchema16(
|
|
|
1847
1831
|
claimedByUserId: {
|
|
1848
1832
|
ref: "User",
|
|
1849
1833
|
required: false,
|
|
1850
|
-
type:
|
|
1834
|
+
type: mongoose19.Schema.Types.ObjectId
|
|
1851
1835
|
},
|
|
1852
1836
|
claimInitiatedAt: { default: null, required: false, type: Date },
|
|
1853
1837
|
claimToken: { default: null, required: false, type: String },
|
|
@@ -1860,15 +1844,15 @@ var schema16 = new MongooseSchema16(
|
|
|
1860
1844
|
},
|
|
1861
1845
|
{ timestamps: true }
|
|
1862
1846
|
);
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
var UnregisteredVendorModel =
|
|
1847
|
+
schema15.index({ name: 1 });
|
|
1848
|
+
schema15.index({ email: 1 });
|
|
1849
|
+
var UnregisteredVendorModel = mongoose19.models.UnregisteredVendor || mongoose19.model("UnregisteredVendor", schema15);
|
|
1866
1850
|
|
|
1867
1851
|
// src/mongoose/event/Event.ts
|
|
1868
1852
|
import { EnumEventType as EnumEventType2 } from "@timardex/cluemart-shared";
|
|
1869
|
-
import
|
|
1870
|
-
var MongooseSchema17 =
|
|
1871
|
-
var
|
|
1853
|
+
import mongoose20 from "mongoose";
|
|
1854
|
+
var MongooseSchema17 = mongoose20.Schema;
|
|
1855
|
+
var schema16 = new MongooseSchema17(
|
|
1872
1856
|
{
|
|
1873
1857
|
...baseResourceFields,
|
|
1874
1858
|
// Importing base resource fields from global.ts
|
|
@@ -1877,7 +1861,7 @@ var schema17 = new MongooseSchema17(
|
|
|
1877
1861
|
eventInfoId: {
|
|
1878
1862
|
ref: "EventInfo",
|
|
1879
1863
|
required: false,
|
|
1880
|
-
type:
|
|
1864
|
+
type: mongoose20.Schema.Types.ObjectId
|
|
1881
1865
|
},
|
|
1882
1866
|
eventType: {
|
|
1883
1867
|
enum: Object.values(EnumEventType2),
|
|
@@ -1901,40 +1885,40 @@ var schema17 = new MongooseSchema17(
|
|
|
1901
1885
|
},
|
|
1902
1886
|
{ timestamps: true }
|
|
1903
1887
|
);
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
var EventModel =
|
|
1888
|
+
schema16.index({ name: 1 });
|
|
1889
|
+
schema16.index({ description: 1 });
|
|
1890
|
+
schema16.index({ region: 1 });
|
|
1891
|
+
schema16.index({ "location.geo": "2dsphere" });
|
|
1892
|
+
schema16.index({ tags: 1 });
|
|
1893
|
+
schema16.index({ deletedAt: 1 });
|
|
1894
|
+
schema16.index({ "dateTime.dateStatus": 1 });
|
|
1895
|
+
schema16.index({ slug: 1 });
|
|
1896
|
+
schema16.index({ description: "text", name: "text", tags: "text" });
|
|
1897
|
+
schema16.index({ deletedAt: 1, "owner.userId": 1 });
|
|
1898
|
+
schema16.plugin(searchNamePlugin);
|
|
1899
|
+
var EventModel = mongoose20.models.Event || mongoose20.model("Event", schema16);
|
|
1916
1900
|
|
|
1917
1901
|
// src/mongoose/event/EventDateArchive.ts
|
|
1918
|
-
import
|
|
1919
|
-
var
|
|
1902
|
+
import mongoose21 from "mongoose";
|
|
1903
|
+
var schema17 = new mongoose21.Schema(
|
|
1920
1904
|
{
|
|
1921
1905
|
dateTime: { required: true, type: [dateTimeSchema] },
|
|
1922
1906
|
eventId: {
|
|
1923
1907
|
ref: "Event",
|
|
1924
1908
|
required: true,
|
|
1925
|
-
type:
|
|
1909
|
+
type: mongoose21.Schema.Types.ObjectId
|
|
1926
1910
|
}
|
|
1927
1911
|
},
|
|
1928
1912
|
{ timestamps: true }
|
|
1929
1913
|
);
|
|
1930
|
-
|
|
1931
|
-
var EventDateArchiveModel =
|
|
1914
|
+
schema17.index({ eventId: 1 }, { unique: true });
|
|
1915
|
+
var EventDateArchiveModel = mongoose21.models.EventDateArchive || mongoose21.model("EventDateArchive", schema17);
|
|
1932
1916
|
|
|
1933
1917
|
// src/mongoose/Partner.ts
|
|
1934
1918
|
import { EnumPartnerType } from "@timardex/cluemart-shared";
|
|
1935
|
-
import
|
|
1936
|
-
var MongooseSchema18 =
|
|
1937
|
-
var
|
|
1919
|
+
import mongoose22 from "mongoose";
|
|
1920
|
+
var MongooseSchema18 = mongoose22.Schema;
|
|
1921
|
+
var schema18 = new MongooseSchema18(
|
|
1938
1922
|
{
|
|
1939
1923
|
...baseResourceFields,
|
|
1940
1924
|
location: {
|
|
@@ -1950,15 +1934,15 @@ var schema19 = new MongooseSchema18(
|
|
|
1950
1934
|
},
|
|
1951
1935
|
{ timestamps: true }
|
|
1952
1936
|
);
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
var PartnerModel =
|
|
1937
|
+
schema18.index({ name: 1 });
|
|
1938
|
+
schema18.index({ description: 1 });
|
|
1939
|
+
schema18.index({ region: 1 });
|
|
1940
|
+
schema18.index({ "location.geo": "2dsphere" });
|
|
1941
|
+
schema18.index({ slug: 1 });
|
|
1942
|
+
schema18.index({ name: "text", description: "text" });
|
|
1943
|
+
schema18.index({ "owner.userId": 1, deletedAt: 1 });
|
|
1944
|
+
schema18.plugin(searchNamePlugin);
|
|
1945
|
+
var PartnerModel = mongoose22.models.Partner || mongoose22.model("Partner", schema18);
|
|
1962
1946
|
|
|
1963
1947
|
// src/mongoose/Post.ts
|
|
1964
1948
|
import {
|
|
@@ -1966,8 +1950,8 @@ import {
|
|
|
1966
1950
|
EnumPostType as EnumPostType2,
|
|
1967
1951
|
EnumResourceType as EnumResourceType5
|
|
1968
1952
|
} from "@timardex/cluemart-shared";
|
|
1969
|
-
import
|
|
1970
|
-
var MongooseSchema19 =
|
|
1953
|
+
import mongoose23, { Schema } from "mongoose";
|
|
1954
|
+
var MongooseSchema19 = mongoose23.Schema;
|
|
1971
1955
|
var contentSchema = new MongooseSchema19(
|
|
1972
1956
|
{
|
|
1973
1957
|
contentData: Schema.Types.Mixed,
|
|
@@ -1993,7 +1977,7 @@ var resourceSchema = new MongooseSchema19(
|
|
|
1993
1977
|
},
|
|
1994
1978
|
{ _id: false }
|
|
1995
1979
|
);
|
|
1996
|
-
var
|
|
1980
|
+
var schema19 = new MongooseSchema19(
|
|
1997
1981
|
{
|
|
1998
1982
|
active: { default: false, required: true, type: Boolean },
|
|
1999
1983
|
approvedAt: { default: null, required: false, type: Date },
|
|
@@ -2024,14 +2008,14 @@ var schema20 = new MongooseSchema19(
|
|
|
2024
2008
|
},
|
|
2025
2009
|
{ timestamps: true }
|
|
2026
2010
|
);
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
var PostModel =
|
|
2011
|
+
schema19.index({ title: 1 });
|
|
2012
|
+
schema19.index({ tags: 1 });
|
|
2013
|
+
schema19.index({ postType: 1, slug: 1 }, { unique: true });
|
|
2014
|
+
var PostModel = mongoose23.models.Post || mongoose23.model("Post", schema19);
|
|
2031
2015
|
|
|
2032
2016
|
// src/mongoose/AppSetting.ts
|
|
2033
|
-
import
|
|
2034
|
-
var MongooseSchema20 =
|
|
2017
|
+
import mongoose24 from "mongoose";
|
|
2018
|
+
var MongooseSchema20 = mongoose24.Schema;
|
|
2035
2019
|
var APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
|
|
2036
2020
|
var AppSettingSchema = new MongooseSchema20(
|
|
2037
2021
|
{
|
|
@@ -2046,7 +2030,18 @@ var AppSettingSchema = new MongooseSchema20(
|
|
|
2046
2030
|
type: Date
|
|
2047
2031
|
},
|
|
2048
2032
|
adSettings: {
|
|
2033
|
+
approvalRequired: { default: true, required: true, type: Boolean },
|
|
2034
|
+
// Kept for older API clients; these fields do not control ad delivery.
|
|
2035
|
+
minAppearancesPerHour: {
|
|
2036
|
+
max: 12,
|
|
2037
|
+
min: 1,
|
|
2038
|
+
type: Number,
|
|
2039
|
+
validate: Number.isInteger
|
|
2040
|
+
},
|
|
2049
2041
|
mobileDisplayEnabled: { default: false, required: true, type: Boolean },
|
|
2042
|
+
paidSlotsPerPlacement: { enum: [30], type: Number },
|
|
2043
|
+
reservedSlotsPerPlacement: { enum: [7], type: Number },
|
|
2044
|
+
rotationSeconds: { enum: [8], type: Number },
|
|
2050
2045
|
webDisplayEnabled: { default: false, required: true, type: Boolean }
|
|
2051
2046
|
},
|
|
2052
2047
|
appVersion: { default: "1.0.1", required: true, type: String },
|
|
@@ -2068,7 +2063,27 @@ var AppSettingSchema = new MongooseSchema20(
|
|
|
2068
2063
|
},
|
|
2069
2064
|
{ timestamps: true }
|
|
2070
2065
|
);
|
|
2071
|
-
var AppSettingModel =
|
|
2066
|
+
var AppSettingModel = mongoose24.models.AppSetting || mongoose24.model("AppSetting", AppSettingSchema);
|
|
2067
|
+
|
|
2068
|
+
// src/mongoose/AuthHandoffToken.ts
|
|
2069
|
+
import mongoose25 from "mongoose";
|
|
2070
|
+
var MongooseSchema21 = mongoose25.Schema;
|
|
2071
|
+
var schema20 = new MongooseSchema21(
|
|
2072
|
+
{
|
|
2073
|
+
expiresAt: { required: true, type: Date },
|
|
2074
|
+
jti: { index: true, required: true, type: String, unique: true },
|
|
2075
|
+
usedAt: { default: null, required: false, type: Date },
|
|
2076
|
+
userId: {
|
|
2077
|
+
index: true,
|
|
2078
|
+
ref: "User",
|
|
2079
|
+
required: true,
|
|
2080
|
+
type: mongoose25.Schema.Types.ObjectId
|
|
2081
|
+
}
|
|
2082
|
+
},
|
|
2083
|
+
{ timestamps: true }
|
|
2084
|
+
);
|
|
2085
|
+
schema20.index({ expiresAt: 1 }, { expireAfterSeconds: 0 });
|
|
2086
|
+
var AuthHandoffTokenModel = mongoose25.models.AuthHandoffToken || mongoose25.model("AuthHandoffToken", schema20);
|
|
2072
2087
|
|
|
2073
2088
|
// src/mongoose/game/Game.ts
|
|
2074
2089
|
import {
|
|
@@ -2082,8 +2097,8 @@ import mongoose27 from "mongoose";
|
|
|
2082
2097
|
|
|
2083
2098
|
// src/mongoose/game/utils.ts
|
|
2084
2099
|
import mongoose26 from "mongoose";
|
|
2085
|
-
var
|
|
2086
|
-
var schemaGameDate = new
|
|
2100
|
+
var MongooseSchema22 = mongoose26.Schema;
|
|
2101
|
+
var schemaGameDate = new MongooseSchema22(
|
|
2087
2102
|
{
|
|
2088
2103
|
endDate: { required: true, type: Date },
|
|
2089
2104
|
startDate: { required: true, type: Date }
|
|
@@ -2092,8 +2107,8 @@ var schemaGameDate = new MongooseSchema21(
|
|
|
2092
2107
|
);
|
|
2093
2108
|
|
|
2094
2109
|
// src/mongoose/game/DailyClue.ts
|
|
2095
|
-
var
|
|
2096
|
-
var schemaLetters = new
|
|
2110
|
+
var MongooseSchema23 = mongoose27.Schema;
|
|
2111
|
+
var schemaLetters = new MongooseSchema23(
|
|
2097
2112
|
{
|
|
2098
2113
|
collected: { required: false, type: [String] },
|
|
2099
2114
|
solutionShuffled: { required: true, type: [String] }
|
|
@@ -2101,14 +2116,14 @@ var schemaLetters = new MongooseSchema22(
|
|
|
2101
2116
|
},
|
|
2102
2117
|
{ _id: false }
|
|
2103
2118
|
);
|
|
2104
|
-
var schemaDailyClueBaseGame = new
|
|
2119
|
+
var schemaDailyClueBaseGame = new MongooseSchema23(
|
|
2105
2120
|
{
|
|
2106
2121
|
gameDate: { required: true, type: schemaGameDate },
|
|
2107
2122
|
gameSolution: { required: true, type: String }
|
|
2108
2123
|
},
|
|
2109
2124
|
{ _id: false }
|
|
2110
2125
|
);
|
|
2111
|
-
var schemaDailyClueGameData = new
|
|
2126
|
+
var schemaDailyClueGameData = new MongooseSchema23(
|
|
2112
2127
|
{
|
|
2113
2128
|
gameFields: { required: true, type: schemaDailyClueBaseGame },
|
|
2114
2129
|
lastFoundDate: { default: null, required: false, type: Date },
|
|
@@ -2124,8 +2139,8 @@ var schemaDailyClueGameData = new MongooseSchema22(
|
|
|
2124
2139
|
|
|
2125
2140
|
// src/mongoose/game/PuzzleGame.ts
|
|
2126
2141
|
import mongoose28 from "mongoose";
|
|
2127
|
-
var
|
|
2128
|
-
var schemaPuzzleAnswer = new
|
|
2142
|
+
var MongooseSchema24 = mongoose28.Schema;
|
|
2143
|
+
var schemaPuzzleAnswer = new MongooseSchema24(
|
|
2129
2144
|
{
|
|
2130
2145
|
answer: { required: true, type: String },
|
|
2131
2146
|
answerId: { required: true, type: String },
|
|
@@ -2133,7 +2148,7 @@ var schemaPuzzleAnswer = new MongooseSchema23(
|
|
|
2133
2148
|
},
|
|
2134
2149
|
{ _id: false }
|
|
2135
2150
|
);
|
|
2136
|
-
var schemaPuzzleQuestion = new
|
|
2151
|
+
var schemaPuzzleQuestion = new MongooseSchema24(
|
|
2137
2152
|
{
|
|
2138
2153
|
answers: { required: true, type: [schemaPuzzleAnswer] },
|
|
2139
2154
|
question: { required: true, type: String },
|
|
@@ -2141,20 +2156,20 @@ var schemaPuzzleQuestion = new MongooseSchema23(
|
|
|
2141
2156
|
},
|
|
2142
2157
|
{ _id: false }
|
|
2143
2158
|
);
|
|
2144
|
-
var schemaPuzzleBaseGame = new
|
|
2159
|
+
var schemaPuzzleBaseGame = new MongooseSchema24(
|
|
2145
2160
|
{
|
|
2146
2161
|
questions: { required: true, type: [schemaPuzzleQuestion] }
|
|
2147
2162
|
},
|
|
2148
2163
|
{ _id: false }
|
|
2149
2164
|
);
|
|
2150
|
-
var schemaPuzzleAnsweredQuestion = new
|
|
2165
|
+
var schemaPuzzleAnsweredQuestion = new MongooseSchema24(
|
|
2151
2166
|
{
|
|
2152
2167
|
questionId: { required: true, type: String },
|
|
2153
2168
|
selectedAnswerId: { required: true, type: String }
|
|
2154
2169
|
},
|
|
2155
2170
|
{ _id: false }
|
|
2156
2171
|
);
|
|
2157
|
-
var schemaPuzzleGameData = new
|
|
2172
|
+
var schemaPuzzleGameData = new MongooseSchema24(
|
|
2158
2173
|
{
|
|
2159
2174
|
answeredQuestions: {
|
|
2160
2175
|
default: null,
|
|
@@ -2169,7 +2184,7 @@ var schemaPuzzleGameData = new MongooseSchema23(
|
|
|
2169
2184
|
);
|
|
2170
2185
|
|
|
2171
2186
|
// src/mongoose/game/Game.ts
|
|
2172
|
-
var
|
|
2187
|
+
var MongooseSchema25 = mongoose29.Schema;
|
|
2173
2188
|
var gameDataSchemas = {
|
|
2174
2189
|
[EnumGameType.DAILY_CLUE]: schemaDailyClueGameData,
|
|
2175
2190
|
[EnumGameType.MINI_QUIZ]: schemaPuzzleGameData,
|
|
@@ -2181,7 +2196,7 @@ var gameDataDefinition = Object.fromEntries(
|
|
|
2181
2196
|
{ default: null, required: false, type: schema25 }
|
|
2182
2197
|
])
|
|
2183
2198
|
);
|
|
2184
|
-
var gameHistorySchema = new
|
|
2199
|
+
var gameHistorySchema = new MongooseSchema25(
|
|
2185
2200
|
{
|
|
2186
2201
|
createdAt: { required: true, type: Date },
|
|
2187
2202
|
gameDate: { required: true, type: schemaGameDate },
|
|
@@ -2201,7 +2216,7 @@ var gameHistorySchema = new MongooseSchema24(
|
|
|
2201
2216
|
},
|
|
2202
2217
|
{ _id: false }
|
|
2203
2218
|
);
|
|
2204
|
-
var gameTypeSchema = new
|
|
2219
|
+
var gameTypeSchema = new MongooseSchema25(
|
|
2205
2220
|
{
|
|
2206
2221
|
active: { default: true, required: true, type: Boolean },
|
|
2207
2222
|
gameData: gameDataDefinition,
|
|
@@ -2219,7 +2234,7 @@ var gameTypeSchema = new MongooseSchema24(
|
|
|
2219
2234
|
},
|
|
2220
2235
|
{ timestamps: true }
|
|
2221
2236
|
);
|
|
2222
|
-
var schema21 = new
|
|
2237
|
+
var schema21 = new MongooseSchema25(
|
|
2223
2238
|
{
|
|
2224
2239
|
active: { default: false, required: true, type: Boolean },
|
|
2225
2240
|
deletedAt: { default: null, required: false, type: Date },
|
|
@@ -2236,8 +2251,8 @@ var GameModel = mongoose29.models.Game || mongoose29.model("Game", schema21);
|
|
|
2236
2251
|
|
|
2237
2252
|
// src/mongoose/School.ts
|
|
2238
2253
|
import mongoose30 from "mongoose";
|
|
2239
|
-
var
|
|
2240
|
-
var campaignsSchema = new
|
|
2254
|
+
var MongooseSchema26 = mongoose30.Schema;
|
|
2255
|
+
var campaignsSchema = new MongooseSchema26(
|
|
2241
2256
|
{
|
|
2242
2257
|
endDate: { required: true, type: Date },
|
|
2243
2258
|
name: { required: true, type: String },
|
|
@@ -2245,7 +2260,7 @@ var campaignsSchema = new MongooseSchema25(
|
|
|
2245
2260
|
},
|
|
2246
2261
|
{ _id: false }
|
|
2247
2262
|
);
|
|
2248
|
-
var schema22 = new
|
|
2263
|
+
var schema22 = new MongooseSchema26(
|
|
2249
2264
|
{
|
|
2250
2265
|
// New schools are active by default
|
|
2251
2266
|
active: { default: false, required: true, type: Boolean },
|
|
@@ -2288,8 +2303,8 @@ import {
|
|
|
2288
2303
|
EnumResourceType as EnumResourceType6
|
|
2289
2304
|
} from "@timardex/cluemart-shared";
|
|
2290
2305
|
import mongoose31 from "mongoose";
|
|
2291
|
-
var
|
|
2292
|
-
var affiliateRewardSchema = new
|
|
2306
|
+
var MongooseSchema27 = mongoose31.Schema;
|
|
2307
|
+
var affiliateRewardSchema = new MongooseSchema27(
|
|
2293
2308
|
{
|
|
2294
2309
|
createdAt: { required: true, type: Date },
|
|
2295
2310
|
redeemedAt: { default: null, required: false, type: Date },
|
|
@@ -2303,7 +2318,7 @@ var affiliateRewardSchema = new MongooseSchema26(
|
|
|
2303
2318
|
},
|
|
2304
2319
|
{ _id: false }
|
|
2305
2320
|
);
|
|
2306
|
-
var affiliateResourceSchema = new
|
|
2321
|
+
var affiliateResourceSchema = new MongooseSchema27(
|
|
2307
2322
|
{
|
|
2308
2323
|
resourceActive: { default: true, required: true, type: Boolean },
|
|
2309
2324
|
resourceDeletedAt: { default: null, required: false, type: Date },
|
|
@@ -2329,20 +2344,20 @@ var affiliateResourceSchema = new MongooseSchema26(
|
|
|
2329
2344
|
},
|
|
2330
2345
|
{ _id: false }
|
|
2331
2346
|
);
|
|
2332
|
-
var affiliateContactDetailsSchema = new
|
|
2347
|
+
var affiliateContactDetailsSchema = new MongooseSchema27(
|
|
2333
2348
|
{
|
|
2334
2349
|
mobilePhone: { required: true, type: String }
|
|
2335
2350
|
},
|
|
2336
2351
|
{ _id: false }
|
|
2337
2352
|
);
|
|
2338
|
-
var affiliateBankAccountDetailsSchema = new
|
|
2353
|
+
var affiliateBankAccountDetailsSchema = new MongooseSchema27(
|
|
2339
2354
|
{
|
|
2340
2355
|
accountHolderName: { required: true, type: String },
|
|
2341
2356
|
accountNumber: { required: true, type: String }
|
|
2342
2357
|
},
|
|
2343
2358
|
{ _id: false }
|
|
2344
2359
|
);
|
|
2345
|
-
var affiliateDetailsSchema = new
|
|
2360
|
+
var affiliateDetailsSchema = new MongooseSchema27(
|
|
2346
2361
|
{
|
|
2347
2362
|
bankAccountDetails: {
|
|
2348
2363
|
required: true,
|
|
@@ -2364,7 +2379,7 @@ var affiliateDetailsSchema = new MongooseSchema26(
|
|
|
2364
2379
|
},
|
|
2365
2380
|
{ _id: false }
|
|
2366
2381
|
);
|
|
2367
|
-
var redeemHistorySchema = new
|
|
2382
|
+
var redeemHistorySchema = new MongooseSchema27(
|
|
2368
2383
|
{
|
|
2369
2384
|
paidAt: { default: null, required: false, type: Date },
|
|
2370
2385
|
redeemedAt: { required: true, type: Date },
|
|
@@ -2372,7 +2387,7 @@ var redeemHistorySchema = new MongooseSchema26(
|
|
|
2372
2387
|
},
|
|
2373
2388
|
{ _id: false }
|
|
2374
2389
|
);
|
|
2375
|
-
var schema23 = new
|
|
2390
|
+
var schema23 = new MongooseSchema27(
|
|
2376
2391
|
{
|
|
2377
2392
|
active: { default: false, required: true, type: Boolean },
|
|
2378
2393
|
affiliateBonusRewards: {
|
|
@@ -2417,8 +2432,8 @@ import {
|
|
|
2417
2432
|
EnumResourceType as EnumResourceType7
|
|
2418
2433
|
} from "@timardex/cluemart-shared";
|
|
2419
2434
|
import mongoose32 from "mongoose";
|
|
2420
|
-
var
|
|
2421
|
-
var couponOptionSchema = new
|
|
2435
|
+
var MongooseSchema28 = mongoose32.Schema;
|
|
2436
|
+
var couponOptionSchema = new MongooseSchema28(
|
|
2422
2437
|
{
|
|
2423
2438
|
buy: { required: false, type: Number },
|
|
2424
2439
|
get: { required: false, type: Number },
|
|
@@ -2433,7 +2448,7 @@ var couponOptionSchema = new MongooseSchema27(
|
|
|
2433
2448
|
},
|
|
2434
2449
|
{ _id: false }
|
|
2435
2450
|
);
|
|
2436
|
-
var couponVendorProductSchema = new
|
|
2451
|
+
var couponVendorProductSchema = new MongooseSchema28(
|
|
2437
2452
|
{
|
|
2438
2453
|
couponId: {
|
|
2439
2454
|
required: true,
|
|
@@ -2455,7 +2470,7 @@ var couponVendorProductSchema = new MongooseSchema27(
|
|
|
2455
2470
|
},
|
|
2456
2471
|
{ _id: false }
|
|
2457
2472
|
);
|
|
2458
|
-
var couponCodeSchema = new
|
|
2473
|
+
var couponCodeSchema = new MongooseSchema28(
|
|
2459
2474
|
{
|
|
2460
2475
|
code: { required: true, type: String },
|
|
2461
2476
|
qrCode: { required: true, type: ResourceImageTypeSchema },
|
|
@@ -2463,7 +2478,7 @@ var couponCodeSchema = new MongooseSchema27(
|
|
|
2463
2478
|
},
|
|
2464
2479
|
{ _id: false }
|
|
2465
2480
|
);
|
|
2466
|
-
var couponParticipantUserSchema = new
|
|
2481
|
+
var couponParticipantUserSchema = new MongooseSchema28(
|
|
2467
2482
|
{
|
|
2468
2483
|
couponCollectedCount: { default: 0, required: true, type: Number },
|
|
2469
2484
|
couponCycleRedeemed: { default: false, required: true, type: Boolean },
|
|
@@ -2477,7 +2492,7 @@ var couponParticipantUserSchema = new MongooseSchema27(
|
|
|
2477
2492
|
},
|
|
2478
2493
|
{ timestamps: true }
|
|
2479
2494
|
);
|
|
2480
|
-
var couponDataSchema = new
|
|
2495
|
+
var couponDataSchema = new MongooseSchema28(
|
|
2481
2496
|
{
|
|
2482
2497
|
active: { default: true, required: true, type: Boolean },
|
|
2483
2498
|
couponCode: { required: false, type: couponCodeSchema },
|
|
@@ -2504,7 +2519,7 @@ var couponDataSchema = new MongooseSchema27(
|
|
|
2504
2519
|
},
|
|
2505
2520
|
{ timestamps: true }
|
|
2506
2521
|
);
|
|
2507
|
-
var schema24 = new
|
|
2522
|
+
var schema24 = new MongooseSchema28(
|
|
2508
2523
|
{
|
|
2509
2524
|
active: { default: true, required: true, type: Boolean },
|
|
2510
2525
|
couponData: { default: [], required: false, type: [couponDataSchema] },
|
|
@@ -2523,8 +2538,8 @@ var CouponModel = mongoose32.models.Coupon || mongoose32.model("Coupon", schema2
|
|
|
2523
2538
|
// src/mongoose/Impersonation.ts
|
|
2524
2539
|
import { EnumResourceType as EnumResourceType8 } from "@timardex/cluemart-shared";
|
|
2525
2540
|
import mongoose33 from "mongoose";
|
|
2526
|
-
var
|
|
2527
|
-
var impersonationSessionSchema = new
|
|
2541
|
+
var MongooseSchema29 = mongoose33.Schema;
|
|
2542
|
+
var impersonationSessionSchema = new MongooseSchema29(
|
|
2528
2543
|
{
|
|
2529
2544
|
expiresAt: { expires: 0, required: true, type: Date },
|
|
2530
2545
|
impersonatedUserId: {
|
|
@@ -2547,7 +2562,7 @@ var ImpersonationSessionModel = mongoose33.models.ImpersonationSession || mongoo
|
|
|
2547
2562
|
"ImpersonationSession",
|
|
2548
2563
|
impersonationSessionSchema
|
|
2549
2564
|
);
|
|
2550
|
-
var impersonationAuditSchema = new
|
|
2565
|
+
var impersonationAuditSchema = new MongooseSchema29(
|
|
2551
2566
|
{
|
|
2552
2567
|
action: { enum: ["start", "end"], required: true, type: String },
|
|
2553
2568
|
endReason: { type: String },
|
|
@@ -2583,8 +2598,6 @@ export {
|
|
|
2583
2598
|
AdBillingCatalogModel,
|
|
2584
2599
|
AdBookingModel,
|
|
2585
2600
|
AdMetricsModel,
|
|
2586
|
-
DEFAULT_AD_SETTINGS,
|
|
2587
|
-
AdSettingsModel,
|
|
2588
2601
|
BILLING_CATALOG_COLLECTION_NAME,
|
|
2589
2602
|
BillingCatalogModel,
|
|
2590
2603
|
buildInitialBillingCatalogEntries,
|
|
@@ -2626,6 +2639,7 @@ export {
|
|
|
2626
2639
|
PostModel,
|
|
2627
2640
|
APP_SETTINGS_ID,
|
|
2628
2641
|
AppSettingModel,
|
|
2642
|
+
AuthHandoffTokenModel,
|
|
2629
2643
|
GameModel,
|
|
2630
2644
|
SchoolModel,
|
|
2631
2645
|
AffiliateModel,
|
|
@@ -2633,4 +2647,4 @@ export {
|
|
|
2633
2647
|
ImpersonationSessionModel,
|
|
2634
2648
|
ImpersonationAuditModel
|
|
2635
2649
|
};
|
|
2636
|
-
//# sourceMappingURL=chunk-
|
|
2650
|
+
//# sourceMappingURL=chunk-YMDOR6W2.mjs.map
|