@timardex/cluemart-shared 1.2.94 → 1.2.96
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/{ad-B_E4DMtS.d.mts → ad-CIgrG2xI.d.mts} +15 -18
- package/dist/{ad-BAdLwWe8.d.ts → ad-eMd9XpSs.d.ts} +15 -18
- package/dist/{chunk-BK3ZTKW7.mjs → chunk-3ZDDQGW4.mjs} +1 -1
- package/dist/chunk-3ZDDQGW4.mjs.map +1 -0
- package/dist/graphql/index.cjs +15 -9
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +15 -9
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +11 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +12 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +26 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -18
- package/dist/index.d.ts +15 -18
- package/dist/index.mjs +26 -14
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-BK3ZTKW7.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2452,13 +2452,23 @@ var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
2454
|
`;
|
|
2455
|
+
var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
|
|
2456
|
+
fragment LicenceFields on UserLicenceType {
|
|
2457
|
+
expiryDate
|
|
2458
|
+
issuedDate
|
|
2459
|
+
licenceType
|
|
2460
|
+
}
|
|
2461
|
+
`;
|
|
2455
2462
|
var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
|
|
2456
2463
|
fragment AssociatesFields on AssociateType {
|
|
2457
2464
|
email
|
|
2458
2465
|
resourceId
|
|
2459
2466
|
resourceType
|
|
2460
|
-
licence
|
|
2467
|
+
licence {
|
|
2468
|
+
...LicenceFields
|
|
2469
|
+
}
|
|
2461
2470
|
}
|
|
2471
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
2462
2472
|
`;
|
|
2463
2473
|
var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
|
|
2464
2474
|
fragment TermsAgreementFields on TermsAgreementType {
|
|
@@ -2476,13 +2486,6 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2476
2486
|
timestamp
|
|
2477
2487
|
}
|
|
2478
2488
|
`;
|
|
2479
|
-
var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
|
|
2480
|
-
fragment LicenceFields on UserLicenceType {
|
|
2481
|
-
expiryDate
|
|
2482
|
-
issuedDate
|
|
2483
|
-
licenceType
|
|
2484
|
-
}
|
|
2485
|
-
`;
|
|
2486
2489
|
var EVENT_DATETIME_FIELDS_FRAGMENT = import_client2.gql`
|
|
2487
2490
|
fragment EventDateTimeFields on EventDateTimeType {
|
|
2488
2491
|
dateStatus
|
|
@@ -2823,13 +2826,16 @@ var TESTER_FIELDS_FRAGMENT = import_client4.gql`
|
|
|
2823
2826
|
active
|
|
2824
2827
|
approved
|
|
2825
2828
|
businessName
|
|
2829
|
+
consents {
|
|
2830
|
+
betaTestConsent
|
|
2831
|
+
privacyConsent
|
|
2832
|
+
}
|
|
2826
2833
|
createdAt
|
|
2827
2834
|
email
|
|
2828
2835
|
firstName
|
|
2829
2836
|
lastName
|
|
2830
2837
|
mobilePhone
|
|
2831
2838
|
osType
|
|
2832
|
-
privacyConsent
|
|
2833
2839
|
region
|
|
2834
2840
|
resourceType
|
|
2835
2841
|
updatedAt
|
|
@@ -5810,6 +5816,10 @@ var testerEventSchema = yup6.object().shape({
|
|
|
5810
5816
|
});
|
|
5811
5817
|
var testerSchema = yup6.object().shape({
|
|
5812
5818
|
businessName: yup6.string().required("Business name is required"),
|
|
5819
|
+
consents: yup6.object().shape({
|
|
5820
|
+
betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
|
|
5821
|
+
privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
|
|
5822
|
+
}),
|
|
5813
5823
|
email: emailRequiredSchema,
|
|
5814
5824
|
event: yup6.object().when("resourceType", {
|
|
5815
5825
|
is: (resourceType) => resourceType === "event" /* EVENT */,
|
|
@@ -5825,7 +5835,6 @@ var testerSchema = yup6.object().shape({
|
|
|
5825
5835
|
// skip empty values
|
|
5826
5836
|
),
|
|
5827
5837
|
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
|
|
5828
|
-
privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required"),
|
|
5829
5838
|
region: yup6.string().required("Region is required"),
|
|
5830
5839
|
resourceType: yup6.mixed().oneOf(
|
|
5831
5840
|
Object.values(EnumResourceType),
|
|
@@ -6630,13 +6639,16 @@ var import_react = __toESM(require("react"));
|
|
|
6630
6639
|
var import_react_hook_form11 = require("react-hook-form");
|
|
6631
6640
|
var defaultValues7 = {
|
|
6632
6641
|
businessName: "",
|
|
6642
|
+
consents: {
|
|
6643
|
+
betaTestConsent: false,
|
|
6644
|
+
privacyConsent: false
|
|
6645
|
+
},
|
|
6633
6646
|
email: "",
|
|
6634
6647
|
event: {},
|
|
6635
6648
|
firstName: "",
|
|
6636
6649
|
lastName: "",
|
|
6637
6650
|
mobilePhone: "",
|
|
6638
6651
|
osType: "",
|
|
6639
|
-
privacyConsent: false,
|
|
6640
6652
|
region: "",
|
|
6641
6653
|
resourceType: "",
|
|
6642
6654
|
vendor: {}
|
|
@@ -6658,13 +6670,13 @@ function useTesterForm(data) {
|
|
|
6658
6670
|
if (data) {
|
|
6659
6671
|
reset({
|
|
6660
6672
|
businessName: data.businessName,
|
|
6673
|
+
consents: data.consents,
|
|
6661
6674
|
email: data.email,
|
|
6662
6675
|
event: data.event,
|
|
6663
6676
|
firstName: data.firstName,
|
|
6664
6677
|
lastName: data.lastName,
|
|
6665
6678
|
mobilePhone: data.mobilePhone,
|
|
6666
6679
|
osType: data.osType,
|
|
6667
|
-
privacyConsent: data.privacyConsent,
|
|
6668
6680
|
region: data.region,
|
|
6669
6681
|
resourceType: data.resourceType,
|
|
6670
6682
|
vendor: data.vendor
|
|
@@ -6675,13 +6687,13 @@ function useTesterForm(data) {
|
|
|
6675
6687
|
}, [data]);
|
|
6676
6688
|
const {
|
|
6677
6689
|
businessName,
|
|
6690
|
+
consents,
|
|
6678
6691
|
email,
|
|
6679
6692
|
event,
|
|
6680
6693
|
firstName,
|
|
6681
6694
|
lastName,
|
|
6682
6695
|
mobilePhone,
|
|
6683
6696
|
osType,
|
|
6684
|
-
privacyConsent,
|
|
6685
6697
|
region,
|
|
6686
6698
|
resourceType,
|
|
6687
6699
|
vendor
|
|
@@ -6690,13 +6702,13 @@ function useTesterForm(data) {
|
|
|
6690
6702
|
control,
|
|
6691
6703
|
fields: {
|
|
6692
6704
|
businessName,
|
|
6705
|
+
consents,
|
|
6693
6706
|
email,
|
|
6694
6707
|
event,
|
|
6695
6708
|
firstName,
|
|
6696
6709
|
lastName,
|
|
6697
6710
|
mobilePhone,
|
|
6698
6711
|
osType,
|
|
6699
|
-
privacyConsent,
|
|
6700
6712
|
region,
|
|
6701
6713
|
resourceType,
|
|
6702
6714
|
vendor
|