@timardex/cluemart-server-shared 1.0.59 → 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
@@ -9990,6 +9990,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
9990
9990
  updateAppSettings(input: $input)
9991
9991
  }
9992
9992
  `;
9993
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
9994
+ mutation crawlGoogleMarkets {
9995
+ crawlGoogleMarkets {
9996
+ message
9997
+ }
9998
+ }
9999
+ `;
9993
10000
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
9994
10001
  fragment AppSettingsFields on AppSettingsType {
9995
10002
  _id
@@ -9999,6 +10006,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
9999
10006
  updatedAt
10000
10007
  }
10001
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
+ `;
10002
10048
  var GET_APP_SETTINGS = gql`
10003
10049
  query getAppSettings {
10004
10050
  appSettings {
@@ -10007,6 +10053,14 @@ var GET_APP_SETTINGS = gql`
10007
10053
  }
10008
10054
  ${APP_SETTINGS_FIELDS_FRAGMENT}
10009
10055
  `;
10056
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10057
+ query getGoogleImportedMarkets {
10058
+ googleImportedMarkets {
10059
+ ...GoogleImportedMarketsFields
10060
+ }
10061
+ }
10062
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10063
+ `;
10010
10064
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10011
10065
  var nzbnRegex = /^94\d{11}$/;
10012
10066
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11169,11 +11223,24 @@ var locationSchema2 = new MongooseSchema6(
11169
11223
  { _id: false }
11170
11224
  // Prevents Mongoose from creating an additional _id field for subdocuments
11171
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
+ );
11172
11234
  var schema3 = new MongooseSchema6(
11173
11235
  {
11236
+ accessibilityOptions: { required: false, type: Object },
11174
11237
  address: { required: true, type: String },
11238
+ addressComponents: { required: false, type: [addressComponentSchema] },
11239
+ allowsDogs: { required: false, type: Boolean },
11175
11240
  businessStatus: { required: false, type: String },
11176
11241
  claimed: { default: false, required: true, type: Boolean },
11242
+ goodForChildren: { required: false, type: Boolean },
11243
+ goodForGroups: { required: false, type: Boolean },
11177
11244
  googleMapsUrl: { required: false, type: String },
11178
11245
  googlePlaceId: {
11179
11246
  required: true,
@@ -11184,6 +11251,7 @@ var schema3 = new MongooseSchema6(
11184
11251
  image: { required: false, type: String },
11185
11252
  // photo_reference only
11186
11253
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11254
+ liveMusic: { required: false, type: Boolean },
11187
11255
  location: {
11188
11256
  required: false,
11189
11257
  // optional because lat/lng may expire after 30 days
@@ -11191,17 +11259,19 @@ var schema3 = new MongooseSchema6(
11191
11259
  },
11192
11260
  name: { required: true, type: String },
11193
11261
  openingHours: { required: false, type: [String] },
11262
+ parkingOptions: { required: false, type: Object },
11263
+ paymentOptions: { required: false, type: Object },
11194
11264
  phone: { required: false, type: String },
11195
11265
  photos: { required: false, type: [String] },
11196
11266
  // array of photo_reference
11197
11267
  rating: { required: false, type: Number },
11268
+ restroom: { required: false, type: Boolean },
11198
11269
  reviewCount: { required: false, type: Number },
11199
11270
  slug: { required: true, type: String },
11200
11271
  website: { required: false, type: String }
11201
11272
  },
11202
11273
  { timestamps: true }
11203
11274
  );
11204
- schema3.index({ googlePlaceId: 1 });
11205
11275
  schema3.index({ name: 1 });
11206
11276
  schema3.index({ slug: 1 });
11207
11277
  schema3.index({ address: 1 });