@wise/dynamic-flow-types 2.3.1 → 2.4.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.
Files changed (83) hide show
  1. package/build/next/feature/Action.d.ts +35 -0
  2. package/build/next/feature/ActionType.d.ts +4 -0
  3. package/build/next/feature/External.d.ts +3 -0
  4. package/build/next/feature/Help.d.ts +3 -0
  5. package/build/next/feature/LinkHandler.d.ts +5 -0
  6. package/build/next/feature/Navigation.d.ts +11 -0
  7. package/build/next/feature/NavigationBackBehaviour.d.ts +8 -0
  8. package/build/next/feature/PersistAsync.d.ts +9 -0
  9. package/build/next/feature/Polling.d.ts +7 -0
  10. package/build/next/feature/PollingOnError.d.ts +4 -0
  11. package/build/next/feature/StepError.d.ts +4 -0
  12. package/build/next/feature/Summary.d.ts +3 -0
  13. package/build/next/feature/SummaryProvider.d.ts +6 -0
  14. package/build/next/feature/SummarySummariser.d.ts +12 -0
  15. package/build/next/feature/ValidateAsync.d.ts +6 -0
  16. package/build/next/index.d.ts +46 -0
  17. package/build/next/layout/AlertLayout.d.ts +9 -0
  18. package/build/next/layout/BoxLayout.d.ts +10 -0
  19. package/build/next/layout/ButtonLayout.d.ts +17 -0
  20. package/build/next/layout/ColumnsLayout.d.ts +11 -0
  21. package/build/next/layout/ColumnsLayoutBias.d.ts +1 -0
  22. package/build/next/layout/DecisionLayout.d.ts +8 -0
  23. package/build/next/layout/DecisionLayoutOption.d.ts +11 -0
  24. package/build/next/layout/DividerLayout.d.ts +9 -0
  25. package/build/next/layout/FormLayout.d.ts +12 -0
  26. package/build/next/layout/FormLayoutSchemaReference.d.ts +6 -0
  27. package/build/next/layout/HeadingLayout.d.ts +10 -0
  28. package/build/next/layout/ImageLayout.d.ts +16 -0
  29. package/build/next/layout/InfoLayout.d.ts +12 -0
  30. package/build/next/layout/InstructionsLayout.d.ts +9 -0
  31. package/build/next/layout/InstructionsLayoutItem.d.ts +5 -0
  32. package/build/next/layout/Layout.d.ts +20 -0
  33. package/build/next/layout/ListLayout.d.ts +12 -0
  34. package/build/next/layout/ListLayoutItem.d.ts +11 -0
  35. package/build/next/layout/ListLayoutStatus.d.ts +4 -0
  36. package/build/next/layout/LoadingIndicatorLayout.d.ts +7 -0
  37. package/build/next/layout/MarkdownLayout.d.ts +9 -0
  38. package/build/next/layout/ModalLayout.d.ts +13 -0
  39. package/build/next/layout/ModalLayoutContent.d.ts +4 -0
  40. package/build/next/layout/ModalLayoutTrigger.d.ts +3 -0
  41. package/build/next/layout/ParagraphLayout.d.ts +9 -0
  42. package/build/next/layout/ReviewLayout.d.ts +20 -0
  43. package/build/next/layout/ReviewLayoutCallToAction.d.ts +5 -0
  44. package/build/next/layout/ReviewLayoutField.d.ts +6 -0
  45. package/build/next/layout/SearchLayout.d.ts +12 -0
  46. package/build/next/layout/StatusListLayout.d.ts +9 -0
  47. package/build/next/layout/StatusListLayoutItem.d.ts +8 -0
  48. package/build/next/layout/StatusListLayoutStatus.d.ts +1 -0
  49. package/build/next/misc/Align.d.ts +1 -0
  50. package/build/next/misc/AutocompleteToken.d.ts +1 -0
  51. package/build/next/misc/Context.d.ts +1 -0
  52. package/build/next/misc/HttpMethod.d.ts +1 -0
  53. package/build/next/misc/Icon.d.ts +3 -0
  54. package/build/next/misc/IconNamed.d.ts +3 -0
  55. package/build/next/misc/IconText.d.ts +3 -0
  56. package/build/next/misc/Size.d.ts +1 -0
  57. package/build/next/responses/action/ActionResponseBody.d.ts +4 -0
  58. package/build/next/responses/error/ErrorResponseBody.d.ts +9 -0
  59. package/build/next/responses/search/SearchResponseBody.d.ts +4 -0
  60. package/build/next/responses/search/SearchResult.d.ts +3 -0
  61. package/build/next/responses/search/SearchResultAction.d.ts +11 -0
  62. package/build/next/responses/search/SearchResultSearch.d.ts +11 -0
  63. package/build/next/responses/search/SearchSearchRequest.d.ts +7 -0
  64. package/build/next/schema/AllOfSchema.d.ts +24 -0
  65. package/build/next/schema/ArraySchema.d.ts +3 -0
  66. package/build/next/schema/ArraySchemaList.d.ts +34 -0
  67. package/build/next/schema/ArraySchemaTuple.d.ts +29 -0
  68. package/build/next/schema/BlobSchema.d.ts +30 -0
  69. package/build/next/schema/BlobSchemaSource.d.ts +1 -0
  70. package/build/next/schema/BooleanSchema.d.ts +48 -0
  71. package/build/next/schema/ConstSchema.d.ts +23 -0
  72. package/build/next/schema/IntegerSchema.d.ts +54 -0
  73. package/build/next/schema/NumberSchema.d.ts +54 -0
  74. package/build/next/schema/ObjectSchema.d.ts +32 -0
  75. package/build/next/schema/OneOfSchema.d.ts +53 -0
  76. package/build/next/schema/Schema.d.ts +11 -0
  77. package/build/next/schema/StringSchema.d.ts +77 -0
  78. package/build/next/schema/StringSchemaFormat.d.ts +1 -0
  79. package/build/next/schema/StringSchemaSource.d.ts +4 -0
  80. package/build/next/step/Step.d.ts +38 -0
  81. package/build/spec/Schema.d.ts +1 -1
  82. package/build/spec/core.d.ts +2 -0
  83. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ import type { ActionType } from './ActionType';
