@beseif-solutions/prow-core 0.0.36 → 0.0.37-a
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.
|
@@ -76,6 +76,19 @@ export type ImmediateTrigger<Config extends EventConfig = {}> = CommonEvents<Con
|
|
|
76
76
|
done: boolean;
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
|
+
challenge?: CoreFunction<{
|
|
80
|
+
credentials: Config[`credentials`];
|
|
81
|
+
inputs: {
|
|
82
|
+
fields: Record<string, any>;
|
|
83
|
+
link: string;
|
|
84
|
+
request: Request;
|
|
85
|
+
setup?: any;
|
|
86
|
+
};
|
|
87
|
+
outputs: {
|
|
88
|
+
done: boolean;
|
|
89
|
+
response?: any;
|
|
90
|
+
};
|
|
91
|
+
}>;
|
|
79
92
|
handle: CoreFunction<{
|
|
80
93
|
credentials: Config[`credentials`];
|
|
81
94
|
inputs: {
|
package/dist/entities/events.js
CHANGED
|
@@ -68,9 +68,10 @@ const immediateTriggerSchema = () => joi_1.default.object({
|
|
|
68
68
|
functions: joi_1.default.object({
|
|
69
69
|
mount: joi_1.default.function(),
|
|
70
70
|
unmount: joi_1.default.function(),
|
|
71
|
-
|
|
71
|
+
challenge: joi_1.default.function(),
|
|
72
72
|
handle: joi_1.default.function().required(),
|
|
73
73
|
poll: joi_1.default.function(),
|
|
74
|
+
fire: joi_1.default.function(),
|
|
74
75
|
}).required(),
|
|
75
76
|
})
|
|
76
77
|
.concat((0, commons_1.commonSchema)())
|
package/package.json
CHANGED
package/src/entities/events.ts
CHANGED
|
@@ -74,6 +74,11 @@ export type ImmediateTrigger<Config extends EventConfig = {}> = CommonEvents<Con
|
|
|
74
74
|
inputs: { fields: Record<string, any>, link: string, setup?: any },
|
|
75
75
|
outputs: { done: boolean },
|
|
76
76
|
}>,
|
|
77
|
+
challenge?: CoreFunction<{
|
|
78
|
+
credentials: Config[`credentials`],
|
|
79
|
+
inputs: { fields: Record<string, any>, link: string, request: Request, setup?: any },
|
|
80
|
+
outputs: { done: boolean, response?: any },
|
|
81
|
+
}>,
|
|
77
82
|
handle: CoreFunction<{
|
|
78
83
|
credentials: Config[`credentials`],
|
|
79
84
|
inputs: { fields: Record<string, any>, request: Request, setup?: any },
|
|
@@ -201,9 +206,10 @@ export const immediateTriggerSchema = () =>
|
|
|
201
206
|
functions: Joi.object({
|
|
202
207
|
mount: Joi.function(),
|
|
203
208
|
unmount: Joi.function(),
|
|
204
|
-
|
|
209
|
+
challenge: Joi.function(),
|
|
205
210
|
handle: Joi.function().required(),
|
|
206
211
|
poll: Joi.function(),
|
|
212
|
+
fire: Joi.function(),
|
|
207
213
|
}).required(),
|
|
208
214
|
})
|
|
209
215
|
.concat(commonSchema())
|