@timardex/cluemart-server-shared 1.0.63 → 1.0.65
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-QGZKB5FC.mjs → chunk-DS5E2QOI.mjs} +92 -175
- package/dist/chunk-DS5E2QOI.mjs.map +1 -0
- package/dist/index.cjs +90 -173
- 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 +90 -173
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +90 -173
- 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 +90 -173
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-QGZKB5FC.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,97 +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
|
-
dateTime {
|
|
10073
|
-
...EventDateTimeFields
|
|
10074
|
-
}
|
|
10075
|
-
goodForChildren
|
|
10076
|
-
goodForGroups
|
|
10077
|
-
googleMapsUrl
|
|
10078
|
-
googlePlaceId
|
|
10079
|
-
image
|
|
10080
|
-
importedAt
|
|
10081
|
-
liveMusic
|
|
10082
|
-
location {
|
|
10083
|
-
lat
|
|
10084
|
-
lng
|
|
10085
|
-
}
|
|
10086
|
-
name
|
|
10087
|
-
openingHours
|
|
10088
|
-
parkingOptions
|
|
10089
|
-
paymentOptions
|
|
10090
|
-
phone
|
|
10091
|
-
photos
|
|
10092
|
-
rating
|
|
10093
|
-
region
|
|
10094
|
-
restroom
|
|
10095
|
-
reviewCount
|
|
10096
|
-
slug
|
|
10097
|
-
updatedAt
|
|
10098
|
-
website
|
|
10099
|
-
}
|
|
10100
|
-
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
10101
|
-
`;
|
|
10102
|
-
var GET_GOOGLE_IMPORTED_MARKETS = gql`
|
|
10103
|
-
query getGoogleImportedMarkets {
|
|
10104
|
-
googleImportedMarkets {
|
|
10105
|
-
...GoogleImportedMarketsFields
|
|
10106
|
-
}
|
|
10107
|
-
}
|
|
10108
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10109
|
-
`;
|
|
10110
|
-
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql`
|
|
10111
|
-
query getGoogleImportedMarketsByRegion($region: String!) {
|
|
10112
|
-
googleImportedMarketsByRegion(region: $region) {
|
|
10113
|
-
...GoogleImportedMarketsFields
|
|
10114
|
-
}
|
|
10115
|
-
}
|
|
10116
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10117
|
-
`;
|
|
10118
|
-
var SEARCH_GOOGLE_IMPORTED_MARKETS = gql`
|
|
10119
|
-
query searchGoogleImportedMarkets($search: String!, $region: String) {
|
|
10120
|
-
googleImportedMarketsSearch(search: $search, region: $region) {
|
|
10121
|
-
...GoogleImportedMarketsFields
|
|
10122
|
-
}
|
|
10123
|
-
}
|
|
10124
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10125
|
-
`;
|
|
10126
|
-
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql`
|
|
10127
|
-
query getGoogleImportedMarketsNearMe(
|
|
10128
|
-
$latitude: Float!
|
|
10129
|
-
$longitude: Float!
|
|
10130
|
-
$radius: Int
|
|
10131
|
-
) {
|
|
10132
|
-
googleImportedMarketsNearMe(
|
|
10133
|
-
lat: $latitude
|
|
10134
|
-
lng: $longitude
|
|
10135
|
-
radius: $radius
|
|
10136
|
-
) {
|
|
10137
|
-
...GoogleImportedMarketsFields
|
|
10138
|
-
}
|
|
10139
|
-
}
|
|
10140
|
-
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
10141
|
-
`;
|
|
10142
10063
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
10143
10064
|
var nzbnRegex = /^94\d{11}$/;
|
|
10144
10065
|
var normalizedUrlTransform = () => create$6().trim().transform(
|
|
@@ -11338,6 +11259,29 @@ var dateTimeSchema3 = new MongooseSchema5(
|
|
|
11338
11259
|
{ _id: false }
|
|
11339
11260
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11340
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
|
+
);
|
|
11341
11285
|
var baseResourceFields = {
|
|
11342
11286
|
active: { default: false, required: true, type: Boolean },
|
|
11343
11287
|
adIds: {
|
|
@@ -11487,14 +11431,6 @@ var ChatModel = import_mongoose8.default.models.Chat || import_mongoose8.default
|
|
|
11487
11431
|
// src/mongoose/GoogleImportedMarket.ts
|
|
11488
11432
|
var import_mongoose9 = __toESM(require("mongoose"));
|
|
11489
11433
|
var MongooseSchema8 = import_mongoose9.default.Schema;
|
|
11490
|
-
var locationSchema2 = new MongooseSchema8(
|
|
11491
|
-
{
|
|
11492
|
-
lat: { required: true, type: Number },
|
|
11493
|
-
lng: { required: true, type: Number }
|
|
11494
|
-
},
|
|
11495
|
-
{ _id: false }
|
|
11496
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11497
|
-
);
|
|
11498
11434
|
var addressComponentSchema = new MongooseSchema8(
|
|
11499
11435
|
{
|
|
11500
11436
|
longName: { required: false, type: String },
|
|
@@ -11506,12 +11442,18 @@ var addressComponentSchema = new MongooseSchema8(
|
|
|
11506
11442
|
var schema5 = new MongooseSchema8(
|
|
11507
11443
|
{
|
|
11508
11444
|
accessibilityOptions: { required: false, type: Object },
|
|
11445
|
+
active: { default: false, required: true, type: Boolean },
|
|
11509
11446
|
address: { required: true, type: String },
|
|
11510
11447
|
addressComponents: { required: false, type: [addressComponentSchema] },
|
|
11511
11448
|
allowsDogs: { required: false, type: Boolean },
|
|
11512
11449
|
businessStatus: { required: false, type: String },
|
|
11513
11450
|
claimed: { default: false, required: true, type: Boolean },
|
|
11451
|
+
cover: {
|
|
11452
|
+
required: false,
|
|
11453
|
+
type: ResourceImageTypeSchema
|
|
11454
|
+
},
|
|
11514
11455
|
dateTime: [dateTimeSchema3],
|
|
11456
|
+
deletedAt: { default: null, required: false, type: Date },
|
|
11515
11457
|
goodForChildren: { required: false, type: Boolean },
|
|
11516
11458
|
goodForGroups: { required: false, type: Boolean },
|
|
11517
11459
|
googleMapsUrl: { required: false, type: String },
|
|
@@ -11521,22 +11463,20 @@ var schema5 = new MongooseSchema8(
|
|
|
11521
11463
|
unique: true
|
|
11522
11464
|
// unique, indexed
|
|
11523
11465
|
},
|
|
11524
|
-
|
|
11525
|
-
// photo_reference
|
|
11466
|
+
images: { required: false, type: [ResourceImageTypeSchema] },
|
|
11467
|
+
// array of photo_reference
|
|
11526
11468
|
importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
|
|
11527
11469
|
liveMusic: { required: false, type: Boolean },
|
|
11528
11470
|
location: {
|
|
11529
11471
|
required: false,
|
|
11530
11472
|
// optional because lat/lng may expire after 30 days
|
|
11531
|
-
type:
|
|
11473
|
+
type: locationsSchema
|
|
11532
11474
|
},
|
|
11533
11475
|
name: { required: true, type: String },
|
|
11534
11476
|
openingHours: { required: false, type: [String] },
|
|
11535
11477
|
parkingOptions: { required: false, type: Object },
|
|
11536
11478
|
paymentOptions: { required: false, type: Object },
|
|
11537
11479
|
phone: { required: false, type: String },
|
|
11538
|
-
photos: { required: false, type: [String] },
|
|
11539
|
-
// array of photo_reference
|
|
11540
11480
|
rating: { required: false, type: Number },
|
|
11541
11481
|
region: { required: false, type: String },
|
|
11542
11482
|
restroom: { required: false, type: Boolean },
|
|
@@ -12070,29 +12010,6 @@ var VendorInfoModel = import_mongoose15.default.models.VendorInfo || import_mong
|
|
|
12070
12010
|
// src/mongoose/event/Event.ts
|
|
12071
12011
|
var import_mongoose16 = __toESM(require("mongoose"));
|
|
12072
12012
|
var MongooseSchema15 = import_mongoose16.default.Schema;
|
|
12073
|
-
var locationsSchema = new MongooseSchema15(
|
|
12074
|
-
{
|
|
12075
|
-
city: { required: true, type: String },
|
|
12076
|
-
coordinates: {
|
|
12077
|
-
required: true,
|
|
12078
|
-
type: [Number]
|
|
12079
|
-
// [longitude, latitude]
|
|
12080
|
-
},
|
|
12081
|
-
country: { required: true, type: String },
|
|
12082
|
-
fullAddress: { required: true, type: String },
|
|
12083
|
-
latitude: { required: true, type: Number },
|
|
12084
|
-
longitude: { required: true, type: Number },
|
|
12085
|
-
region: { required: true, type: String },
|
|
12086
|
-
type: {
|
|
12087
|
-
default: "Point",
|
|
12088
|
-
enum: ["Point"],
|
|
12089
|
-
required: true,
|
|
12090
|
-
type: String
|
|
12091
|
-
}
|
|
12092
|
-
},
|
|
12093
|
-
{ _id: false }
|
|
12094
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
12095
|
-
);
|
|
12096
12013
|
var schema11 = new MongooseSchema15(
|
|
12097
12014
|
{
|
|
12098
12015
|
...baseResourceFields,
|