@timardex/cluemart-shared 1.5.576 → 1.5.577
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-71Q_K5cL.d.ts} +1 -1
- package/dist/{auth-UNbE8epf.d.mts → auth-wxdjNbHv.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-XQu859k6.d.mts → global-C1K1nbMW.d.mts} +1 -1
- package/dist/{global-D9nzYfrl.d.ts → global-C_2jiw0X.d.ts} +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/hooks/index.cjs +111 -62
- 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 +120 -72
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +111 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.mjs +120 -72
- package/dist/index.mjs.map +1 -1
- package/dist/{post-B7xBaeuB.d.ts → post-Bfv08ew6.d.ts} +1 -1
- package/dist/{post-DmW522tH.d.mts → post-sAvu92I6.d.mts} +1 -1
- package/dist/{resourceActivities-CJQ-ezLX.d.ts → resourceActivities-BPsBLSh7.d.ts} +1 -1
- package/dist/{resourceActivities-DjZ3Hvzu.d.mts → resourceActivities-DPdlpw6m.d.mts} +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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as CreateFormData, J as PromoCodeType, _ as TermsAgreement } from './global-C_2jiw0X.js';
|
|
2
2
|
import { EnumOSPlatform } from './enums/index.js';
|
|
3
3
|
|
|
4
4
|
type ContactUsFormData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as CreateFormData, J as PromoCodeType, _ as TermsAgreement } from './global-C1K1nbMW.mjs';
|
|
2
2
|
import { EnumOSPlatform } from './enums/index.mjs';
|
|
3
3
|
|
|
4
4
|
type ContactUsFormData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-C1K1nbMW.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-C_2jiw0X.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -381,4 +381,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
381
381
|
getValues: UseFormGetValues<T>;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
export { type UnregisteredVendorInvitationType as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PosterUsageType as H, type ImageObjectType as I, type PromoCodeType as J, type Region as K, type LocationType as L, type RelationDate as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type ResourceContactDetailsType as Q, type RefundPolicy as R, type StallType as S, type ResourceDetails as T, type UnregisteredVendorType as U, type VendorType as V, type ResourceImageType as W, type SocialMediaType as X, type Subcategory as Y, type SubcategoryItems as Z, type TermsAgreement as _, type FormDateField as a, type VendorAttributes as a0, type VendorCalendarData as a1, type VendorProductList as a2, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type UserLicenceType as h, type VendorFormData as i, type CreateVendorFormData as j, type VendorInfoFormData as k, type CreateVendorInfoFormData as l, type
|
|
384
|
+
export { type UnregisteredVendorInvitationType as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PosterUsageType as H, type ImageObjectType as I, type PromoCodeType as J, type Region as K, type LocationType as L, type RelationDate as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type ResourceContactDetailsType as Q, type RefundPolicy as R, type StallType as S, type ResourceDetails as T, type UnregisteredVendorType as U, type VendorType as V, type ResourceImageType as W, type SocialMediaType as X, type Subcategory as Y, type SubcategoryItems as Z, type TermsAgreement as _, type FormDateField as a, type VendorAttributes as a0, type VendorCalendarData as a1, type VendorProductList as a2, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type UserLicenceType as h, type VendorFormData as i, type CreateVendorFormData as j, type VendorInfoFormData as k, type CreateVendorInfoFormData as l, type UnregisteredVendorFormData as m, type CreateUnregisteredVendorFormData as n, type EventFormData as o, type CreateEventFormData as p, type EventInfoFormData as q, type CreateEventInfoFormData as r, type BaseResourceType as s, type CreateFormData as t, type DateTimeWithPriceType as u, type DeviceInfo as v, type EventStatusType as w, type LocationGeoType as x, type OwnerType as y, type PaymentInfoType as z };
|
|
@@ -381,4 +381,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
381
381
|
getValues: UseFormGetValues<T>;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
export { type UnregisteredVendorInvitationType as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PosterUsageType as H, type ImageObjectType as I, type PromoCodeType as J, type Region as K, type LocationType as L, type RelationDate as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type ResourceContactDetailsType as Q, type RefundPolicy as R, type StallType as S, type ResourceDetails as T, type UnregisteredVendorType as U, type VendorType as V, type ResourceImageType as W, type SocialMediaType as X, type Subcategory as Y, type SubcategoryItems as Z, type TermsAgreement as _, type FormDateField as a, type VendorAttributes as a0, type VendorCalendarData as a1, type VendorProductList as a2, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type UserLicenceType as h, type VendorFormData as i, type CreateVendorFormData as j, type VendorInfoFormData as k, type CreateVendorInfoFormData as l, type
|
|
384
|
+
export { type UnregisteredVendorInvitationType as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PosterUsageType as H, type ImageObjectType as I, type PromoCodeType as J, type Region as K, type LocationType as L, type RelationDate as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type ResourceContactDetailsType as Q, type RefundPolicy as R, type StallType as S, type ResourceDetails as T, type UnregisteredVendorType as U, type VendorType as V, type ResourceImageType as W, type SocialMediaType as X, type Subcategory as Y, type SubcategoryItems as Z, type TermsAgreement as _, type FormDateField as a, type VendorAttributes as a0, type VendorCalendarData as a1, type VendorProductList as a2, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type UserLicenceType as h, type VendorFormData as i, type CreateVendorFormData as j, type VendorInfoFormData as k, type CreateVendorInfoFormData as l, type UnregisteredVendorFormData as m, type CreateUnregisteredVendorFormData as n, type EventFormData as o, type CreateEventFormData as p, type EventInfoFormData as q, type CreateEventInfoFormData as r, type BaseResourceType as s, type CreateFormData as t, type DateTimeWithPriceType as u, type DeviceInfo as v, type EventStatusType as w, type LocationGeoType as x, type OwnerType as y, type PaymentInfoType as z };
|
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-DPdlpw6m.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-C1K1nbMW.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-sAvu92I6.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-BPsBLSh7.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-C_2jiw0X.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-Bfv08ew6.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../images/index.js';
|
|
8
8
|
import '../dailyClue-BnlktK68.js';
|
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,
|
|
@@ -5075,11 +5076,11 @@ function useVendorInfoForm(data) {
|
|
|
5075
5076
|
};
|
|
5076
5077
|
}
|
|
5077
5078
|
|
|
5078
|
-
// src/hooks/
|
|
5079
|
+
// src/hooks/vendor/useUnregisteredVendorForm.ts
|
|
5079
5080
|
var import_yup3 = require("@hookform/resolvers/yup");
|
|
5080
5081
|
var React3 = __toESM(require("react"));
|
|
5081
5082
|
var import_react_hook_form3 = require("react-hook-form");
|
|
5082
|
-
function
|
|
5083
|
+
function useUnregisteredVendorForm(data) {
|
|
5083
5084
|
const {
|
|
5084
5085
|
control,
|
|
5085
5086
|
formState,
|
|
@@ -5089,10 +5090,57 @@ function useEventForm(data) {
|
|
|
5089
5090
|
setValue,
|
|
5090
5091
|
watch
|
|
5091
5092
|
} = (0, import_react_hook_form3.useForm)({
|
|
5092
|
-
defaultValues:
|
|
5093
|
-
resolver: (0, import_yup3.yupResolver)(
|
|
5093
|
+
defaultValues: defaultUnregisteredVendorFormValues,
|
|
5094
|
+
resolver: (0, import_yup3.yupResolver)(unregisteredVendorSchema)
|
|
5094
5095
|
});
|
|
5095
5096
|
React3.useEffect(() => {
|
|
5097
|
+
if (data) {
|
|
5098
|
+
reset({
|
|
5099
|
+
categoryIds: data.categoryIds,
|
|
5100
|
+
dateTime: data.dateTime,
|
|
5101
|
+
inviterId: data.inviterId,
|
|
5102
|
+
name: data.name
|
|
5103
|
+
});
|
|
5104
|
+
} else {
|
|
5105
|
+
reset(defaultUnregisteredVendorFormValues);
|
|
5106
|
+
}
|
|
5107
|
+
}, [data]);
|
|
5108
|
+
const { categoryIds, dateTime, inviterId, name } = getValues();
|
|
5109
|
+
return {
|
|
5110
|
+
control,
|
|
5111
|
+
fields: {
|
|
5112
|
+
categoryIds,
|
|
5113
|
+
dateTime,
|
|
5114
|
+
inviterId,
|
|
5115
|
+
name
|
|
5116
|
+
},
|
|
5117
|
+
formState,
|
|
5118
|
+
getValues,
|
|
5119
|
+
handleSubmit,
|
|
5120
|
+
reset,
|
|
5121
|
+
setValue,
|
|
5122
|
+
watch
|
|
5123
|
+
};
|
|
5124
|
+
}
|
|
5125
|
+
|
|
5126
|
+
// src/hooks/event/useEventForm.ts
|
|
5127
|
+
var import_yup4 = require("@hookform/resolvers/yup");
|
|
5128
|
+
var React4 = __toESM(require("react"));
|
|
5129
|
+
var import_react_hook_form4 = require("react-hook-form");
|
|
5130
|
+
function useEventForm(data) {
|
|
5131
|
+
const {
|
|
5132
|
+
control,
|
|
5133
|
+
formState,
|
|
5134
|
+
getValues,
|
|
5135
|
+
handleSubmit,
|
|
5136
|
+
reset,
|
|
5137
|
+
setValue,
|
|
5138
|
+
watch
|
|
5139
|
+
} = (0, import_react_hook_form4.useForm)({
|
|
5140
|
+
defaultValues: defaultEventFormValues,
|
|
5141
|
+
resolver: (0, import_yup4.yupResolver)(eventSchema)
|
|
5142
|
+
});
|
|
5143
|
+
React4.useEffect(() => {
|
|
5096
5144
|
if (data) {
|
|
5097
5145
|
reset({
|
|
5098
5146
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -5178,9 +5226,9 @@ function useEventForm(data) {
|
|
|
5178
5226
|
}
|
|
5179
5227
|
|
|
5180
5228
|
// src/hooks/event/useEventInfoForm.ts
|
|
5181
|
-
var
|
|
5182
|
-
var
|
|
5183
|
-
var
|
|
5229
|
+
var import_yup5 = require("@hookform/resolvers/yup");
|
|
5230
|
+
var React5 = __toESM(require("react"));
|
|
5231
|
+
var import_react_hook_form5 = require("react-hook-form");
|
|
5184
5232
|
function useEventInfoForm(data) {
|
|
5185
5233
|
const {
|
|
5186
5234
|
control,
|
|
@@ -5190,11 +5238,11 @@ function useEventInfoForm(data) {
|
|
|
5190
5238
|
reset,
|
|
5191
5239
|
setValue,
|
|
5192
5240
|
watch
|
|
5193
|
-
} = (0,
|
|
5241
|
+
} = (0, import_react_hook_form5.useForm)({
|
|
5194
5242
|
defaultValues: defaultEventInfoFormValues,
|
|
5195
|
-
resolver: (0,
|
|
5243
|
+
resolver: (0, import_yup5.yupResolver)(eventInfoSchema)
|
|
5196
5244
|
});
|
|
5197
|
-
|
|
5245
|
+
React5.useEffect(() => {
|
|
5198
5246
|
if (data) {
|
|
5199
5247
|
reset({
|
|
5200
5248
|
_id: data._id,
|
|
@@ -5245,9 +5293,9 @@ function useEventInfoForm(data) {
|
|
|
5245
5293
|
}
|
|
5246
5294
|
|
|
5247
5295
|
// src/hooks/useUserForm.ts
|
|
5248
|
-
var
|
|
5249
|
-
var
|
|
5250
|
-
var
|
|
5296
|
+
var import_yup6 = require("@hookform/resolvers/yup");
|
|
5297
|
+
var React6 = __toESM(require("react"));
|
|
5298
|
+
var import_react_hook_form6 = require("react-hook-form");
|
|
5251
5299
|
var defaultValues = {
|
|
5252
5300
|
active: false,
|
|
5253
5301
|
avatar: null,
|
|
@@ -5270,11 +5318,11 @@ function useUserForm(data) {
|
|
|
5270
5318
|
reset,
|
|
5271
5319
|
setValue,
|
|
5272
5320
|
watch
|
|
5273
|
-
} = (0,
|
|
5321
|
+
} = (0, import_react_hook_form6.useForm)({
|
|
5274
5322
|
defaultValues,
|
|
5275
|
-
resolver: (0,
|
|
5323
|
+
resolver: (0, import_yup6.yupResolver)(userSchema)
|
|
5276
5324
|
});
|
|
5277
|
-
|
|
5325
|
+
React6.useEffect(() => {
|
|
5278
5326
|
if (data) {
|
|
5279
5327
|
reset({
|
|
5280
5328
|
_id: data._id,
|
|
@@ -5334,8 +5382,8 @@ function useUserForm(data) {
|
|
|
5334
5382
|
}
|
|
5335
5383
|
|
|
5336
5384
|
// src/hooks/auth/useLoginForm.ts
|
|
5337
|
-
var
|
|
5338
|
-
var
|
|
5385
|
+
var import_yup7 = require("@hookform/resolvers/yup");
|
|
5386
|
+
var import_react_hook_form7 = require("react-hook-form");
|
|
5339
5387
|
var defaultValues2 = {
|
|
5340
5388
|
email: "",
|
|
5341
5389
|
password: ""
|
|
@@ -5349,9 +5397,9 @@ function useLoginForm() {
|
|
|
5349
5397
|
reset,
|
|
5350
5398
|
setValue,
|
|
5351
5399
|
watch
|
|
5352
|
-
} = (0,
|
|
5400
|
+
} = (0, import_react_hook_form7.useForm)({
|
|
5353
5401
|
defaultValues: defaultValues2,
|
|
5354
|
-
resolver: (0,
|
|
5402
|
+
resolver: (0, import_yup7.yupResolver)(loginSchema)
|
|
5355
5403
|
});
|
|
5356
5404
|
const { email, password } = getValues();
|
|
5357
5405
|
return {
|
|
@@ -5370,8 +5418,8 @@ function useLoginForm() {
|
|
|
5370
5418
|
}
|
|
5371
5419
|
|
|
5372
5420
|
// src/hooks/auth/useRegisterForm.ts
|
|
5373
|
-
var
|
|
5374
|
-
var
|
|
5421
|
+
var import_yup8 = require("@hookform/resolvers/yup");
|
|
5422
|
+
var import_react_hook_form8 = require("react-hook-form");
|
|
5375
5423
|
var defaultValues3 = {
|
|
5376
5424
|
email: "",
|
|
5377
5425
|
firstName: "",
|
|
@@ -5390,9 +5438,9 @@ function useRegisterForm() {
|
|
|
5390
5438
|
reset,
|
|
5391
5439
|
setValue,
|
|
5392
5440
|
watch
|
|
5393
|
-
} = (0,
|
|
5441
|
+
} = (0, import_react_hook_form8.useForm)({
|
|
5394
5442
|
defaultValues: defaultValues3,
|
|
5395
|
-
resolver: (0,
|
|
5443
|
+
resolver: (0, import_yup8.yupResolver)(registerSchema)
|
|
5396
5444
|
});
|
|
5397
5445
|
const {
|
|
5398
5446
|
email,
|
|
@@ -5424,8 +5472,8 @@ function useRegisterForm() {
|
|
|
5424
5472
|
}
|
|
5425
5473
|
|
|
5426
5474
|
// src/hooks/auth/useRequestPasswordResetForm.ts
|
|
5427
|
-
var
|
|
5428
|
-
var
|
|
5475
|
+
var import_yup9 = require("@hookform/resolvers/yup");
|
|
5476
|
+
var import_react_hook_form9 = require("react-hook-form");
|
|
5429
5477
|
var defaultValues4 = {
|
|
5430
5478
|
email: ""
|
|
5431
5479
|
};
|
|
@@ -5438,9 +5486,9 @@ function useRequestPasswordResetForm() {
|
|
|
5438
5486
|
reset,
|
|
5439
5487
|
setValue,
|
|
5440
5488
|
watch
|
|
5441
|
-
} = (0,
|
|
5489
|
+
} = (0, import_react_hook_form9.useForm)({
|
|
5442
5490
|
defaultValues: defaultValues4,
|
|
5443
|
-
resolver: (0,
|
|
5491
|
+
resolver: (0, import_yup9.yupResolver)(requestPasswordResetSchema)
|
|
5444
5492
|
});
|
|
5445
5493
|
const { email } = getValues();
|
|
5446
5494
|
return {
|
|
@@ -5458,8 +5506,8 @@ function useRequestPasswordResetForm() {
|
|
|
5458
5506
|
}
|
|
5459
5507
|
|
|
5460
5508
|
// src/hooks/auth/useValidateVerificationTokenForm.ts
|
|
5461
|
-
var
|
|
5462
|
-
var
|
|
5509
|
+
var import_yup10 = require("@hookform/resolvers/yup");
|
|
5510
|
+
var import_react_hook_form10 = require("react-hook-form");
|
|
5463
5511
|
var defaultValues5 = {
|
|
5464
5512
|
email: "",
|
|
5465
5513
|
verificationToken: ""
|
|
@@ -5473,9 +5521,9 @@ function useValidateVerificationTokenForm() {
|
|
|
5473
5521
|
reset,
|
|
5474
5522
|
setValue,
|
|
5475
5523
|
watch
|
|
5476
|
-
} = (0,
|
|
5524
|
+
} = (0, import_react_hook_form10.useForm)({
|
|
5477
5525
|
defaultValues: defaultValues5,
|
|
5478
|
-
resolver: (0,
|
|
5526
|
+
resolver: (0, import_yup10.yupResolver)(validateVerificationTokenSchema)
|
|
5479
5527
|
});
|
|
5480
5528
|
const { email, verificationToken } = getValues();
|
|
5481
5529
|
return {
|
|
@@ -5494,8 +5542,8 @@ function useValidateVerificationTokenForm() {
|
|
|
5494
5542
|
}
|
|
5495
5543
|
|
|
5496
5544
|
// src/hooks/auth/useResetPasswordForm.ts
|
|
5497
|
-
var
|
|
5498
|
-
var
|
|
5545
|
+
var import_yup11 = require("@hookform/resolvers/yup");
|
|
5546
|
+
var import_react_hook_form11 = require("react-hook-form");
|
|
5499
5547
|
var defaultValues6 = {
|
|
5500
5548
|
confirmPassword: "",
|
|
5501
5549
|
email: "",
|
|
@@ -5510,9 +5558,9 @@ function useResetPasswordForm() {
|
|
|
5510
5558
|
reset,
|
|
5511
5559
|
setValue,
|
|
5512
5560
|
watch
|
|
5513
|
-
} = (0,
|
|
5561
|
+
} = (0, import_react_hook_form11.useForm)({
|
|
5514
5562
|
defaultValues: defaultValues6,
|
|
5515
|
-
resolver: (0,
|
|
5563
|
+
resolver: (0, import_yup11.yupResolver)(resetPasswordSchema)
|
|
5516
5564
|
});
|
|
5517
5565
|
const { confirmPassword, email, password } = getValues();
|
|
5518
5566
|
return {
|
|
@@ -5532,9 +5580,9 @@ function useResetPasswordForm() {
|
|
|
5532
5580
|
}
|
|
5533
5581
|
|
|
5534
5582
|
// src/hooks/useContactUsForm.ts
|
|
5535
|
-
var
|
|
5583
|
+
var import_yup12 = require("@hookform/resolvers/yup");
|
|
5536
5584
|
var import_react = __toESM(require("react"));
|
|
5537
|
-
var
|
|
5585
|
+
var import_react_hook_form12 = require("react-hook-form");
|
|
5538
5586
|
|
|
5539
5587
|
// src/yupSchema/contactUs.ts
|
|
5540
5588
|
var yup10 = __toESM(require("yup"));
|
|
@@ -5561,9 +5609,9 @@ function useContactUsForm(data) {
|
|
|
5561
5609
|
reset,
|
|
5562
5610
|
setValue,
|
|
5563
5611
|
watch
|
|
5564
|
-
} = (0,
|
|
5612
|
+
} = (0, import_react_hook_form12.useForm)({
|
|
5565
5613
|
defaultValues: defaultValues7,
|
|
5566
|
-
resolver: (0,
|
|
5614
|
+
resolver: (0, import_yup12.yupResolver)(contactUsSchema)
|
|
5567
5615
|
});
|
|
5568
5616
|
import_react.default.useEffect(() => {
|
|
5569
5617
|
if (data) {
|
|
@@ -5596,9 +5644,9 @@ function useContactUsForm(data) {
|
|
|
5596
5644
|
}
|
|
5597
5645
|
|
|
5598
5646
|
// src/hooks/useAdForm.ts
|
|
5599
|
-
var
|
|
5647
|
+
var import_yup13 = require("@hookform/resolvers/yup");
|
|
5600
5648
|
var import_react2 = __toESM(require("react"));
|
|
5601
|
-
var
|
|
5649
|
+
var import_react_hook_form13 = require("react-hook-form");
|
|
5602
5650
|
var defaultValues8 = {
|
|
5603
5651
|
active: true,
|
|
5604
5652
|
end: /* @__PURE__ */ new Date(),
|
|
@@ -5632,9 +5680,9 @@ function useAdForm(data) {
|
|
|
5632
5680
|
reset,
|
|
5633
5681
|
setValue,
|
|
5634
5682
|
watch
|
|
5635
|
-
} = (0,
|
|
5683
|
+
} = (0, import_react_hook_form13.useForm)({
|
|
5636
5684
|
defaultValues: defaultValues8,
|
|
5637
|
-
resolver: (0,
|
|
5685
|
+
resolver: (0, import_yup13.yupResolver)(adSchema)
|
|
5638
5686
|
});
|
|
5639
5687
|
import_react2.default.useEffect(() => {
|
|
5640
5688
|
if (data) {
|
|
@@ -5673,9 +5721,9 @@ function useAdForm(data) {
|
|
|
5673
5721
|
}
|
|
5674
5722
|
|
|
5675
5723
|
// src/hooks/partner/usePartnerForm.ts
|
|
5676
|
-
var
|
|
5677
|
-
var
|
|
5678
|
-
var
|
|
5724
|
+
var import_yup14 = require("@hookform/resolvers/yup");
|
|
5725
|
+
var React9 = __toESM(require("react"));
|
|
5726
|
+
var import_react_hook_form14 = require("react-hook-form");
|
|
5679
5727
|
function usePartnerForm(data) {
|
|
5680
5728
|
const {
|
|
5681
5729
|
control,
|
|
@@ -5685,11 +5733,11 @@ function usePartnerForm(data) {
|
|
|
5685
5733
|
reset,
|
|
5686
5734
|
setValue,
|
|
5687
5735
|
watch
|
|
5688
|
-
} = (0,
|
|
5736
|
+
} = (0, import_react_hook_form14.useForm)({
|
|
5689
5737
|
defaultValues: defaultPartnerFormValues,
|
|
5690
|
-
resolver: (0,
|
|
5738
|
+
resolver: (0, import_yup14.yupResolver)(partnerSchema)
|
|
5691
5739
|
});
|
|
5692
|
-
|
|
5740
|
+
React9.useEffect(() => {
|
|
5693
5741
|
if (data) {
|
|
5694
5742
|
reset({
|
|
5695
5743
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -5757,9 +5805,9 @@ function usePartnerForm(data) {
|
|
|
5757
5805
|
}
|
|
5758
5806
|
|
|
5759
5807
|
// src/hooks/usePostForm.ts
|
|
5760
|
-
var
|
|
5808
|
+
var import_yup15 = require("@hookform/resolvers/yup");
|
|
5761
5809
|
var import_react3 = __toESM(require("react"));
|
|
5762
|
-
var
|
|
5810
|
+
var import_react_hook_form15 = require("react-hook-form");
|
|
5763
5811
|
var defaultValues9 = {
|
|
5764
5812
|
active: true,
|
|
5765
5813
|
caption: "",
|
|
@@ -5780,9 +5828,9 @@ function usePostForm(data) {
|
|
|
5780
5828
|
reset,
|
|
5781
5829
|
setValue,
|
|
5782
5830
|
watch
|
|
5783
|
-
} = (0,
|
|
5831
|
+
} = (0, import_react_hook_form15.useForm)({
|
|
5784
5832
|
defaultValues: defaultValues9,
|
|
5785
|
-
resolver: (0,
|
|
5833
|
+
resolver: (0, import_yup15.yupResolver)(postSchema)
|
|
5786
5834
|
});
|
|
5787
5835
|
import_react3.default.useEffect(() => {
|
|
5788
5836
|
if (data) {
|
|
@@ -5835,9 +5883,9 @@ function usePostForm(data) {
|
|
|
5835
5883
|
}
|
|
5836
5884
|
|
|
5837
5885
|
// src/hooks/useAppSettingsForm.ts
|
|
5838
|
-
var
|
|
5886
|
+
var import_yup16 = require("@hookform/resolvers/yup");
|
|
5839
5887
|
var import_react4 = __toESM(require("react"));
|
|
5840
|
-
var
|
|
5888
|
+
var import_react_hook_form16 = require("react-hook-form");
|
|
5841
5889
|
var defaultValues10 = {
|
|
5842
5890
|
appVersion: "",
|
|
5843
5891
|
isOfflineMode: false
|
|
@@ -5851,9 +5899,9 @@ function useAppSettingsForm(data) {
|
|
|
5851
5899
|
reset,
|
|
5852
5900
|
setValue,
|
|
5853
5901
|
watch
|
|
5854
|
-
} = (0,
|
|
5902
|
+
} = (0, import_react_hook_form16.useForm)({
|
|
5855
5903
|
defaultValues: defaultValues10,
|
|
5856
|
-
resolver: (0,
|
|
5904
|
+
resolver: (0, import_yup16.yupResolver)(appSettingsSchema)
|
|
5857
5905
|
});
|
|
5858
5906
|
import_react4.default.useEffect(() => {
|
|
5859
5907
|
if (data) {
|
|
@@ -5882,9 +5930,9 @@ function useAppSettingsForm(data) {
|
|
|
5882
5930
|
}
|
|
5883
5931
|
|
|
5884
5932
|
// src/hooks/useSchoolForm.ts
|
|
5885
|
-
var
|
|
5933
|
+
var import_yup17 = require("@hookform/resolvers/yup");
|
|
5886
5934
|
var import_react5 = require("react");
|
|
5887
|
-
var
|
|
5935
|
+
var import_react_hook_form17 = require("react-hook-form");
|
|
5888
5936
|
|
|
5889
5937
|
// src/yupSchema/school.ts
|
|
5890
5938
|
var yup11 = __toESM(require("yup"));
|
|
@@ -5924,9 +5972,9 @@ function useSchoolForm(data) {
|
|
|
5924
5972
|
reset,
|
|
5925
5973
|
setValue,
|
|
5926
5974
|
watch
|
|
5927
|
-
} = (0,
|
|
5975
|
+
} = (0, import_react_hook_form17.useForm)({
|
|
5928
5976
|
defaultValues: defaultSchoolFormValues,
|
|
5929
|
-
resolver: (0,
|
|
5977
|
+
resolver: (0, import_yup17.yupResolver)(schoolSchema)
|
|
5930
5978
|
});
|
|
5931
5979
|
(0, import_react5.useEffect)(() => {
|
|
5932
5980
|
if (data) {
|
|
@@ -6007,6 +6055,7 @@ function useSchoolForm(data) {
|
|
|
6007
6055
|
useRequestPasswordResetForm,
|
|
6008
6056
|
useResetPasswordForm,
|
|
6009
6057
|
useSchoolForm,
|
|
6058
|
+
useUnregisteredVendorForm,
|
|
6010
6059
|
useUserForm,
|
|
6011
6060
|
useValidateVerificationTokenForm,
|
|
6012
6061
|
useVendorForm,
|