@timardex/cluemart-server-shared 1.0.165 → 1.0.167
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-PJ4BVYZM.mjs} +9 -22
- package/dist/chunk-PJ4BVYZM.mjs.map +1 -0
- package/dist/index.cjs +8 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +8 -21
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +8 -21
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +4 -2
- package/dist/mongoose/index.d.ts +4 -2
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +8 -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,10 +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
|
+
claimed: boolean;
|
|
455
456
|
createdAt: Date;
|
|
456
457
|
deletedAt: Date | null;
|
|
458
|
+
invitations: UnregisteredVendorInvitationType[];
|
|
457
459
|
updatedAt: Date | null;
|
|
458
460
|
} & Required<{
|
|
459
461
|
_id: string;
|
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,10 +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
|
+
claimed: boolean;
|
|
455
456
|
createdAt: Date;
|
|
456
457
|
deletedAt: Date | null;
|
|
458
|
+
invitations: UnregisteredVendorInvitationType[];
|
|
457
459
|
updatedAt: Date | null;
|
|
458
460
|
} & Required<{
|
|
459
461
|
_id: string;
|
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
|
`;
|
|
@@ -8887,6 +8870,7 @@ var UNREGISTERED_VENDOR = gql`
|
|
|
8887
8870
|
fragment UnregisteredVendorFields on UnregisteredVendorType {
|
|
8888
8871
|
_id
|
|
8889
8872
|
categoryIds
|
|
8873
|
+
claimed
|
|
8890
8874
|
createdAt
|
|
8891
8875
|
deletedAt
|
|
8892
8876
|
email
|
|
@@ -10753,7 +10737,9 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
10753
10737
|
});
|
|
10754
10738
|
var unregisteredVendorSchema = create$3().shape({
|
|
10755
10739
|
categoryIds: create$2().of(create$6().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
10740
|
+
dateTime: create$2().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
|
|
10756
10741
|
email: emailOptionalSchema,
|
|
10742
|
+
inviterId: create$6().required("Inviter ID is required"),
|
|
10757
10743
|
name: create$6().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required")
|
|
10758
10744
|
});
|
|
10759
10745
|
var vendorInfoSchema = create$3().shape({
|
|
@@ -12421,7 +12407,7 @@ var MongooseSchema15 = import_mongoose16.default.Schema;
|
|
|
12421
12407
|
var invitationSchema = new MongooseSchema15(
|
|
12422
12408
|
{
|
|
12423
12409
|
dateTime: { required: true, type: [dateTimeSchema3] },
|
|
12424
|
-
|
|
12410
|
+
inviterId: {
|
|
12425
12411
|
ref: "Event",
|
|
12426
12412
|
required: true,
|
|
12427
12413
|
type: String
|
|
@@ -12432,6 +12418,7 @@ var invitationSchema = new MongooseSchema15(
|
|
|
12432
12418
|
var schema11 = new MongooseSchema15(
|
|
12433
12419
|
{
|
|
12434
12420
|
categoryIds: { required: true, type: [String] },
|
|
12421
|
+
claimed: { default: false, required: true, type: Boolean },
|
|
12435
12422
|
deletedAt: { default: null, required: false, type: Date },
|
|
12436
12423
|
email: { required: true, type: String },
|
|
12437
12424
|
invitations: { required: true, type: [invitationSchema] },
|