@timardex/cluemart-shared 1.5.514 → 1.5.515
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-TWB4WJBF.mjs} +6 -1
- package/dist/{chunk-3WSV6DBG.mjs.map → chunk-TWB4WJBF.mjs.map} +1 -1
- package/dist/graphql/index.cjs +5 -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 +10 -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 +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{post-BdZppiSg.d.ts → post-DBw3UtZf.d.ts} +3 -1
- package/dist/{post-DJUVmC92.d.mts → post-gf49BYxL.d.mts} +3 -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-gf49BYxL.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-DBw3UtZf.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,12 @@ var SCHOOL = import_client67.gql`
|
|
|
4392
4392
|
owner {
|
|
4393
4393
|
...OwnerFields
|
|
4394
4394
|
}
|
|
4395
|
+
overallPoints
|
|
4395
4396
|
region
|
|
4396
4397
|
studentCount
|
|
4398
|
+
socialMedia {
|
|
4399
|
+
...SocialMediaFields
|
|
4400
|
+
}
|
|
4397
4401
|
termsAgreement {
|
|
4398
4402
|
...TermsAgreementFields
|
|
4399
4403
|
}
|
|
@@ -4404,6 +4408,7 @@ var SCHOOL = import_client67.gql`
|
|
|
4404
4408
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
4405
4409
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
4406
4410
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
4411
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
4407
4412
|
`;
|
|
4408
4413
|
var GET_SCHOOL = import_client67.gql`
|
|
4409
4414
|
query getSchool($_id: ID!) {
|
|
@@ -5583,6 +5588,7 @@ var schoolSchema = yup11.object().shape({
|
|
|
5583
5588
|
location: locationSchema,
|
|
5584
5589
|
name: yup11.string().trim().required("Name is required"),
|
|
5585
5590
|
region: yup11.string().trim().required("Region is required"),
|
|
5591
|
+
socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
|
|
5586
5592
|
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
5593
|
});
|
|
5588
5594
|
|
|
@@ -5595,6 +5601,7 @@ var defaultSchoolFormValues = {
|
|
|
5595
5601
|
logoUpload: null,
|
|
5596
5602
|
name: "",
|
|
5597
5603
|
region: "",
|
|
5604
|
+
socialMedia: [],
|
|
5598
5605
|
studentCount: 0,
|
|
5599
5606
|
termsAgreement: null
|
|
5600
5607
|
};
|
|
@@ -5621,6 +5628,7 @@ function useSchoolForm(data) {
|
|
|
5621
5628
|
logoUpload: data.logoUpload,
|
|
5622
5629
|
name: data.name,
|
|
5623
5630
|
region: data.region,
|
|
5631
|
+
socialMedia: data.socialMedia,
|
|
5624
5632
|
studentCount: data.studentCount,
|
|
5625
5633
|
termsAgreement: data.termsAgreement
|
|
5626
5634
|
});
|
|
@@ -5629,6 +5637,7 @@ function useSchoolForm(data) {
|
|
|
5629
5637
|
}
|
|
5630
5638
|
}, [data]);
|
|
5631
5639
|
const {
|
|
5640
|
+
socialMedia: socialMedia2,
|
|
5632
5641
|
active,
|
|
5633
5642
|
contactDetails,
|
|
5634
5643
|
location,
|
|
@@ -5649,6 +5658,7 @@ function useSchoolForm(data) {
|
|
|
5649
5658
|
logoUpload,
|
|
5650
5659
|
name,
|
|
5651
5660
|
region,
|
|
5661
|
+
socialMedia: socialMedia2,
|
|
5652
5662
|
studentCount,
|
|
5653
5663
|
termsAgreement
|
|
5654
5664
|
},
|