@timardex/cluemart-shared 1.5.576 → 1.5.578
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/{auth-BGsVCKav.d.ts → auth-BuXYoJKL.d.ts} +1 -1
- package/dist/{auth-UNbE8epf.d.mts → auth-CJ-AOZJF.d.mts} +1 -1
- package/dist/{chunk-XK4M3AXN.mjs → chunk-CLMUENGY.mjs} +2 -1
- package/dist/chunk-CLMUENGY.mjs.map +1 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-XQu859k6.d.mts → global-DYOnOov2.d.mts} +2 -1
- package/dist/{global-D9nzYfrl.d.ts → global-DlFGiHZe.d.ts} +2 -1
- package/dist/graphql/index.cjs +1 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +118 -64
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +12 -4
- package/dist/hooks/index.d.ts +12 -4
- package/dist/hooks/index.mjs +127 -75
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +118 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +127 -74
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DmW522tH.d.mts → post-BWE6TLGk.d.mts} +1 -1
- package/dist/{post-B7xBaeuB.d.ts → post-mcjCZnQ0.d.ts} +1 -1
- package/dist/{resourceActivities-DjZ3Hvzu.d.mts → resourceActivities-CEBQPKMs.d.mts} +1 -1
- package/dist/{resourceActivities-CJQ-ezLX.d.ts → resourceActivities-Cta0w6sK.d.ts} +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-XK4M3AXN.mjs.map +0 -1
package/dist/graphql/index.d.mts
CHANGED
|
@@ -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-
|
|
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-
|
|
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, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CEBQPKMs.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-DYOnOov2.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, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-BWE6TLGk.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../images/index.mjs';
|
|
8
8
|
import '../dailyClue-BnlktK68.mjs';
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-Cta0w6sK.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-DlFGiHZe.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, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-mcjCZnQ0.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../images/index.js';
|
|
8
8
|
import '../dailyClue-BnlktK68.js';
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -52,6 +52,7 @@ __export(hooks_exports, {
|
|
|
52
52
|
useRequestPasswordResetForm: () => useRequestPasswordResetForm,
|
|
53
53
|
useResetPasswordForm: () => useResetPasswordForm,
|
|
54
54
|
useSchoolForm: () => useSchoolForm,
|
|
55
|
+
useUnregisteredVendorForm: () => useUnregisteredVendorForm,
|
|
55
56
|
useUserForm: () => useUserForm,
|
|
56
57
|
useValidateVerificationTokenForm: () => useValidateVerificationTokenForm,
|
|
57
58
|
useVendorForm: () => useVendorForm,
|
|
@@ -740,7 +741,8 @@ var unregisteredVendorSchema = yup3.object().shape({
|
|
|
740
741
|
categoryIds: yup3.array().of(yup3.string().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
741
742
|
dateTime: yup3.array().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
|
|
742
743
|
inviterId: yup3.string().required("Inviter ID is required"),
|
|
743
|
-
name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required")
|
|
744
|
+
name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required"),
|
|
745
|
+
region: yup3.string().label("Region").required("Region is required")
|
|
744
746
|
});
|
|
745
747
|
var vendorInfoSchema = yup3.object().shape({
|
|
746
748
|
product: yup3.object().shape({
|
|
@@ -2874,6 +2876,7 @@ var UNREGISTERED_VENDOR = import_client4.gql`
|
|
|
2874
2876
|
...UnregisteredVendorInvitationFields
|
|
2875
2877
|
}
|
|
2876
2878
|
name
|
|
2879
|
+
region
|
|
2877
2880
|
updatedAt
|
|
2878
2881
|
}
|
|
2879
2882
|
${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
|
|
@@ -4877,7 +4880,8 @@ var defaultUnregisteredVendorFormValues = {
|
|
|
4877
4880
|
categoryIds: [],
|
|
4878
4881
|
dateTime: [],
|
|
4879
4882
|
inviterId: "",
|
|
4880
|
-
name: ""
|
|
4883
|
+
name: "",
|
|
4884
|
+
region: ""
|
|
4881
4885
|
};
|
|
4882
4886
|
var defaultVendorInfoFormValues = {
|
|
4883
4887
|
compliance: { foodBeverageLicense: false, liabilityInsurance: false },
|
|
@@ -5075,11 +5079,11 @@ function useVendorInfoForm(data) {
|
|
|
5075
5079
|
};
|
|
5076
5080
|
}
|
|
5077
5081
|
|
|
5078
|
-
// src/hooks/
|
|
5082
|
+
// src/hooks/vendor/useUnregisteredVendorForm.ts
|
|
5079
5083
|
var import_yup3 = require("@hookform/resolvers/yup");
|
|
5080
5084
|
var React3 = __toESM(require("react"));
|
|
5081
5085
|
var import_react_hook_form3 = require("react-hook-form");
|
|
5082
|
-
function
|
|
5086
|
+
function useUnregisteredVendorForm(data) {
|
|
5083
5087
|
const {
|
|
5084
5088
|
control,
|
|
5085
5089
|
formState,
|
|
@@ -5089,10 +5093,59 @@ function useEventForm(data) {
|
|
|
5089
5093
|
setValue,
|
|
5090
5094
|
watch
|
|
5091
5095
|
} = (0, import_react_hook_form3.useForm)({
|
|
5092
|
-
defaultValues:
|
|
5093
|
-
resolver: (0, import_yup3.yupResolver)(
|
|
5096
|
+
defaultValues: defaultUnregisteredVendorFormValues,
|
|
5097
|
+
resolver: (0, import_yup3.yupResolver)(unregisteredVendorSchema)
|
|
5094
5098
|
});
|
|
5095
5099
|
React3.useEffect(() => {
|
|
5100
|
+
if (data) {
|
|
5101
|
+
reset({
|
|
5102
|
+
categoryIds: data.categoryIds,
|
|
5103
|
+
dateTime: data.dateTime,
|
|
5104
|
+
inviterId: data.inviterId,
|
|
5105
|
+
name: data.name,
|
|
5106
|
+
region: data.region
|
|
5107
|
+
});
|
|
5108
|
+
} else {
|
|
5109
|
+
reset(defaultUnregisteredVendorFormValues);
|
|
5110
|
+
}
|
|
5111
|
+
}, [data]);
|
|
5112
|
+
const { categoryIds, dateTime, inviterId, name, region } = getValues();
|
|
5113
|
+
return {
|
|
5114
|
+
control,
|
|
5115
|
+
fields: {
|
|
5116
|
+
categoryIds,
|
|
5117
|
+
dateTime,
|
|
5118
|
+
inviterId,
|
|
5119
|
+
name,
|
|
5120
|
+
region
|
|
5121
|
+
},
|
|
5122
|
+
formState,
|
|
5123
|
+
getValues,
|
|
5124
|
+
handleSubmit,
|
|
5125
|
+
reset,
|
|
5126
|
+
setValue,
|
|
5127
|
+
watch
|
|
5128
|
+
};
|
|
5129
|
+
}
|
|
5130
|
+
|
|
5131
|
+
// src/hooks/event/useEventForm.ts
|
|
5132
|
+
var import_yup4 = require("@hookform/resolvers/yup");
|
|
5133
|
+
var React4 = __toESM(require("react"));
|
|
5134
|
+
var import_react_hook_form4 = require("react-hook-form");
|
|
5135
|
+
function useEventForm(data) {
|
|
5136
|
+
const {
|
|
5137
|
+
control,
|
|
5138
|
+
formState,
|
|
5139
|
+
getValues,
|
|
5140
|
+
handleSubmit,
|
|
5141
|
+
reset,
|
|
5142
|
+
setValue,
|
|
5143
|
+
watch
|
|
5144
|
+
} = (0, import_react_hook_form4.useForm)({
|
|
5145
|
+
defaultValues: defaultEventFormValues,
|
|
5146
|
+
resolver: (0, import_yup4.yupResolver)(eventSchema)
|
|
5147
|
+
});
|
|
5148
|
+
React4.useEffect(() => {
|
|
5096
5149
|
if (data) {
|
|
5097
5150
|
reset({
|
|
5098
5151
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -5178,9 +5231,9 @@ function useEventForm(data) {
|
|
|
5178
5231
|
}
|
|
5179
5232
|
|
|
5180
5233
|
// src/hooks/event/useEventInfoForm.ts
|
|
5181
|
-
var
|
|
5182
|
-
var
|
|
5183
|
-
var
|
|
5234
|
+
var import_yup5 = require("@hookform/resolvers/yup");
|
|
5235
|
+
var React5 = __toESM(require("react"));
|
|
5236
|
+
var import_react_hook_form5 = require("react-hook-form");
|
|
5184
5237
|
function useEventInfoForm(data) {
|
|
5185
5238
|
const {
|
|
5186
5239
|
control,
|
|
@@ -5190,11 +5243,11 @@ function useEventInfoForm(data) {
|
|
|
5190
5243
|
reset,
|
|
5191
5244
|
setValue,
|
|
5192
5245
|
watch
|
|
5193
|
-
} = (0,
|
|
5246
|
+
} = (0, import_react_hook_form5.useForm)({
|
|
5194
5247
|
defaultValues: defaultEventInfoFormValues,
|
|
5195
|
-
resolver: (0,
|
|
5248
|
+
resolver: (0, import_yup5.yupResolver)(eventInfoSchema)
|
|
5196
5249
|
});
|
|
5197
|
-
|
|
5250
|
+
React5.useEffect(() => {
|
|
5198
5251
|
if (data) {
|
|
5199
5252
|
reset({
|
|
5200
5253
|
_id: data._id,
|
|
@@ -5245,9 +5298,9 @@ function useEventInfoForm(data) {
|
|
|
5245
5298
|
}
|
|
5246
5299
|
|
|
5247
5300
|
// src/hooks/useUserForm.ts
|
|
5248
|
-
var
|
|
5249
|
-
var
|
|
5250
|
-
var
|
|
5301
|
+
var import_yup6 = require("@hookform/resolvers/yup");
|
|
5302
|
+
var React6 = __toESM(require("react"));
|
|
5303
|
+
var import_react_hook_form6 = require("react-hook-form");
|
|
5251
5304
|
var defaultValues = {
|
|
5252
5305
|
active: false,
|
|
5253
5306
|
avatar: null,
|
|
@@ -5270,11 +5323,11 @@ function useUserForm(data) {
|
|
|
5270
5323
|
reset,
|
|
5271
5324
|
setValue,
|
|
5272
5325
|
watch
|
|
5273
|
-
} = (0,
|
|
5326
|
+
} = (0, import_react_hook_form6.useForm)({
|
|
5274
5327
|
defaultValues,
|
|
5275
|
-
resolver: (0,
|
|
5328
|
+
resolver: (0, import_yup6.yupResolver)(userSchema)
|
|
5276
5329
|
});
|
|
5277
|
-
|
|
5330
|
+
React6.useEffect(() => {
|
|
5278
5331
|
if (data) {
|
|
5279
5332
|
reset({
|
|
5280
5333
|
_id: data._id,
|
|
@@ -5334,8 +5387,8 @@ function useUserForm(data) {
|
|
|
5334
5387
|
}
|
|
5335
5388
|
|
|
5336
5389
|
// src/hooks/auth/useLoginForm.ts
|
|
5337
|
-
var
|
|
5338
|
-
var
|
|
5390
|
+
var import_yup7 = require("@hookform/resolvers/yup");
|
|
5391
|
+
var import_react_hook_form7 = require("react-hook-form");
|
|
5339
5392
|
var defaultValues2 = {
|
|
5340
5393
|
email: "",
|
|
5341
5394
|
password: ""
|
|
@@ -5349,9 +5402,9 @@ function useLoginForm() {
|
|
|
5349
5402
|
reset,
|
|
5350
5403
|
setValue,
|
|
5351
5404
|
watch
|
|
5352
|
-
} = (0,
|
|
5405
|
+
} = (0, import_react_hook_form7.useForm)({
|
|
5353
5406
|
defaultValues: defaultValues2,
|
|
5354
|
-
resolver: (0,
|
|
5407
|
+
resolver: (0, import_yup7.yupResolver)(loginSchema)
|
|
5355
5408
|
});
|
|
5356
5409
|
const { email, password } = getValues();
|
|
5357
5410
|
return {
|
|
@@ -5370,8 +5423,8 @@ function useLoginForm() {
|
|
|
5370
5423
|
}
|
|
5371
5424
|
|
|
5372
5425
|
// src/hooks/auth/useRegisterForm.ts
|
|
5373
|
-
var
|
|
5374
|
-
var
|
|
5426
|
+
var import_yup8 = require("@hookform/resolvers/yup");
|
|
5427
|
+
var import_react_hook_form8 = require("react-hook-form");
|
|
5375
5428
|
var defaultValues3 = {
|
|
5376
5429
|
email: "",
|
|
5377
5430
|
firstName: "",
|
|
@@ -5390,9 +5443,9 @@ function useRegisterForm() {
|
|
|
5390
5443
|
reset,
|
|
5391
5444
|
setValue,
|
|
5392
5445
|
watch
|
|
5393
|
-
} = (0,
|
|
5446
|
+
} = (0, import_react_hook_form8.useForm)({
|
|
5394
5447
|
defaultValues: defaultValues3,
|
|
5395
|
-
resolver: (0,
|
|
5448
|
+
resolver: (0, import_yup8.yupResolver)(registerSchema)
|
|
5396
5449
|
});
|
|
5397
5450
|
const {
|
|
5398
5451
|
email,
|
|
@@ -5424,8 +5477,8 @@ function useRegisterForm() {
|
|
|
5424
5477
|
}
|
|
5425
5478
|
|
|
5426
5479
|
// src/hooks/auth/useRequestPasswordResetForm.ts
|
|
5427
|
-
var
|
|
5428
|
-
var
|
|
5480
|
+
var import_yup9 = require("@hookform/resolvers/yup");
|
|
5481
|
+
var import_react_hook_form9 = require("react-hook-form");
|
|
5429
5482
|
var defaultValues4 = {
|
|
5430
5483
|
email: ""
|
|
5431
5484
|
};
|
|
@@ -5438,9 +5491,9 @@ function useRequestPasswordResetForm() {
|
|
|
5438
5491
|
reset,
|
|
5439
5492
|
setValue,
|
|
5440
5493
|
watch
|
|
5441
|
-
} = (0,
|
|
5494
|
+
} = (0, import_react_hook_form9.useForm)({
|
|
5442
5495
|
defaultValues: defaultValues4,
|
|
5443
|
-
resolver: (0,
|
|
5496
|
+
resolver: (0, import_yup9.yupResolver)(requestPasswordResetSchema)
|
|
5444
5497
|
});
|
|
5445
5498
|
const { email } = getValues();
|
|
5446
5499
|
return {
|
|
@@ -5458,8 +5511,8 @@ function useRequestPasswordResetForm() {
|
|
|
5458
5511
|
}
|
|
5459
5512
|
|
|
5460
5513
|
// src/hooks/auth/useValidateVerificationTokenForm.ts
|
|
5461
|
-
var
|
|
5462
|
-
var
|
|
5514
|
+
var import_yup10 = require("@hookform/resolvers/yup");
|
|
5515
|
+
var import_react_hook_form10 = require("react-hook-form");
|
|
5463
5516
|
var defaultValues5 = {
|
|
5464
5517
|
email: "",
|
|
5465
5518
|
verificationToken: ""
|
|
@@ -5473,9 +5526,9 @@ function useValidateVerificationTokenForm() {
|
|
|
5473
5526
|
reset,
|
|
5474
5527
|
setValue,
|
|
5475
5528
|
watch
|
|
5476
|
-
} = (0,
|
|
5529
|
+
} = (0, import_react_hook_form10.useForm)({
|
|
5477
5530
|
defaultValues: defaultValues5,
|
|
5478
|
-
resolver: (0,
|
|
5531
|
+
resolver: (0, import_yup10.yupResolver)(validateVerificationTokenSchema)
|
|
5479
5532
|
});
|
|
5480
5533
|
const { email, verificationToken } = getValues();
|
|
5481
5534
|
return {
|
|
@@ -5494,8 +5547,8 @@ function useValidateVerificationTokenForm() {
|
|
|
5494
5547
|
}
|
|
5495
5548
|
|
|
5496
5549
|
// src/hooks/auth/useResetPasswordForm.ts
|
|
5497
|
-
var
|
|
5498
|
-
var
|
|
5550
|
+
var import_yup11 = require("@hookform/resolvers/yup");
|
|
5551
|
+
var import_react_hook_form11 = require("react-hook-form");
|
|
5499
5552
|
var defaultValues6 = {
|
|
5500
5553
|
confirmPassword: "",
|
|
5501
5554
|
email: "",
|
|
@@ -5510,9 +5563,9 @@ function useResetPasswordForm() {
|
|
|
5510
5563
|
reset,
|
|
5511
5564
|
setValue,
|
|
5512
5565
|
watch
|
|
5513
|
-
} = (0,
|
|
5566
|
+
} = (0, import_react_hook_form11.useForm)({
|
|
5514
5567
|
defaultValues: defaultValues6,
|
|
5515
|
-
resolver: (0,
|
|
5568
|
+
resolver: (0, import_yup11.yupResolver)(resetPasswordSchema)
|
|
5516
5569
|
});
|
|
5517
5570
|
const { confirmPassword, email, password } = getValues();
|
|
5518
5571
|
return {
|
|
@@ -5532,9 +5585,9 @@ function useResetPasswordForm() {
|
|
|
5532
5585
|
}
|
|
5533
5586
|
|
|
5534
5587
|
// src/hooks/useContactUsForm.ts
|
|
5535
|
-
var
|
|
5588
|
+
var import_yup12 = require("@hookform/resolvers/yup");
|
|
5536
5589
|
var import_react = __toESM(require("react"));
|
|
5537
|
-
var
|
|
5590
|
+
var import_react_hook_form12 = require("react-hook-form");
|
|
5538
5591
|
|
|
5539
5592
|
// src/yupSchema/contactUs.ts
|
|
5540
5593
|
var yup10 = __toESM(require("yup"));
|
|
@@ -5561,9 +5614,9 @@ function useContactUsForm(data) {
|
|
|
5561
5614
|
reset,
|
|
5562
5615
|
setValue,
|
|
5563
5616
|
watch
|
|
5564
|
-
} = (0,
|
|
5617
|
+
} = (0, import_react_hook_form12.useForm)({
|
|
5565
5618
|
defaultValues: defaultValues7,
|
|
5566
|
-
resolver: (0,
|
|
5619
|
+
resolver: (0, import_yup12.yupResolver)(contactUsSchema)
|
|
5567
5620
|
});
|
|
5568
5621
|
import_react.default.useEffect(() => {
|
|
5569
5622
|
if (data) {
|
|
@@ -5596,9 +5649,9 @@ function useContactUsForm(data) {
|
|
|
5596
5649
|
}
|
|
5597
5650
|
|
|
5598
5651
|
// src/hooks/useAdForm.ts
|
|
5599
|
-
var
|
|
5652
|
+
var import_yup13 = require("@hookform/resolvers/yup");
|
|
5600
5653
|
var import_react2 = __toESM(require("react"));
|
|
5601
|
-
var
|
|
5654
|
+
var import_react_hook_form13 = require("react-hook-form");
|
|
5602
5655
|
var defaultValues8 = {
|
|
5603
5656
|
active: true,
|
|
5604
5657
|
end: /* @__PURE__ */ new Date(),
|
|
@@ -5632,9 +5685,9 @@ function useAdForm(data) {
|
|
|
5632
5685
|
reset,
|
|
5633
5686
|
setValue,
|
|
5634
5687
|
watch
|
|
5635
|
-
} = (0,
|
|
5688
|
+
} = (0, import_react_hook_form13.useForm)({
|
|
5636
5689
|
defaultValues: defaultValues8,
|
|
5637
|
-
resolver: (0,
|
|
5690
|
+
resolver: (0, import_yup13.yupResolver)(adSchema)
|
|
5638
5691
|
});
|
|
5639
5692
|
import_react2.default.useEffect(() => {
|
|
5640
5693
|
if (data) {
|
|
@@ -5673,9 +5726,9 @@ function useAdForm(data) {
|
|
|
5673
5726
|
}
|
|
5674
5727
|
|
|
5675
5728
|
// src/hooks/partner/usePartnerForm.ts
|
|
5676
|
-
var
|
|
5677
|
-
var
|
|
5678
|
-
var
|
|
5729
|
+
var import_yup14 = require("@hookform/resolvers/yup");
|
|
5730
|
+
var React9 = __toESM(require("react"));
|
|
5731
|
+
var import_react_hook_form14 = require("react-hook-form");
|
|
5679
5732
|
function usePartnerForm(data) {
|
|
5680
5733
|
const {
|
|
5681
5734
|
control,
|
|
@@ -5685,11 +5738,11 @@ function usePartnerForm(data) {
|
|
|
5685
5738
|
reset,
|
|
5686
5739
|
setValue,
|
|
5687
5740
|
watch
|
|
5688
|
-
} = (0,
|
|
5741
|
+
} = (0, import_react_hook_form14.useForm)({
|
|
5689
5742
|
defaultValues: defaultPartnerFormValues,
|
|
5690
|
-
resolver: (0,
|
|
5743
|
+
resolver: (0, import_yup14.yupResolver)(partnerSchema)
|
|
5691
5744
|
});
|
|
5692
|
-
|
|
5745
|
+
React9.useEffect(() => {
|
|
5693
5746
|
if (data) {
|
|
5694
5747
|
reset({
|
|
5695
5748
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -5757,9 +5810,9 @@ function usePartnerForm(data) {
|
|
|
5757
5810
|
}
|
|
5758
5811
|
|
|
5759
5812
|
// src/hooks/usePostForm.ts
|
|
5760
|
-
var
|
|
5813
|
+
var import_yup15 = require("@hookform/resolvers/yup");
|
|
5761
5814
|
var import_react3 = __toESM(require("react"));
|
|
5762
|
-
var
|
|
5815
|
+
var import_react_hook_form15 = require("react-hook-form");
|
|
5763
5816
|
var defaultValues9 = {
|
|
5764
5817
|
active: true,
|
|
5765
5818
|
caption: "",
|
|
@@ -5780,9 +5833,9 @@ function usePostForm(data) {
|
|
|
5780
5833
|
reset,
|
|
5781
5834
|
setValue,
|
|
5782
5835
|
watch
|
|
5783
|
-
} = (0,
|
|
5836
|
+
} = (0, import_react_hook_form15.useForm)({
|
|
5784
5837
|
defaultValues: defaultValues9,
|
|
5785
|
-
resolver: (0,
|
|
5838
|
+
resolver: (0, import_yup15.yupResolver)(postSchema)
|
|
5786
5839
|
});
|
|
5787
5840
|
import_react3.default.useEffect(() => {
|
|
5788
5841
|
if (data) {
|
|
@@ -5835,9 +5888,9 @@ function usePostForm(data) {
|
|
|
5835
5888
|
}
|
|
5836
5889
|
|
|
5837
5890
|
// src/hooks/useAppSettingsForm.ts
|
|
5838
|
-
var
|
|
5891
|
+
var import_yup16 = require("@hookform/resolvers/yup");
|
|
5839
5892
|
var import_react4 = __toESM(require("react"));
|
|
5840
|
-
var
|
|
5893
|
+
var import_react_hook_form16 = require("react-hook-form");
|
|
5841
5894
|
var defaultValues10 = {
|
|
5842
5895
|
appVersion: "",
|
|
5843
5896
|
isOfflineMode: false
|
|
@@ -5851,9 +5904,9 @@ function useAppSettingsForm(data) {
|
|
|
5851
5904
|
reset,
|
|
5852
5905
|
setValue,
|
|
5853
5906
|
watch
|
|
5854
|
-
} = (0,
|
|
5907
|
+
} = (0, import_react_hook_form16.useForm)({
|
|
5855
5908
|
defaultValues: defaultValues10,
|
|
5856
|
-
resolver: (0,
|
|
5909
|
+
resolver: (0, import_yup16.yupResolver)(appSettingsSchema)
|
|
5857
5910
|
});
|
|
5858
5911
|
import_react4.default.useEffect(() => {
|
|
5859
5912
|
if (data) {
|
|
@@ -5882,9 +5935,9 @@ function useAppSettingsForm(data) {
|
|
|
5882
5935
|
}
|
|
5883
5936
|
|
|
5884
5937
|
// src/hooks/useSchoolForm.ts
|
|
5885
|
-
var
|
|
5938
|
+
var import_yup17 = require("@hookform/resolvers/yup");
|
|
5886
5939
|
var import_react5 = require("react");
|
|
5887
|
-
var
|
|
5940
|
+
var import_react_hook_form17 = require("react-hook-form");
|
|
5888
5941
|
|
|
5889
5942
|
// src/yupSchema/school.ts
|
|
5890
5943
|
var yup11 = __toESM(require("yup"));
|
|
@@ -5924,9 +5977,9 @@ function useSchoolForm(data) {
|
|
|
5924
5977
|
reset,
|
|
5925
5978
|
setValue,
|
|
5926
5979
|
watch
|
|
5927
|
-
} = (0,
|
|
5980
|
+
} = (0, import_react_hook_form17.useForm)({
|
|
5928
5981
|
defaultValues: defaultSchoolFormValues,
|
|
5929
|
-
resolver: (0,
|
|
5982
|
+
resolver: (0, import_yup17.yupResolver)(schoolSchema)
|
|
5930
5983
|
});
|
|
5931
5984
|
(0, import_react5.useEffect)(() => {
|
|
5932
5985
|
if (data) {
|
|
@@ -6007,6 +6060,7 @@ function useSchoolForm(data) {
|
|
|
6007
6060
|
useRequestPasswordResetForm,
|
|
6008
6061
|
useResetPasswordForm,
|
|
6009
6062
|
useSchoolForm,
|
|
6063
|
+
useUnregisteredVendorForm,
|
|
6010
6064
|
useUserForm,
|
|
6011
6065
|
useValidateVerificationTokenForm,
|
|
6012
6066
|
useVendorForm,
|