@timardex/cluemart-shared 1.5.548 → 1.5.550
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/{chunk-Z3JWNX2U.mjs → chunk-CPT4WZKU.mjs} +8 -2
- package/dist/chunk-CPT4WZKU.mjs.map +1 -0
- package/dist/{chunk-L47NQHZ6.mjs → chunk-CRZP6KYI.mjs} +2 -2
- package/dist/{chunk-HYU4YHHL.mjs → chunk-FICQ3PR5.mjs} +1 -1
- package/dist/{chunk-HYU4YHHL.mjs.map → chunk-FICQ3PR5.mjs.map} +1 -1
- package/dist/{chunk-XUQ6GKX7.mjs → chunk-UBAAAYJY.mjs} +2 -1
- package/dist/{chunk-XUQ6GKX7.mjs.map → chunk-UBAAAYJY.mjs.map} +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +1 -0
- 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 +1 -1
- package/dist/hooks/index.cjs +9 -1
- 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 +10 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DjuHzWo7.d.mts → post-CY53UsA7.d.mts} +1 -0
- package/dist/{post-C0CIWXwc.d.ts → post-Lc5PrxY6.d.ts} +1 -0
- 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/dist/utils/index.cjs +8 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +4 -1
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.mjs +5 -1
- package/package.json +1 -1
- package/dist/chunk-Z3JWNX2U.mjs.map +0 -1
- /package/dist/{chunk-L47NQHZ6.mjs.map → chunk-CRZP6KYI.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
3
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-B8dshdq5.mjs';
|
|
4
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-ClbRuePq.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, e as SchoolReturnType, f as SchoolType } from '../post-
|
|
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, e as SchoolReturnType, f as SchoolType } from '../post-CY53UsA7.mjs';
|
|
6
6
|
import { G as GameDocType, a as GameLeaderboard } from '../game-BPtE3yaQ.mjs';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import '../images/index.mjs';
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
3
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BXsZrzFC.js';
|
|
4
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-CDqmjLH1.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, e as SchoolReturnType, f as SchoolType } from '../post-
|
|
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, e as SchoolReturnType, f as SchoolType } from '../post-Lc5PrxY6.js';
|
|
6
6
|
import { G as GameDocType, a as GameLeaderboard } from '../game-1CSiEjlf.js';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import '../images/index.js';
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -438,6 +438,9 @@ var cluemartSocialMedia = [
|
|
|
438
438
|
}
|
|
439
439
|
];
|
|
440
440
|
|
|
441
|
+
// src/utils/school.ts
|
|
442
|
+
var SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
443
|
+
|
|
441
444
|
// src/yupSchema/global.ts
|
|
442
445
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
443
446
|
var nzbnRegex = /^94\d{11}$/;
|
|
@@ -4324,6 +4327,7 @@ var POST_FIELDS_FRAGMENT = import_client56.gql`
|
|
|
4324
4327
|
postType
|
|
4325
4328
|
resource {
|
|
4326
4329
|
resourceId
|
|
4330
|
+
resourceRegion
|
|
4327
4331
|
resourceType
|
|
4328
4332
|
}
|
|
4329
4333
|
tags
|
|
@@ -4693,6 +4697,7 @@ var postSchema = yup8.object().shape({
|
|
|
4693
4697
|
postType: yup8.mixed().oneOf(Object.values(EnumPostType)).required(),
|
|
4694
4698
|
resource: yup8.object({
|
|
4695
4699
|
resourceId: yup8.string().required(),
|
|
4700
|
+
resourceRegion: yup8.string().required(),
|
|
4696
4701
|
resourceType: yup8.mixed().oneOf(Object.values(EnumResourceType)).required()
|
|
4697
4702
|
}).nullable().optional(),
|
|
4698
4703
|
tags: yup8.array().of(yup8.string().required()).nullable().optional(),
|
|
@@ -5800,7 +5805,10 @@ var schoolSchema = yup11.object().shape({
|
|
|
5800
5805
|
name: yup11.string().trim().required("Name is required"),
|
|
5801
5806
|
region: yup11.string().trim().required("Region is required"),
|
|
5802
5807
|
socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
|
|
5803
|
-
studentCount: yup11.number().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(
|
|
5808
|
+
studentCount: yup11.number().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(
|
|
5809
|
+
SCHOOL_MIN_STUDENT_COUNT,
|
|
5810
|
+
`Student count must be at least ${SCHOOL_MIN_STUDENT_COUNT}`
|
|
5811
|
+
).required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
|
|
5804
5812
|
});
|
|
5805
5813
|
|
|
5806
5814
|
// src/hooks/useSchoolForm.ts
|