@timardex/cluemart-shared 1.4.68 → 1.4.70

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 (46) hide show
  1. package/dist/{auth-B-Z1YMPB.d.mts → auth-Cdfen6gg.d.mts} +2 -1
  2. package/dist/{auth-dvNAGKWv.d.ts → auth-CovYLFRn.d.ts} +2 -1
  3. package/dist/{chunk-USGCDP2Q.mjs → chunk-7FRB62SE.mjs} +2 -1
  4. package/dist/chunk-7FRB62SE.mjs.map +1 -0
  5. package/dist/{chunk-EQ4Y34P5.mjs → chunk-FL4P2WWM.mjs} +1 -1
  6. package/dist/chunk-FL4P2WWM.mjs.map +1 -0
  7. package/dist/{chunk-DY47LWPZ.mjs → chunk-XTTEX5XF.mjs} +24 -7
  8. package/dist/chunk-XTTEX5XF.mjs.map +1 -0
  9. package/dist/formFields/index.cjs +23 -6
  10. package/dist/formFields/index.cjs.map +1 -1
  11. package/dist/formFields/index.d.mts +1 -1
  12. package/dist/formFields/index.d.ts +1 -1
  13. package/dist/formFields/index.mjs +1 -1
  14. package/dist/{global-FOUmnU7B.d.mts → global-D_ckWQMA.d.mts} +1 -0
  15. package/dist/{global-D7zAQcn2.d.ts → global-HUZHOXHh.d.ts} +1 -0
  16. package/dist/graphql/index.cjs +1 -0
  17. package/dist/graphql/index.cjs.map +1 -1
  18. package/dist/graphql/index.d.mts +3 -3
  19. package/dist/graphql/index.d.ts +3 -3
  20. package/dist/graphql/index.mjs +1 -1
  21. package/dist/hooks/index.cjs +37 -9
  22. package/dist/hooks/index.cjs.map +1 -1
  23. package/dist/hooks/index.d.mts +3 -3
  24. package/dist/hooks/index.d.ts +3 -3
  25. package/dist/hooks/index.mjs +18 -6
  26. package/dist/hooks/index.mjs.map +1 -1
  27. package/dist/index.cjs +39 -9
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.mts +3 -0
  30. package/dist/index.d.ts +3 -0
  31. package/dist/index.mjs +39 -9
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/{post-Dpp6_lCR.d.ts → post-DIylz7DM.d.ts} +2 -1
  34. package/dist/{post-D5luLIWV.d.mts → post-aU2ITfZh.d.mts} +2 -1
  35. package/dist/{resourceActivities-DoZpH1Fu.d.ts → resourceActivities-CwSss-73.d.ts} +1 -1
  36. package/dist/{resourceActivities-C4-l6iF9.d.mts → resourceActivities-dxnqHVVc.d.mts} +1 -1
  37. package/dist/types/index.cjs.map +1 -1
  38. package/dist/types/index.d.mts +5 -5
  39. package/dist/types/index.d.ts +5 -5
  40. package/dist/types/index.mjs +1 -1
  41. package/dist/utils/index.d.mts +1 -1
  42. package/dist/utils/index.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/dist/chunk-DY47LWPZ.mjs.map +0 -1
  45. package/dist/chunk-EQ4Y34P5.mjs.map +0 -1
  46. package/dist/chunk-USGCDP2Q.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-C4-l6iF9.mjs';
4
- import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-FOUmnU7B.mjs';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-D5luLIWV.mjs';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-dxnqHVVc.mjs';
4
+ import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-D_ckWQMA.mjs';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-aU2ITfZh.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-DoZpH1Fu.js';
4
- import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-D7zAQcn2.js';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-Dpp6_lCR.js';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CwSss-73.js';
4
+ import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-HUZHOXHh.js';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DIylz7DM.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -120,7 +120,7 @@ import {
120
120
  useUpdateVendor,
121
121
  useUpdateVendorInfo,
122
122
  useValidateVerificationToken
123
- } from "../chunk-USGCDP2Q.mjs";
123
+ } from "../chunk-7FRB62SE.mjs";
124
124
  import "../chunk-LDO4DRWY.mjs";
