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