@timardex/cluemart-shared 1.1.89 → 1.1.91

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
@@ -108,7 +108,7 @@ declare enum EnumSocialMedia {
108
108
  type RelationDate = {
109
109
  lastUpdateBy: {
110
110
  resourceId: string;
111
- userId: string;
111
+ userEmail: string;
112
112
  };
113
113
  paymentReference?: string;
114
114
  stallType: StallType | null;
@@ -268,6 +268,10 @@ type PartnerType = {
268
268
  resourceType: EnumResourceType;
269
269
  licence: EnumUserLicence;
270
270
  };
271
+ type OwnerType = {
272
+ email: string;
273
+ userId: string;
274
+ };
271
275
  interface BaseResourceTypeFormData {
272
276
  _id?: string;
273
277
  active: boolean;
@@ -283,11 +287,8 @@ interface BaseResourceTypeFormData {
283
287
  region: string;
284
288
  socialMedia?: SocialMediaType[] | null;
285
289
  partners?: PartnerType[] | null;
290
+ owner?: OwnerType | null;
286
291
  }
287
- type OwnerType = {
288
- email: string;
289
- userId: string;
290
- };
291
292
  type PosterUsageType = {
292
293
  month: string;
293
294
  count: number;
@@ -1254,7 +1255,7 @@ declare const defaultEventFormValues: EventFormData;
1254
1255
  declare const defaultEventInfoFormValues: EventInfoFormData;
1255
1256
  declare const defaultVendorFormValues: VendorFormData;
1256
1257
  declare const defaultVendorInfoFormValues: VendorInfoFormData;
1257
- declare function mapBaseResourceTypeToFormData(data: EventFormData | VendorFormData): BaseResourceTypeFormData;
1258
+ declare function mapBaseResourceTypeToFormData(data: BaseResourceTypeFormData): BaseResourceTypeFormData;
1258
1259
 
1259
1260
  declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
1260
1261
 
package/dist/index.d.ts CHANGED
@@ -108,7 +108,7 @@ declare enum EnumSocialMedia {
108
108
  type RelationDate = {
109
109
  lastUpdateBy: {
110
110
  resourceId: string;
111
- userId: string;
111
+ userEmail: string;
112
112
  };
113
113
  paymentReference?: string;
114
114
  stallType: StallType | null;
@@ -268,6 +268,10 @@ type PartnerType = {
268
268
  resourceType: EnumResourceType;
269
269
  licence: EnumUserLicence;
270
270
  };
271
+ type OwnerType = {
272
+ email: string;
273
+ userId: string;
274
+ };
271
275
  interface BaseResourceTypeFormData {
272
276
  _id?: string;
273
277
  active: boolean;
@@ -283,11 +287,8 @@ interface BaseResourceTypeFormData {
283
287
  region: string;
284
288
  socialMedia?: SocialMediaType[] | null;
285
289
  partners?: PartnerType[] | null;
290
+ owner?: OwnerType | null;
286
291
  }
287
- type OwnerType = {
288
- email: string;
289
- userId: string;
290
- };
291
292
  type PosterUsageType = {
292
293
  month: string;
293
294
  count: number;
@@ -1254,7 +1255,7 @@ declare const defaultEventFormValues: EventFormData;
1254
1255
  declare const defaultEventInfoFormValues: EventInfoFormData;
1255
1256
  declare const defaultVendorFormValues: VendorFormData;
1256
1257
  declare const defaultVendorInfoFormValues: VendorInfoFormData;
1257
- declare function mapBaseResourceTypeToFormData(data: EventFormData | VendorFormData): BaseResourceTypeFormData;
1258
+ declare function mapBaseResourceTypeToFormData(data: BaseResourceTypeFormData): BaseResourceTypeFormData;
1258
1259
 
1259
1260
  declare function useTestersForm(data?: TestersFormData): CreateTestersFormData;
1260
1261
 
package/dist/index.mjs CHANGED
@@ -3122,7 +3122,7 @@ var RELATION_DATES_FRAGMENT = gql17`
3122
3122
  fragment RelationDates on RelationDateType {
3123
3123
  lastUpdateBy {
3124
3124
  resourceId
3125
- userId
3125
+ userEmail
3126
3126
  }
3127
3127
  paymentReference
3128
3128
  stallType {
@@ -4556,7 +4556,14 @@ var eventInfoSchema = yup2.object().shape({
4556
4556
  dateTime: yup2.array().of(dateTimeWithPriceSchema).required("DateTime is required"),
4557
4557
  eventId: yup2.string().trim().required("Event ID is required"),
4558
4558
  packInTime: yup2.number().label("Pack In Time").typeError("Pack in time must be a number").min(1, "Pack in time must be at least 1").required("Pack in time is required").test("no-leading-zeros", "", noLeadingZeros("Pack in time")),
4559
- paymentDueHours: yup2.number().label("Payment Due Hours").typeError("Payment due hours must be a number").min(1, "Payment due hours must be at least 1").required("Payment due hours is required").test("no-leading-zeros", "", noLeadingZeros("Payment due hours")),
4559
+ paymentDueHours: yup2.number().label("Payment Due Hours").typeError("Payment due hours must be a number").min(1, "Payment due hours must be at least 1").required("Payment due hours is required").test("no-leading-zeros", "", noLeadingZeros("Payment due hours")).test(
4560
+ "payment-before-deadline",
4561
+ "Payment due hours must be less than application deadline hours",
4562
+ function(value) {
4563
+ const { applicationDeadlineHours } = this.parent;
4564
+ return value < applicationDeadlineHours;
4565
+ }
4566
+ ),
4560
4567
  paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment info is required").required("Payment info is required")
4561
4568
  });
4562
4569
 
@@ -4751,13 +4758,12 @@ var globalDefaultValues = {
4751
4758
  source: "",
4752
4759
  title: ""
4753
4760
  },
4754
- description: "Lorem Ipsum is a placeholder text commonly used in design and publishing to represent the visual form of a document without relying on meaningful content. It's a jumbled Latin text, not intended to be read or understood, and is used to show the layout and typography before actual content is added.",
4761
+ description: "",
4755
4762
  images: null,
4756
4763
  imagesUpload: null,
4757
4764
  logo: null,
4758
4765
  logoUpload: null,
4759
- name: "Resource name",
4760
- partners: [],
4766
+ name: "",
4761
4767
  promoCode: "",
4762
4768
  region: "",
4763
4769
  socialMedia: []
@@ -4791,7 +4797,7 @@ var defaultEventFormValues = {
4791
4797
  tags: []
4792
4798
  };
4793
4799
  var defaultEventInfoFormValues = {
4794
- applicationDeadlineHours: 48,
4800
+ applicationDeadlineHours: 24,
4795
4801
  contactDetails: {
4796
4802
  email: null,
4797
4803
  landlinePhone: null,
@@ -4809,7 +4815,7 @@ var defaultEventInfoFormValues = {
4809
4815
  eventId: "",
4810
4816
  packInTime: 2,
4811
4817
  // e.g., 2 hours before event opens
4812
- paymentDueHours: 24,
4818
+ paymentDueHours: 12,
4813
4819
  paymentInfo: [],
4814
4820
  requirements: []
4815
4821
  };
@@ -4851,6 +4857,7 @@ function mapBaseResourceTypeToFormData(data) {
4851
4857
  logo: data.logo,
4852
4858
  logoUpload: data.logoUpload,
4853
4859
  name: data.name,
4860
+ owner: data.owner,
4854
4861
  partners: data.partners,
4855
4862
  promoCode: data.promoCode,
4856
4863
  region: data.region,
@@ -4901,6 +4908,7 @@ function useVendorForm(data) {
4901
4908
  logoUpload,
4902
4909
  multiLocation,
4903
4910
  name,
4911
+ owner,
4904
4912
  partners,
4905
4913
  products,
4906
4914
  promoCode,
@@ -4925,6 +4933,7 @@ function useVendorForm(data) {
4925
4933
  logoUpload,
4926
4934
  multiLocation,
4927
4935
  name,
4936
+ owner,
4928
4937
  partners,
4929
4938
  products,
4930
4939
  promoCode,
@@ -5052,7 +5061,6 @@ function useEventForm(data) {
5052
5061
  const {
5053
5062
  _id,
5054
5063
  active,
5055
- partners,
5056
5064
  cover,
5057
5065
  coverUpload,
5058
5066
  dateTime,
@@ -5065,6 +5073,8 @@ function useEventForm(data) {
5065
5073
  logoUpload,
5066
5074
  name,
5067
5075
  nzbn,
5076
+ owner,
5077
+ partners,
5068
5078
  promoCode,
5069
5079
  provider,
5070
5080
  rainOrShine,
@@ -5089,6 +5099,7 @@ function useEventForm(data) {
5089
5099
  logoUpload,
5090
5100
  name,
5091
5101
  nzbn,
5102
+ owner,
5092
5103
  partners,
5093
5104
  promoCode,
5094
5105
  provider,