@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.
@@ -10034,13 +10034,6 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
10034
10034
  updateAppSettings(input: $input)
10035
10035
  }
10036
10036
  `;
10037
- var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
10038
- mutation crawlGoogleMarkets {
10039
- crawlGoogleMarkets {
10040
- message
10041
- }
10042
- }
10043
- `;
10044
10037
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10045
10038
  fragment AppSettingsFields on AppSettingsType {
10046
10039
  _id
@@ -10058,6 +10051,93 @@ var GET_APP_SETTINGS = gql`
10058
10051
  }
10059
10052
  ${APP_SETTINGS_FIELDS_FRAGMENT}
10060
10053
  `;
10054
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
10055
+ mutation crawlGoogleMarkets {
10056
+ crawlGoogleMarkets {
10057
+ message
10058
+ }
10059
+ }
10060
+ `;
10061
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
10062
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
10063
+ _id
10064
+ accessibilityOptions
10065
+ address
10066
+ addressComponents {
10067
+ longName
10068
+ shortName
10069
+ types
10070
+ }
10071
+ allowsDogs
10072
+ businessStatus
10073
+ claimed
10074
+ createdAt
10075
+ goodForChildren
10076
+ goodForGroups
10077
+ googleMapsUrl
10078
+ googlePlaceId
10079
+ image
10080
+ importedAt
10081
+ liveMusic
10082
+ location {
10083
+ lat
10084
+ lng
10085
+ }
10086
+ name
10087
+ openingHours
10088
+ parkingOptions
10089
+ paymentOptions
10090
+ phone
10091
+ photos
10092
+ rating
10093
+ region
10094
+ restroom
10095
+ reviewCount
10096
+ slug
10097
+ updatedAt
10098
+ website
10099
+ }
10100
+ `;
10101
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10102
+ query getGoogleImportedMarkets {
10103
+ googleImportedMarkets {
10104
+ ...GoogleImportedMarketsFields
10105
+ }
10106
+ }
10107
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10108
+ `;
10109
+ var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql`
10110
+ query getGoogleImportedMarketsByRegion($region: String!) {
10111
+ googleImportedMarketsByRegion(region: $region) {
10112
+ ...GoogleImportedMarketsFields
10113
+ }
10114
+ }
10115
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10116
+ `;
10117
+ var SEARCH_GOOGLE_IMPORTED_MARKETS = gql`
10118
+ query searchGoogleImportedMarkets($search: String!, $region: String) {
10119
+ googleImportedMarketsSearch(search: $search, region: $region) {
10120
+ ...GoogleImportedMarketsFields
10121
+ }
10122
+ }
10123
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10124
+ `;
10125
+ var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql`
10126
+ query getGoogleImportedMarketsNearMe(
10127
+ $latitude: Float!
10128
+ $longitude: Float!
10129
+ $radius: Int
10130
+ ) {
10131
+ googleImportedMarketsNearMe(
10132
+ lat: $latitude
10133
+ lng: $longitude
10134
+ radius: $radius
10135
+ ) {
10136
+ ...GoogleImportedMarketsFields
10137
+ }
10138
+ }
10139
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10140
+ `;
10061
10141
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10062
10142
  var nzbnRegex = /^94\d{11}$/;
10063
10143
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11220,11 +11300,24 @@ var locationSchema2 = new MongooseSchema6(
11220
11300
  { _id: false }
11221
11301
  // Prevents Mongoose from creating an additional _id field for subdocuments
11222
11302
  );
11303
+ var addressComponentSchema = new MongooseSchema6(
11304
+ {
11305
+ longName: { required: false, type: String },
11306
+ shortName: { required: false, type: String },
11307
+ types: { required: false, type: [String] }
11308
+ },
11309
+ { _id: false }
11310
+ );
11223
11311
  var schema3 = new MongooseSchema6(
11224
11312
  {
11313
+ accessibilityOptions: { required: false, type: Object },
11225
11314
  address: { required: true, type: String },
11315
+ addressComponents: { required: false, type: [addressComponentSchema] },
11316
+ allowsDogs: { required: false, type: Boolean },
11226
11317
  businessStatus: { required: false, type: String },
11227
11318
  claimed: { default: false, required: true, type: Boolean },
11319
+ goodForChildren: { required: false, type: Boolean },
11320
+ goodForGroups: { required: false, type: Boolean },
11228
11321
  googleMapsUrl: { required: false, type: String },
11229
11322
  googlePlaceId: {
11230
11323
  required: true,
@@ -11235,6 +11328,7 @@ var schema3 = new MongooseSchema6(
11235
11328
  image: { required: false, type: String },
11236
11329
  // photo_reference only
11237
11330
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11331
+ liveMusic: { required: false, type: Boolean },
11238
11332
  location: {
11239
11333
  required: false,
11240
11334
  // optional because lat/lng may expire after 30 days
@@ -11242,10 +11336,14 @@ var schema3 = new MongooseSchema6(
11242
11336
  },
11243
11337
  name: { required: true, type: String },
11244
11338
  openingHours: { required: false, type: [String] },
11339
+ parkingOptions: { required: false, type: Object },
11340
+ paymentOptions: { required: false, type: Object },
11245
11341
  phone: { required: false, type: String },
11246
11342
  photos: { required: false, type: [String] },
11247
11343
  // array of photo_reference
11248
11344
  rating: { required: false, type: Number },
11345
+ region: { required: false, type: String },
11346
+ restroom: { required: false, type: Boolean },
11249
11347
  reviewCount: { required: false, type: Number },
11250
11348
  slug: { required: true, type: String },
11251
11349
  website: { required: false, type: String }