@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.mjs CHANGED
@@ -10006,6 +10006,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10006
10006
  updatedAt
10007
10007
  }
10008
10008
  `;
10009
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
10010
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
10011
+ _id
10012
+ name
10013
+ slug
10014
+ image
10015
+ address
10016
+ location {
10017
+ lat
10018
+ lng
10019
+ }
10020
+ googlePlaceId
10021
+ website
10022
+ phone
10023
+ openingHours
10024
+ rating
10025
+ reviewCount
10026
+ photos
10027
+ googleMapsUrl
10028
+ businessStatus
10029
+ addressComponents {
10030
+ longName
10031
+ shortName
10032
+ types
10033
+ }
10034
+ accessibilityOptions
10035
+ allowsDogs
10036
+ goodForChildren
10037
+ goodForGroups
10038
+ liveMusic
10039
+ parkingOptions
10040
+ paymentOptions
10041
+ restroom
10042
+ importedAt
10043
+ claimed
10044
+ createdAt
10045
+ updatedAt
10046
+ }
10047
+ `;
10009
10048
  var GET_APP_SETTINGS = gql`
10010
10049
  query getAppSettings {
10011
10050
  appSettings {
@@ -10014,6 +10053,14 @@ var GET_APP_SETTINGS = gql`
10014
10053
  }
10015
10054
  ${APP_SETTINGS_FIELDS_FRAGMENT}
10016
10055
  `;
10056
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10057
+ query getGoogleImportedMarkets {
10058
+ googleImportedMarkets {
10059
+ ...GoogleImportedMarketsFields
10060
+ }
10061
+ }
10062
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10063
+ `;
10017
10064
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10018
10065
  var nzbnRegex = /^94\d{11}$/;
10019
10066
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11176,11 +11223,24 @@ var locationSchema2 = new MongooseSchema6(
11176
11223
  { _id: false }
11177
11224
  // Prevents Mongoose from creating an additional _id field for subdocuments
11178
11225
  );
11226
+ var addressComponentSchema = new MongooseSchema6(
11227
+ {
11228
+ longName: { required: false, type: String },
11229
+ shortName: { required: false, type: String },
11230
+ types: { required: false, type: [String] }
11231
+ },
11232
+ { _id: false }
11233
+ );
11179
11234
  var schema3 = new MongooseSchema6(
11180
11235
  {
11236
+ accessibilityOptions: { required: false, type: Object },
11181
11237
  address: { required: true, type: String },
11238
+ addressComponents: { required: false, type: [addressComponentSchema] },
11239
+ allowsDogs: { required: false, type: Boolean },
11182
11240
  businessStatus: { required: false, type: String },
11183
11241
  claimed: { default: false, required: true, type: Boolean },
11242
+ goodForChildren: { required: false, type: Boolean },
11243
+ goodForGroups: { required: false, type: Boolean },
11184
11244
  googleMapsUrl: { required: false, type: String },
11185
11245
  googlePlaceId: {
11186
11246
  required: true,
@@ -11191,6 +11251,7 @@ var schema3 = new MongooseSchema6(
11191
11251
  image: { required: false, type: String },
11192
11252
  // photo_reference only
11193
11253
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11254
+ liveMusic: { required: false, type: Boolean },
11194
11255
  location: {
11195
11256
  required: false,
11196
11257
  // optional because lat/lng may expire after 30 days
@@ -11198,10 +11259,13 @@ var schema3 = new MongooseSchema6(
11198
11259
  },
11199
11260
  name: { required: true, type: String },
11200
11261
  openingHours: { required: false, type: [String] },
11262
+ parkingOptions: { required: false, type: Object },
11263
+ paymentOptions: { required: false, type: Object },
11201
11264
  phone: { required: false, type: String },
11202
11265
  photos: { required: false, type: [String] },
11203
11266
  // array of photo_reference
11204
11267
  rating: { required: false, type: Number },
11268
+ restroom: { required: false, type: Boolean },
11205
11269
  reviewCount: { required: false, type: Number },
11206
11270
  slug: { required: true, type: String },
11207
11271
  website: { required: false, type: String }