@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/mongoose/index.cjs
CHANGED
|
@@ -10034,6 +10034,13 @@ 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
|
+
`;
|
|
10037
10044
|
var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
10038
10045
|
fragment AppSettingsFields on AppSettingsType {
|
|
10039
10046
|
_id
|
|
@@ -10043,6 +10050,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
|
10043
10050
|
updatedAt
|
|
10044
10051
|
}
|
|
10045
10052
|
`;
|
|
10053
|
+
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
|
|
10054
|
+
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
10055
|
+
_id
|
|
10056
|
+
name
|
|
10057
|
+
slug
|
|
10058
|
+
image
|
|
10059
|
+
address
|
|
10060
|
+
location {
|
|
10061
|
+
lat
|
|
10062
|
+
lng
|
|
10063
|
+
}
|
|
10064
|
+
googlePlaceId
|
|
10065
|
+
website
|
|
10066
|
+
phone
|
|
10067
|
+
openingHours
|
|
10068
|
+
rating
|
|
10069
|
+
reviewCount
|
|
10070
|
+
photos
|
|
10071
|
+
googleMapsUrl
|
|
10072
|
+
businessStatus
|
|
10073
|
+
addressComponents {
|
|
10074
|
+
longName
|
|
10075
|
+
shortName
|
|
10076
|
+
types
|
|
10077
|
+
}
|
|
10078
|
+
accessibilityOptions
|
|
10079
|
+
allowsDogs
|
|
10080
|
+
goodForChildren
|
|
10081
|
+
goodForGroups
|
|
10082
|
+
liveMusic
|
|
10083
|
+
parkingOptions
|
|
10084
|
+
paymentOptions
|
|
10085
|
+
restroom
|
|
10086
|
+
importedAt
|
|
10087
|
+
claimed
|
|
10088
|
+
createdAt
|
|
10089
|
+
updatedAt
|
|
10090
|
+
}
|
|
10091
|
+
`;
|
|
10046
10092
|
var GET_APP_SETTINGS = gql`
|
|
10047
10093
|
query getAppSettings {
|
|
10048
10094
|
appSettings {
|
|
@@ -10051,6 +10097,14 @@ var GET_APP_SETTINGS = gql`
|
|
|
10051
10097
|
}
|
|
10052
10098
|
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
10053
10099
|
`;
|
|
10100
|
+
var GET_GOOGLE_IMPORTED_MARKETS = gql`
|
|
10101
|
+
query getGoogleImportedMarkets {
|
|
10102
|
+
googleImportedMarkets {
|
|
10103
|
+
...GoogleImportedMarketsFields
|
|
10104
|
+
}
|
|
10105
|
+
}
|
|
10106
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10107
|
+
`;
|
|
10054
10108
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
10055
10109
|
var nzbnRegex = /^94\d{11}$/;
|
|
10056
10110
|
var normalizedUrlTransform = () => create$6().trim().transform(
|
|
@@ -11213,11 +11267,24 @@ var locationSchema2 = new MongooseSchema6(
|
|
|
11213
11267
|
{ _id: false }
|
|
11214
11268
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11215
11269
|
);
|
|
11270
|
+
var addressComponentSchema = new MongooseSchema6(
|
|
11271
|
+
{
|
|
11272
|
+
longName: { required: false, type: String },
|
|
11273
|
+
shortName: { required: false, type: String },
|
|
11274
|
+
types: { required: false, type: [String] }
|
|
11275
|
+
},
|
|
11276
|
+
{ _id: false }
|
|
11277
|
+
);
|
|
11216
11278
|
var schema3 = new MongooseSchema6(
|
|
11217
11279
|
{
|
|
11280
|
+
accessibilityOptions: { required: false, type: Object },
|
|
11218
11281
|
address: { required: true, type: String },
|
|
11282
|
+
addressComponents: { required: false, type: [addressComponentSchema] },
|
|
11283
|
+
allowsDogs: { required: false, type: Boolean },
|
|
11219
11284
|
businessStatus: { required: false, type: String },
|
|
11220
11285
|
claimed: { default: false, required: true, type: Boolean },
|
|
11286
|
+
goodForChildren: { required: false, type: Boolean },
|
|
11287
|
+
goodForGroups: { required: false, type: Boolean },
|
|
11221
11288
|
googleMapsUrl: { required: false, type: String },
|
|
11222
11289
|
googlePlaceId: {
|
|
11223
11290
|
required: true,
|
|
@@ -11228,6 +11295,7 @@ var schema3 = new MongooseSchema6(
|
|
|
11228
11295
|
image: { required: false, type: String },
|
|
11229
11296
|
// photo_reference only
|
|
11230
11297
|
importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
|
|
11298
|
+
liveMusic: { required: false, type: Boolean },
|
|
11231
11299
|
location: {
|
|
11232
11300
|
required: false,
|
|
11233
11301
|
// optional because lat/lng may expire after 30 days
|
|
@@ -11235,17 +11303,19 @@ var schema3 = new MongooseSchema6(
|
|
|
11235
11303
|
},
|
|
11236
11304
|
name: { required: true, type: String },
|
|
11237
11305
|
openingHours: { required: false, type: [String] },
|
|
11306
|
+
parkingOptions: { required: false, type: Object },
|
|
11307
|
+
paymentOptions: { required: false, type: Object },
|
|
11238
11308
|
phone: { required: false, type: String },
|
|
11239
11309
|
photos: { required: false, type: [String] },
|
|
11240
11310
|
// array of photo_reference
|
|
11241
11311
|
rating: { required: false, type: Number },
|
|
11312
|
+
restroom: { required: false, type: Boolean },
|
|
11242
11313
|
reviewCount: { required: false, type: Number },
|
|
11243
11314
|
slug: { required: true, type: String },
|
|
11244
11315
|
website: { required: false, type: String }
|
|
11245
11316
|
},
|
|
11246
11317
|
{ timestamps: true }
|
|
11247
11318
|
);
|
|
11248
|
-
schema3.index({ googlePlaceId: 1 });
|
|
11249
11319
|
schema3.index({ name: 1 });
|
|
11250
11320
|
schema3.index({ slug: 1 });
|
|
11251
11321
|
schema3.index({ address: 1 });
|