@frogbotai/piece-pagerduty 0.15.0 → 0.17.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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PieceFactoryConfig } from
|
|
1
|
+
import { type PieceFactoryConfig } from 'frogbot/pieces';
|
|
2
2
|
export declare const pagerdutyActions: readonly ["create_incident", "list_incidents", "get_incident", "acknowledge_incident", "resolve_incident"];
|
|
3
3
|
export declare const pagerdutyScopes: readonly [];
|
|
4
4
|
export declare function createPagerduty(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,gBAAgB,4GAMnB,CAAC;AACX,eAAO,MAAM,eAAe,aAAc,CAAC;AAE3C,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUvD,2EAA2E;;IAE3E,qFAAqF;;IAErF,yDAAyD;;IAEzD,wEAAwE;;IAExE,gEAAgE;;IAEhE,0OAA0O;;EAG7O"}
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import * as module from '@activepieces/piece-pagerduty';
|
|
2
|
-
import { createActivepiecesPiece } from
|
|
3
|
-
export const pagerdutyActions = [
|
|
2
|
+
import { createActivepiecesPiece } from 'frogbot/pieces';
|
|
3
|
+
export const pagerdutyActions = [
|
|
4
|
+
'create_incident',
|
|
5
|
+
'list_incidents',
|
|
6
|
+
'get_incident',
|
|
7
|
+
'acknowledge_incident',
|
|
8
|
+
'resolve_incident',
|
|
9
|
+
];
|
|
4
10
|
export const pagerdutyScopes = [];
|
|
5
11
|
export function createPagerduty(config) {
|
|
6
12
|
const piece = createActivepiecesPiece({
|
|
7
13
|
module: module,
|
|
8
|
-
service:
|
|
9
|
-
credentialType:
|
|
14
|
+
service: 'pagerduty',
|
|
15
|
+
credentialType: 'secret_text',
|
|
10
16
|
defaultActions: pagerdutyActions,
|
|
11
17
|
scopes: pagerdutyScopes,
|
|
12
18
|
config,
|
|
13
19
|
});
|
|
14
20
|
return Object.assign(piece, {
|
|
15
21
|
/** Create Incident: Create a new PagerDuty incident using the REST API. */
|
|
16
|
-
createIncident: piece.tool(
|
|
22
|
+
createIncident: piece.tool('create_incident'),
|
|
17
23
|
/** List Incidents: List PagerDuty incidents with optional filters and pagination. */
|
|
18
|
-
listIncidents: piece.tool(
|
|
24
|
+
listIncidents: piece.tool('list_incidents'),
|
|
19
25
|
/** Get Incident: Retrieve a PagerDuty incident by ID. */
|
|
20
|
-
getIncident: piece.tool(
|
|
26
|
+
getIncident: piece.tool('get_incident'),
|
|
21
27
|
/** Acknowledge Incident: Acknowledge an existing PagerDuty incident. */
|
|
22
|
-
acknowledgeIncident: piece.tool(
|
|
28
|
+
acknowledgeIncident: piece.tool('acknowledge_incident'),
|
|
23
29
|
/** Resolve Incident: Resolve an existing PagerDuty incident. */
|
|
24
|
-
resolveIncident: piece.tool(
|
|
30
|
+
resolveIncident: piece.tool('resolve_incident'),
|
|
25
31
|
/** Custom API Call: Make a custom API call to PagerDuty REST API v2. Authorization, Accept, and Content-Type headers are injected automatically. For write endpoints that require a From header, add it manually in the headers field. */
|
|
26
|
-
customApiCall: piece.tool(
|
|
32
|
+
customApiCall: piece.tool('custom_api_call'),
|
|
27
33
|
});
|
|
28
34
|
}
|
|
29
35
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,iBAAiB;IACjB,gBAAgB;IAChB,cAAc;IACd,sBAAsB;IACtB,kBAAkB;CACV,CAAC;AACX,MAAM,CAAC,MAAM,eAAe,GAAG,EAAW,CAAC;AAE3C,MAAM,UAAU,eAAe,CAAC,MAA2B;IACzD,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACpC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,WAAW;QACpB,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,gBAAgB;QAChC,MAAM,EAAE,eAAe;QACvB,MAAM;KACP,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;QAC1B,2EAA2E;QAC3E,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAC7C,qFAAqF;QACrF,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;QAC3C,yDAAyD;QACzD,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACvC,wEAAwE;QACxE,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC;QACvD,gEAAgE;QAChE,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC;QAC/C,0OAA0O;QAC1O,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-pagerduty",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "PagerDuty tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"@activepieces/piece-pagerduty": "0.1.3"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"frogbot": "0.
|
|
25
|
+
"frogbot": "0.17.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "5.6.2",
|
|
29
|
-
"frogbot": "0.
|
|
29
|
+
"frogbot": "0.17.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|