@timardex/cluemart-server-shared 1.0.71 → 1.0.73
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-HVNJOXS7.mjs → chunk-TJ6XYHJZ.mjs} +31 -22
- package/dist/chunk-TJ6XYHJZ.mjs.map +1 -0
- package/dist/index.cjs +30 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.mjs +30 -21
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +30 -21
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +9 -2
- package/dist/mongoose/index.d.ts +9 -2
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +30 -21
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-HVNJOXS7.mjs.map +0 -1
|
@@ -6788,7 +6788,7 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
|
|
|
6788
6788
|
EnumFoodFlavor3["SAVOURY"] = "Savoury";
|
|
6789
6789
|
EnumFoodFlavor3["SPICY"] = "Spicy";
|
|
6790
6790
|
EnumFoodFlavor3["SWEET"] = "Sweet";
|
|
6791
|
-
EnumFoodFlavor3["OTHER"] = "
|
|
6791
|
+
EnumFoodFlavor3["OTHER"] = "Not_Applicable";
|
|
6792
6792
|
return EnumFoodFlavor3;
|
|
6793
6793
|
})(EnumFoodFlavor || {});
|
|
6794
6794
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
|
|
@@ -6944,14 +6944,15 @@ function normalizeUrl(url) {
|
|
|
6944
6944
|
var packagingTypes = [
|
|
6945
6945
|
"Biodegradable",
|
|
6946
6946
|
"Compostable",
|
|
6947
|
-
"
|
|
6948
|
-
"Reusable",
|
|
6949
|
-
"Single-use",
|
|
6947
|
+
"Fabric",
|
|
6950
6948
|
"Glass",
|
|
6949
|
+
"Other",
|
|
6951
6950
|
"Paper",
|
|
6952
6951
|
"Plastic",
|
|
6953
|
-
"
|
|
6954
|
-
"
|
|
6952
|
+
"Recyclable",
|
|
6953
|
+
"Reusable",
|
|
6954
|
+
"Single-use",
|
|
6955
|
+
"Wood"
|
|
6955
6956
|
];
|
|
6956
6957
|
var producedIngTypes = [
|
|
6957
6958
|
"Commercial Kitchen",
|
|
@@ -10278,9 +10279,9 @@ var eventInfoSchema = create$3().shape({
|
|
|
10278
10279
|
paymentInfo: create$2().of(paymentInfoSchema).min(1, "At least one payment info is required").required("Payment info is required")
|
|
10279
10280
|
});
|
|
10280
10281
|
var vendroMenuSchema = create$3().shape({
|
|
10281
|
-
description: create$6().trim().
|
|
10282
|
+
description: create$6().trim().optional().nullable(),
|
|
10282
10283
|
price: create$5().transform((value, originalValue) => originalValue === "" ? null : value).min(0).optional().nullable(),
|
|
10283
|
-
title: create$6().trim().
|
|
10284
|
+
title: create$6().trim().optional().nullable()
|
|
10284
10285
|
});
|
|
10285
10286
|
var vendorSchema = globalResourceSchema.shape({
|
|
10286
10287
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
@@ -10667,8 +10668,10 @@ var defaultPartnerFormValues = {
|
|
|
10667
10668
|
};
|
|
10668
10669
|
var defaultEventFormValues = {
|
|
10669
10670
|
...globalDefaultValues,
|
|
10671
|
+
claimed: true,
|
|
10670
10672
|
dateTime: [],
|
|
10671
10673
|
eventType: "Market",
|
|
10674
|
+
googlePlaceId: null,
|
|
10672
10675
|
location: defaultLocation,
|
|
10673
10676
|
nzbn: "",
|
|
10674
10677
|
provider: null,
|
|
@@ -11209,6 +11212,12 @@ var schema3 = new MongooseSchema6(
|
|
|
11209
11212
|
allowsDogs: { required: false, type: Boolean },
|
|
11210
11213
|
businessStatus: { required: false, type: String },
|
|
11211
11214
|
claimed: { default: false, required: true, type: Boolean },
|
|
11215
|
+
claimedAt: { default: null, required: false, type: Date },
|
|
11216
|
+
claimedByUserId: {
|
|
11217
|
+
ref: "User",
|
|
11218
|
+
required: false,
|
|
11219
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
11220
|
+
},
|
|
11212
11221
|
cover: {
|
|
11213
11222
|
required: false,
|
|
11214
11223
|
type: ResourceImageTypeSchema
|
|
@@ -11216,6 +11225,11 @@ var schema3 = new MongooseSchema6(
|
|
|
11216
11225
|
dateTime: [dateTimeSchema3],
|
|
11217
11226
|
deletedAt: { default: null, required: false, type: Date },
|
|
11218
11227
|
description: { required: true, type: String },
|
|
11228
|
+
eventId: {
|
|
11229
|
+
ref: "Event",
|
|
11230
|
+
required: false,
|
|
11231
|
+
type: mongoose6.Schema.Types.ObjectId
|
|
11232
|
+
},
|
|
11219
11233
|
eventType: {
|
|
11220
11234
|
enum: Object.values(EnumEventType),
|
|
11221
11235
|
required: true,
|
|
@@ -11261,11 +11275,8 @@ var schema3 = new MongooseSchema6(
|
|
|
11261
11275
|
{ timestamps: true }
|
|
11262
11276
|
);
|
|
11263
11277
|
schema3.index({ location: "2dsphere" });
|
|
11264
|
-
schema3.index({
|
|
11265
|
-
|
|
11266
|
-
name: 1,
|
|
11267
|
-
region: 1
|
|
11268
|
-
});
|
|
11278
|
+
schema3.index({ name: 1 });
|
|
11279
|
+
schema3.index({ region: 1 });
|
|
11269
11280
|
var GoogleImportedMarketModel = mongoose6.models.GoogleImportedMarket || mongoose6.model("GoogleImportedMarket", schema3);
|
|
11270
11281
|
|
|
11271
11282
|
// src/mongoose/Notification.ts
|
|
@@ -11303,7 +11314,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11303
11314
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11304
11315
|
var NotificationModel = mongoose7.models.Notification || mongoose7.model("Notification", schema4);
|
|
11305
11316
|
|
|
11306
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11317
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-FLDXD65Z.mjs
|
|
11307
11318
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11308
11319
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11309
11320
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -11883,14 +11894,12 @@ var schema11 = new MongooseSchema15(
|
|
|
11883
11894
|
},
|
|
11884
11895
|
{ timestamps: true }
|
|
11885
11896
|
);
|
|
11897
|
+
schema11.index({ name: 1 });
|
|
11898
|
+
schema11.index({ description: 1 });
|
|
11899
|
+
schema11.index({ region: 1 });
|
|
11886
11900
|
schema11.index({ location: "2dsphere" });
|
|
11887
|
-
schema11.index({
|
|
11888
|
-
|
|
11889
|
-
description: 1,
|
|
11890
|
-
name: 1,
|
|
11891
|
-
region: 1,
|
|
11892
|
-
tags: 1
|
|
11893
|
-
});
|
|
11901
|
+
schema11.index({ tags: 1 });
|
|
11902
|
+
schema11.index({ "associates.email": 1 });
|
|
11894
11903
|
var EventModel = mongoose15.models.Event || mongoose15.model("Event", schema11);
|
|
11895
11904
|
|
|
11896
11905
|
// src/mongoose/Partner.ts
|
|
@@ -12033,4 +12042,4 @@ react/cjs/react.development.js:
|
|
|
12033
12042
|
* LICENSE file in the root directory of this source tree.
|
|
12034
12043
|
*)
|
|
12035
12044
|
*/
|
|
12036
|
-
//# sourceMappingURL=chunk-
|
|
12045
|
+
//# sourceMappingURL=chunk-TJ6XYHJZ.mjs.map
|