@timardex/cluemart-shared 1.5.514 → 1.5.516
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-3WSV6DBG.mjs → chunk-6FBQIZD5.mjs} +7 -1
- package/dist/{chunk-3WSV6DBG.mjs.map → chunk-6FBQIZD5.mjs.map} +1 -1
- package/dist/graphql/index.cjs +6 -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 +11 -0
- 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 +6 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{post-BdZppiSg.d.ts → post-Boa6CuuS.d.ts} +4 -1
- package/dist/{post-DJUVmC92.d.mts → post-CVcBv8XI.d.mts} +4 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
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-CqrscA5x.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-MMBYi34A.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 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 SchoolType } from '../post-CVcBv8XI.mjs';
|
|
6
6
|
import { G as GameDocType, a as GameLeaderboard } from '../game-BunlgBR3.mjs';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
|
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-2FaGRW-i.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-B0WdAD-8.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 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 SchoolType } from '../post-Boa6CuuS.js';
|
|
6
6
|
import { G as GameDocType, a as GameLeaderboard } from '../game-BkJDVMMI.js';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -4392,8 +4392,13 @@ var SCHOOL = import_client67.gql`
|
|
|
4392
4392
|
owner {
|
|
4393
4393
|
...OwnerFields
|
|
4394
4394
|
}
|
|
4395
|
+
overallPoints
|
|
4395
4396
|
region
|
|
4396
4397
|
studentCount
|
|
4398
|
+
schoolCode
|
|
4399
|
+
socialMedia {
|
|
4400
|
+
...SocialMediaFields
|
|
4401
|
+
}
|
|
4397
4402
|
termsAgreement {
|
|
4398
4403
|
...TermsAgreementFields
|
|
4399
4404
|
}
|
|
@@ -4404,6 +4409,7 @@ var SCHOOL = import_client67.gql`
|
|
|
4404
4409
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
4405
4410
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
4406
4411
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
4412
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
4407
4413
|
`;
|
|
4408
4414
|
var GET_SCHOOL = import_client67.gql`
|
|
4409
4415
|
query getSchool($_id: ID!) {
|
|
@@ -5583,6 +5589,7 @@ var schoolSchema = yup11.object().shape({
|
|
|
5583
5589
|
location: locationSchema,
|
|
5584
5590
|
name: yup11.string().trim().required("Name is required"),
|
|
5585
5591
|
region: yup11.string().trim().required("Region is required"),
|
|
5592
|
+
socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
|
|
5586
5593
|
studentCount: yup11.number().label("Student Count").min(0, "Student count cannot be negative").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
|
|
5587
5594
|
});
|
|
5588
5595
|
|
|
@@ -5595,6 +5602,7 @@ var defaultSchoolFormValues = {
|
|
|
5595
5602
|
logoUpload: null,
|
|
5596
5603
|
name: "",
|
|
5597
5604
|
region: "",
|
|
5605
|
+
socialMedia: [],
|
|
5598
5606
|
studentCount: 0,
|
|
5599
5607
|
termsAgreement: null
|
|
5600
5608
|
};
|
|
@@ -5621,6 +5629,7 @@ function useSchoolForm(data) {
|
|
|
5621
5629
|
logoUpload: data.logoUpload,
|
|
5622
5630
|
name: data.name,
|
|
5623
5631
|
region: data.region,
|
|
5632
|
+
socialMedia: data.socialMedia,
|
|
5624
5633
|
studentCount: data.studentCount,
|
|
5625
5634
|
termsAgreement: data.termsAgreement
|
|
5626
5635
|
});
|
|
@@ -5629,6 +5638,7 @@ function useSchoolForm(data) {
|
|
|
5629
5638
|
}
|
|
5630
5639
|
}, [data]);
|
|
5631
5640
|
const {
|
|
5641
|
+
socialMedia: socialMedia2,
|
|
5632
5642
|
active,
|
|
5633
5643
|
contactDetails,
|
|
5634
5644
|
location,
|
|
@@ -5649,6 +5659,7 @@ function useSchoolForm(data) {
|
|
|
5649
5659
|
logoUpload,
|
|
5650
5660
|
name,
|
|
5651
5661
|
region,
|
|
5662
|
+
socialMedia: socialMedia2,
|
|
5652
5663
|
studentCount,
|
|
5653
5664
|
termsAgreement
|
|
5654
5665
|
},
|