@beseif-solutions/prow-core 0.0.19 → 0.0.20

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.
@@ -40,6 +40,7 @@ export type ImmediateTrigger<Config extends EventConfig = {}> = CommonEvents<Con
40
40
  };
41
41
  outputs: {
42
42
  done: boolean;
43
+ setup?: any;
43
44
  };
44
45
  }>;
45
46
  unmount?: CoreFunction<{
@@ -47,6 +48,7 @@ export type ImmediateTrigger<Config extends EventConfig = {}> = CommonEvents<Con
47
48
  inputs: {
48
49
  fields: Record<string, any>;
49
50
  link: string;
51
+ setup?: any;
50
52
  };
51
53
  outputs: {
52
54
  done: boolean;
@@ -57,6 +59,7 @@ export type ImmediateTrigger<Config extends EventConfig = {}> = CommonEvents<Con
57
59
  inputs: {
58
60
  fields: Record<string, any>;
59
61
  request: Request;
62
+ setup?: any;
60
63
  };
61
64
  outputs: {
62
65
  records: Config[`outputs`][];
@@ -68,6 +71,7 @@ export type ImmediateTrigger<Config extends EventConfig = {}> = CommonEvents<Con
68
71
  inputs: {
69
72
  fields: Record<string, any>;
70
73
  link: string;
74
+ setup?: any;
71
75
  };
72
76
  outputs: {
73
77
  done: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beseif-solutions/prow-core",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Zapdos core functionalities and classes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -43,21 +43,21 @@ export type ImmediateTrigger<Config extends EventConfig = {}> = CommonEvents<Con
43
43
  mount?: CoreFunction<{
44
44
  credentials: Config[`credentials`],
45
45
  inputs: { fields: Record<string, any>, link: string },
46
- outputs: { done: boolean },
46
+ outputs: { done: boolean, setup?: any },
47
47
  }>,
48
48
  unmount?: CoreFunction<{
49
49
  credentials: Config[`credentials`],
50
- inputs: { fields: Record<string, any>, link: string },
50
+ inputs: { fields: Record<string, any>, link: string, setup?: any },
51
51
  outputs: { done: boolean },
52
52
  }>,
53
53
  handle: CoreFunction<{
54
54
  credentials: Config[`credentials`],
55
- inputs: { fields: Record<string, any>, request: Request },
55
+ inputs: { fields: Record<string, any>, request: Request, setup?: any },
56
56
  outputs: { records: Config[`outputs`][], flags: Partial<Record<Config[`flags`][`outputs`][number], true>> },
57
57
  }>,
58
58
  fire?: CoreFunction<{
59
59
  credentials: Config[`credentials`],
60
- inputs: { fields: Record<string, any>, link: string },
60
+ inputs: { fields: Record<string, any>, link: string, setup?: any },
61
61
  outputs: { done: boolean },
62
62
  }>,
63
63
  poll?: CoreFunction<{