@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.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -10031,6 +10031,13 @@ 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
|
+
`;
|
|
10034
10041
|
var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
10035
10042
|
fragment AppSettingsFields on AppSettingsType {
|
|
10036
10043
|
_id
|
|
@@ -10040,6 +10047,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
|
10040
10047
|
updatedAt
|
|
10041
10048
|
}
|
|
10042
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
|
+
`;
|
|
10043
10089
|
var GET_APP_SETTINGS = gql`
|
|
10044
10090
|
query getAppSettings {
|
|
10045
10091
|
appSettings {
|
|
@@ -10048,6 +10094,14 @@ var GET_APP_SETTINGS = gql`
|
|
|
10048
10094
|
}
|
|
10049
10095
|
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
10050
10096
|
`;
|
|
10097
|
+
var GET_GOOGLE_IMPORTED_MARKETS = gql`
|
|
10098
|
+
query getGoogleImportedMarkets {
|
|
10099
|
+
googleImportedMarkets {
|
|
10100
|
+
...GoogleImportedMarketsFields
|
|
10101
|
+
}
|
|
10102
|
+
}
|
|
10103
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10104
|
+
`;
|
|
10051
10105
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
10052
10106
|
var nzbnRegex = /^94\d{11}$/;
|
|
10053
10107
|
var normalizedUrlTransform = () => create$6().trim().transform(
|
|
@@ -11404,11 +11458,24 @@ var locationSchema2 = new MongooseSchema8(
|
|
|
11404
11458
|
{ _id: false }
|
|
11405
11459
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11406
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
|
+
);
|
|
11407
11469
|
var schema5 = new MongooseSchema8(
|
|
11408
11470
|
{
|
|
11471
|
+
accessibilityOptions: { required: false, type: Object },
|
|
11409
11472
|
address: { required: true, type: String },
|
|
11473
|
+
addressComponents: { required: false, type: [addressComponentSchema] },
|
|
11474
|
+
allowsDogs: { required: false, type: Boolean },
|
|
11410
11475
|
businessStatus: { required: false, type: String },
|
|
11411
11476
|
claimed: { default: false, required: true, type: Boolean },
|
|
11477
|
+
goodForChildren: { required: false, type: Boolean },
|
|
11478
|
+
goodForGroups: { required: false, type: Boolean },
|
|
11412
11479
|
googleMapsUrl: { required: false, type: String },
|
|
11413
11480
|
googlePlaceId: {
|
|
11414
11481
|
required: true,
|
|
@@ -11419,6 +11486,7 @@ var schema5 = new MongooseSchema8(
|
|
|
11419
11486
|
image: { required: false, type: String },
|
|
11420
11487
|
// photo_reference only
|
|
11421
11488
|
importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
|
|
11489
|
+
liveMusic: { required: false, type: Boolean },
|
|
11422
11490
|
location: {
|
|
11423
11491
|
required: false,
|
|
11424
11492
|
// optional because lat/lng may expire after 30 days
|
|
@@ -11426,17 +11494,19 @@ var schema5 = new MongooseSchema8(
|
|
|
11426
11494
|
},
|
|
11427
11495
|
name: { required: true, type: String },
|
|
11428
11496
|
openingHours: { required: false, type: [String] },
|
|
11497
|
+
parkingOptions: { required: false, type: Object },
|
|
11498
|
+
paymentOptions: { required: false, type: Object },
|
|
11429
11499
|
phone: { required: false, type: String },
|
|
11430
11500
|
photos: { required: false, type: [String] },
|
|
11431
11501
|
// array of photo_reference
|
|
11432
11502
|
rating: { required: false, type: Number },
|
|
11503
|
+
restroom: { required: false, type: Boolean },
|
|
11433
11504
|
reviewCount: { required: false, type: Number },
|
|
11434
11505
|
slug: { required: true, type: String },
|
|
11435
11506
|
website: { required: false, type: String }
|
|
11436
11507
|
},
|
|
11437
11508
|
{ timestamps: true }
|
|
11438
11509
|
);
|
|
11439
|
-
schema5.index({ googlePlaceId: 1 });
|
|
11440
11510
|
schema5.index({ name: 1 });
|
|
11441
11511
|
schema5.index({ slug: 1 });
|
|
11442
11512
|
schema5.index({ address: 1 });
|