@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.
@@ -6805,7 +6805,6 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
6805
6805
  EnumEventDateStatus22["STARTED"] = "Started";
6806
6806
  EnumEventDateStatus22["TODAY"] = "Today";
6807
6807
  EnumEventDateStatus22["TOMORROW"] = "Tomorrow";
6808
- EnumEventDateStatus22["THIS_WEEKEND"] = "This_Weekend";
6809
6808
  EnumEventDateStatus22["THIS_WEEK"] = "This_Week";
6810
6809
  EnumEventDateStatus22["NEXT_WEEK"] = "Next_Week";
6811
6810
  EnumEventDateStatus22["UPCOMING"] = "Upcoming";
@@ -8090,6 +8089,17 @@ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = gql`
8090
8089
  adminResendUserVerificationEmail(userId: $userId)
8091
8090
  }
8092
8091
  `;
8092
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = gql`
8093
+ mutation adminPermanentlyDeleteResource(
8094
+ $resourceId: ID!
8095
+ $resourceType: ResourceTypeEnum!
8096
+ ) {
8097
+ adminPermanentlyDeleteResource(
8098
+ resourceId: $resourceId
8099
+ resourceType: $resourceType
8100
+ )
8101
+ }
8102
+ `;
8093
8103
  var POSTER_USAGE_FIELDS_FRAGMENT = gql`
8094
8104
  fragment PosterUsageFields on PosterUsageType {
8095
8105
  month
@@ -8521,8 +8531,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql`
8521
8531
  startTime
8522
8532
  }
