@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/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, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, DateTimeWithPriceType } 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, UnregisteredVendorType, UnregisteredVendorInvitationType, 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,10 +571,12 @@ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {},
571
571
  __v: number;
572
572
  }, any>;
573
573
 
574
- declare const UnregisteredVendorModel: mongoose.Model<UnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, UnregisteredVendorType, {}, {}> & _timardex_cluemart_shared.UnregisteredVendorFormData & {
574
+ declare const UnregisteredVendorModel: mongoose.Model<UnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, UnregisteredVendorType, {}, {}> & Omit<_timardex_cluemart_shared.UnregisteredVendorFormData, "dateTime" | "inviterId"> & {
575
575
  _id: string;
576
+ claimed: boolean;
576
577
  createdAt: Date;
577
578
  deletedAt: Date | null;
579
+ invitations: UnregisteredVendorInvitationType[];
578
580
  updatedAt: Date | null;
579
581
  } & Required<{
580
582
  _id: string;
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, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, DateTimeWithPriceType } 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, UnregisteredVendorType, UnregisteredVendorInvitationType, 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,10 +571,12 @@ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {},
571
571
  __v: number;
572
572
  }, any>;
573
573
 
574
- declare const UnregisteredVendorModel: mongoose.Model<UnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, UnregisteredVendorType, {}, {}> & _timardex_cluemart_shared.UnregisteredVendorFormData & {
574
+ declare const UnregisteredVendorModel: mongoose.Model<UnregisteredVendorType, {}, {}, {}, mongoose.Document<unknown, {}, UnregisteredVendorType, {}, {}> & Omit<_timardex_cluemart_shared.UnregisteredVendorFormData, "dateTime" | "inviterId"> & {
575
575
  _id: string;
576
+ claimed: boolean;
576
577
  createdAt: Date;
577
578
  deletedAt: Date | null;
579
+ invitations: UnregisteredVendorInvitationType[];
578
580
  updatedAt: Date | null;
579
581
  } & Required<{
580
582
  _id: string;
package/dist/index.mjs CHANGED
@@ -8491,21 +8491,6 @@ var EVENT_LIST_ITEM = gql`
8491
8491
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8492
8492
  ${RELATION_DATES_FRAGMENT}
8493
8493
  `;
8494
- var UNREGISTERED_VENDOR_LIST_ITEM_FIELDS_FRAGMENT = gql`
8495
- fragment UnregisteredVendorListItemFields on UnregisteredVendorListItemType {
8496
- _id
8497
- categoryIds
8498
- email
8499
- invitations {
8500
- dateTime {
8501
- ...DateTimeFields
8502
- }
8503
- eventId
8504
- }
8505
- name
8506
- }
8507
- ${DATETIME_FIELDS_FRAGMENT}
8508
- `;
8509
8494
  var EVENT_INFO = gql`
8510
8495
  fragment EventInfoFields on EventInfoType {
8511
8496
  _id
@@ -8829,12 +8814,10 @@ var VENDOR_INFO = gql`
8829
8814
  `;
8830
8815
  var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql`
8831
8816
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
8832
- invitations {
8833
- dateTime {
8834
- ...DateTimeFields
8835
- }
8836
- eventId
8817
+ dateTime {
8818
+ ...DateTimeFields
8837
8819
  }
8820
+ inviterId
8838
8821
  }
8839
8822
  ${DATETIME_FIELDS_FRAGMENT}
8840
8823
  `;
@@ -8842,6 +8825,7 @@ var UNREGISTERED_VENDOR = gql`
8842
8825
  fragment UnregisteredVendorFields on UnregisteredVendorType {
8843
8826
  _id
8844
8827
  categoryIds
8828
+ claimed
8845
8829
  createdAt
8846
8830
  deletedAt
8847
8831
  email
@@ -10708,7 +10692,9 @@ var vendorSchema = globalResourceSchema.shape({
10708
10692
  });
10709
10693
  var unregisteredVendorSchema = create$3().shape({
10710
10694
  categoryIds: create$2().of(create$6().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
10695
+ dateTime: create$2().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
10711
10696
  email: emailOptionalSchema,
10697
+ inviterId: create$6().required("Inviter ID is required"),
10712
10698
  name: create$6().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required")
10713
10699
  });
10714
10700
  var vendorInfoSchema = create$3().shape({
@@ -12242,7 +12228,7 @@ var MongooseSchema15 = mongoose15.Schema;
12242
12228
  var invitationSchema = new MongooseSchema15(
12243
12229
  {
12244
12230
  dateTime: { required: true, type: [dateTimeSchema3] },
12245
- eventId: {
12231
+ inviterId: {
12246
12232
  ref: "Event",
12247
12233
  required: true,
12248
12234
  type: String
@@ -12253,6 +12239,7 @@ var invitationSchema = new MongooseSchema15(
12253
12239
  var schema11 = new MongooseSchema15(
12254
12240
  {
12255
12241
  categoryIds: { required: true, type: [String] },
12242
+ claimed: { default: false, required: true, type: Boolean },
12256
12243
  deletedAt: { default: null, required: false, type: Date },
12257
12244
  email: { required: true, type: String },
12258
12245
  invitations: { required: true, type: [invitationSchema] },