@timardex/cluemart-server-shared 1.0.60 → 1.0.61

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.
@@ -10050,6 +10050,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10050
10050
  updatedAt
10051
10051
  }
10052
10052
  `;
10053
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
10054
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
10055
+ _id
10056
+ name
10057
+ slug
10058
+ image
10059
+ address
10060
+ location {
10061
+ lat
10062
+ lng
10063
+ }
10064
+ googlePlaceId
10065
+ website
10066
+ phone
10067
+ openingHours
10068
+ rating
10069
+ reviewCount
10070
+ photos
10071
+ googleMapsUrl
10072
+ businessStatus
10073
+ addressComponents {
10074
+ longName
10075
+ shortName
10076
+ types
10077
+ }
10078
+ accessibilityOptions
10079
+ allowsDogs
10080
+ goodForChildren
10081
+ goodForGroups
10082
+ liveMusic
10083
+ parkingOptions
10084
+ paymentOptions
10085
+ restroom
10086
+ importedAt
10087
+ claimed
10088
+ createdAt
10089
+ updatedAt
10090
+ }
10091
+ `;
10053
10092
  var GET_APP_SETTINGS = gql`
10054
10093
  query getAppSettings {
10055
10094
  appSettings {
@@ -10058,6 +10097,14 @@ var GET_APP_SETTINGS = gql`
10058
10097
  }
10059
10098
  ${APP_SETTINGS_FIELDS_FRAGMENT}
10060
10099
  `;
10100
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10101
+ query getGoogleImportedMarkets {
10102
+ googleImportedMarkets {
10103
+ ...GoogleImportedMarketsFields
10104
+ }
10105
+ }
10106
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10107
+ `;
10061
10108
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10062
10109
  var nzbnRegex = /^94\d{11}$/;
10063
10110
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11220,11 +11267,24 @@ var locationSchema2 = new MongooseSchema6(
11220
11267
  { _id: false }
11221
11268
  // Prevents Mongoose from creating an additional _id field for subdocuments
11222
11269
  );
11270
+ var addressComponentSchema = new MongooseSchema6(
11271
+ {
11272
+ longName: { required: false, type: String },
11273
+ shortName: { required: false, type: String },
11274
+ types: { required: false, type: [String] }
11275
+ },
11276
+ { _id: false }
11277
+ );
11223
11278
  var schema3 = new MongooseSchema6(
11224
11279
  {
11280
+ accessibilityOptions: { required: false, type: Object },
11225
11281
  address: { required: true, type: String },
11282
+ addressComponents: { required: false, type: [addressComponentSchema] },
11283
+ allowsDogs: { required: false, type: Boolean },
11226
11284
  businessStatus: { required: false, type: String },
11227
11285
  claimed: { default: false, required: true, type: Boolean },
11286
+ goodForChildren: { required: false, type: Boolean },
11287
+ goodForGroups: { required: false, type: Boolean },
11228
11288
  googleMapsUrl: { required: false, type: String },
11229
11289
  googlePlaceId: {
11230
11290
  required: true,
@@ -11235,6 +11295,7 @@ var schema3 = new MongooseSchema6(
11235
11295
  image: { required: false, type: String },
11236
11296
  // photo_reference only
11237
11297
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11298
+ liveMusic: { required: false, type: Boolean },
11238
11299
  location: {
11239
11300
  required: false,
11240
11301
  // optional because lat/lng may expire after 30 days
@@ -11242,10 +11303,13 @@ var schema3 = new MongooseSchema6(
11242
11303
  },
11243
11304
  name: { required: true, type: String },
11244
11305
  openingHours: { required: false, type: [String] },
11306
+ parkingOptions: { required: false, type: Object },
11307
+ paymentOptions: { required: false, type: Object },
11245
11308
  phone: { required: false, type: String },
11246
11309
  photos: { required: false, type: [String] },
11247
11310
  // array of photo_reference
11248
11311
  rating: { required: false, type: Number },
11312
+ restroom: { required: false, type: Boolean },
11249
11313
  reviewCount: { required: false, type: Number },
11250
11314
  slug: { required: true, type: String },
11251
11315
  website: { required: false, type: String }