@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.
@@ -31,7 +31,7 @@ import {
31
31
  resourceRelationsSchema,
32
32
  termsAgreementSchema,
33
33
  userLicenseSchema
34
- } from "../chunk-EOKS26AC.mjs";
34
+ } from "../chunk-HV25W6XY.mjs";
35
35
  import "../chunk-3QS3WKRC.mjs";
36
36
  export {
37
37
  APP_SETTINGS_ID,
@@ -10031,13 +10031,6 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
10031
10031
  updateAppSettings(input: $input)
10032
10032
  }
10033
10033
  `;
10034
- var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
10035
- mutation crawlGoogleMarkets {
10036
- crawlGoogleMarkets {
10037
- message
10038
- }
10039
- }
10040
- `;
10041
10034
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10042
10035
  fragment AppSettingsFields on AppSettingsType {
10043
10036
  _id
@@ -10055,6 +10048,93 @@ var GET_APP_SETTINGS = gql`
10055
10048
  }
10056
10049
  ${APP_SETTINGS_FIELDS_FRAGMENT}
10057
10050
  `;
10051
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
10052
+ mutation crawlGoogleMarkets {
10053
+ crawlGoogleMarkets {
10054
+ message
10055
+ }
10056
+ }
10057
+ `;
10058
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
10059
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
10060
+ _id
10061
+ accessibilityOptions
10062
+ address
10063
+ addressComponents {
10064
+ longName
10065
+ shortName
10066
+ types
10067
+ }
10068
+ allowsDogs
10069
+ businessStatus
10070
+ claimed
10071
+ createdAt
10072
+ goodForChildren
10073
+ goodForGroups
10074
+ googleMapsUrl
10075
+ googlePlaceId
10076
+ image
10077
+ importedAt
10078
+ liveMusic
10079
+ location {
10080
+ lat
10081
+ lng
10082
+ }
10083
+ name
10084
+ openingHours
10085
+ parkingOptions
10086
+ paymentOptions
10087
+ phone
10088
+ photos
10089
+ rating
10090
+ region
10091
+ restroom
10092
+ reviewCount
10093
+ slug
10094
+ updatedAt
10095
+ website
10096
+ }
10097
+ `;
10098
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10099
+ query getGoogleImportedMarkets {
10100
+ googleImportedMarkets {
10101
+ ...GoogleImportedMarketsFields
10102
+ }
10103
+ }
10104
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10105
+ `;
10106
+ var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql`
10107
+ query getGoogleImportedMarketsByRegion($region: String!) {
10108
+ googleImportedMarketsByRegion(region: $region) {
10109
+ ...GoogleImportedMarketsFields
10110
+ }
10111
+ }
10112
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10113
+ `;
10114
+ var SEARCH_GOOGLE_IMPORTED_MARKETS = gql`
10115
+ query searchGoogleImportedMarkets($search: String!, $region: String) {
10116
+ googleImportedMarketsSearch(search: $search, region: $region) {
10117
+ ...GoogleImportedMarketsFields
10118
+ }
10119
+ }
10120
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10121
+ `;
10122
+ var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql`
10123
+ query getGoogleImportedMarketsNearMe(
10124
+ $latitude: Float!
10125
+ $longitude: Float!
10126
+ $radius: Int
10127
+ ) {
10128
+ googleImportedMarketsNearMe(
10129
+ lat: $latitude
10130
+ lng: $longitude
10131
+ radius: $radius
10132
+ ) {
10133
+ ...GoogleImportedMarketsFields
10134
+ }
10135
+ }
10136
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10137
+ `;
10058
10138
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10059
10139
  var nzbnRegex = /^94\d{11}$/;
10060
10140
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11411,11 +11491,24 @@ var locationSchema2 = new MongooseSchema8(
11411
11491
  { _id: false }
11412
11492
  // Prevents Mongoose from creating an additional _id field for subdocuments
11413
11493
  );
11494
+ var addressComponentSchema = new MongooseSchema8(
11495
+ {
11496
+ longName: { required: false, type: String },
11497
+ shortName: { required: false, type: String },
11498
+ types: { required: false, type: [String] }
11499
+ },
11500
+ { _id: false }
11501
+ );
11414
11502
  var schema5 = new MongooseSchema8(
11415
11503
  {
11504
+ accessibilityOptions: { required: false, type: Object },
11416
11505
  address: { required: true, type: String },
11506
+ addressComponents: { required: false, type: [addressComponentSchema] },
11507
+ allowsDogs: { required: false, type: Boolean },
11417
11508
  businessStatus: { required: false, type: String },
11418
11509
  claimed: { default: false, required: true, type: Boolean },
11510
+ goodForChildren: { required: false, type: Boolean },
11511
+ goodForGroups: { required: false, type: Boolean },
11419
11512
  googleMapsUrl: { required: false, type: String },
11420
11513
  googlePlaceId: {
11421
11514
  required: true,
@@ -11426,6 +11519,7 @@ var schema5 = new MongooseSchema8(
11426
11519
  image: { required: false, type: String },
11427
11520
  // photo_reference only
11428
11521
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11522
+ liveMusic: { required: false, type: Boolean },
11429
11523
  location: {
11430
11524
  required: false,
11431
11525
  // optional because lat/lng may expire after 30 days
@@ -11433,10 +11527,14 @@ var schema5 = new MongooseSchema8(
11433
11527
  },
11434
11528
  name: { required: true, type: String },
11435
11529
  openingHours: { required: false, type: [String] },
11530
+ parkingOptions: { required: false, type: Object },
11531
+ paymentOptions: { required: false, type: Object },
11436
11532
  phone: { required: false, type: String },
11437
11533
  photos: { required: false, type: [String] },
11438
11534
  // array of photo_reference
11439
11535
  rating: { required: false, type: Number },
11536
+ region: { required: false, type: String },
11537
+ restroom: { required: false, type: Boolean },
11440
11538
  reviewCount: { required: false, type: Number },
11441
11539
  slug: { required: true, type: String },
11442
11540
  website: { required: false, type: String }