@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/index.cjs CHANGED
@@ -944,9 +944,9 @@ function hashStringToNumber(seed) {
944
944
  }
945
945
  return hash >>> 0;
946
946
  }
947
- function seededShuffle(array6, seed) {
947
+ function seededShuffle(array7, seed) {
948
948
  const rng = createSeededRng(hashStringToNumber(seed));
949
- const result = [...array6];
949
+ const result = [...array7];
950
950
  for (let i = result.length - 1; i > 0; i--) {
951
951
  const j = Math.floor(rng() * (i + 1));
952
952
  [result[i], result[j]] = [result[j], result[i]];
@@ -6466,8 +6466,13 @@ var SCHOOL = import_client67.gql`
6466
6466
  owner {
6467
6467
  ...OwnerFields
6468
6468
  }
6469
+ overallPoints
6469
6470
  region
6470
6471
  studentCount
6472
+ schoolCode
6473
+ socialMedia {
6474
+ ...SocialMediaFields
6475
+ }
6471
6476
  termsAgreement {
6472
6477
  ...TermsAgreementFields
6473
6478
  }
@@ -6478,6 +6483,7 @@ var SCHOOL = import_client67.gql`
6478
6483
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
6479
6484
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
6480
6485
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
6486
+ ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
6481
6487
  `;
6482
6488
  var GET_SCHOOL = import_client67.gql`
6483
6489
  query getSchool($_id: ID!) {
@@ -8351,6 +8357,7 @@ var schoolSchema = yup11.object().shape({
8351
8357
  location: locationSchema,
8352
8358
  name: yup11.string().trim().required("Name is required"),
8353
8359
  region: yup11.string().trim().required("Region is required"),
8360
+ socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
8354
8361
  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"))
8355
8362
  });
8356
8363
 
@@ -8363,6 +8370,7 @@ var defaultSchoolFormValues = {
8363
8370
  logoUpload: null,
8364
8371
  name: "",
8365
8372
  region: "",
8373
+ socialMedia: [],
8366
8374
  studentCount: 0,
8367
8375
  termsAgreement: null
8368
8376
  };
@@ -8389,6 +8397,7 @@ function useSchoolForm(data) {
8389
8397
  logoUpload: data.logoUpload,
8390
8398
  name: data.name,
8391
8399
  region: data.region,
8400
+ socialMedia: data.socialMedia,
8392
8401
  studentCount: data.studentCount,
8393
8402
  termsAgreement: data.termsAgreement
8394
8403
  });
@@ -8397,6 +8406,7 @@ function useSchoolForm(data) {
8397
8406
  }
8398
8407
  }, [data]);
8399
8408
  const {
8409
+ socialMedia: socialMedia2,
8400
8410
  active,
8401
8411
  contactDetails,
8402
8412
  location,
@@ -8417,6 +8427,7 @@ function useSchoolForm(data) {
8417
8427
  logoUpload,
8418
8428
  name,
8419
8429
  region,
8430
+ socialMedia: socialMedia2,
8420
8431
  studentCount,
8421
8432
  termsAgreement
8422
8433
  },