@examplary/schemas 1.10.0 → 1.11.0

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.
@@ -48,6 +48,7 @@ export declare const QuestionScoringSchema: z.ZodObject<{
48
48
  maxPoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
49
  }, z.core.$strip>>>>;
50
50
  }, z.core.$strip>>>>;
51
+ exactValuesCaseInsensitive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
51
52
  guidance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
53
  modelAnswer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
54
  templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -23,6 +23,7 @@ var RubricType;
23
23
  exports.QuestionScoringSchema = zod_1.z.object({
24
24
  rubricType: zod_1.z.enum(RubricType).nullish(),
25
25
  criteria: zod_1.z.array(exports.TopLevelScoringCriterionSchema).nullish(),
26
+ exactValuesCaseInsensitive: zod_1.z.boolean().nullish(),
26
27
  guidance: zod_1.z.string().nullish(),
27
28
  modelAnswer: zod_1.z.string().nullish(),
28
29
  templateId: zod_1.z.string().nullish(),
@@ -23,6 +23,7 @@ export declare const QuestionSchema: z.ZodObject<{
23
23
  maxPoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  }, z.core.$strip>>>>;
25
25
  }, z.core.$strip>>>>;
26
+ exactValuesCaseInsensitive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
27
  guidance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
28
  modelAnswer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
29
  templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -98,8 +98,9 @@ export declare const QuestionTypeSchema: z.ZodObject<{
98
98
  }, z.core.$strip>;
99
99
  }, z.core.$strip>>;
100
100
  }, z.core.$strip>>;
101
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
101
102
  stylesheet: z.ZodOptional<z.ZodURL>;
102
103
  index: z.ZodOptional<z.ZodNumber>;
103
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
104
+ isDefault: z.ZodOptional<z.ZodBoolean>;
104
105
  }, z.core.$strict>;
105
106
  export type QuestionType = z.infer<typeof QuestionTypeSchema>;
@@ -80,12 +80,13 @@ exports.QuestionTypeSchema = zod_1.z
80
80
  })
81
81
  .optional()
82
82
  .describe("Export configuration for various formats"),
83
- stylesheet: zod_1.z.url().optional(),
84
- index: zod_1.z.number().optional(),
85
83
  metadata: zod_1.z
86
84
  .record(zod_1.z.string(), scalar_1.ScalarSchema)
87
85
  .optional()
88
86
  .describe("Optional metadata for the question type, only used by external applications"),
87
+ stylesheet: zod_1.z.url().optional(),
88
+ index: zod_1.z.number().optional(),
89
+ isDefault: zod_1.z.boolean().optional(),
89
90
  })
90
91
  .strict()
91
92
  .describe("Schema for defining question types in the Examplary system");
@@ -162,6 +162,16 @@
162
162
  }
163
163
  ]
164
164
  },
165
+ "exactValuesCaseInsensitive": {
166
+ "anyOf": [
167
+ {
168
+ "type": "boolean"
169
+ },
170
+ {
171
+ "type": "null"
172
+ }
173
+ ]
174
+ },
165
175
  "guidance": {
166
176
  "anyOf": [
167
177
  {
@@ -553,13 +553,6 @@
553
553
  },
554
554
  "additionalProperties": false
555
555
  },
556
- "stylesheet": {
557
- "type": "string",
558
- "format": "uri"
559
- },
560
- "index": {
561
- "type": "number"
562
- },
563
556
  "metadata": {
564
557
  "description": "Optional metadata for the question type, only used by external applications",
565
558
  "type": "object",
@@ -582,6 +575,16 @@
582
575
  }
583
576
  ]
584
577
  }
578
+ },
579
+ "stylesheet": {
580
+ "type": "string",
581
+ "format": "uri"
582
+ },
583
+ "index": {
584
+ "type": "number"
585
+ },
586
+ "isDefault": {
587
+ "type": "boolean"
585
588
  }
586
589
  },
587
590
  "required": [
@@ -198,6 +198,16 @@
198
198
  }
199
199
  ]
200
200
  },
201
+ "exactValuesCaseInsensitive": {
202
+ "anyOf": [
203
+ {
204
+ "type": "boolean"
205
+ },
206
+ {
207
+ "type": "null"
208
+ }
209
+ ]
210
+ },
201
211
  "guidance": {
202
212
  "anyOf": [
203
213
  {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@examplary/schemas",
3
3
  "packageManager": "yarn@4.8.1",
4
- "version": "1.10.0",
4
+ "version": "1.11.0",
5
5
  "description": "Schemas for the Examplary platform.",
6
6
  "scripts": {
7
7
  "build:schema": "tsx ./scripts/build.ts",
8
8
  "build:tsc": "tsc ./src/index.ts --outDir dist --skipLibCheck --declaration",
9
- "start": "yarn build:tsc --watch",
9
+ "dev": "yarn build:tsc --watch",
10
10
  "build": "yarn build:tsc && yarn build:schema",
11
11
  "deploy": "bash -c 'serverless deploy --verbose --stage ${STAGE/staging/production}'",
12
12
  "release": "semantic-release -e semantic-release-monorepo"