@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.
@@ -9969,13 +9969,6 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
9969
9969
  updateAppSettings(input: $input)
9970
9970
  }
9971
9971
  `;
9972
- var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
9973
- mutation crawlGoogleMarkets {
9974
- crawlGoogleMarkets {
9975
- message
9976
- }
9977
- }
9978
- `;
9979
9972
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
9980
9973
  fragment AppSettingsFields on AppSettingsType {
9981
9974
  _id
@@ -9993,6 +9986,93 @@ var GET_APP_SETTINGS = gql`
9993
9986
  }
9994
9987
  ${APP_SETTINGS_FIELDS_FRAGMENT}
9995
9988
  `;
9989
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
9990
+ mutation crawlGoogleMarkets {
9991
+ crawlGoogleMarkets {
9992
+ message
9993
+ }
9994
+ }
9995
+ `;
9996
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
9997
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
9998
+ _id
9999
+ accessibilityOptions
10000
+ address
10001
+ addressComponents {
10002
+ longName
10003
+ shortName
10004
+ types
10005
+ }
10006
+ allowsDogs
10007
+ businessStatus
10008
+ claimed
10009
+ createdAt
10010
+ goodForChildren
10011
+ goodForGroups
10012
+ googleMapsUrl
10013
+ googlePlaceId
10014
+ image
10015
+ importedAt
10016
+ liveMusic
10017
+ location {
10018
+ lat
10019
+ lng
10020
+ }
10021
+ name
10022
+ openingHours
10023
+ parkingOptions
10024
+ paymentOptions
10025
+ phone
10026
+ photos
10027
+ rating
10028
+ region
10029
+ restroom
10030
+ reviewCount
10031
+ slug
10032
+ updatedAt
10033
+ website
10034
+ }
10035
+ `;
10036
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10037
+ query getGoogleImportedMarkets {
10038
+ googleImportedMarkets {
10039
+ ...GoogleImportedMarketsFields
10040
+ }
10041
+ }
10042
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10043
+ `;
10044
+ var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql`
10045
+ query getGoogleImportedMarketsByRegion($region: String!) {
10046
+ googleImportedMarketsByRegion(region: $region) {
10047
+ ...GoogleImportedMarketsFields
10048
+ }
10049
+ }
10050
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10051
+ `;
10052
+ var SEARCH_GOOGLE_IMPORTED_MARKETS = gql`
10053
+ query searchGoogleImportedMarkets($search: String!, $region: String) {
10054
+ googleImportedMarketsSearch(search: $search, region: $region) {
10055
+ ...GoogleImportedMarketsFields
10056
+ }
10057
+ }
10058
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10059
+ `;
10060
+ var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql`
10061
+ query getGoogleImportedMarketsNearMe(
10062
+ $latitude: Float!
10063
+ $longitude: Float!
10064
+ $radius: Int
10065
+ ) {
10066
+ googleImportedMarketsNearMe(
10067
+ lat: $latitude
10068
+ lng: $longitude
10069
+ radius: $radius
10070
+ ) {
10071
+ ...GoogleImportedMarketsFields
10072
+ }
10073
+ }
10074
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10075
+ `;
9996
10076
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
9997
10077
  var nzbnRegex = /^94\d{11}$/;
9998
10078
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11155,11 +11235,24 @@ var locationSchema2 = new MongooseSchema6(
11155
11235
  { _id: false }
11156
11236
  // Prevents Mongoose from creating an additional _id field for subdocuments
11157
11237
  );
11238
+ var addressComponentSchema = new MongooseSchema6(
11239
+ {
11240
+ longName: { required: false, type: String },
11241
+ shortName: { required: false, type: String },
11242
+ types: { required: false, type: [String] }
11243
+ },
11244
+ { _id: false }
11245
+ );
11158
11246
  var schema3 = new MongooseSchema6(
11159
11247
  {
11248
+ accessibilityOptions: { required: false, type: Object },
11160
11249
  address: { required: true, type: String },
11250
+ addressComponents: { required: false, type: [addressComponentSchema] },
11251
+ allowsDogs: { required: false, type: Boolean },
11161
11252
  businessStatus: { required: false, type: String },
11162
11253
  claimed: { default: false, required: true, type: Boolean },
11254
+ goodForChildren: { required: false, type: Boolean },
11255
+ goodForGroups: { required: false, type: Boolean },
11163
11256
  googleMapsUrl: { required: false, type: String },
11164
11257
  googlePlaceId: {
11165
11258
  required: true,
@@ -11170,6 +11263,7 @@ var schema3 = new MongooseSchema6(
11170
11263
  image: { required: false, type: String },
11171
11264
  // photo_reference only
11172
11265
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11266
+ liveMusic: { required: false, type: Boolean },
11173
11267
  location: {
11174
11268
  required: false,
11175
11269
  // optional because lat/lng may expire after 30 days
@@ -11177,10 +11271,14 @@ var schema3 = new MongooseSchema6(
11177
11271
  },
11178
11272
  name: { required: true, type: String },
11179
11273
  openingHours: { required: false, type: [String] },
11274
+ parkingOptions: { required: false, type: Object },
11275
+ paymentOptions: { required: false, type: Object },
11180
11276
  phone: { required: false, type: String },
11181
11277
  photos: { required: false, type: [String] },
11182
11278
  // array of photo_reference
11183
11279
  rating: { required: false, type: Number },
11280
+ region: { required: false, type: String },
11281
+ restroom: { required: false, type: Boolean },
11184
11282
  reviewCount: { required: false, type: Number },
11185
11283
  slug: { required: true, type: String },
11186
11284
  website: { required: false, type: String }
@@ -11973,4 +12071,4 @@ react/cjs/react.development.js:
11973
12071
  * LICENSE file in the root directory of this source tree.
11974
12072
  *)
11975
12073
  */
11976
- //# sourceMappingURL=chunk-EOKS26AC.mjs.map
12074
+ //# sourceMappingURL=chunk-HV25W6XY.mjs.map