@timardex/cluemart-server-shared 1.0.62 → 1.0.64
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-HV25W6XY.mjs → chunk-DS5E2QOI.mjs} +93 -171
- package/dist/chunk-DS5E2QOI.mjs.map +1 -0
- package/dist/index.cjs +91 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.mjs +91 -169
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +91 -169
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +10 -10
- package/dist/mongoose/index.d.ts +10 -10
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +91 -169
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-HV25W6XY.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType,
|
|
2
|
+
import { AdType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-BNtvwldQ.mjs';
|
|
5
5
|
export { C as ChatModel, N as NotificationModel, P as ParticipantSchema, S as SchemaChatMessageType, b as SchemaChatType, c as SchemaCreateBulkNotificationInput, d as SchemaNotificationType, a as SchemaParticipantType } from '../Chat-BNtvwldQ.mjs';
|
|
@@ -111,6 +111,15 @@ declare const dateTimeSchema: mongoose.Schema<DateTimeType, mongoose.Model<DateT
|
|
|
111
111
|
} & {
|
|
112
112
|
__v: number;
|
|
113
113
|
}>;
|
|
114
|
+
declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<LocationType, any, any, any, mongoose.Document<unknown, any, LocationType, any, {}> & LocationType & {
|
|
115
|
+
_id: mongoose.Types.ObjectId;
|
|
116
|
+
} & {
|
|
117
|
+
__v: number;
|
|
118
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, LocationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<LocationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<LocationType> & {
|
|
119
|
+
_id: mongoose.Types.ObjectId;
|
|
120
|
+
} & {
|
|
121
|
+
__v: number;
|
|
122
|
+
}>;
|
|
114
123
|
declare const baseResourceFields: {
|
|
115
124
|
active: {
|
|
116
125
|
default: boolean;
|
|
@@ -407,15 +416,6 @@ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {},
|
|
|
407
416
|
__v: number;
|
|
408
417
|
}, any>;
|
|
409
418
|
|
|
410
|
-
declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<LocationType, any, any, any, mongoose.Document<unknown, any, LocationType, any, {}> & LocationType & {
|
|
411
|
-
_id: mongoose.Types.ObjectId;
|
|
412
|
-
} & {
|
|
413
|
-
__v: number;
|
|
414
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, LocationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<LocationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<LocationType> & {
|
|
415
|
-
_id: mongoose.Types.ObjectId;
|
|
416
|
-
} & {
|
|
417
|
-
__v: number;
|
|
418
|
-
}>;
|
|
419
419
|
type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
420
420
|
adIds?: ObjectId[];
|
|
421
421
|
eventInfoId: ObjectId;
|
package/dist/mongoose/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType,
|
|
2
|
+
import { AdType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-BNtvwldQ.js';
|
|
5
5
|
export { C as ChatModel, N as NotificationModel, P as ParticipantSchema, S as SchemaChatMessageType, b as SchemaChatType, c as SchemaCreateBulkNotificationInput, d as SchemaNotificationType, a as SchemaParticipantType } from '../Chat-BNtvwldQ.js';
|
|
@@ -111,6 +111,15 @@ declare const dateTimeSchema: mongoose.Schema<DateTimeType, mongoose.Model<DateT
|
|
|
111
111
|
} & {
|
|
112
112
|
__v: number;
|
|
113
113
|
}>;
|
|
114
|
+
declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<LocationType, any, any, any, mongoose.Document<unknown, any, LocationType, any, {}> & LocationType & {
|
|
115
|
+
_id: mongoose.Types.ObjectId;
|
|
116
|
+
} & {
|
|
117
|
+
__v: number;
|
|
118
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, LocationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<LocationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<LocationType> & {
|
|
119
|
+
_id: mongoose.Types.ObjectId;
|
|
120
|
+
} & {
|
|
121
|
+
__v: number;
|
|
122
|
+
}>;
|
|
114
123
|
declare const baseResourceFields: {
|
|
115
124
|
active: {
|
|
116
125
|
default: boolean;
|
|
@@ -407,15 +416,6 @@ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {},
|
|
|
407
416
|
__v: number;
|
|
408
417
|
}, any>;
|
|
409
418
|
|
|
410
|
-
declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<LocationType, any, any, any, mongoose.Document<unknown, any, LocationType, any, {}> & LocationType & {
|
|
411
|
-
_id: mongoose.Types.ObjectId;
|
|
412
|
-
} & {
|
|
413
|
-
__v: number;
|
|
414
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, LocationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<LocationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<LocationType> & {
|
|
415
|
-
_id: mongoose.Types.ObjectId;
|
|
416
|
-
} & {
|
|
417
|
-
__v: number;
|
|
418
|
-
}>;
|
|
419
419
|
type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
420
420
|
adIds?: ObjectId[];
|
|
421
421
|
eventInfoId: ObjectId;
|
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -8488,6 +8488,42 @@ var LOCATION_FIELDS_FRAGMENT = gql`
|
|
|
8488
8488
|
type
|
|
8489
8489
|
}
|
|
8490
8490
|
`;
|
|
8491
|
+
var EVENT_LIST_ITEM = gql`
|
|
8492
|
+
fragment EventListItemFields on EventListItemType {
|
|
8493
|
+
_id
|
|
8494
|
+
active
|
|
8495
|
+
claimed
|
|
8496
|
+
cover {
|
|
8497
|
+
...ResourceImageFields
|
|
8498
|
+
}
|
|
8499
|
+
createdAt
|
|
8500
|
+
dateTime {
|
|
8501
|
+
...EventDateTimeFields
|
|
8502
|
+
}
|
|
8503
|
+
deletedAt
|
|
8504
|
+
description
|
|
8505
|
+
eventType
|
|
8506
|
+
googlePlaceId
|
|
8507
|
+
images {
|
|
8508
|
+
...ResourceImageFields
|
|
8509
|
+
}
|
|
8510
|
+
location {
|
|
8511
|
+
...LocationFields
|
|
8512
|
+
}
|
|
8513
|
+
logo {
|
|
8514
|
+
...ResourceImageFields
|
|
8515
|
+
}
|
|
8516
|
+
name
|
|
8517
|
+
rainOrShine
|
|
8518
|
+
rating
|
|
8519
|
+
region
|
|
8520
|
+
reviewCount
|
|
8521
|
+
updatedAt
|
|
8522
|
+
}
|
|
8523
|
+
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
8524
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
8525
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
8526
|
+
`;
|
|
8491
8527
|
var EVENT_INFO = gql`
|
|
8492
8528
|
fragment EventInfoFields on EventInfoType {
|
|
8493
8529
|
_id
|
|
@@ -8591,10 +8627,10 @@ var EVENT = gql`
|
|
|
8591
8627
|
var GET_EVENTS = gql`
|
|
8592
8628
|
query getEvents {
|
|
8593
8629
|
events {
|
|
8594
|
-
...
|
|
8630
|
+
...EventListItemFields
|
|
8595
8631
|
}
|
|
8596
8632
|
}
|
|
8597
|
-
${
|
|
8633
|
+
${EVENT_LIST_ITEM}
|
|
8598
8634
|
`;
|
|
8599
8635
|
var GET_EVENT = gql`
|
|
8600
8636
|
query getEvent($_id: ID!) {
|
|
@@ -8607,26 +8643,26 @@ var GET_EVENT = gql`
|
|
|
8607
8643
|
var GET_EVENTS_BY_REGION = gql`
|
|
8608
8644
|
query getEventsByRegion($region: String!) {
|
|
8609
8645
|
eventsByRegion(region: $region) {
|
|
8610
|
-
...
|
|
8646
|
+
...EventListItemFields
|
|
8611
8647
|
}
|
|
8612
8648
|
}
|
|
8613
|
-
${
|
|
8649
|
+
${EVENT_LIST_ITEM}
|
|
8614
8650
|
`;
|
|
8615
8651
|
var SEARCH_EVENTS = gql`
|
|
8616
8652
|
query searchEvents($search: String!, $region: String) {
|
|
8617
8653
|
eventsSearch(search: $search, region: $region) {
|
|
8618
|
-
...
|
|
8654
|
+
...EventListItemFields
|
|
8619
8655
|
}
|
|
8620
8656
|
}
|
|
8621
|
-
${
|
|
8657
|
+
${EVENT_LIST_ITEM}
|
|
8622
8658
|
`;
|
|
8623
8659
|
var GET_EVENTS_NEAR_ME = gql`
|
|
8624
8660
|
query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
|
|
8625
8661
|
eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
|
|
8626
|
-
...
|
|
8662
|
+
...EventListItemFields
|
|
8627
8663
|
}
|
|
8628
8664
|
}
|
|
8629
|
-
${
|
|
8665
|
+
${EVENT_LIST_ITEM}
|
|
8630
8666
|
`;
|
|
8631
8667
|
var GET_EVENT_INFO = gql`
|
|
8632
8668
|
query getEventInfo($eventId: ID!) {
|
|
@@ -9258,36 +9294,6 @@ var SEARCH_PARTNERS = gql`
|
|
|
9258
9294
|
}
|
|
9259
9295
|
${PARTNER}
|
|
9260
9296
|
`;
|
|
9261
|
-
var USER_ACTIVITY_EVENT_FRAGMENT = gql`
|
|
9262
|
-
fragment UserActivityEventFields on UserActivityEventType {
|
|
9263
|
-
_id
|
|
9264
|
-
active
|
|
9265
|
-
cover {
|
|
9266
|
-
...ResourceImageFields
|
|
9267
|
-
}
|
|
9268
|
-
dateTime {
|
|
9269
|
-
...EventDateTimeFields
|
|
9270
|
-
}
|
|
9271
|
-
description
|
|
9272
|
-
eventType
|
|
9273
|
-
location {
|
|
9274
|
-
...LocationFields
|
|
9275
|
-
}
|
|
9276
|
-
logo {
|
|
9277
|
-
...ResourceImageFields
|
|
9278
|
-
}
|
|
9279
|
-
name
|
|
9280
|
-
rainOrShine
|
|
9281
|
-
region
|
|
9282
|
-
socialMedia {
|
|
9283
|
-
...SocialMediaFields
|
|
9284
|
-
}
|
|
9285
|
-
}
|
|
9286
|
-
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
9287
|
-
${LOCATION_FIELDS_FRAGMENT}
|
|
9288
|
-
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
9289
|
-
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
9290
|
-
`;
|
|
9291
9297
|
var GET_USERS = gql`
|
|
9292
9298
|
query getUsers {
|
|
9293
9299
|
users {
|
|
@@ -9333,7 +9339,7 @@ var GET_USER_ACTIVITIES = gql`
|
|
|
9333
9339
|
userActivities {
|
|
9334
9340
|
favourites {
|
|
9335
9341
|
events {
|
|
9336
|
-
...
|
|
9342
|
+
...EventListItemFields
|
|
9337
9343
|
}
|
|
9338
9344
|
vendors {
|
|
9339
9345
|
...VendorFields
|
|
@@ -9341,24 +9347,23 @@ var GET_USER_ACTIVITIES = gql`
|
|
|
9341
9347
|
}
|
|
9342
9348
|
going {
|
|
9343
9349
|
events {
|
|
9344
|
-
...
|
|
9350
|
+
...EventListItemFields
|
|
9345
9351
|
}
|
|
9346
9352
|
}
|
|
9347
9353
|
interested {
|
|
9348
9354
|
events {
|
|
9349
|
-
...
|
|
9355
|
+
...EventListItemFields
|
|
9350
9356
|
}
|
|
9351
9357
|
}
|
|
9352
9358
|
present {
|
|
9353
9359
|
events {
|
|
9354
|
-
...
|
|
9360
|
+
...EventListItemFields
|
|
9355
9361
|
}
|
|
9356
9362
|
}
|
|
9357
9363
|
}
|
|
9358
9364
|
}
|
|
9359
|
-
${
|
|
9365
|
+
${EVENT_LIST_ITEM}
|
|
9360
9366
|
${VENDOR}
|
|
9361
|
-
${USER_ACTIVITY_EVENT_FRAGMENT}
|
|
9362
9367
|
`;
|
|
9363
9368
|
var NOTIFICATION_FRAGMENT = gql`
|
|
9364
9369
|
fragment NotificationFields on Notification {
|
|
@@ -9515,7 +9520,7 @@ var GET_RESOURCE_CONNECTIONS = gql`
|
|
|
9515
9520
|
) {
|
|
9516
9521
|
resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
|
|
9517
9522
|
events {
|
|
9518
|
-
...
|
|
9523
|
+
...EventListItemFields
|
|
9519
9524
|
}
|
|
9520
9525
|
vendors {
|
|
9521
9526
|
...VendorFields
|
|
@@ -9523,7 +9528,7 @@ var GET_RESOURCE_CONNECTIONS = gql`
|
|
|
9523
9528
|
}
|
|
9524
9529
|
}
|
|
9525
9530
|
${VENDOR}
|
|
9526
|
-
${
|
|
9531
|
+
${EVENT_LIST_ITEM}
|
|
9527
9532
|
`;
|
|
9528
9533
|
var CREATE_RELATION_MUTATION = gql`
|
|
9529
9534
|
mutation createRelation($input: RelationInputType!) {
|
|
@@ -10031,6 +10036,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
|
|
|
10031
10036
|
updateAppSettings(input: $input)
|
|
10032
10037
|
}
|
|
10033
10038
|
`;
|
|
10039
|
+
var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
|
|
10040
|
+
mutation crawlGoogleMarkets {
|
|
10041
|
+
crawlGoogleMarkets {
|
|
10042
|
+
message
|
|
10043
|
+
}
|
|
10044
|
+
}
|
|
10045
|
+
`;
|
|
10034
10046
|
var APP_SETTINGS_FIELDS_FRAGMENT = gql`
|
|
10035
10047
|
fragment AppSettingsFields on AppSettingsType {
|
|
10036
10048
|
_id
|
|
@@ -10048,93 +10060,6 @@ var GET_APP_SETTINGS = gql`
|
|
|
10048
10060
|
}
|
|
10049
10061
|
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
10050
10062
|
`;
|
|
10051
|
-
var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
|
|
10052
|
-
mutation crawlGoogleMarkets {
|
|
10053
|
-
crawlGoogleMarkets {
|
|
10054
|
-
message
|
|
10055
|
-
}
|
|
10056
|
-
}
|
|
10057
|
-
`;
|
|
10058
|
-
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql`
|
|
10059
|
-
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
10060
|
-
_id
|
|
10061
|
-
accessibilityOptions
|
|
10062
|
-
address
|
|
10063
|
-
addressComponents {
|
|
10064
|
-
longName
|
|
10065
|
-
shortName
|
|
10066
|
-
types
|
|
10067
|
-
}
|
|
10068
|
-
allowsDogs
|
|
10069
|
-
businessStatus
|
|
10070
|
-
claimed
|
|
10071
|
-
createdAt
|
|
10072
|
-
goodForChildren
|
|
10073
|
-
goodForGroups
|
|
10074
|
-
googleMapsUrl
|
|
10075
|
-
googlePlaceId
|
|
10076
|
-
image
|
|
10077
|
-
importedAt
|
|
10078
|
-
liveMusic
|
|
10079
|
-
location {
|
|
10080
|
-
lat
|
|
10081
|
-
lng
|
|
10082
|
-
}
|
|
10083
|
-
name
|
|
10084
|
-
openingHours
|
|
10085
|
-
parkingOptions
|
|
10086
|
-
paymentOptions
|
|
10087
|
-
phone
|
|
10088
|
-
photos
|
|
10089
|
-
rating
|
|
10090
|
-
region
|
|
10091
|
-
restroom
|
|
10092
|
-
reviewCount
|
|
10093
|
-
slug
|
|
10094
|
-
updatedAt
|
|
10095
|
-
website
|
|
10096
|
-
}
|
|
10097
|
-
`;
|
|
10098
|
-
var GET_GOOGLE_IMPORTED_MARKETS = gql`
|
|
10099
|
-
query getGoogleImportedMarkets {
|
|
10100
|
-
googleImportedMarkets {
|
|
10101
|
-
...GoogleImportedMarketsFields
|
|
10102
|
-
}
|
|
10103
|
-
}
|
|
10104
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10105
|
-
`;
|
|
10106
|
-
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql`
|
|
10107
|
-
query getGoogleImportedMarketsByRegion($region: String!) {
|
|
10108
|
-
googleImportedMarketsByRegion(region: $region) {
|
|
10109
|
-
...GoogleImportedMarketsFields
|
|
10110
|
-
}
|
|
10111
|
-
}
|
|
10112
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10113
|
-
`;
|
|
10114
|
-
var SEARCH_GOOGLE_IMPORTED_MARKETS = gql`
|
|
10115
|
-
query searchGoogleImportedMarkets($search: String!, $region: String) {
|
|
10116
|
-
googleImportedMarketsSearch(search: $search, region: $region) {
|
|
10117
|
-
...GoogleImportedMarketsFields
|
|
10118
|
-
}
|
|
10119
|
-
}
|
|
10120
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10121
|
-
`;
|
|
10122
|
-
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql`
|
|
10123
|
-
query getGoogleImportedMarketsNearMe(
|
|
10124
|
-
$latitude: Float!
|
|
10125
|
-
$longitude: Float!
|
|
10126
|
-
$radius: Int
|
|
10127
|
-
) {
|
|
10128
|
-
googleImportedMarketsNearMe(
|
|
10129
|
-
lat: $latitude
|
|
10130
|
-
lng: $longitude
|
|
10131
|
-
radius: $radius
|
|
10132
|
-
) {
|
|
10133
|
-
...GoogleImportedMarketsFields
|
|
10134
|
-
}
|
|
10135
|
-
}
|
|
10136
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10137
|
-
`;
|
|
10138
10063
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
10139
10064
|
var nzbnRegex = /^94\d{11}$/;
|
|
10140
10065
|
var normalizedUrlTransform = () => create$6().trim().transform(
|
|
@@ -11334,6 +11259,29 @@ var dateTimeSchema3 = new MongooseSchema5(
|
|
|
11334
11259
|
{ _id: false }
|
|
11335
11260
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11336
11261
|
);
|
|
11262
|
+
var locationsSchema = new MongooseSchema5(
|
|
11263
|
+
{
|
|
11264
|
+
city: { required: true, type: String },
|
|
11265
|
+
coordinates: {
|
|
11266
|
+
required: true,
|
|
11267
|
+
type: [Number]
|
|
11268
|
+
// [longitude, latitude]
|
|
11269
|
+
},
|
|
11270
|
+
country: { required: true, type: String },
|
|
11271
|
+
fullAddress: { required: true, type: String },
|
|
11272
|
+
latitude: { required: true, type: Number },
|
|
11273
|
+
longitude: { required: true, type: Number },
|
|
11274
|
+
region: { required: true, type: String },
|
|
11275
|
+
type: {
|
|
11276
|
+
default: "Point",
|
|
11277
|
+
enum: ["Point"],
|
|
11278
|
+
required: true,
|
|
11279
|
+
type: String
|
|
11280
|
+
}
|
|
11281
|
+
},
|
|
11282
|
+
{ _id: false }
|
|
11283
|
+
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11284
|
+
);
|
|
11337
11285
|
var baseResourceFields = {
|
|
11338
11286
|
active: { default: false, required: true, type: Boolean },
|
|
11339
11287
|
adIds: {
|
|
@@ -11483,14 +11431,6 @@ var ChatModel = import_mongoose8.default.models.Chat || import_mongoose8.default
|
|
|
11483
11431
|
// src/mongoose/GoogleImportedMarket.ts
|
|
11484
11432
|
var import_mongoose9 = __toESM(require("mongoose"));
|
|
11485
11433
|
var MongooseSchema8 = import_mongoose9.default.Schema;
|
|
11486
|
-
var locationSchema2 = new MongooseSchema8(
|
|
11487
|
-
{
|
|
11488
|
-
lat: { required: true, type: Number },
|
|
11489
|
-
lng: { required: true, type: Number }
|
|
11490
|
-
},
|
|
11491
|
-
{ _id: false }
|
|
11492
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11493
|
-
);
|
|
11494
11434
|
var addressComponentSchema = new MongooseSchema8(
|
|
11495
11435
|
{
|
|
11496
11436
|
longName: { required: false, type: String },
|
|
@@ -11502,11 +11442,18 @@ var addressComponentSchema = new MongooseSchema8(
|
|
|
11502
11442
|
var schema5 = new MongooseSchema8(
|
|
11503
11443
|
{
|
|
11504
11444
|
accessibilityOptions: { required: false, type: Object },
|
|
11445
|
+
active: { default: false, required: true, type: Boolean },
|
|
11505
11446
|
address: { required: true, type: String },
|
|
11506
11447
|
addressComponents: { required: false, type: [addressComponentSchema] },
|
|
11507
11448
|
allowsDogs: { required: false, type: Boolean },
|
|
11508
11449
|
businessStatus: { required: false, type: String },
|
|
11509
11450
|
claimed: { default: false, required: true, type: Boolean },
|
|
11451
|
+
cover: {
|
|
11452
|
+
required: false,
|
|
11453
|
+
type: ResourceImageTypeSchema
|
|
11454
|
+
},
|
|
11455
|
+
dateTime: [dateTimeSchema3],
|
|
11456
|
+
deletedAt: { default: null, required: false, type: Date },
|
|
11510
11457
|
goodForChildren: { required: false, type: Boolean },
|
|
11511
11458
|
goodForGroups: { required: false, type: Boolean },
|
|
11512
11459
|
googleMapsUrl: { required: false, type: String },
|
|
@@ -11516,22 +11463,20 @@ var schema5 = new MongooseSchema8(
|
|
|
11516
11463
|
unique: true
|
|
11517
11464
|
// unique, indexed
|
|
11518
11465
|
},
|
|
11519
|
-
|
|
11520
|
-
// photo_reference
|
|
11466
|
+
images: { required: false, type: [ResourceImageTypeSchema] },
|
|
11467
|
+
// array of photo_reference
|
|
11521
11468
|
importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
|
|
11522
11469
|
liveMusic: { required: false, type: Boolean },
|
|
11523
11470
|
location: {
|
|
11524
11471
|
required: false,
|
|
11525
11472
|
// optional because lat/lng may expire after 30 days
|
|
11526
|
-
type:
|
|
11473
|
+
type: locationsSchema
|
|
11527
11474
|
},
|
|
11528
11475
|
name: { required: true, type: String },
|
|
11529
11476
|
openingHours: { required: false, type: [String] },
|
|
11530
11477
|
parkingOptions: { required: false, type: Object },
|
|
11531
11478
|
paymentOptions: { required: false, type: Object },
|
|
11532
11479
|
phone: { required: false, type: String },
|
|
11533
|
-
photos: { required: false, type: [String] },
|
|
11534
|
-
// array of photo_reference
|
|
11535
11480
|
rating: { required: false, type: Number },
|
|
11536
11481
|
region: { required: false, type: String },
|
|
11537
11482
|
restroom: { required: false, type: Boolean },
|
|
@@ -12065,29 +12010,6 @@ var VendorInfoModel = import_mongoose15.default.models.VendorInfo || import_mong
|
|
|
12065
12010
|
// src/mongoose/event/Event.ts
|
|
12066
12011
|
var import_mongoose16 = __toESM(require("mongoose"));
|
|
12067
12012
|
var MongooseSchema15 = import_mongoose16.default.Schema;
|
|
12068
|
-
var locationsSchema = new MongooseSchema15(
|
|
12069
|
-
{
|
|
12070
|
-
city: { required: true, type: String },
|
|
12071
|
-
coordinates: {
|
|
12072
|
-
required: true,
|
|
12073
|
-
type: [Number]
|
|
12074
|
-
// [longitude, latitude]
|
|
12075
|
-
},
|
|
12076
|
-
country: { required: true, type: String },
|
|
12077
|
-
fullAddress: { required: true, type: String },
|
|
12078
|
-
latitude: { required: true, type: Number },
|
|
12079
|
-
longitude: { required: true, type: Number },
|
|
12080
|
-
region: { required: true, type: String },
|
|
12081
|
-
type: {
|
|
12082
|
-
default: "Point",
|
|
12083
|
-
enum: ["Point"],
|
|
12084
|
-
required: true,
|
|
12085
|
-
type: String
|
|
12086
|
-
}
|
|
12087
|
-
},
|
|
12088
|
-
{ _id: false }
|
|
12089
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
12090
|
-
);
|
|
12091
12013
|
var schema11 = new MongooseSchema15(
|
|
12092
12014
|
{
|
|
12093
12015
|
...baseResourceFields,
|