@getuserfeedback/protocol 1.0.0 → 1.1.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.
|
@@ -3,7 +3,7 @@ export declare const flowVersionResolutionSchema: z.ZodMiniObject<{
|
|
|
3
3
|
flowVersionId: z.ZodMiniString<string>;
|
|
4
4
|
}, z.core.$strip>;
|
|
5
5
|
export declare const themeVersionResolutionSchema: z.ZodMiniObject<{
|
|
6
|
-
themeRuntimeArtifactId: z.
|
|
6
|
+
themeRuntimeArtifactId: z.ZodMiniString<string>;
|
|
7
7
|
themeVersionId: z.ZodMiniString<string>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type FlowVersionResolution = z.output<typeof flowVersionResolutionSchema>;
|
|
@@ -4,6 +4,6 @@ export const flowVersionResolutionSchema = z.object({
|
|
|
4
4
|
flowVersionId: versionIdSchema,
|
|
5
5
|
});
|
|
6
6
|
export const themeVersionResolutionSchema = z.object({
|
|
7
|
-
themeRuntimeArtifactId:
|
|
7
|
+
themeRuntimeArtifactId: versionIdSchema,
|
|
8
8
|
themeVersionId: versionIdSchema,
|
|
9
9
|
});
|
package/package.json
CHANGED
|
@@ -198,7 +198,7 @@ describe("@getuserfeedback/protocol root contract", () => {
|
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
200
|
|
|
201
|
-
it("parses theme resolution payloads with
|
|
201
|
+
it("parses theme resolution payloads with runtime artifacts", () => {
|
|
202
202
|
expect(
|
|
203
203
|
themeVersionResolutionSchema.parse({
|
|
204
204
|
themeRuntimeArtifactId: "thra_xyz",
|
|
@@ -532,8 +532,17 @@ describe("@getuserfeedback/protocol root contract", () => {
|
|
|
532
532
|
flowVersionResolutionSchema.parse({ flowVersionId: "fv_abc" }),
|
|
533
533
|
).toEqual({ flowVersionId: "fv_abc" });
|
|
534
534
|
expect(
|
|
535
|
+
themeVersionResolutionSchema.parse({
|
|
536
|
+
themeRuntimeArtifactId: "thra_xyz",
|
|
537
|
+
themeVersionId: "tv_xyz",
|
|
538
|
+
}),
|
|
539
|
+
).toEqual({
|
|
540
|
+
themeRuntimeArtifactId: "thra_xyz",
|
|
541
|
+
themeVersionId: "tv_xyz",
|
|
542
|
+
});
|
|
543
|
+
expect(() =>
|
|
535
544
|
themeVersionResolutionSchema.parse({ themeVersionId: "tv_xyz" }),
|
|
536
|
-
).
|
|
545
|
+
).toThrow();
|
|
537
546
|
expect(() =>
|
|
538
547
|
flowVersionResolutionSchema.parse({ flowVersionId: " " }),
|
|
539
548
|
).toThrow();
|