@timardex/cluemart-server-shared 1.0.84 → 1.0.86
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-22UCIYTG.mjs → chunk-FVFOQT5F.mjs} +189 -101
- package/dist/chunk-FVFOQT5F.mjs.map +1 -0
- package/dist/index.cjs +194 -105
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.mjs +192 -104
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +190 -101
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +17 -2
- package/dist/mongoose/index.d.ts +17 -2
- package/dist/mongoose/index.mjs +3 -1
- package/dist/service/index.cjs +178 -91
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-22UCIYTG.mjs.map +0 -1
|
@@ -6769,6 +6769,15 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus22) => {
|
|
|
6769
6769
|
EnumInviteStatus22["WAITING"] = "Waiting";
|
|
6770
6770
|
return EnumInviteStatus22;
|
|
6771
6771
|
})(EnumInviteStatus || {});
|
|
6772
|
+
var EnumChatReportReason = /* @__PURE__ */ ((EnumChatReportReason22) => {
|
|
6773
|
+
EnumChatReportReason22["INAPPROPRIATE_CONTENT"] = "Inappropriate_Content";
|
|
6774
|
+
EnumChatReportReason22["HARASSMENT_OR_BULLYING"] = "Harassment_or_Bullying";
|
|
6775
|
+
EnumChatReportReason22["HATE_SPEECH"] = "Hate_Speech";
|
|
6776
|
+
EnumChatReportReason22["SPAM_OR_SCAM"] = "Spam_or_Scam";
|
|
6777
|
+
EnumChatReportReason22["VIOLENCE_OR_DANGEROUS_BEHAVIOR"] = "Violence_or_Dangerous_Behavior";
|
|
6778
|
+
EnumChatReportReason22["OTHER"] = "Other";
|
|
6779
|
+
return EnumChatReportReason22;
|
|
6780
|
+
})(EnumChatReportReason || {});
|
|
6772
6781
|
var EnumChatType = /* @__PURE__ */ ((EnumChatType22) => {
|
|
6773
6782
|
EnumChatType22["GROUP"] = "group";
|
|
6774
6783
|
EnumChatType22["PRIVATE"] = "private";
|
|
@@ -6797,23 +6806,23 @@ var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
|
|
|
6797
6806
|
EnumResourceType22["PARTNER"] = "partner";
|
|
6798
6807
|
return EnumResourceType22;
|
|
6799
6808
|
})(EnumResourceType || {});
|
|
6800
|
-
var EnumEventType = /* @__PURE__ */ ((
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
return
|
|
6809
|
+
var EnumEventType = /* @__PURE__ */ ((EnumEventType3) => {
|
|
6810
|
+
EnumEventType3["MARKET"] = "Market";
|
|
6811
|
+
EnumEventType3["EXPO"] = "Expo";
|
|
6812
|
+
EnumEventType3["FAIR"] = "Fair";
|
|
6813
|
+
EnumEventType3["FESTIVAL"] = "Festival";
|
|
6814
|
+
return EnumEventType3;
|
|
6806
6815
|
})(EnumEventType || {});
|
|
6807
6816
|
var EnumVendorType = /* @__PURE__ */ ((EnumVendorType22) => {
|
|
6808
6817
|
EnumVendorType22["STALLHOLDER"] = "Stallholder";
|
|
6809
6818
|
EnumVendorType22["SHOP"] = "Shop";
|
|
6810
6819
|
return EnumVendorType22;
|
|
6811
6820
|
})(EnumVendorType || {});
|
|
6812
|
-
var EnumPartnerType = /* @__PURE__ */ ((
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
return
|
|
6821
|
+
var EnumPartnerType = /* @__PURE__ */ ((EnumPartnerType3) => {
|
|
6822
|
+
EnumPartnerType3["CHARITY_PARTNER"] = "Charity_Partner";
|
|
6823
|
+
EnumPartnerType3["MEDIA_PARTNER"] = "Media_Partner";
|
|
6824
|
+
EnumPartnerType3["SUPPORTING_PARTNER"] = "Supporting_Partner";
|
|
6825
|
+
return EnumPartnerType3;
|
|
6817
6826
|
})(EnumPartnerType || {});
|
|
6818
6827
|
var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
6819
6828
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
@@ -6861,6 +6870,7 @@ var EnumNotificationType = /* @__PURE__ */ ((EnumNotificationType22) => {
|
|
|
6861
6870
|
return EnumNotificationType22;
|
|
6862
6871
|
})(EnumNotificationType || {});
|
|
6863
6872
|
var EnumRegions = /* @__PURE__ */ ((EnumRegions22) => {
|
|
6873
|
+
EnumRegions22["All"] = "All Regions";
|
|
6864
6874
|
EnumRegions22["Auckland"] = "Auckland";
|
|
6865
6875
|
EnumRegions22["BayOfPlentyGisborne"] = "Bay of Plenty & Gisborne";
|
|
6866
6876
|
EnumRegions22["CanterburyWestCoast"] = "Canterbury & West Coast";
|
|
@@ -9124,6 +9134,23 @@ var GET_CHATS_BY_REGION = gql`
|
|
|
9124
9134
|
}
|
|
9125
9135
|
${CHAT_FIELDS_FRAGMENT}
|
|
9126
9136
|
`;
|
|
9137
|
+
var GET_REPORTED_CHAT_USERS = gql`
|
|
9138
|
+
query getReportedChatUsers {
|
|
9139
|
+
reportedChatUsers {
|
|
9140
|
+
_id
|
|
9141
|
+
chatId
|
|
9142
|
+
createdAt
|
|
9143
|
+
reason {
|
|
9144
|
+
reasonType
|
|
9145
|
+
details
|
|
9146
|
+
}
|
|
9147
|
+
reportedUserId
|
|
9148
|
+
reporterUserId
|
|
9149
|
+
resolved
|
|
9150
|
+
updatedAt
|
|
9151
|
+
}
|
|
9152
|
+
}
|
|
9153
|
+
`;
|
|
9127
9154
|
var SEND_CHAT_MESSAGE_MUTATION = gql`
|
|
9128
9155
|
mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
|
|
9129
9156
|
sendChatMessage(_id: $_id, input: $input) {
|
|
@@ -9169,6 +9196,13 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = gql`
|
|
|
9169
9196
|
}
|
|
9170
9197
|
${CHAT_FIELDS_FRAGMENT}
|
|
9171
9198
|
`;
|
|
9199
|
+
var REPORT_CHAT_USER_MUTATION = gql`
|
|
9200
|
+
mutation reportChatUser($input: ReportChatUserInputType!) {
|
|
9201
|
+
reportChatUser(input: $input) {
|
|
9202
|
+
success
|
|
9203
|
+
}
|
|
9204
|
+
}
|
|
9205
|
+
`;
|
|
9172
9206
|
var GET_CHAT_MESSAGE = gql`
|
|
9173
9207
|
subscription {
|
|
9174
9208
|
getChatMessage {
|
|
@@ -9747,6 +9781,18 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql`
|
|
|
9747
9781
|
}
|
|
9748
9782
|
${USER_FIELDS_FRAGMENT}
|
|
9749
9783
|
`;
|
|
9784
|
+
var SELECT_STANDARD_PACKAGE_MUTATION = gql`
|
|
9785
|
+
mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
|
|
9786
|
+
selectStandardPackage(selectedLicence: $selectedLicence) {
|
|
9787
|
+
licences {
|
|
9788
|
+
...LicenceFields
|
|
9789
|
+
}
|
|
9790
|
+
userId
|
|
9791
|
+
message
|
|
9792
|
+
}
|
|
9793
|
+
}
|
|
9794
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
9795
|
+
`;
|
|
9750
9796
|
var AD_FIELDS_FRAGMENT = gql`
|
|
9751
9797
|
fragment AdFields on AdType {
|
|
9752
9798
|
_id
|
|
@@ -9897,13 +9943,11 @@ var CREATE_CUSTOMER_PORTAL = gql`
|
|
|
9897
9943
|
var SELECT_PACKAGE_MUTATION = gql`
|
|
9898
9944
|
mutation selectPackage(
|
|
9899
9945
|
$billingPeriod: BillingPeriodEnumType
|
|
9900
|
-
$removedLicence: LicencesEnumType
|
|
9901
9946
|
$selectedLicence: LicencesEnumType!
|
|
9902
9947
|
$useStripe: Boolean
|
|
9903
9948
|
) {
|
|
9904
9949
|
selectPackage(
|
|
9905
9950
|
billingPeriod: $billingPeriod
|
|
9906
|
-
removedLicence: $removedLicence
|
|
9907
9951
|
selectedLicence: $selectedLicence
|
|
9908
9952
|
useStripe: $useStripe
|
|
9909
9953
|
) {
|
|
@@ -10327,14 +10371,17 @@ var eventSchema = globalResourceSchema.shape({
|
|
|
10327
10371
|
return true;
|
|
10328
10372
|
}
|
|
10329
10373
|
),
|
|
10330
|
-
eventType: create$8().oneOf(Object.values(EnumEventType)).required("Please select an Event type"),
|
|
10374
|
+
eventType: create$8().oneOf(Object.values(EnumEventType), "Please select a valid Event type").required("Please select an Event type"),
|
|
10331
10375
|
location: locationSchema,
|
|
10332
10376
|
nzbn: create$6().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
|
|
10333
10377
|
rainOrShine: create$7().label("Rain or Shine").required("Please specify if the event is rain or shine"),
|
|
10334
10378
|
tags: create$2().of(create$6().defined()).min(1, "Tags are required").required("Tags are required")
|
|
10335
10379
|
});
|
|
10336
10380
|
var paymentInfoSchema = create$3({
|
|
10337
|
-
paymentMethod: create$8().oneOf(
|
|
10381
|
+
paymentMethod: create$8().oneOf(
|
|
10382
|
+
Object.values(EnumPaymentMethod),
|
|
10383
|
+
"Please select a valid Payment method"
|
|
10384
|
+
).required("Please select a Payment method"),
|
|
10338
10385
|
accountHolderName: create$6().when("paymentMethod", {
|
|
10339
10386
|
is: "bank_transfer",
|
|
10340
10387
|
then: (schema14) => schema14.required("Account holder name is required for bank transfer").trim(),
|
|
@@ -10367,7 +10414,7 @@ var eventInfoSchema = create$3().shape({
|
|
|
10367
10414
|
return value < applicationDeadlineHours;
|
|
10368
10415
|
}
|
|
10369
10416
|
),
|
|
10370
|
-
paymentInfo: create$2().of(paymentInfoSchema).min(1, "At least one payment
|
|
10417
|
+
paymentInfo: create$2().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required")
|
|
10371
10418
|
});
|
|
10372
10419
|
var vendroMenuSchema = create$3().shape({
|
|
10373
10420
|
description: create$6().trim().nullable().defined().test(
|
|
@@ -10696,7 +10743,7 @@ var adSchema = create$3().shape({
|
|
|
10696
10743
|
var partnerSchema = globalResourceSchema.shape({
|
|
10697
10744
|
location: locationSchema,
|
|
10698
10745
|
nzbn: create$6().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
|
|
10699
|
-
partnerType: create$8().oneOf(Object.values(EnumPartnerType)).required("Please select a Partner type")
|
|
10746
|
+
partnerType: create$8().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
|
|
10700
10747
|
});
|
|
10701
10748
|
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
10702
10749
|
EnumPostType2["DAILY_MEETS"] = "daily_meets";
|
|
@@ -10775,14 +10822,13 @@ var defaultPartnerFormValues = {
|
|
|
10775
10822
|
...globalDefaultValues,
|
|
10776
10823
|
location: defaultLocation,
|
|
10777
10824
|
nzbn: "",
|
|
10778
|
-
partnerType: "
|
|
10779
|
-
/* CHARITY_PARTNER */
|
|
10825
|
+
partnerType: ""
|
|
10780
10826
|
};
|
|
10781
10827
|
var defaultEventFormValues = {
|
|
10782
10828
|
...globalDefaultValues,
|
|
10783
10829
|
claimed: true,
|
|
10784
10830
|
dateTime: [],
|
|
10785
|
-
eventType: "
|
|
10831
|
+
eventType: "",
|
|
10786
10832
|
googlePlaceId: null,
|
|
10787
10833
|
location: defaultLocation,
|
|
10788
10834
|
nzbn: "",
|
|
@@ -11253,7 +11299,7 @@ schema2.index({
|
|
|
11253
11299
|
});
|
|
11254
11300
|
var AdModel = mongoose4.models.Ad || mongoose4.model("Ad", schema2);
|
|
11255
11301
|
|
|
11256
|
-
// src/mongoose/Chat.ts
|
|
11302
|
+
// src/mongoose/chat/Chat.ts
|
|
11257
11303
|
import mongoose5 from "mongoose";
|
|
11258
11304
|
var MongooseSchema5 = mongoose5.Schema;
|
|
11259
11305
|
var MessageReplyPreviewSchema = new MongooseSchema5(
|
|
@@ -11353,10 +11399,50 @@ ChatSchema.index({
|
|
|
11353
11399
|
});
|
|
11354
11400
|
var ChatModel = mongoose5.models.Chat || mongoose5.model("Chat", ChatSchema);
|
|
11355
11401
|
|
|
11356
|
-
// src/mongoose/
|
|
11402
|
+
// src/mongoose/chat/ChatReport.ts
|
|
11357
11403
|
import mongoose6 from "mongoose";
|
|
11358
11404
|
var MongooseSchema6 = mongoose6.Schema;
|
|
11359
|
-
var
|
|
11405
|
+
var ReasonSchema = new MongooseSchema6(
|
|
11406
|
+
{
|
|
11407
|
+
details: { default: null, required: false, type: String },
|
|
11408
|
+
reasonType: {
|
|
11409
|
+
enum: Object.values(EnumChatReportReason),
|
|
11410
|
+
required: true,
|
|
11411
|
+
type: String
|
|
11412
|
+
}
|
|
11413
|
+
},
|
|
11414
|
+
{ _id: false }
|
|
11415
|
+
);
|
|
11416
|
+
var ChatReportSchema = new MongooseSchema6(
|
|
11417
|
+
{
|
|
11418
|
+
chatId: {
|
|
11419
|
+
ref: "Chat",
|
|
11420
|
+
required: true,
|
|
11421
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
11422
|
+
},
|
|
11423
|
+
reason: { required: true, type: ReasonSchema },
|
|
11424
|
+
reportedUserId: {
|
|
11425
|
+
ref: "User",
|
|
11426
|
+
required: true,
|
|
11427
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
11428
|
+
},
|
|
11429
|
+
reporterUserId: {
|
|
11430
|
+
ref: "User",
|
|
11431
|
+
required: true,
|
|
11432
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
11433
|
+
},
|
|
11434
|
+
resolved: { default: false, required: true, type: Boolean }
|
|
11435
|
+
},
|
|
11436
|
+
{ timestamps: true }
|
|
11437
|
+
);
|
|
11438
|
+
ChatReportSchema.index({ chatId: 1, reportedUserId: 1 });
|
|
11439
|
+
ChatReportSchema.index({ createdAt: -1, reporterUserId: 1 });
|
|
11440
|
+
var ChatReportModel = mongoose6.models.ChatReport || mongoose6.model("ChatReport", ChatReportSchema);
|
|
11441
|
+
|
|
11442
|
+
// src/mongoose/GoogleImportedMarket.ts
|
|
11443
|
+
import mongoose7 from "mongoose";
|
|
11444
|
+
var MongooseSchema7 = mongoose7.Schema;
|
|
11445
|
+
var addressComponentSchema = new MongooseSchema7(
|
|
11360
11446
|
{
|
|
11361
11447
|
longName: { required: false, type: String },
|
|
11362
11448
|
shortName: { required: false, type: String },
|
|
@@ -11364,7 +11450,7 @@ var addressComponentSchema = new MongooseSchema6(
|
|
|
11364
11450
|
},
|
|
11365
11451
|
{ _id: false }
|
|
11366
11452
|
);
|
|
11367
|
-
var schema3 = new
|
|
11453
|
+
var schema3 = new MongooseSchema7(
|
|
11368
11454
|
{
|
|
11369
11455
|
accessibilityOptions: { required: false, type: Object },
|
|
11370
11456
|
active: { default: false, required: true, type: Boolean },
|
|
@@ -11377,7 +11463,7 @@ var schema3 = new MongooseSchema6(
|
|
|
11377
11463
|
claimedByUserId: {
|
|
11378
11464
|
ref: "User",
|
|
11379
11465
|
required: false,
|
|
11380
|
-
type:
|
|
11466
|
+
type: mongoose7.Schema.Types.ObjectId
|
|
11381
11467
|
},
|
|
11382
11468
|
cover: {
|
|
11383
11469
|
required: false,
|
|
@@ -11389,7 +11475,7 @@ var schema3 = new MongooseSchema6(
|
|
|
11389
11475
|
eventId: {
|
|
11390
11476
|
ref: "Event",
|
|
11391
11477
|
required: false,
|
|
11392
|
-
type:
|
|
11478
|
+
type: mongoose7.Schema.Types.ObjectId
|
|
11393
11479
|
},
|
|
11394
11480
|
eventType: {
|
|
11395
11481
|
enum: Object.values(EnumEventType),
|
|
@@ -11438,12 +11524,12 @@ var schema3 = new MongooseSchema6(
|
|
|
11438
11524
|
schema3.index({ "location.geo": "2dsphere" });
|
|
11439
11525
|
schema3.index({ name: 1 });
|
|
11440
11526
|
schema3.index({ region: 1 });
|
|
11441
|
-
var GoogleImportedMarketModel =
|
|
11527
|
+
var GoogleImportedMarketModel = mongoose7.models.GoogleImportedMarket || mongoose7.model("GoogleImportedMarket", schema3);
|
|
11442
11528
|
|
|
11443
11529
|
// src/mongoose/Notification.ts
|
|
11444
|
-
import
|
|
11445
|
-
var
|
|
11446
|
-
var schema4 = new
|
|
11530
|
+
import mongoose8 from "mongoose";
|
|
11531
|
+
var MongooseSchema8 = mongoose8.Schema;
|
|
11532
|
+
var schema4 = new MongooseSchema8(
|
|
11447
11533
|
{
|
|
11448
11534
|
data: {
|
|
11449
11535
|
resourceId: { required: true, type: String },
|
|
@@ -11466,16 +11552,16 @@ var schema4 = new MongooseSchema7(
|
|
|
11466
11552
|
userId: {
|
|
11467
11553
|
ref: "User",
|
|
11468
11554
|
required: true,
|
|
11469
|
-
type:
|
|
11555
|
+
type: mongoose8.Schema.Types.ObjectId
|
|
11470
11556
|
}
|
|
11471
11557
|
},
|
|
11472
11558
|
{ timestamps: true }
|
|
11473
11559
|
);
|
|
11474
11560
|
schema4.index({ isRead: 1, userId: 1 });
|
|
11475
11561
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11476
|
-
var NotificationModel =
|
|
11562
|
+
var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
|
|
11477
11563
|
|
|
11478
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11564
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-Z6FJKHRH.mjs
|
|
11479
11565
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11480
11566
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11481
11567
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -11484,9 +11570,9 @@ var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
|
11484
11570
|
})(EnumOSPlatform2 || {});
|
|
11485
11571
|
|
|
11486
11572
|
// src/mongoose/PushToken.ts
|
|
11487
|
-
import
|
|
11488
|
-
var
|
|
11489
|
-
var schema5 = new
|
|
11573
|
+
import mongoose9 from "mongoose";
|
|
11574
|
+
var MongooseSchema9 = mongoose9.Schema;
|
|
11575
|
+
var schema5 = new MongooseSchema9(
|
|
11490
11576
|
{
|
|
11491
11577
|
platform: {
|
|
11492
11578
|
enum: Object.values(EnumOSPlatform2),
|
|
@@ -11494,16 +11580,16 @@ var schema5 = new MongooseSchema8(
|
|
|
11494
11580
|
type: String
|
|
11495
11581
|
},
|
|
11496
11582
|
token: { required: true, type: String },
|
|
11497
|
-
userId: { required: true, type:
|
|
11583
|
+
userId: { required: true, type: mongoose9.Schema.Types.ObjectId }
|
|
11498
11584
|
},
|
|
11499
11585
|
{ timestamps: true }
|
|
11500
11586
|
);
|
|
11501
|
-
var PushTokenModel =
|
|
11587
|
+
var PushTokenModel = mongoose9.models.PushToken || mongoose9.model("PushToken", schema5);
|
|
11502
11588
|
|
|
11503
11589
|
// src/mongoose/ResourceActivity.ts
|
|
11504
|
-
import
|
|
11505
|
-
var
|
|
11506
|
-
var ActivitySchema = new
|
|
11590
|
+
import mongoose10 from "mongoose";
|
|
11591
|
+
var MongooseSchema10 = mongoose10.Schema;
|
|
11592
|
+
var ActivitySchema = new MongooseSchema10(
|
|
11507
11593
|
{
|
|
11508
11594
|
activityType: {
|
|
11509
11595
|
enum: Object.values(EnumActivity),
|
|
@@ -11531,7 +11617,7 @@ var ActivitySchema = new MongooseSchema9(
|
|
|
11531
11617
|
},
|
|
11532
11618
|
{ _id: false }
|
|
11533
11619
|
);
|
|
11534
|
-
var schema6 = new
|
|
11620
|
+
var schema6 = new MongooseSchema10(
|
|
11535
11621
|
{
|
|
11536
11622
|
activity: { default: [], type: [ActivitySchema] },
|
|
11537
11623
|
resourceId: { required: true, type: String },
|
|
@@ -11545,12 +11631,12 @@ var schema6 = new MongooseSchema9(
|
|
|
11545
11631
|
);
|
|
11546
11632
|
schema6.index({ resourceId: 1, resourceType: 1 }, { unique: true });
|
|
11547
11633
|
schema6.index({ "views.location": "2dsphere" });
|
|
11548
|
-
var ResourceActivityModel =
|
|
11634
|
+
var ResourceActivityModel = mongoose10.models.ResourceActivity || mongoose10.model("ResourceActivity", schema6);
|
|
11549
11635
|
|
|
11550
11636
|
// src/mongoose/Tester.ts
|
|
11551
|
-
import
|
|
11552
|
-
var
|
|
11553
|
-
var TesterVendorQuestionarySchema = new
|
|
11637
|
+
import mongoose11 from "mongoose";
|
|
11638
|
+
var MongooseSchema11 = mongoose11.Schema;
|
|
11639
|
+
var TesterVendorQuestionarySchema = new MongooseSchema11(
|
|
11554
11640
|
{
|
|
11555
11641
|
appearInVideoIntroduction: {
|
|
11556
11642
|
default: false,
|
|
@@ -11577,7 +11663,7 @@ var TesterVendorQuestionarySchema = new MongooseSchema10(
|
|
|
11577
11663
|
},
|
|
11578
11664
|
{ _id: false }
|
|
11579
11665
|
);
|
|
11580
|
-
var TesterVendorSchema = new
|
|
11666
|
+
var TesterVendorSchema = new MongooseSchema11(
|
|
11581
11667
|
{
|
|
11582
11668
|
categories: { required: true, type: [CategorySchema] },
|
|
11583
11669
|
marketsAttended: {
|
|
@@ -11603,7 +11689,7 @@ var TesterVendorSchema = new MongooseSchema10(
|
|
|
11603
11689
|
},
|
|
11604
11690
|
{ _id: false }
|
|
11605
11691
|
);
|
|
11606
|
-
var TesterEventQuestionarySchema = new
|
|
11692
|
+
var TesterEventQuestionarySchema = new MongooseSchema11(
|
|
11607
11693
|
{
|
|
11608
11694
|
allowMarketingAppearance: {
|
|
11609
11695
|
default: false,
|
|
@@ -11638,7 +11724,7 @@ var TesterEventQuestionarySchema = new MongooseSchema10(
|
|
|
11638
11724
|
},
|
|
11639
11725
|
{ _id: false }
|
|
11640
11726
|
);
|
|
11641
|
-
var TesterEventsSchema = new
|
|
11727
|
+
var TesterEventsSchema = new MongooseSchema11(
|
|
11642
11728
|
{
|
|
11643
11729
|
markets: {
|
|
11644
11730
|
required: true,
|
|
@@ -11667,7 +11753,7 @@ var TesterEventsSchema = new MongooseSchema10(
|
|
|
11667
11753
|
},
|
|
11668
11754
|
{ _id: false }
|
|
11669
11755
|
);
|
|
11670
|
-
var TesterSchema = new
|
|
11756
|
+
var TesterSchema = new MongooseSchema11(
|
|
11671
11757
|
{
|
|
11672
11758
|
active: { default: false, required: true, type: Boolean },
|
|
11673
11759
|
approved: { default: false, required: true, type: Boolean },
|
|
@@ -11701,43 +11787,43 @@ var TesterSchema = new MongooseSchema10(
|
|
|
11701
11787
|
timestamps: true
|
|
11702
11788
|
}
|
|
11703
11789
|
);
|
|
11704
|
-
var TesterModel =
|
|
11790
|
+
var TesterModel = mongoose11.models.Tester || mongoose11.model("Tester", TesterSchema);
|
|
11705
11791
|
|
|
11706
11792
|
// src/mongoose/User.ts
|
|
11707
|
-
import
|
|
11708
|
-
var
|
|
11709
|
-
var userActivityEventSchema = new
|
|
11793
|
+
import mongoose12 from "mongoose";
|
|
11794
|
+
var MongooseSchema12 = mongoose12.Schema;
|
|
11795
|
+
var userActivityEventSchema = new MongooseSchema12(
|
|
11710
11796
|
{
|
|
11711
11797
|
dateTime: dateTimeSchema3,
|
|
11712
11798
|
resourceId: {
|
|
11713
11799
|
ref: "Event",
|
|
11714
11800
|
required: false,
|
|
11715
|
-
type:
|
|
11801
|
+
type: mongoose12.Schema.Types.ObjectId
|
|
11716
11802
|
}
|
|
11717
11803
|
},
|
|
11718
11804
|
{ _id: false }
|
|
11719
11805
|
);
|
|
11720
|
-
var userActivityFavouritesSchema = new
|
|
11806
|
+
var userActivityFavouritesSchema = new MongooseSchema12(
|
|
11721
11807
|
{
|
|
11722
11808
|
events: {
|
|
11723
11809
|
ref: "Event",
|
|
11724
11810
|
required: false,
|
|
11725
|
-
type: [
|
|
11811
|
+
type: [mongoose12.Schema.Types.ObjectId]
|
|
11726
11812
|
},
|
|
11727
11813
|
partners: {
|
|
11728
11814
|
ref: "Partner",
|
|
11729
11815
|
required: false,
|
|
11730
|
-
type: [
|
|
11816
|
+
type: [mongoose12.Schema.Types.ObjectId]
|
|
11731
11817
|
},
|
|
11732
11818
|
vendors: {
|
|
11733
11819
|
ref: "Vendor",
|
|
11734
11820
|
required: false,
|
|
11735
|
-
type: [
|
|
11821
|
+
type: [mongoose12.Schema.Types.ObjectId]
|
|
11736
11822
|
}
|
|
11737
11823
|
},
|
|
11738
11824
|
{ _id: false }
|
|
11739
11825
|
);
|
|
11740
|
-
var stripeSchema = new
|
|
11826
|
+
var stripeSchema = new MongooseSchema12(
|
|
11741
11827
|
{
|
|
11742
11828
|
currentPlan: {
|
|
11743
11829
|
enum: Object.values(EnumUserLicence),
|
|
@@ -11768,7 +11854,7 @@ var stripeSchema = new MongooseSchema11(
|
|
|
11768
11854
|
},
|
|
11769
11855
|
{ _id: false }
|
|
11770
11856
|
);
|
|
11771
|
-
var schema7 = new
|
|
11857
|
+
var schema7 = new MongooseSchema12(
|
|
11772
11858
|
{
|
|
11773
11859
|
active: { default: false, required: true, type: Boolean },
|
|
11774
11860
|
associates: {
|
|
@@ -11784,7 +11870,7 @@ var schema7 = new MongooseSchema11(
|
|
|
11784
11870
|
events: {
|
|
11785
11871
|
ref: "Event",
|
|
11786
11872
|
required: false,
|
|
11787
|
-
type: [
|
|
11873
|
+
type: [mongoose12.Schema.Types.ObjectId]
|
|
11788
11874
|
},
|
|
11789
11875
|
firstName: { required: true, type: String },
|
|
11790
11876
|
isTester: { default: false, required: true, type: Boolean },
|
|
@@ -11796,7 +11882,7 @@ var schema7 = new MongooseSchema11(
|
|
|
11796
11882
|
partner: {
|
|
11797
11883
|
ref: "Partner",
|
|
11798
11884
|
required: false,
|
|
11799
|
-
type:
|
|
11885
|
+
type: mongoose12.Schema.Types.ObjectId
|
|
11800
11886
|
},
|
|
11801
11887
|
password: { required: true, type: String },
|
|
11802
11888
|
platform: {
|
|
@@ -11841,7 +11927,7 @@ var schema7 = new MongooseSchema11(
|
|
|
11841
11927
|
vendor: {
|
|
11842
11928
|
ref: "Vendor",
|
|
11843
11929
|
required: false,
|
|
11844
|
-
type:
|
|
11930
|
+
type: mongoose12.Schema.Types.ObjectId
|
|
11845
11931
|
}
|
|
11846
11932
|
},
|
|
11847
11933
|
{ strict: false, timestamps: true }
|
|
@@ -11849,12 +11935,12 @@ var schema7 = new MongooseSchema11(
|
|
|
11849
11935
|
schema7.index({ "associates.email": 1 });
|
|
11850
11936
|
schema7.index({ "licences.expiryDate": 1 });
|
|
11851
11937
|
schema7.index({ "licences.licenceType": 1 });
|
|
11852
|
-
var UserModel =
|
|
11938
|
+
var UserModel = mongoose12.models.User || mongoose12.model("User", schema7);
|
|
11853
11939
|
|
|
11854
11940
|
// src/mongoose/VerificationToken.ts
|
|
11855
|
-
import
|
|
11856
|
-
var
|
|
11857
|
-
var schema8 = new
|
|
11941
|
+
import mongoose13 from "mongoose";
|
|
11942
|
+
var MongooseSchema13 = mongoose13.Schema;
|
|
11943
|
+
var schema8 = new MongooseSchema13(
|
|
11858
11944
|
{
|
|
11859
11945
|
createdAt: {
|
|
11860
11946
|
default: Date.now,
|
|
@@ -11869,12 +11955,12 @@ var schema8 = new MongooseSchema12(
|
|
|
11869
11955
|
},
|
|
11870
11956
|
{ timestamps: true }
|
|
11871
11957
|
);
|
|
11872
|
-
var VerificationTokenModel =
|
|
11958
|
+
var VerificationTokenModel = mongoose13.models.VerificationToken || mongoose13.model("VerificationToken", schema8);
|
|
11873
11959
|
|
|
11874
11960
|
// src/mongoose/vendor/Vendor.ts
|
|
11875
|
-
import
|
|
11876
|
-
var
|
|
11877
|
-
var MenuTypeSchema = new
|
|
11961
|
+
import mongoose14 from "mongoose";
|
|
11962
|
+
var MongooseSchema14 = mongoose14.Schema;
|
|
11963
|
+
var MenuTypeSchema = new MongooseSchema14(
|
|
11878
11964
|
{
|
|
11879
11965
|
description: { required: false, type: String },
|
|
11880
11966
|
name: { required: false, type: String },
|
|
@@ -11884,7 +11970,7 @@ var MenuTypeSchema = new MongooseSchema13(
|
|
|
11884
11970
|
{ _id: false }
|
|
11885
11971
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11886
11972
|
);
|
|
11887
|
-
var LocationsSchema = new
|
|
11973
|
+
var LocationsSchema = new MongooseSchema14(
|
|
11888
11974
|
{
|
|
11889
11975
|
dateTime: {
|
|
11890
11976
|
dateStatus: {
|
|
@@ -11906,7 +11992,7 @@ var LocationsSchema = new MongooseSchema13(
|
|
|
11906
11992
|
{ _id: false }
|
|
11907
11993
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11908
11994
|
);
|
|
11909
|
-
var schema9 = new
|
|
11995
|
+
var schema9 = new MongooseSchema14(
|
|
11910
11996
|
{
|
|
11911
11997
|
...baseResourceFields,
|
|
11912
11998
|
// Importing base resource fields from global.ts
|
|
@@ -11928,7 +12014,7 @@ var schema9 = new MongooseSchema13(
|
|
|
11928
12014
|
vendorInfoId: {
|
|
11929
12015
|
ref: "VendorInfo",
|
|
11930
12016
|
required: false,
|
|
11931
|
-
type:
|
|
12017
|
+
type: mongoose14.Schema.Types.ObjectId
|
|
11932
12018
|
},
|
|
11933
12019
|
vendorType: {
|
|
11934
12020
|
enum: Object.values(EnumVendorType),
|
|
@@ -11943,19 +12029,19 @@ schema9.index({ description: 1 });
|
|
|
11943
12029
|
schema9.index({ region: 1 });
|
|
11944
12030
|
schema9.index({ "categories.name": 1 });
|
|
11945
12031
|
schema9.index({ "associates.email": 1 });
|
|
11946
|
-
var VendorModel =
|
|
12032
|
+
var VendorModel = mongoose14.models.Vendor || mongoose14.model("Vendor", schema9);
|
|
11947
12033
|
|
|
11948
12034
|
// src/mongoose/vendor/VendorInfo.ts
|
|
11949
|
-
import
|
|
11950
|
-
var
|
|
11951
|
-
var AttributesSchema = new
|
|
12035
|
+
import mongoose15 from "mongoose";
|
|
12036
|
+
var MongooseSchema15 = mongoose15.Schema;
|
|
12037
|
+
var AttributesSchema = new MongooseSchema15(
|
|
11952
12038
|
{
|
|
11953
12039
|
details: { required: false, type: String },
|
|
11954
12040
|
isRequired: { default: false, required: true, type: Boolean }
|
|
11955
12041
|
},
|
|
11956
12042
|
{ _id: false }
|
|
11957
12043
|
);
|
|
11958
|
-
var schema10 = new
|
|
12044
|
+
var schema10 = new MongooseSchema15(
|
|
11959
12045
|
{
|
|
11960
12046
|
compliance: {
|
|
11961
12047
|
foodBeverageLicense: { default: false, required: false, type: Boolean },
|
|
@@ -11989,17 +12075,17 @@ var schema10 = new MongooseSchema14(
|
|
|
11989
12075
|
vendorId: {
|
|
11990
12076
|
ref: "Vendor",
|
|
11991
12077
|
required: true,
|
|
11992
|
-
type:
|
|
12078
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
11993
12079
|
}
|
|
11994
12080
|
},
|
|
11995
12081
|
{ timestamps: true }
|
|
11996
12082
|
);
|
|
11997
|
-
var VendorInfoModel =
|
|
12083
|
+
var VendorInfoModel = mongoose15.models.VendorInfo || mongoose15.model("VendorInfo", schema10);
|
|
11998
12084
|
|
|
11999
12085
|
// src/mongoose/event/Event.ts
|
|
12000
|
-
import
|
|
12001
|
-
var
|
|
12002
|
-
var schema11 = new
|
|
12086
|
+
import mongoose16 from "mongoose";
|
|
12087
|
+
var MongooseSchema16 = mongoose16.Schema;
|
|
12088
|
+
var schema11 = new MongooseSchema16(
|
|
12003
12089
|
{
|
|
12004
12090
|
...baseResourceFields,
|
|
12005
12091
|
// Importing base resource fields from global.ts
|
|
@@ -12008,7 +12094,7 @@ var schema11 = new MongooseSchema15(
|
|
|
12008
12094
|
eventInfoId: {
|
|
12009
12095
|
ref: "EventInfo",
|
|
12010
12096
|
required: false,
|
|
12011
|
-
type:
|
|
12097
|
+
type: mongoose16.Schema.Types.ObjectId
|
|
12012
12098
|
},
|
|
12013
12099
|
eventType: {
|
|
12014
12100
|
enum: Object.values(EnumEventType),
|
|
@@ -12042,12 +12128,12 @@ schema11.index({ region: 1 });
|
|
|
12042
12128
|
schema11.index({ "location.geo": "2dsphere" });
|
|
12043
12129
|
schema11.index({ tags: 1 });
|
|
12044
12130
|
schema11.index({ "associates.email": 1 });
|
|
12045
|
-
var EventModel =
|
|
12131
|
+
var EventModel = mongoose16.models.Event || mongoose16.model("Event", schema11);
|
|
12046
12132
|
|
|
12047
12133
|
// src/mongoose/Partner.ts
|
|
12048
|
-
import
|
|
12049
|
-
var
|
|
12050
|
-
var schema12 = new
|
|
12134
|
+
import mongoose17 from "mongoose";
|
|
12135
|
+
var MongooseSchema17 = mongoose17.Schema;
|
|
12136
|
+
var schema12 = new MongooseSchema17(
|
|
12051
12137
|
{
|
|
12052
12138
|
...baseResourceFields,
|
|
12053
12139
|
location: {
|
|
@@ -12068,12 +12154,12 @@ schema12.index({ description: 1 });
|
|
|
12068
12154
|
schema12.index({ region: 1 });
|
|
12069
12155
|
schema12.index({ "location.geo": "2dsphere" });
|
|
12070
12156
|
schema12.index({ "associates.email": 1 });
|
|
12071
|
-
var PartnerModel =
|
|
12157
|
+
var PartnerModel = mongoose17.models.Partner || mongoose17.model("Partner", schema12);
|
|
12072
12158
|
|
|
12073
12159
|
// src/mongoose/Post.ts
|
|
12074
|
-
import
|
|
12075
|
-
var
|
|
12076
|
-
var contentSchema = new
|
|
12160
|
+
import mongoose18, { Schema as Schema2 } from "mongoose";
|
|
12161
|
+
var MongooseSchema18 = mongoose18.Schema;
|
|
12162
|
+
var contentSchema = new MongooseSchema18(
|
|
12077
12163
|
{
|
|
12078
12164
|
contentData: Schema2.Types.Mixed,
|
|
12079
12165
|
contentOrder: { required: true, type: Number },
|
|
@@ -12085,11 +12171,12 @@ var contentSchema = new MongooseSchema17(
|
|
|
12085
12171
|
},
|
|
12086
12172
|
{ _id: false }
|
|
12087
12173
|
);
|
|
12088
|
-
var schema13 = new
|
|
12174
|
+
var schema13 = new MongooseSchema18(
|
|
12089
12175
|
{
|
|
12090
12176
|
active: { default: true, required: true, type: Boolean },
|
|
12091
12177
|
caption: { required: true, type: String },
|
|
12092
12178
|
content: [contentSchema],
|
|
12179
|
+
deletedAt: { default: null, required: false, type: Date },
|
|
12093
12180
|
postType: {
|
|
12094
12181
|
enum: Object.values(EnumPostType),
|
|
12095
12182
|
required: true,
|
|
@@ -12102,13 +12189,13 @@ var schema13 = new MongooseSchema17(
|
|
|
12102
12189
|
);
|
|
12103
12190
|
schema13.index({ title: 1 });
|
|
12104
12191
|
schema13.index({ tags: 1 });
|
|
12105
|
-
var PostModel =
|
|
12192
|
+
var PostModel = mongoose18.models.Post || mongoose18.model("Post", schema13);
|
|
12106
12193
|
|
|
12107
12194
|
// src/mongoose/AppSetting.ts
|
|
12108
|
-
import
|
|
12109
|
-
var
|
|
12195
|
+
import mongoose19 from "mongoose";
|
|
12196
|
+
var MongooseSchema19 = mongoose19.Schema;
|
|
12110
12197
|
var APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
|
|
12111
|
-
var AppSettingSchema = new
|
|
12198
|
+
var AppSettingSchema = new MongooseSchema19(
|
|
12112
12199
|
{
|
|
12113
12200
|
appVersion: { default: "1.0.1", required: true, type: String },
|
|
12114
12201
|
isOfflineMode: { default: false, required: true, type: Boolean },
|
|
@@ -12124,7 +12211,7 @@ var AppSettingSchema = new MongooseSchema18(
|
|
|
12124
12211
|
},
|
|
12125
12212
|
{ timestamps: true }
|
|
12126
12213
|
);
|
|
12127
|
-
var AppSettingModel =
|
|
12214
|
+
var AppSettingModel = mongoose19.models.AppSetting || mongoose19.model("AppSetting", AppSettingSchema);
|
|
12128
12215
|
|
|
12129
12216
|
export {
|
|
12130
12217
|
EnumAdStatus,
|
|
@@ -12147,6 +12234,7 @@ export {
|
|
|
12147
12234
|
AdModel,
|
|
12148
12235
|
ParticipantSchema,
|
|
12149
12236
|
ChatModel,
|
|
12237
|
+
ChatReportModel,
|
|
12150
12238
|
GoogleImportedMarketModel,
|
|
12151
12239
|
NotificationModel,
|
|
12152
12240
|
PushTokenModel,
|
|
@@ -12186,4 +12274,4 @@ react/cjs/react.development.js:
|
|
|
12186
12274
|
* LICENSE file in the root directory of this source tree.
|
|
12187
12275
|
*)
|
|
12188
12276
|
*/
|
|
12189
|
-
//# sourceMappingURL=chunk-
|
|
12277
|
+
//# sourceMappingURL=chunk-FVFOQT5F.mjs.map
|