@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/index.mjs CHANGED
@@ -6826,7 +6826,6 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
6826
6826
  EnumEventDateStatus22["STARTED"] = "Started";
6827
6827
  EnumEventDateStatus22["TODAY"] = "Today";
6828
6828
  EnumEventDateStatus22["TOMORROW"] = "Tomorrow";
6829
- EnumEventDateStatus22["THIS_WEEKEND"] = "This_Weekend";
6830
6829
  EnumEventDateStatus22["THIS_WEEK"] = "This_Week";
6831
6830
  EnumEventDateStatus22["NEXT_WEEK"] = "Next_Week";
6832
6831
  EnumEventDateStatus22["UPCOMING"] = "Upcoming";
@@ -8111,6 +8110,17 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = gql`
8111
8110
  adminResendUserVerificationEmail(userId: $userId)
8112
8111
  }
8113
8112
  `;
8113
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = gql`
8114
+ mutation adminPermanentlyDeleteResource(
8115
+ $resourceId: ID!
8116
+ $resourceType: ResourceTypeEnum!
8117
+ ) {
8118
+ adminPermanentlyDeleteResource(
8119
+ resourceId: $resourceId
8120
+ resourceType: $resourceType
8121
+ )
8122
+ }
8123
+ `;
8114
8124
  var POSTER_USAGE_FIELDS_FRAGMENT = gql`
8115
8125
  fragment PosterUsageFields on PosterUsageType {
8116
8126
  month
@@ -8542,8 +8552,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql`
8542
8552
  startTime
8543
8553
  }
