@wise/dynamic-flow-types 3.19.0 → 4.0.0-experimental-feace93
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/renderers/BaseInputRendererProps.d.ts +0 -4
- package/build/renderers/CallToAction.d.ts +0 -2
- package/build/renderers/DecisionRendererProps.d.ts +0 -6
- package/build/renderers/FormSectionRendererProps.d.ts +0 -4
- package/build/renderers/Icon.d.ts +1 -1
- package/build/renderers/InstructionsRendererProps.d.ts +0 -2
- package/build/renderers/ListRendererProps.d.ts +1 -13
- package/build/renderers/MoneyInputRendererProps.d.ts +1 -1
- package/build/renderers/MultiUploadInputRendererProps.d.ts +2 -2
- package/build/renderers/RepeatableRendererProps.d.ts +0 -6
- package/build/renderers/ReviewRendererProps.d.ts +0 -11
- package/build/renderers/SearchRendererProps.d.ts +1 -1
- package/build/renderers/SelectInputRendererProps.d.ts +0 -4
- package/build/renderers/StatusListRendererProps.d.ts +0 -2
- package/build/renderers/StepRendererProps.d.ts +0 -15
- package/build/renderers/Suggestions.d.ts +1 -7
- package/build/renderers/TabsRendererProps.d.ts +0 -2
- package/build/renderers/UploadInputRendererProps.d.ts +2 -2
- package/build/renderers/constants.d.ts +1 -1
- package/build/renderers/index.d.ts +0 -7
- package/build/{next → spec}/index.d.ts +3 -0
- package/build/{main.js → spec/main.js} +1 -1
- package/build/zod/schemas.d.ts +660 -660
- package/build/zod/schemas.ts +1 -1
- package/package.json +7 -12
- package/build/index.d.ts +0 -16
- package/build/spec/Action.d.ts +0 -21
- package/build/spec/AutocompleteToken.d.ts +0 -396
- package/build/spec/FileUploadSchema.d.ts +0 -19
- package/build/spec/LayoutComponent.d.ts +0 -237
- package/build/spec/Model.d.ts +0 -6
- package/build/spec/Navigation.d.ts +0 -14
- package/build/spec/PersistAsync.d.ts +0 -8
- package/build/spec/Polling.d.ts +0 -28
- package/build/spec/Promotion.d.ts +0 -20
- package/build/spec/Schema.d.ts +0 -191
- package/build/spec/Search.d.ts +0 -21
- package/build/spec/Step.d.ts +0 -112
- package/build/spec/ValidationAsync.d.ts +0 -6
- package/build/spec/core.d.ts +0 -47
- package/build/spec/responses.d.ts +0 -18
- /package/build/{next → spec}/JsonElement.d.ts +0 -0
- /package/build/{next → spec}/feature/Action.d.ts +0 -0
- /package/build/{next → spec}/feature/ActionBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/ActionType.d.ts +0 -0
- /package/build/{next → spec}/feature/Behavior.d.ts +0 -0
- /package/build/{next → spec}/feature/ContainerBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/CopyBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/DismissBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/External.d.ts +0 -0
- /package/build/{next → spec}/feature/Help.d.ts +0 -0
- /package/build/{next → spec}/feature/Link.d.ts +0 -0
- /package/build/{next → spec}/feature/LinkBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/LinkHandler.d.ts +0 -0
- /package/build/{next → spec}/feature/ModalBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/Navigation.d.ts +0 -0
- /package/build/{next → spec}/feature/NavigationBackBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/NavigationStackBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/PersistAsync.d.ts +0 -0
- /package/build/{next → spec}/feature/Polling.d.ts +0 -0
- /package/build/{next → spec}/feature/PollingOnError.d.ts +0 -0
- /package/build/{next → spec}/feature/RefreshBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/StepError.d.ts +0 -0
- /package/build/{next → spec}/feature/Suggestions.d.ts +0 -0
- /package/build/{next → spec}/feature/SuggestionsValue.d.ts +0 -0
- /package/build/{next → spec}/feature/Summary.d.ts +0 -0
- /package/build/{next → spec}/feature/SummaryProvider.d.ts +0 -0
- /package/build/{next → spec}/feature/SummarySummariser.d.ts +0 -0
- /package/build/{next → spec}/feature/UploadSource.d.ts +0 -0
- /package/build/{next → spec}/feature/ValidateAsync.d.ts +0 -0
- /package/build/{next → spec}/feature/toolbar/Toolbar.d.ts +0 -0
- /package/build/{next → spec}/feature/toolbar/ToolbarButton.d.ts +0 -0
- /package/build/{next → spec}/feature/toolbar/ToolbarItem.d.ts +0 -0
- /package/build/{next → spec}/layout/AlertLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/AlertLayoutCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/BoxLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ButtonLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ColumnsLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ColumnsLayoutBias.d.ts +0 -0
- /package/build/{next → spec}/layout/DecisionLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/DecisionLayoutOption.d.ts +0 -0
- /package/build/{next → spec}/layout/DividerLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/FormLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/FormLayoutSchemaReference.d.ts +0 -0
- /package/build/{next → spec}/layout/HeadingLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ImageLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/InfoLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/InstructionsLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/InstructionsLayoutItem.d.ts +0 -0
- /package/build/{next → spec}/layout/ItemCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/Layout.d.ts +0 -0
- /package/build/{next → spec}/layout/ListLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ListLayoutCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/ListLayoutItem.d.ts +0 -0
- /package/build/{next → spec}/layout/ListLayoutStatus.d.ts +0 -0
- /package/build/{next → spec}/layout/LoadingIndicatorLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/MarkdownLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ModalLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ModalLayoutContent.d.ts +0 -0
- /package/build/{next → spec}/layout/ModalLayoutTrigger.d.ts +0 -0
- /package/build/{next → spec}/layout/ParagraphLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ProgressLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ReviewLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ReviewLayoutCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/ReviewLayoutField.d.ts +0 -0
- /package/build/{next → spec}/layout/SearchLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/SectionLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/SectionLayoutCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/StatusListLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/StatusListLayoutItem.d.ts +0 -0
- /package/build/{next → spec}/layout/StatusListLayoutStatus.d.ts +0 -0
- /package/build/{next → spec}/layout/TabsLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/TabsLayoutTab.d.ts +0 -0
- /package/build/{main.mjs → spec/main.mjs} +0 -0
- /package/build/{next → spec}/misc/AdditionalInfo.d.ts +0 -0
- /package/build/{next → spec}/misc/Align.d.ts +0 -0
- /package/build/{next → spec}/misc/AutocapitalizationType.d.ts +0 -0
- /package/build/{next → spec}/misc/AutocompleteToken.d.ts +0 -0
- /package/build/{next → spec}/misc/Context.d.ts +0 -0
- /package/build/{next → spec}/misc/HttpMethod.d.ts +0 -0
- /package/build/{next → spec}/misc/Icon.d.ts +0 -0
- /package/build/{next → spec}/misc/IconNamed.d.ts +0 -0
- /package/build/{next → spec}/misc/IconText.d.ts +0 -0
- /package/build/{next → spec}/misc/Image.d.ts +0 -0
- /package/build/{next → spec}/misc/InlineAlert.d.ts +0 -0
- /package/build/{next → spec}/misc/Size.d.ts +0 -0
- /package/build/{next → spec}/misc/SupportingValues.d.ts +0 -0
- /package/build/{next → spec}/misc/media/AvatarContent.d.ts +0 -0
- /package/build/{next → spec}/misc/media/AvatarTextContent.d.ts +0 -0
- /package/build/{next → spec}/misc/media/AvatarUriContent.d.ts +0 -0
- /package/build/{next → spec}/misc/media/Media.d.ts +0 -0
- /package/build/{next → spec}/misc/media/MediaAvatar.d.ts +0 -0
- /package/build/{next → spec}/misc/media/MediaImage.d.ts +0 -0
- /package/build/{next → spec}/responses/action/ActionResponseBody.d.ts +0 -0
- /package/build/{next → spec}/responses/error/ErrorResponseBody.d.ts +0 -0
- /package/build/{next → spec}/responses/modal/ModalResponseBody.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchResponseBody.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchResult.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchResultAction.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchResultSearch.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchSearchRequest.d.ts +0 -0
- /package/build/{next → spec}/schema/AllOfSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/ArraySchema.d.ts +0 -0
- /package/build/{next → spec}/schema/ArraySchemaList.d.ts +0 -0
- /package/build/{next → spec}/schema/ArraySchemaTuple.d.ts +0 -0
- /package/build/{next → spec}/schema/BlobSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/BooleanSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/ConstSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/IntegerSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/NumberSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/ObjectSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/OneOfSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/Schema.d.ts +0 -0
- /package/build/{next → spec}/schema/StringSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/StringSchemaFormat.d.ts +0 -0
- /package/build/{next → spec}/step/Step.d.ts +0 -0
package/build/zod/schemas.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-experimental-feace93",
|
|
4
4
|
"description": "Dynamic Flow TypeScript Types",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -11,19 +11,14 @@
|
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"registry": "https://registry.npmjs.org/"
|
|
13
13
|
},
|
|
14
|
-
"main": "./build/main.js",
|
|
15
|
-
"module": "./build/main.mjs",
|
|
16
|
-
"types": "./build/index.d.ts",
|
|
17
14
|
"exports": {
|
|
18
|
-
"
|
|
19
|
-
"types": "./build/index.d.ts",
|
|
20
|
-
"import": "./build/main.mjs",
|
|
21
|
-
"require": "./build/main.js"
|
|
15
|
+
"./spec": {
|
|
16
|
+
"types": "./build/spec/index.d.ts",
|
|
17
|
+
"import": "./build/spec/main.mjs",
|
|
18
|
+
"require": "./build/spec/main.js"
|
|
22
19
|
},
|
|
23
|
-
"./
|
|
24
|
-
|
|
25
|
-
"types": "./build/renderers/index.d.ts",
|
|
26
|
-
"default": "./build/renderers/index.js"
|
|
20
|
+
"./renderers": {
|
|
21
|
+
"types": "./build/renderers/index.d.ts"
|
|
27
22
|
}
|
|
28
23
|
},
|
|
29
24
|
"files": [
|
package/build/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './spec/responses';
|
|
2
|
-
export * from './spec/Action';
|
|
3
|
-
export * from './spec/AutocompleteToken';
|
|
4
|
-
export * from './spec/core';
|
|
5
|
-
export * from './spec/LayoutComponent';
|
|
6
|
-
export * from './spec/Model';
|
|
7
|
-
export * from './spec/Navigation';
|
|
8
|
-
export * from './spec/PersistAsync';
|
|
9
|
-
export * from './spec/Polling';
|
|
10
|
-
export * from './spec/Promotion';
|
|
11
|
-
export * from './spec/Schema';
|
|
12
|
-
export * from './spec/Step';
|
|
13
|
-
export * from './spec/ValidationAsync';
|
|
14
|
-
export * from './spec/Search';
|
|
15
|
-
export type { FileUploadSchema, CameraDirection } from './spec/FileUploadSchema';
|
|
16
|
-
export { validateStep, validateActionResponse, validateErrorResponse } from './zod/validators';
|
package/build/spec/Action.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { HttpMethod } from './core';
|
|
2
|
-
type CoreAction = {
|
|
3
|
-
id?: string;
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Please use id instead
|
|
6
|
-
*/
|
|
7
|
-
$id?: string;
|
|
8
|
-
data?: Record<string, unknown>;
|
|
9
|
-
exit?: boolean;
|
|
10
|
-
method?: HttpMethod;
|
|
11
|
-
result?: Record<string, unknown>;
|
|
12
|
-
timeout?: number;
|
|
13
|
-
url?: string;
|
|
14
|
-
skipValidation?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type Action = CoreAction & {
|
|
17
|
-
title?: string;
|
|
18
|
-
type?: 'primary' | 'secondary' | 'link' | 'positive' | 'negative';
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A hint applied to a field that tells the client what kind of field it is. This can enable the user agent or assistive
|
|
3
|
-
* technologies running to automatically suggest or fill in information specific to the user.
|
|
4
|
-
*
|
|
5
|
-
* Please note that not all values will work on all platforms. For the most benefit, it is helpful to combine controls
|
|
6
|
-
* with autocomplete hints - i.e a common pattern is to have password control on string schemas that can be combined
|
|
7
|
-
* with the PASSWORD or NEW_PASSWORD hints for the best possible user experience.
|
|
8
|
-
*/
|
|
9
|
-
export type AutocompleteToken =
|
|
10
|
-
/**
|
|
11
|
-
* Let the user agent provide the user with autocompletion values, but do not provide any further information about
|
|
12
|
-
* what kind of data the user might be expected to enter. The user agent would have to use heuristics to decide what
|
|
13
|
-
* autocompletion values to suggest.
|
|
14
|
-
*
|
|
15
|
-
* **This is not recommended.** It is preferable to use a specific value instead.
|
|
16
|
-
*/
|
|
17
|
-
'on'
|
|
18
|
-
/**
|
|
19
|
-
* A person's full name.
|
|
20
|
-
*
|
|
21
|
-
* For example: "Sir Timothy John Berners-Lee, OM, KBE, FRS, FREng, FRSA"
|
|
22
|
-
*/
|
|
23
|
-
| 'name'
|
|
24
|
-
/**
|
|
25
|
-
* A prefix or title, such as "Mrs.", "Mr.", "Miss", "Ms.", "Dr.", or "Mlle.".
|
|
26
|
-
*
|
|
27
|
-
* For example: "Sir"
|
|
28
|
-
*/
|
|
29
|
-
| 'name-prefix'
|
|
30
|
-
/**
|
|
31
|
-
* A given (or "first") name.
|
|
32
|
-
*
|
|
33
|
-
* For example: "Timothy"
|
|
34
|
-
*/
|
|
35
|
-
| 'given-name'
|
|
36
|
-
/**
|
|
37
|
-
* An additional (or middle) name.
|
|
38
|
-
*
|
|
39
|
-
* For example: "John"
|
|
40
|
-
*/
|
|
41
|
-
| 'additional-name'
|
|
42
|
-
/**
|
|
43
|
-
* A family (or "last") name.
|
|
44
|
-
*
|
|
45
|
-
* For example: "Berners-Lee"
|
|
46
|
-
*/
|
|
47
|
-
| 'family-name'
|
|
48
|
-
/**
|
|
49
|
-
* A name suffix, such as "Jr.", "B.Sc.", "PhD.", "MBASW", or "IV".
|
|
50
|
-
*
|
|
51
|
-
* For example: "OM, KBE, FRS, FREng, FRSA"
|
|
52
|
-
*/
|
|
53
|
-
| 'name-suffix'
|
|
54
|
-
/**
|
|
55
|
-
* A nickname or handle.
|
|
56
|
-
*
|
|
57
|
-
* For example: "Tim"
|
|
58
|
-
*/
|
|
59
|
-
| 'nickname'
|
|
60
|
-
/**
|
|
61
|
-
* An email address.
|
|
62
|
-
*
|
|
63
|
-
* For example: "timbl@w3.org"
|
|
64
|
-
*/
|
|
65
|
-
| 'email'
|
|
66
|
-
/**
|
|
67
|
-
* A username or account name.
|
|
68
|
-
*
|
|
69
|
-
* For example: "timbl"
|
|
70
|
-
*/
|
|
71
|
-
| 'username'
|
|
72
|
-
/**
|
|
73
|
-
* A newly created username or account name.
|
|
74
|
-
*
|
|
75
|
-
* For example: "timblee"
|
|
76
|
-
*/
|
|
77
|
-
| 'new-username'
|
|
78
|
-
/**
|
|
79
|
-
* A new password.
|
|
80
|
-
*
|
|
81
|
-
* For example: "GUMFXbadyrS3"
|
|
82
|
-
*/
|
|
83
|
-
| 'new-password'
|
|
84
|
-
/**
|
|
85
|
-
* The user's current password.
|
|
86
|
-
*
|
|
87
|
-
* For example: "qwerty"
|
|
88
|
-
*/
|
|
89
|
-
| 'password'
|
|
90
|
-
/**
|
|
91
|
-
* A one-time password (OTP).
|
|
92
|
-
*
|
|
93
|
-
* For example: "1234"
|
|
94
|
-
*/
|
|
95
|
-
| 'one-time-code'
|
|
96
|
-
/**
|
|
97
|
-
* A job title, or the title a person has within an organization.
|
|
98
|
-
*
|
|
99
|
-
* For example: "Professor"
|
|
100
|
-
*/
|
|
101
|
-
| 'job-title'
|
|
102
|
-
/**
|
|
103
|
-
* A company or organisation name.
|
|
104
|
-
*
|
|
105
|
-
* For example: "World Wide Web Consortium"
|
|
106
|
-
*/
|
|
107
|
-
| 'organization-name'
|
|
108
|
-
/**
|
|
109
|
-
* A street address. This can be multiple lines of text, and should fully identify the location of the address
|
|
110
|
-
* within its second administrative level (typically a city or town), but should not include the city name, ZIP or
|
|
111
|
-
* postal code, or country name.
|
|
112
|
-
*
|
|
113
|
-
* For example: "32 Vassar Street
|
|
114
|
-
* MIT Room 32-G524"
|
|
115
|
-
*/
|
|
116
|
-
| 'full-street-address'
|
|
117
|
-
/**
|
|
118
|
-
* Individual line of the street address. This should only be present if FULL_STREET_ADDRESS is not present.
|
|
119
|
-
*
|
|
120
|
-
* For example: "32 Vassar Street"
|
|
121
|
-
*/
|
|
122
|
-
| 'street-address-line-1'
|
|
123
|
-
/**
|
|
124
|
-
* Individual line of the street address. This should only be present if FULL_STREET_ADDRESS is not present.
|
|
125
|
-
*
|
|
126
|
-
* For example: "MIT Room 32-G524"
|
|
127
|
-
*/
|
|
128
|
-
| 'street-address-line-2'
|
|
129
|
-
/**
|
|
130
|
-
* Individual line of the street address. This should only be present if FULL_STREET_ADDRESS is not present.
|
|
131
|
-
*/
|
|
132
|
-
| 'street-address-line-3'
|
|
133
|
-
/**
|
|
134
|
-
* Describes the address in terms of increasing levels of precision within the country in which the address is
|
|
135
|
-
* located. Each country has its own system of administrative levels, and may arrange the levels in different orders
|
|
136
|
-
* when addresses are written.
|
|
137
|
-
*
|
|
138
|
-
* This is the broadest administrative level in the address, i.e. the province within which the locality is found;
|
|
139
|
-
* for example, in the US, this would be the state; in the UK, the post-town.
|
|
140
|
-
*
|
|
141
|
-
* For example: "MA"
|
|
142
|
-
*/
|
|
143
|
-
| 'address-level-1'
|
|
144
|
-
/**
|
|
145
|
-
* The second administrative level, in addresses with two or more administrative levels; in the countries with two
|
|
146
|
-
* administrative levels, this would typically be the city, town, village, or other locality within which the
|
|
147
|
-
* relevant street address is found.
|
|
148
|
-
*
|
|
149
|
-
* For example: "Cambridge"
|
|
150
|
-
*/
|
|
151
|
-
| 'address-level-2'
|
|
152
|
-
/**
|
|
153
|
-
* The third administrative level, in addresses with three or more administrative levels.
|
|
154
|
-
*/
|
|
155
|
-
| 'address-level-3'
|
|
156
|
-
/**
|
|
157
|
-
* The most fine-grained administrative level, in addresses with four administrative levels.
|
|
158
|
-
*/
|
|
159
|
-
| 'address-level-4'
|
|
160
|
-
/**
|
|
161
|
-
* Valid ISO3166-1-alpha-2](https://www.iso.org/iso-3166-country-codes.html) country codes.
|
|
162
|
-
*
|
|
163
|
-
* For example: "US"
|
|
164
|
-
*/
|
|
165
|
-
| 'country-code'
|
|
166
|
-
/**
|
|
167
|
-
* A country or territory name (could be the same as COUNTRY_CODE or the full name).
|
|
168
|
-
*
|
|
169
|
-
* For example: "United States"
|
|
170
|
-
*/
|
|
171
|
-
| 'country-name'
|
|
172
|
-
/**
|
|
173
|
-
* Postal code, post code, ZIP code, CEDEX code (if CEDEX, append "CEDEX", and the arrondissement, if relevant, to
|
|
174
|
-
* the ADDRESS_LEVEL_2 field).
|
|
175
|
-
*
|
|
176
|
-
* For example: "02139"
|
|
177
|
-
*/
|
|
178
|
-
| 'postal-code'
|
|
179
|
-
/**
|
|
180
|
-
* The full name as printed on or associated with a payment instrument such as a credit card.
|
|
181
|
-
*
|
|
182
|
-
* For example: "Tim Berners-Lee"
|
|
183
|
-
*/
|
|
184
|
-
| 'credit-card-name'
|
|
185
|
-
/**
|
|
186
|
-
* A given (first) name as given on a payment instrument like a credit card.
|
|
187
|
-
*
|
|
188
|
-
* For example: "Tim"
|
|
189
|
-
*/
|
|
190
|
-
| 'credit-card-given-name'
|
|
191
|
-
/**
|
|
192
|
-
* A middle name as given on a payment instrument or credit card.
|
|
193
|
-
*
|
|
194
|
-
* For example: "John"
|
|
195
|
-
*/
|
|
196
|
-
| 'credit-card-middle-name'
|
|
197
|
-
/**
|
|
198
|
-
* A family name, as given on a credit card.
|
|
199
|
-
*
|
|
200
|
-
* For example: "Berners-Lee"
|
|
201
|
-
*/
|
|
202
|
-
| 'credit-card-family-name'
|
|
203
|
-
/**
|
|
204
|
-
* A credit card number or other number identifying a payment method, such as an account number.
|
|
205
|
-
*
|
|
206
|
-
* For example: "4114360123456785"
|
|
207
|
-
*/
|
|
208
|
-
| 'credit-card-number'
|
|
209
|
-
/**
|
|
210
|
-
* A payment method expiration date.
|
|
211
|
-
*
|
|
212
|
-
* For example: "2014-12"
|
|
213
|
-
*/
|
|
214
|
-
| 'credit-card-expiration'
|
|
215
|
-
/**
|
|
216
|
-
* The month in which the payment method expires.
|
|
217
|
-
*
|
|
218
|
-
* For example: "12"
|
|
219
|
-
*/
|
|
220
|
-
| 'credit-card-expiration-month'
|
|
221
|
-
/**
|
|
222
|
-
* The year in which the payment method expires.
|
|
223
|
-
*
|
|
224
|
-
* For example: "2023"
|
|
225
|
-
*/
|
|
226
|
-
| 'credit-card-expiration-year'
|
|
227
|
-
/**
|
|
228
|
-
* The security code for the payment instrument; on credit cards, this is the 3-digit verification number on the
|
|
229
|
-
* back of the card.
|
|
230
|
-
*
|
|
231
|
-
* For example: "443"
|
|
232
|
-
*/
|
|
233
|
-
| 'credit-card-security-code'
|
|
234
|
-
/**
|
|
235
|
-
* The type of payment instrument.
|
|
236
|
-
*
|
|
237
|
-
* For example: "Visa"
|
|
238
|
-
*/
|
|
239
|
-
| 'credit-card-type'
|
|
240
|
-
/**
|
|
241
|
-
* The currency in which the transaction is to take place.
|
|
242
|
-
*
|
|
243
|
-
* For example: "GBP"
|
|
244
|
-
*/
|
|
245
|
-
| 'transaction-currency'
|
|
246
|
-
/**
|
|
247
|
-
* The amount, given in the currency specified by TRANSACTION_CURRENCY, of the transaction, for a payment form.
|
|
248
|
-
*
|
|
249
|
-
* For example: "401.95"
|
|
250
|
-
*/
|
|
251
|
-
| 'transaction-amount'
|
|
252
|
-
/**
|
|
253
|
-
* A preferred language, given as a valid BCP47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag).
|
|
254
|
-
*
|
|
255
|
-
* For example: "en"
|
|
256
|
-
*/
|
|
257
|
-
| 'language'
|
|
258
|
-
/**
|
|
259
|
-
* A birthdate, as a full date.
|
|
260
|
-
*
|
|
261
|
-
* For example: "1955-06-08"
|
|
262
|
-
*/
|
|
263
|
-
| 'birthdate'
|
|
264
|
-
/**
|
|
265
|
-
* The day of the month of a birthdate.
|
|
266
|
-
*
|
|
267
|
-
* For example: "8"
|
|
268
|
-
*/
|
|
269
|
-
| 'birthdate-day'
|
|
270
|
-
/**
|
|
271
|
-
* The month of the year of a birthdate.
|
|
272
|
-
*
|
|
273
|
-
* For example: "6"
|
|
274
|
-
*/
|
|
275
|
-
| 'birthdate-month'
|
|
276
|
-
/**
|
|
277
|
-
* The year of a birthdate.
|
|
278
|
-
*
|
|
279
|
-
* For example: "1955"
|
|
280
|
-
*/
|
|
281
|
-
| 'birthdate-year'
|
|
282
|
-
/**
|
|
283
|
-
* A gender identity (e.g. "Female", "Fa'afafine" or "Nonbinary").
|
|
284
|
-
*
|
|
285
|
-
* For example: "Male"
|
|
286
|
-
*/
|
|
287
|
-
| 'gender'
|
|
288
|
-
/**
|
|
289
|
-
* A full phone number, including the country code.
|
|
290
|
-
*
|
|
291
|
-
* For example: "+1 617 253 5702"
|
|
292
|
-
*/
|
|
293
|
-
| 'phone-number'
|
|
294
|
-
/**
|
|
295
|
-
* The country code, such as "1" for the United States, Canada, and other areas in North America and parts of the
|
|
296
|
-
* Caribbean.
|
|
297
|
-
*
|
|
298
|
-
* For example: "+1"
|
|
299
|
-
*/
|
|
300
|
-
| 'phone-country-code'
|
|
301
|
-
/**
|
|
302
|
-
* The entire phone number without the country code component, including a country-internal prefix. For the phone
|
|
303
|
-
* number "1-855-555-6502", this field's value would be "855-555-6502".
|
|
304
|
-
*
|
|
305
|
-
* For example: "617 253 5702"
|
|
306
|
-
*/
|
|
307
|
-
| 'phone-national'
|
|
308
|
-
/**
|
|
309
|
-
* The area code, with any country-internal prefix applied if appropriate.
|
|
310
|
-
*
|
|
311
|
-
* For example: "617"
|
|
312
|
-
*/
|
|
313
|
-
| 'phone-area-code'
|
|
314
|
-
/**
|
|
315
|
-
* The phone number without the country or area code.
|
|
316
|
-
*
|
|
317
|
-
* For example: "2535702"
|
|
318
|
-
*/
|
|
319
|
-
| 'phone-local'
|
|
320
|
-
/**
|
|
321
|
-
* First part of the component of the phone number that follows the area code, when that component is split into
|
|
322
|
-
* two components.
|
|
323
|
-
*
|
|
324
|
-
* For example: "253"
|
|
325
|
-
*/
|
|
326
|
-
| 'phone-local-prefix'
|
|
327
|
-
/**
|
|
328
|
-
* Second part of the component of the phone number that follows the area code, when that component is split
|
|
329
|
-
* into two components.
|
|
330
|
-
*
|
|
331
|
-
* For example: "5702"
|
|
332
|
-
*/
|
|
333
|
-
| 'phone-local-suffix'
|
|
334
|
-
/**
|
|
335
|
-
* A phone extension code within the phone number, such as a room or suite number in a hotel or an office
|
|
336
|
-
* extension in a company.
|
|
337
|
-
*
|
|
338
|
-
* For example: "1000"
|
|
339
|
-
*/
|
|
340
|
-
| 'phone-extension'
|
|
341
|
-
/**
|
|
342
|
-
* A URL, such as a home page or company website address as appropriate given the context of the other fields in the
|
|
343
|
-
* form.
|
|
344
|
-
*
|
|
345
|
-
* For example: "https://www.w3.org/People/Berners-Lee/"
|
|
346
|
-
*/
|
|
347
|
-
| 'url'
|
|
348
|
-
/**
|
|
349
|
-
* The URL of an image representing the person, company, or contact information given in the other fields in the
|
|
350
|
-
* form.
|
|
351
|
-
*
|
|
352
|
-
* For example: "https://www.w3.org/Press/Stock/Berners-Lee/2001-europaeum-eighth.jpg"
|
|
353
|
-
*/
|
|
354
|
-
| 'photo'
|
|
355
|
-
/**
|
|
356
|
-
* URL representing an instant messaging protocol endpoint (for example, "aim:goim?screenname=example" or
|
|
357
|
-
* "xmpp:fred@example.net")
|
|
358
|
-
*
|
|
359
|
-
* For example: "irc://example.org/timbl,isuser"
|
|
360
|
-
*/
|
|
361
|
-
| 'impp'
|
|
362
|
-
/**
|
|
363
|
-
* A modifier that can be combined with other tokens (e.g. FULL_STREET_ADDRESS), to indicate that the field is
|
|
364
|
-
* part of the shipping address or contact information.
|
|
365
|
-
*/
|
|
366
|
-
| 'shipping'
|
|
367
|
-
/**
|
|
368
|
-
* A modifier that can be combined with other tokens (e.g. FULL_STREET_ADDRESS), to indicate that the field is
|
|
369
|
-
* part of the billing address or contact information.
|
|
370
|
-
*/
|
|
371
|
-
| 'billing'
|
|
372
|
-
/**
|
|
373
|
-
* A modifier that can be combined with other tokens (e.g. PHONE_NUMBER), to indicate that the field is
|
|
374
|
-
* for contacting someone at their residence.
|
|
375
|
-
*/
|
|
376
|
-
| 'home'
|
|
377
|
-
/**
|
|
378
|
-
* A modifier that can be combined with other tokens (e.g. PHONE_NUMBER), to indicate that the field is
|
|
379
|
-
* for contacting someone at their workplace.
|
|
380
|
-
*/
|
|
381
|
-
| 'work'
|
|
382
|
-
/**
|
|
383
|
-
* A modifier that can be combined with other tokens (e.g. PHONE_NUMBER), to indicate that the field is
|
|
384
|
-
* for contacting someone regardless of location.
|
|
385
|
-
*/
|
|
386
|
-
| 'mobile'
|
|
387
|
-
/**
|
|
388
|
-
* A modifier that can be combined with other tokens (e.g. PHONE_NUMBER), to indicate that the field describes
|
|
389
|
-
* a fax machine's contact details
|
|
390
|
-
*/
|
|
391
|
-
| 'fax'
|
|
392
|
-
/**
|
|
393
|
-
* A modifier that can be combined with other tokens (e.g. PHONE_NUMBER), to indicate that the field describes
|
|
394
|
-
* a pager's or beeper's contact details
|
|
395
|
-
*/
|
|
396
|
-
| 'pager';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ImageLayout } from './LayoutComponent';
|
|
2
|
-
import type { StringSchema } from './Schema';
|
|
3
|
-
export type FileUploadSchema = Omit<StringSchema, 'type' | 'format' | 'source' | 'image' | 'cameraConfig'> & {
|
|
4
|
-
type: 'string';
|
|
5
|
-
format: 'base64url';
|
|
6
|
-
source?: 'camera' | 'file';
|
|
7
|
-
image?: ImageLayout;
|
|
8
|
-
cameraConfig?: CameraConfig;
|
|
9
|
-
};
|
|
10
|
-
type CameraConfig = {
|
|
11
|
-
assets?: {
|
|
12
|
-
overlay?: string;
|
|
13
|
-
outline?: string;
|
|
14
|
-
};
|
|
15
|
-
direction?: CameraDirection;
|
|
16
|
-
instructions?: string;
|
|
17
|
-
};
|
|
18
|
-
export type CameraDirection = 'back' | 'front';
|
|
19
|
-
export {};
|