@timardex/cluemart-server-shared 1.0.59 → 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.
- package/dist/{chunk-5JEBH7MU.mjs → chunk-2RXHGZ3A.mjs} +72 -2
- package/dist/chunk-2RXHGZ3A.mjs.map +1 -0
- package/dist/index.cjs +71 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +71 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +71 -1
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +71 -1
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-5JEBH7MU.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -10041,6 +10041,13 @@ 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
|
+
`;
|
|
10044
10051
|
var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
10045
10052
|
fragment AppSettingsFields on AppSettingsType {
|
|
10046
10053
|
_id
|
|
@@ -10050,6 +10057,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
|
10050
10057
|
updatedAt
|
|
10051
10058
|
}
|
|
10052
10059
|
`;
|
|
10060
|
+
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
|
|
10061
|
+
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
10062
|
+
_id
|
|
10063
|
+
name
|
|
10064
|
+
slug
|
|
10065
|
+
image
|
|
10066
|
+
address
|
|
10067
|
+
location {
|
|
10068
|
+
lat
|
|
10069
|
+
lng
|
|
10070
|
+
}
|
|
10071
|
+
googlePlaceId
|
|
10072
|
+
website
|
|
10073
|
+
phone
|
|
10074
|
+
openingHours
|
|
10075
|
+
rating
|
|
10076
|
+
reviewCount
|
|
10077
|
+
photos
|
|
10078
|
+
googleMapsUrl
|
|
10079
|
+
businessStatus
|
|
10080
|
+
addressComponents {
|
|
10081
|
+
longName
|
|
10082
|
+
shortName
|
|
10083
|
+
types
|
|
10084
|
+
}
|
|
10085
|
+
accessibilityOptions
|
|
10086
|
+
allowsDogs
|
|
10087
|
+
goodForChildren
|
|
10088
|
+
goodForGroups
|
|
10089
|
+
liveMusic
|
|
10090
|
+
parkingOptions
|
|
10091
|
+
paymentOptions
|
|
10092
|
+
restroom
|
|
10093
|
+
importedAt
|
|
10094
|
+
claimed
|
|
10095
|
+
createdAt
|
|
10096
|
+
updatedAt
|
|
10097
|
+
}
|
|
10098
|
+
`;
|
|
10053
10099
|
var GET_APP_SETTINGS = gql`
|
|
10054
10100
|
query getAppSettings {
|
|
10055
10101
|
appSettings {
|
|
@@ -10058,6 +10104,14 @@ var GET_APP_SETTINGS = gql`
|
|
|
10058
10104
|
}
|
|
10059
10105
|
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
10060
10106
|
`;
|
|
10107
|
+
var GET_GOOGLE_IMPORTED_MARKETS = gql`
|
|
10108
|
+
query getGoogleImportedMarkets {
|
|
10109
|
+
googleImportedMarkets {
|
|
10110
|
+
...GoogleImportedMarketsFields
|
|
10111
|
+
}
|
|
10112
|
+
}
|
|
10113
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10114
|
+
`;
|
|
10061
10115
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
10062
10116
|
var nzbnRegex = /^94\d{11}$/;
|
|
10063
10117
|
var normalizedUrlTransform = () => create$6().trim().transform(
|
|
@@ -11220,11 +11274,24 @@ var locationSchema2 = new MongooseSchema6(
|
|
|
11220
11274
|
{ _id: false }
|
|
11221
11275
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11222
11276
|
);
|
|
11277
|
+
var addressComponentSchema = new MongooseSchema6(
|
|
11278
|
+
{
|
|
11279
|
+
longName: { required: false, type: String },
|
|
11280
|
+
shortName: { required: false, type: String },
|
|
11281
|
+
types: { required: false, type: [String] }
|
|
11282
|
+
},
|
|
11283
|
+
{ _id: false }
|
|
11284
|
+
);
|
|
11223
11285
|
var schema3 = new MongooseSchema6(
|
|
11224
11286
|
{
|
|
11287
|
+
accessibilityOptions: { required: false, type: Object },
|
|
11225
11288
|
address: { required: true, type: String },
|
|
11289
|
+
addressComponents: { required: false, type: [addressComponentSchema] },
|
|
11290
|
+
allowsDogs: { required: false, type: Boolean },
|
|
11226
11291
|
businessStatus: { required: false, type: String },
|
|
11227
11292
|
claimed: { default: false, required: true, type: Boolean },
|
|
11293
|
+
goodForChildren: { required: false, type: Boolean },
|
|
11294
|
+
goodForGroups: { required: false, type: Boolean },
|
|
11228
11295
|
googleMapsUrl: { required: false, type: String },
|
|
11229
11296
|
googlePlaceId: {
|
|
11230
11297
|
required: true,
|
|
@@ -11235,6 +11302,7 @@ var schema3 = new MongooseSchema6(
|
|
|
11235
11302
|
image: { required: false, type: String },
|
|
11236
11303
|
// photo_reference only
|
|
11237
11304
|
importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
|
|
11305
|
+
liveMusic: { required: false, type: Boolean },
|
|
11238
11306
|
location: {
|
|
11239
11307
|
required: false,
|
|
11240
11308
|
// optional because lat/lng may expire after 30 days
|
|
@@ -11242,17 +11310,19 @@ var schema3 = new MongooseSchema6(
|
|
|
11242
11310
|
},
|
|
11243
11311
|
name: { required: true, type: String },
|
|
11244
11312
|
openingHours: { required: false, type: [String] },
|
|
11313
|
+
parkingOptions: { required: false, type: Object },
|
|
11314
|
+
paymentOptions: { required: false, type: Object },
|
|
11245
11315
|
phone: { required: false, type: String },
|
|
11246
11316
|
photos: { required: false, type: [String] },
|
|
11247
11317
|
// array of photo_reference
|
|
11248
11318
|
rating: { required: false, type: Number },
|
|
11319
|
+
restroom: { required: false, type: Boolean },
|
|
11249
11320
|
reviewCount: { required: false, type: Number },
|
|
11250
11321
|
slug: { required: true, type: String },
|
|
11251
11322
|
website: { required: false, type: String }
|
|
11252
11323
|
},
|
|
11253
11324
|
{ timestamps: true }
|
|
11254
11325
|
);
|
|
11255
|
-
schema3.index({ googlePlaceId: 1 });
|
|
11256
11326
|
schema3.index({ name: 1 });
|
|
11257
11327
|
schema3.index({ slug: 1 });
|
|
11258
11328
|
schema3.index({ address: 1 });
|