8523
8533
  `;
8524
- var VENDOR_MENU_FIELDS_FRAGMENT = gql`
8525
- fragment VendorMenuFields on VendorMenuType {
8534
+ var VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
8535
+ fragment VendorProductFields on VendorProductType {
8526
8536
  description
8527
8537
  name
8528
8538
  price
@@ -8546,6 +8556,18 @@ var VENDOR = gql`
8546
8556
  categories {
8547
8557
  ...CategoryFields
8548
8558
  }
8559
+ calendar {
8560
+ active
8561
+ calendarData {
8562
+ dateTime {
8563
+ ...VendorDateTimeFields
8564
+ }
8565
+ description
8566
+ location {
8567
+ ...LocationFields
8568
+ }
8569
+ }
8570
+ }
8549
8571
  contactDetails {
8550
8572
  ...ContactDetailsFields
8551
8573
  }
@@ -8559,25 +8581,18 @@ var VENDOR = gql`
8559
8581
  images {
8560
8582
  ...ResourceImageFields
8561
8583
  }
8562
- locations {
8563
- dateTime {
8564
- ...VendorDateTimeFields
8565
- }
8566
- description
8567
- location {
8568
- ...LocationFields
8569
- }
8570
- }
8571
8584
  logo {
8572
8585
  ...ResourceImageFields
8573
8586
  }
8574
- multiLocation
8575
8587
  name
8576
8588
  owner {
8577
8589
  ...OwnerFields
8578
8590
  }
8579
8591
  products {
8580
- ...VendorMenuFields
8592
+ active
8593
+ productsData {
8594
+ ...VendorProductFields
8595
+ }
8581
8596
  }
8582
8597
  promoCodes
8583
8598
  posterUsage {
@@ -8609,7 +8624,7 @@ var VENDOR = gql`
8609
8624
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8610
8625
  ${POSTER_USAGE_FIELDS_FRAGMENT}
8611
8626
  ${ASSOCIATES_FIELDS_FRAGMENT}
8612
- ${VENDOR_MENU_FIELDS_FRAGMENT}
8627
+ ${VENDOR_PRODUCT_FIELDS_FRAGMENT}
8613
8628
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
8614
8629
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8615
8630
  ${RELATION_DATES_FRAGMENT}
@@ -9876,6 +9891,13 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
9876
9891
  }
9877
9892
  }
9878
9893
  `;
9894
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = gql`
9895
+ mutation updateGoogleImportedMarkets {
9896
+ updateGoogleImportedMarkets {
9897
+ message
9898
+ }
9899
+ }
9900
+ `;
9879
9901
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
9880
9902
  fragment AppSettingsFields on AppSettingsType {
9881
9903
  _id
@@ -10204,8 +10226,9 @@ var vendroMenuSchema = create$3().shape({
10204
10226
  var vendorSchema = globalResourceSchema.shape({
10205
10227
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
10206
10228
  foodTruck: create$7().label("Food Truck").required("Please specify if the vendor is a food truck"),
10207
- multiLocation: create$7().required("Multi location is required"),
10208
- products: create$2().of(vendroMenuSchema).nullable().optional(),
10229
+ products: create$3().shape({
10230
+ productsData: create$2().of(vendroMenuSchema).nullable().optional()
10231
+ }).nullable().optional(),
10209
10232
  vendorType: create$8().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
10210
10233
  });
10211
10234
  var unregisteredVendorSchema = create$3().shape({
@@ -10524,8 +10547,6 @@ var defaultVendorFormValues = {
10524
10547
  },
10525
10548
  categories: [],
10526
10549
  foodTruck: false,
10527
- locations: null,
10528
- multiLocation: false,
10529
10550
  products: null,
10530
10551
  vendorType: "Stallholder"
10531
10552
  /* STALLHOLDER */
@@ -11254,7 +11275,7 @@ schema4.index({ isRead: 1, userId: 1 });
11254
11275
  schema4.index({ createdAt: -1, userId: 1 });
11255
11276
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
11256
11277
 
11257
- // node_modules/@timardex/cluemart-shared/dist/chunk-Z6FJKHRH.mjs
11278
+ // node_modules/@timardex/cluemart-shared/dist/chunk-LDO4DRWY.mjs
11258
11279
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11259
11280
  EnumOSPlatform22["ANDROID"] = "android";
11260
11281
  EnumOSPlatform22["IOS"] = "ios";
@@ -11497,7 +11518,7 @@ var VerificationTokenModel = mongoose12.models.VerificationToken || mongoose12.m
11497
11518
  // src/mongoose/vendor/Vendor.ts
11498
11519
  import mongoose13 from "mongoose";
11499
11520
  var MongooseSchema13 = mongoose13.Schema;
11500
- var MenuTypeSchema = new MongooseSchema13(
11521
+ var productTypeSchema = new MongooseSchema13(
11501
11522
  {
11502
11523
  description: { required: false, type: String },
11503
11524
  name: { required: false, type: String },
@@ -11505,9 +11526,15 @@ var MenuTypeSchema = new MongooseSchema13(
11505
11526
  productGroups: { required: false, type: [String] }
11506
11527
  },
11507
11528
  { _id: false }
11508
- // Prevents Mongoose from creating an additional _id field for subdocuments
11509
11529
  );
11510
- var LocationsSchema = new MongooseSchema13(
11530
+ var productWrapperSchema = new MongooseSchema13(
11531
+ {
11532
+ active: { default: false, type: Boolean },
11533
+ productData: { required: false, type: [productTypeSchema] }
11534
+ },
11535
+ { _id: false }
11536
+ );
11537
+ var calendarSchema = new MongooseSchema13(
11511
11538
  {
11512
11539
  dateTime: {
11513
11540
  dateStatus: {
@@ -11527,7 +11554,13 @@ var LocationsSchema = new MongooseSchema13(
11527
11554
  }
11528
11555
  },
11529
11556
  { _id: false }
11530
- // Prevents Mongoose from creating an additional _id field for subdocuments
11557
+ );
11558
+ var calendarWrapperSchema = new MongooseSchema13(
11559
+ {
11560
+ active: { default: false, type: Boolean },
11561
+ calendarData: { required: false, type: [calendarSchema] }
11562
+ },
11563
+ { _id: false }
11531
11564
  );
11532
11565
  var schema9 = new MongooseSchema13(
11533
11566
  {
@@ -11538,11 +11571,13 @@ var schema9 = new MongooseSchema13(
11538
11571
  private: { default: false, required: false, type: Boolean },
11539
11572
  school: { default: false, required: false, type: Boolean }
11540
11573
  },
11574
+ calendar: {
11575
+ required: false,
11576
+ type: calendarWrapperSchema
11577
+ },
11541
11578
  categories: [CategorySchema],
11542
11579
  foodTruck: { required: true, type: Boolean },
11543
- locations: [LocationsSchema],
11544
- multiLocation: { required: true, type: Boolean },
11545
- products: [MenuTypeSchema],
11580
+ products: { required: false, type: productWrapperSchema },
11546
11581
  relations: {
11547
11582
  default: [],
11548
11583
  required: false,
@@ -11830,4 +11865,4 @@ react/cjs/react.development.js:
11830
11865
  * LICENSE file in the root directory of this source tree.
11831
11866
  *)
11832
11867
  */
11833
- //# sourceMappingURL=chunk-S5SB52ZU.mjs.map
11868
+ //# sourceMappingURL=chunk-SDZAM4E4.mjs.map