@timardex/cluemart-server-shared 1.0.60 → 1.0.61

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-2RXHGZ3A.mjs";
35
35
  import "../chunk-3QS3WKRC.mjs";
36
36
  export {
37
37
  APP_SETTINGS_ID,
@@ -10047,6 +10047,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10047
10047
  updatedAt
10048
10048
  }
10049
10049
  `;
10050
+ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
10051
+ fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
10052
+ _id
10053
+ name
10054
+ slug
10055
+ image
10056
+ address
10057
+ location {
10058
+ lat
10059
+ lng
10060
+ }
10061
+ googlePlaceId
10062
+ website
10063
+ phone
10064
+ openingHours
10065
+ rating
10066
+ reviewCount
10067
+ photos
10068
+ googleMapsUrl
10069
+ businessStatus
10070
+ addressComponents {
10071
+ longName
10072
+ shortName
10073
+ types
10074
+ }
10075
+ accessibilityOptions
10076
+ allowsDogs
10077
+ goodForChildren
10078
+ goodForGroups
10079
+ liveMusic
10080
+ parkingOptions
10081
+ paymentOptions
10082
+ restroom
10083
+ importedAt
10084
+ claimed
10085
+ createdAt
10086
+ updatedAt
10087
+ }
10088
+ `;
10050
10089
  var GET_APP_SETTINGS = gql`
10051
10090
  query getAppSettings {
10052
10091
  appSettings {
@@ -10055,6 +10094,14 @@ var GET_APP_SETTINGS = gql`
10055
10094
  }
10056
10095
  ${APP_SETTINGS_FIELDS_FRAGMENT}
10057
10096
  `;
10097
+ var GET_GOOGLE_IMPORTED_MARKETS = gql`
10098
+ query getGoogleImportedMarkets {
10099
+ googleImportedMarkets {
10100
+ ...GoogleImportedMarketsFields
10101
+ }
10102
+ }
10103
+ ${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
10104
+ `;
10058
10105
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10059
10106
  var nzbnRegex = /^94\d{11}$/;
10060
10107
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -11411,11 +11458,24 @@ var locationSchema2 = new MongooseSchema8(
11411
11458
  { _id: false }
11412
11459
  // Prevents Mongoose from creating an additional _id field for subdocuments
11413
11460
  );
11461
+ var addressComponentSchema = new MongooseSchema8(
11462
+ {
11463
+ longName: { required: false, type: String },
11464
+ shortName: { required: false, type: String },
11465
+ types: { required: false, type: [String] }
11466
+ },
11467
+ { _id: false }
11468
+ );
11414
11469
  var schema5 = new MongooseSchema8(
11415
11470
  {
11471
+ accessibilityOptions: { required: false, type: Object },
11416
11472
  address: { required: true, type: String },
11473
+ addressComponents: { required: false, type: [addressComponentSchema] },
11474
+ allowsDogs: { required: false, type: Boolean },
11417
11475
  businessStatus: { required: false, type: String },
11418
11476
  claimed: { default: false, required: true, type: Boolean },
11477
+ goodForChildren: { required: false, type: Boolean },
11478
+ goodForGroups: { required: false, type: Boolean },
11419
11479
  googleMapsUrl: { required: false, type: String },
11420
11480
  googlePlaceId: {
11421
11481
  required: true,
@@ -11426,6 +11486,7 @@ var schema5 = new MongooseSchema8(
11426
11486
  image: { required: false, type: String },
11427
11487
  // photo_reference only
11428
11488
  importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11489
+ liveMusic: { required: false, type: Boolean },
11429
11490
  location: {
11430
11491
  required: false,
11431
11492
  // optional because lat/lng may expire after 30 days
@@ -11433,10 +11494,13 @@ var schema5 = new MongooseSchema8(
11433
11494
  },
11434
11495
  name: { required: true, type: String },
11435
11496
  openingHours: { required: false, type: [String] },
11497
+ parkingOptions: { required: false, type: Object },
11498
+ paymentOptions: { required: false, type: Object },
11436
11499
  phone: { required: false, type: String },
11437
11500
  photos: { required: false, type: [String] },
11438
11501
  // array of photo_reference
11439
11502
  rating: { required: false, type: Number },
11503
+ restroom: { required: false, type: Boolean },
11440
11504
  reviewCount: { required: false, type: Number },
11441
11505
  slug: { required: true, type: String },
11442
11506
  website: { required: false, type: String }