@timardex/cluemart-server-shared 1.0.92 → 1.0.94
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-S5SB52ZU.mjs → chunk-SDZAM4E4.mjs} +63 -28
- package/dist/chunk-SDZAM4E4.mjs.map +1 -0
- package/dist/index.cjs +62 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +62 -27
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +62 -27
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +62 -27
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-S5SB52ZU.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -6879,7 +6879,6 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
|
|
|
6879
6879
|
EnumEventDateStatus22["STARTED"] = "Started";
|
|
6880
6880
|
EnumEventDateStatus22["TODAY"] = "Today";
|
|
6881
6881
|
EnumEventDateStatus22["TOMORROW"] = "Tomorrow";
|
|
6882
|
-
EnumEventDateStatus22["THIS_WEEKEND"] = "This_Weekend";
|
|
6883
6882
|
EnumEventDateStatus22["THIS_WEEK"] = "This_Week";
|
|
6884
6883
|
EnumEventDateStatus22["NEXT_WEEK"] = "Next_Week";
|
|
6885
6884
|
EnumEventDateStatus22["UPCOMING"] = "Upcoming";
|
|
@@ -8164,6 +8163,17 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = gql`
|
|
|
8164
8163
|
adminResendUserVerificationEmail(userId: $userId)
|
|
8165
8164
|
}
|
|
8166
8165
|
`;
|
|
8166
|
+
var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = gql`
|
|
8167
|
+
mutation adminPermanentlyDeleteResource(
|
|
8168
|
+
$resourceId: ID!
|
|
8169
|
+
$resourceType: ResourceTypeEnum!
|
|
8170
|
+
) {
|
|
8171
|
+
adminPermanentlyDeleteResource(
|
|
8172
|
+
resourceId: $resourceId
|
|
8173
|
+
resourceType: $resourceType
|
|
8174
|
+
)
|
|
8175
|
+
}
|
|
8176
|
+
`;
|
|
8167
8177
|
var POSTER_USAGE_FIELDS_FRAGMENT = gql`
|
|
8168
8178
|
fragment PosterUsageFields on PosterUsageType {
|
|
8169
8179
|
month
|
|
@@ -8595,8 +8605,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql`
|
|
|
8595
8605
|
startTime
|
|
8596
8606
|
}
|
|
8597
8607
|
`;
|
|
8598
|
-
var
|
|
8599
|
-
fragment
|
|
8608
|
+
var VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
|
|
8609
|
+
fragment VendorProductFields on VendorProductType {
|
|
8600
8610
|
description
|
|
8601
8611
|
name
|
|
8602
8612
|
price
|
|
@@ -8620,6 +8630,18 @@ var VENDOR = gql`
|
|
|
8620
8630
|
categories {
|
|
8621
8631
|
...CategoryFields
|
|
8622
8632
|
}
|
|
8633
|
+
calendar {
|
|
8634
|
+
active
|
|
8635
|
+
calendarData {
|
|
8636
|
+
dateTime {
|
|
8637
|
+
...VendorDateTimeFields
|
|
8638
|
+
}
|
|
8639
|
+
description
|
|
8640
|
+
location {
|
|
8641
|
+
...LocationFields
|
|
8642
|
+
}
|
|
8643
|
+
}
|
|
8644
|
+
}
|
|
8623
8645
|
contactDetails {
|
|
8624
8646
|
...ContactDetailsFields
|
|
8625
8647
|
}
|
|
@@ -8633,25 +8655,18 @@ var VENDOR = gql`
|
|
|
8633
8655
|
images {
|
|
8634
8656
|
...ResourceImageFields
|
|
8635
8657
|
}
|
|
8636
|
-
locations {
|
|
8637
|
-
dateTime {
|
|
8638
|
-
...VendorDateTimeFields
|
|
8639
|
-
}
|
|
8640
|
-
description
|
|
8641
|
-
location {
|
|
8642
|
-
...LocationFields
|
|
8643
|
-
}
|
|
8644
|
-
}
|
|
8645
8658
|
logo {
|
|
8646
8659
|
...ResourceImageFields
|
|
8647
8660
|
}
|
|
8648
|
-
multiLocation
|
|
8649
8661
|
name
|
|
8650
8662
|
owner {
|
|
8651
8663
|
...OwnerFields
|
|
8652
8664
|
}
|
|
8653
8665
|
products {
|
|
8654
|
-
|
|
8666
|
+
active
|
|
8667
|
+
productsData {
|
|
8668
|
+
...VendorProductFields
|
|
8669
|
+
}
|
|
8655
8670
|
}
|
|
8656
8671
|
promoCodes
|
|
8657
8672
|
posterUsage {
|
|
@@ -8683,7 +8698,7 @@ var VENDOR = gql`
|
|
|
8683
8698
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
8684
8699
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
8685
8700
|
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
8686
|
-
${
|
|
8701
|
+
${VENDOR_PRODUCT_FIELDS_FRAGMENT}
|
|
8687
8702
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
8688
8703
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
8689
8704
|
${RELATION_DATES_FRAGMENT}
|
|
@@ -9950,6 +9965,13 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
|
|
|
9950
9965
|
}
|
|
9951
9966
|
}
|
|
9952
9967
|
`;
|
|
9968
|
+
var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql`
|
|
9969
|
+
mutation updateGoogleImportedMarkets {
|
|
9970
|
+
updateGoogleImportedMarkets {
|
|
9971
|
+
message
|
|
9972
|
+
}
|
|
9973
|
+
}
|
|
9974
|
+
`;
|
|
9953
9975
|
var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
9954
9976
|
fragment AppSettingsFields on AppSettingsType {
|
|
9955
9977
|
_id
|
|
@@ -10278,8 +10300,9 @@ var vendroMenuSchema = create$3().shape({
|
|
|
10278
10300
|
var vendorSchema = globalResourceSchema.shape({
|
|
10279
10301
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
10280
10302
|
foodTruck: create$7().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
10281
|
-
|
|
10282
|
-
|
|
10303
|
+
products: create$3().shape({
|
|
10304
|
+
productsData: create$2().of(vendroMenuSchema).nullable().optional()
|
|
10305
|
+
}).nullable().optional(),
|
|
10283
10306
|
vendorType: create$8().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
|
|
10284
10307
|
});
|
|
10285
10308
|
var unregisteredVendorSchema = create$3().shape({
|
|
@@ -10598,8 +10621,6 @@ var defaultVendorFormValues = {
|
|
|
10598
10621
|
},
|
|
10599
10622
|
categories: [],
|
|
10600
10623
|
foodTruck: false,
|
|
10601
|
-
locations: null,
|
|
10602
|
-
multiLocation: false,
|
|
10603
10624
|
products: null,
|
|
10604
10625
|
vendorType: "Stallholder"
|
|
10605
10626
|
/* STALLHOLDER */
|
|
@@ -11328,7 +11349,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11328
11349
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11329
11350
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
11330
11351
|
|
|
11331
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11352
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-LDO4DRWY.mjs
|
|
11332
11353
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11333
11354
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11334
11355
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -11571,7 +11592,7 @@ var VerificationTokenModel = import_mongoose12.default.models.VerificationToken
|
|
|
11571
11592
|
// src/mongoose/vendor/Vendor.ts
|
|
11572
11593
|
var import_mongoose13 = __toESM(require("mongoose"));
|
|
11573
11594
|
var MongooseSchema13 = import_mongoose13.default.Schema;
|
|
11574
|
-
var
|
|
11595
|
+
var productTypeSchema = new MongooseSchema13(
|
|
11575
11596
|
{
|
|
11576
11597
|
description: { required: false, type: String },
|
|
11577
11598
|
name: { required: false, type: String },
|
|
@@ -11579,9 +11600,15 @@ var MenuTypeSchema = new MongooseSchema13(
|
|
|
11579
11600
|
productGroups: { required: false, type: [String] }
|
|
11580
11601
|
},
|
|
11581
11602
|
{ _id: false }
|
|
11582
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11583
11603
|
);
|
|
11584
|
-
var
|
|
11604
|
+
var productWrapperSchema = new MongooseSchema13(
|
|
11605
|
+
{
|
|
11606
|
+
active: { default: false, type: Boolean },
|
|
11607
|
+
productData: { required: false, type: [productTypeSchema] }
|
|
11608
|
+
},
|
|
11609
|
+
{ _id: false }
|
|
11610
|
+
);
|
|
11611
|
+
var calendarSchema = new MongooseSchema13(
|
|
11585
11612
|
{
|
|
11586
11613
|
dateTime: {
|
|
11587
11614
|
dateStatus: {
|
|
@@ -11601,7 +11628,13 @@ var LocationsSchema = new MongooseSchema13(
|
|
|
11601
11628
|
}
|
|
11602
11629
|
},
|
|
11603
11630
|
{ _id: false }
|
|
11604
|
-
|
|
11631
|
+
);
|
|
11632
|
+
var calendarWrapperSchema = new MongooseSchema13(
|
|
11633
|
+
{
|
|
11634
|
+
active: { default: false, type: Boolean },
|
|
11635
|
+
calendarData: { required: false, type: [calendarSchema] }
|
|
11636
|
+
},
|
|
11637
|
+
{ _id: false }
|
|
11605
11638
|
);
|
|
11606
11639
|
var schema9 = new MongooseSchema13(
|
|
11607
11640
|
{
|
|
@@ -11612,11 +11645,13 @@ var schema9 = new MongooseSchema13(
|
|
|
11612
11645
|
private: { default: false, required: false, type: Boolean },
|
|
11613
11646
|
school: { default: false, required: false, type: Boolean }
|
|
11614
11647
|
},
|
|
11648
|
+
calendar: {
|
|
11649
|
+
required: false,
|
|
11650
|
+
type: calendarWrapperSchema
|
|
11651
|
+
},
|
|
11615
11652
|
categories: [CategorySchema],
|
|
11616
11653
|
foodTruck: { required: true, type: Boolean },
|
|
11617
|
-
|
|
11618
|
-
multiLocation: { required: true, type: Boolean },
|
|
11619
|
-
products: [MenuTypeSchema],
|
|
11654
|
+
products: { required: false, type: productWrapperSchema },
|
|
11620
11655
|
relations: {
|
|
11621
11656
|
default: [],
|
|
11622
11657
|
required: false,
|