@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.cjs CHANGED
@@ -9944,6 +9944,7 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
9944
9944
  `;
9945
9945
  var GAME_HISTORY_FIELDS_FRAGMENT = gql`
9946
9946
  fragment GameHistoryFields on GameHistoryType {
9947
+ createdAt
9947
9948
  gameDate {
9948
9949
  ...GameDateFields
9949
9950
  }
@@ -9963,6 +9964,7 @@ var GAME_DATA_FIELDS_FRAGMENT = gql`
9963
9964
  `;
9964
9965
  var GAME_FIELDS_FRAGMENT = gql`
9965
9966
  fragment GameFields on GameType {
9967
+ _id
9966
9968
  active
9967
9969
  createdAt
9968
9970
  gameData {
@@ -10265,6 +10267,15 @@ var DELETE_SCHOOL_MUTATION = gql`
10265
10267
  deleteSchool(_id: $_id)
10266
10268
  }
10267
10269
  `;
10270
+ var REQUEST_MARKETING_MATERIAL_MUTATION = gql`
10271
+ mutation requestMarketingMaterial(
10272
+ $input: MarketingMaterialRequestInputType!
10273
+ ) {
10274
+ requestMarketingMaterial(input: $input) {
10275
+ message
10276
+ }
10277
+ }
10278
+ `;
10268
10279
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10269
10280
  var nzbnRegex = /^94\d{11}$/;
10270
10281
  var normalizedUrlTransform = () => create$6().trim().transform(
@@ -10887,7 +10898,7 @@ var schoolSchema = create$3().shape({
10887
10898
  name: create$6().trim().required("Name is required"),
10888
10899
  region: create$6().trim().required("Region is required"),
10889
10900
  socialMedia: create$2().of(socialMediaSchema).nullable().default(null),
10890
- 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"))
10901
+ 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"))
10891
10902
  });
10892
10903
  var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
10893
10904
  EnumActivity2["FAVORITE"] = "FAVORITE";
@@ -12191,6 +12202,7 @@ var gameDataDefinition = Object.fromEntries(
12191
12202
  );
12192
12203
  var gameHistorySchema = new MongooseSchema19(
12193
12204
  {
12205
+ createdAt: { required: true, type: Date },
12194
12206
  gameDate: { required: true, type: schemaGameDate },
12195
12207
  gameStatus: {
12196
12208
  enum: Object.values(EnumGameStatus),
@@ -12217,7 +12229,7 @@ var gameTypeSchema = new MongooseSchema19(
12217
12229
  type: String
12218
12230
  }
12219
12231
  },
12220
- { _id: false, timestamps: true }
12232
+ { timestamps: true }
12221
12233
  );
12222
12234
  var schema14 = new MongooseSchema19(
12223
12235
  {