@timardex/cluemart-server-shared 1.0.167 → 1.0.169
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-PJ4BVYZM.mjs → chunk-65P75J6Q.mjs} +3 -9
- package/dist/chunk-65P75J6Q.mjs.map +1 -0
- package/dist/index.cjs +2 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -9
- package/dist/index.d.ts +10 -9
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +2 -8
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +10 -9
- package/dist/mongoose/index.d.ts +10 -9
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +2 -8
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-PJ4BVYZM.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType,
|
|
2
|
+
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
export { default as mongoose } from 'mongoose';
|
|
5
5
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
@@ -571,13 +571,14 @@ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {},
|
|
|
571
571
|
__v: number;
|
|
572
572
|
}, any>;
|
|
573
573
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
574
|
+
type SchemaUnregisteredVendorInvitationType = Omit<UnregisteredVendorInvitationType, "inviterId"> & {
|
|
575
|
+
inviterId: ObjectId;
|
|
576
|
+
};
|
|
577
|
+
type SchemaUnregisteredVendorType = Omit<UnregisteredVendorType, "invitations"> & {
|
|
578
|
+
invitations: SchemaUnregisteredVendorInvitationType[];
|
|
579
|
+
};
|
|
580
|
+
declare const UnregisteredVendorModel: mongoose.Model<SchemaUnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUnregisteredVendorType, {}, {}> & Omit<UnregisteredVendorType, "invitations"> & {
|
|
581
|
+
invitations: SchemaUnregisteredVendorInvitationType[];
|
|
581
582
|
} & Required<{
|
|
582
583
|
_id: string;
|
|
583
584
|
}> & {
|
|
@@ -737,4 +738,4 @@ declare function findEventOrImportedMarketById(resourceId: ObjectId | string | n
|
|
|
737
738
|
*/
|
|
738
739
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
739
740
|
|
|
740
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateRelationDatesToUnavailable, updateVendorBasedOnUserLicense, userLicenseSchema };
|
|
741
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateRelationDatesToUnavailable, updateVendorBasedOnUserLicense, userLicenseSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType,
|
|
2
|
+
import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
export { default as mongoose } from 'mongoose';
|
|
5
5
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
@@ -571,13 +571,14 @@ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {},
|
|
|
571
571
|
__v: number;
|
|
572
572
|
}, any>;
|
|
573
573
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
574
|
+
type SchemaUnregisteredVendorInvitationType = Omit<UnregisteredVendorInvitationType, "inviterId"> & {
|
|
575
|
+
inviterId: ObjectId;
|
|
576
|
+
};
|
|
577
|
+
type SchemaUnregisteredVendorType = Omit<UnregisteredVendorType, "invitations"> & {
|
|
578
|
+
invitations: SchemaUnregisteredVendorInvitationType[];
|
|
579
|
+
};
|
|
580
|
+
declare const UnregisteredVendorModel: mongoose.Model<SchemaUnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUnregisteredVendorType, {}, {}> & Omit<UnregisteredVendorType, "invitations"> & {
|
|
581
|
+
invitations: SchemaUnregisteredVendorInvitationType[];
|
|
581
582
|
} & Required<{
|
|
582
583
|
_id: string;
|
|
583
584
|
}> & {
|
|
@@ -737,4 +738,4 @@ declare function findEventOrImportedMarketById(resourceId: ObjectId | string | n
|
|
|
737
738
|
*/
|
|
738
739
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
739
740
|
|
|
740
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateRelationDatesToUnavailable, updateVendorBasedOnUserLicense, userLicenseSchema };
|
|
741
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateRelationDatesToUnavailable, updateVendorBasedOnUserLicense, userLicenseSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -8580,7 +8580,6 @@ var EVENT = gql`
|
|
|
8580
8580
|
rating
|
|
8581
8581
|
reviewCount
|
|
8582
8582
|
rainOrShine
|
|
8583
|
-
unregisteredVendorIds
|
|
8584
8583
|
socialMedia {
|
|
8585
8584
|
...SocialMediaFields
|
|
8586
8585
|
}
|
|
@@ -8828,7 +8827,6 @@ var UNREGISTERED_VENDOR = gql`
|
|
|
8828
8827
|
claimed
|
|
8829
8828
|
createdAt
|
|
8830
8829
|
deletedAt
|
|
8831
|
-
email
|
|
8832
8830
|
invitations {
|
|
8833
8831
|
...UnregisteredVendorInvitationFields
|
|
8834
8832
|
}
|
|
@@ -10693,7 +10691,6 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
10693
10691
|
var unregisteredVendorSchema = create$3().shape({
|
|
10694
10692
|
categoryIds: create$2().of(create$6().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
10695
10693
|
dateTime: create$2().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
|
|
10696
|
-
email: emailOptionalSchema,
|
|
10697
10694
|
inviterId: create$6().required("Inviter ID is required"),
|
|
10698
10695
|
name: create$6().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required")
|
|
10699
10696
|
});
|
|
@@ -12231,7 +12228,7 @@ var invitationSchema = new MongooseSchema15(
|
|
|
12231
12228
|
inviterId: {
|
|
12232
12229
|
ref: "Event",
|
|
12233
12230
|
required: true,
|
|
12234
|
-
type:
|
|
12231
|
+
type: mongoose15.Schema.Types.ObjectId
|
|
12235
12232
|
}
|
|
12236
12233
|
},
|
|
12237
12234
|
{ _id: false }
|
|
@@ -12241,13 +12238,11 @@ var schema11 = new MongooseSchema15(
|
|
|
12241
12238
|
categoryIds: { required: true, type: [String] },
|
|
12242
12239
|
claimed: { default: false, required: true, type: Boolean },
|
|
12243
12240
|
deletedAt: { default: null, required: false, type: Date },
|
|
12244
|
-
email: { required: true, type: String },
|
|
12245
12241
|
invitations: { required: true, type: [invitationSchema] },
|
|
12246
12242
|
name: { required: true, type: String }
|
|
12247
12243
|
},
|
|
12248
12244
|
{ timestamps: true }
|
|
12249
12245
|
);
|
|
12250
|
-
schema11.index({ email: 1 }, { unique: true });
|
|
12251
12246
|
schema11.index({ name: 1 });
|
|
12252
12247
|
var UnregisteredVendorModel = mongoose15.models.UnregisteredVendor || mongoose15.model("UnregisteredVendor", schema11);
|
|
12253
12248
|
|
|
@@ -12287,8 +12282,7 @@ var schema12 = new MongooseSchema16(
|
|
|
12287
12282
|
required: false,
|
|
12288
12283
|
type: [resourceRelationsSchema]
|
|
12289
12284
|
},
|
|
12290
|
-
tags: { required: true, type: [String] }
|
|
12291
|
-
unregisteredVendorIds: { default: [], required: false, type: [String] }
|
|
12285
|
+
tags: { required: true, type: [String] }
|
|
12292
12286
|
},
|
|
12293
12287
|
{ timestamps: true }
|
|
12294
12288
|
);
|