@beseif-solutions/prow-core 0.0.37 → 0.0.38
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.
|
@@ -13,6 +13,7 @@ type Common = {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
required?: boolean;
|
|
15
15
|
as_password?: boolean;
|
|
16
|
+
show_label?: boolean;
|
|
16
17
|
} & ({
|
|
17
18
|
as_array?: false;
|
|
18
19
|
} | {
|
|
@@ -38,7 +39,6 @@ type StringInputField<Extend = Record<never, never>> = {
|
|
|
38
39
|
max?: number;
|
|
39
40
|
regexp?: string;
|
|
40
41
|
pattern?: `email` | `uri`;
|
|
41
|
-
escape?: boolean;
|
|
42
42
|
} & (SelectField<string, Extend> | TextareaField | RichTextField | {});
|
|
43
43
|
type NumberInputField<Extend = Record<never, never>> = {
|
|
44
44
|
type: `number`;
|
|
@@ -20,6 +20,7 @@ const commonFieldSchema = () => joi_1.default.object({
|
|
|
20
20
|
disabled: joi_1.default.bool(),
|
|
21
21
|
required: joi_1.default.bool(),
|
|
22
22
|
as_password: joi_1.default.bool(),
|
|
23
|
+
show_label: joi_1.default.bool().default(true),
|
|
23
24
|
as_array: joi_1.default.bool(),
|
|
24
25
|
array_min: joi_1.default.when(`as_array`, {
|
|
25
26
|
is: true,
|
|
@@ -55,8 +56,7 @@ const defaultSchema = (type) => joi_1.default.when(`as_array`, {
|
|
|
55
56
|
then: joi_1.default.array().items(type),
|
|
56
57
|
otherwise: type,
|
|
57
58
|
});
|
|
58
|
-
const anySchema = () => joi_1.default.alternatives(joi_1.default.string(), joi_1.default.bool(), joi_1.default.number(), joi_1.default.array().items(joi_1.default.link(
|
|
59
|
-
.id(`any`);
|
|
59
|
+
const anySchema = () => joi_1.default.alternatives(joi_1.default.string(), joi_1.default.bool(), joi_1.default.number(), joi_1.default.array().items(joi_1.default.link(`/`)), joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.link(`/`)));
|
|
60
60
|
const anyInputFieldSchema = () => joi_1.default.object({
|
|
61
61
|
default: defaultSchema(anySchema()),
|
|
62
62
|
})
|
package/package.json
CHANGED
package/src/entities/events.ts
CHANGED
|
@@ -76,7 +76,7 @@ export type ImmediateTrigger<Config extends EventConfig = {}> = CommonEvents<Con
|
|
|
76
76
|
}>,
|
|
77
77
|
challenge?: CoreFunction<{
|
|
78
78
|
credentials: Config[`credentials`],
|
|
79
|
-
inputs: { fields: Record<string, any>, link: string, setup?: any },
|
|
79
|
+
inputs: { fields: Record<string, any>, link: string, request: Request, setup?: any },
|
|
80
80
|
outputs: { done: boolean, response?: any },
|
|
81
81
|
}>,
|
|
82
82
|
handle: CoreFunction<{
|
|
@@ -18,6 +18,7 @@ type Common = {
|
|
|
18
18
|
disabled?: boolean,
|
|
19
19
|
required?: boolean,
|
|
20
20
|
as_password?: boolean,
|
|
21
|
+
show_label?: boolean,
|
|
21
22
|
} & ({
|
|
22
23
|
as_array?: false,
|
|
23
24
|
} | {
|
|
@@ -59,7 +60,6 @@ type StringInputField<Extend = Record<never, never>> = {
|
|
|
59
60
|
max?: number,
|
|
60
61
|
regexp?: string,
|
|
61
62
|
pattern?: `email` | `uri`,
|
|
62
|
-
escape?: boolean,
|
|
63
63
|
} & (
|
|
64
64
|
| SelectField<string, Extend>
|
|
65
65
|
| TextareaField
|
|
@@ -193,6 +193,7 @@ const commonFieldSchema = () =>
|
|
|
193
193
|
disabled: Joi.bool(),
|
|
194
194
|
required: Joi.bool(),
|
|
195
195
|
as_password: Joi.bool(),
|
|
196
|
+
show_label: Joi.bool().default(true),
|
|
196
197
|
as_array: Joi.bool(),
|
|
197
198
|
array_min: Joi.when(`as_array`, {
|
|
198
199
|
is: true,
|
|
@@ -247,9 +248,8 @@ const anySchema = () =>
|
|
|
247
248
|
Joi.string(),
|
|
248
249
|
Joi.bool(),
|
|
249
250
|
Joi.number(),
|
|
250
|
-
Joi.array().items(Joi.link(
|
|
251
|
-
Joi.object().pattern(Joi.string(), Joi.link(
|
|
252
|
-
.id(`any`);
|
|
251
|
+
Joi.array().items(Joi.link(`/`)),
|
|
252
|
+
Joi.object().pattern(Joi.string(), Joi.link(`/`)));
|
|
253
253
|
|
|
254
254
|
const anyInputFieldSchema = () =>
|
|
255
255
|
Joi.object({
|