@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/index.d.mts CHANGED
@@ -1223,6 +1223,7 @@ interface SchoolFormData {
1223
1223
  name: string;
1224
1224
  region: string;
1225
1225
  studentCount: number;
1226
+ socialMedia: SocialMediaType[] | null;
1226
1227
  termsAgreement?: TermsAgreement | null;
1227
1228
  }
1228
1229
  type CreateSchoolFormData = CreateFormData<SchoolFormData>;
@@ -1230,6 +1231,7 @@ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
1230
1231
  _id: string;
1231
1232
  createdAt: Date;
1232
1233
  deletedAt: Date | null;
1234
+ overallPoints: number | null;
1233
1235
  owner: OwnerType | null;
1234
1236
  updatedAt: Date | null;
1235
1237
  };
package/dist/index.d.ts CHANGED
@@ -1223,6 +1223,7 @@ interface SchoolFormData {
1223
1223
  name: string;
1224
1224
  region: string;
1225
1225
  studentCount: number;
1226
+ socialMedia: SocialMediaType[] | null;
1226
1227
  termsAgreement?: TermsAgreement | null;
1227
1228
  }
1228
1229
  type CreateSchoolFormData = CreateFormData<SchoolFormData>;
@@ -1230,6 +1231,7 @@ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
1230
1231
  _id: string;
1231
1232
  createdAt: Date;
1232
1233
  deletedAt: Date | null;
1234
+ overallPoints: number | null;
1233
1235
  owner: OwnerType | null;
1234
1236
  updatedAt: Date | null;
1235
1237
  };
package/dist/index.mjs CHANGED
@@ -640,9 +640,9 @@ function hashStringToNumber(seed) {
640
640
  }
641
641
  return hash >>> 0;
642
642
  }
643
- function seededShuffle(array6, seed) {
643
+ function seededShuffle(array7, seed) {
644
644
  const rng = createSeededRng(hashStringToNumber(seed));
645
- const result = [...array6];
645
+ const result = [...array7];
646
646
  for (let i = result.length - 1; i > 0; i--) {
647
647
  const j = Math.floor(rng() * (i + 1));
648
648
  [result[i], result[j]] = [result[j], result[i]];
@@ -6162,8 +6162,12 @@ var SCHOOL = gql35`
6162
6162
  owner {
6163
6163
  ...OwnerFields
6164
6164
  }
6165
+ overallPoints
6165
6166
  region
6166
6167
  studentCount
6168
+ socialMedia {
6169
+ ...SocialMediaFields
6170
+ }
6167
6171
  termsAgreement {
6168
6172
  ...TermsAgreementFields
6169
6173
  }
@@ -6174,6 +6178,7 @@ var SCHOOL = gql35`
6174
6178
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
6175
6179
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
6176
6180
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
6181
+ ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
6177
6182
  `;
6178
6183
  var GET_SCHOOL = gql35`
6179
6184
  query getSchool($_id: ID!) {
@@ -8047,6 +8052,7 @@ var schoolSchema = yup11.object().shape({
8047
8052
  location: locationSchema,
8048
8053
  name: yup11.string().trim().required("Name is required"),
8049
8054
  region: yup11.string().trim().required("Region is required"),
8055
+ socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
8050
8056
  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"))
8051
8057
  });
8052
8058
 
@@ -8059,6 +8065,7 @@ var defaultSchoolFormValues = {
8059
8065
  logoUpload: null,
8060
8066
  name: "",
8061
8067
  region: "",
8068
+ socialMedia: [],
8062
8069
  studentCount: 0,
8063
8070
  termsAgreement: null
8064
8071
  };
@@ -8085,6 +8092,7 @@ function useSchoolForm(data) {
8085
8092
  logoUpload: data.logoUpload,
8086
8093
  name: data.name,
8087
8094
  region: data.region,
8095
+ socialMedia: data.socialMedia,
8088
8096
  studentCount: data.studentCount,
8089
8097
  termsAgreement: data.termsAgreement
8090
8098
  });
@@ -8093,6 +8101,7 @@ function useSchoolForm(data) {
8093
8101
  }
8094
8102
  }, [data]);
8095
8103
  const {
8104
+ socialMedia: socialMedia2,
8096
8105
  active,
8097
8106
  contactDetails,
8098
8107
  location,
@@ -8113,6 +8122,7 @@ function useSchoolForm(data) {
8113
8122
  logoUpload,
8114
8123
  name,
8115
8124
  region,
8125
+ socialMedia: socialMedia2,
8116
8126
  studentCount,
8117
8127
  termsAgreement
8118
8128
  },