@wise/dynamic-flow-types 2.5.1 → 2.5.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.
@@ -6,6 +6,7 @@ export type { Context } from './misc/Context';
6
6
  export type { Size } from './misc/Size';
7
7
  export type { Size as Margin } from './misc/Size';
8
8
  export type { Icon } from './misc/Icon';
9
+ export type { Image } from './misc/Image';
9
10
  export type { Layout } from './layout/Layout';
10
11
  export type { AlertLayout } from './layout/AlertLayout';
11
12
  export type { BoxLayout } from './layout/BoxLayout';
@@ -26,13 +27,16 @@ export type { OneOfSchema } from './schema/OneOfSchema';
26
27
  export type { StringSchema } from './schema/StringSchema';
27
28
  export type { NumberSchema } from './schema/NumberSchema';
28
29
  export type { IntegerSchema } from './schema/IntegerSchema';
30
+ export type { ArraySchema } from './schema/ArraySchema';
31
+ export type { ArraySchemaList } from './schema/ArraySchemaList';
32
+ export type { ArraySchemaTuple } from './schema/ArraySchemaTuple';
29
33
  export type { StringSchemaFormat } from './schema/StringSchemaFormat';
30
- type BasicModel = boolean | number | string;
31
- type ObjectModel = {
32
- [key: string]: Model;
33
- };
34
- type ArrayModel = (Model | null)[];
35
- export type Model = BasicModel | ObjectModel | ArrayModel | null;
34
+ type BasicModel = boolean | number | string | null;
35
+ interface ObjectModel extends Record<string, BasicModel | ObjectModel | ArrayModel> {
36
+ }
37
+ export interface ArrayModel extends Array<BasicModel | ObjectModel | ArrayModel> {
38
+ }
39
+ export type Model = BasicModel | ObjectModel | ArrayModel;
36
40
  export type { SearchResult } from './responses/search/SearchResult';
37
41
  export type { SearchResponseBody } from './responses/search/SearchResponseBody';
