@timardex/cluemart-shared 1.2.94 → 1.2.95
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 +4 -1
- 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 +4 -1
- 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 +15 -6
- 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 +15 -6
- 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.d.mts
CHANGED
|
@@ -756,19 +756,16 @@ type TesterVendor = {
|
|
|
756
756
|
sellingFrequency: VendorSellingFrequency;
|
|
757
757
|
yearlySellingApprox: number;
|
|
758
758
|
questionary: {
|
|
759
|
-
|
|
760
|
-
uploadStallProfileFirstWeek: boolean;
|
|
759
|
+
appearInVideoIntroduction?: boolean;
|
|
761
760
|
applyToAtLeastOneMarket: boolean;
|
|
762
|
-
tryVisitorFeatures: boolean;
|
|
763
761
|
completeFeedbackQuestionnaire: boolean;
|
|
764
|
-
|
|
762
|
+
excitementAboutApp?: string;
|
|
765
763
|
sendPhotoForSocialMedia?: boolean;
|
|
766
|
-
appearInVideoIntroduction?: boolean;
|
|
767
764
|
socialMediaFeatureReason?: string;
|
|
768
|
-
/** Open Questions */
|
|
769
|
-
excitementAboutApp?: string;
|
|
770
|
-
usefulnessExpectations?: string;
|
|
771
765
|
testingPeriodConcerns?: string;
|
|
766
|
+
tryVisitorFeatures: boolean;
|
|
767
|
+
uploadStallProfileFirstWeek: boolean;
|
|
768
|
+
usefulnessExpectations?: string;
|
|
772
769
|
};
|
|
773
770
|
};
|
|
774
771
|
type TesterEvent = {
|
|
@@ -781,29 +778,29 @@ type TesterEvent = {
|
|
|
781
778
|
averageStallCount: number;
|
|
782
779
|
}[];
|
|
783
780
|
questionary: {
|
|
784
|
-
/** Test Period Participation */
|
|
785
|
-
registerMarketsFirstWeek: boolean;
|
|
786
|
-
inviteAtLeastFiveStallholders: boolean;
|
|
787
|
-
manageApplicationsAndCommunication: boolean;
|
|
788
|
-
completeFinalQuestionnaire: boolean;
|
|
789
|
-
/** Promotion Support */
|
|
790
781
|
allowMarketingAppearance?: boolean;
|
|
791
|
-
|
|
792
|
-
/** Open Questions */
|
|
793
|
-
organizerExpectations?: string;
|
|
782
|
+
completeFinalQuestionnaire: boolean;
|
|
794
783
|
dailyCoordinationNeeds?: string;
|
|
795
784
|
interestedInCharityInitiative?: boolean;
|
|
785
|
+
inviteAtLeastFiveStallholders: boolean;
|
|
786
|
+
manageApplicationsAndCommunication: boolean;
|
|
787
|
+
organizerExpectations?: string;
|
|
788
|
+
registerMarketsFirstWeek: boolean;
|
|
789
|
+
spaceForClueMart?: boolean;
|
|
796
790
|
};
|
|
797
791
|
};
|
|
798
792
|
interface TesterFormData {
|
|
799
793
|
businessName: string;
|
|
794
|
+
consents: {
|
|
795
|
+
privacyConsent: boolean;
|
|
796
|
+
betaTestConsent: boolean;
|
|
797
|
+
};
|
|
800
798
|
email: string;
|
|
801
799
|
event?: TesterEvent | null;
|
|
802
800
|
firstName: string;
|
|
803
801
|
lastName: string;
|
|
804
802
|
mobilePhone: string;
|
|
805
803
|
osType: EnumOSPlatform;
|
|
806
|
-
privacyConsent: boolean;
|
|
807
804
|
region: string;
|
|
808
805
|
resourceType: EnumResourceType;
|
|
809
806
|
vendor?: TesterVendor | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -756,19 +756,16 @@ type TesterVendor = {
|
|
|
756
756
|
sellingFrequency: VendorSellingFrequency;
|
|
757
757
|
yearlySellingApprox: number;
|
|
758
758
|
questionary: {
|
|
759
|
-
|
|
760
|
-
uploadStallProfileFirstWeek: boolean;
|
|
759
|
+
appearInVideoIntroduction?: boolean;
|
|
761
760
|
applyToAtLeastOneMarket: boolean;
|
|
762
|
-
tryVisitorFeatures: boolean;
|
|
763
761
|
completeFeedbackQuestionnaire: boolean;
|
|
764
|
-
|
|
762
|
+
excitementAboutApp?: string;
|
|
765
763
|
sendPhotoForSocialMedia?: boolean;
|
|
766
|
-
appearInVideoIntroduction?: boolean;
|
|
767
764
|
socialMediaFeatureReason?: string;
|
|
768
|
-
/** Open Questions */
|
|
769
|
-
excitementAboutApp?: string;
|
|
770
|
-
usefulnessExpectations?: string;
|
|
771
765
|
testingPeriodConcerns?: string;
|
|
766
|
+
tryVisitorFeatures: boolean;
|
|
767
|
+
uploadStallProfileFirstWeek: boolean;
|
|
768
|
+
usefulnessExpectations?: string;
|
|
772
769
|
};
|
|
773
770
|
};
|
|
774
771
|
type TesterEvent = {
|
|
@@ -781,29 +778,29 @@ type TesterEvent = {
|
|
|
781
778
|
averageStallCount: number;
|
|
782
779
|
}[];
|
|
783
780
|
questionary: {
|
|
784
|
-
/** Test Period Participation */
|
|
785
|
-
registerMarketsFirstWeek: boolean;
|
|
786
|
-
inviteAtLeastFiveStallholders: boolean;
|
|
787
|
-
manageApplicationsAndCommunication: boolean;
|
|
788
|
-
completeFinalQuestionnaire: boolean;
|
|
789
|
-
/** Promotion Support */
|
|
790
781
|
allowMarketingAppearance?: boolean;
|
|
791
|
-
|
|
792
|
-
/** Open Questions */
|
|
793
|
-
organizerExpectations?: string;
|
|
782
|
+
completeFinalQuestionnaire: boolean;
|
|
794
783
|
dailyCoordinationNeeds?: string;
|
|
795
784
|
interestedInCharityInitiative?: boolean;
|
|
785
|
+
inviteAtLeastFiveStallholders: boolean;
|
|
786
|
+
manageApplicationsAndCommunication: boolean;
|
|
787
|
+
organizerExpectations?: string;
|
|
788
|
+
registerMarketsFirstWeek: boolean;
|
|
789
|
+
spaceForClueMart?: boolean;
|
|
796
790
|
};
|
|
797
791
|
};
|
|
798
792
|
interface TesterFormData {
|
|
799
793
|
businessName: string;
|
|
794
|
+
consents: {
|
|
795
|
+
privacyConsent: boolean;
|
|
796
|
+
betaTestConsent: boolean;
|
|
797
|
+
};
|
|
800
798
|
email: string;
|
|
801
799
|
event?: TesterEvent | null;
|
|
802
800
|
firstName: string;
|
|
803
801
|
lastName: string;
|
|
804
802
|
mobilePhone: string;
|
|
805
803
|
osType: EnumOSPlatform;
|
|
806
|
-
privacyConsent: boolean;
|
|
807
804
|
region: string;
|
|
808
805
|
resourceType: EnumResourceType;
|
|
809
806
|
vendor?: TesterVendor | null;
|
package/dist/index.mjs
CHANGED
|
@@ -2571,13 +2571,16 @@ var TESTER_FIELDS_FRAGMENT = gql4`
|
|
|
2571
2571
|
active
|
|
2572
2572
|
approved
|
|
2573
2573
|
businessName
|
|
2574
|
+
consents {
|
|
2575
|
+
betaTestConsent
|
|
2576
|
+
privacyConsent
|
|
2577
|
+
}
|
|
2574
2578
|
createdAt
|
|
2575
2579
|
email
|
|
2576
2580
|
firstName
|
|
2577
2581
|
lastName
|
|
2578
2582
|
mobilePhone
|
|
2579
2583
|
osType
|
|
2580
|
-
privacyConsent
|
|
2581
2584
|
region
|
|
2582
2585
|
resourceType
|
|
2583
2586
|
updatedAt
|
|
@@ -5558,6 +5561,10 @@ var testerEventSchema = yup6.object().shape({
|
|
|
5558
5561
|
});
|
|
5559
5562
|
var testerSchema = yup6.object().shape({
|
|
5560
5563
|
businessName: yup6.string().required("Business name is required"),
|
|
5564
|
+
consents: yup6.object().shape({
|
|
5565
|
+
betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
|
|
5566
|
+
privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
|
|
5567
|
+
}),
|
|
5561
5568
|
email: emailRequiredSchema,
|
|
5562
5569
|
event: yup6.object().when("resourceType", {
|
|
5563
5570
|
is: (resourceType) => resourceType === "event" /* EVENT */,
|
|
@@ -5573,7 +5580,6 @@ var testerSchema = yup6.object().shape({
|
|
|
5573
5580
|
// skip empty values
|
|
5574
5581
|
),
|
|
5575
5582
|
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
|
|
5576
|
-
privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required"),
|
|
5577
5583
|
region: yup6.string().required("Region is required"),
|
|
5578
5584
|
resourceType: yup6.mixed().oneOf(
|
|
5579
5585
|
Object.values(EnumResourceType),
|
|
@@ -6378,13 +6384,16 @@ import React6 from "react";
|
|
|
6378
6384
|
import { useForm as useForm11 } from "react-hook-form";
|
|
6379
6385
|
var defaultValues7 = {
|
|
6380
6386
|
businessName: "",
|
|
6387
|
+
consents: {
|
|
6388
|
+
betaTestConsent: false,
|
|
6389
|
+
privacyConsent: false
|
|
6390
|
+
},
|
|
6381
6391
|
email: "",
|
|
6382
6392
|
event: {},
|
|
6383
6393
|
firstName: "",
|
|
6384
6394
|
lastName: "",
|
|
6385
6395
|
mobilePhone: "",
|
|
6386
6396
|
osType: "",
|
|
6387
|
-
privacyConsent: false,
|
|
6388
6397
|
region: "",
|
|
6389
6398
|
resourceType: "",
|
|
6390
6399
|
vendor: {}
|
|
@@ -6406,13 +6415,13 @@ function useTesterForm(data) {
|
|
|
6406
6415
|
if (data) {
|
|
6407
6416
|
reset({
|
|
6408
6417
|
businessName: data.businessName,
|
|
6418
|
+
consents: data.consents,
|
|
6409
6419
|
email: data.email,
|
|
6410
6420
|
event: data.event,
|
|
6411
6421
|
firstName: data.firstName,
|
|
6412
6422
|
lastName: data.lastName,
|
|
6413
6423
|
mobilePhone: data.mobilePhone,
|
|
6414
6424
|
osType: data.osType,
|
|
6415
|
-
privacyConsent: data.privacyConsent,
|
|
6416
6425
|
region: data.region,
|
|
6417
6426
|
resourceType: data.resourceType,
|
|
6418
6427
|
vendor: data.vendor
|
|
@@ -6423,13 +6432,13 @@ function useTesterForm(data) {
|
|
|
6423
6432
|
}, [data]);
|
|
6424
6433
|
const {
|
|
6425
6434
|
businessName,
|
|
6435
|
+
consents,
|
|
6426
6436
|
email,
|
|
6427
6437
|
event,
|
|
6428
6438
|
firstName,
|
|
6429
6439
|
lastName,
|
|
6430
6440
|
mobilePhone,
|
|
6431
6441
|
osType,
|
|
6432
|
-
privacyConsent,
|
|
6433
6442
|
region,
|
|
6434
6443
|
resourceType,
|
|
6435
6444
|
vendor
|
|
@@ -6438,13 +6447,13 @@ function useTesterForm(data) {
|
|
|
6438
6447
|
control,
|
|
6439
6448
|
fields: {
|
|
6440
6449
|
businessName,
|
|
6450
|
+
consents,
|
|
6441
6451
|
email,
|
|
6442
6452
|
event,
|
|
6443
6453
|
firstName,
|
|
6444
6454
|
lastName,
|
|
6445
6455
|
mobilePhone,
|
|
6446
6456
|
osType,
|
|
6447
|
-
privacyConsent,
|
|
6448
6457
|
region,
|
|
6449
6458
|
resourceType,
|
|
6450
6459
|
vendor
|