2
+ import type { HttpMethod } from '../misc/HttpMethod';
3
+ export type Action = {
4
+ id?: string;
5
+ url?: string;
6
+ method?: HttpMethod;
7
+ exit?: boolean;
8
+ result?: unknown;
9
+ data?: unknown;
10
+ timeout?: number;
11
+ /**
12
+ * @deprecated Please use Button.title instead
13
+ */
14
+ title?: string;
15
+ /**
16
+ * @deprecated Please use Button.title instead or Button.context instead
17
+ */
18
+ type?: ActionType;
19
+ /**
20
+ * @deprecated Please use Button.disabled instead or Button.context instead
21
+ */
22
+ disabled?: boolean;
23
+ /**
24
+ * @deprecated Please use 'id' instead
25
+ */
26
+ $id?: string;
27
+ /**
28
+ * @deprecated Action references are deprecated.
29
+ */
30
+ $ref?: string;
31
+ /**
32
+ * @experimental This feature may be changed in the future without notice.
33
+ */
34
+ skipValidation?: boolean;
35
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @deprecated Please use Button.control and Button.context instead
3
+ */
4
+ export type ActionType = 'primary' | 'secondary' | 'link' | 'positive' | 'negative';
@@ -0,0 +1,3 @@
1
+ export type External = {
2
+ url: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export type Help = {
2
+ markdown: string;
3
+ };
@@ -0,0 +1,5 @@
1
+ import type { Action } from './Action';
2
+ export type LinkHandler = {
3
+ regexPattern: string;
4
+ action: Action;
5
+ };
@@ -0,0 +1,11 @@
1
+ import type { NavigationBackBehaviour } from './NavigationBackBehaviour';
2
+ /**
3
+ * @experimental This feature may be changed in the future without notice.
4
+ */
5
+ export type Navigation = {
6
+ back?: NavigationBackBehaviour;
7
+ /**
8
+ * @deprecated Please use 'back' instead
9
+ */
10
+ backButton?: NavigationBackBehaviour;
11
+ };
@@ -0,0 +1,8 @@
1
+ import type { Action } from './Action';
2
+ /**
3
+ * @experimental This feature may be changed in the future without notice.
4
+ */
5
+ export type NavigationBackBehaviour = {
6
+ title?: string;
7
+ action: Action;
8
+ };
@@ -0,0 +1,9 @@
1
+ import type { Schema } from '../schema/Schema';
2
+ import type { HttpMethod } from '../misc/HttpMethod';
3
+ export type PersistAsync = {
4
+ param: string;
5
+ idProperty: string;
6
+ schema: Schema;
7
+ url: string;
8
+ method: HttpMethod;
9
+ };
@@ -0,0 +1,7 @@
1
+ import type { PollingOnError } from './PollingOnError';
2
+ export type Polling = {
3
+ url: string;
4
+ interval: number;
5
+ maxAttempts: number;
6
+ onError: PollingOnError;
7
+ };
@@ -0,0 +1,4 @@
1
+ import type { Action } from './Action';
2
+ export type PollingOnError = {
3
+ action: Action;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type StepError = {
2
+ error?: string;
3
+ validation?: unknown;
4
+ };
@@ -0,0 +1,3 @@
1
+ import type { SummaryProvider } from './SummaryProvider';
2
+ import type { SummarySummariser } from './SummarySummariser';
3
+ export type Summary = SummaryProvider | SummarySummariser;
@@ -0,0 +1,6 @@
1
+ export type SummaryProvider = {
2
+ providesTitle?: boolean;
3
+ providesDescription?: boolean;
4
+ providesIcon?: boolean;
5
+ providesImage?: boolean;
6
+ };
@@ -0,0 +1,12 @@
1
+ import type { Icon } from '../misc/Icon';
2
+ import type { ImageLayout } from '../layout/ImageLayout';
3
+ export type SummarySummariser = {
4
+ defaultTitle?: string;
5
+ defaultDescription?: string;
6
+ defaultIcon?: Icon;
7
+ defaultImage?: ImageLayout;
8
+ providesTitle?: boolean;
9
+ providesDescription?: boolean;
10
+ providesIcon?: boolean;
11
+ providesImage?: boolean;
12
+ };
@@ -0,0 +1,6 @@
1
+ import type { HttpMethod } from '../misc/HttpMethod';
2
+ export type ValidateAsync = {
3
+ param: string;
4
+ method: HttpMethod;
5
+ url: string;
6
+ };
@@ -0,0 +1,46 @@
1
+ import type { Step as GeneratedStep } from './step/Step';
2
+ import type { FormLayout as GeneratedFormLayout } from './layout/FormLayout';
3
+ export type { Action } from './feature/Action';
4
+ export type { Align } from './misc/Align';
5
+ export type { Context } from './misc/Context';
6
+ export type { Size } from './misc/Size';
7
+ export type { Size as Margin } from './misc/Size';
8
+ export type { Layout } from './layout/Layout';
9
+ export type { AlertLayout } from './layout/AlertLayout';
10
+ export type { BoxLayout } from './layout/BoxLayout';
11
+ export type { ButtonLayout } from './layout/ButtonLayout';
12
+ export type { ColumnsLayout } from './layout/ColumnsLayout';
13
+ export type FormLayout = GeneratedFormLayout & {
14
+ schema?: Reference;
15
+ };
16
+ export type { HeadingLayout } from './layout/HeadingLayout';
17
+ export type { ParagraphLayout } from './layout/ParagraphLayout';
18
+ export type { Schema } from './schema/Schema';
19
+ export type { ObjectSchema } from './schema/ObjectSchema';
20
+ export type { AllOfSchema } from './schema/AllOfSchema';
21
+ export type { OneOfSchema } from './schema/OneOfSchema';
22
+ export type { StringSchema } from './schema/StringSchema';
23
+ export type { NumberSchema } from './schema/NumberSchema';
24
+ export type { IntegerSchema } from './schema/IntegerSchema';
25
+ export type { StringSchemaFormat } from './schema/StringSchemaFormat';
26
+ type BasicModel = boolean | number | string;
27
+ type ObjectModel = {
28
+ [key: string]: Model;
29
+ };
30
+ type ArrayModel = (Model | null)[];
31
+ export type Model = BasicModel | ObjectModel | ArrayModel | null;
32
+ type ValidationErrorObject = {
33
+ [key: string]: ValidationError;
34
+ };
35
+ export type ValidationError = string | ValidationErrorObject | null;
36
+ export type StepError = {
37
+ error?: string;
38
+ validation?: ValidationError;
39
+ };
40
+ export type Step = Omit<GeneratedStep, 'model' | 'errors'> & {
41
+ model?: Model;
42
+ errors?: StepError;
43
+ };
44
+ export type Reference = {
45
+ $ref: string;
46
+ };
@@ -0,0 +1,9 @@
1
+ import type { Context } from '../misc/Context';
2
+ import type { Size } from '../misc/Size';
3
+ export type AlertLayout = {
4
+ type: 'alert';
5
+ markdown: string;
6
+ context?: Context;
7
+ control?: string;
8
+ margin?: Size;
9
+ };
@@ -0,0 +1,10 @@
1
+ import type { Layout } from './Layout';
2
+ import type { Size } from '../misc/Size';
3
+ export type BoxLayout = {
4
+ type: 'box';
5
+ components: Layout[];
6
+ width?: Size;
7
+ border?: boolean;
8
+ control?: string;
9
+ margin?: Size;
10
+ };
@@ -0,0 +1,17 @@
1
+ import type { Size } from '../misc/Size';
2
+ import type { Action } from '../feature/Action';
3
+ import type { Context } from '../misc/Context';
4
+ export type ButtonLayout = {
5
+ type: 'button';
6
+ title: string;
7
+ action: Action;
8
+ context?: Context;
9
+ disabled?: boolean;
10
+ pinOrder?: number;
11
+ control?: string;
12
+ margin?: Size;
13
+ /**
14
+ * @deprecated This is a web only feature that will be removed in a later release
15
+ */
16
+ size?: Size;
17
+ };
@@ -0,0 +1,11 @@
1
+ import type { Layout } from './Layout';
2
+ import type { ColumnsLayoutBias } from './ColumnsLayoutBias';
3
+ import type { Size } from '../misc/Size';
4
+ export type ColumnsLayout = {
5
+ type: 'columns';
6
+ left: Layout[];
7
+ right: Layout[];
8
+ bias?: ColumnsLayoutBias;
9
+ control?: string;
10
+ margin?: Size;
11
+ };
@@ -0,0 +1 @@
1
+ export type ColumnsLayoutBias = 'none' | 'left' | 'right';
@@ -0,0 +1,8 @@
1
+ import type { DecisionLayoutOption } from './DecisionLayoutOption';
2
+ import type { Size } from '../misc/Size';
3
+ export type DecisionLayout = {
4
+ type: 'decision';
5
+ options: DecisionLayoutOption[];
6
+ control?: string;
7
+ margin?: Size;
8
+ };
@@ -0,0 +1,11 @@
1
+ import type { Action } from '../feature/Action';
2
+ import type { Icon } from '../misc/Icon';
3
+ import type { ImageLayout } from './ImageLayout';
4
+ export type DecisionLayoutOption = {
5
+ action: Action;
6
+ title: string;
7
+ description?: string;
8
+ disabled?: boolean;
9
+ icon?: Icon;
10
+ image?: ImageLayout;
11
+ };
@@ -0,0 +1,9 @@
1
+ import type { Size } from '../misc/Size';
2
+ /**
3
+ * @deprecated Divider is deprecated and only supported on web. Please do not use.
4
+ */
5
+ export type DividerLayout = {
6
+ type: 'divider';
7
+ control?: string;
8
+ margin?: Size;
9
+ };
@@ -0,0 +1,12 @@
1
+ import type { FormLayoutSchemaReference } from './FormLayoutSchemaReference';
2
+ import type { Size } from '../misc/Size';
3
+ export type FormLayout = {
4
+ type: 'form';
5
+ schemaId: string;
6
+ control?: string;
7
+ margin?: Size;
8
+ /**
9
+ * @deprecated Please use 'schemaId' instead.
10
+ */
11
+ schema?: FormLayoutSchemaReference;
12
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @deprecated Please use 'schemaId' instead.
3
+ */
4
+ export type FormLayoutSchemaReference = {
5
+ $ref: string;
6
+ };
@@ -0,0 +1,10 @@
1
+ import type { Size } from '../misc/Size';
2
+ import type { Align } from '../misc/Align';
3
+ export type HeadingLayout = {
4
+ type: 'heading';
5
+ text: string;
6
+ size?: Size;
7
+ align?: Align;
8
+ control?: string;
9
+ margin?: Size;
10
+ };
@@ -0,0 +1,16 @@
1
+ import type { Size } from '../misc/Size';
2
+ export type ImageLayout = {
3
+ type: 'image';
4
+ url: string;
5
+ size?: Size;
6
+ control?: string;
7
+ margin?: Size;
8
+ /**
9
+ * @deprecated Please use 'accessibilityDescription' instead
10
+ */
11
+ text?: string;
12
+ /**
13
+ * @experimental This feature may be changed in the future without notice.
14
+ */
15
+ accessibilityDescription?: string;
16
+ };
@@ -0,0 +1,12 @@
1
+ import type { Align } from '../misc/Align';
2
+ import type { Size } from '../misc/Size';
3
+ /**
4
+ * @deprecated Please use 'MarkdownLayout' instead
5
+ */
6
+ export type InfoLayout = {
7
+ type: 'info';
8
+ markdown: string;
9
+ align?: Align;
10
+ control?: string;
11
+ margin?: Size;
12
+ };
@@ -0,0 +1,9 @@
1
+ import type { InstructionsLayoutItem } from './InstructionsLayoutItem';
2
+ import type { Size } from '../misc/Size';
3
+ export type InstructionsLayout = {
4
+ type: 'instructions';
5
+ title?: string;
6
+ items: InstructionsLayoutItem[];
7
+ control?: string;
8
+ margin?: Size;
9
+ };
@@ -0,0 +1,5 @@
1
+ import type { Context } from '../misc/Context';
2
+ export type InstructionsLayoutItem = {
3
+ text: string;
4
+ context: Context;
5
+ };
@@ -0,0 +1,20 @@
1
+ import type { AlertLayout } from './AlertLayout';
2
+ import type { BoxLayout } from './BoxLayout';
3
+ import type { ButtonLayout } from './ButtonLayout';
4
+ import type { ColumnsLayout } from './ColumnsLayout';
5
+ import type { DecisionLayout } from './DecisionLayout';
6
+ import type { DividerLayout } from './DividerLayout';
7
+ import type { FormLayout } from './FormLayout';
8
+ import type { HeadingLayout } from './HeadingLayout';
9
+ import type { ImageLayout } from './ImageLayout';
10
+ import type { InfoLayout } from './InfoLayout';
11
+ import type { InstructionsLayout } from './InstructionsLayout';
12
+ import type { ListLayout } from './ListLayout';
13
+ import type { LoadingIndicatorLayout } from './LoadingIndicatorLayout';
14
+ import type { MarkdownLayout } from './MarkdownLayout';
15
+ import type { ModalLayout } from './ModalLayout';
16
+ import type { ParagraphLayout } from './ParagraphLayout';
17
+ import type { ReviewLayout } from './ReviewLayout';
18
+ import type { SearchLayout } from './SearchLayout';
19
+ import type { StatusListLayout } from './StatusListLayout';
20
+ export type Layout = AlertLayout | BoxLayout | ButtonLayout | ColumnsLayout | DecisionLayout | DividerLayout | FormLayout | HeadingLayout | ImageLayout | InfoLayout | InstructionsLayout | ListLayout | LoadingIndicatorLayout | MarkdownLayout | ModalLayout | ParagraphLayout | ReviewLayout | SearchLayout | StatusListLayout;
@@ -0,0 +1,12 @@
1
+ import type { ListLayoutItem } from './ListLayoutItem';
2
+ import type { Size } from '../misc/Size';
3
+ /**
4
+ * @deprecated Please use 'StatusListLayout' instead
5
+ */
6
+ export type ListLayout = {
7
+ type: 'list';
8
+ items: ListLayoutItem[];
9
+ title?: string;
10
+ control?: string;
11
+ margin?: Size;
12
+ };
@@ -0,0 +1,11 @@
1
+ import type { Icon } from '../misc/Icon';
2
+ import type { ListLayoutStatus } from './ListLayoutStatus';
3
+ /**
4
+ * @deprecated Please use 'StatusListLayout' instead
5
+ */
6
+ export type ListLayoutItem = {
7
+ title: string;
8
+ description?: string;
9
+ icon: Icon;
10
+ status?: ListLayoutStatus;
11
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @deprecated Please use 'StatusListLayout' instead
3
+ */
4
+ export type ListLayoutStatus = 'warning' | 'neutral' | 'positive';
@@ -0,0 +1,7 @@
1
+ import type { Size } from '../misc/Size';
2
+ export type LoadingIndicatorLayout = {
3
+ type: 'loading-indicator';
4
+ size?: Size;
5
+ control?: string;
6
+ margin?: Size;
7
+ };
@@ -0,0 +1,9 @@
1
+ import type { Align } from '../misc/Align';
2
+ import type { Size } from '../misc/Size';
3
+ export type MarkdownLayout = {
4
+ type: 'markdown';
5
+ content: string;
6
+ align?: Align;
7
+ control?: string;
8
+ margin?: Size;
9
+ };
@@ -0,0 +1,13 @@
1
+ import type { Size } from '../misc/Size';
2
+ import type { ModalLayoutTrigger } from './ModalLayoutTrigger';
3
+ import type { ModalLayoutContent } from './ModalLayoutContent';
4
+ /**
5
+ * @experimental This feature may be changed in the future without notice.
6
+ */
7
+ export type ModalLayout = {
8
+ type: 'modal';
9
+ control?: string;
10
+ margin?: Size;
11
+ trigger: ModalLayoutTrigger;
12
+ content: ModalLayoutContent;
13
+ };
@@ -0,0 +1,4 @@
1
+ import type { Layout } from './Layout';
2
+ export type ModalLayoutContent = {
3
+ components: Layout[];
4
+ };
@@ -0,0 +1,3 @@
1
+ export type ModalLayoutTrigger = {
2
+ title: string;
3
+ };
@@ -0,0 +1,9 @@
1
+ import type { Align } from '../misc/Align';
2
+ import type { Size } from '../misc/Size';
3
+ export type ParagraphLayout = {
4
+ type: 'paragraph';
5
+ text: string;
6
+ align?: Align;
7
+ control?: string;
8
+ margin?: Size;
9
+ };
@@ -0,0 +1,20 @@
1
+ import type { Action } from '../feature/Action';
2
+ import type { ReviewLayoutField } from './ReviewLayoutField';
3
+ import type { ReviewLayoutCallToAction } from './ReviewLayoutCallToAction';
4
+ import type { Size } from '../misc/Size';
5
+ export type ReviewLayout = {
6
+ type: 'review';
7
+ fields: ReviewLayoutField[];
8
+ title?: string;
9
+ callToAction?: ReviewLayoutCallToAction;
10
+ control?: string;
11
+ margin?: Size;
12
+ /**
13
+ * @deprecated Please use 'control' instead
14
+ */
15
+ orientation?: string;
16
+ /**
17
+ * @deprecated Please use 'callToAction' instead
18
+ */
19
+ action?: Action;
20
+ };
@@ -0,0 +1,5 @@
1
+ import type { Action } from '../feature/Action';
2
+ export type ReviewLayoutCallToAction = {
3
+ title: string;
4
+ action: Action;
5
+ };
@@ -0,0 +1,6 @@
1
+ import type { Help } from '../feature/Help';
2
+ export type ReviewLayoutField = {
3
+ label: string;
4
+ value: string;
5
+ help?: Help;
6
+ };
@@ -0,0 +1,12 @@
1
+ import type { HttpMethod } from '../misc/HttpMethod';
2
+ import type { Size } from '../misc/Size';
3
+ export type SearchLayout = {
4
+ type: 'search';
5
+ title: string;
6
+ method: HttpMethod;
7
+ url: string;
8
+ param: string;
9
+ emptyMessage?: string;
10
+ control?: string;
11
+ margin?: Size;
12
+ };
@@ -0,0 +1,9 @@
1
+ import type { StatusListLayoutItem } from './StatusListLayoutItem';
2
+ import type { Size } from '../misc/Size';
3
+ export type StatusListLayout = {
4
+ type: 'status-list';
5
+ items: StatusListLayoutItem[];
6
+ title?: string;
7
+ control?: string;
8
+ margin?: Size;
9
+ };
@@ -0,0 +1,8 @@
1
+ import type { Icon } from '../misc/Icon';
2
+ import type { StatusListLayoutStatus } from './StatusListLayoutStatus';
3
+ export type StatusListLayoutItem = {
4
+ title: string;
5
+ description?: string;
6
+ icon: Icon;
7
+ status?: StatusListLayoutStatus;
8
+ };
@@ -0,0 +1 @@
1
+ export type StatusListLayoutStatus = 'not-done' | 'pending' | 'done';
@@ -0,0 +1 @@
1
+ export type Align = 'left' | 'center' | 'right';
@@ -0,0 +1 @@
1
+ export type AutocompleteToken = 'on' | 'name' | 'name-prefix' | 'given-name' | 'additional-name' | 'family-name' | 'name-suffix' | 'nickname' | 'email' | 'username' | 'new-username' | 'new-password' | 'password' | 'one-time-code' | 'job-title' | 'organization-name' | 'full-street-address' | 'street-address-line-1' | 'street-address-line-2' | 'street-address-line-3' | 'address-level-1' | 'address-level-2' | 'address-level-3' | 'address-level-4' | 'country-code' | 'country-name' | 'postal-code' | 'credit-card-name' | 'credit-card-given-name' | 'credit-card-middle-name' | 'credit-card-family-name' | 'credit-card-number' | 'credit-card-expiration' | 'credit-card-expiration-month' | 'credit-card-expiration-year' | 'credit-card-security-code' | 'credit-card-type' | 'transaction-currency' | 'transaction-amount' | 'language' | 'birthdate' | 'birthdate-day' | 'birthdate-month' | 'birthdate-year' | 'gender' | 'phone-number' | 'phone-country-code' | 'phone-national' | 'phone-area-code' | 'phone-local' | 'phone-local-prefix' | 'phone-local-suffix' | 'phone-extension' | 'url' | 'photo' | 'impp' | 'shipping' | 'billing' | 'home' | 'work' | 'mobile' | 'fax' | 'pager';
@@ -0,0 +1 @@
1
+ export type Context = 'positive' | 'neutral' | 'warning' | 'negative' | 'success' | 'failure' | 'info' | 'primary';
@@ -0,0 +1 @@
1
+ export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
@@ -0,0 +1,3 @@
1
+ import type { IconNamed } from './IconNamed';
2
+ import type { IconText } from './IconText';
3
+ export type Icon = IconNamed | IconText;
@@ -0,0 +1,3 @@
1
+ export type IconNamed = {
2
+ name: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export type IconText = {
2
+ text: string;
3
+ };
@@ -0,0 +1 @@
1
+ export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -0,0 +1,4 @@
1
+ import type { Action } from '../../feature/Action';
2
+ export type ActionResponseBody = {
3
+ action: Action;
4
+ };
@@ -0,0 +1,9 @@
1
+ export type ErrorResponseBody = {
2
+ error?: string;
3
+ validation?: unknown;
4
+ refreshUrl?: string;
5
+ /**
6
+ * @deprecated Please use 'refreshUrl' instead
7
+ */
8
+ refreshFormUrl?: string;
9
+ };
@@ -0,0 +1,4 @@
1
+ import type { SearchResult } from './SearchResult';
2
+ export type SearchResponseBody = {
3
+ results: SearchResult[];
4
+ };
@@ -0,0 +1,3 @@
1
+ import type { SearchResultAction } from './SearchResultAction';
2
+ import type { SearchResultSearch } from './SearchResultSearch';
3
+ export type SearchResult = SearchResultAction | SearchResultSearch;
@@ -0,0 +1,11 @@
1
+ import type { Icon } from '../../misc/Icon';
2
+ import type { ImageLayout } from '../../layout/ImageLayout';
3
+ import type { Action } from '../../feature/Action';
4
+ export type SearchResultAction = {
5
+ type: 'action';
6
+ title: string;
7
+ description?: string;
8
+ icon?: Icon;
9
+ image?: ImageLayout;
10
+ value: Action;
11
+ };