38
42
  type ValidationErrorObject = {
@@ -0,0 +1,11 @@
1
+ export type Image = {
2
+ url: string;
3
+ /**
4
+ * @deprecated Please use 'accessibilityDescription' instead
5
+ */
6
+ text?: string;
7
+ /**
8
+ * @experimental This feature may be changed in the future without notice.
9
+ */
10
+ accessibilityDescription?: string;
11
+ };
@@ -6,4 +6,8 @@ export type ErrorResponseBody = {
6
6
  * @deprecated Please use 'refreshUrl' instead
7
7
  */
8
8
  refreshFormUrl?: string;
9
+ /**
10
+ * @experimental This feature may be changed in the future without notice.
11
+ */
12
+ analytics?: Record<string, string>;
9
13
  };
@@ -1,6 +1,6 @@
1
1
  import type { Schema } from './Schema';
2
2
  import type { Icon } from '../misc/Icon';
3
- import type { ImageLayout } from '../layout/ImageLayout';
3
+ import type { Image } from '../misc/Image';
4
4
  import type { SummaryProvider } from '../feature/SummaryProvider';
5
5
  import type { AlertLayout } from '../layout/AlertLayout';
6
6
  export type AllOfSchema = {
@@ -12,7 +12,7 @@ export type AllOfSchema = {
12
12
  control?: string;
13
13
  hidden?: boolean;
14
14
  icon?: Icon;
15
- image?: ImageLayout;
15
+ image?: Image;
16
16
  keywords?: string[];
17
17
  summary?: SummaryProvider;
18
18
  analyticsId?: string;
@@ -1,6 +1,6 @@
1
1
  import type { Schema } from './Schema';
2
2
  import type { Icon } from '../misc/Icon';
3
- import type { ImageLayout } from '../layout/ImageLayout';
3
+ import type { Image } from '../misc/Image';
4
4
  import type { SummarySummariser } from '../feature/SummarySummariser';
5
5
  import type { PersistAsync } from '../feature/PersistAsync';
6
6
  import type { ValidateAsync } from '../feature/ValidateAsync';
@@ -18,7 +18,7 @@ export type ArraySchemaList = {
18
18
  control?: string;
19
19
  hidden?: boolean;
20
20
  icon?: Icon;
21
- image?: ImageLayout;
21
+ image?: Image;
22
22
  keywords?: string[];
23
23
  summary?: SummarySummariser;
24
24
  analyticsId?: string;
@@ -1,6 +1,6 @@
1
1
  import type { Schema } from './Schema';
2
2
  import type { Icon } from '../misc/Icon';
3
- import type { ImageLayout } from '../layout/ImageLayout';
3
+ import type { Image } from '../misc/Image';
4
4
  import type { SummaryProvider } from '../feature/SummaryProvider';
5
5
  import type { PersistAsync } from '../feature/PersistAsync';
6
6
  import type { ValidateAsync } from '../feature/ValidateAsync';
@@ -14,7 +14,7 @@ export type ArraySchemaTuple = {
14
14
  control?: string;
15
15
  hidden?: boolean;
16
16
  icon?: Icon;
17
- image?: ImageLayout;
17
+ image?: Image;
18
18
  keywords?: string[];
19
19
  summary?: SummaryProvider;
20
20
  analyticsId?: string;
@@ -1,6 +1,6 @@
1
1
  import type { BlobSchemaSource } from './BlobSchemaSource';
2
2
  import type { Icon } from '../misc/Icon';
3
- import type { ImageLayout } from '../layout/ImageLayout';
3
+ import type { Image } from '../misc/Image';
4
4
  import type { SummaryProvider } from '../feature/SummaryProvider';
5
5
  import type { ValidateAsync } from '../feature/ValidateAsync';
6
6
  import type { AlertLayout } from '../layout/AlertLayout';
@@ -16,7 +16,7 @@ export type BlobSchema = {
16
16
  control?: string;
17
17
  hidden?: boolean;
18
18
  icon?: Icon;
19
- image?: ImageLayout;
19
+ image?: Image;
20
20
  keywords?: string[];
21
21
  summary?: SummaryProvider;
22
22
  analyticsId?: string;
@@ -1,5 +1,5 @@
1
1
  import type { Icon } from '../misc/Icon';
2
- import type { ImageLayout } from '../layout/ImageLayout';
2
+ import type { Image } from '../misc/Image';
3
3
  import type { SummaryProvider } from '../feature/SummaryProvider';
4
4
  import type { PersistAsync } from '../feature/PersistAsync';
5
5
  import type { ValidateAsync } from '../feature/ValidateAsync';
@@ -15,7 +15,7 @@ export type BooleanSchema = {
15
15
  hidden?: boolean;
16
16
  disabled?: boolean;
17
17
  icon?: Icon;
18
- image?: ImageLayout;
18
+ image?: Image;
19
19
  keywords?: string[];
20
20
  summary?: SummaryProvider;
21
21
  analyticsId?: string;
@@ -1,6 +1,6 @@
1
1
  import type { AlertLayout } from '../layout/AlertLayout';
2
2
  import type { Icon } from '../misc/Icon';
3
- import type { ImageLayout } from '../layout/ImageLayout';
3
+ import type { Image } from '../misc/Image';
4
4
  import type { SummaryProvider } from '../feature/SummaryProvider';
5
5
  export type ConstSchema = {
6
6
  disabled?: boolean;
@@ -12,7 +12,7 @@ export type ConstSchema = {
12
12
  title?: string;
13
13
  description?: string;
14
14
  icon?: Icon;
15
- image?: ImageLayout;
15
+ image?: Image;
16
16
  keywords?: string[];
17
17
  summary?: SummaryProvider;
18
18
  analyticsId?: string;
@@ -1,5 +1,5 @@
1
1
  import type { Icon } from '../misc/Icon';
2
- import type { ImageLayout } from '../layout/ImageLayout';
2
+ import type { Image } from '../misc/Image';
3
3
  import type { SummaryProvider } from '../feature/SummaryProvider';
4
4
  import type { PersistAsync } from '../feature/PersistAsync';
5
5
  import type { ValidateAsync } from '../feature/ValidateAsync';
@@ -19,7 +19,7 @@ export type IntegerSchema = {
19
19
  hidden?: boolean;
20
20
  disabled?: boolean;
21
21
  icon?: Icon;
22
- image?: ImageLayout;
22
+ image?: Image;
23
23
  keywords?: string[];
24
24
  summary?: SummaryProvider;
25
25
  analyticsId?: string;
@@ -1,5 +1,5 @@
1
1
  import type { Icon } from '../misc/Icon';
2
- import type { ImageLayout } from '../layout/ImageLayout';
2
+ import type { Image } from '../misc/Image';
3
3
  import type { SummaryProvider } from '../feature/SummaryProvider';
4
4
  import type { PersistAsync } from '../feature/PersistAsync';
5
5
  import type { ValidateAsync } from '../feature/ValidateAsync';
@@ -19,7 +19,7 @@ export type NumberSchema = {
19
19
  hidden?: boolean;
20
20
  disabled?: boolean;
21
21
  icon?: Icon;
22
- image?: ImageLayout;
22
+ image?: Image;
23
23
  keywords?: string[];
24
24
  summary?: SummaryProvider;
25
25
  analyticsId?: string;
@@ -1,7 +1,7 @@
1
1
  import type { Help } from '../feature/Help';
2
2
  import type { Schema } from './Schema';
3
3
  import type { Icon } from '../misc/Icon';
4
- import type { ImageLayout } from '../layout/ImageLayout';
4
+ import type { Image } from '../misc/Image';
5
5
  import type { SummaryProvider } from '../feature/SummaryProvider';
6
6
  import type { AlertLayout } from '../layout/AlertLayout';
7
7
  export type ObjectSchema = {
@@ -16,7 +16,7 @@ export type ObjectSchema = {
16
16
  control?: string;
17
17
  hidden?: boolean;
18
18
  icon?: Icon;
19
- image?: ImageLayout;
19
+ image?: Image;
20
20
  keywords?: string[];
21
21
  summary?: SummaryProvider;
22
22
  analyticsId?: string;
@@ -1,6 +1,6 @@
1
1
  import type { Schema } from './Schema';
2
2
  import type { Icon } from '../misc/Icon';
3
- import type { ImageLayout } from '../layout/ImageLayout';
3
+ import type { Image } from '../misc/Image';
4
4
  import type { SummaryProvider } from '../feature/SummaryProvider';
5
5
  import type { AlertLayout } from '../layout/AlertLayout';
6
6
  import type { Help } from '../feature/Help';
@@ -16,7 +16,7 @@ export type OneOfSchema = {
16
16
  default?: unknown;
17
17
  hidden?: boolean;
18
18
  icon?: Icon;
19
- image?: ImageLayout;
19
+ image?: Image;
20
20
  keywords?: string[];
21
21
  summary?: SummaryProvider;
22
22
  analyticsId?: string;
@@ -1,7 +1,7 @@
1
1
  import type { StringSchemaSource } from './StringSchemaSource';
2
2
  import type { StringSchemaFormat } from './StringSchemaFormat';
3
3
  import type { Icon } from '../misc/Icon';
4
- import type { ImageLayout } from '../layout/ImageLayout';
4
+ import type { Image } from '../misc/Image';
5
5
  import type { SummaryProvider } from '../feature/SummaryProvider';
6
6
  import type { PersistAsync } from '../feature/PersistAsync';
7
7
  import type { ValidateAsync } from '../feature/ValidateAsync';
@@ -26,7 +26,7 @@ export type StringSchema = {
26
26
  hidden?: boolean;
27
27
  disabled?: boolean;
28
28
  icon?: Icon;
29
- image?: ImageLayout;
29
+ image?: Image;
30
30
  keywords?: string[];
31
31
  summary?: SummaryProvider;
32
32
  analyticsId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {