@beseif-solutions/prow-core 0.3.3 → 0.3.5

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,7 +55,8 @@ export type Request = {
55
55
  method: string;
56
56
  headers: Record<string, any>;
57
57
  query: Record<string, any>;
58
- body: any;
58
+ body: Record<string, any>;
59
+ raw: string;
59
60
  };
60
61
  export type ImmediateTrigger<Config extends SetupEventConfig> = CommonEvents<Config> & {
61
62
  type: `trigger`;
@@ -124,7 +125,7 @@ export type ImmediateTrigger<Config extends SetupEventConfig> = CommonEvents<Con
124
125
  credentials: Config[`credentials`];
125
126
  inputs: {
126
127
  fields: Config[`fields`];
127
- last_schedule?: string;
128
+ last_schedule: string;
128
129
  limit?: number;
129
130
  };
130
131
  outputs: {
@@ -143,7 +144,7 @@ export type ScheduledTrigger<Config extends EventConfig> = CommonEvents<Config>
143
144
  credentials: Config[`credentials`];
144
145
  inputs: {
145
146
  fields: Config[`fields`];
146
- last_schedule?: string;
147
+ last_schedule: string;
147
148
  limit?: number;
148
149
  };
149
150
  outputs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beseif-solutions/prow-core",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Prow core functionalities and classes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -66,7 +66,8 @@ export type Request = {
66
66
  method: string,
67
67
  headers: Record<string, any>,
68
68
  query: Record<string, any>,
69
- body: any,
69
+ body: Record<string, any>,
70
+ raw: string,
70
71
  };
71
72
 
72
73
  export type ImmediateTrigger<Config extends SetupEventConfig> = CommonEvents<Config> & {
@@ -101,7 +102,7 @@ export type ImmediateTrigger<Config extends SetupEventConfig> = CommonEvents<Con
101
102
  }>,
102
103
  poll?: CoreFunction<{
103
104
  credentials: Config[`credentials`],
104
- inputs: { fields: Config[`fields`], last_schedule?: string, limit?: number },
105
+ inputs: { fields: Config[`fields`], last_schedule: string, limit?: number },
105
106
  outputs: { records: Config[`outputs`][], flags: Partial<Record<Config[`flags`][`outputs`][number], true>> },
106
107
  }>,
107
108
  },
@@ -114,7 +115,7 @@ export type ScheduledTrigger<Config extends EventConfig> = CommonEvents<Config>
114
115
  functions: {
115
116
  poll: CoreFunction<{
116
117
  credentials: Config[`credentials`],
117
- inputs: { fields: Config[`fields`], last_schedule?: string, limit?: number },
118
+ inputs: { fields: Config[`fields`], last_schedule: string, limit?: number },
118
119
  outputs: { records: Config[`outputs`][], flags: Partial<Record<Config[`flags`][`outputs`][number], true>> },
119
120
  }>,
120
121
  },