@wise/dynamic-flow-types 3.14.1 → 3.15.1

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/build/main.js CHANGED
@@ -881,7 +881,6 @@ var booleanSchemaSchema = import_zod.z.lazy(
881
881
  var constSchemaSchema = import_zod.z.lazy(
882
882
  () => import_zod.z.object({
883
883
  hidden: import_zod.z.boolean().optional(),
884
- alert: alertLayoutSchema.optional(),
885
884
  control: import_zod.z.string().optional(),
886
885
  promoted: import_zod.z.boolean().optional(),
887
886
  $id: import_zod.z.string().optional(),
@@ -894,7 +893,9 @@ var constSchemaSchema = import_zod.z.lazy(
894
893
  summary: summaryProviderSchema.optional(),
895
894
  analyticsId: import_zod.z.string().optional(),
896
895
  disabled: import_zod.z.boolean().optional(),
897
- media: mediaSchema.optional()
896
+ media: mediaSchema.optional(),
897
+ alert: alertLayoutSchema.optional(),
898
+ layout: import_zod.z.array(layoutSchema).optional()
898
899
  })
899
900
  );
900
901
  var integerSchemaSchema = import_zod.z.lazy(
package/build/main.mjs CHANGED
@@ -853,7 +853,6 @@ var booleanSchemaSchema = z.lazy(
853
853
  var constSchemaSchema = z.lazy(
854
854
  () => z.object({
855
855
  hidden: z.boolean().optional(),
856
- alert: alertLayoutSchema.optional(),
857
856
  control: z.string().optional(),
858
857
  promoted: z.boolean().optional(),
859
858
  $id: z.string().optional(),
@@ -866,7 +865,9 @@ var constSchemaSchema = z.lazy(
866
865
  summary: summaryProviderSchema.optional(),
867
866
  analyticsId: z.string().optional(),
868
867
  disabled: z.boolean().optional(),
869
- media: mediaSchema.optional()
868
+ media: mediaSchema.optional(),
869
+ alert: alertLayoutSchema.optional(),
870
+ layout: z.array(layoutSchema).optional()
870
871
  })
871
872
  );
872
873
  var integerSchemaSchema = z.lazy(
@@ -4,6 +4,7 @@ import type { Image } from '../misc/Image';
4
4
  import type { SummaryProvider } from '../feature/SummaryProvider';
5
5
  import type { Media } from '../misc/media/Media';
6
6
  import type { AlertLayout } from '../layout/AlertLayout';
7
+ import type { Layout } from '../layout/Layout';
7
8
  /**
8
9
  * Represents a constant value in the submission.
9
10
  */
@@ -75,4 +76,8 @@ export type ConstSchema = {
75
76
  * [com.wise.dynamicflow.feature.Action] for server-side validation.
76
77
  */
77
78
  alert?: AlertLayout;
79
+ /**
80
+ * An array of layouts representing the schema.
81
+ */
82
+ layout?: Layout[];
78
83
  };
@@ -1204,6 +1204,7 @@ export const constSchemaSchema: z.ZodSchema<ConstSchema> = z.lazy(() =>
1204
1204
  disabled: z.boolean().optional(),
1205
1205
  media: mediaSchema.optional(),
1206
1206
  alert: alertLayoutSchema.optional(),
1207
+ layout: z.array(layoutSchema).optional(),
1207
1208
  }),
1208
1209
  );
1209
1210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "3.14.1",
3
+ "version": "3.15.1",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -35,7 +35,8 @@
35
35
  "esbuild": "0.25.9",
36
36
  "npm-run-all2": "8.0.4",
37
37
  "ts-to-zod": "3.15.0",
38
- "typescript": "5.9.2"
38
+ "typescript": "5.9.2",
39
+ "typescript-json-schema": "0.65.1"
39
40
  },
40
41
  "dependencies": {
41
42
  "zod": "3.25.76"
@@ -45,7 +46,8 @@
45
46
  "build": "rm -rf build && npm-run-all build:*",
46
47
  "build:types": "pnpm tsc --emitDeclarationOnly",
47
48
  "build:js": "node ./scripts/build.mjs",
48
- "build:zod": "./src/zod/build_zod.sh && eslint 'src/zod/schemas.ts' --quiet --fix",
49
+ "build:schemas": "./src/build_schemas.sh && eslint 'src/zod/schemas.ts' --quiet --fix",
50
+ "copy-sandbox-schema": "cp json-schema.json ../../../api-documentation/src/components/dynamicFlow/sandbox/df-schema.json",
49
51
  "types": "pnpm tsc --noEmit",
50
52
  "types:watch": "pnpm tsc --noEmit --watch",
51
53
  "lint": "eslint 'src/**/*.{js,ts}' --quiet"
File without changes