@beseif-solutions/prow-core 0.0.36 → 0.0.37

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,18 @@ 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
+ setup?: any;
85
+ };
86
+ outputs: {
87
+ done: boolean;
88
+ response?: any;
89
+ };
90
+ }>;
79
91
  handle: CoreFunction<{
80
92
  credentials: Config[`credentials`];
81
93
  inputs: {
@@ -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
- fire: joi_1.default.function(),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beseif-solutions/prow-core",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "Prow core functionalities and classes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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, 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
- fire: Joi.function(),
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())