@timardex/cluemart-server-shared 1.0.259 → 1.0.260
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-JFVETLOC.mjs} +50 -2
- package/dist/chunk-JFVETLOC.mjs.map +1 -0
- package/dist/index.cjs +50 -1
- 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 +49 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +50 -1
- 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 +48 -1
- 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-JFVETLOC.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
|
@@ -5157,6 +5157,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
|
|
|
5157
5157
|
postType
|
|
5158
5158
|
}
|
|
5159
5159
|
`;
|
|
5160
|
+
var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
5161
|
+
fragment SocialShareResourceFields on SocialShareResourceType {
|
|
5162
|
+
qrCode {
|
|
5163
|
+
...ResourceImageFields
|
|
5164
|
+
}
|
|
5165
|
+
socialImage {
|
|
5166
|
+
...ResourceImageFields
|
|
5167
|
+
}
|
|
5168
|
+
}
|
|
5169
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5170
|
+
`;
|
|
5160
5171
|
var EVENT_INFO = gql`
|
|
5161
5172
|
fragment EventInfoFields on EventInfoType {
|
|
5162
5173
|
_id
|
|
@@ -5252,6 +5263,12 @@ var EVENT = gql`
|
|
|
5252
5263
|
socialMedia {
|
|
5253
5264
|
...SocialMediaFields
|
|
5254
5265
|
}
|
|
5266
|
+
sharePublic {
|
|
5267
|
+
...SocialShareResourceFields
|
|
5268
|
+
}
|
|
5269
|
+
shareRelation {
|
|
5270
|
+
...SocialShareResourceFields
|
|
5271
|
+
}
|
|
5255
5272
|
slug
|
|
5256
5273
|
tags
|
|
5257
5274
|
termsAgreement {
|
|
@@ -5270,6 +5287,7 @@ var EVENT = gql`
|
|
|
5270
5287
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5271
5288
|
${RELATION_DATES_FRAGMENT}
|
|
5272
5289
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5290
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5273
5291
|
`;
|
|
5274
5292
|
var GET_EVENTS = gql`
|
|
5275
5293
|
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
@@ -5449,6 +5467,12 @@ var VENDOR = gql`
|
|
|
5449
5467
|
socialMedia {
|
|
5450
5468
|
...SocialMediaFields
|
|
5451
5469
|
}
|
|
5470
|
+
sharePublic {
|
|
5471
|
+
...SocialShareResourceFields
|
|
5472
|
+
}
|
|
5473
|
+
shareRelation {
|
|
5474
|
+
...SocialShareResourceFields
|
|
5475
|
+
}
|
|
5452
5476
|
termsAgreement {
|
|
5453
5477
|
...TermsAgreementFields
|
|
5454
5478
|
}
|
|
@@ -5469,6 +5493,7 @@ var VENDOR = gql`
|
|
|
5469
5493
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5470
5494
|
${RELATION_DATES_FRAGMENT}
|
|
5471
5495
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5496
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5472
5497
|
`;
|
|
5473
5498
|
var VENDOR_ATTRIBUTES_FRAGMENT = gql`
|
|
5474
5499
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -5656,6 +5681,9 @@ var PARTNER = gql`
|
|
|
5656
5681
|
...SocialMediaFields
|
|
5657
5682
|
}
|
|
5658
5683
|
slug
|
|
5684
|
+
sharePublic {
|
|
5685
|
+
...SocialShareResourceFields
|
|
5686
|
+
}
|
|
5659
5687
|
termsAgreement {
|
|
5660
5688
|
...TermsAgreementFields
|
|
5661
5689
|
}
|
|
@@ -5670,6 +5698,7 @@ var PARTNER = gql`
|
|
|
5670
5698
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5671
5699
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
5672
5700
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
5701
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5673
5702
|
`;
|
|
5674
5703
|
var GET_PARTNERS = gql`
|
|
5675
5704
|
query getPartners {
|
|
@@ -5866,11 +5895,15 @@ var POST_FIELDS_FRAGMENT = gql`
|
|
|
5866
5895
|
tags
|
|
5867
5896
|
title
|
|
5868
5897
|
slug
|
|
5898
|
+
sharePublic {
|
|
5899
|
+
...SocialShareResourceFields
|
|
5900
|
+
}
|
|
5869
5901
|
updatedAt
|
|
5870
5902
|
}
|
|
5871
5903
|
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
5872
5904
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5873
5905
|
${POST_RESOURCE_FIELDS_FRAGMENT}
|
|
5906
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
5874
5907
|
`;
|
|
5875
5908
|
var GET_POSTS = gql`
|
|
5876
5909
|
query getPosts {
|
|
@@ -8317,6 +8350,14 @@ var baseResourceFields = {
|
|
|
8317
8350
|
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
8318
8351
|
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
8319
8352
|
};
|
|
8353
|
+
var socialShareResourceSchema = new MongooseSchema8(
|
|
8354
|
+
{
|
|
8355
|
+
qrCode: { required: true, type: ResourceImageTypeSchema },
|
|
8356
|
+
socialImage: { required: true, type: ResourceImageTypeSchema }
|
|
8357
|
+
},
|
|
8358
|
+
{ _id: false }
|
|
8359
|
+
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
8360
|
+
);
|
|
8320
8361
|
|
|
8321
8362
|
// src/mongoose/GoogleImportedMarket.ts
|
|
8322
8363
|
var import_mongoose10 = __toESM(require("mongoose"));
|
|
@@ -8719,6 +8760,8 @@ var schema9 = new MongooseSchema13(
|
|
|
8719
8760
|
required: false,
|
|
8720
8761
|
type: [resourceRelationsSchema]
|
|
8721
8762
|
},
|
|
8763
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8764
|
+
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
8722
8765
|
unregisteredVendorId: {
|
|
8723
8766
|
ref: "UnregisteredVendor",
|
|
8724
8767
|
required: false,
|
|
@@ -8870,6 +8913,8 @@ var schema12 = new MongooseSchema16(
|
|
|
8870
8913
|
required: false,
|
|
8871
8914
|
type: [resourceRelationsSchema]
|
|
8872
8915
|
},
|
|
8916
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8917
|
+
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
8873
8918
|
tags: { required: true, type: [String] }
|
|
8874
8919
|
},
|
|
8875
8920
|
{ timestamps: true }
|
|
@@ -8900,7 +8945,8 @@ var schema13 = new MongooseSchema17(
|
|
|
8900
8945
|
enum: Object.values(EnumPartnerType),
|
|
8901
8946
|
required: true,
|
|
8902
8947
|
type: String
|
|
8903
|
-
}
|
|
8948
|
+
},
|
|
8949
|
+
sharePublic: { required: false, type: socialShareResourceSchema }
|
|
8904
8950
|
},
|
|
8905
8951
|
{ timestamps: true }
|
|
8906
8952
|
);
|
|
@@ -8963,6 +9009,7 @@ var schema14 = new MongooseSchema18(
|
|
|
8963
9009
|
required: false,
|
|
8964
9010
|
type: resourceSchema
|
|
8965
9011
|
},
|
|
9012
|
+
sharePublic: { required: false, type: socialShareResourceSchema },
|
|
8966
9013
|
slug: { required: true, type: String },
|
|
8967
9014
|
tags: { default: [], required: false, type: [String] },
|
|
8968
9015
|
title: { required: true, type: String }
|