@timardex/cluemart-shared 1.2.34 → 1.2.36
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/{ad-CiYcsJB7.d.mts → ad-Bv5fLkN0.d.mts} +1 -1
- package/dist/{ad-BZylIpez.d.ts → ad-DDPNpx02.d.ts} +1 -1
- package/dist/{auth-DDtMJHZw.d.mts → auth-BVGs-5Vm.d.mts} +1 -1
- package/dist/{auth-CmaB99NK.d.ts → auth-BhUIvvZ2.d.ts} +1 -1
- package/dist/formFields/index.d.mts +1 -3
- package/dist/formFields/index.d.ts +1 -3
- package/dist/{global-DVYSZ6LR.d.ts → global-BA84KF8J.d.ts} +2 -148
- package/dist/{global-ExJZRDGR.d.mts → global-BEqzo5Z2.d.mts} +2 -148
- package/dist/graphql/index.d.mts +3 -5
- package/dist/graphql/index.d.ts +3 -5
- package/dist/hooks/index.d.mts +3 -5
- package/dist/hooks/index.d.ts +3 -5
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +17 -1124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +311 -821
- package/dist/index.d.ts +311 -821
- package/dist/index.mjs +17 -1096
- package/dist/index.mjs.map +1 -1
- package/dist/resourceActivities-0CdofGJp.d.mts +96 -0
- package/dist/resourceActivities-BjgH9TFc.d.ts +96 -0
- package/dist/types/index.cjs +2 -26
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +4 -6
- package/dist/types/index.d.ts +4 -6
- package/dist/types/index.mjs +11 -8
- package/dist/types/index.mjs.map +1 -1
- package/dist/utils/index.d.mts +1 -3
- package/dist/utils/index.d.ts +1 -3
- package/package.json +1 -1
- package/dist/chunk-4OLDTZXH.mjs +0 -26
- package/dist/chunk-4OLDTZXH.mjs.map +0 -1
- package/dist/chunk-NPHPFWQH.mjs +0 -63
- package/dist/chunk-NPHPFWQH.mjs.map +0 -1
- package/dist/mongoose/index.cjs +0 -1085
- package/dist/mongoose/index.cjs.map +0 -1
- package/dist/mongoose/index.d.mts +0 -415
- package/dist/mongoose/index.d.ts +0 -415
- package/dist/mongoose/index.mjs +0 -862
- package/dist/mongoose/index.mjs.map +0 -1
- package/dist/resourceActivities-B4roVKtQ.d.ts +0 -34
- package/dist/resourceActivities-BIjtlOGp.d.mts +0 -34
- package/dist/service/index.cjs +0 -308
- package/dist/service/index.cjs.map +0 -1
- package/dist/service/index.d.mts +0 -27
- package/dist/service/index.d.ts +0 -27
- package/dist/service/index.mjs +0 -190
- package/dist/service/index.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -30,9 +30,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
-
AdModel: () => AdModel,
|
|
34
|
-
CategorySchema: () => CategorySchema,
|
|
35
|
-
ChatModel: () => ChatModel,
|
|
36
33
|
EnumActivity: () => EnumActivity,
|
|
37
34
|
EnumAdShowOn: () => EnumAdShowOn,
|
|
38
35
|
EnumAdStatus: () => EnumAdStatus,
|
|
@@ -46,7 +43,6 @@ __export(index_exports, {
|
|
|
46
43
|
EnumNotificationType: () => EnumNotificationType,
|
|
47
44
|
EnumOSPlatform: () => EnumOSPlatform,
|
|
48
45
|
EnumPaymentMethod: () => EnumPaymentMethod,
|
|
49
|
-
EnumPubSubEvents: () => EnumPubSubEvents,
|
|
50
46
|
EnumRegions: () => EnumRegions,
|
|
51
47
|
EnumRelationResource: () => EnumRelationResource,
|
|
52
48
|
EnumResourceType: () => EnumResourceType,
|
|
@@ -54,38 +50,20 @@ __export(index_exports, {
|
|
|
54
50
|
EnumUserLicence: () => EnumUserLicence,
|
|
55
51
|
EnumUserRole: () => EnumUserRole,
|
|
56
52
|
EnumVendorType: () => EnumVendorType,
|
|
57
|
-
EventInfoModel: () => EventInfoModel,
|
|
58
|
-
EventModel: () => EventModel,
|
|
59
53
|
ImageTypeEnum: () => ImageTypeEnum,
|
|
60
|
-
NotificationModel: () => NotificationModel,
|
|
61
|
-
ParticipantSchema: () => ParticipantSchema,
|
|
62
|
-
PushTokenModel: () => PushTokenModel,
|
|
63
|
-
RelationModel: () => RelationModel,
|
|
64
|
-
RelationTypeSchema: () => RelationTypeSchema,
|
|
65
|
-
ResourceActivityModel: () => ResourceActivityModel,
|
|
66
|
-
ResourceImageTypeSchema: () => ResourceImageTypeSchema,
|
|
67
54
|
SAVED_EMAIL_KEY: () => SAVED_EMAIL_KEY,
|
|
68
55
|
SAVED_PASSWORD_KEY: () => SAVED_PASSWORD_KEY,
|
|
69
56
|
SAVED_REFRESH_TOKEN_KEY: () => SAVED_REFRESH_TOKEN_KEY,
|
|
70
57
|
SAVED_TOKEN_KEY: () => SAVED_TOKEN_KEY,
|
|
71
|
-
SocialMediaTypeSchema: () => SocialMediaTypeSchema,
|
|
72
|
-
StallTypeSchema: () => StallTypeSchema,
|
|
73
|
-
TesterModel: () => TesterModel,
|
|
74
58
|
USER_STORAGE_KEY: () => USER_STORAGE_KEY,
|
|
75
|
-
UserModel: () => UserModel,
|
|
76
|
-
VendorInfoModel: () => VendorInfoModel,
|
|
77
|
-
VendorModel: () => VendorModel,
|
|
78
|
-
VerificationTokenModel: () => VerificationTokenModel,
|
|
79
59
|
availableCategories: () => availableCategories,
|
|
80
60
|
availableCityOptions: () => availableCityOptions,
|
|
81
61
|
availableRegionOptions: () => availableRegionOptions,
|
|
82
62
|
availableRegionTypes: () => availableRegionTypes,
|
|
83
63
|
availableTagTypes: () => availableTagTypes,
|
|
84
|
-
baseResourceFields: () => baseResourceFields,
|
|
85
64
|
capitalizeFirstLetter: () => capitalizeFirstLetter,
|
|
86
65
|
categoryColors: () => categoryColors,
|
|
87
66
|
companyContactFields: () => companyContactFields,
|
|
88
|
-
connectToDatabase: () => connectToDatabase,
|
|
89
67
|
contactUsFields: () => contactUsFields,
|
|
90
68
|
darkColors: () => darkColors,
|
|
91
69
|
dateFormat: () => dateFormat,
|
|
@@ -111,28 +89,22 @@ __export(index_exports, {
|
|
|
111
89
|
loginFields: () => loginFields,
|
|
112
90
|
mapArrayToOptions: () => mapArrayToOptions,
|
|
113
91
|
mapBaseResourceTypeToFormData: () => mapBaseResourceTypeToFormData,
|
|
114
|
-
mongoose: () => import_mongoose.default,
|
|
115
92
|
normalizeUrl: () => normalizeUrl,
|
|
116
93
|
packagingOptions: () => packagingOptions,
|
|
117
|
-
partnersSchema: () => partnersSchema,
|
|
118
94
|
paymentMethodOptions: () => paymentMethodOptions,
|
|
119
95
|
producedIngOptions: () => producedIngOptions,
|
|
120
96
|
productLabelGroups: () => productLabelGroups,
|
|
121
97
|
profileFields: () => profileFields,
|
|
122
98
|
registerFields: () => registerFields,
|
|
123
|
-
relationDatesSchema: () => relationDatesSchema,
|
|
124
99
|
removeTypename: () => removeTypename,
|
|
125
100
|
requestPasswordResetFields: () => requestPasswordResetFields,
|
|
126
101
|
requirementsOptions: () => requirementsOptions,
|
|
127
102
|
resetPasswordFields: () => resetPasswordFields,
|
|
128
|
-
saveNotificationsInDb: () => saveNotificationsInDb,
|
|
129
|
-
sendPushNotifications: () => sendPushNotifications,
|
|
130
103
|
socialMediaFields: () => socialMediaFields,
|
|
131
104
|
sortDatesChronologically: () => sortDatesChronologically,
|
|
132
105
|
stallTypeOptions: () => stallTypeOptions,
|
|
133
106
|
statusOptions: () => statusOptions,
|
|
134
107
|
tagOptions: () => tagOptions,
|
|
135
|
-
termsAgreementSchema: () => termsAgreementSchema,
|
|
136
108
|
testersFields: () => testersFields,
|
|
137
109
|
timeFormat: () => timeFormat,
|
|
138
110
|
truncateText: () => truncateText,
|
|
@@ -4950,7 +4922,7 @@ var socialMediaSchema = yup.object({
|
|
|
4950
4922
|
is: (name) => !!name,
|
|
4951
4923
|
// If name has a value
|
|
4952
4924
|
then: () => normalizedUrlTransform().required("Link is required when name is set").url("Link must be a valid URL").label("Social Media Link"),
|
|
4953
|
-
otherwise: (
|
|
4925
|
+
otherwise: (schema) => schema.notRequired()
|
|
4954
4926
|
})
|
|
4955
4927
|
});
|
|
4956
4928
|
var globalResourceSchema = yup.object().shape({
|
|
@@ -5023,21 +4995,21 @@ var paymentInfoSchema = yup2.object({
|
|
|
5023
4995
|
paymentMethod: yup2.mixed().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
|
|
5024
4996
|
accountHolderName: yup2.string().when("paymentMethod", {
|
|
5025
4997
|
is: "bank_transfer" /* BANK_TRANSFER */,
|
|
5026
|
-
then: (
|
|
5027
|
-
otherwise: (
|
|
4998
|
+
then: (schema) => schema.required("Account holder name is required for bank transfer").trim(),
|
|
4999
|
+
otherwise: (schema) => schema.notRequired()
|
|
5028
5000
|
}),
|
|
5029
5001
|
accountNumber: yup2.string().when("paymentMethod", {
|
|
5030
5002
|
is: "bank_transfer" /* BANK_TRANSFER */,
|
|
5031
|
-
then: (
|
|
5003
|
+
then: (schema) => schema.required("Account number is required for bank transfer").matches(
|
|
5032
5004
|
nzBankAccountRegex,
|
|
5033
5005
|
"Account number must be in format: XX-XXXX-XXXXXXX-XX"
|
|
5034
5006
|
).trim(),
|
|
5035
|
-
otherwise: (
|
|
5007
|
+
otherwise: (schema) => schema.notRequired()
|
|
5036
5008
|
}),
|
|
5037
5009
|
link: yup2.string().when("paymentMethod", {
|
|
5038
5010
|
is: (val) => val !== "bank_transfer" /* BANK_TRANSFER */,
|
|
5039
5011
|
then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
|
|
5040
|
-
otherwise: (
|
|
5012
|
+
otherwise: (schema) => schema.notRequired()
|
|
5041
5013
|
})
|
|
5042
5014
|
});
|
|
5043
5015
|
var eventInfoSchema = yup2.object().shape({
|
|
@@ -5217,7 +5189,7 @@ var adSchema = yup7.object().shape({
|
|
|
5217
5189
|
return endDate > now;
|
|
5218
5190
|
}).when("start", {
|
|
5219
5191
|
is: (val) => val && val.length > 0,
|
|
5220
|
-
then: (
|
|
5192
|
+
then: (schema) => schema.test(
|
|
5221
5193
|
"is-after-start",
|
|
5222
5194
|
"End date must be after start date",
|
|
5223
5195
|
function(value) {
|
|
@@ -6187,1067 +6159,6 @@ function useAdForm(data) {
|
|
|
6187
6159
|
};
|
|
6188
6160
|
}
|
|
6189
6161
|
|
|
6190
|
-
// src/mongoose/Ad.ts
|
|
6191
|
-
var import_mongoose5 = __toESM(require("mongoose"));
|
|
6192
|
-
|
|
6193
|
-
// src/types/global.ts
|
|
6194
|
-
var import_mongoose = __toESM(require("mongoose"));
|
|
6195
|
-
var EnumPubSubEvents = /* @__PURE__ */ ((EnumPubSubEvents2) => {
|
|
6196
|
-
EnumPubSubEvents2["GET_CHAT_MESSAGE"] = "GET_CHAT_MESSAGE";
|
|
6197
|
-
EnumPubSubEvents2["GET_NOTIFICATIONS"] = "GET_NOTIFICATIONS";
|
|
6198
|
-
EnumPubSubEvents2["GET_NOTIFICATIONS_COUNT"] = "GET_NOTIFICATIONS_COUNT";
|
|
6199
|
-
EnumPubSubEvents2["USER_TYPING"] = "USER_TYPING";
|
|
6200
|
-
return EnumPubSubEvents2;
|
|
6201
|
-
})(EnumPubSubEvents || {});
|
|
6202
|
-
|
|
6203
|
-
// src/types/resourceActivities.ts
|
|
6204
|
-
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
6205
|
-
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
6206
|
-
EnumActivity2["GOING"] = "GOING";
|
|
6207
|
-
EnumActivity2["INTERESTED"] = "INTERESTED";
|
|
6208
|
-
EnumActivity2["PRESENT"] = "PRESENT";
|
|
6209
|
-
EnumActivity2["VIEW"] = "VIEW";
|
|
6210
|
-
return EnumActivity2;
|
|
6211
|
-
})(EnumActivity || {});
|
|
6212
|
-
|
|
6213
|
-
// src/mongoose/global.ts
|
|
6214
|
-
var import_mongoose4 = __toESM(require("mongoose"));
|
|
6215
|
-
|
|
6216
|
-
// src/mongoose/Relation.ts
|
|
6217
|
-
var import_mongoose3 = __toESM(require("mongoose"));
|
|
6218
|
-
|
|
6219
|
-
// src/mongoose/event/EventInfo.ts
|
|
6220
|
-
var import_mongoose2 = __toESM(require("mongoose"));
|
|
6221
|
-
var MongooseSchema = import_mongoose2.default.Schema;
|
|
6222
|
-
var StallTypeSchema = new MongooseSchema(
|
|
6223
|
-
{
|
|
6224
|
-
electricity: {
|
|
6225
|
-
price: { required: false, type: Number },
|
|
6226
|
-
selected: { required: false, type: Boolean }
|
|
6227
|
-
},
|
|
6228
|
-
label: { required: false, type: String },
|
|
6229
|
-
price: { required: false, type: Number },
|
|
6230
|
-
stallCapacity: { required: false, type: Number }
|
|
6231
|
-
},
|
|
6232
|
-
{
|
|
6233
|
-
_id: false
|
|
6234
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6235
|
-
}
|
|
6236
|
-
);
|
|
6237
|
-
var dateTimeSchema2 = new MongooseSchema(
|
|
6238
|
-
{
|
|
6239
|
-
endDate: { required: true, type: String },
|
|
6240
|
-
endTime: { required: true, type: String },
|
|
6241
|
-
stallTypes: [StallTypeSchema],
|
|
6242
|
-
startDate: { required: true, type: String },
|
|
6243
|
-
startTime: { required: true, type: String }
|
|
6244
|
-
},
|
|
6245
|
-
{ _id: false }
|
|
6246
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6247
|
-
);
|
|
6248
|
-
var paymentInfoSchema2 = new MongooseSchema(
|
|
6249
|
-
{
|
|
6250
|
-
accountHolderName: { required: false, type: String },
|
|
6251
|
-
accountNumber: { required: false, type: String },
|
|
6252
|
-
link: { required: false, type: String },
|
|
6253
|
-
paymentMethod: {
|
|
6254
|
-
enum: Object.values(EnumPaymentMethod),
|
|
6255
|
-
required: true,
|
|
6256
|
-
type: String
|
|
6257
|
-
}
|
|
6258
|
-
},
|
|
6259
|
-
{ _id: false }
|
|
6260
|
-
// Prevents Mongoose from creating an additional _id field
|
|
6261
|
-
);
|
|
6262
|
-
var requirementsSchema = new MongooseSchema(
|
|
6263
|
-
{
|
|
6264
|
-
category: { required: true, type: String },
|
|
6265
|
-
label: { required: true, type: String },
|
|
6266
|
-
value: { required: true, type: Boolean }
|
|
6267
|
-
},
|
|
6268
|
-
{
|
|
6269
|
-
_id: false
|
|
6270
|
-
// Prevents Mongoose from creating an additional _id field for
|
|
6271
|
-
}
|
|
6272
|
-
);
|
|
6273
|
-
var schema = new MongooseSchema(
|
|
6274
|
-
{
|
|
6275
|
-
applicationDeadlineHours: { required: true, type: Number },
|
|
6276
|
-
dateTime: [dateTimeSchema2],
|
|
6277
|
-
eventId: {
|
|
6278
|
-
ref: "Event",
|
|
6279
|
-
required: false,
|
|
6280
|
-
type: import_mongoose2.default.Schema.Types.ObjectId
|
|
6281
|
-
},
|
|
6282
|
-
packInTime: { required: true, type: Number },
|
|
6283
|
-
paymentDueHours: { required: true, type: Number },
|
|
6284
|
-
paymentInfo: [paymentInfoSchema2],
|
|
6285
|
-
requirements: [requirementsSchema]
|
|
6286
|
-
},
|
|
6287
|
-
{ timestamps: true }
|
|
6288
|
-
);
|
|
6289
|
-
var EventInfoModel = import_mongoose2.default.models.EventInfo || import_mongoose2.default.model("EventInfo", schema);
|
|
6290
|
-
|
|
6291
|
-
// src/mongoose/Relation.ts
|
|
6292
|
-
var MongooseSchema2 = import_mongoose3.default.Schema;
|
|
6293
|
-
var relationDatesSchema = new MongooseSchema2(
|
|
6294
|
-
{
|
|
6295
|
-
lastUpdateBy: {
|
|
6296
|
-
resourceId: { required: false, type: String },
|
|
6297
|
-
userEmail: { required: false, type: String }
|
|
6298
|
-
},
|
|
6299
|
-
paymentReference: { required: false, type: String },
|
|
6300
|
-
stallType: StallTypeSchema,
|
|
6301
|
-
startDate: { required: false, type: String },
|
|
6302
|
-
startTime: { required: false, type: String },
|
|
6303
|
-
status: {
|
|
6304
|
-
enum: Object.values(EnumInviteStatus),
|
|
6305
|
-
required: false,
|
|
6306
|
-
type: String
|
|
6307
|
-
}
|
|
6308
|
-
},
|
|
6309
|
-
{ _id: false }
|
|
6310
|
-
);
|
|
6311
|
-
var RelationTypeSchema = new MongooseSchema2(
|
|
6312
|
-
{
|
|
6313
|
-
active: { default: true, required: true, type: Boolean },
|
|
6314
|
-
chatId: {
|
|
6315
|
-
ref: "Chat",
|
|
6316
|
-
required: true,
|
|
6317
|
-
type: import_mongoose3.default.Schema.Types.ObjectId
|
|
6318
|
-
},
|
|
6319
|
-
deletedAt: { default: null, required: false, type: Date },
|
|
6320
|
-
eventId: {
|
|
6321
|
-
ref: "Event",
|
|
6322
|
-
required: true,
|
|
6323
|
-
type: import_mongoose3.default.Schema.Types.ObjectId
|
|
6324
|
-
},
|
|
6325
|
-
lastUpdateBy: {
|
|
6326
|
-
enum: Object.values(EnumResourceType),
|
|
6327
|
-
required: true,
|
|
6328
|
-
type: String
|
|
6329
|
-
},
|
|
6330
|
-
relationDates: [relationDatesSchema],
|
|
6331
|
-
relationType: {
|
|
6332
|
-
enum: Object.values(EnumRelationResource),
|
|
6333
|
-
required: true,
|
|
6334
|
-
type: String
|
|
6335
|
-
},
|
|
6336
|
-
vendorId: {
|
|
6337
|
-
ref: "Vendor",
|
|
6338
|
-
required: true,
|
|
6339
|
-
type: import_mongoose3.default.Schema.Types.ObjectId
|
|
6340
|
-
}
|
|
6341
|
-
},
|
|
6342
|
-
{ timestamps: true }
|
|
6343
|
-
);
|
|
6344
|
-
RelationTypeSchema.index({
|
|
6345
|
-
"relationDates.startDate": 1,
|
|
6346
|
-
"relationDates.startTime": 1,
|
|
6347
|
-
"relationDates.status": 1
|
|
6348
|
-
});
|
|
6349
|
-
var RelationModel = import_mongoose3.default.models.Relation || import_mongoose3.default.model("Relation", RelationTypeSchema);
|
|
6350
|
-
|
|
6351
|
-
// src/mongoose/global.ts
|
|
6352
|
-
var MongooseSchema3 = import_mongoose4.default.Schema;
|
|
6353
|
-
var OwnerTypeSchema = new MongooseSchema3(
|
|
6354
|
-
{
|
|
6355
|
-
email: { required: true, type: String },
|
|
6356
|
-
userId: {
|
|
6357
|
-
ref: "User",
|
|
6358
|
-
required: true,
|
|
6359
|
-
type: import_mongoose4.default.Schema.Types.ObjectId
|
|
6360
|
-
}
|
|
6361
|
-
},
|
|
6362
|
-
{ _id: false }
|
|
6363
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6364
|
-
);
|
|
6365
|
-
var SocialMediaTypeSchema = new MongooseSchema3(
|
|
6366
|
-
{
|
|
6367
|
-
link: { required: true, type: String },
|
|
6368
|
-
name: { required: true, type: String }
|
|
6369
|
-
},
|
|
6370
|
-
{ _id: false }
|
|
6371
|
-
// Prevents Mongoose from creating an additional _id field
|
|
6372
|
-
);
|
|
6373
|
-
var ResourceImageTypeSchema = new MongooseSchema3(
|
|
6374
|
-
{
|
|
6375
|
-
source: { required: false, type: String },
|
|
6376
|
-
title: { required: false, type: String }
|
|
6377
|
-
},
|
|
6378
|
-
{ _id: false }
|
|
6379
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6380
|
-
);
|
|
6381
|
-
var SubCategorySchema = new MongooseSchema3(
|
|
6382
|
-
{
|
|
6383
|
-
id: { required: false, type: String },
|
|
6384
|
-
items: [
|
|
6385
|
-
{
|
|
6386
|
-
id: { required: false, type: String },
|
|
6387
|
-
name: { required: false, type: String }
|
|
6388
|
-
}
|
|
6389
|
-
],
|
|
6390
|
-
name: { required: false, type: String }
|
|
6391
|
-
},
|
|
6392
|
-
{ _id: false }
|
|
6393
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6394
|
-
);
|
|
6395
|
-
var CategorySchema = new MongooseSchema3(
|
|
6396
|
-
{
|
|
6397
|
-
id: { required: true, type: String },
|
|
6398
|
-
name: { required: true, type: String },
|
|
6399
|
-
subcategories: [SubCategorySchema]
|
|
6400
|
-
},
|
|
6401
|
-
{ _id: false }
|
|
6402
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6403
|
-
);
|
|
6404
|
-
var PosterUsageTypeSchema = new MongooseSchema3(
|
|
6405
|
-
{
|
|
6406
|
-
count: { default: 0, required: false, type: Number },
|
|
6407
|
-
month: { required: false, type: String }
|
|
6408
|
-
},
|
|
6409
|
-
{ _id: false }
|
|
6410
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6411
|
-
);
|
|
6412
|
-
var partnersSchema = new MongooseSchema3(
|
|
6413
|
-
{
|
|
6414
|
-
email: { required: false, type: String },
|
|
6415
|
-
licence: {
|
|
6416
|
-
enum: Object.values(EnumUserLicence),
|
|
6417
|
-
required: false,
|
|
6418
|
-
type: String
|
|
6419
|
-
},
|
|
6420
|
-
resourceId: {
|
|
6421
|
-
required: false,
|
|
6422
|
-
type: String
|
|
6423
|
-
},
|
|
6424
|
-
resourceType: {
|
|
6425
|
-
enum: Object.values(EnumResourceType),
|
|
6426
|
-
required: false,
|
|
6427
|
-
type: String
|
|
6428
|
-
}
|
|
6429
|
-
},
|
|
6430
|
-
{ _id: false }
|
|
6431
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6432
|
-
);
|
|
6433
|
-
var ContactDetailsSchema = new MongooseSchema3(
|
|
6434
|
-
{
|
|
6435
|
-
email: { required: false, type: String },
|
|
6436
|
-
landlinePhone: { required: false, type: String },
|
|
6437
|
-
mobilePhone: { required: false, type: String }
|
|
6438
|
-
},
|
|
6439
|
-
{ _id: false }
|
|
6440
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6441
|
-
);
|
|
6442
|
-
var termsAgreementSchema = new MongooseSchema3(
|
|
6443
|
-
{
|
|
6444
|
-
appBuildNumber: { required: true, type: String },
|
|
6445
|
-
appId: { required: true, type: String },
|
|
6446
|
-
appVersion: { required: true, type: String },
|
|
6447
|
-
brand: { required: true, type: String },
|
|
6448
|
-
deviceName: { required: true, type: String },
|
|
6449
|
-
installationId: { required: true, type: String },
|
|
6450
|
-
manufacturer: { required: true, type: String },
|
|
6451
|
-
modelName: { required: true, type: String },
|
|
6452
|
-
osName: { required: true, type: String },
|
|
6453
|
-
osVersion: { required: true, type: String },
|
|
6454
|
-
termVersion: { required: true, type: String },
|
|
6455
|
-
timestamp: { required: true, type: String }
|
|
6456
|
-
},
|
|
6457
|
-
{ _id: false }
|
|
6458
|
-
);
|
|
6459
|
-
var resourceRelationsSchema = new MongooseSchema3(
|
|
6460
|
-
{
|
|
6461
|
-
relationDates: {
|
|
6462
|
-
default: [],
|
|
6463
|
-
required: false,
|
|
6464
|
-
type: [relationDatesSchema]
|
|
6465
|
-
},
|
|
6466
|
-
relationId: {
|
|
6467
|
-
ref: "Relation",
|
|
6468
|
-
required: false,
|
|
6469
|
-
type: import_mongoose4.default.Schema.Types.ObjectId
|
|
6470
|
-
}
|
|
6471
|
-
},
|
|
6472
|
-
{ _id: false }
|
|
6473
|
-
);
|
|
6474
|
-
var baseResourceFields = {
|
|
6475
|
-
active: { default: false, required: true, type: Boolean },
|
|
6476
|
-
adIds: {
|
|
6477
|
-
ref: "Ad",
|
|
6478
|
-
required: false,
|
|
6479
|
-
type: [import_mongoose4.default.Schema.Types.ObjectId]
|
|
6480
|
-
},
|
|
6481
|
-
contactDetails: ContactDetailsSchema,
|
|
6482
|
-
cover: ResourceImageTypeSchema,
|
|
6483
|
-
deletedAt: { default: null, required: false, type: Date },
|
|
6484
|
-
description: { required: true, type: String },
|
|
6485
|
-
images: [ResourceImageTypeSchema],
|
|
6486
|
-
logo: ResourceImageTypeSchema,
|
|
6487
|
-
name: { required: true, type: String },
|
|
6488
|
-
owner: OwnerTypeSchema,
|
|
6489
|
-
partners: {
|
|
6490
|
-
required: false,
|
|
6491
|
-
type: [partnersSchema]
|
|
6492
|
-
},
|
|
6493
|
-
posterUsage: PosterUsageTypeSchema,
|
|
6494
|
-
promoCodes: { required: false, type: [String] },
|
|
6495
|
-
region: { required: true, type: String },
|
|
6496
|
-
relations: {
|
|
6497
|
-
default: [],
|
|
6498
|
-
required: false,
|
|
6499
|
-
type: [resourceRelationsSchema]
|
|
6500
|
-
},
|
|
6501
|
-
socialMedia: [SocialMediaTypeSchema],
|
|
6502
|
-
termsAgreement: termsAgreementSchema
|
|
6503
|
-
};
|
|
6504
|
-
|
|
6505
|
-
// src/mongoose/Ad.ts
|
|
6506
|
-
var MongooseSchema4 = import_mongoose5.default.Schema;
|
|
6507
|
-
var schema2 = new MongooseSchema4(
|
|
6508
|
-
{
|
|
6509
|
-
active: { default: true, type: Boolean },
|
|
6510
|
-
adStyle: {
|
|
6511
|
-
default: "Bloom" /* BLOOM */,
|
|
6512
|
-
enum: Object.values(EnumAdStyle),
|
|
6513
|
-
required: true,
|
|
6514
|
-
type: String
|
|
6515
|
-
},
|
|
6516
|
-
adType: {
|
|
6517
|
-
default: "Sponsored" /* SPONSORED */,
|
|
6518
|
-
enum: Object.values(EnumAdType),
|
|
6519
|
-
required: true,
|
|
6520
|
-
type: String
|
|
6521
|
-
},
|
|
6522
|
-
// TODO: similar to ViewSchema
|
|
6523
|
-
clicks: { default: 0, required: true, type: Number },
|
|
6524
|
-
clui: { required: false, type: String },
|
|
6525
|
-
end: { required: true, type: Date },
|
|
6526
|
-
// TODO: similar to ViewSchema
|
|
6527
|
-
impressions: { default: 0, required: true, type: Number },
|
|
6528
|
-
resourceCover: { required: true, type: String },
|
|
6529
|
-
resourceDescription: { required: true, type: String },
|
|
6530
|
-
resourceId: { required: true, type: String },
|
|
6531
|
-
resourceLogo: { required: false, type: String },
|
|
6532
|
-
resourceName: { required: true, type: String },
|
|
6533
|
-
resourceRegion: { required: true, type: String },
|
|
6534
|
-
resourceType: {
|
|
6535
|
-
enum: Object.values(EnumResourceType),
|
|
6536
|
-
required: true,
|
|
6537
|
-
type: String
|
|
6538
|
-
},
|
|
6539
|
-
showOn: {
|
|
6540
|
-
default: "Front_page" /* FRONT_PAGE */,
|
|
6541
|
-
enum: Object.values(EnumAdShowOn),
|
|
6542
|
-
required: true,
|
|
6543
|
-
type: String
|
|
6544
|
-
},
|
|
6545
|
-
socialMedia: [SocialMediaTypeSchema],
|
|
6546
|
-
start: { required: true, type: Date },
|
|
6547
|
-
status: {
|
|
6548
|
-
default: "Active" /* ACTIVE */,
|
|
6549
|
-
enum: Object.values(EnumAdStatus),
|
|
6550
|
-
required: true,
|
|
6551
|
-
type: String
|
|
6552
|
-
},
|
|
6553
|
-
targetRegion: { required: false, type: String }
|
|
6554
|
-
},
|
|
6555
|
-
{
|
|
6556
|
-
timestamps: true
|
|
6557
|
-
}
|
|
6558
|
-
);
|
|
6559
|
-
schema2.index({
|
|
6560
|
-
end: 1,
|
|
6561
|
-
start: 1,
|
|
6562
|
-
status: 1
|
|
6563
|
-
});
|
|
6564
|
-
var AdModel = import_mongoose5.default.models.Ad || import_mongoose5.default.model("Ad", schema2);
|
|
6565
|
-
|
|
6566
|
-
// src/mongoose/Chat.ts
|
|
6567
|
-
var import_mongoose6 = __toESM(require("mongoose"));
|
|
6568
|
-
var MongooseSchema5 = import_mongoose6.default.Schema;
|
|
6569
|
-
var MessageSchema = new MongooseSchema5(
|
|
6570
|
-
{
|
|
6571
|
-
content: { required: true, type: String },
|
|
6572
|
-
senderAvatar: { required: false, type: String },
|
|
6573
|
-
senderId: {
|
|
6574
|
-
ref: "User",
|
|
6575
|
-
required: true,
|
|
6576
|
-
type: import_mongoose6.default.Schema.Types.ObjectId
|
|
6577
|
-
},
|
|
6578
|
-
senderName: { required: true, type: String }
|
|
6579
|
-
},
|
|
6580
|
-
{ timestamps: true }
|
|
6581
|
-
);
|
|
6582
|
-
var ParticipantSchema = new MongooseSchema5(
|
|
6583
|
-
{
|
|
6584
|
-
active: { default: true, required: true, type: Boolean },
|
|
6585
|
-
email: { required: true, type: String },
|
|
6586
|
-
userId: {
|
|
6587
|
-
ref: "User",
|
|
6588
|
-
required: true,
|
|
6589
|
-
type: import_mongoose6.default.Schema.Types.ObjectId
|
|
6590
|
-
}
|
|
6591
|
-
},
|
|
6592
|
-
{ _id: false }
|
|
6593
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6594
|
-
);
|
|
6595
|
-
var ChatSchema = new MongooseSchema5(
|
|
6596
|
-
{
|
|
6597
|
-
active: { default: true, required: true, type: Boolean },
|
|
6598
|
-
chatName: { required: true, type: String },
|
|
6599
|
-
chatType: {
|
|
6600
|
-
enum: Object.values(EnumChatType),
|
|
6601
|
-
required: true,
|
|
6602
|
-
type: String
|
|
6603
|
-
},
|
|
6604
|
-
deletedAt: { default: null, required: false, type: Date },
|
|
6605
|
-
messages: [MessageSchema],
|
|
6606
|
-
participants: [ParticipantSchema],
|
|
6607
|
-
resourceInfo: {
|
|
6608
|
-
eventId: {
|
|
6609
|
-
ref: "Event",
|
|
6610
|
-
required: false,
|
|
6611
|
-
type: import_mongoose6.default.Schema.Types.ObjectId
|
|
6612
|
-
},
|
|
6613
|
-
vendorId: {
|
|
6614
|
-
ref: "Vendor",
|
|
6615
|
-
required: false,
|
|
6616
|
-
type: import_mongoose6.default.Schema.Types.ObjectId
|
|
6617
|
-
}
|
|
6618
|
-
}
|
|
6619
|
-
},
|
|
6620
|
-
{
|
|
6621
|
-
timestamps: true
|
|
6622
|
-
}
|
|
6623
|
-
);
|
|
6624
|
-
var ChatModel = import_mongoose6.default.models.Chat || import_mongoose6.default.model("Chat", ChatSchema);
|
|
6625
|
-
|
|
6626
|
-
// src/mongoose/Notification.ts
|
|
6627
|
-
var import_mongoose7 = __toESM(require("mongoose"));
|
|
6628
|
-
var MongooseSchema6 = import_mongoose7.default.Schema;
|
|
6629
|
-
var schema3 = new MongooseSchema6(
|
|
6630
|
-
{
|
|
6631
|
-
data: {
|
|
6632
|
-
resourceId: { required: true, type: String },
|
|
6633
|
-
resourceName: { required: true, type: String },
|
|
6634
|
-
resourceType: {
|
|
6635
|
-
enum: Object.values(EnumNotificationResourceType),
|
|
6636
|
-
required: true,
|
|
6637
|
-
type: String
|
|
6638
|
-
}
|
|
6639
|
-
},
|
|
6640
|
-
isRead: { default: false, index: true, required: true, type: Boolean },
|
|
6641
|
-
message: { required: true, type: String },
|
|
6642
|
-
title: { required: true, type: String },
|
|
6643
|
-
type: {
|
|
6644
|
-
default: "system" /* SYSTEM */,
|
|
6645
|
-
enum: Object.values(EnumNotificationType),
|
|
6646
|
-
required: true,
|
|
6647
|
-
type: String
|
|
6648
|
-
},
|
|
6649
|
-
userId: {
|
|
6650
|
-
ref: "User",
|
|
6651
|
-
required: true,
|
|
6652
|
-
type: import_mongoose7.default.Schema.Types.ObjectId
|
|
6653
|
-
}
|
|
6654
|
-
},
|
|
6655
|
-
{ timestamps: true }
|
|
6656
|
-
);
|
|
6657
|
-
schema3.index({ isRead: 1, userId: 1 });
|
|
6658
|
-
schema3.index({ createdAt: -1, userId: 1 });
|
|
6659
|
-
var NotificationModel = import_mongoose7.default.models.Notification || import_mongoose7.default.model("Notification", schema3);
|
|
6660
|
-
|
|
6661
|
-
// src/mongoose/PushToken.ts
|
|
6662
|
-
var import_mongoose8 = __toESM(require("mongoose"));
|
|
6663
|
-
var MongooseSchema7 = import_mongoose8.default.Schema;
|
|
6664
|
-
var schema4 = new MongooseSchema7(
|
|
6665
|
-
{
|
|
6666
|
-
platform: {
|
|
6667
|
-
enum: Object.values(EnumOSPlatform),
|
|
6668
|
-
required: true,
|
|
6669
|
-
type: String
|
|
6670
|
-
},
|
|
6671
|
-
token: { required: true, type: String },
|
|
6672
|
-
userId: { required: true, type: import_mongoose8.default.Schema.Types.ObjectId }
|
|
6673
|
-
},
|
|
6674
|
-
{ timestamps: true }
|
|
6675
|
-
);
|
|
6676
|
-
var PushTokenModel = import_mongoose8.default.models.PushToken || import_mongoose8.default.model("PushToken", schema4);
|
|
6677
|
-
|
|
6678
|
-
// src/mongoose/ResourceActivity.ts
|
|
6679
|
-
var import_mongoose9 = __toESM(require("mongoose"));
|
|
6680
|
-
var MongooseSchema8 = import_mongoose9.default.Schema;
|
|
6681
|
-
var ActivitySchema = new MongooseSchema8(
|
|
6682
|
-
{
|
|
6683
|
-
activityType: {
|
|
6684
|
-
enum: Object.values(EnumActivity),
|
|
6685
|
-
required: true,
|
|
6686
|
-
type: String
|
|
6687
|
-
},
|
|
6688
|
-
location: {
|
|
6689
|
-
coordinates: {
|
|
6690
|
-
required: false,
|
|
6691
|
-
type: [Number]
|
|
6692
|
-
},
|
|
6693
|
-
type: {
|
|
6694
|
-
default: "Point",
|
|
6695
|
-
enum: ["Point"],
|
|
6696
|
-
required: false,
|
|
6697
|
-
type: String
|
|
6698
|
-
}
|
|
6699
|
-
},
|
|
6700
|
-
startDate: { required: false, type: String },
|
|
6701
|
-
startTime: { required: false, type: String },
|
|
6702
|
-
timestamp: { default: Date.now, type: Date },
|
|
6703
|
-
userAgent: {
|
|
6704
|
-
enum: Object.values(EnumOSPlatform),
|
|
6705
|
-
required: true,
|
|
6706
|
-
type: String
|
|
6707
|
-
},
|
|
6708
|
-
userId: { required: false, type: String }
|
|
6709
|
-
},
|
|
6710
|
-
{ _id: false }
|
|
6711
|
-
);
|
|
6712
|
-
var schema5 = new MongooseSchema8(
|
|
6713
|
-
{
|
|
6714
|
-
activity: { default: [], type: [ActivitySchema] },
|
|
6715
|
-
resourceId: { required: true, type: String },
|
|
6716
|
-
resourceType: {
|
|
6717
|
-
enum: Object.values(EnumResourceType),
|
|
6718
|
-
required: true,
|
|
6719
|
-
type: String
|
|
6720
|
-
}
|
|
6721
|
-
},
|
|
6722
|
-
{ timestamps: true }
|
|
6723
|
-
);
|
|
6724
|
-
schema5.index({ resourceId: 1, resourceType: 1 }, { unique: true });
|
|
6725
|
-
schema5.index({ "views.location": "2dsphere" });
|
|
6726
|
-
var ResourceActivityModel = import_mongoose9.default.models.ResourceActivity || import_mongoose9.default.model("ResourceActivity", schema5);
|
|
6727
|
-
|
|
6728
|
-
// src/mongoose/Testers.ts
|
|
6729
|
-
var import_mongoose10 = __toESM(require("mongoose"));
|
|
6730
|
-
var MongooseSchema9 = import_mongoose10.default.Schema;
|
|
6731
|
-
var TesterSchema = new MongooseSchema9(
|
|
6732
|
-
{
|
|
6733
|
-
active: { default: false, required: true, type: Boolean },
|
|
6734
|
-
categories: [CategorySchema],
|
|
6735
|
-
companyName: { required: true, type: String },
|
|
6736
|
-
email: { required: true, type: String },
|
|
6737
|
-
firstName: { required: true, type: String },
|
|
6738
|
-
lastName: { required: true, type: String },
|
|
6739
|
-
osType: {
|
|
6740
|
-
enum: Object.values(EnumOSPlatform),
|
|
6741
|
-
required: true,
|
|
6742
|
-
type: String
|
|
6743
|
-
},
|
|
6744
|
-
region: { required: true, type: String },
|
|
6745
|
-
resourceType: {
|
|
6746
|
-
enum: Object.values(EnumResourceType),
|
|
6747
|
-
required: true,
|
|
6748
|
-
type: String
|
|
6749
|
-
}
|
|
6750
|
-
},
|
|
6751
|
-
{
|
|
6752
|
-
timestamps: true
|
|
6753
|
-
}
|
|
6754
|
-
);
|
|
6755
|
-
var TesterModel = import_mongoose10.default.models.Tester || import_mongoose10.default.model("Tester", TesterSchema);
|
|
6756
|
-
|
|
6757
|
-
// src/mongoose/User.ts
|
|
6758
|
-
var import_mongoose11 = __toESM(require("mongoose"));
|
|
6759
|
-
var MongooseSchema10 = import_mongoose11.default.Schema;
|
|
6760
|
-
var userActivityEventSchema = new MongooseSchema10(
|
|
6761
|
-
{
|
|
6762
|
-
resourceId: {
|
|
6763
|
-
ref: "Event",
|
|
6764
|
-
required: false,
|
|
6765
|
-
type: import_mongoose11.default.Schema.Types.ObjectId
|
|
6766
|
-
},
|
|
6767
|
-
startDate: { required: false, type: String },
|
|
6768
|
-
startTime: { required: false, type: String }
|
|
6769
|
-
},
|
|
6770
|
-
{ _id: false }
|
|
6771
|
-
);
|
|
6772
|
-
var userActivityFavouritesSchema = new MongooseSchema10(
|
|
6773
|
-
{
|
|
6774
|
-
events: {
|
|
6775
|
-
ref: "Event",
|
|
6776
|
-
required: false,
|
|
6777
|
-
type: [import_mongoose11.default.Schema.Types.ObjectId]
|
|
6778
|
-
},
|
|
6779
|
-
vendors: {
|
|
6780
|
-
ref: "Vendor",
|
|
6781
|
-
required: false,
|
|
6782
|
-
type: [import_mongoose11.default.Schema.Types.ObjectId]
|
|
6783
|
-
}
|
|
6784
|
-
},
|
|
6785
|
-
{ _id: false }
|
|
6786
|
-
);
|
|
6787
|
-
var schema6 = new MongooseSchema10(
|
|
6788
|
-
{
|
|
6789
|
-
active: { default: false, required: true, type: Boolean },
|
|
6790
|
-
avatar: ResourceImageTypeSchema,
|
|
6791
|
-
deletedAt: { default: null, required: false, type: Date },
|
|
6792
|
-
email: { required: true, type: String },
|
|
6793
|
-
events: {
|
|
6794
|
-
ref: "Event",
|
|
6795
|
-
required: false,
|
|
6796
|
-
type: [import_mongoose11.default.Schema.Types.ObjectId]
|
|
6797
|
-
},
|
|
6798
|
-
firstName: { required: true, type: String },
|
|
6799
|
-
isTester: { default: false, required: false, type: Boolean },
|
|
6800
|
-
lastName: { required: true, type: String },
|
|
6801
|
-
licences: {
|
|
6802
|
-
enum: Object.values(EnumUserLicence),
|
|
6803
|
-
required: false,
|
|
6804
|
-
type: [String]
|
|
6805
|
-
},
|
|
6806
|
-
partners: {
|
|
6807
|
-
required: false,
|
|
6808
|
-
type: [partnersSchema]
|
|
6809
|
-
},
|
|
6810
|
-
password: { required: true, type: String },
|
|
6811
|
-
platform: {
|
|
6812
|
-
enum: Object.values(EnumOSPlatform),
|
|
6813
|
-
required: false,
|
|
6814
|
-
type: String
|
|
6815
|
-
},
|
|
6816
|
-
preferredRegion: {
|
|
6817
|
-
required: true,
|
|
6818
|
-
type: String
|
|
6819
|
-
},
|
|
6820
|
-
refreshToken: {
|
|
6821
|
-
required: false,
|
|
6822
|
-
type: String
|
|
6823
|
-
},
|
|
6824
|
-
role: {
|
|
6825
|
-
default: "customer" /* CUSTOMER */,
|
|
6826
|
-
enum: Object.values(EnumUserRole),
|
|
6827
|
-
required: true,
|
|
6828
|
-
type: String
|
|
6829
|
-
},
|
|
6830
|
-
termsAgreement: termsAgreementSchema,
|
|
6831
|
-
userActivity: {
|
|
6832
|
-
favourites: {
|
|
6833
|
-
default: () => ({ events: [], vendors: [] }),
|
|
6834
|
-
type: userActivityFavouritesSchema
|
|
6835
|
-
},
|
|
6836
|
-
going: {
|
|
6837
|
-
events: [userActivityEventSchema]
|
|
6838
|
-
},
|
|
6839
|
-
interested: {
|
|
6840
|
-
events: [userActivityEventSchema]
|
|
6841
|
-
},
|
|
6842
|
-
present: {
|
|
6843
|
-
events: [userActivityEventSchema]
|
|
6844
|
-
}
|
|
6845
|
-
},
|
|
6846
|
-
vendor: {
|
|
6847
|
-
ref: "Vendor",
|
|
6848
|
-
required: false,
|
|
6849
|
-
type: import_mongoose11.default.Schema.Types.ObjectId
|
|
6850
|
-
}
|
|
6851
|
-
},
|
|
6852
|
-
{ timestamps: true }
|
|
6853
|
-
);
|
|
6854
|
-
schema6.index({ "partners.email": 1 });
|
|
6855
|
-
var UserModel = import_mongoose11.default.models.User || import_mongoose11.default.model("User", schema6);
|
|
6856
|
-
|
|
6857
|
-
// src/mongoose/VerificationToken.ts
|
|
6858
|
-
var import_mongoose12 = __toESM(require("mongoose"));
|
|
6859
|
-
var MongooseSchema11 = import_mongoose12.default.Schema;
|
|
6860
|
-
var schema7 = new MongooseSchema11(
|
|
6861
|
-
{
|
|
6862
|
-
createdAt: {
|
|
6863
|
-
default: Date.now,
|
|
6864
|
-
expires: 24 * 60 * 60,
|
|
6865
|
-
// 24 hours in seconds (MongoDB TTL expects seconds)
|
|
6866
|
-
required: true,
|
|
6867
|
-
type: Date
|
|
6868
|
-
},
|
|
6869
|
-
// Token expires after 1 day
|
|
6870
|
-
email: { required: true, type: String },
|
|
6871
|
-
verificationToken: { required: true, type: String }
|
|
6872
|
-
},
|
|
6873
|
-
{ timestamps: true }
|
|
6874
|
-
);
|
|
6875
|
-
var VerificationTokenModel = import_mongoose12.default.models.VerificationToken || import_mongoose12.default.model("VerificationToken", schema7);
|
|
6876
|
-
|
|
6877
|
-
// src/mongoose/vendor/Vendor.ts
|
|
6878
|
-
var import_mongoose13 = __toESM(require("mongoose"));
|
|
6879
|
-
var MongooseSchema12 = import_mongoose13.default.Schema;
|
|
6880
|
-
var MenuTypeSchema = new MongooseSchema12(
|
|
6881
|
-
{
|
|
6882
|
-
description: { required: false, type: String },
|
|
6883
|
-
name: { required: false, type: String },
|
|
6884
|
-
price: { required: false, type: Number },
|
|
6885
|
-
productGroups: { required: false, type: [String] }
|
|
6886
|
-
},
|
|
6887
|
-
{ _id: false }
|
|
6888
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6889
|
-
);
|
|
6890
|
-
var LocationsSchema = new MongooseSchema12(
|
|
6891
|
-
{
|
|
6892
|
-
dateTime: {
|
|
6893
|
-
endDate: { required: false, type: String },
|
|
6894
|
-
endTime: { required: false, type: String },
|
|
6895
|
-
startDate: { required: false, type: String },
|
|
6896
|
-
startTime: { required: false, type: String }
|
|
6897
|
-
},
|
|
6898
|
-
description: { required: false, type: String },
|
|
6899
|
-
location: {
|
|
6900
|
-
city: { required: false, type: String },
|
|
6901
|
-
coordinates: {
|
|
6902
|
-
required: false,
|
|
6903
|
-
type: [Number]
|
|
6904
|
-
// [longitude, latitude]
|
|
6905
|
-
},
|
|
6906
|
-
country: { required: false, type: String },
|
|
6907
|
-
fullAddress: { required: false, type: String },
|
|
6908
|
-
latitude: { required: false, type: Number },
|
|
6909
|
-
longitude: { required: false, type: Number },
|
|
6910
|
-
region: { required: false, type: String },
|
|
6911
|
-
type: { required: false, type: String }
|
|
6912
|
-
// Mongoose GeoJSON type
|
|
6913
|
-
}
|
|
6914
|
-
},
|
|
6915
|
-
{ _id: false }
|
|
6916
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
6917
|
-
);
|
|
6918
|
-
var schema8 = new MongooseSchema12(
|
|
6919
|
-
{
|
|
6920
|
-
...baseResourceFields,
|
|
6921
|
-
// Importing base resource fields from global.ts
|
|
6922
|
-
availability: {
|
|
6923
|
-
corporate: { default: false, required: false, type: Boolean },
|
|
6924
|
-
private: { default: false, required: false, type: Boolean },
|
|
6925
|
-
school: { default: false, required: false, type: Boolean }
|
|
6926
|
-
},
|
|
6927
|
-
categories: [CategorySchema],
|
|
6928
|
-
locations: [LocationsSchema],
|
|
6929
|
-
multiLocation: { required: true, type: Boolean },
|
|
6930
|
-
products: [MenuTypeSchema],
|
|
6931
|
-
vendorInfoId: {
|
|
6932
|
-
ref: "VendorInfo",
|
|
6933
|
-
required: false,
|
|
6934
|
-
type: import_mongoose13.default.Schema.Types.ObjectId
|
|
6935
|
-
},
|
|
6936
|
-
vendorType: {
|
|
6937
|
-
enum: Object.values(EnumVendorType),
|
|
6938
|
-
required: true,
|
|
6939
|
-
type: String
|
|
6940
|
-
}
|
|
6941
|
-
},
|
|
6942
|
-
{ timestamps: true }
|
|
6943
|
-
);
|
|
6944
|
-
schema8.index({ name: 1 });
|
|
6945
|
-
schema8.index({ description: 1 });
|
|
6946
|
-
schema8.index({ region: 1 });
|
|
6947
|
-
schema8.index({ "categories.name": 1 });
|
|
6948
|
-
schema8.index({ "partners.email": 1 });
|
|
6949
|
-
var VendorModel = import_mongoose13.default.models.Vendor || import_mongoose13.default.model("Vendor", schema8);
|
|
6950
|
-
|
|
6951
|
-
// src/mongoose/vendor/VendorInfo.ts
|
|
6952
|
-
var import_mongoose14 = __toESM(require("mongoose"));
|
|
6953
|
-
var MongooseSchema13 = import_mongoose14.default.Schema;
|
|
6954
|
-
var AttributesSchema = new MongooseSchema13(
|
|
6955
|
-
{
|
|
6956
|
-
details: { required: false, type: String },
|
|
6957
|
-
isRequired: { default: false, required: true, type: Boolean }
|
|
6958
|
-
},
|
|
6959
|
-
{ _id: false }
|
|
6960
|
-
);
|
|
6961
|
-
var schema9 = new MongooseSchema13(
|
|
6962
|
-
{
|
|
6963
|
-
compliance: {
|
|
6964
|
-
foodBeverageLicense: { default: false, required: false, type: Boolean },
|
|
6965
|
-
liabilityInsurance: { default: false, required: false, type: Boolean }
|
|
6966
|
-
},
|
|
6967
|
-
documents: [ResourceImageTypeSchema],
|
|
6968
|
-
product: {
|
|
6969
|
-
foodFlavors: {
|
|
6970
|
-
enum: Object.values(EnumFoodFlavor),
|
|
6971
|
-
required: true,
|
|
6972
|
-
type: [String]
|
|
6973
|
-
},
|
|
6974
|
-
packaging: { required: true, type: [String] },
|
|
6975
|
-
priceRange: {
|
|
6976
|
-
max: { required: true, type: Number },
|
|
6977
|
-
min: { required: true, type: Number }
|
|
6978
|
-
},
|
|
6979
|
-
producedIn: { required: true, type: [String] }
|
|
6980
|
-
},
|
|
6981
|
-
requirements: {
|
|
6982
|
-
electricity: AttributesSchema,
|
|
6983
|
-
gazebo: AttributesSchema,
|
|
6984
|
-
table: AttributesSchema
|
|
6985
|
-
},
|
|
6986
|
-
stallInfo: {
|
|
6987
|
-
size: {
|
|
6988
|
-
depth: { required: true, type: Number },
|
|
6989
|
-
width: { required: true, type: Number }
|
|
6990
|
-
}
|
|
6991
|
-
},
|
|
6992
|
-
vendorId: {
|
|
6993
|
-
ref: "Vendor",
|
|
6994
|
-
required: true,
|
|
6995
|
-
type: import_mongoose14.default.Schema.Types.ObjectId
|
|
6996
|
-
}
|
|
6997
|
-
},
|
|
6998
|
-
{ timestamps: true }
|
|
6999
|
-
);
|
|
7000
|
-
var VendorInfoModel = import_mongoose14.default.models.VendorInfo || import_mongoose14.default.model("VendorInfo", schema9);
|
|
7001
|
-
|
|
7002
|
-
// src/mongoose/event/Event.ts
|
|
7003
|
-
var import_mongoose15 = __toESM(require("mongoose"));
|
|
7004
|
-
var MongooseSchema14 = import_mongoose15.default.Schema;
|
|
7005
|
-
var locationsSchema = new MongooseSchema14(
|
|
7006
|
-
{
|
|
7007
|
-
city: { required: true, type: String },
|
|
7008
|
-
coordinates: {
|
|
7009
|
-
required: true,
|
|
7010
|
-
type: [Number]
|
|
7011
|
-
// [longitude, latitude]
|
|
7012
|
-
},
|
|
7013
|
-
country: { required: true, type: String },
|
|
7014
|
-
fullAddress: { required: true, type: String },
|
|
7015
|
-
latitude: { required: true, type: Number },
|
|
7016
|
-
longitude: { required: true, type: Number },
|
|
7017
|
-
region: { required: true, type: String },
|
|
7018
|
-
type: {
|
|
7019
|
-
default: "Point",
|
|
7020
|
-
enum: ["Point"],
|
|
7021
|
-
required: true,
|
|
7022
|
-
type: String
|
|
7023
|
-
}
|
|
7024
|
-
},
|
|
7025
|
-
{ _id: false }
|
|
7026
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
7027
|
-
);
|
|
7028
|
-
var dateTimeSchema3 = new MongooseSchema14(
|
|
7029
|
-
{
|
|
7030
|
-
endDate: { required: true, type: String },
|
|
7031
|
-
endTime: { required: true, type: String },
|
|
7032
|
-
startDate: { required: true, type: String },
|
|
7033
|
-
startTime: { required: true, type: String }
|
|
7034
|
-
},
|
|
7035
|
-
{ _id: false }
|
|
7036
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
7037
|
-
);
|
|
7038
|
-
var schema10 = new MongooseSchema14(
|
|
7039
|
-
{
|
|
7040
|
-
...baseResourceFields,
|
|
7041
|
-
// Importing base resource fields from global.ts
|
|
7042
|
-
dateTime: [dateTimeSchema3],
|
|
7043
|
-
eventInfoId: {
|
|
7044
|
-
ref: "EventInfo",
|
|
7045
|
-
required: false,
|
|
7046
|
-
type: import_mongoose15.default.Schema.Types.ObjectId
|
|
7047
|
-
},
|
|
7048
|
-
eventType: {
|
|
7049
|
-
enum: Object.values(EnumEventType),
|
|
7050
|
-
required: true,
|
|
7051
|
-
type: String
|
|
7052
|
-
},
|
|
7053
|
-
location: {
|
|
7054
|
-
required: true,
|
|
7055
|
-
type: locationsSchema
|
|
7056
|
-
},
|
|
7057
|
-
nzbn: { required: true, type: String },
|
|
7058
|
-
provider: { required: false, type: String },
|
|
7059
|
-
rainOrShine: { required: true, type: Boolean },
|
|
7060
|
-
tags: { required: true, type: [String] }
|
|
7061
|
-
},
|
|
7062
|
-
{ timestamps: true }
|
|
7063
|
-
);
|
|
7064
|
-
schema10.index({ name: 1 });
|
|
7065
|
-
schema10.index({ description: 1 });
|
|
7066
|
-
schema10.index({ region: 1 });
|
|
7067
|
-
schema10.index({ location: "2dsphere" });
|
|
7068
|
-
schema10.index({ tags: 1 });
|
|
7069
|
-
schema10.index({ "partners.email": 1 });
|
|
7070
|
-
var EventModel = import_mongoose15.default.models.Event || import_mongoose15.default.model("Event", schema10);
|
|
7071
|
-
|
|
7072
|
-
// src/service/database.ts
|
|
7073
|
-
var import_mongoose16 = __toESM(require("mongoose"));
|
|
7074
|
-
|
|
7075
|
-
// src/service/timezonePlugin.ts
|
|
7076
|
-
var import_dayjs3 = __toESM(require("dayjs"));
|
|
7077
|
-
var import_timezone2 = __toESM(require("dayjs/plugin/timezone"));
|
|
7078
|
-
var import_utc2 = __toESM(require("dayjs/plugin/utc"));
|
|
7079
|
-
import_dayjs3.default.extend(import_utc2.default);
|
|
7080
|
-
import_dayjs3.default.extend(import_timezone2.default);
|
|
7081
|
-
function timezonePlugin(schema11) {
|
|
7082
|
-
if (!schema11.get("timestamps")) return;
|
|
7083
|
-
const transform = (_doc, ret) => {
|
|
7084
|
-
if (ret.createdAt)
|
|
7085
|
-
ret.createdAt = (0, import_dayjs3.default)(ret.createdAt).tz("Pacific/Auckland").format();
|
|
7086
|
-
if (ret.updatedAt)
|
|
7087
|
-
ret.updatedAt = (0, import_dayjs3.default)(ret.updatedAt).tz("Pacific/Auckland").format();
|
|
7088
|
-
return ret;
|
|
7089
|
-
};
|
|
7090
|
-
schema11.set("toJSON", { transform });
|
|
7091
|
-
schema11.set("toObject", { transform });
|
|
7092
|
-
}
|
|
7093
|
-
|
|
7094
|
-
// src/service/database.ts
|
|
7095
|
-
import_mongoose16.default.plugin(timezonePlugin);
|
|
7096
|
-
var connectToDatabase = async ({
|
|
7097
|
-
appName,
|
|
7098
|
-
dbName,
|
|
7099
|
-
dbPassword,
|
|
7100
|
-
dbUser,
|
|
7101
|
-
mongodbUri
|
|
7102
|
-
}) => {
|
|
7103
|
-
try {
|
|
7104
|
-
const mongoUri = mongodbUri ? mongodbUri : (
|
|
7105
|
-
// Fallback to MongoDB Atlas connection string
|
|
7106
|
-
`mongodb+srv://${dbUser}:${dbPassword}@${dbName}.mongodb.net/?retryWrites=true&w=majority&appName=${appName}`
|
|
7107
|
-
);
|
|
7108
|
-
await import_mongoose16.default.connect(mongoUri);
|
|
7109
|
-
const connectionType = mongodbUri ? "Local MongoDB" : "MongoDB Atlas";
|
|
7110
|
-
console.log(
|
|
7111
|
-
`${connectionType} connected from server/src/service/database.ts`
|
|
7112
|
-
);
|
|
7113
|
-
} catch (err) {
|
|
7114
|
-
console.error("Error connecting to MongoDB:", err);
|
|
7115
|
-
throw err;
|
|
7116
|
-
}
|
|
7117
|
-
};
|
|
7118
|
-
|
|
7119
|
-
// src/service/saveNotificationsInDb.ts
|
|
7120
|
-
async function saveNotificationsInDb(payload) {
|
|
7121
|
-
const { data, message, title, type, userIds } = payload;
|
|
7122
|
-
try {
|
|
7123
|
-
const notifications = userIds.map((userId) => ({
|
|
7124
|
-
data,
|
|
7125
|
-
isRead: false,
|
|
7126
|
-
message,
|
|
7127
|
-
title,
|
|
7128
|
-
type,
|
|
7129
|
-
userId
|
|
7130
|
-
}));
|
|
7131
|
-
await NotificationModel.insertMany(notifications);
|
|
7132
|
-
console.log(
|
|
7133
|
-
`Created ${notifications.length} notifications for ${userIds.length} users`
|
|
7134
|
-
);
|
|
7135
|
-
return [...new Set(userIds)];
|
|
7136
|
-
} catch (error) {
|
|
7137
|
-
console.error("Failed to create notifications:", error);
|
|
7138
|
-
return [];
|
|
7139
|
-
}
|
|
7140
|
-
}
|
|
7141
|
-
|
|
7142
|
-
// src/service/sendPushNotifications.ts
|
|
7143
|
-
var import_expo_server_sdk = require("expo-server-sdk");
|
|
7144
|
-
var expo = new import_expo_server_sdk.Expo();
|
|
7145
|
-
function extractTokensFromMessage(message) {
|
|
7146
|
-
return Array.isArray(message.to) ? message.to : [message.to];
|
|
7147
|
-
}
|
|
7148
|
-
function createPushMessages({
|
|
7149
|
-
tokens,
|
|
7150
|
-
message,
|
|
7151
|
-
title,
|
|
7152
|
-
data
|
|
7153
|
-
}) {
|
|
7154
|
-
const messages = [];
|
|
7155
|
-
const invalidTokens = [];
|
|
7156
|
-
for (const token of tokens) {
|
|
7157
|
-
if (!import_expo_server_sdk.Expo.isExpoPushToken(token)) {
|
|
7158
|
-
invalidTokens.push(token);
|
|
7159
|
-
continue;
|
|
7160
|
-
}
|
|
7161
|
-
messages.push({
|
|
7162
|
-
body: message,
|
|
7163
|
-
data: { ...data },
|
|
7164
|
-
sound: "default",
|
|
7165
|
-
title,
|
|
7166
|
-
to: token
|
|
7167
|
-
});
|
|
7168
|
-
}
|
|
7169
|
-
return { invalidTokens, messages };
|
|
7170
|
-
}
|
|
7171
|
-
function processChunkResults(tickets, chunk) {
|
|
7172
|
-
let successCount = 0;
|
|
7173
|
-
const failedTokens = [];
|
|
7174
|
-
for (const [ticketIndex, ticket] of tickets.entries()) {
|
|
7175
|
-
if (ticket.status === "error") {
|
|
7176
|
-
const message = chunk[ticketIndex];
|
|
7177
|
-
if (message) {
|
|
7178
|
-
const tokens = extractTokensFromMessage(message);
|
|
7179
|
-
if (ticket.details?.error === "DeviceNotRegistered") {
|
|
7180
|
-
failedTokens.push(...tokens);
|
|
7181
|
-
}
|
|
7182
|
-
console.log("Push notification error", {
|
|
7183
|
-
error: ticket.details?.error,
|
|
7184
|
-
tokens
|
|
7185
|
-
});
|
|
7186
|
-
}
|
|
7187
|
-
} else {
|
|
7188
|
-
successCount++;
|
|
7189
|
-
}
|
|
7190
|
-
}
|
|
7191
|
-
return { failedTokens, successCount };
|
|
7192
|
-
}
|
|
7193
|
-
async function sendChunk(chunk, chunkIndex) {
|
|
7194
|
-
try {
|
|
7195
|
-
const tickets = await expo.sendPushNotificationsAsync(chunk);
|
|
7196
|
-
const { successCount, failedTokens } = processChunkResults(tickets, chunk);
|
|
7197
|
-
console.log(
|
|
7198
|
-
`Chunk ${chunkIndex + 1}: Sent ${successCount}/${chunk.length} notifications successfully`
|
|
7199
|
-
);
|
|
7200
|
-
return { failedTokens, successCount };
|
|
7201
|
-
} catch (error) {
|
|
7202
|
-
console.log("Error sending Expo push notification chunk", {
|
|
7203
|
-
chunkIndex,
|
|
7204
|
-
chunkSize: chunk.length,
|
|
7205
|
-
error: error instanceof Error ? error.message : String(error)
|
|
7206
|
-
});
|
|
7207
|
-
return { failedTokens: [], successCount: 0 };
|
|
7208
|
-
}
|
|
7209
|
-
}
|
|
7210
|
-
async function sendPushNotifications({
|
|
7211
|
-
data,
|
|
7212
|
-
message,
|
|
7213
|
-
title,
|
|
7214
|
-
userIds
|
|
7215
|
-
}) {
|
|
7216
|
-
const pushTokens = await PushTokenModel.find({ userId: { $in: userIds } });
|
|
7217
|
-
const expoTokens = pushTokens.map((token) => token.token);
|
|
7218
|
-
if (!data) return;
|
|
7219
|
-
const { messages, invalidTokens } = createPushMessages({
|
|
7220
|
-
data,
|
|
7221
|
-
message,
|
|
7222
|
-
title,
|
|
7223
|
-
tokens: expoTokens
|
|
7224
|
-
});
|
|
7225
|
-
if (invalidTokens.length > 0) {
|
|
7226
|
-
console.log(`Found ${invalidTokens.length} invalid push tokens`);
|
|
7227
|
-
}
|
|
7228
|
-
if (messages.length === 0) {
|
|
7229
|
-
console.log("No valid messages to send after filtering tokens");
|
|
7230
|
-
return;
|
|
7231
|
-
}
|
|
7232
|
-
const chunks = expo.chunkPushNotifications(messages);
|
|
7233
|
-
let totalSuccessCount = 0;
|
|
7234
|
-
const allFailedTokens = [];
|
|
7235
|
-
for (const [chunkIndex, chunk] of chunks.entries()) {
|
|
7236
|
-
const { successCount, failedTokens } = await sendChunk(
|
|
7237
|
-
chunk,
|
|
7238
|
-
chunkIndex + 1
|
|
7239
|
-
);
|
|
7240
|
-
totalSuccessCount += successCount;
|
|
7241
|
-
allFailedTokens.push(...failedTokens);
|
|
7242
|
-
}
|
|
7243
|
-
console.log(
|
|
7244
|
-
`Sent push notification to ${totalSuccessCount}/${messages.length} tokens across ${chunks.length} chunks`
|
|
7245
|
-
);
|
|
7246
|
-
if (allFailedTokens.length > 0) {
|
|
7247
|
-
console.log(`Found ${allFailedTokens.length} failed push tokens`);
|
|
7248
|
-
}
|
|
7249
|
-
}
|
|
7250
|
-
|
|
7251
6162
|
// src/storage/index.ts
|
|
7252
6163
|
var SAVED_PASSWORD_KEY = "savedPassword";
|
|
7253
6164
|
var SAVED_EMAIL_KEY = "savedEmail";
|
|
@@ -7292,11 +6203,18 @@ var fonts = {
|
|
|
7292
6203
|
fontWeight: "400"
|
|
7293
6204
|
}
|
|
7294
6205
|
};
|
|
6206
|
+
|
|
6207
|
+
// src/types/resourceActivities.ts
|
|
6208
|
+
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
6209
|
+
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
6210
|
+
EnumActivity2["GOING"] = "GOING";
|
|
6211
|
+
EnumActivity2["INTERESTED"] = "INTERESTED";
|
|
6212
|
+
EnumActivity2["PRESENT"] = "PRESENT";
|
|
6213
|
+
EnumActivity2["VIEW"] = "VIEW";
|
|
6214
|
+
return EnumActivity2;
|
|
6215
|
+
})(EnumActivity || {});
|
|
7295
6216
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7296
6217
|
0 && (module.exports = {
|
|
7297
|
-
AdModel,
|
|
7298
|
-
CategorySchema,
|
|
7299
|
-
ChatModel,
|
|
7300
6218
|
EnumActivity,
|
|
7301
6219
|
EnumAdShowOn,
|
|
7302
6220
|
EnumAdStatus,
|
|
@@ -7310,7 +6228,6 @@ var fonts = {
|
|
|
7310
6228
|
EnumNotificationType,
|
|
7311
6229
|
EnumOSPlatform,
|
|
7312
6230
|
EnumPaymentMethod,
|
|
7313
|
-
EnumPubSubEvents,
|
|
7314
6231
|
EnumRegions,
|
|
7315
6232
|
EnumRelationResource,
|
|
7316
6233
|
EnumResourceType,
|
|
@@ -7318,38 +6235,20 @@ var fonts = {
|
|
|
7318
6235
|
EnumUserLicence,
|
|
7319
6236
|
EnumUserRole,
|
|
7320
6237
|
EnumVendorType,
|
|
7321
|
-
EventInfoModel,
|
|
7322
|
-
EventModel,
|
|
7323
6238
|
ImageTypeEnum,
|
|
7324
|
-
NotificationModel,
|
|
7325
|
-
ParticipantSchema,
|
|
7326
|
-
PushTokenModel,
|
|
7327
|
-
RelationModel,
|
|
7328
|
-
RelationTypeSchema,
|
|
7329
|
-
ResourceActivityModel,
|
|
7330
|
-
ResourceImageTypeSchema,
|
|
7331
6239
|
SAVED_EMAIL_KEY,
|
|
7332
6240
|
SAVED_PASSWORD_KEY,
|
|
7333
6241
|
SAVED_REFRESH_TOKEN_KEY,
|
|
7334
6242
|
SAVED_TOKEN_KEY,
|
|
7335
|
-
SocialMediaTypeSchema,
|
|
7336
|
-
StallTypeSchema,
|
|
7337
|
-
TesterModel,
|
|
7338
6243
|
USER_STORAGE_KEY,
|
|
7339
|
-
UserModel,
|
|
7340
|
-
VendorInfoModel,
|
|
7341
|
-
VendorModel,
|
|
7342
|
-
VerificationTokenModel,
|
|
7343
6244
|
availableCategories,
|
|
7344
6245
|
availableCityOptions,
|
|
7345
6246
|
availableRegionOptions,
|
|
7346
6247
|
availableRegionTypes,
|
|
7347
6248
|
availableTagTypes,
|
|
7348
|
-
baseResourceFields,
|
|
7349
6249
|
capitalizeFirstLetter,
|
|
7350
6250
|
categoryColors,
|
|
7351
6251
|
companyContactFields,
|
|
7352
|
-
connectToDatabase,
|
|
7353
6252
|
contactUsFields,
|
|
7354
6253
|
darkColors,
|
|
7355
6254
|
dateFormat,
|
|
@@ -7375,28 +6274,22 @@ var fonts = {
|
|
|
7375
6274
|
loginFields,
|
|
7376
6275
|
mapArrayToOptions,
|
|
7377
6276
|
mapBaseResourceTypeToFormData,
|
|
7378
|
-
mongoose,
|
|
7379
6277
|
normalizeUrl,
|
|
7380
6278
|
packagingOptions,
|
|
7381
|
-
partnersSchema,
|
|
7382
6279
|
paymentMethodOptions,
|
|
7383
6280
|
producedIngOptions,
|
|
7384
6281
|
productLabelGroups,
|
|
7385
6282
|
profileFields,
|
|
7386
6283
|
registerFields,
|
|
7387
|
-
relationDatesSchema,
|
|
7388
6284
|
removeTypename,
|
|
7389
6285
|
requestPasswordResetFields,
|
|
7390
6286
|
requirementsOptions,
|
|
7391
6287
|
resetPasswordFields,
|
|
7392
|
-
saveNotificationsInDb,
|
|
7393
|
-
sendPushNotifications,
|
|
7394
6288
|
socialMediaFields,
|
|
7395
6289
|
sortDatesChronologically,
|
|
7396
6290
|
stallTypeOptions,
|
|
7397
6291
|
statusOptions,
|
|
7398
6292
|
tagOptions,
|
|
7399
|
-
termsAgreementSchema,
|
|
7400
6293
|
testersFields,
|
|
7401
6294
|
timeFormat,
|
|
7402
6295
|
truncateText,
|