@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
|
@@ -9969,6 +9969,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
|
|
|
9969
9969
|
updateAppSettings(input: $input)
|
|
9970
9970
|
}
|
|
9971
9971
|
`;
|
|
9972
|
+
var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
|
|
9973
|
+
mutation crawlGoogleMarkets {
|
|
9974
|
+
crawlGoogleMarkets {
|
|
9975
|
+
message
|
|
9976
|
+
}
|
|
9977
|
+
}
|
|
9978
|
+
`;
|
|
9972
9979
|
var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
9973
9980
|
fragment AppSettingsFields on AppSettingsType {
|
|
9974
9981
|
_id
|
|
@@ -9978,6 +9985,45 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
|
9978
9985
|
updatedAt
|
|
9979
9986
|
}
|
|
9980
9987
|
`;
|
|
9988
|
+
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
|
|
9989
|
+
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
9990
|
+
_id
|
|
9991
|
+
name
|
|
9992
|
+
slug
|
|
9993
|
+
image
|
|
9994
|
+
address
|
|
9995
|
+
location {
|
|
9996
|
+
lat
|
|
9997
|
+
lng
|
|
9998
|
+
}
|
|
9999
|
+
googlePlaceId
|
|
10000
|
+
website
|
|
10001
|
+
phone
|
|
10002
|
+
openingHours
|
|
10003
|
+
rating
|
|
10004
|
+
reviewCount
|
|
10005
|
+
photos
|
|
10006
|
+
googleMapsUrl
|
|
10007
|
+
businessStatus
|
|
10008
|
+
addressComponents {
|
|
10009
|
+
longName
|
|
10010
|
+
shortName
|
|
10011
|
+
types
|
|
10012
|
+
}
|
|
10013
|
+
accessibilityOptions
|
|
10014
|
+
allowsDogs
|
|
10015
|
+
goodForChildren
|
|
10016
|
+
goodForGroups
|
|
10017
|
+
liveMusic
|
|
10018
|
+
parkingOptions
|
|
10019
|
+
paymentOptions
|
|
10020
|
+
restroom
|
|
10021
|
+
importedAt
|
|
10022
|
+
claimed
|
|
10023
|
+
createdAt
|
|
10024
|
+
updatedAt
|
|
10025
|
+
}
|
|
10026
|
+
`;
|
|
9981
10027
|
var GET_APP_SETTINGS = gql`
|
|
9982
10028
|
query getAppSettings {
|
|
9983
10029
|
appSettings {
|
|
@@ -9986,6 +10032,14 @@ var GET_APP_SETTINGS = gql`
|
|
|
9986
10032
|
}
|
|
9987
10033
|
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
9988
10034
|
`;
|
|
10035
|
+
var GET_GOOGLE_IMPORTED_MARKETS = gql`
|
|
10036
|
+
query getGoogleImportedMarkets {
|
|
10037
|
+
googleImportedMarkets {
|
|
10038
|
+
...GoogleImportedMarketsFields
|
|
10039
|
+
}
|
|
10040
|
+
}
|
|
10041
|
+
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10042
|
+
`;
|
|
9989
10043
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
9990
10044
|
var nzbnRegex = /^94\d{11}$/;
|
|
9991
10045
|
var normalizedUrlTransform = () => create$6().trim().transform(
|
|
@@ -11148,11 +11202,24 @@ var locationSchema2 = new MongooseSchema6(
|
|
|
11148
11202
|
{ _id: false }
|
|
11149
11203
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11150
11204
|
);
|
|
11205
|
+
var addressComponentSchema = new MongooseSchema6(
|
|
11206
|
+
{
|
|
11207
|
+
longName: { required: false, type: String },
|
|
11208
|
+
shortName: { required: false, type: String },
|
|
11209
|
+
types: { required: false, type: [String] }
|
|
11210
|
+
},
|
|
11211
|
+
{ _id: false }
|
|
11212
|
+
);
|
|
11151
11213
|
var schema3 = new MongooseSchema6(
|
|
11152
11214
|
{
|
|
11215
|
+
accessibilityOptions: { required: false, type: Object },
|
|
11153
11216
|
address: { required: true, type: String },
|
|
11217
|
+
addressComponents: { required: false, type: [addressComponentSchema] },
|
|
11218
|
+
allowsDogs: { required: false, type: Boolean },
|
|
11154
11219
|
businessStatus: { required: false, type: String },
|
|
11155
11220
|
claimed: { default: false, required: true, type: Boolean },
|
|
11221
|
+
goodForChildren: { required: false, type: Boolean },
|
|
11222
|
+
goodForGroups: { required: false, type: Boolean },
|
|
11156
11223
|
googleMapsUrl: { required: false, type: String },
|
|
11157
11224
|
googlePlaceId: {
|
|
11158
11225
|
required: true,
|
|
@@ -11163,6 +11230,7 @@ var schema3 = new MongooseSchema6(
|
|
|
11163
11230
|
image: { required: false, type: String },
|
|
11164
11231
|
// photo_reference only
|
|
11165
11232
|
importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
|
|
11233
|
+
liveMusic: { required: false, type: Boolean },
|
|
11166
11234
|
location: {
|
|
11167
11235
|
required: false,
|
|
11168
11236
|
// optional because lat/lng may expire after 30 days
|
|
@@ -11170,17 +11238,19 @@ var schema3 = new MongooseSchema6(
|
|
|
11170
11238
|
},
|
|
11171
11239
|
name: { required: true, type: String },
|
|
11172
11240
|
openingHours: { required: false, type: [String] },
|
|
11241
|
+
parkingOptions: { required: false, type: Object },
|
|
11242
|
+
paymentOptions: { required: false, type: Object },
|
|
11173
11243
|
phone: { required: false, type: String },
|
|
11174
11244
|
photos: { required: false, type: [String] },
|
|
11175
11245
|
// array of photo_reference
|
|
11176
11246
|
rating: { required: false, type: Number },
|
|
11247
|
+
restroom: { required: false, type: Boolean },
|
|
11177
11248
|
reviewCount: { required: false, type: Number },
|
|
11178
11249
|
slug: { required: true, type: String },
|
|
11179
11250
|
website: { required: false, type: String }
|
|
11180
11251
|
},
|
|
11181
11252
|
{ timestamps: true }
|
|
11182
11253
|
);
|
|
11183
|
-
schema3.index({ googlePlaceId: 1 });
|
|
11184
11254
|
schema3.index({ name: 1 });
|
|
11185
11255
|
schema3.index({ slug: 1 });
|
|
11186
11256
|
schema3.index({ address: 1 });
|
|
@@ -11967,4 +12037,4 @@ react/cjs/react.development.js:
|
|
|
11967
12037
|
* LICENSE file in the root directory of this source tree.
|
|
11968
12038
|
*)
|
|
11969
12039
|
*/
|
|
11970
|
-
//# sourceMappingURL=chunk-
|
|
12040
|
+
//# sourceMappingURL=chunk-2RXHGZ3A.mjs.map
|