@timardex/cluemart-shared 1.2.93 → 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 +287 -256
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +17 -2
- package/dist/graphql/index.d.ts +17 -2
- package/dist/graphql/index.mjs +214 -184
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +12 -6
- 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 +13 -7
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +299 -262
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +31 -19
- package/dist/index.d.ts +31 -19
- package/dist/index.mjs +226 -190
- 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/hooks/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as LocationType, h as VendorFormData, i as CreateVendorFormData, j as VendorInfoFormData, k as CreateVendorInfoFormData, l as EventFormData, m as CreateEventFormData, n as EventInfoFormData, o as CreateEventInfoFormData, p as UserFormData, q as CreateUserFormData, B as BaseResourceTypeFormData } from '../global-CLsysATK.mjs';
|
|
2
2
|
import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateVerificationTokenFormData, d as CreateResetPasswordFormData, e as ContactUsFormData, f as CreateContactUsFormData } from '../auth-zy1P_DKw.mjs';
|
|
3
|
-
import { a as PartnerFormData, b as TesterFormData, C as CreateTesterFormData, c as AdFormData, d as CreateAdFormData, e as CreatePartnerFormData } from '../ad-
|
|
3
|
+
import { a as PartnerFormData, b as TesterFormData, C as CreateTesterFormData, c as AdFormData, d as CreateAdFormData, e as CreatePartnerFormData } from '../ad-CIgrG2xI.mjs';
|
|
4
4
|
import 'react-hook-form';
|
|
5
5
|
import '../enums/index.mjs';
|
|
6
6
|
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as LocationType, h as VendorFormData, i as CreateVendorFormData, j as VendorInfoFormData, k as CreateVendorInfoFormData, l as EventFormData, m as CreateEventFormData, n as EventInfoFormData, o as CreateEventInfoFormData, p as UserFormData, q as CreateUserFormData, B as BaseResourceTypeFormData } from '../global-BYQMdxtO.js';
|
|
2
2
|
import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateVerificationTokenFormData, d as CreateResetPasswordFormData, e as ContactUsFormData, f as CreateContactUsFormData } from '../auth-D0FKzjLe.js';
|
|
3
|
-
import { a as PartnerFormData, b as TesterFormData, C as CreateTesterFormData, c as AdFormData, d as CreateAdFormData, e as CreatePartnerFormData } from '../ad-
|
|
3
|
+
import { a as PartnerFormData, b as TesterFormData, C as CreateTesterFormData, c as AdFormData, d as CreateAdFormData, e as CreatePartnerFormData } from '../ad-eMd9XpSs.js';
|
|
4
4
|
import 'react-hook-form';
|
|
5
5
|
import '../enums/index.js';
|
|
6
6
|
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OrganizedMarketCount,
|
|
7
7
|
OrganizerMarketFrequency,
|
|
8
8
|
VendorSellingFrequency
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-3ZDDQGW4.mjs";
|
|
10
10
|
import {
|
|
11
11
|
dateFormat,
|
|
12
12
|
normalizeUrl,
|
|
@@ -507,7 +507,7 @@ var testerVendorSchema = yup6.object().shape({
|
|
|
507
507
|
Object.values(VendorSellingFrequency),
|
|
508
508
|
"Please select a valid selling frequency"
|
|
509
509
|
).required("Required field"),
|
|
510
|
-
yearlySellingApprox: yup6.number().label("Yearly Selling Approx").min(
|
|
510
|
+
yearlySellingApprox: yup6.number().label("Yearly Selling Approx").min(1, "Yearly selling approximate must be at least 1").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
|
|
511
511
|
});
|
|
512
512
|
var testerEventSchema = yup6.object().shape({
|
|
513
513
|
markets: yup6.array().of(
|
|
@@ -539,6 +539,10 @@ var testerEventSchema = yup6.object().shape({
|
|
|
539
539
|
});
|
|
540
540
|
var testerSchema = yup6.object().shape({
|
|
541
541
|
businessName: yup6.string().required("Business name is required"),
|
|
542
|
+
consents: yup6.object().shape({
|
|
543
|
+
betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
|
|
544
|
+
privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
|
|
545
|
+
}),
|
|
542
546
|
email: emailRequiredSchema,
|
|
543
547
|
event: yup6.object().when("resourceType", {
|
|
544
548
|
is: (resourceType) => resourceType === "event" /* EVENT */,
|
|
@@ -554,7 +558,6 @@ var testerSchema = yup6.object().shape({
|
|
|
554
558
|
// skip empty values
|
|
555
559
|
),
|
|
556
560
|
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
|
|
557
|
-
privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required"),
|
|
558
561
|
region: yup6.string().required("Region is required"),
|
|
559
562
|
resourceType: yup6.mixed().oneOf(
|
|
560
563
|
Object.values(EnumResourceType),
|
|
@@ -1332,13 +1335,16 @@ import React6 from "react";
|
|
|
1332
1335
|
import { useForm as useForm11 } from "react-hook-form";
|
|
1333
1336
|
var defaultValues7 = {
|
|
1334
1337
|
businessName: "",
|
|
1338
|
+
consents: {
|
|
1339
|
+
betaTestConsent: false,
|
|
1340
|
+
privacyConsent: false
|
|
1341
|
+
},
|
|
1335
1342
|
email: "",
|
|
1336
1343
|
event: {},
|
|
1337
1344
|
firstName: "",
|
|
1338
1345
|
lastName: "",
|
|
1339
1346
|
mobilePhone: "",
|
|
1340
1347
|
osType: "",
|
|
1341
|
-
privacyConsent: false,
|
|
1342
1348
|
region: "",
|
|
1343
1349
|
resourceType: "",
|
|
1344
1350
|
vendor: {}
|
|
@@ -1360,13 +1366,13 @@ function useTesterForm(data) {
|
|
|
1360
1366
|
if (data) {
|
|
1361
1367
|
reset({
|
|
1362
1368
|
businessName: data.businessName,
|
|
1369
|
+
consents: data.consents,
|
|
1363
1370
|
email: data.email,
|
|
1364
1371
|
event: data.event,
|
|
1365
1372
|
firstName: data.firstName,
|
|
1366
1373
|
lastName: data.lastName,
|
|
1367
1374
|
mobilePhone: data.mobilePhone,
|
|
1368
1375
|
osType: data.osType,
|
|
1369
|
-
privacyConsent: data.privacyConsent,
|
|
1370
1376
|
region: data.region,
|
|
1371
1377
|
resourceType: data.resourceType,
|
|
1372
1378
|
vendor: data.vendor
|
|
@@ -1377,13 +1383,13 @@ function useTesterForm(data) {
|
|
|
1377
1383
|
}, [data]);
|
|
1378
1384
|
const {
|
|
1379
1385
|
businessName,
|
|
1386
|
+
consents,
|
|
1380
1387
|
email,
|
|
1381
1388
|
event,
|
|
1382
1389
|
firstName,
|
|
1383
1390
|
lastName,
|
|
1384
1391
|
mobilePhone,
|
|
1385
1392
|
osType,
|
|
1386
|
-
privacyConsent,
|
|
1387
1393
|
region,
|
|
1388
1394
|
resourceType,
|
|
1389
1395
|
vendor
|
|
@@ -1392,13 +1398,13 @@ function useTesterForm(data) {
|
|
|
1392
1398
|
control,
|
|
1393
1399
|
fields: {
|
|
1394
1400
|
businessName,
|
|
1401
|
+
consents,
|
|
1395
1402
|
email,
|
|
1396
1403
|
event,
|
|
1397
1404
|
firstName,
|
|
1398
1405
|
lastName,
|
|
1399
1406
|
mobilePhone,
|
|
1400
1407
|
osType,
|
|
1401
|
-
privacyConsent,
|
|
1402
1408
|
region,
|
|
1403
1409
|
resourceType,
|
|
1404
1410
|
vendor
|