@frogbotai/piece-pagerduty 0.27.0 → 0.29.0
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.
- package/dist/actions.d.ts +139 -160
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +16 -15
- package/dist/actions.js.map +1 -1
- package/dist/define.d.ts +180 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +3 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +445 -204
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers.d.ts +314 -58
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js +3 -2
- package/dist/triggers.js.map +1 -1
- package/package.json +3 -3
package/dist/actions.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { type PieceRunArgs } from 'frogbot/pieces';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
declare const createIncidentInput: z.ZodObject<{
|
|
2
|
+
export declare const createIncident: import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
5
3
|
fromEmail: z.ZodEmail;
|
|
6
4
|
serviceId: z.ZodString;
|
|
7
5
|
title: z.ZodString;
|
|
@@ -15,45 +13,29 @@ declare const createIncidentInput: z.ZodObject<{
|
|
|
15
13
|
priorityId: z.ZodOptional<z.ZodString>;
|
|
16
14
|
conferenceNumber: z.ZodOptional<z.ZodString>;
|
|
17
15
|
conferenceUrl: z.ZodOptional<z.ZodURL>;
|
|
18
|
-
}, z.core.$strip
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
status: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$loose>;
|
|
41
|
-
idempotent: false;
|
|
42
|
-
options: {
|
|
43
|
-
serviceId: ({ client }: {
|
|
44
|
-
client: PagerdutyClient;
|
|
45
|
-
}) => Promise<{
|
|
46
|
-
label: string;
|
|
47
|
-
value: string;
|
|
48
|
-
}[]>;
|
|
49
|
-
};
|
|
50
|
-
run({ input, client, }: PieceRunArgs<z.output<typeof createIncidentInput>, object, PagerdutyClient>): Promise<{
|
|
51
|
-
[x: string]: unknown;
|
|
52
|
-
id: string;
|
|
53
|
-
status?: string | undefined;
|
|
54
|
-
}>;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
status: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$loose>, {
|
|
20
|
+
signingSecret?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
request: ({ method, path, query, body, fromEmail, }: {
|
|
23
|
+
method: string;
|
|
24
|
+
path: string;
|
|
25
|
+
query?: {
|
|
26
|
+
[x: string]: string | string[] | undefined;
|
|
27
|
+
};
|
|
28
|
+
body?: unknown;
|
|
29
|
+
fromEmail?: string;
|
|
30
|
+
}) => Promise<unknown>;
|
|
31
|
+
}, {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
id: string;
|
|
34
|
+
status?: string | undefined;
|
|
35
|
+
}> & {
|
|
36
|
+
slug: "createIncident";
|
|
55
37
|
};
|
|
56
|
-
declare const
|
|
38
|
+
export declare const listIncidents: import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
57
39
|
statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
58
40
|
triggered: "triggered";
|
|
59
41
|
acknowledged: "acknowledged";
|
|
@@ -67,114 +49,116 @@ declare const listIncidentsInput: z.ZodObject<{
|
|
|
67
49
|
until: z.ZodOptional<z.ZodString>;
|
|
68
50
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
69
51
|
offset: z.ZodDefault<z.ZodNumber>;
|
|
70
|
-
}, z.core.$strip
|
|
71
|
-
|
|
72
|
-
slug: string;
|
|
73
|
-
description: string;
|
|
74
|
-
input: z.ZodObject<{
|
|
75
|
-
statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
76
|
-
triggered: "triggered";
|
|
77
|
-
acknowledged: "acknowledged";
|
|
78
|
-
resolved: "resolved";
|
|
79
|
-
}>>>;
|
|
80
|
-
urgency: z.ZodOptional<z.ZodEnum<{
|
|
81
|
-
high: "high";
|
|
82
|
-
low: "low";
|
|
83
|
-
}>>;
|
|
84
|
-
since: z.ZodOptional<z.ZodString>;
|
|
85
|
-
until: z.ZodOptional<z.ZodString>;
|
|
86
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
87
|
-
offset: z.ZodDefault<z.ZodNumber>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
output: z.ZodObject<{
|
|
90
|
-
incidents: z.ZodArray<z.ZodObject<{
|
|
91
|
-
id: z.ZodString;
|
|
92
|
-
status: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, z.core.$loose>>;
|
|
94
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
95
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
}, z.core.$loose>;
|
|
98
|
-
idempotent: true;
|
|
99
|
-
run({ input, client, }: PieceRunArgs<z.output<typeof listIncidentsInput>, object, PagerdutyClient>): Promise<{
|
|
100
|
-
[x: string]: unknown;
|
|
101
|
-
incidents: {
|
|
102
|
-
[x: string]: unknown;
|
|
103
|
-
id: string;
|
|
104
|
-
status?: string | undefined;
|
|
105
|
-
}[];
|
|
106
|
-
limit?: number | undefined;
|
|
107
|
-
offset?: number | undefined;
|
|
108
|
-
more?: boolean | undefined;
|
|
109
|
-
}>;
|
|
110
|
-
};
|
|
111
|
-
declare const getIncidentInput: z.ZodObject<{
|
|
112
|
-
incidentId: z.ZodString;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
export declare const getIncident: {
|
|
115
|
-
slug: string;
|
|
116
|
-
description: string;
|
|
117
|
-
input: z.ZodObject<{
|
|
118
|
-
incidentId: z.ZodString;
|
|
119
|
-
}, z.core.$strip>;
|
|
120
|
-
output: z.ZodObject<{
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
incidents: z.ZodArray<z.ZodObject<{
|
|
121
54
|
id: z.ZodString;
|
|
122
55
|
status: z.ZodOptional<z.ZodString>;
|
|
123
|
-
}, z.core.$loose
|
|
124
|
-
|
|
125
|
-
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
more: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
}, z.core.$loose>, {
|
|
61
|
+
signingSecret?: string | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
request: ({ method, path, query, body, fromEmail, }: {
|
|
64
|
+
method: string;
|
|
65
|
+
path: string;
|
|
66
|
+
query?: {
|
|
67
|
+
[x: string]: string | string[] | undefined;
|
|
68
|
+
};
|
|
69
|
+
body?: unknown;
|
|
70
|
+
fromEmail?: string;
|
|
71
|
+
}) => Promise<unknown>;
|
|
72
|
+
}, {
|
|
73
|
+
[x: string]: unknown;
|
|
74
|
+
incidents: {
|
|
126
75
|
[x: string]: unknown;
|
|
127
76
|
id: string;
|
|
128
77
|
status?: string | undefined;
|
|
129
|
-
}
|
|
78
|
+
}[];
|
|
79
|
+
limit?: number | undefined;
|
|
80
|
+
offset?: number | undefined;
|
|
81
|
+
more?: boolean | undefined;
|
|
82
|
+
}> & {
|
|
83
|
+
slug: "listIncidents";
|
|
130
84
|
};
|
|
131
|
-
export declare const
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
85
|
+
export declare const getIncident: import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
86
|
+
incidentId: z.ZodString;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
status: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$loose>, {
|
|
91
|
+
signingSecret?: string | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
request: ({ method, path, query, body, fromEmail, }: {
|
|
94
|
+
method: string;
|
|
95
|
+
path: string;
|
|
96
|
+
query?: {
|
|
97
|
+
[x: string]: string | string[] | undefined;
|
|
98
|
+
};
|
|
99
|
+
body?: unknown;
|
|
100
|
+
fromEmail?: string;
|
|
101
|
+
}) => Promise<unknown>;
|
|
102
|
+
}, {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
id: string;
|
|
105
|
+
status?: string | undefined;
|
|
106
|
+
}> & {
|
|
107
|
+
slug: "getIncident";
|
|
153
108
|
};
|
|
154
|
-
export declare const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
109
|
+
export declare const acknowledgeIncident: import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
110
|
+
resolution?: z.ZodOptional<z.ZodString> | undefined;
|
|
111
|
+
incidentId: z.ZodString;
|
|
112
|
+
fromEmail: z.ZodEmail;
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
status: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$loose>, {
|
|
117
|
+
signingSecret?: string | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
request: ({ method, path, query, body, fromEmail, }: {
|
|
120
|
+
method: string;
|
|
121
|
+
path: string;
|
|
122
|
+
query?: {
|
|
123
|
+
[x: string]: string | string[] | undefined;
|
|
124
|
+
};
|
|
125
|
+
body?: unknown;
|
|
126
|
+
fromEmail?: string;
|
|
127
|
+
}) => Promise<unknown>;
|
|
128
|
+
}, {
|
|
129
|
+
[x: string]: unknown;
|
|
130
|
+
id: string;
|
|
131
|
+
status?: string | undefined;
|
|
132
|
+
}> & {
|
|
133
|
+
slug: "acknowledgeIncident";
|
|
134
|
+
};
|
|
135
|
+
export declare const resolveIncident: import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
136
|
+
resolution?: z.ZodOptional<z.ZodString> | undefined;
|
|
137
|
+
incidentId: z.ZodString;
|
|
138
|
+
fromEmail: z.ZodEmail;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
status: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, z.core.$loose>, {
|
|
143
|
+
signingSecret?: string | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
request: ({ method, path, query, body, fromEmail, }: {
|
|
146
|
+
method: string;
|
|
147
|
+
path: string;
|
|
148
|
+
query?: {
|
|
149
|
+
[x: string]: string | string[] | undefined;
|
|
150
|
+
};
|
|
151
|
+
body?: unknown;
|
|
152
|
+
fromEmail?: string;
|
|
153
|
+
}) => Promise<unknown>;
|
|
154
|
+
}, {
|
|
155
|
+
[x: string]: unknown;
|
|
156
|
+
id: string;
|
|
157
|
+
status?: string | undefined;
|
|
158
|
+
}> & {
|
|
159
|
+
slug: "resolveIncident";
|
|
176
160
|
};
|
|
177
|
-
declare const
|
|
161
|
+
export declare const customApiCall: import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
178
162
|
method: z.ZodEnum<{
|
|
179
163
|
GET: "GET";
|
|
180
164
|
POST: "POST";
|
|
@@ -185,24 +169,19 @@ declare const customApiCallInput: z.ZodObject<{
|
|
|
185
169
|
path: z.ZodString;
|
|
186
170
|
queryParams: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
187
171
|
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
188
|
-
}, z.core.$strip
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
203
|
-
}, z.core.$strip>;
|
|
204
|
-
output: z.ZodJSONSchema;
|
|
205
|
-
run({ input, client, }: PieceRunArgs<z.output<typeof customApiCallInput>, object, PagerdutyClient>): Promise<z.core.util.JSONType>;
|
|
172
|
+
}, z.core.$strip>, z.ZodJSONSchema, {
|
|
173
|
+
signingSecret?: string | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
request: ({ method, path, query, body, fromEmail, }: {
|
|
176
|
+
method: string;
|
|
177
|
+
path: string;
|
|
178
|
+
query?: {
|
|
179
|
+
[x: string]: string | string[] | undefined;
|
|
180
|
+
};
|
|
181
|
+
body?: unknown;
|
|
182
|
+
fromEmail?: string;
|
|
183
|
+
}) => Promise<unknown>;
|
|
184
|
+
}, z.core.util.JSONType> & {
|
|
185
|
+
slug: "customApiCall";
|
|
206
186
|
};
|
|
207
|
-
export {};
|
|
208
187
|
//# sourceMappingURL=actions.d.ts.map
|
package/dist/actions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;aAfM,CAAC;;;YAAiB,CAAC;iBAE9C,CAAC;;;;;;;;CA4EL,CAAC;AAmBH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAjGO,CAAC;;;YAAiB,CAAC;iBAE9C,CAAC;;;;;;;;;;;;;;CAqHL,CAAC;AA0CH,eAAO,MAAM,WAAW;;;;;;;;;;;aAjKS,CAAC;;;YAAiB,CAAC;iBAE9C,CAAC;;;;;;;;CA+KL,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;aAnLC,CAAC;;;YAAiB,CAAC;iBAE9C,CAAC;;;;;;;;CAiLiF,CAAC;AACzF,eAAO,MAAM,eAAe;;;;;;;;;;;;;aApLK,CAAC;;;YAAiB,CAAC;iBAE9C,CAAC;;;;;;;;CAkLqE,CAAC;AAU7E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;aA9LO,CAAC;;;YAAiB,CAAC;iBAE9C,CAAC;;;;CA2ML,CAAC"}
|
package/dist/actions.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { defineAction } from './define.js';
|
|
2
3
|
const incident = z.object({ id: z.string(), status: z.string().optional() }).passthrough();
|
|
3
4
|
const incidentOutput = incident;
|
|
4
5
|
const incidentResponse = z.object({ incident: incidentOutput });
|
|
@@ -20,7 +21,7 @@ const createIncidentInput = z.object({
|
|
|
20
21
|
conferenceNumber: z.string().optional(),
|
|
21
22
|
conferenceUrl: z.url().optional(),
|
|
22
23
|
});
|
|
23
|
-
export const createIncident = {
|
|
24
|
+
export const createIncident = defineAction({
|
|
24
25
|
slug: 'createIncident',
|
|
25
26
|
description: 'Create a PagerDuty incident.',
|
|
26
27
|
input: createIncidentInput,
|
|
@@ -44,7 +45,7 @@ export const createIncident = {
|
|
|
44
45
|
return services.map(({ id, name }) => ({ label: name, value: id }));
|
|
45
46
|
},
|
|
46
47
|
},
|
|
47
|
-
async run({ input, client
|
|
48
|
+
async run({ input, client }) {
|
|
48
49
|
const payload = {
|
|
49
50
|
type: 'incident',
|
|
50
51
|
title: input.title,
|
|
@@ -76,7 +77,7 @@ export const createIncident = {
|
|
|
76
77
|
}));
|
|
77
78
|
return response.incident;
|
|
78
79
|
},
|
|
79
|
-
};
|
|
80
|
+
});
|
|
80
81
|
const listIncidentsInput = z.object({
|
|
81
82
|
statuses: z.array(z.enum(['triggered', 'acknowledged', 'resolved'])).optional(),
|
|
82
83
|
urgency: z.enum(['high', 'low']).optional(),
|
|
@@ -93,13 +94,13 @@ const listIncidentsOutput = z
|
|
|
93
94
|
more: z.boolean().optional(),
|
|
94
95
|
})
|
|
95
96
|
.passthrough();
|
|
96
|
-
export const listIncidents = {
|
|
97
|
+
export const listIncidents = defineAction({
|
|
97
98
|
slug: 'listIncidents',
|
|
98
99
|
description: 'List PagerDuty incidents with optional filters and pagination.',
|
|
99
100
|
input: listIncidentsInput,
|
|
100
101
|
output: listIncidentsOutput,
|
|
101
102
|
idempotent: true,
|
|
102
|
-
async run({ input, client
|
|
103
|
+
async run({ input, client }) {
|
|
103
104
|
const response = await client.request({
|
|
104
105
|
method: 'GET',
|
|
105
106
|
path: '/incidents',
|
|
@@ -114,20 +115,20 @@ export const listIncidents = {
|
|
|
114
115
|
});
|
|
115
116
|
return listIncidentsOutput.parse(response);
|
|
116
117
|
},
|
|
117
|
-
};
|
|
118
|
+
});
|
|
118
119
|
function updateIncident(slug, status) {
|
|
119
120
|
const input = z.object({
|
|
120
121
|
incidentId,
|
|
121
122
|
fromEmail,
|
|
122
123
|
...(status === 'resolved' ? { resolution: z.string().optional() } : {}),
|
|
123
124
|
});
|
|
124
|
-
return {
|
|
125
|
+
return defineAction({
|
|
125
126
|
slug,
|
|
126
127
|
description: `${status === 'resolved' ? 'Resolve' : 'Acknowledge'} a PagerDuty incident.`,
|
|
127
128
|
input,
|
|
128
129
|
output: incidentOutput,
|
|
129
130
|
idempotent: true,
|
|
130
|
-
async run({ input: values, client
|
|
131
|
+
async run({ input: values, client }) {
|
|
131
132
|
const resolution = 'resolution' in values ? values.resolution : undefined;
|
|
132
133
|
const response = incidentResponse.parse(await client.request({
|
|
133
134
|
method: 'PUT',
|
|
@@ -143,23 +144,23 @@ function updateIncident(slug, status) {
|
|
|
143
144
|
}));
|
|
144
145
|
return response.incident;
|
|
145
146
|
},
|
|
146
|
-
};
|
|
147
|
+
});
|
|
147
148
|
}
|
|
148
149
|
const getIncidentInput = z.object({ incidentId });
|
|
149
|
-
export const getIncident = {
|
|
150
|
+
export const getIncident = defineAction({
|
|
150
151
|
slug: 'getIncident',
|
|
151
152
|
description: 'Get a PagerDuty incident by ID.',
|
|
152
153
|
input: getIncidentInput,
|
|
153
154
|
output: incidentOutput,
|
|
154
155
|
idempotent: true,
|
|
155
|
-
async run({ input, client
|
|
156
|
+
async run({ input, client }) {
|
|
156
157
|
const response = incidentResponse.parse(await client.request({
|
|
157
158
|
method: 'GET',
|
|
158
159
|
path: `/incidents/${encodeURIComponent(input.incidentId)}`,
|
|
159
160
|
}));
|
|
160
161
|
return response.incident;
|
|
161
162
|
},
|
|
162
|
-
};
|
|
163
|
+
});
|
|
163
164
|
export const acknowledgeIncident = updateIncident('acknowledgeIncident', 'acknowledged');
|
|
164
165
|
export const resolveIncident = updateIncident('resolveIncident', 'resolved');
|
|
165
166
|
const customApiCallInput = z.object({
|
|
@@ -169,12 +170,12 @@ const customApiCallInput = z.object({
|
|
|
169
170
|
body: z.json().optional(),
|
|
170
171
|
});
|
|
171
172
|
const customApiCallOutput = z.json();
|
|
172
|
-
export const customApiCall = {
|
|
173
|
+
export const customApiCall = defineAction({
|
|
173
174
|
slug: 'customApiCall',
|
|
174
175
|
description: 'Make a custom PagerDuty REST API v2 call.',
|
|
175
176
|
input: customApiCallInput,
|
|
176
177
|
output: customApiCallOutput,
|
|
177
|
-
async run({ input, client
|
|
178
|
+
async run({ input, client }) {
|
|
178
179
|
const response = await client.request({
|
|
179
180
|
method: input.method,
|
|
180
181
|
path: input.path,
|
|
@@ -183,5 +184,5 @@ export const customApiCall = {
|
|
|
183
184
|
});
|
|
184
185
|
return customApiCallOutput.parse(response);
|
|
185
186
|
},
|
|
186
|
-
};
|
|
187
|
+
});
|
|
187
188
|
//# sourceMappingURL=actions.js.map
|
package/dist/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAC3F,MAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;AAChE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACjE,IAAI,EAAE,CAAC,CAAC,OAA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