@timardex/cluemart-server-shared 1.0.165 → 1.0.166
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-5F477CH2.mjs → chunk-W5EVEI2Y.mjs} +7 -22
- package/dist/chunk-W5EVEI2Y.mjs.map +1 -0
- package/dist/index.cjs +6 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +6 -21
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +6 -21
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +3 -2
- package/dist/mongoose/index.d.ts +3 -2
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +6 -21
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-5F477CH2.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, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorType, UnregisteredVendorInvitationType, 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-Ctmtatmi.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-Ctmtatmi.mjs';
|
|
@@ -450,11 +450,12 @@ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {},
|
|
|
450
450
|
__v: number;
|
|
451
451
|
}, any>;
|
|
452
452
|
|
|
453
|
-
declare const UnregisteredVendorModel: mongoose.Model<UnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, UnregisteredVendorType, {}, {}> & _timardex_cluemart_shared.UnregisteredVendorFormData & {
|
|
453
|
+
declare const UnregisteredVendorModel: mongoose.Model<UnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, UnregisteredVendorType, {}, {}> & Omit<_timardex_cluemart_shared.UnregisteredVendorFormData, "dateTime" | "inviterId"> & {
|
|
454
454
|
_id: string;
|
|
455
455
|
createdAt: Date;
|
|
456
456
|
deletedAt: Date | null;
|
|
457
457
|
updatedAt: Date | null;
|
|
458
|
+
invitations: UnregisteredVendorInvitationType[];
|
|
458
459
|
} & Required<{
|
|
459
460
|
_id: string;
|
|
460
461
|
}> & {
|
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, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorType, UnregisteredVendorInvitationType, 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-Ctmtatmi.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-Ctmtatmi.js';
|
|
@@ -450,11 +450,12 @@ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {},
|
|
|
450
450
|
__v: number;
|
|
451
451
|
}, any>;
|
|
452
452
|
|
|
453
|
-
declare const UnregisteredVendorModel: mongoose.Model<UnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, UnregisteredVendorType, {}, {}> & _timardex_cluemart_shared.UnregisteredVendorFormData & {
|
|
453
|
+
declare const UnregisteredVendorModel: mongoose.Model<UnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, UnregisteredVendorType, {}, {}> & Omit<_timardex_cluemart_shared.UnregisteredVendorFormData, "dateTime" | "inviterId"> & {
|
|
454
454
|
_id: string;
|
|
455
455
|
createdAt: Date;
|
|
456
456
|
deletedAt: Date | null;
|
|
457
457
|
updatedAt: Date | null;
|
|
458
|
+
invitations: UnregisteredVendorInvitationType[];
|
|
458
459
|
} & Required<{
|
|
459
460
|
_id: string;
|
|
460
461
|
}> & {
|
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -8536,21 +8536,6 @@ var EVENT_LIST_ITEM = gql`
|
|
|
8536
8536
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
8537
8537
|
${RELATION_DATES_FRAGMENT}
|
|
8538
8538
|
`;
|
|
8539
|
-
var UNREGISTERED_VENDOR_LIST_ITEM_FIELDS_FRAGMENT = gql`
|
|
8540
|
-
fragment UnregisteredVendorListItemFields on UnregisteredVendorListItemType {
|
|
8541
|
-
_id
|
|
8542
|
-
categoryIds
|
|
8543
|
-
email
|
|
8544
|
-
invitations {
|
|
8545
|
-
dateTime {
|
|
8546
|
-
...DateTimeFields
|
|
8547
|
-
}
|
|
8548
|
-
eventId
|
|
8549
|
-
}
|
|
8550
|
-
name
|
|
8551
|
-
}
|
|
8552
|
-
${DATETIME_FIELDS_FRAGMENT}
|
|
8553
|
-
`;
|
|
8554
8539
|
var EVENT_INFO = gql`
|
|
8555
8540
|
fragment EventInfoFields on EventInfoType {
|
|
8556
8541
|
_id
|
|
@@ -8874,12 +8859,10 @@ var VENDOR_INFO = gql`
|
|
|
8874
8859
|
`;
|
|
8875
8860
|
var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql`
|
|
8876
8861
|
fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
...DateTimeFields
|
|
8880
|
-
}
|
|
8881
|
-
eventId
|
|
8862
|
+
dateTime {
|
|
8863
|
+
...DateTimeFields
|
|
8882
8864
|
}
|
|
8865
|
+
inviterId
|
|
8883
8866
|
}
|
|
8884
8867
|
${DATETIME_FIELDS_FRAGMENT}
|
|
8885
8868
|
`;
|
|
@@ -10753,7 +10736,9 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
10753
10736
|
});
|
|
10754
10737
|
var unregisteredVendorSchema = create$3().shape({
|
|
10755
10738
|
categoryIds: create$2().of(create$6().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
10739
|
+
dateTime: create$2().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
|
|
10756
10740
|
email: emailOptionalSchema,
|
|
10741
|
+
inviterId: create$6().required("Inviter ID is required"),
|
|
10757
10742
|
name: create$6().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required")
|
|
10758
10743
|
});
|
|
10759
10744
|
var vendorInfoSchema = create$3().shape({
|
|
@@ -12421,7 +12406,7 @@ var MongooseSchema15 = import_mongoose16.default.Schema;
|
|
|
12421
12406
|
var invitationSchema = new MongooseSchema15(
|
|
12422
12407
|
{
|
|
12423
12408
|
dateTime: { required: true, type: [dateTimeSchema3] },
|
|
12424
|
-
|
|
12409
|
+
inviterId: {
|
|
12425
12410
|
ref: "Event",
|
|
12426
12411
|
required: true,
|
|
12427
12412
|
type: String
|