8544
8554
  `;
8545
- var VENDOR_MENU_FIELDS_FRAGMENT = gql`
8546
- fragment VendorMenuFields on VendorMenuType {
8555
+ var VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
8556
+ fragment VendorProductFields on VendorProductType {
8547
8557
  description
8548
8558
  name
8549
8559
  price
@@ -8567,6 +8577,18 @@ var VENDOR = gql`
8567
8577
  categories {
8568
8578
  ...CategoryFields
8569
8579
  }
8580
+ calendar {
8581
+ active
8582
+ calendarData {
8583
+ dateTime {
8584
+ ...VendorDateTimeFields
8585
+ }
8586
+ description
8587
+ location {
8588
+ ...LocationFields
8589
+ }
8590
+ }
8591
+ }
8570
8592
  contactDetails {
8571
8593
  ...ContactDetailsFields
8572
8594
  }
@@ -8580,25 +8602,18 @@ var VENDOR = gql`
8580
8602
  images {
8581
8603
  ...ResourceImageFields
8582
8604
  }
8583
- locations {
8584
- dateTime {
8585
- ...VendorDateTimeFields
8586
- }
8587
- description
8588
- location {
8589
- ...LocationFields
8590
- }
8591
- }
8592
8605
  logo {
8593
8606
  ...ResourceImageFields
8594
8607
  }
8595
- multiLocation
8596
8608
  name
8597
8609
  owner {
8598
8610
  ...OwnerFields
8599
8611
  }
8600
8612
  products {
8601
- ...VendorMenuFields
8613
+ active
8614
+ productsData {
8615
+ ...VendorProductFields
8616
+ }
8602
8617
  }
8603
8618
  promoCodes
8604
8619
  posterUsage {
@@ -8630,7 +8645,7 @@ var VENDOR = gql`
8630
8645
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8631
8646
  ${POSTER_USAGE_FIELDS_FRAGMENT}
8632
8647
  ${ASSOCIATES_FIELDS_FRAGMENT}
8633
- ${VENDOR_MENU_FIELDS_FRAGMENT}
8648
+ ${VENDOR_PRODUCT_FIELDS_FRAGMENT}
8634
8649
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
8635
8650
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8636
8651
  ${RELATION_DATES_FRAGMENT}
@@ -9897,6 +9912,13 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
9897
9912
  }
9898
9913
  }
9899
9914
  `;
9915
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql`
9916
+ mutation updateGoogleImportedMarkets {
9917
+ updateGoogleImportedMarkets {
9918
+ message
9919
+ }
9920
+ }
9921
+ `;
9900
9922
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
9901
9923
  fragment AppSettingsFields on AppSettingsType {
9902
9924
  _id
@@ -10225,8 +10247,9 @@ var vendroMenuSchema = create$3().shape({
10225
10247
  var vendorSchema = globalResourceSchema.shape({
10226
10248
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
10227
10249
  foodTruck: create$7().label("Food Truck").required("Please specify if the vendor is a food truck"),
10228
- multiLocation: create$7().required("Multi location is required"),
10229
- products: create$2().of(vendroMenuSchema).nullable().optional(),
10250
+ products: create$3().shape({
10251
+ productsData: create$2().of(vendroMenuSchema).nullable().optional()
10252
+ }).nullable().optional(),
10230
10253
  vendorType: create$8().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
10231
10254
  });
10232
10255
  var unregisteredVendorSchema = create$3().shape({
@@ -10545,8 +10568,6 @@ var defaultVendorFormValues = {
10545
10568
  },
10546
10569
  categories: [],
10547
10570
  foodTruck: false,
10548
- locations: null,
10549
- multiLocation: false,
10550
10571
  products: null,
10551
10572
  vendorType: "Stallholder"
10552
10573
  /* STALLHOLDER */
@@ -11275,7 +11296,7 @@ schema4.index({ isRead: 1, userId: 1 });
11275
11296
  schema4.index({ createdAt: -1, userId: 1 });
11276
11297
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
11277
11298
 
11278
- // node_modules/@timardex/cluemart-shared/dist/chunk-Z6FJKHRH.mjs
11299
+ // node_modules/@timardex/cluemart-shared/dist/chunk-LDO4DRWY.mjs
11279
11300
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11280
11301
  EnumOSPlatform22["ANDROID"] = "android";
11281
11302
  EnumOSPlatform22["IOS"] = "ios";
@@ -11518,7 +11539,7 @@ var VerificationTokenModel = mongoose12.models.VerificationToken || mongoose12.m
11518
11539
  // src/mongoose/vendor/Vendor.ts
11519
11540
  import mongoose13 from "mongoose";
11520
11541
  var MongooseSchema13 = mongoose13.Schema;
11521
- var MenuTypeSchema = new MongooseSchema13(
11542
+ var productTypeSchema = new MongooseSchema13(
11522
11543
  {
11523
11544
  description: { required: false, type: String },
11524
11545
  name: { required: false, type: String },
@@ -11526,9 +11547,15 @@ var MenuTypeSchema = new MongooseSchema13(
11526
11547
  productGroups: { required: false, type: [String] }
11527
11548
  },
11528
11549
  { _id: false }
11529
- // Prevents Mongoose from creating an additional _id field for subdocuments
11530
11550
  );
11531
- var LocationsSchema = new MongooseSchema13(
11551
+ var productWrapperSchema = new MongooseSchema13(
11552
+ {
11553
+ active: { default: false, type: Boolean },
11554
+ productData: { required: false, type: [productTypeSchema] }
11555
+ },
11556
+ { _id: false }
11557
+ );
11558
+ var calendarSchema = new MongooseSchema13(
11532
11559
  {
11533
11560
  dateTime: {
11534
11561
  dateStatus: {
@@ -11548,7 +11575,13 @@ var LocationsSchema = new MongooseSchema13(
11548
11575
  }
11549
11576
  },
11550
11577
  { _id: false }
11551
- // Prevents Mongoose from creating an additional _id field for subdocuments
11578
+ );
11579
+ var calendarWrapperSchema = new MongooseSchema13(
11580
+ {
11581
+ active: { default: false, type: Boolean },
11582
+ calendarData: { required: false, type: [calendarSchema] }
11583
+ },
11584
+ { _id: false }
11552
11585
  );
11553
11586
  var schema9 = new MongooseSchema13(
11554
11587
  {
@@ -11559,11 +11592,13 @@ var schema9 = new MongooseSchema13(
11559
11592
  private: { default: false, required: false, type: Boolean },
11560
11593
  school: { default: false, required: false, type: Boolean }
11561
11594
  },
11595
+ calendar: {
11596
+ required: false,
11597
+ type: calendarWrapperSchema
11598
+ },
11562
11599
  categories: [CategorySchema],
11563
11600
  foodTruck: { required: true, type: Boolean },
11564
- locations: [LocationsSchema],
11565
- multiLocation: { required: true, type: Boolean },
11566
- products: [MenuTypeSchema],
11601
+ products: { required: false, type: productWrapperSchema },
11567
11602
  relations: {
11568
11603
  default: [],
11569
11604
  required: false,