@beseif-solutions/prow-core 0.2.6 → 0.2.8
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.
|
@@ -55,8 +55,8 @@ type CommonEvents<Config extends EventConfig = {
|
|
|
55
55
|
};
|
|
56
56
|
export type Request = {
|
|
57
57
|
method: string;
|
|
58
|
-
headers: Record<string,
|
|
59
|
-
query: Record<string,
|
|
58
|
+
headers: Record<string, any>;
|
|
59
|
+
query: Record<string, any>;
|
|
60
60
|
body: any;
|
|
61
61
|
};
|
|
62
62
|
export type ImmediateTrigger<Config extends SetupEventConfig = {
|
|
@@ -232,7 +232,6 @@ export type AsyncAction<Config extends SetupEventConfig = {
|
|
|
232
232
|
};
|
|
233
233
|
outputs: {
|
|
234
234
|
done: boolean;
|
|
235
|
-
setup?: Config[`setup`];
|
|
236
235
|
};
|
|
237
236
|
}>;
|
|
238
237
|
handle: CoreFunction<{
|
|
@@ -20,6 +20,8 @@ const invokeSchema = joi_1.default.object({
|
|
|
20
20
|
configuration: joi_1.default.object().required(),
|
|
21
21
|
}).required(),
|
|
22
22
|
context: joi_1.default.object({
|
|
23
|
+
organization: joi_1.default.string().required(),
|
|
24
|
+
workspace: joi_1.default.number().required(),
|
|
23
25
|
environment: joi_1.default.object().required(),
|
|
24
26
|
localization: joi_1.default.object({
|
|
25
27
|
locale: joi_1.default.string().required(),
|
package/package.json
CHANGED
package/src/entities/events.ts
CHANGED
|
@@ -64,8 +64,8 @@ type CommonEvents<Config extends EventConfig = { fields: Record<string, any> }>
|
|
|
64
64
|
|
|
65
65
|
export type Request = {
|
|
66
66
|
method: string,
|
|
67
|
-
headers: Record<string,
|
|
68
|
-
query: Record<string,
|
|
67
|
+
headers: Record<string, any>,
|
|
68
|
+
query: Record<string, any>,
|
|
69
69
|
body: any,
|
|
70
70
|
};
|
|
71
71
|
|
|
@@ -163,7 +163,7 @@ export type AsyncAction<Config extends SetupEventConfig = { fields: Record<strin
|
|
|
163
163
|
execute: CoreFunction<{
|
|
164
164
|
credentials: Config[`credentials`],
|
|
165
165
|
inputs: { fields: Config[`fields`], flags: Partial<Record<Config[`flags`][`inputs`][number], true>>, link: string, setup?: Config[`setup`] },
|
|
166
|
-
outputs: { done: boolean
|
|
166
|
+
outputs: { done: boolean },
|
|
167
167
|
}>,
|
|
168
168
|
handle: CoreFunction<{
|
|
169
169
|
credentials: Config[`credentials`],
|
|
@@ -17,6 +17,8 @@ const invokeSchema = Joi.object({
|
|
|
17
17
|
configuration: Joi.object().required(),
|
|
18
18
|
}).required(),
|
|
19
19
|
context: Joi.object({
|
|
20
|
+
organization: Joi.string().required(),
|
|
21
|
+
workspace: Joi.number().required(),
|
|
20
22
|
environment: Joi.object().required(),
|
|
21
23
|
localization: Joi.object({
|
|
22
24
|
locale: Joi.string().required(),
|