@timardex/cluemart-server-shared 1.0.259 → 1.0.261
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-RZ3OQKLX.mjs → chunk-CLHRN4JW.mjs} +76 -6
- package/dist/chunk-CLHRN4JW.mjs.map +1 -0
- package/dist/index.cjs +76 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -7
- package/dist/index.d.ts +17 -7
- package/dist/index.mjs +75 -5
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +76 -5
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +17 -7
- package/dist/mongoose/index.d.ts +17 -7
- package/dist/mongoose/index.mjs +3 -1
- package/dist/service/index.cjs +74 -5
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-RZ3OQKLX.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared 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, PostResource, 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, SocialShareResourceType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, 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';
|
|
@@ -349,6 +349,15 @@ declare const baseResourceFields: {
|
|
|
349
349
|
}>;
|
|
350
350
|
};
|
|
351
351
|
};
|
|
352
|
+
declare const socialShareResourceSchema: mongoose.Schema<SocialShareResourceType, mongoose.Model<SocialShareResourceType, any, any, any, mongoose.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
|
|
353
|
+
_id: mongoose.Types.ObjectId;
|
|
354
|
+
} & {
|
|
355
|
+
__v: number;
|
|
356
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialShareResourceType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialShareResourceType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialShareResourceType> & {
|
|
357
|
+
_id: mongoose.Types.ObjectId;
|
|
358
|
+
} & {
|
|
359
|
+
__v: number;
|
|
360
|
+
}>;
|
|
352
361
|
|
|
353
362
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
354
363
|
eventId?: mongoose.Types.ObjectId;
|
|
@@ -453,7 +462,7 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
|
|
|
453
462
|
vendorInfoId: ObjectId;
|
|
454
463
|
unregisteredVendorId?: ObjectId | null;
|
|
455
464
|
};
|
|
456
|
-
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "
|
|
465
|
+
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
|
|
457
466
|
adIds?: ObjectId[];
|
|
458
467
|
owner: SchemaOwnerType;
|
|
459
468
|
vendorInfoId: ObjectId;
|
|
@@ -496,7 +505,7 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
|
496
505
|
eventInfoId: ObjectId;
|
|
497
506
|
owner: SchemaOwnerType;
|
|
498
507
|
};
|
|
499
|
-
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "
|
|
508
|
+
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
|
|
500
509
|
adIds?: ObjectId[];
|
|
501
510
|
eventInfoId: ObjectId;
|
|
502
511
|
owner: SchemaOwnerType;
|
|
@@ -539,7 +548,7 @@ type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
|
|
|
539
548
|
adIds?: ObjectId[];
|
|
540
549
|
owner: SchemaOwnerType;
|
|
541
550
|
};
|
|
542
|
-
declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "
|
|
551
|
+
declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
|
|
543
552
|
adIds?: ObjectId[];
|
|
544
553
|
owner: SchemaOwnerType;
|
|
545
554
|
} & Required<{
|
|
@@ -552,10 +561,11 @@ type SchemaPostType = PostType;
|
|
|
552
561
|
declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
|
|
553
562
|
_id: string;
|
|
554
563
|
content: PostContentType[];
|
|
555
|
-
slug: string;
|
|
556
|
-
resource?: PostResource | null;
|
|
557
564
|
createdAt: Date;
|
|
558
565
|
deletedAt: Date | null;
|
|
566
|
+
resource?: PostResource | null;
|
|
567
|
+
slug: string;
|
|
568
|
+
sharePublic?: _timardex_cluemart_shared.SocialShareResourceType | null;
|
|
559
569
|
updatedAt: Date | null;
|
|
560
570
|
} & Required<{
|
|
561
571
|
_id: string;
|
|
@@ -593,4 +603,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
|
|
|
593
603
|
__v: number;
|
|
594
604
|
}, any>;
|
|
595
605
|
|
|
596
|
-
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 };
|
|
606
|
+
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, socialShareResourceSchema, 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, 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, PostResource, 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, SocialShareResourceType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, 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';
|
|
@@ -349,6 +349,15 @@ declare const baseResourceFields: {
|
|
|
349
349
|
}>;
|
|
350
350
|
};
|
|
351
351
|
};
|
|
352
|
+
declare const socialShareResourceSchema: mongoose.Schema<SocialShareResourceType, mongoose.Model<SocialShareResourceType, any, any, any, mongoose.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
|
|
353
|
+
_id: mongoose.Types.ObjectId;
|
|
354
|
+
} & {
|
|
355
|
+
__v: number;
|
|
356
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialShareResourceType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialShareResourceType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialShareResourceType> & {
|
|
357
|
+
_id: mongoose.Types.ObjectId;
|
|
358
|
+
} & {
|
|
359
|
+
__v: number;
|
|
360
|
+
}>;
|
|
352
361
|
|
|
353
362
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
354
363
|
eventId?: mongoose.Types.ObjectId;
|
|
@@ -453,7 +462,7 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
|
|
|
453
462
|
vendorInfoId: ObjectId;
|
|
454
463
|
unregisteredVendorId?: ObjectId | null;
|
|
455
464
|
};
|
|
456
|
-
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "
|
|
465
|
+
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
|
|
457
466
|
adIds?: ObjectId[];
|
|
458
467
|
owner: SchemaOwnerType;
|
|
459
468
|
vendorInfoId: ObjectId;
|
|
@@ -496,7 +505,7 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
|
496
505
|
eventInfoId: ObjectId;
|
|
497
506
|
owner: SchemaOwnerType;
|
|
498
507
|
};
|
|
499
|
-
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "
|
|
508
|
+
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
|
|
500
509
|
adIds?: ObjectId[];
|
|
501
510
|
eventInfoId: ObjectId;
|
|
502
511
|
owner: SchemaOwnerType;
|
|
@@ -539,7 +548,7 @@ type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
|
|
|
539
548
|
adIds?: ObjectId[];
|
|
540
549
|
owner: SchemaOwnerType;
|
|
541
550
|
};
|
|
542
|
-
declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "
|
|
551
|
+
declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
|
|
543
552
|
adIds?: ObjectId[];
|
|
544
553
|
owner: SchemaOwnerType;
|
|
545
554
|
} & Required<{
|
|
@@ -552,10 +561,11 @@ type SchemaPostType = PostType;
|
|
|
552
561
|
declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
|
|
553
562
|
_id: string;
|
|
554
563
|
content: PostContentType[];
|
|
555
|
-
slug: string;
|
|
556
|
-
resource?: PostResource | null;
|
|
557
564
|
createdAt: Date;
|
|
558
565
|
deletedAt: Date | null;
|
|
566
|
+
resource?: PostResource | null;
|
|
567
|
+
slug: string;
|
|
568
|
+
sharePublic?: _timardex_cluemart_shared.SocialShareResourceType | null;
|
|
559
569
|
updatedAt: Date | null;
|
|
560
570
|
} & Required<{
|
|
561
571
|
_id: string;
|
|
@@ -593,4 +603,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
|
|
|
593
603
|
__v: number;
|
|
594
604
|
}, any>;
|
|
595
605
|
|
|
596
|
-
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 };
|
|
606
|
+
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, socialShareResourceSchema, termsAgreementSchema, userLicenseSchema };
|
package/dist/mongoose/index.mjs
CHANGED
|
@@ -36,9 +36,10 @@ import {
|
|
|
36
36
|
relatedPostSchema,
|
|
37
37
|
relationDatesSchema,
|
|
38
38
|
resourceRelationsSchema,
|
|
39
|
+
socialShareResourceSchema,
|
|
39
40
|
termsAgreementSchema,
|
|
40
41
|
userLicenseSchema
|
|
41
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-CLHRN4JW.mjs";
|
|
42
43
|
export {
|
|
43
44
|
APP_SETTINGS_ID,
|
|
44
45
|
AdModel,
|
|
@@ -77,6 +78,7 @@ export {
|
|
|
77
78
|
relatedPostSchema,
|
|
78
79
|
relationDatesSchema,
|
|
79
80
|
resourceRelationsSchema,
|
|
81
|
+
socialShareResourceSchema,
|
|
80
82
|
termsAgreementSchema,
|
|
81
83
|
userLicenseSchema
|
|
82
84
|
};
|
package/dist/service/index.cjs
CHANGED
|
@@ -3420,6 +3420,7 @@ var EnumUserRole = /* @__PURE__ */ ((EnumUserRole22) => {
|
|
|
3420
3420
|
EnumUserRole22["MARKETING"] = "marketing";
|
|
3421
3421
|
EnumUserRole22["MODERATOR"] = "moderator";
|
|
3422
3422
|
EnumUserRole22["SUPPORT"] = "support";
|
|
3423
|
+
EnumUserRole22["AFFILIATE"] = "affiliate";
|
|
3423
3424
|
return EnumUserRole22;
|
|
3424
3425
|
})(EnumUserRole || {});
|
|
3425
3426
|
var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
|
|
@@ -5020,6 +5021,12 @@ var REDEEMED_REWARD_FIELDS_FRAGMENT = gql`
|
|
|
5020
5021
|
redeemedAt
|
|
5021
5022
|
}
|
|
5022
5023
|
`;
|
|
5024
|
+
var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
5025
|
+
fragment AffiliateFields on AffiliateType {
|
|
5026
|
+
affiliateCode
|
|
5027
|
+
pointsAvailable
|
|
5028
|
+
}
|
|
5029
|
+
`;
|
|
5023
5030
|
var USER_FIELDS_FRAGMENT = gql`
|
|
5024
5031
|
fragment UserFields on UserType {
|
|
5025
5032
|
_id
|
|
@@ -5027,6 +5034,9 @@ var USER_FIELDS_FRAGMENT = gql`
|
|
|
5027
5034
|
associates {
|
|
5028
5035
|
...AssociatesFields
|
|
5029
5036
|
}
|
|
5037
|
+
affiliate {
|
|
5038
|
+
...AffiliateFields
|
|
5039
|
+
}
|
|
5030
5040
|
avatar {
|
|
5031
5041
|
...ResourceImageFields
|
|
5032
5042
|
}
|
|
@@ -5070,6 +5080,7 @@ var USER_FIELDS_FRAGMENT = gql`
|
|
|
5070
5080
|
${LICENCE_FIELDS_FRAGMENT}
|
|
5071
5081
|
${LOCATION_FIELDS_FRAGMENT}
|
|
5072
5082
|
${REDEEMED_REWARD_FIELDS_FRAGMENT}
|
|
5083
|
+
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5073
5084
|
`;
|
|
5074
5085
|
var STALL_TYPE_FIELDS_FRAGMENT = gql`
|
|
5075
5086
|
fragment StallTypeFields on StallTypeType {
|
|
@@ -5157,6 +5168,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
|
|
|
5157
5168
|
postType
|
|
5158
5169
|
}
|
|
5159
5170
|
`;
|
|
5171
|
+
var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
5172
|
+
fragment SocialShareResourceFields on SocialShareResourceType {
|
|
5173
|
+
qrCode {
|
|
5174
|
+
...ResourceImageFields
|
|
5175
|
+
}
|
|
5176
|
+
socialImage {
|
|
5177
|
+
...ResourceImageFields
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5180
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5181
|
+
`;
|
|
5160
5182
|
var EVENT_INFO = gql`
|
|
5161
5183
|
fragment EventInfoFields on EventInfoType {
|
|
5162
5184
|
_id
|
|
@@ -5252,6 +5274,12 @@ var EVENT = gql`
|
|
|
5252
5274
|
socialMedia {
|
|
5253
5275
|
...SocialMediaFields
|
|
5254
5276
|
}
|
|
5277
|
+
sharePublic {
|
|
5278
|
+
...SocialShareResourceFields
|
|
5279
|
+
}
|
|
5280
|
+
shareRelation {
|
|
5281
|
+
...SocialShareResourceFields
|
|
5282
|
+
}
|
|
5255
5283
|
slug
|
|
5256
5284
|
tags
|
|
5257
5285
|
termsAgreement {
|
|
@@ -5270,6 +5298,7 @@ var EVENT = gql`
|
|
|
5270
5298
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5271
5299
|
${RELATION_DATES_FRAGMENT}
|
|
5272
5300
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5301
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5273
5302
|
`;
|
|
5274
5303
|
var GET_EVENTS = gql`
|
|
5275
5304
|
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
@@ -5313,7 +5342,7 @@ var GET_EVENTS_BY_REGION = gql`
|
|
|
5313
5342
|
`;
|
|
5314
5343
|
var SEARCH_EVENTS = gql`
|
|
5315
5344
|
query searchEvents(
|
|
5316
|
-
$region: String
|
|
5345
|
+
$region: String!
|
|
5317
5346
|
$search: String
|
|
5318
5347
|
$tags: [String]
|
|
5319
5348
|
$dateStatus: EventDateStatusEnumType
|
|
@@ -5449,6 +5478,12 @@ var VENDOR = gql`
|
|
|
5449
5478
|
socialMedia {
|
|
5450
5479
|
...SocialMediaFields
|
|
5451
5480
|
}
|
|
5481
|
+
sharePublic {
|
|
5482
|
+
...SocialShareResourceFields
|
|
5483
|
+
}
|
|
5484
|
+
shareRelation {
|
|
5485
|
+
...SocialShareResourceFields
|
|
5486
|
+
}
|
|
5452
5487
|
termsAgreement {
|
|
5453
5488
|
...TermsAgreementFields
|
|
5454
5489
|
}
|
|
@@ -5469,6 +5504,7 @@ var VENDOR = gql`
|
|
|
5469
5504
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5470
5505
|
${RELATION_DATES_FRAGMENT}
|
|
5471
5506
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5507
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5472
5508
|
`;
|
|
5473
5509
|
var VENDOR_ATTRIBUTES_FRAGMENT = gql`
|
|
5474
5510
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -5572,7 +5608,7 @@ var GET_VENDORS_BY_REGION = gql`
|
|
|
5572
5608
|
${VENDOR}
|
|
5573
5609
|
`;
|
|
5574
5610
|
var SEARCH_VENDORS = gql`
|
|
5575
|
-
query searchVendors($search: String!, $region: String) {
|
|
5611
|
+
query searchVendors($search: String!, $region: String!) {
|
|
5576
5612
|
vendorSearch(search: $search, region: $region) {
|
|
5577
5613
|
...VendorFields
|
|
5578
5614
|
}
|
|
@@ -5656,6 +5692,9 @@ var PARTNER = gql`
|
|
|
5656
5692
|
...SocialMediaFields
|
|
5657
5693
|
}
|
|
5658
5694
|
slug
|
|
5695
|
+
sharePublic {
|
|
5696
|
+
...SocialShareResourceFields
|
|
5697
|
+
}
|
|
5659
5698
|
termsAgreement {
|
|
5660
5699
|
...TermsAgreementFields
|
|
5661
5700
|
}
|
|
@@ -5670,6 +5709,7 @@ var PARTNER = gql`
|
|
|
5670
5709
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5671
5710
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5672
5711
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5712
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5673
5713
|
`;
|
|
5674
5714
|
var GET_PARTNERS = gql`
|
|
5675
5715
|
query getPartners {
|
|
@@ -5699,7 +5739,7 @@ var GET_PARTNERS_BY_REGION = gql`
|
|
|
5699
5739
|
${PARTNER}
|
|
5700
5740
|
`;
|
|
5701
5741
|
var SEARCH_PARTNERS = gql`
|
|
5702
|
-
query searchPartners($search: String!, $region: String) {
|
|
5742
|
+
query searchPartners($search: String!, $region: String!) {
|
|
5703
5743
|
partnersSearch(search: $search, region: $region) {
|
|
5704
5744
|
...PartnerFields
|
|
5705
5745
|
}
|
|
@@ -5866,11 +5906,15 @@ var POST_FIELDS_FRAGMENT = gql`
|
|
|
5866
5906
|
tags
|
|
5867
5907
|
title
|
|
5868
5908
|
slug
|
|
5909
|
+
sharePublic {
|
|
5910
|
+
...SocialShareResourceFields
|
|
5911
|
+
}
|
|
5869
5912
|
updatedAt
|
|
5870
5913
|
}
|
|
5871
5914
|
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
5872
5915
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5873
5916
|
${POST_RESOURCE_FIELDS_FRAGMENT}
|
|
5917
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5874
5918
|
`;
|
|
5875
5919
|
var GET_POSTS = gql`
|
|
5876
5920
|
query getPosts {
|
|
@@ -7578,7 +7622,7 @@ async function saveNotificationsInDb(payload) {
|
|
|
7578
7622
|
// src/service/sendPushNotifications.ts
|
|
7579
7623
|
var import_expo_server_sdk = require("expo-server-sdk");
|
|
7580
7624
|
|
|
7581
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
7625
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-KZTOISPA.mjs
|
|
7582
7626
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
7583
7627
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
7584
7628
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -8317,6 +8361,14 @@ var baseResourceFields = {
|
|
|
8317
8361
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
8318
8362
|
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
8319
8363
|
};
|
|
8364
|
+
var socialShareResourceSchema = new MongooseSchema8(
|
|
8365
|
+
{
|
|
8366
|
+
qrCode: { required: true, type: ResourceImageTypeSchema },
|
|
8367
|
+
socialImage: { required: true, type: ResourceImageTypeSchema }
|
|
8368
|
+
},
|
|
8369
|
+
{ _id: false }
|
|
8370
|
+
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
8371
|
+
);
|
|
8320
8372
|
|
|
8321
8373
|
// src/mongoose/GoogleImportedMarket.ts
|
|
8322
8374
|
var import_mongoose10 = __toESM(require("mongoose"));
|
|
@@ -8523,9 +8575,20 @@ var redeemedRewardSchema = new MongooseSchema11(
|
|
|
8523
8575
|
},
|
|
8524
8576
|
{ _id: false }
|
|
8525
8577
|
);
|
|
8578
|
+
var affiliateSchema = new MongooseSchema11(
|
|
8579
|
+
{
|
|
8580
|
+
affiliateCode: { required: true, type: String },
|
|
8581
|
+
pointsAvailable: { required: true, type: Number }
|
|
8582
|
+
},
|
|
8583
|
+
{ _id: false }
|
|
8584
|
+
);
|
|
8526
8585
|
var schema7 = new MongooseSchema11(
|
|
8527
8586
|
{
|
|
8528
8587
|
active: { default: false, required: true, type: Boolean },
|
|
8588
|
+
affiliate: {
|
|
8589
|
+
required: false,
|
|
8590
|
+
type: affiliateSchema
|
|
8591
|
+
},
|
|
8529
8592
|
associates: {
|
|
8530
8593
|
required: false,
|
|
8531
8594
|
type: [associatesSchema]
|
|
@@ -8719,6 +8782,8 @@ var schema9 = new MongooseSchema13(
|
|
|
8719
8782
|
required: false,
|
|
8720
8783
|
type: [resourceRelationsSchema]
|
|
8721
8784
|
},
|
|
8785
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8786
|
+
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
8722
8787
|
unregisteredVendorId: {
|
|
8723
8788
|
ref: "UnregisteredVendor",
|
|
8724
8789
|
required: false,
|
|
@@ -8870,6 +8935,8 @@ var schema12 = new MongooseSchema16(
|
|
|
8870
8935
|
required: false,
|
|
8871
8936
|
type: [resourceRelationsSchema]
|
|
8872
8937
|
},
|
|
8938
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8939
|
+
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
8873
8940
|
tags: { required: true, type: [String] }
|
|
8874
8941
|
},
|
|
8875
8942
|
{ timestamps: true }
|
|
@@ -8900,7 +8967,8 @@ var schema13 = new MongooseSchema17(
|
|
|
8900
8967
|
enum: Object.values(EnumPartnerType),
|
|
8901
8968
|
required: true,
|
|
8902
8969
|
type: String
|
|
8903
|
-
}
|
|
8970
|
+
},
|
|
8971
|
+
sharePublic: { required: false, type: socialShareResourceSchema }
|
|
8904
8972
|
},
|
|
8905
8973
|
{ timestamps: true }
|
|
8906
8974
|
);
|
|
@@ -8963,6 +9031,7 @@ var schema14 = new MongooseSchema18(
|
|
|
8963
9031
|
required: false,
|
|
8964
9032
|
type: resourceSchema
|
|
8965
9033
|
},
|
|
9034
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8966
9035
|
slug: { required: true, type: String },
|
|
8967
9036
|
tags: { default: [], required: false, type: [String] },
|
|
8968
9037
|
title: { required: true, type: String }
|