@activepieces/pieces-framework
Advanced tools
Comparing version 0.6.20 to 0.6.21
{ | ||
"name": "@activepieces/pieces-framework", | ||
"version": "0.6.20", | ||
"version": "0.6.21", | ||
"type": "commonjs", | ||
@@ -13,6 +13,6 @@ "dependencies": { | ||
"semver": "7.5.4", | ||
"@activepieces/shared": "0.8.7", | ||
"tslib": "2.6.2" | ||
"@activepieces/shared": "0.10.4", | ||
"tslib": "2.6.1" | ||
}, | ||
"main": "./src/index.js" | ||
} |
@@ -17,3 +17,3 @@ /// <reference types="node" /> | ||
identifierValue: string; | ||
}): Promise<void>; | ||
}): void; | ||
}; | ||
@@ -20,0 +20,0 @@ }; |
import { Trigger } from './trigger/trigger'; | ||
import { Action } from './action/action'; | ||
import { EventPayload, ParseEventResponse } from '@activepieces/shared'; | ||
import { EventPayload, ParseEventResponse, PieceCategory } from '@activepieces/shared'; | ||
import { PieceBase, PieceMetadata } from './piece-metadata'; | ||
@@ -15,5 +15,7 @@ import { PieceAuthProperty } from './property'; | ||
readonly description: string; | ||
readonly mentionIconUrl?: string | undefined; | ||
readonly categories?: PieceCategory[] | undefined; | ||
private readonly _actions; | ||
private readonly _triggers; | ||
constructor(displayName: string, logoUrl: string, authors: string[], events: PieceEventProcessors | undefined, actions: Action<PieceAuth>[], triggers: Trigger<PieceAuth>[], auth?: PieceAuth | undefined, minimumSupportedRelease?: string | undefined, maximumSupportedRelease?: string | undefined, description?: string); | ||
constructor(displayName: string, logoUrl: string, authors: string[], events: PieceEventProcessors | undefined, actions: Action<PieceAuth>[], triggers: Trigger<PieceAuth>[], auth?: PieceAuth | undefined, minimumSupportedRelease?: string | undefined, maximumSupportedRelease?: string | undefined, description?: string, mentionIconUrl?: string | undefined, categories?: PieceCategory[] | undefined); | ||
metadata(): Omit<PieceMetadata, "name" | "version">; | ||
@@ -37,2 +39,4 @@ getAction(actionName: string): Action | undefined; | ||
triggers: Trigger<PieceAuth>[]; | ||
mentionIconUrl?: string; | ||
categories?: PieceCategory[]; | ||
}; | ||
@@ -39,0 +43,0 @@ type PieceEventProcessors = { |
@@ -5,3 +5,3 @@ "use strict"; | ||
class Piece { | ||
constructor(displayName, logoUrl, authors, events, actions, triggers, auth, minimumSupportedRelease, maximumSupportedRelease, description = '') { | ||
constructor(displayName, logoUrl, authors, events, actions, triggers, auth, minimumSupportedRelease, maximumSupportedRelease, description = '', mentionIconUrl, categories) { | ||
this.displayName = displayName; | ||
@@ -15,2 +15,4 @@ this.logoUrl = logoUrl; | ||
this.description = description; | ||
this.mentionIconUrl = mentionIconUrl; | ||
this.categories = categories; | ||
this._actions = {}; | ||
@@ -49,5 +51,5 @@ this._triggers = {}; | ||
var _a, _b; | ||
return new Piece(params.displayName, params.logoUrl, (_a = params.authors) !== null && _a !== void 0 ? _a : [], params.events, params.actions, params.triggers, (_b = params.auth) !== null && _b !== void 0 ? _b : undefined, params.minimumSupportedRelease, params.maximumSupportedRelease, params.description); | ||
return new Piece(params.displayName, params.logoUrl, (_a = params.authors) !== null && _a !== void 0 ? _a : [], params.events, params.actions, params.triggers, (_b = params.auth) !== null && _b !== void 0 ? _b : undefined, params.minimumSupportedRelease, params.maximumSupportedRelease, params.description, params.mentionIconUrl, params.categories); | ||
}; | ||
exports.createPiece = createPiece; | ||
//# sourceMappingURL=piece.js.map |
Sorry, the diff of this file is not supported yet
89323
1294
+ Added@activepieces/shared@0.10.4(transitive)
+ Addedtslib@2.6.1(transitive)
- Removed@activepieces/shared@0.8.7(transitive)
- Removedtslib@2.6.2(transitive)
Updated@activepieces/shared@0.10.4
Updatedtslib@2.6.1