@timardex/cluemart-server-shared 1.0.135 → 1.0.137

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.mjs CHANGED
@@ -9884,6 +9884,7 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
9884
9884
  `;
9885
9885
  var GAME_HISTORY_FIELDS_FRAGMENT = gql`
9886
9886
  fragment GameHistoryFields on GameHistoryType {
9887
+ createdAt
9887
9888
  gameDate {
9888
9889
  ...GameDateFields
9889
9890
  }
@@ -9903,6 +9904,7 @@ var GAME_DATA_FIELDS_FRAGMENT = gql`
9903
9904
  `;
9904
9905
  var GAME_FIELDS_FRAGMENT = gql`
9905
9906
  fragment GameFields on GameType {
9907
+ _id
9906
9908
  active
9907
9909
  createdAt
9908
9910
  gameData {
@@ -10205,6 +10207,15 @@ var DELETE_SCHOOL_MUTATION = gql`
10205
10207
  deleteSchool(_id: $_id)
10206
10208
  }
10207
10209
  `;
10210
+ var REQUEST_MARKETING_MATERIAL_MUTATION = gql`
10211
+ mutation requestMarketingMaterial(
10212
+ $input: MarketingMaterialRequestInputType!
10213
+ ) {
10214
+ requestMarketingMaterial(input: $input) {
10215
+ message
10216
+ }
10217
+ }
10218
+ `;
10208
10219
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10209
10220
  var nzbnRegex = /^94\d{11}$/;
10210
10221
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -10827,7 +10838,7 @@ var schoolSchema = create$3().shape({
10827
10838
  name: create$6().trim().required("Name is required"),
10828
10839
  region: create$6().trim().required("Region is required"),
10829
10840
  socialMedia: create$2().of(socialMediaSchema).nullable().default(null),
10830
- studentCount: create$5().label("Student Count").min(0, "Student count cannot be negative").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
10841
+ studentCount: create$5().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(350, "Student count must be at least 350").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
10831
10842
  });
10832
10843
  var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
10833
10844
  EnumActivity2["FAVORITE"] = "FAVORITE";
@@ -12131,6 +12142,7 @@ var gameDataDefinition = Object.fromEntries(
12131
12142
  );
12132
12143
  var gameHistorySchema = new MongooseSchema19(
12133
12144
  {
12145
+ createdAt: { required: true, type: Date },
12134
12146
  gameDate: { required: true, type: schemaGameDate },
12135
12147
  gameStatus: {
12136
12148
  enum: Object.values(EnumGameStatus),
@@ -12157,7 +12169,7 @@ var gameTypeSchema = new MongooseSchema19(
12157
12169
  type: String
12158
12170
  }
12159
12171
  },
12160
- { _id: false, timestamps: true }
12172
+ { timestamps: true }
12161
12173
  );
12162
12174
  var schema14 = new MongooseSchema19(
12163
12175
  {