@wise/dynamic-flow-types 2.6.0-beta-b14b7d.3 → 2.6.2
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/next/index.d.ts +15 -0
- package/build/zod/schemas.d.ts +40 -16
- package/package.json +11 -15
- package/build/main.js +0 -4477
- package/build/main.min.js +0 -1
- package/build/zod/schemas.ts +0 -906
package/build/next/index.d.ts
CHANGED
|
@@ -21,9 +21,24 @@ export type FormLayout = GeneratedFormLayout & {
|
|
|
21
21
|
};
|
|
22
22
|
export type { HeadingLayout } from './layout/HeadingLayout';
|
|
23
23
|
export type { ImageLayout } from './layout/ImageLayout';
|
|
24
|
+
export type { InstructionsLayout } from './layout/InstructionsLayout';
|
|
25
|
+
export type { InstructionsLayoutItem } from './layout/InstructionsLayoutItem';
|
|
26
|
+
export type { InfoLayout } from './layout/InfoLayout';
|
|
27
|
+
export type { ListLayout } from './layout/ListLayout';
|
|
28
|
+
export type { ListLayoutItem } from './layout/ListLayoutItem';
|
|
29
|
+
export type { ListLayoutStatus } from './layout/ListLayoutStatus';
|
|
30
|
+
export type { LoadingIndicatorLayout } from './layout/LoadingIndicatorLayout';
|
|
31
|
+
export type { MarkdownLayout } from './layout/MarkdownLayout';
|
|
24
32
|
export type { ModalLayout } from './layout/ModalLayout';
|
|
25
33
|
export type { ModalLayoutContent } from './layout/ModalLayoutContent';
|
|
34
|
+
export type { ModalLayoutTrigger } from './layout/ModalLayoutTrigger';
|
|
26
35
|
export type { ParagraphLayout } from './layout/ParagraphLayout';
|
|
36
|
+
export type { ReviewLayout } from './layout/ReviewLayout';
|
|
37
|
+
export type { ReviewLayoutCallToAction } from './layout/ReviewLayoutCallToAction';
|
|
38
|
+
export type { ReviewLayoutField } from './layout/ReviewLayoutField';
|
|
39
|
+
export type { StatusListLayout } from './layout/StatusListLayout';
|
|
40
|
+
export type { StatusListLayoutItem } from './layout/StatusListLayoutItem';
|
|
41
|
+
export type { StatusListLayoutStatus } from './layout/StatusListLayoutStatus';
|
|
27
42
|
export type { SearchResult } from './responses/search/SearchResult';
|
|
28
43
|
export type { SearchResponseBody } from './responses/search/SearchResponseBody';
|
|
29
44
|
export type { Schema } from './schema/Schema';
|
package/build/zod/schemas.d.ts
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { JsonElement, Layout, BoxLayout, ColumnsLayout, ModalLayout, ModalLayoutContent, Step, Schema, AllOfSchema, ArraySchema, BooleanSchema, IntegerSchema, NumberSchema, ObjectSchema, OneOfSchema, StringSchema, ArraySchemaList, PersistAsync, ArraySchemaTuple } from '../next';
|
|
3
|
-
export declare const imageSchema: z.ZodObject<{
|
|
4
|
-
url: z.ZodString;
|
|
5
|
-
text: z.ZodOptional<z.ZodString>;
|
|
6
|
-
accessibilityDescription: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
url: string;
|
|
9
|
-
text?: string | undefined;
|
|
10
|
-
accessibilityDescription?: string | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
url: string;
|
|
13
|
-
text?: string | undefined;
|
|
14
|
-
accessibilityDescription?: string | undefined;
|
|
15
|
-
}>;
|
|
16
3
|
export declare const httpMethodSchema: z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"POST">, z.ZodLiteral<"PUT">, z.ZodLiteral<"PATCH">, z.ZodLiteral<"DELETE">]>;
|
|
17
4
|
export declare const iconNamedSchema: z.ZodObject<{
|
|
18
5
|
name: z.ZodString;
|
|
@@ -1328,19 +1315,16 @@ export declare const errorResponseBodySchema: z.ZodObject<{
|
|
|
1328
1315
|
validation: z.ZodOptional<z.ZodType<JsonElement, z.ZodTypeDef, JsonElement>>;
|
|
1329
1316
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
1330
1317
|
refreshFormUrl: z.ZodOptional<z.ZodString>;
|
|
1331
|
-
analytics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1332
1318
|
}, "strip", z.ZodTypeAny, {
|
|
1333
1319
|
error?: string | undefined;
|
|
1334
1320
|
validation?: JsonElement | undefined;
|
|
1335
1321
|
refreshUrl?: string | undefined;
|
|
1336
1322
|
refreshFormUrl?: string | undefined;
|
|
1337
|
-
analytics?: Record<string, string> | undefined;
|
|
1338
1323
|
}, {
|
|
1339
1324
|
error?: string | undefined;
|
|
1340
1325
|
validation?: JsonElement | undefined;
|
|
1341
1326
|
refreshUrl?: string | undefined;
|
|
1342
1327
|
refreshFormUrl?: string | undefined;
|
|
1343
|
-
analytics?: Record<string, string> | undefined;
|
|
1344
1328
|
}>;
|
|
1345
1329
|
export declare const linkHandlerSchema: z.ZodObject<{
|
|
1346
1330
|
regexPattern: z.ZodString;
|
|
@@ -1447,15 +1431,27 @@ export declare const blobSchemaSchema: z.ZodObject<{
|
|
|
1447
1431
|
text: string;
|
|
1448
1432
|
}>]>>;
|
|
1449
1433
|
image: z.ZodOptional<z.ZodObject<{
|
|
1434
|
+
type: z.ZodLiteral<"image">;
|
|
1450
1435
|
url: z.ZodString;
|
|
1436
|
+
size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"xs">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">, z.ZodLiteral<"xl">]>>;
|
|
1437
|
+
control: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
margin: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"xs">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">, z.ZodLiteral<"xl">]>>;
|
|
1451
1439
|
text: z.ZodOptional<z.ZodString>;
|
|
1452
1440
|
accessibilityDescription: z.ZodOptional<z.ZodString>;
|
|
1453
1441
|
}, "strip", z.ZodTypeAny, {
|
|
1454
1442
|
url: string;
|
|
1443
|
+
type: "image";
|
|
1444
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1445
|
+
control?: string | undefined;
|
|
1446
|
+
margin?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1455
1447
|
text?: string | undefined;
|
|
1456
1448
|
accessibilityDescription?: string | undefined;
|
|
1457
1449
|
}, {
|
|
1458
1450
|
url: string;
|
|
1451
|
+
type: "image";
|
|
1452
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1453
|
+
control?: string | undefined;
|
|
1454
|
+
margin?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1459
1455
|
text?: string | undefined;
|
|
1460
1456
|
accessibilityDescription?: string | undefined;
|
|
1461
1457
|
}>>;
|
|
@@ -1529,6 +1525,10 @@ export declare const blobSchemaSchema: z.ZodObject<{
|
|
|
1529
1525
|
} | undefined;
|
|
1530
1526
|
image?: {
|
|
1531
1527
|
url: string;
|
|
1528
|
+
type: "image";
|
|
1529
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1530
|
+
control?: string | undefined;
|
|
1531
|
+
margin?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1532
1532
|
text?: string | undefined;
|
|
1533
1533
|
accessibilityDescription?: string | undefined;
|
|
1534
1534
|
} | undefined;
|
|
@@ -1572,6 +1572,10 @@ export declare const blobSchemaSchema: z.ZodObject<{
|
|
|
1572
1572
|
} | undefined;
|
|
1573
1573
|
image?: {
|
|
1574
1574
|
url: string;
|
|
1575
|
+
type: "image";
|
|
1576
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1577
|
+
control?: string | undefined;
|
|
1578
|
+
margin?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1575
1579
|
text?: string | undefined;
|
|
1576
1580
|
accessibilityDescription?: string | undefined;
|
|
1577
1581
|
} | undefined;
|
|
@@ -1639,15 +1643,27 @@ export declare const constSchemaSchema: z.ZodObject<{
|
|
|
1639
1643
|
text: string;
|
|
1640
1644
|
}>]>>;
|
|
1641
1645
|
image: z.ZodOptional<z.ZodObject<{
|
|
1646
|
+
type: z.ZodLiteral<"image">;
|
|
1642
1647
|
url: z.ZodString;
|
|
1648
|
+
size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"xs">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">, z.ZodLiteral<"xl">]>>;
|
|
1649
|
+
control: z.ZodOptional<z.ZodString>;
|
|
1650
|
+
margin: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"xs">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">, z.ZodLiteral<"xl">]>>;
|
|
1643
1651
|
text: z.ZodOptional<z.ZodString>;
|
|
1644
1652
|
accessibilityDescription: z.ZodOptional<z.ZodString>;
|
|
1645
1653
|
}, "strip", z.ZodTypeAny, {
|
|
1646
1654
|
url: string;
|
|
1655
|
+
type: "image";
|
|
1656
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1657
|
+
control?: string | undefined;
|
|
1658
|
+
margin?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1647
1659
|
text?: string | undefined;
|
|
1648
1660
|
accessibilityDescription?: string | undefined;
|
|
1649
1661
|
}, {
|
|
1650
1662
|
url: string;
|
|
1663
|
+
type: "image";
|
|
1664
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1665
|
+
control?: string | undefined;
|
|
1666
|
+
margin?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1651
1667
|
text?: string | undefined;
|
|
1652
1668
|
accessibilityDescription?: string | undefined;
|
|
1653
1669
|
}>>;
|
|
@@ -1692,6 +1708,10 @@ export declare const constSchemaSchema: z.ZodObject<{
|
|
|
1692
1708
|
} | undefined;
|
|
1693
1709
|
image?: {
|
|
1694
1710
|
url: string;
|
|
1711
|
+
type: "image";
|
|
1712
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1713
|
+
control?: string | undefined;
|
|
1714
|
+
margin?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1695
1715
|
text?: string | undefined;
|
|
1696
1716
|
accessibilityDescription?: string | undefined;
|
|
1697
1717
|
} | undefined;
|
|
@@ -1726,6 +1746,10 @@ export declare const constSchemaSchema: z.ZodObject<{
|
|
|
1726
1746
|
} | undefined;
|
|
1727
1747
|
image?: {
|
|
1728
1748
|
url: string;
|
|
1749
|
+
type: "image";
|
|
1750
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1751
|
+
control?: string | undefined;
|
|
1752
|
+
margin?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1729
1753
|
text?: string | undefined;
|
|
1730
1754
|
accessibilityDescription?: string | undefined;
|
|
1731
1755
|
} | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-types",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "Dynamic Flow TypeScript Types",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,29 +8,25 @@
|
|
|
8
8
|
"fullname": "transferwise/dynamic-flow",
|
|
9
9
|
"url": "git+https://github.com/transferwise/dynamic-flow.git"
|
|
10
10
|
},
|
|
11
|
-
"main": "./build/main.min.js",
|
|
12
11
|
"types": "./build/index.d.ts",
|
|
13
12
|
"files": [
|
|
14
13
|
"build"
|
|
15
14
|
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"dev": "pnpm tsc --noEmit --watch",
|
|
18
|
-
"test": "pnpm tsc --noEmit",
|
|
19
|
-
"build": "rm -rf build && npm-run-all build:*",
|
|
20
|
-
"build:types": "pnpm tsc --emitDeclarationOnly",
|
|
21
|
-
"build:zod": "./src/zod/build_zod.sh",
|
|
22
|
-
"build:js": "node ./scripts/build.mjs",
|
|
23
|
-
"types": "pnpm tsc --noEmit",
|
|
24
|
-
"lint": "eslint 'src/**/*.{js,ts}' --quiet"
|
|
25
|
-
},
|
|
26
15
|
"devDependencies": {
|
|
27
16
|
"@formatjs/cli": "^6.2.7",
|
|
28
|
-
"esbuild": "0.20.0",
|
|
29
|
-
"npm-run-all": "4.1.5",
|
|
30
17
|
"ts-to-zod": "3.2.0",
|
|
31
18
|
"typescript": "4.9.5"
|
|
32
19
|
},
|
|
20
|
+
"peerDependencies": {},
|
|
33
21
|
"dependencies": {
|
|
34
22
|
"zod": "3.22.4"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"dev": "pnpm tsc --noEmit --watch",
|
|
26
|
+
"test": "pnpm tsc --noEmit",
|
|
27
|
+
"build": "rm -rf build && pnpm tsc --emitDeclarationOnly",
|
|
28
|
+
"types": "pnpm tsc --noEmit",
|
|
29
|
+
"lint": "eslint 'src/**/*.{js,ts}' --quiet",
|
|
30
|
+
"build:zod": "./src/zod/build_zod.sh"
|
|
35
31
|
}
|
|
36
|
-
}
|
|
32
|
+
}
|