@campfirelearning/sdk-lti
Advanced tools
Comparing version 0.12.0 to 0.12.1
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.12.1](https://github.com/examspark/campfire-sdk/compare/@campfirelearning/sdk-lti@0.12.0...@campfirelearning/sdk-lti@0.12.1) (2025-01-23) | ||
**Note:** Version bump only for package @campfirelearning/sdk-lti | ||
# [0.12.0](https://github.com/examspark/campfire-sdk/compare/@campfirelearning/sdk-lti@0.11.4...@campfirelearning/sdk-lti@0.12.0) (2025-01-22) | ||
@@ -8,0 +12,0 @@ |
@@ -8,2 +8,5 @@ import { z } from "zod"; | ||
readonly EXAM_PICKER_CLOSED: "examPickerClosed"; | ||
readonly EXAM_EDITOR_OPENED: "examEditorOpened"; | ||
readonly EXAM_EDITOR_CLOSED: "examEditorClosed"; | ||
readonly EXAM_EDITOR_CANCELLED: "examEditorCancelled"; | ||
}; | ||
@@ -36,2 +39,68 @@ declare const eventSchema: z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
name: z.ZodLiteral<"examEditorOpened">; | ||
data: z.ZodObject<{ | ||
id: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
id?: string | undefined; | ||
}, { | ||
id?: string | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "event"; | ||
data: { | ||
id?: string | undefined; | ||
}; | ||
name: "examEditorOpened"; | ||
}, { | ||
type: "event"; | ||
data: { | ||
id?: string | undefined; | ||
}; | ||
name: "examEditorOpened"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
name: z.ZodLiteral<"examEditorClosed">; | ||
data: z.ZodObject<{ | ||
id: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
id?: string | undefined; | ||
}, { | ||
id?: string | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "event"; | ||
data: { | ||
id?: string | undefined; | ||
}; | ||
name: "examEditorClosed"; | ||
}, { | ||
type: "event"; | ||
data: { | ||
id?: string | undefined; | ||
}; | ||
name: "examEditorClosed"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
name: z.ZodLiteral<"examEditorCancelled">; | ||
data: z.ZodObject<{ | ||
id: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
id?: string | undefined; | ||
}, { | ||
id?: string | undefined; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: "event"; | ||
data: { | ||
id?: string | undefined; | ||
}; | ||
name: "examEditorCancelled"; | ||
}, { | ||
type: "event"; | ||
data: { | ||
id?: string | undefined; | ||
}; | ||
name: "examEditorCancelled"; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<"event">; | ||
name: z.ZodLiteral<"examSelected">; | ||
@@ -38,0 +107,0 @@ data: z.ZodObject<{ |
{ | ||
"name": "@campfirelearning/sdk-lti", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"main": "./src/index.ts", | ||
@@ -43,3 +43,3 @@ "author": "ExamSpark, LLC", | ||
}, | ||
"gitHead": "0dd6f24565bf59622f213c03109029a1dcf83a68" | ||
"gitHead": "ab0113f4b203862eed7cd357e1c85fa0448a25ad" | ||
} |
@@ -16,2 +16,5 @@ import { z } from "zod"; | ||
EXAM_PICKER_CLOSED: "examPickerClosed", | ||
EXAM_EDITOR_OPENED: "examEditorOpened", | ||
EXAM_EDITOR_CLOSED: "examEditorClosed", | ||
EXAM_EDITOR_CANCELLED: "examEditorCancelled", | ||
} as const; | ||
@@ -32,2 +35,23 @@ | ||
type: z.literal("event"), | ||
name: z.literal(Events.EXAM_EDITOR_OPENED), | ||
data: z.object({ | ||
id: z.string().optional(), // opt'l if creating new exam | ||
}), | ||
}), | ||
z.object({ | ||
type: z.literal("event"), | ||
name: z.literal(Events.EXAM_EDITOR_CLOSED), | ||
data: z.object({ | ||
id: z.string().optional(), // opt'l if exam was abandoned | ||
}), | ||
}), | ||
z.object({ | ||
type: z.literal("event"), | ||
name: z.literal(Events.EXAM_EDITOR_CANCELLED), | ||
data: z.object({ | ||
id: z.string().optional(), // opt'l if exam was abandoned | ||
}), | ||
}), | ||
z.object({ | ||
type: z.literal("event"), | ||
name: z.literal(Events.EXAM_SELECTED), | ||
@@ -34,0 +58,0 @@ data: z.object({ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
332136
7915