@timardex/cluemart-shared 1.5.619 → 1.5.621

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.
Files changed (37) hide show
  1. package/dist/{auth-Bdlg8CzV.d.mts → auth-CJIbsVCg.d.mts} +1 -1
  2. package/dist/{auth-rRdVyjfK.d.ts → auth-CLKWWsIQ.d.ts} +1 -1
  3. package/dist/{chunk-P52HS2NB.mjs → chunk-Z6IM4DWX.mjs} +4 -3
  4. package/dist/chunk-Z6IM4DWX.mjs.map +1 -0
  5. package/dist/formFields/index.d.mts +1 -1
  6. package/dist/formFields/index.d.ts +1 -1
  7. package/dist/{global-BWpDbvVZ.d.mts → global-J6EFP0wh.d.mts} +1 -0
  8. package/dist/{global-BRdgk2kj.d.ts → global-w94c0MGw.d.ts} +1 -0
  9. package/dist/graphql/index.cjs +3 -2
  10. package/dist/graphql/index.cjs.map +1 -1
  11. package/dist/graphql/index.d.mts +4 -4
  12. package/dist/graphql/index.d.ts +4 -4
  13. package/dist/graphql/index.mjs +1 -1
  14. package/dist/hooks/index.cjs +6 -1
  15. package/dist/hooks/index.cjs.map +1 -1
  16. package/dist/hooks/index.d.mts +3 -3
  17. package/dist/hooks/index.d.ts +3 -3
  18. package/dist/hooks/index.mjs +6 -2
  19. package/dist/hooks/index.mjs.map +1 -1
  20. package/dist/index.cjs +8 -3
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.mts +2 -1
  23. package/dist/index.d.ts +2 -1
  24. package/dist/index.mjs +8 -3
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/{post-C1eNwXYI.d.mts → post-BkgyLFwF.d.mts} +1 -1
  27. package/dist/{post-CO3A1l3d.d.ts → post-BmQ3R3cA.d.ts} +1 -1
  28. package/dist/{resourceActivities-D5KjDO8i.d.ts → resourceActivities-Bnk-1tPS.d.ts} +1 -1
  29. package/dist/{resourceActivities-Ik5hB71G.d.mts → resourceActivities-I3eJPRqW.d.mts} +1 -1
  30. package/dist/sharing/index.d.mts +1 -1
  31. package/dist/sharing/index.d.ts +1 -1
  32. package/dist/types/index.d.mts +5 -5
  33. package/dist/types/index.d.ts +5 -5
  34. package/dist/utils/index.d.mts +1 -1
  35. package/dist/utils/index.d.ts +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunk-P52HS2NB.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -399,6 +399,7 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
399
399
  interface UnregisteredVendorFormData {
400
400
  categoryIds: string[];
401
401
  dateTime: DateTimeType[];
402
+ email?: string | null;
402
403
  inviterId: string;
403
404
  name: string;
404
405
  region: string;
@@ -1844,7 +1845,7 @@ declare const useDeleteRelation: () => {
1844
1845
  loading: boolean;
1845
1846
  };
1846
1847
 
1847
- declare const useGetRelation: (_id: string) => {
1848
+ declare const useGetRelation: (_id?: string) => {
1848
1849
  error: _apollo_client.ApolloError | undefined;
1849
1850
  loading: boolean;
1850
1851
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
package/dist/index.d.ts CHANGED
@@ -399,6 +399,7 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
399
399
  interface UnregisteredVendorFormData {
400
400
  categoryIds: string[];
401
401
  dateTime: DateTimeType[];
402
+ email?: string | null;
402
403
  inviterId: string;
403
404
  name: string;
404
405
  region: string;
@@ -1844,7 +1845,7 @@ declare const useDeleteRelation: () => {
1844
1845
  loading: boolean;
1845
1846
  };
1846
1847
 
1847
- declare const useGetRelation: (_id: string) => {
1848
+ declare const useGetRelation: (_id?: string) => {
1848
1849
  error: _apollo_client.ApolloError | undefined;
1849
1850
  loading: boolean;
1850
1851
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
package/dist/index.mjs CHANGED
@@ -3101,6 +3101,7 @@ var UNREGISTERED_VENDOR = gql4`
3101
3101
  claimed
3102
3102
  createdAt
3103
3103
  deletedAt
3104
+ email
3104
3105
  invitations {
3105
3106
  ...UnregisteredVendorInvitationFields
3106
3107
  }
@@ -4581,8 +4582,8 @@ import { useQuery as useQuery4 } from "@apollo/client";
4581
4582
  var useGetRelation = (_id) => {
4582
4583
  const { loading, error, data, refetch } = useQuery4(GET_RELATION, {
4583
4584
  fetchPolicy: "network-only",
4584
- skip: !_id || _id === "",
4585
- variables: { _id }
4585
+ skip: !_id,
4586
+ variables: _id ? { _id } : void 0
4586
4587
  });
4587
4588
  const relation = data?.relation;
4588
4589
  return { error, loading, refetch, relation };
@@ -6861,6 +6862,7 @@ var vendorSchema = globalResourceSchema.shape({
6861
6862
  var unregisteredVendorSchema = yup3.object().shape({
6862
6863
  categoryIds: yup3.array().of(yup3.string().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
6863
6864
  dateTime: yup3.array().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
6865
+ email: emailOptionalSchema,
6864
6866
  inviterId: yup3.string().required("Inviter ID is required"),
6865
6867
  name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required"),
6866
6868
  region: yup3.string().label("Region").required("Region is required")
@@ -7217,6 +7219,7 @@ var defaultVendorFormValues = {
7217
7219
  var defaultUnregisteredVendorFormValues = {
7218
7220
  categoryIds: [],
7219
7221
  dateTime: [],
7222
+ email: null,
7220
7223
  inviterId: "",
7221
7224
  name: "",
7222
7225
  region: ""
@@ -7445,6 +7448,7 @@ function useUnregisteredVendorForm(data) {
7445
7448
  reset({
7446
7449
  categoryIds: data.categoryIds,
7447
7450
  dateTime: data.dateTime,
7451
+ email: data.email,
7448
7452
  inviterId: data.inviterId,
7449
7453
  name: data.name,
7450
7454
  region: data.region
@@ -7453,12 +7457,13 @@ function useUnregisteredVendorForm(data) {
7453
7457
  reset(defaultUnregisteredVendorFormValues);
7454
7458
  }
7455
7459
  }, [data]);
7456
- const { categoryIds, dateTime, inviterId, name, region } = getValues();
7460
+ const { categoryIds, dateTime, email, inviterId, name, region } = getValues();
7457
7461
  return {
7458
7462
  control,
7459
7463
  fields: {
7460
7464
  categoryIds,
7461
7465
  dateTime,
7466
+ email,
7462
7467
  inviterId,
7463
7468
  name,
7464
7469
  region