@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.
package/dist/index.cjs CHANGED
@@ -10057,6 +10057,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10057
10057
  updatedAt
10058
10058
  }
10059
10059
  `;
10060
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
10061
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
10062
+ _id
10063
+ name
10064
+ slug
10065
+ image
10066
+ address
10067
+ location {
10068
+ lat
10069
+ lng
10070
+ }
10071
+ googlePlaceId
10072
+ website
10073
+ phone
10074
+ openingHours
10075
+ rating
10076
+ reviewCount
10077
+ photos
10078
+ googleMapsUrl
10079
+ businessStatus
10080
+ addressComponents {
10081
+ longName
10082
+ shortName
10083
+ types
10084
+ }
10085
+ accessibilityOptions
10086
+ allowsDogs
10087
+ goodForChildren
10088
+ goodForGroups
10089
+ liveMusic
10090
+ parkingOptions
10091
+ paymentOptions
10092
+ restroom
10093
+ importedAt
10094
+ claimed
10095
+ createdAt
10096
+ updatedAt
10097
+ }
10098
+ `;
10060
10099
  var GET_APP_SETTINGS = gql`
10061
10100
  query getAppSettings {
10062
10101
  appSettings {
@@ -10065,6 +10104,14 @@ var GET_APP_SETTINGS = gql`
10065
10104
  }
10066
10105
  ${APP_SETTINGS_FIELDS_FRAGMENT}
10067
10106
  `;
10107
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10108
+ query getGoogleImportedMarkets {
10109
+ googleImportedMarkets {
10110
+ ...GoogleImportedMarketsFields
10111
+ }
10112
+ }
10113
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10114
+ `;
10068
10115
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10069
10116
  var nzbnRegex = /^94\d{11}$/;
10070
10117
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11227,11 +11274,24 @@ var locationSchema2 = new MongooseSchema6(
11227
11274
  { _id: false }
11228
11275
  // Prevents Mongoose from creating an additional _id field for subdocuments
11229
11276
  );
11277
+ var addressComponentSchema = new MongooseSchema6(
11278
+ {
11279
+ longName: { required: false, type: String },
11280
+ shortName: { required: false, type: String },
11281
+ types: { required: false, type: [String] }
11282
+ },
11283
+ { _id: false }
11284
+ );
11230
11285
  var schema3 = new MongooseSchema6(
11231
11286
  {
11287
+ accessibilityOptions: { required: false, type: Object },
11232
11288
  address: { required: true, type: String },
11289
+ addressComponents: { required: false, type: [addressComponentSchema] },
11290
+ allowsDogs: { required: false, type: Boolean },
11233
11291
  businessStatus: { required: false, type: String },
11234
11292
  claimed: { default: false, required: true, type: Boolean },
11293
+ goodForChildren: { required: false, type: Boolean },
11294
+ goodForGroups: { required: false, type: Boolean },
11235
11295
  googleMapsUrl: { required: false, type: String },
11236
11296
  googlePlaceId: {
11237
11297
  required: true,
@@ -11242,6 +11302,7 @@ var schema3 = new MongooseSchema6(
11242
11302
  image: { required: false, type: String },
11243
11303
  // photo_reference only
11244
11304
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11305
+ liveMusic: { required: false, type: Boolean },
11245
11306
  location: {
11246
11307
  required: false,
11247
11308
  // optional because lat/lng may expire after 30 days
@@ -11249,10 +11310,13 @@ var schema3 = new MongooseSchema6(
11249
11310
  },
11250
11311
  name: { required: true, type: String },
11251
11312
  openingHours: { required: false, type: [String] },
11313
+ parkingOptions: { required: false, type: Object },
11314
+ paymentOptions: { required: false, type: Object },
11252
11315
  phone: { required: false, type: String },
11253
11316
  photos: { required: false, type: [String] },
11254
11317
  // array of photo_reference
11255
11318
  rating: { required: false, type: Number },
11319
+ restroom: { required: false, type: Boolean },
11256
11320
  reviewCount: { required: false, type: Number },
11257
11321
  slug: { required: true, type: String },
11258
11322
  website: { required: false, type: String }