@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.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
|
@@ -2200,13 +2200,23 @@ var CATEGORY_FIELDS_FRAGMENT = gql2`
|
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
2202
|
`;
|
|
2203
|
+
var LICENCE_FIELDS_FRAGMENT = gql2`
|
|
2204
|
+
fragment LicenceFields on UserLicenceType {
|
|
2205
|
+
expiryDate
|
|
2206
|
+
issuedDate
|
|
2207
|
+
licenceType
|
|
2208
|
+
}
|
|
2209
|
+
`;
|
|
2203
2210
|
var ASSOCIATES_FIELDS_FRAGMENT = gql2`
|
|
2204
2211
|
fragment AssociatesFields on AssociateType {
|
|
2205
2212
|
email
|
|
2206
2213
|
resourceId
|
|
2207
2214
|
resourceType
|
|
2208
|
-
licence
|
|
2215
|
+
licence {
|
|
2216
|
+
...LicenceFields
|
|
2217
|
+
}
|
|
2209
2218
|
}
|
|
2219
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
2210
2220
|
`;
|
|
2211
2221
|
var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
|
|
2212
2222
|
fragment TermsAgreementFields on TermsAgreementType {
|
|
@@ -2224,13 +2234,6 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
|
|
|
2224
2234
|
timestamp
|
|
2225
2235
|
}
|
|
2226
2236
|
`;
|
|
2227
|
-
var LICENCE_FIELDS_FRAGMENT = gql2`
|
|
2228
|
-
fragment LicenceFields on UserLicenceType {
|
|
2229
|
-
expiryDate
|
|
2230
|
-
issuedDate
|
|
2231
|
-
licenceType
|
|
2232
|
-
}
|
|
2233
|
-
`;
|
|
2234
2237
|
var EVENT_DATETIME_FIELDS_FRAGMENT = gql2`
|
|
2235
2238
|
fragment EventDateTimeFields on EventDateTimeType {
|
|
2236
2239
|
dateStatus
|
|
@@ -2571,13 +2574,16 @@ var TESTER_FIELDS_FRAGMENT = gql4`
|
|
|
2571
2574
|
active
|
|
2572
2575
|
approved
|
|
2573
2576
|
businessName
|
|
2577
|
+
consents {
|
|
2578
|
+
betaTestConsent
|
|
2579
|
+
privacyConsent
|
|
2580
|
+
}
|
|
2574
2581
|
createdAt
|
|
2575
2582
|
email
|
|
2576
2583
|
firstName
|
|
2577
2584
|
lastName
|
|
2578
2585
|
mobilePhone
|
|
2579
2586
|
osType
|
|
2580
|
-
privacyConsent
|
|
2581
2587
|
region
|
|
2582
2588
|
resourceType
|
|
2583
2589
|
updatedAt
|
|
@@ -5558,6 +5564,10 @@ var testerEventSchema = yup6.object().shape({
|
|
|
5558
5564
|
});
|
|
5559
5565
|
var testerSchema = yup6.object().shape({
|
|
5560
5566
|
businessName: yup6.string().required("Business name is required"),
|
|
5567
|
+
consents: yup6.object().shape({
|
|
5568
|
+
betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
|
|
5569
|
+
privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
|
|
5570
|
+
}),
|
|
5561
5571
|
email: emailRequiredSchema,
|
|
5562
5572
|
event: yup6.object().when("resourceType", {
|
|
5563
5573
|
is: (resourceType) => resourceType === "event" /* EVENT */,
|
|
@@ -5573,7 +5583,6 @@ var testerSchema = yup6.object().shape({
|
|
|
5573
5583
|
// skip empty values
|
|
5574
5584
|
),
|
|
5575
5585
|
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
5586
|
region: yup6.string().required("Region is required"),
|
|
5578
5587
|
resourceType: yup6.mixed().oneOf(
|
|
5579
5588
|
Object.values(EnumResourceType),
|
|
@@ -6378,13 +6387,16 @@ import React6 from "react";
|
|
|
6378
6387
|
import { useForm as useForm11 } from "react-hook-form";
|
|
6379
6388
|
var defaultValues7 = {
|
|
6380
6389
|
businessName: "",
|
|
6390
|
+
consents: {
|
|
6391
|
+
betaTestConsent: false,
|
|
6392
|
+
privacyConsent: false
|
|
6393
|
+
},
|
|
6381
6394
|
email: "",
|
|
6382
6395
|
event: {},
|
|
6383
6396
|
firstName: "",
|
|
6384
6397
|
lastName: "",
|
|
6385
6398
|
mobilePhone: "",
|
|
6386
6399
|
osType: "",
|
|
6387
|
-
privacyConsent: false,
|
|
6388
6400
|
region: "",
|
|
6389
6401
|
resourceType: "",
|
|
6390
6402
|
vendor: {}
|
|
@@ -6406,13 +6418,13 @@ function useTesterForm(data) {
|
|
|
6406
6418
|
if (data) {
|
|
6407
6419
|
reset({
|
|
6408
6420
|
businessName: data.businessName,
|
|
6421
|
+
consents: data.consents,
|
|
6409
6422
|
email: data.email,
|
|
6410
6423
|
event: data.event,
|
|
6411
6424
|
firstName: data.firstName,
|
|
6412
6425
|
lastName: data.lastName,
|
|
6413
6426
|
mobilePhone: data.mobilePhone,
|
|
6414
6427
|
osType: data.osType,
|
|
6415
|
-
privacyConsent: data.privacyConsent,
|
|
6416
6428
|
region: data.region,
|
|
6417
6429
|
resourceType: data.resourceType,
|
|
6418
6430
|
vendor: data.vendor
|
|
@@ -6423,13 +6435,13 @@ function useTesterForm(data) {
|
|
|
6423
6435
|
}, [data]);
|
|
6424
6436
|
const {
|
|
6425
6437
|
businessName,
|
|
6438
|
+
consents,
|
|
6426
6439
|
email,
|
|
6427
6440
|
event,
|
|
6428
6441
|
firstName,
|
|
6429
6442
|
lastName,
|
|
6430
6443
|
mobilePhone,
|
|
6431
6444
|
osType,
|
|
6432
|
-
privacyConsent,
|
|
6433
6445
|
region,
|
|
6434
6446
|
resourceType,
|
|
6435
6447
|
vendor
|
|
@@ -6438,13 +6450,13 @@ function useTesterForm(data) {
|
|
|
6438
6450
|
control,
|
|
6439
6451
|
fields: {
|
|
6440
6452
|
businessName,
|
|
6453
|
+
consents,
|
|
6441
6454
|
email,
|
|
6442
6455
|
event,
|
|
6443
6456
|
firstName,
|
|
6444
6457
|
lastName,
|
|
6445
6458
|
mobilePhone,
|
|
6446
6459
|
osType,
|
|
6447
|
-
privacyConsent,
|
|
6448
6460
|
region,
|
|
6449
6461
|
resourceType,
|
|
6450
6462
|
vendor
|