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