@uides/stepwise 2.2.1 → 2.2.3
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/CHANGELOG.md +11 -2
- package/generators/extractStepwisePossibleValues.d.mts +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/schemas/action.d.ts +48 -168
- package/schemas/action.js +34 -47
- package/schemas/field/afm/index.d.ts +158 -6
- package/schemas/field/afm/index.js +6 -9
- package/schemas/field/amka/index.d.ts +152 -8
- package/schemas/field/amka/index.js +3 -7
- package/schemas/field/attachment/index.d.ts +184 -16
- package/schemas/field/attachment/index.js +9 -22
- package/schemas/field/captcha/index.d.ts +156 -2
- package/schemas/field/captcha/index.js +6 -9
- package/schemas/field/choice/index.d.ts +188 -15
- package/schemas/field/choice/index.js +4 -9
- package/schemas/field/common.d.ts +92 -40
- package/schemas/field/common.js +78 -11
- package/schemas/field/date/index.d.ts +152 -38
- package/schemas/field/date/index.js +6 -33
- package/schemas/field/doc_subtitle/index.d.ts +158 -5
- package/schemas/field/doc_subtitle/index.js +5 -6
- package/schemas/field/doc_title/index.d.ts +154 -8
- package/schemas/field/doc_title/index.js +5 -12
- package/schemas/field/dynamically-filled-text/index.d.ts +170 -33
- package/schemas/field/dynamically-filled-text/index.js +6 -23
- package/schemas/field/email/index.d.ts +152 -8
- package/schemas/field/email/index.js +5 -9
- package/schemas/field/fillable-string/index.d.ts +156 -12
- package/schemas/field/fillable-string/index.js +4 -10
- package/schemas/field/five-block-date/index.d.ts +156 -2
- package/schemas/field/five-block-date/index.js +5 -4
- package/schemas/field/hidden/index.d.ts +161 -14
- package/schemas/field/hidden/index.js +7 -15
- package/schemas/field/hierarchical-selector/index.d.ts +176 -37
- package/schemas/field/hierarchical-selector/index.js +5 -21
- package/schemas/field/iban/index.d.ts +168 -6
- package/schemas/field/iban/index.js +3 -3
- package/schemas/field/image/index.d.ts +168 -16
- package/schemas/field/image/index.js +7 -23
- package/schemas/field/index.d.ts +2 -7
- package/schemas/field/index.js +8 -15
- package/schemas/field/int/index.d.ts +152 -8
- package/schemas/field/int/index.js +5 -9
- package/schemas/field/intl_mobile_phone/index.d.ts +156 -3
- package/schemas/field/intl_mobile_phone/index.js +5 -5
- package/schemas/field/lab-results/index.d.ts +156 -3
- package/schemas/field/lab-results/index.js +6 -6
- package/schemas/field/mobile_phone/index.d.ts +158 -5
- package/schemas/field/mobile_phone/index.js +5 -6
- package/schemas/field/multiple-choice/index.d.ts +180 -12
- package/schemas/field/multiple-choice/index.js +3 -8
- package/schemas/field/password/index.d.ts +156 -2
- package/schemas/field/password/index.js +5 -5
- package/schemas/field/pdf-image/index.d.ts +152 -14
- package/schemas/field/pdf-image/index.js +6 -18
- package/schemas/field/postal_code/index.d.ts +156 -4
- package/schemas/field/postal_code/index.js +6 -8
- package/schemas/field/preference-multiple-choice/index.d.ts +211 -17
- package/schemas/field/preference-multiple-choice/index.js +5 -9
- package/schemas/field/qrcode/index.d.ts +168 -19
- package/schemas/field/qrcode/index.js +6 -18
- package/schemas/field/quote/index.d.ts +170 -11
- package/schemas/field/quote/index.js +4 -12
- package/schemas/field/radio-choice/index.d.ts +172 -9
- package/schemas/field/radio-choice/index.js +4 -10
- package/schemas/field/rate/index.d.ts +150 -8
- package/schemas/field/rate/index.js +4 -7
- package/schemas/field/recipient/index.d.ts +158 -5
- package/schemas/field/recipient/index.js +5 -9
- package/schemas/field/redirect/index.d.ts +156 -6
- package/schemas/field/redirect/index.js +6 -9
- package/schemas/field/refcode/index.d.ts +168 -16
- package/schemas/field/refcode/index.js +6 -20
- package/schemas/field/string/index.d.ts +226 -65
- package/schemas/field/string/index.js +5 -54
- package/schemas/field/text/index.d.ts +170 -33
- package/schemas/field/text/index.js +5 -30
- package/schemas/field/three-block-date/index.d.ts +176 -12
- package/schemas/field/three-block-date/index.js +4 -10
- package/schemas/field/url/index.d.ts +204 -0
- package/schemas/field/url/index.js +16 -0
- package/schemas/fieldset/component-params.d.ts +9 -41
- package/schemas/fieldset/component-params.js +5 -29
- package/schemas/fieldset/display-components.d.ts +16 -244
- package/schemas/fieldset/display-components.js +6 -19
- package/schemas/fieldset/enums.d.ts +0 -22
- package/schemas/fieldset/enums.js +1 -15
- package/schemas/fieldset/index.d.ts +9 -93
- package/schemas/index.d.ts +1 -1
- package/schemas/index.js +1 -1
- package/schemas/step.d.ts +7 -0
- package/schemas/step.js +2 -1
- package/schemas/{template/template.d.ts → template.d.ts} +47 -23
- package/schemas/template.js +26 -0
- package/src/generators/actions-possible-values/document-anon-create.json +19 -0
- package/src/generators/actions-possible-values/document-backstep.json +19 -0
- package/src/generators/actions-possible-values/document-create-new.json +43 -0
- package/src/generators/actions-possible-values/document-create.json +20 -0
- package/src/generators/actions-possible-values/document-dismiss.json +36 -0
- package/src/generators/actions-possible-values/document-download-pdf.json +69 -0
- package/src/generators/actions-possible-values/document-email.json +42 -0
- package/src/generators/actions-possible-values/document-resend-otp.json +30 -0
- package/src/generators/actions-possible-values/document-revoke.json +46 -0
- package/src/generators/actions-possible-values/document-share.json +29 -0
- package/src/generators/actions-possible-values/document-sms.json +38 -0
- package/src/generators/actions-possible-values/document-temporary-save.json +28 -0
- package/src/generators/actions-possible-values/document-update.json +111 -0
- package/src/generators/actions-possible-values/entity-forward.json +31 -0
- package/src/generators/actions-possible-values/entity-reply.json +31 -0
- package/src/generators/actions-possible-values/entity-send-message.json +34 -0
- package/src/generators/actions-possible-values/hidden.json +22 -0
- package/src/generators/actions-possible-values/link.json +43 -0
- package/src/generators/extractStepwisePossibleValues.mjs +139 -0
- package/src/generators/fields-possible-values/afm.json +94 -0
- package/src/generators/fields-possible-values/amka.json +26 -0
- package/src/generators/fields-possible-values/attachment.json +89 -0
- package/src/generators/fields-possible-values/captcha.json +16 -0
- package/src/generators/fields-possible-values/choice.json +432 -0
- package/src/generators/fields-possible-values/date.json +57 -0
- package/src/generators/fields-possible-values/doc_subtitle.json +26 -0
- package/src/generators/fields-possible-values/doc_title.json +63 -0
- package/src/generators/fields-possible-values/dynamically-filled-text.json +47 -0
- package/src/generators/fields-possible-values/email.json +65 -0
- package/src/generators/fields-possible-values/fillable-string.json +47 -0
- package/src/generators/fields-possible-values/five-block-date.json +23 -0
- package/src/generators/fields-possible-values/hidden.json +140 -0
- package/src/generators/fields-possible-values/hierarchical-selector.json +84 -0
- package/src/generators/fields-possible-values/iban.json +35 -0
- package/src/generators/fields-possible-values/image.json +37 -0
- package/src/generators/fields-possible-values/int.json +52 -0
- package/src/generators/fields-possible-values/intl_mobile_phone.json +32 -0
- package/src/generators/fields-possible-values/lab-results.json +19 -0
- package/src/generators/fields-possible-values/mobile_phone.json +45 -0
- package/src/generators/fields-possible-values/multiple-choice.json +128 -0
- package/src/generators/fields-possible-values/password.json +20 -0
- package/src/generators/fields-possible-values/pdf-image.json +70 -0
- package/src/generators/fields-possible-values/postal_code.json +32 -0
- package/src/generators/fields-possible-values/preference-multiple-choice.json +53 -0
- package/src/generators/fields-possible-values/qrcode.json +75 -0
- package/src/generators/fields-possible-values/quote.json +71 -0
- package/src/generators/fields-possible-values/radio-choice.json +209 -0
- package/src/generators/fields-possible-values/rate.json +26 -0
- package/src/generators/fields-possible-values/recipient.json +46 -0
- package/src/generators/fields-possible-values/redirect.json +22 -0
- package/src/generators/fields-possible-values/refcode.json +89 -0
- package/src/generators/fields-possible-values/string.json +778 -0
- package/src/generators/fields-possible-values/text.json +105 -0
- package/src/generators/fields-possible-values/three-block-date.json +83 -0
- package/src/generators/fields-possible-values/url.json +23 -0
- package/src/generators/fieldsets-possible-values/form.json +311 -0
- package/src/generators/fieldsets-possible-values/hidden.json +107 -0
- package/src/generators/fieldsets-possible-values/unknown.json +69 -0
- package/src/generators/fieldsets-possible-values/values-list.json +364 -0
- package/src/schemas/action.ts +44 -58
- package/src/schemas/field/afm/index.ts +8 -6
- package/src/schemas/field/amka/index.ts +7 -9
- package/src/schemas/field/attachment/index.ts +9 -23
- package/src/schemas/field/captcha/index.ts +8 -3
- package/src/schemas/field/choice/index.ts +7 -5
- package/src/schemas/field/common.spec.ts +0 -3
- package/src/schemas/field/common.ts +115 -53
- package/src/schemas/field/date/index.ts +8 -24
- package/src/schemas/field/doc_subtitle/index.ts +7 -4
- package/src/schemas/field/doc_title/index.ts +7 -14
- package/src/schemas/field/dynamically-filled-text/index.ts +7 -15
- package/src/schemas/field/email/index.ts +7 -9
- package/src/schemas/field/fillable-string/index.ts +7 -11
- package/src/schemas/field/five-block-date/index.ts +7 -2
- package/src/schemas/field/hidden/index.ts +15 -40
- package/src/schemas/field/hierarchical-selector/index.ts +8 -18
- package/src/schemas/field/iban/index.ts +7 -3
- package/src/schemas/field/image/index.ts +8 -10
- package/src/schemas/field/index.ts +8 -33
- package/src/schemas/field/int/index.ts +7 -9
- package/src/schemas/field/intl_mobile_phone/index.ts +7 -3
- package/src/schemas/field/lab-results/index.ts +7 -3
- package/src/schemas/field/mobile_phone/index.ts +7 -4
- package/src/schemas/field/multiple-choice/index.ts +7 -5
- package/src/schemas/field/password/index.ts +8 -3
- package/src/schemas/field/pdf-image/index.ts +8 -12
- package/src/schemas/field/postal_code/index.ts +8 -5
- package/src/schemas/field/preference-multiple-choice/index.ts +8 -7
- package/src/schemas/field/qrcode/index.ts +7 -10
- package/src/schemas/field/quote/index.ts +8 -8
- package/src/schemas/field/radio-choice/index.ts +7 -5
- package/src/schemas/field/rate/index.ts +7 -8
- package/src/schemas/field/recipient/index.ts +7 -4
- package/src/schemas/field/redirect/index.ts +7 -6
- package/src/schemas/field/refcode/index.ts +7 -21
- package/src/schemas/field/string/index.ts +7 -42
- package/src/schemas/field/text/index.ts +8 -16
- package/src/schemas/field/three-block-date/index.ts +7 -6
- package/src/schemas/field/url/index.ts +24 -0
- package/src/schemas/fieldset/component-params.ts +4 -20
- package/src/schemas/fieldset/display-components.ts +5 -36
- package/src/schemas/fieldset/enums.ts +0 -38
- package/src/schemas/step.ts +1 -0
- package/src/schemas/{template/template-base.ts → template.ts} +30 -6
- package/src/utils/index.ts +69 -2
- package/utils/index.js +28 -2
- package/schemas/field/consent-content/index.d.ts +0 -68
- package/schemas/field/consent-content/index.js +0 -19
- package/schemas/field/image-crop/index.d.ts +0 -59
- package/schemas/field/image-crop/index.js +0 -19
- package/schemas/field/landline_phone/index.d.ts +0 -48
- package/schemas/field/landline_phone/index.js +0 -14
- package/schemas/field/link/index.d.ts +0 -50
- package/schemas/field/link/index.js +0 -16
- package/schemas/field/phone/index.d.ts +0 -48
- package/schemas/field/phone/index.js +0 -14
- package/schemas/field/url-param/index.d.ts +0 -57
- package/schemas/field/url-param/index.js +0 -14
- package/schemas/template/index.d.ts +0 -2
- package/schemas/template/index.js +0 -2
- package/schemas/template/template-base.d.ts +0 -53
- package/schemas/template/template-base.js +0 -15
- package/schemas/template/template-source.d.ts +0 -50
- package/schemas/template/template-source.js +0 -14
- package/schemas/template/template.js +0 -22
- package/src/schemas/field/consent-content/index.ts +0 -28
- package/src/schemas/field/image-crop/index.ts +0 -25
- package/src/schemas/field/landline_phone/index.ts +0 -18
- package/src/schemas/field/link/index.ts +0 -20
- package/src/schemas/field/phone/index.ts +0 -18
- package/src/schemas/field/url-param/index.ts +0 -23
- package/src/schemas/template/index.ts +0 -2
- package/src/schemas/template/template-source.ts +0 -88
- package/src/schemas/template/template.ts +0 -49
package/utils/index.js
CHANGED
|
@@ -28,7 +28,7 @@ function collectIssues(issues) {
|
|
|
28
28
|
};
|
|
29
29
|
} else formattedIssues[path] = {
|
|
30
30
|
...formattedIssues[path],
|
|
31
|
-
[nestedPath]: issue
|
|
31
|
+
[nestedPath]: formatMessage(issue)
|
|
32
32
|
};
|
|
33
33
|
});
|
|
34
34
|
return formattedIssues;
|
|
@@ -36,7 +36,7 @@ function collectIssues(issues) {
|
|
|
36
36
|
function getNestedIssueMessage(issue) {
|
|
37
37
|
const path = (issue.path?.map((p)=>String(p.key)) ?? []).join('/');
|
|
38
38
|
if (!issue.issues || !(issue.issues.length > 0)) return {
|
|
39
|
-
[path]: issue
|
|
39
|
+
[path]: formatMessage(issue)
|
|
40
40
|
};
|
|
41
41
|
{
|
|
42
42
|
const nestedIssues = {};
|
|
@@ -49,6 +49,32 @@ function getNestedIssueMessage(issue) {
|
|
|
49
49
|
return nestedIssues;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
function formatMessage(issue) {
|
|
53
|
+
const { type, expected, received, message, input } = issue;
|
|
54
|
+
if ('strict_object' === type && 'never' === expected) return `Unknown key ${received} not allowed`;
|
|
55
|
+
if ('variant' === type) {
|
|
56
|
+
const components = extractDisplayComponents(input);
|
|
57
|
+
if (components.length > 0) {
|
|
58
|
+
const list = components.map((c)=>`"${c}"`).join(', ');
|
|
59
|
+
return `No schema variant matches display component ${list}`;
|
|
60
|
+
}
|
|
61
|
+
return "No matching schema variant";
|
|
62
|
+
}
|
|
63
|
+
if (('picklist' === type || 'literal' === type) && null != expected && null != received) return `Expected one of ${expected} but received ${received}`;
|
|
64
|
+
if ('raw_check' === type && null != expected && null != received && message !== `Expected ${expected} but received ${received}`) return `Expected ${expected} but received ${received}`;
|
|
65
|
+
if (null != expected && null != received && expected === received) return `Value does not match expected ${expected} shape`;
|
|
66
|
+
return message.replace(/^Invalid type: /i, '');
|
|
67
|
+
}
|
|
68
|
+
function extractDisplayComponents(input) {
|
|
69
|
+
if (!input || 'object' != typeof input || Array.isArray(input)) return [];
|
|
70
|
+
const components = new Set();
|
|
71
|
+
for (const modeVal of Object.values(input))if (modeVal && 'object' == typeof modeVal) for (const langVal of Object.values(modeVal)){
|
|
72
|
+
if (!langVal || 'object' != typeof langVal) continue;
|
|
73
|
+
const c = langVal['component'];
|
|
74
|
+
if ('string' == typeof c) components.add(c);
|
|
75
|
+
}
|
|
76
|
+
return Array.from(components);
|
|
77
|
+
}
|
|
52
78
|
function isFailureDataset(dataset) {
|
|
53
79
|
return !dataset.typed;
|
|
54
80
|
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
declare const ConsentContentSchema: v.StrictObjectSchema<{
|
|
3
|
-
readonly 'user-input-mode': v.LiteralSchema<"display", undefined>;
|
|
4
|
-
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
-
readonly md: v.StringSchema<undefined>;
|
|
14
|
-
}, undefined>, undefined>;
|
|
15
|
-
} & {
|
|
16
|
-
readonly component: v.LiteralSchema<"consent-content", undefined>;
|
|
17
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
-
readonly 'display-values': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
19
|
-
readonly 'data-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
20
|
-
readonly 'recipient-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
21
|
-
readonly 'transaction-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
-
}, undefined>, undefined>;
|
|
23
|
-
}, undefined>, v.ObjectSchema<{
|
|
24
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
26
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
27
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
30
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
31
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
32
|
-
readonly md: v.StringSchema<undefined>;
|
|
33
|
-
}, undefined>, undefined>;
|
|
34
|
-
} & {
|
|
35
|
-
readonly component: v.LiteralSchema<"consent-content", undefined>;
|
|
36
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
37
|
-
readonly 'display-values': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
38
|
-
readonly 'data-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
39
|
-
readonly 'recipient-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
-
readonly 'transaction-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
-
}, undefined>, undefined>;
|
|
42
|
-
}, undefined>, v.ObjectSchema<{
|
|
43
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
45
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
46
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
47
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
51
|
-
readonly md: v.StringSchema<undefined>;
|
|
52
|
-
}, undefined>, undefined>;
|
|
53
|
-
} & {
|
|
54
|
-
readonly component: v.LiteralSchema<"consent-content", undefined>;
|
|
55
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
56
|
-
readonly 'display-values': v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
57
|
-
readonly 'data-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
58
|
-
readonly 'recipient-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
-
readonly 'transaction-label': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
60
|
-
}, undefined>, undefined>;
|
|
61
|
-
}, undefined>>>]>;
|
|
62
|
-
readonly sources: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
63
|
-
readonly 'value-constructor': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
64
|
-
}, undefined>;
|
|
65
|
-
export type ConsentContentType = v.InferOutput<typeof ConsentContentSchema>;
|
|
66
|
-
export type ConsentContentSchemaType = v.GenericSchema<ConsentContentType>;
|
|
67
|
-
declare const _default: ConsentContentSchemaType;
|
|
68
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { boolean as external_valibot_boolean, literal, nullish, strictObject, string } from "valibot";
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
3
|
-
const ConsentContentDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
-
component: literal('consent-content'),
|
|
5
|
-
'component-params': nullish(strictObject({
|
|
6
|
-
'display-values': nullish(external_valibot_boolean()),
|
|
7
|
-
'data-label': nullish(string()),
|
|
8
|
-
'recipient-label': nullish(string()),
|
|
9
|
-
'transaction-label': nullish(string())
|
|
10
|
-
}))
|
|
11
|
-
}));
|
|
12
|
-
const ConsentContentSchema = strictObject({
|
|
13
|
-
'user-input-mode': literal('display'),
|
|
14
|
-
display: ConsentContentDisplaySchema,
|
|
15
|
-
sources: nullish(string()),
|
|
16
|
-
'value-constructor': nullish(string())
|
|
17
|
-
});
|
|
18
|
-
const consent_content = ConsentContentSchema;
|
|
19
|
-
export { consent_content as default };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
declare const ImageCropSchema: v.StrictObjectSchema<{
|
|
3
|
-
readonly 'user-input-mode': v.PicklistSchema<["noinput", "required"], undefined>;
|
|
4
|
-
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
-
readonly md: v.StringSchema<undefined>;
|
|
14
|
-
}, undefined>, undefined>;
|
|
15
|
-
} & {
|
|
16
|
-
readonly component: v.LiteralSchema<"image-crop", undefined>;
|
|
17
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
-
readonly 'image-src-field-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
-
}, undefined>, undefined>;
|
|
20
|
-
}, undefined>, v.ObjectSchema<{
|
|
21
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
23
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
24
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
29
|
-
readonly md: v.StringSchema<undefined>;
|
|
30
|
-
}, undefined>, undefined>;
|
|
31
|
-
} & {
|
|
32
|
-
readonly component: v.LiteralSchema<"image-crop", undefined>;
|
|
33
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
34
|
-
readonly 'image-src-field-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
-
}, undefined>, undefined>;
|
|
36
|
-
}, undefined>, v.ObjectSchema<{
|
|
37
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
39
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
40
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
45
|
-
readonly md: v.StringSchema<undefined>;
|
|
46
|
-
}, undefined>, undefined>;
|
|
47
|
-
} & {
|
|
48
|
-
readonly component: v.LiteralSchema<"image-crop", undefined>;
|
|
49
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
50
|
-
readonly 'image-src-field-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
-
}, undefined>, undefined>;
|
|
52
|
-
}, undefined>>>]>;
|
|
53
|
-
readonly datatype: v.NullishSchema<v.LiteralSchema<"image-crop", undefined>, undefined>;
|
|
54
|
-
readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
-
}, undefined>;
|
|
56
|
-
export type ImageCropType = v.InferOutput<typeof ImageCropSchema>;
|
|
57
|
-
export type ImageCropSchemaType = v.GenericSchema<ImageCropType>;
|
|
58
|
-
declare const _default: ImageCropSchemaType;
|
|
59
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { literal, nullish, picklist, strictObject, string } from "valibot";
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
3
|
-
const ImageCropDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
-
component: literal('image-crop'),
|
|
5
|
-
'component-params': nullish(strictObject({
|
|
6
|
-
'image-src-field-name': nullish(string())
|
|
7
|
-
}))
|
|
8
|
-
}));
|
|
9
|
-
const ImageCropSchema = strictObject({
|
|
10
|
-
'user-input-mode': picklist([
|
|
11
|
-
'noinput',
|
|
12
|
-
'required'
|
|
13
|
-
]),
|
|
14
|
-
display: ImageCropDisplaySchema,
|
|
15
|
-
datatype: nullish(literal('image-crop')),
|
|
16
|
-
attribute: nullish(string())
|
|
17
|
-
});
|
|
18
|
-
const image_crop = ImageCropSchema;
|
|
19
|
-
export { image_crop as default };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
declare const LandlinePhoneSchema: v.StrictObjectSchema<{
|
|
3
|
-
readonly 'user-input-mode': v.PicklistSchema<["noinput", "optional"], undefined>;
|
|
4
|
-
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
-
readonly md: v.StringSchema<undefined>;
|
|
14
|
-
}, undefined>, undefined>;
|
|
15
|
-
} & {
|
|
16
|
-
readonly component: v.LiteralSchema<"landline_phone", undefined>;
|
|
17
|
-
}, undefined>, v.ObjectSchema<{
|
|
18
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
20
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
21
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
23
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
26
|
-
readonly md: v.StringSchema<undefined>;
|
|
27
|
-
}, undefined>, undefined>;
|
|
28
|
-
} & {
|
|
29
|
-
readonly component: v.LiteralSchema<"landline_phone", undefined>;
|
|
30
|
-
}, undefined>, v.ObjectSchema<{
|
|
31
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
33
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
34
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
36
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
39
|
-
readonly md: v.StringSchema<undefined>;
|
|
40
|
-
}, undefined>, undefined>;
|
|
41
|
-
} & {
|
|
42
|
-
readonly component: v.LiteralSchema<"landline_phone", undefined>;
|
|
43
|
-
}, undefined>>>]>;
|
|
44
|
-
}, undefined>;
|
|
45
|
-
export type LandlinePhoneType = v.InferOutput<typeof LandlinePhoneSchema>;
|
|
46
|
-
export type LandlinePhoneSchemaType = v.GenericSchema<LandlinePhoneType>;
|
|
47
|
-
declare const _default: LandlinePhoneSchemaType;
|
|
48
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { literal, picklist, strictObject } from "valibot";
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
3
|
-
const LandlinePhoneDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
-
component: literal('landline_phone')
|
|
5
|
-
}));
|
|
6
|
-
const LandlinePhoneSchema = strictObject({
|
|
7
|
-
'user-input-mode': picklist([
|
|
8
|
-
'noinput',
|
|
9
|
-
'optional'
|
|
10
|
-
]),
|
|
11
|
-
display: LandlinePhoneDisplaySchema
|
|
12
|
-
});
|
|
13
|
-
const landline_phone = LandlinePhoneSchema;
|
|
14
|
-
export { landline_phone as default };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
declare const LinkSchema: v.StrictObjectSchema<{
|
|
3
|
-
readonly 'user-input-mode': v.PicklistSchema<["noinput", "optional"], undefined>;
|
|
4
|
-
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
-
readonly md: v.StringSchema<undefined>;
|
|
14
|
-
}, undefined>, undefined>;
|
|
15
|
-
} & {
|
|
16
|
-
readonly component: v.LiteralSchema<"link", undefined>;
|
|
17
|
-
}, undefined>, v.ObjectSchema<{
|
|
18
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
20
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
21
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
23
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
26
|
-
readonly md: v.StringSchema<undefined>;
|
|
27
|
-
}, undefined>, undefined>;
|
|
28
|
-
} & {
|
|
29
|
-
readonly component: v.LiteralSchema<"link", undefined>;
|
|
30
|
-
}, undefined>, v.ObjectSchema<{
|
|
31
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
33
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
34
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
36
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
39
|
-
readonly md: v.StringSchema<undefined>;
|
|
40
|
-
}, undefined>, undefined>;
|
|
41
|
-
} & {
|
|
42
|
-
readonly component: v.LiteralSchema<"link", undefined>;
|
|
43
|
-
}, undefined>>>]>;
|
|
44
|
-
readonly attribute: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
45
|
-
readonly datatype: v.NullishSchema<v.LiteralSchema<"link", undefined>, undefined>;
|
|
46
|
-
}, undefined>;
|
|
47
|
-
export type LinkType = v.InferOutput<typeof LinkSchema>;
|
|
48
|
-
export type LinkSchemaType = v.GenericSchema<LinkType>;
|
|
49
|
-
declare const _default: LinkSchemaType;
|
|
50
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { literal, nullish, picklist, strictObject, string } from "valibot";
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
3
|
-
const LinkDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
-
component: literal('link')
|
|
5
|
-
}));
|
|
6
|
-
const LinkSchema = strictObject({
|
|
7
|
-
'user-input-mode': picklist([
|
|
8
|
-
'noinput',
|
|
9
|
-
'optional'
|
|
10
|
-
]),
|
|
11
|
-
display: LinkDisplaySchema,
|
|
12
|
-
attribute: nullish(string()),
|
|
13
|
-
datatype: nullish(literal('link'))
|
|
14
|
-
});
|
|
15
|
-
const field_link = LinkSchema;
|
|
16
|
-
export { field_link as default };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
declare const PhoneSchema: v.StrictObjectSchema<{
|
|
3
|
-
readonly 'user-input-mode': v.PicklistSchema<["noinput", "required"], undefined>;
|
|
4
|
-
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
-
readonly md: v.StringSchema<undefined>;
|
|
14
|
-
}, undefined>, undefined>;
|
|
15
|
-
} & {
|
|
16
|
-
readonly component: v.LiteralSchema<"phone", undefined>;
|
|
17
|
-
}, undefined>, v.ObjectSchema<{
|
|
18
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
20
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
21
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
23
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
26
|
-
readonly md: v.StringSchema<undefined>;
|
|
27
|
-
}, undefined>, undefined>;
|
|
28
|
-
} & {
|
|
29
|
-
readonly component: v.LiteralSchema<"phone", undefined>;
|
|
30
|
-
}, undefined>, v.ObjectSchema<{
|
|
31
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
33
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
34
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
36
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
39
|
-
readonly md: v.StringSchema<undefined>;
|
|
40
|
-
}, undefined>, undefined>;
|
|
41
|
-
} & {
|
|
42
|
-
readonly component: v.LiteralSchema<"phone", undefined>;
|
|
43
|
-
}, undefined>>>]>;
|
|
44
|
-
}, undefined>;
|
|
45
|
-
export type PhoneType = v.InferOutput<typeof PhoneSchema>;
|
|
46
|
-
export type PhoneSchemaType = v.GenericSchema<PhoneType>;
|
|
47
|
-
declare const _default: PhoneSchemaType;
|
|
48
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { literal, picklist, strictObject } from "valibot";
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
3
|
-
const PhoneDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
-
component: literal('phone')
|
|
5
|
-
}));
|
|
6
|
-
const PhoneSchema = strictObject({
|
|
7
|
-
'user-input-mode': picklist([
|
|
8
|
-
'noinput',
|
|
9
|
-
'required'
|
|
10
|
-
]),
|
|
11
|
-
display: PhoneDisplaySchema
|
|
12
|
-
});
|
|
13
|
-
const phone = PhoneSchema;
|
|
14
|
-
export { phone as default };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
declare const UrlParamSchema: v.StrictObjectSchema<{
|
|
3
|
-
readonly 'user-input-mode': v.LiteralSchema<"optional", undefined>;
|
|
4
|
-
readonly display: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, v.RawCheckAction<import("../common.js").DisplayType<v.ObjectSchema<{
|
|
5
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
13
|
-
readonly md: v.StringSchema<undefined>;
|
|
14
|
-
}, undefined>, undefined>;
|
|
15
|
-
} & {
|
|
16
|
-
readonly component: v.LiteralSchema<"url-param", undefined>;
|
|
17
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
18
|
-
readonly 'param-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
-
}, undefined>, undefined>;
|
|
20
|
-
}, undefined>, v.ObjectSchema<{
|
|
21
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
23
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
24
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
29
|
-
readonly md: v.StringSchema<undefined>;
|
|
30
|
-
}, undefined>, undefined>;
|
|
31
|
-
} & {
|
|
32
|
-
readonly component: v.LiteralSchema<"url-param", undefined>;
|
|
33
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
34
|
-
readonly 'param-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
-
}, undefined>, undefined>;
|
|
36
|
-
}, undefined>, v.ObjectSchema<{
|
|
37
|
-
readonly title: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly title_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
39
|
-
readonly value_md: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
40
|
-
readonly hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
-
readonly hint_md: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
-
readonly template_hint: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
-
readonly example: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
-
readonly layout: v.NullishSchema<v.StrictObjectSchema<{
|
|
45
|
-
readonly md: v.StringSchema<undefined>;
|
|
46
|
-
}, undefined>, undefined>;
|
|
47
|
-
} & {
|
|
48
|
-
readonly component: v.LiteralSchema<"url-param", undefined>;
|
|
49
|
-
readonly 'component-params': v.NullishSchema<v.StrictObjectSchema<{
|
|
50
|
-
readonly 'param-name': v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
-
}, undefined>, undefined>;
|
|
52
|
-
}, undefined>>>]>;
|
|
53
|
-
}, undefined>;
|
|
54
|
-
export type UrlParamType = v.InferOutput<typeof UrlParamSchema>;
|
|
55
|
-
export type UrlParamSchemaType = v.GenericSchema<UrlParamType>;
|
|
56
|
-
declare const _default: UrlParamSchemaType;
|
|
57
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { literal, nullish, strictObject, string } from "valibot";
|
|
2
|
-
import { createFieldDisplay } from "../common.js";
|
|
3
|
-
const UrlParamDisplaySchema = createFieldDisplay(strictObject({
|
|
4
|
-
component: literal('url-param'),
|
|
5
|
-
'component-params': nullish(strictObject({
|
|
6
|
-
'param-name': nullish(string())
|
|
7
|
-
}))
|
|
8
|
-
}));
|
|
9
|
-
const UrlParamSchema = strictObject({
|
|
10
|
-
'user-input-mode': literal('optional'),
|
|
11
|
-
display: UrlParamDisplaySchema
|
|
12
|
-
});
|
|
13
|
-
const url_param = UrlParamSchema;
|
|
14
|
-
export { url_param as default };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { StepsSpecSchemaType } from '../step.js';
|
|
3
|
-
/**
|
|
4
|
-
* Describes a template
|
|
5
|
-
*
|
|
6
|
-
* A template is a set of steps that the user must complete in order to complete a process
|
|
7
|
-
* in the system, whether that is the issuance of a document or the entry of a request.
|
|
8
|
-
*/
|
|
9
|
-
export declare const TemplateBaseSchema: v.StrictObjectSchema<{
|
|
10
|
-
/**
|
|
11
|
-
* Template's creation date
|
|
12
|
-
*/
|
|
13
|
-
readonly created_at: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
-
/** Brief summary of template */
|
|
15
|
-
readonly description: v.StringSchema<undefined>;
|
|
16
|
-
readonly id: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
17
|
-
/**
|
|
18
|
-
* Defines the fields that are used to index documents
|
|
19
|
-
*
|
|
20
|
-
* A list of fields of the document, that are used to index multiple documents upon their
|
|
21
|
-
* presentation to the user's gate interface.
|
|
22
|
-
*/
|
|
23
|
-
readonly index_by_fields: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
-
/**
|
|
25
|
-
* Whether the template is officially published or not.
|
|
26
|
-
*
|
|
27
|
-
* If true then template is officially published and functional.
|
|
28
|
-
* Otherwise it is considered a draft and the documents it produces are not valid.
|
|
29
|
-
* @default true
|
|
30
|
-
*/
|
|
31
|
-
readonly is_official: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
32
|
-
/**
|
|
33
|
-
* Codename of the gate that owns the template
|
|
34
|
-
*
|
|
35
|
-
* An entity's gate can be the owner of a template. If not specified, the template is considered
|
|
36
|
-
* to be owned by the "System".
|
|
37
|
-
*/
|
|
38
|
-
readonly owner: v.StringSchema<undefined>;
|
|
39
|
-
/** The template's unique identifier */
|
|
40
|
-
readonly refname: v.StringSchema<undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* List of templates with which replies to the document can be issued.
|
|
43
|
-
*/
|
|
44
|
-
readonly reply_templates: v.NullishSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
45
|
-
/** Brief title of template */
|
|
46
|
-
readonly shortname: v.StringSchema<undefined>;
|
|
47
|
-
/**
|
|
48
|
-
* Specification of the steps of the template.
|
|
49
|
-
*/
|
|
50
|
-
readonly steps_spec: v.NullishSchema<StepsSpecSchemaType, undefined>;
|
|
51
|
-
}, undefined>;
|
|
52
|
-
export type TemplateBase = v.InferOutput<typeof TemplateBaseSchema>;
|
|
53
|
-
export default TemplateBase;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { array, boolean as external_valibot_boolean, nullish, number, strictObject, string } from "valibot";
|
|
2
|
-
import { StepsSpecSchema } from "../step.js";
|
|
3
|
-
const TemplateBaseSchema = strictObject({
|
|
4
|
-
created_at: nullish(string()),
|
|
5
|
-
description: string(),
|
|
6
|
-
id: nullish(number()),
|
|
7
|
-
index_by_fields: nullish(string()),
|
|
8
|
-
is_official: nullish(external_valibot_boolean()),
|
|
9
|
-
owner: string(),
|
|
10
|
-
refname: string(),
|
|
11
|
-
reply_templates: nullish(array(string())),
|
|
12
|
-
shortname: string(),
|
|
13
|
-
steps_spec: nullish(StepsSpecSchema)
|
|
14
|
-
});
|
|
15
|
-
export { TemplateBaseSchema };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
/**
|
|
3
|
-
* Template model used in the backend.
|
|
4
|
-
*
|
|
5
|
-
* This describes the template as it is stored in the database. Some of the fields present in the
|
|
6
|
-
* backend model are not used in the frontend type.
|
|
7
|
-
*
|
|
8
|
-
* @see {@link TemplateBase} for the definition of a template.
|
|
9
|
-
*/
|
|
10
|
-
export declare const TemplateSourceSchema: v.StrictObjectSchema<{
|
|
11
|
-
/**
|
|
12
|
-
* Action to execute when the document is issued.
|
|
13
|
-
*/
|
|
14
|
-
readonly action_on_issue: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
-
readonly case_prefixes: v.NullishSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
16
|
-
/**
|
|
17
|
-
* Claims that are not checked for in the user's session
|
|
18
|
-
*/
|
|
19
|
-
readonly exempted_claims: v.NullishSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
20
|
-
/**
|
|
21
|
-
* Extra claims to check for in the user's session.
|
|
22
|
-
*
|
|
23
|
-
* When creating a new declaration that includes the template, the application checks
|
|
24
|
-
* that the session contains all the claims specified in this field.
|
|
25
|
-
*/
|
|
26
|
-
readonly extra_required_claims: v.NullishSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
-
readonly posting_whitelist: v.NullishSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
28
|
-
/**
|
|
29
|
-
* Whether a case number is assigned on instantiation of the template.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
readonly requires_case: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
33
|
-
readonly validation_context: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
-
/**
|
|
35
|
-
* Defines the access policy of th document in the validation phase
|
|
36
|
-
*/
|
|
37
|
-
readonly validation_policy: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly created_at: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
39
|
-
readonly description: v.StringSchema<undefined>;
|
|
40
|
-
readonly id: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
41
|
-
readonly index_by_fields: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
-
readonly is_official: v.NullishSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
-
readonly owner: v.StringSchema<undefined>;
|
|
44
|
-
readonly refname: v.StringSchema<undefined>;
|
|
45
|
-
readonly reply_templates: v.NullishSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
46
|
-
readonly shortname: v.StringSchema<undefined>;
|
|
47
|
-
readonly steps_spec: v.NullishSchema<import("../index.js").StepsSpecSchemaType, undefined>;
|
|
48
|
-
}, undefined>;
|
|
49
|
-
export type TemplateSource = v.InferOutput<typeof TemplateSourceSchema>;
|
|
50
|
-
export default TemplateSource;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { array, boolean as external_valibot_boolean, nullish, strictObject, string } from "valibot";
|
|
2
|
-
import { TemplateBaseSchema } from "./template-base.js";
|
|
3
|
-
const TemplateSourceSchema = strictObject({
|
|
4
|
-
...TemplateBaseSchema.entries,
|
|
5
|
-
action_on_issue: nullish(string()),
|
|
6
|
-
case_prefixes: nullish(array(string())),
|
|
7
|
-
exempted_claims: nullish(array(string())),
|
|
8
|
-
extra_required_claims: nullish(array(string())),
|
|
9
|
-
posting_whitelist: nullish(array(string())),
|
|
10
|
-
requires_case: nullish(external_valibot_boolean()),
|
|
11
|
-
validation_context: nullish(string()),
|
|
12
|
-
validation_policy: nullish(string())
|
|
13
|
-
});
|
|
14
|
-
export { TemplateSourceSchema };
|