@timardex/cluemart-server-shared 1.0.212 → 1.0.214
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-T6JJLNFZ.mjs → chunk-IFNK65HN.mjs} +117 -72
- package/dist/chunk-IFNK65HN.mjs.map +1 -0
- package/dist/index.cjs +116 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +30 -2
- package/dist/index.d.ts +30 -2
- package/dist/index.mjs +115 -70
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +114 -68
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +30 -2
- package/dist/mongoose/index.d.ts +30 -2
- package/dist/mongoose/index.mjs +3 -1
- package/dist/service/index.cjs +114 -70
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-T6JJLNFZ.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-DYkhie3G.mjs';
|
|
5
5
|
export { C as ChatModel, N as NotificationModel, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DYkhie3G.mjs';
|
|
@@ -28,6 +28,9 @@ declare const ChatReportModel: mongoose.Model<SchemaChatReportType, {}, {}, {},
|
|
|
28
28
|
__v: number;
|
|
29
29
|
}, any>;
|
|
30
30
|
|
|
31
|
+
type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
|
|
32
|
+
postId: ObjectId;
|
|
33
|
+
};
|
|
31
34
|
type SchemaOwnerType = Omit<OwnerType, "userId"> & {
|
|
32
35
|
userId: ObjectId;
|
|
33
36
|
};
|
|
@@ -164,6 +167,17 @@ declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<Loca
|
|
|
164
167
|
} & {
|
|
165
168
|
__v: number;
|
|
166
169
|
}>;
|
|
170
|
+
declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
|
|
171
|
+
postId: ObjectId;
|
|
172
|
+
} & {
|
|
173
|
+
_id: mongoose.Types.ObjectId;
|
|
174
|
+
} & {
|
|
175
|
+
__v: number;
|
|
176
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
|
|
177
|
+
_id: mongoose.Types.ObjectId;
|
|
178
|
+
} & {
|
|
179
|
+
__v: number;
|
|
180
|
+
}>;
|
|
167
181
|
declare const baseResourceFields: {
|
|
168
182
|
active: {
|
|
169
183
|
default: boolean;
|
|
@@ -286,6 +300,20 @@ declare const baseResourceFields: {
|
|
|
286
300
|
required: boolean;
|
|
287
301
|
type: StringConstructor;
|
|
288
302
|
};
|
|
303
|
+
relatedPost: {
|
|
304
|
+
required: boolean;
|
|
305
|
+
type: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
|
|
306
|
+
postId: ObjectId;
|
|
307
|
+
} & {
|
|
308
|
+
_id: mongoose.Types.ObjectId;
|
|
309
|
+
} & {
|
|
310
|
+
__v: number;
|
|
311
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
|
|
312
|
+
_id: mongoose.Types.ObjectId;
|
|
313
|
+
} & {
|
|
314
|
+
__v: number;
|
|
315
|
+
}>;
|
|
316
|
+
};
|
|
289
317
|
reviewCount: {
|
|
290
318
|
required: boolean;
|
|
291
319
|
type: NumberConstructor;
|
|
@@ -559,4 +587,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
|
|
|
559
587
|
__v: number;
|
|
560
588
|
}, any>;
|
|
561
589
|
|
|
562
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
|
|
590
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
|
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, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-DYkhie3G.js';
|
|
5
5
|
export { C as ChatModel, N as NotificationModel, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DYkhie3G.js';
|
|
@@ -28,6 +28,9 @@ declare const ChatReportModel: mongoose.Model<SchemaChatReportType, {}, {}, {},
|
|
|
28
28
|
__v: number;
|
|
29
29
|
}, any>;
|
|
30
30
|
|
|
31
|
+
type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
|
|
32
|
+
postId: ObjectId;
|
|
33
|
+
};
|
|
31
34
|
type SchemaOwnerType = Omit<OwnerType, "userId"> & {
|
|
32
35
|
userId: ObjectId;
|
|
33
36
|
};
|
|
@@ -164,6 +167,17 @@ declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<Loca
|
|
|
164
167
|
} & {
|
|
165
168
|
__v: number;
|
|
166
169
|
}>;
|
|
170
|
+
declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
|
|
171
|
+
postId: ObjectId;
|
|
172
|
+
} & {
|
|
173
|
+
_id: mongoose.Types.ObjectId;
|
|
174
|
+
} & {
|
|
175
|
+
__v: number;
|
|
176
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
|
|
177
|
+
_id: mongoose.Types.ObjectId;
|
|
178
|
+
} & {
|
|
179
|
+
__v: number;
|
|
180
|
+
}>;
|
|
167
181
|
declare const baseResourceFields: {
|
|
168
182
|
active: {
|
|
169
183
|
default: boolean;
|
|
@@ -286,6 +300,20 @@ declare const baseResourceFields: {
|
|
|
286
300
|
required: boolean;
|
|
287
301
|
type: StringConstructor;
|
|
288
302
|
};
|
|
303
|
+
relatedPost: {
|
|
304
|
+
required: boolean;
|
|
305
|
+
type: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
|
|
306
|
+
postId: ObjectId;
|
|
307
|
+
} & {
|
|
308
|
+
_id: mongoose.Types.ObjectId;
|
|
309
|
+
} & {
|
|
310
|
+
__v: number;
|
|
311
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
|
|
312
|
+
_id: mongoose.Types.ObjectId;
|
|
313
|
+
} & {
|
|
314
|
+
__v: number;
|
|
315
|
+
}>;
|
|
316
|
+
};
|
|
289
317
|
reviewCount: {
|
|
290
318
|
required: boolean;
|
|
291
319
|
type: NumberConstructor;
|
|
@@ -559,4 +587,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
|
|
|
559
587
|
__v: number;
|
|
560
588
|
}, any>;
|
|
561
589
|
|
|
562
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
|
|
590
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
|
package/dist/mongoose/index.mjs
CHANGED
|
@@ -33,11 +33,12 @@ import {
|
|
|
33
33
|
locationGeoSchema,
|
|
34
34
|
locationsSchema,
|
|
35
35
|
refundPolicySchema,
|
|
36
|
+
relatedPostSchema,
|
|
36
37
|
relationDatesSchema,
|
|
37
38
|
resourceRelationsSchema,
|
|
38
39
|
termsAgreementSchema,
|
|
39
40
|
userLicenseSchema
|
|
40
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-IFNK65HN.mjs";
|
|
41
42
|
export {
|
|
42
43
|
APP_SETTINGS_ID,
|
|
43
44
|
AdModel,
|
|
@@ -73,6 +74,7 @@ export {
|
|
|
73
74
|
locationGeoSchema,
|
|
74
75
|
locationsSchema,
|
|
75
76
|
refundPolicySchema,
|
|
77
|
+
relatedPostSchema,
|
|
76
78
|
relationDatesSchema,
|
|
77
79
|
resourceRelationsSchema,
|
|
78
80
|
termsAgreementSchema,
|
package/dist/service/index.cjs
CHANGED
|
@@ -3549,12 +3549,64 @@ var gameScreenIdentifierList = [
|
|
|
3549
3549
|
match: "/visitors"
|
|
3550
3550
|
}
|
|
3551
3551
|
];
|
|
3552
|
-
var
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3552
|
+
var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
3553
|
+
EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
|
|
3554
|
+
EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
|
|
3555
|
+
EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
|
|
3556
|
+
EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
|
|
3557
|
+
return EnumAdShowOn2;
|
|
3558
|
+
})(EnumAdShowOn || {});
|
|
3559
|
+
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
3560
|
+
EnumAdStatus2["ACTIVE"] = "Active";
|
|
3561
|
+
EnumAdStatus2["PAUSED"] = "Paused";
|
|
3562
|
+
EnumAdStatus2["EXPIRED"] = "Expired";
|
|
3563
|
+
return EnumAdStatus2;
|
|
3564
|
+
})(EnumAdStatus || {});
|
|
3565
|
+
var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
|
|
3566
|
+
EnumAdType2["SPONSORED"] = "Sponsored";
|
|
3567
|
+
EnumAdType2["FREE"] = "Free";
|
|
3568
|
+
return EnumAdType2;
|
|
3569
|
+
})(EnumAdType || {});
|
|
3570
|
+
var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
|
|
3571
|
+
EnumAdStyle2["BLOOM"] = "Bloom";
|
|
3572
|
+
EnumAdStyle2["RISE"] = "Rise";
|
|
3573
|
+
return EnumAdStyle2;
|
|
3574
|
+
})(EnumAdStyle || {});
|
|
3575
|
+
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
3576
|
+
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
3577
|
+
EnumActivity2["GOING"] = "GOING";
|
|
3578
|
+
EnumActivity2["INTERESTED"] = "INTERESTED";
|
|
3579
|
+
EnumActivity2["PRESENT"] = "PRESENT";
|
|
3580
|
+
EnumActivity2["VIEW"] = "VIEW";
|
|
3581
|
+
return EnumActivity2;
|
|
3582
|
+
})(EnumActivity || {});
|
|
3583
|
+
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
3584
|
+
EnumPostType2["MARKET_FACES"] = "market_faces";
|
|
3585
|
+
EnumPostType2["CLUE_BITES"] = "clue_bites";
|
|
3586
|
+
EnumPostType2["PLAY_AND_WIN"] = "play_and_win";
|
|
3587
|
+
return EnumPostType2;
|
|
3588
|
+
})(EnumPostType || {});
|
|
3589
|
+
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
3590
|
+
EnumPostContentType2["GAME"] = "game";
|
|
3591
|
+
EnumPostContentType2["IMAGE"] = "image";
|
|
3592
|
+
EnumPostContentType2["LIST"] = "list";
|
|
3593
|
+
EnumPostContentType2["TEXTAREA"] = "textarea";
|
|
3594
|
+
EnumPostContentType2["VIDEO"] = "video";
|
|
3595
|
+
return EnumPostContentType2;
|
|
3596
|
+
})(EnumPostContentType || {});
|
|
3597
|
+
var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
|
|
3598
|
+
EnumGameStatus2["GAME_COMPLETED"] = "GAME_COMPLETED";
|
|
3599
|
+
EnumGameStatus2["GAME_IN_PROGRESS"] = "GAME_IN_PROGRESS";
|
|
3600
|
+
EnumGameStatus2["GAME_LEFT"] = "GAME_LEFT";
|
|
3601
|
+
EnumGameStatus2["GAME_STARTED"] = "GAME_STARTED";
|
|
3602
|
+
return EnumGameStatus2;
|
|
3603
|
+
})(EnumGameStatus || {});
|
|
3604
|
+
var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
3605
|
+
EnumGameType2["DAILY_CLUE"] = "dailyClue";
|
|
3606
|
+
EnumGameType2["MINI_QUIZ"] = "miniQuiz";
|
|
3607
|
+
EnumGameType2["ODD_ONE_OUT"] = "oddOneOut";
|
|
3608
|
+
return EnumGameType2;
|
|
3609
|
+
})(EnumGameType || {});
|
|
3558
3610
|
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
3559
3611
|
label: item,
|
|
3560
3612
|
value: item
|
|
@@ -3572,6 +3624,21 @@ var paymentMethodOptions = mapArrayToOptions(
|
|
|
3572
3624
|
Object.values(EnumPaymentMethod)
|
|
3573
3625
|
);
|
|
3574
3626
|
var CLUEMART_MAIN_DOMAIN_URL = "https://cluemart.co.nz";
|
|
3627
|
+
var dateFormat = "DD-MM-YYYY";
|
|
3628
|
+
var timeFormat = "HH:mm";
|
|
3629
|
+
import_dayjs.default.extend(import_customParseFormat.default);
|
|
3630
|
+
import_dayjs.default.extend(import_utc.default);
|
|
3631
|
+
import_dayjs.default.extend(import_timezone.default);
|
|
3632
|
+
import_dayjs.default.extend(import_isSameOrAfter.default);
|
|
3633
|
+
var futureTimePeriods = mapArrayToOptions(
|
|
3634
|
+
Object.values(EnumEventDateStatus)
|
|
3635
|
+
).filter(
|
|
3636
|
+
(period) => period.value !== "Starting_Soon" && period.value !== "Canceled" && period.value !== "Rescheduled" && period.value !== "Started" && period.value !== "Ended" && period.value !== "Invalid"
|
|
3637
|
+
/* INVALID */
|
|
3638
|
+
).map((period) => ({
|
|
3639
|
+
label: period.value.replaceAll("_", " "),
|
|
3640
|
+
value: period.value
|
|
3641
|
+
}));
|
|
3575
3642
|
var packagingTypes = [
|
|
3576
3643
|
"Biodegradable",
|
|
3577
3644
|
"Compostable",
|
|
@@ -5106,6 +5173,12 @@ var EVENT_LIST_ITEM = gql`
|
|
|
5106
5173
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5107
5174
|
${RELATION_DATES_FRAGMENT}
|
|
5108
5175
|
`;
|
|
5176
|
+
var RELATED_POST_FIELDS_FRAGMENT = gql`
|
|
5177
|
+
fragment RelatedPostFields on RelatedPostType {
|
|
5178
|
+
postId
|
|
5179
|
+
postType
|
|
5180
|
+
}
|
|
5181
|
+
`;
|
|
5109
5182
|
var EVENT_INFO = gql`
|
|
5110
5183
|
fragment EventInfoFields on EventInfoType {
|
|
5111
5184
|
_id
|
|
@@ -5195,6 +5268,9 @@ var EVENT = gql`
|
|
|
5195
5268
|
rating
|
|
5196
5269
|
reviewCount
|
|
5197
5270
|
rainOrShine
|
|
5271
|
+
relatedPost {
|
|
5272
|
+
...RelatedPostFields
|
|
5273
|
+
}
|
|
5198
5274
|
socialMedia {
|
|
5199
5275
|
...SocialMediaFields
|
|
5200
5276
|
}
|
|
@@ -5214,6 +5290,7 @@ var EVENT = gql`
|
|
|
5214
5290
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5215
5291
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5216
5292
|
${RELATION_DATES_FRAGMENT}
|
|
5293
|
+
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5217
5294
|
`;
|
|
5218
5295
|
var GET_EVENTS = gql`
|
|
5219
5296
|
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
@@ -5380,6 +5457,9 @@ var VENDOR = gql`
|
|
|
5380
5457
|
rating
|
|
5381
5458
|
region
|
|
5382
5459
|
reviewCount
|
|
5460
|
+
relatedPost {
|
|
5461
|
+
...RelatedPostFields
|
|
5462
|
+
}
|
|
5383
5463
|
relations {
|
|
5384
5464
|
relationId
|
|
5385
5465
|
relationDates {
|
|
@@ -5408,6 +5488,7 @@ var VENDOR = gql`
|
|
|
5408
5488
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5409
5489
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5410
5490
|
${RELATION_DATES_FRAGMENT}
|
|
5491
|
+
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5411
5492
|
`;
|
|
5412
5493
|
var VENDOR_ATTRIBUTES_FRAGMENT = gql`
|
|
5413
5494
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -5866,6 +5947,9 @@ var PARTNER = gql`
|
|
|
5866
5947
|
rating
|
|
5867
5948
|
region
|
|
5868
5949
|
reviewCount
|
|
5950
|
+
relatedPost {
|
|
5951
|
+
...RelatedPostFields
|
|
5952
|
+
}
|
|
5869
5953
|
socialMedia {
|
|
5870
5954
|
...SocialMediaFields
|
|
5871
5955
|
}
|
|
@@ -5882,6 +5966,7 @@ var PARTNER = gql`
|
|
|
5882
5966
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
5883
5967
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5884
5968
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5969
|
+
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5885
5970
|
`;
|
|
5886
5971
|
var GET_PARTNERS = gql`
|
|
5887
5972
|
query getPartners {
|
|
@@ -7217,16 +7302,16 @@ var RESOURCE_SHARE_TYPES = [
|
|
|
7217
7302
|
"partner"
|
|
7218
7303
|
];
|
|
7219
7304
|
var POST_SHARE_RESOURCE_TYPES = [
|
|
7220
|
-
"
|
|
7221
|
-
"
|
|
7222
|
-
"
|
|
7305
|
+
"market_faces",
|
|
7306
|
+
"clue_bites",
|
|
7307
|
+
"play_and_win"
|
|
7223
7308
|
];
|
|
7224
7309
|
var SHARE_RESOURCE_LABEL = {
|
|
7225
7310
|
[RELATION_SHARE_APPLICATION]: "Application",
|
|
7226
7311
|
[RELATION_SHARE_INVITATION]: "Invitation",
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7312
|
+
clue_bites: "Clue Bites",
|
|
7313
|
+
market_faces: "Market Faces",
|
|
7314
|
+
play_and_win: "Play & Win",
|
|
7230
7315
|
market: "Market",
|
|
7231
7316
|
partner: "Partner",
|
|
7232
7317
|
stallholder: "Stallholder"
|
|
@@ -7240,64 +7325,6 @@ var SHARE_TYPE_PATH_REGEX = [
|
|
|
7240
7325
|
RELATION_SHARE_APPLICATION,
|
|
7241
7326
|
RELATION_SHARE_INVITATION
|
|
7242
7327
|
].join("|");
|
|
7243
|
-
var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
7244
|
-
EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
|
|
7245
|
-
EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
|
|
7246
|
-
EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
|
|
7247
|
-
EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
|
|
7248
|
-
return EnumAdShowOn2;
|
|
7249
|
-
})(EnumAdShowOn || {});
|
|
7250
|
-
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
7251
|
-
EnumAdStatus2["ACTIVE"] = "Active";
|
|
7252
|
-
EnumAdStatus2["PAUSED"] = "Paused";
|
|
7253
|
-
EnumAdStatus2["EXPIRED"] = "Expired";
|
|
7254
|
-
return EnumAdStatus2;
|
|
7255
|
-
})(EnumAdStatus || {});
|
|
7256
|
-
var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
|
|
7257
|
-
EnumAdType2["SPONSORED"] = "Sponsored";
|
|
7258
|
-
EnumAdType2["FREE"] = "Free";
|
|
7259
|
-
return EnumAdType2;
|
|
7260
|
-
})(EnumAdType || {});
|
|
7261
|
-
var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
|
|
7262
|
-
EnumAdStyle2["BLOOM"] = "Bloom";
|
|
7263
|
-
EnumAdStyle2["RISE"] = "Rise";
|
|
7264
|
-
return EnumAdStyle2;
|
|
7265
|
-
})(EnumAdStyle || {});
|
|
7266
|
-
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
7267
|
-
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
7268
|
-
EnumActivity2["GOING"] = "GOING";
|
|
7269
|
-
EnumActivity2["INTERESTED"] = "INTERESTED";
|
|
7270
|
-
EnumActivity2["PRESENT"] = "PRESENT";
|
|
7271
|
-
EnumActivity2["VIEW"] = "VIEW";
|
|
7272
|
-
return EnumActivity2;
|
|
7273
|
-
})(EnumActivity || {});
|
|
7274
|
-
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
7275
|
-
EnumPostType2["DAILY_MEETS"] = "daily_meets";
|
|
7276
|
-
EnumPostType2["DAILY_TIPS"] = "daily_tips";
|
|
7277
|
-
EnumPostType2["DAILY_GAMES"] = "daily_games";
|
|
7278
|
-
return EnumPostType2;
|
|
7279
|
-
})(EnumPostType || {});
|
|
7280
|
-
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
7281
|
-
EnumPostContentType2["GAME"] = "game";
|
|
7282
|
-
EnumPostContentType2["IMAGE"] = "image";
|
|
7283
|
-
EnumPostContentType2["LIST"] = "list";
|
|
7284
|
-
EnumPostContentType2["TEXTAREA"] = "textarea";
|
|
7285
|
-
EnumPostContentType2["VIDEO"] = "video";
|
|
7286
|
-
return EnumPostContentType2;
|
|
7287
|
-
})(EnumPostContentType || {});
|
|
7288
|
-
var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
|
|
7289
|
-
EnumGameStatus2["GAME_COMPLETED"] = "GAME_COMPLETED";
|
|
7290
|
-
EnumGameStatus2["GAME_IN_PROGRESS"] = "GAME_IN_PROGRESS";
|
|
7291
|
-
EnumGameStatus2["GAME_LEFT"] = "GAME_LEFT";
|
|
7292
|
-
EnumGameStatus2["GAME_STARTED"] = "GAME_STARTED";
|
|
7293
|
-
return EnumGameStatus2;
|
|
7294
|
-
})(EnumGameStatus || {});
|
|
7295
|
-
var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
7296
|
-
EnumGameType2["DAILY_CLUE"] = "dailyClue";
|
|
7297
|
-
EnumGameType2["MINI_QUIZ"] = "miniQuiz";
|
|
7298
|
-
EnumGameType2["ODD_ONE_OUT"] = "oddOneOut";
|
|
7299
|
-
return EnumGameType2;
|
|
7300
|
-
})(EnumGameType || {});
|
|
7301
7328
|
|
|
7302
7329
|
// src/mongoose/Notification.ts
|
|
7303
7330
|
var import_mongoose2 = __toESM(require("mongoose"));
|
|
@@ -8047,6 +8074,22 @@ var locationsSchema = new MongooseSchema8(
|
|
|
8047
8074
|
{ _id: false }
|
|
8048
8075
|
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
8049
8076
|
);
|
|
8077
|
+
var relatedPostSchema = new MongooseSchema8(
|
|
8078
|
+
{
|
|
8079
|
+
postId: {
|
|
8080
|
+
ref: "Post",
|
|
8081
|
+
required: true,
|
|
8082
|
+
type: import_mongoose9.default.Schema.Types.ObjectId
|
|
8083
|
+
},
|
|
8084
|
+
postType: {
|
|
8085
|
+
enum: Object.values(EnumPostType),
|
|
8086
|
+
required: true,
|
|
8087
|
+
type: String
|
|
8088
|
+
}
|
|
8089
|
+
},
|
|
8090
|
+
{ _id: false }
|
|
8091
|
+
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
8092
|
+
);
|
|
8050
8093
|
var baseResourceFields = {
|
|
8051
8094
|
active: { default: false, required: true, type: Boolean },
|
|
8052
8095
|
adIds: {
|
|
@@ -8076,6 +8119,7 @@ var baseResourceFields = {
|
|
|
8076
8119
|
promoCodes: { required: false, type: [String] },
|
|
8077
8120
|
rating: { required: false, type: Number },
|
|
8078
8121
|
region: { required: true, type: String },
|
|
8122
|
+
relatedPost: { required: false, type: relatedPostSchema },
|
|
8079
8123
|
reviewCount: { required: false, type: Number },
|
|
8080
8124
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
8081
8125
|
termsAgreement: { required: true, type: termsAgreementSchema }
|