@timardex/cluemart-server-shared 1.0.60 → 1.0.62

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,13 +9990,6 @@ 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
- `;
10000
9993
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10001
9994
  fragment AppSettingsFields on AppSettingsType {
10002
9995
  _id
@@ -10014,6 +10007,93 @@ var GET_APP_SETTINGS = gql`
10014
10007
  }
10015
10008
  ${APP_SETTINGS_FIELDS_FRAGMENT}
10016
10009
  `;
10010
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
10011
+ mutation crawlGoogleMarkets {
10012
+ crawlGoogleMarkets {
10013
+ message
10014
+ }
10015
+ }
10016
+ `;
10017
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
10018
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
10019
+ _id
10020
+ accessibilityOptions
10021
+ address
10022
+ addressComponents {
10023
+ longName
10024
+ shortName
10025
+ types
10026
+ }
10027
+ allowsDogs
10028
+ businessStatus
10029
+ claimed
10030
+ createdAt
10031
+ goodForChildren
10032
+ goodForGroups
10033
+ googleMapsUrl
10034
+ googlePlaceId
10035
+ image
10036
+ importedAt
10037
+ liveMusic
10038
+ location {
10039
+ lat
10040
+ lng
10041
+ }
10042
+ name
10043
+ openingHours
10044
+ parkingOptions
10045
+ paymentOptions
10046
+ phone
10047
+ photos
10048
+ rating
10049
+ region
10050
+ restroom
10051
+ reviewCount
10052
+ slug
10053
+ updatedAt
10054
+ website
10055
+ }
10056
+ `;
10057
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10058
+ query getGoogleImportedMarkets {
10059
+ googleImportedMarkets {
10060
+ ...GoogleImportedMarketsFields
10061
+ }
10062
+ }
10063
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10064
+ `;
10065
+ var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql`
10066
+ query getGoogleImportedMarketsByRegion($region: String!) {
10067
+ googleImportedMarketsByRegion(region: $region) {
10068
+ ...GoogleImportedMarketsFields
10069
+ }
10070
+ }
10071
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10072
+ `;
10073
+ var SEARCH_GOOGLE_IMPORTED_MARKETS = gql`
10074
+ query searchGoogleImportedMarkets($search: String!, $region: String) {
10075
+ googleImportedMarketsSearch(search: $search, region: $region) {
10076
+ ...GoogleImportedMarketsFields
10077
+ }
10078
+ }
10079
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10080
+ `;
10081
+ var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql`
10082
+ query getGoogleImportedMarketsNearMe(
10083
+ $latitude: Float!
10084
+ $longitude: Float!
10085
+ $radius: Int
10086
+ ) {
10087
+ googleImportedMarketsNearMe(
10088
+ lat: $latitude
10089
+ lng: $longitude
10090
+ radius: $radius
10091
+ ) {
10092
+ ...GoogleImportedMarketsFields
10093
+ }
10094
+ }
10095
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10096
+ `;
10017
10097
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10018
10098
  var nzbnRegex = /^94\d{11}$/;
10019
10099
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11176,11 +11256,24 @@ var locationSchema2 = new MongooseSchema6(
11176
11256
  { _id: false }
11177
11257
  // Prevents Mongoose from creating an additional _id field for subdocuments
11178
11258
  );
11259
+ var addressComponentSchema = new MongooseSchema6(
11260
+ {
11261
+ longName: { required: false, type: String },
11262
+ shortName: { required: false, type: String },
11263
+ types: { required: false, type: [String] }
11264
+ },
11265
+ { _id: false }
11266
+ );
11179
11267
  var schema3 = new MongooseSchema6(
11180
11268
  {
11269
+ accessibilityOptions: { required: false, type: Object },
11181
11270
  address: { required: true, type: String },
11271
+ addressComponents: { required: false, type: [addressComponentSchema] },
11272
+ allowsDogs: { required: false, type: Boolean },
11182
11273
  businessStatus: { required: false, type: String },
11183
11274
  claimed: { default: false, required: true, type: Boolean },
11275
+ goodForChildren: { required: false, type: Boolean },
11276
+ goodForGroups: { required: false, type: Boolean },
11184
11277
  googleMapsUrl: { required: false, type: String },
11185
11278
  googlePlaceId: {
11186
11279
  required: true,
@@ -11191,6 +11284,7 @@ var schema3 = new MongooseSchema6(
11191
11284
  image: { required: false, type: String },
11192
11285
  // photo_reference only
11193
11286
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11287
+ liveMusic: { required: false, type: Boolean },
11194
11288
  location: {
11195
11289
  required: false,
11196
11290
  // optional because lat/lng may expire after 30 days
@@ -11198,10 +11292,14 @@ var schema3 = new MongooseSchema6(
11198
11292
  },
11199
11293
  name: { required: true, type: String },
11200
11294
  openingHours: { required: false, type: [String] },
11295
+ parkingOptions: { required: false, type: Object },
11296
+ paymentOptions: { required: false, type: Object },
11201
11297
  phone: { required: false, type: String },
11202
11298
  photos: { required: false, type: [String] },
11203
11299
  // array of photo_reference
11204
11300
  rating: { required: false, type: Number },
11301
+ region: { required: false, type: String },
11302
+ restroom: { required: false, type: Boolean },
11205
11303
  reviewCount: { required: false, type: Number },
11206
11304
  slug: { required: true, type: String },
11207
11305
  website: { required: false, type: String }