125
125
  export {
126
126
  useAddParticipantToChat,
@@ -989,13 +989,15 @@ var companyContactFields = [
989
989
  // src/formFields/auth.ts
990
990
  var loginFields = [
991
991
  {
992
- ...emailField
992
+ ...emailField,
993
+ required: true
993
994
  },
994
995
  {
995
996
  helperText: "Enter password",
996
997
  keyboardType: "default",
997
998
  name: "password",
998
999
  placeholder: "Password",
1000
+ required: true,
999
1001
  secureTextEntry: true
1000
1002
  }
1001
1003
  ];
@@ -1004,29 +1006,41 @@ var registerFields = [
1004
1006
  helperText: "Enter first name",
1005
1007
  keyboardType: "default",
1006
1008
  name: "firstName",
1007
- placeholder: "First Name"
1009
+ placeholder: "First Name",
1010
+ required: true
1008
1011
  },
1009
1012
  {
1010
1013
  helperText: "Enter last name",
1011
1014
  keyboardType: "default",
1012
1015
  name: "lastName",
1013
- placeholder: "Last Name"
1016
+ placeholder: "Last Name",
1017
+ required: true
1014
1018
  },
1015
1019
  {
1016
- ...emailField
1020
+ ...emailField,
1021
+ required: true
1017
1022
  },
1018
1023
  {
1019
1024
  helperText: "Enter password",
1020
1025
  keyboardType: "default",
1021
1026
  name: "password",
1022
1027
  placeholder: "Password",
1028
+ required: true,
1023
1029
  secureTextEntry: true
1030
+ },
1031
+ {
1032
+ helperText: "Promotional code (optional)",
1033
+ keyboardType: "default",
1034
+ name: "promoCode",
1035
+ placeholder: "Promotional Code",
1036
+ required: false
1024
1037
  }
1025
1038
  ];
1026
1039
  var requestPasswordResetFields = [
1027
1040
  {
1028
1041
  ...emailField,
1029
- helperText: "Enter email address to reset your password"
1042
+ helperText: "Enter email address to reset your password",
1043
+ required: true
1030
1044
  }
1031
1045
  ];
1032
1046
  var validateVerificationTokenFields = [
@@ -1039,7 +1053,8 @@ var validateVerificationTokenFields = [
1039
1053
  helperText: "Enter the Verification code sent to you by email",
1040
1054
  keyboardType: "number-pad",
1041
1055
  name: "verificationToken",
1042
- placeholder: "Verification code"
1056
+ placeholder: "Verification code",
1057
+ required: true
1043
1058
  }
1044
1059
  ];
1045
1060
 
@@ -2315,6 +2330,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2315
2330
  partner
2316
2331
  platform
2317
2332
  preferredRegion
2333
+ promoCodes
2318
2334
  refreshToken
2319
2335
  role
2320
2336
  termsAgreement {
@@ -4827,7 +4843,9 @@ var defaultValues3 = {
4827
4843
  firstName: "",
4828
4844
  lastName: "",
4829
4845
  password: "",
4830
- preferredRegion: ""
4846
+ preferredRegion: "",
4847
+ promoCode: "",
4848
+ termsAgreement: null
4831
4849
  };
4832
4850
  function useRegisterForm() {
4833
4851
  const {
@@ -4842,7 +4860,15 @@ function useRegisterForm() {
4842
4860
  defaultValues: defaultValues3,
4843
4861
  resolver: (0, import_yup7.yupResolver)(registerSchema)
4844
4862
  });
4845
- const { email, firstName, lastName, password, preferredRegion } = getValues();
4863
+ const {
4864
+ email,
4865
+ firstName,
4866
+ lastName,
4867
+ password,
4868
+ preferredRegion,
4869
+ promoCode,
4870
+ termsAgreement
4871
+ } = getValues();
4846
4872
  return {
4847
4873
  control,
4848
4874
  fields: {
@@ -4850,7 +4876,9 @@ function useRegisterForm() {
4850
4876
  firstName,
4851
4877
  lastName,
4852
4878
  password,
4853
- preferredRegion
4879
+ preferredRegion,
4880
+ promoCode,
4881
+ termsAgreement
4854
4882
  },
4855
4883
  formState,
4856
4884
  handleSubmit,