@activepieces/pieces-framework 0.7.14 → 0.7.16
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/package.json +3 -3
- package/src/lib/piece-metadata.d.ts +22 -2
- package/src/lib/piece-metadata.js +4 -0
- package/src/lib/piece-metadata.js.map +1 -1
- package/src/lib/piece.d.ts +2 -2
- package/src/lib/piece.js +5 -4
- package/src/lib/piece.js.map +1 -1
- package/src/lib/trigger/trigger.d.ts +27 -10
- package/src/lib/trigger/trigger.js +31 -5
- package/src/lib/trigger/trigger.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/pieces-framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.16",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.26.8",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"lodash": "4.17.21",
|
|
11
11
|
"nanoid": "3.3.6",
|
|
12
12
|
"semver": "7.5.4",
|
|
13
|
-
"@activepieces/shared": "0.10.
|
|
14
|
-
"tslib": "
|
|
13
|
+
"@activepieces/shared": "0.10.70",
|
|
14
|
+
"tslib": "2.6.2"
|
|
15
15
|
},
|
|
16
16
|
"main": "./src/index.js"
|
|
17
17
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PiecePropertyMap } from "./property";
|
|
2
|
-
import { TriggerStrategy, WebhookHandshakeConfiguration } from "./trigger/trigger";
|
|
2
|
+
import { WebhookRenewConfiguration, TriggerStrategy, WebhookHandshakeConfiguration } from "./trigger/trigger";
|
|
3
3
|
import { ErrorHandlingOptionsParam } from "./action/action";
|
|
4
4
|
import { PieceAuthProperty } from "./property/authentication";
|
|
5
|
-
import { ProjectId } from "@activepieces/shared";
|
|
5
|
+
import { PieceCategory, ProjectId, TriggerTestStrategy } from "@activepieces/shared";
|
|
6
6
|
export declare const PieceBase: import("@sinclair/typebox").TObject<{
|
|
7
7
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
8
8
|
name: import("@sinclair/typebox").TString<string>;
|
|
@@ -88,6 +88,7 @@ export declare const PieceBase: import("@sinclair/typebox").TObject<{
|
|
|
88
88
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
89
89
|
}>, import("@sinclair/typebox").TObject<import("@sinclair/typebox").TProperties>]>]>>;
|
|
90
90
|
version: import("@sinclair/typebox").TString<string>;
|
|
91
|
+
categories: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof PieceCategory>>>;
|
|
91
92
|
minimumSupportedRelease: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
92
93
|
maximumSupportedRelease: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
93
94
|
}>;
|
|
@@ -102,6 +103,7 @@ export type PieceBase = {
|
|
|
102
103
|
directoryPath?: string;
|
|
103
104
|
auth?: PieceAuthProperty;
|
|
104
105
|
version: string;
|
|
106
|
+
categories?: PieceCategory[];
|
|
105
107
|
minimumSupportedRelease?: string;
|
|
106
108
|
maximumSupportedRelease?: string;
|
|
107
109
|
};
|
|
@@ -524,11 +526,20 @@ export declare const TriggerBase: import("@sinclair/typebox").TComposite<[import
|
|
|
524
526
|
strategy: import("@sinclair/typebox").TEnum<typeof import("./trigger/trigger").WebhookHandshakeStrategy>;
|
|
525
527
|
paramName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
526
528
|
}>>;
|
|
529
|
+
renewConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
530
|
+
strategy: import("@sinclair/typebox").TLiteral<import("./trigger/trigger").WebhookRenewStrategy.CRON>;
|
|
531
|
+
cronExpression: import("@sinclair/typebox").TString<string>;
|
|
532
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
533
|
+
strategy: import("@sinclair/typebox").TLiteral<import("./trigger/trigger").WebhookRenewStrategy.NONE>;
|
|
534
|
+
}>]>>;
|
|
535
|
+
testStrategy: import("@sinclair/typebox").TEnum<typeof TriggerTestStrategy>;
|
|
527
536
|
}>]>;
|
|
528
537
|
export type TriggerBase = Omit<ActionBase, "requireAuth"> & {
|
|
529
538
|
type: TriggerStrategy;
|
|
530
539
|
sampleData: unknown;
|
|
531
540
|
handshakeConfiguration?: WebhookHandshakeConfiguration;
|
|
541
|
+
renewConfiguration?: WebhookRenewConfiguration;
|
|
542
|
+
testStrategy: TriggerTestStrategy;
|
|
532
543
|
};
|
|
533
544
|
export declare const PieceMetadata: import("@sinclair/typebox").TComposite<[import("@sinclair/typebox").TObject<{
|
|
534
545
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
@@ -615,6 +626,7 @@ export declare const PieceMetadata: import("@sinclair/typebox").TComposite<[impo
|
|
|
615
626
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
616
627
|
}>, import("@sinclair/typebox").TObject<import("@sinclair/typebox").TProperties>]>]>>;
|
|
617
628
|
version: import("@sinclair/typebox").TString<string>;
|
|
629
|
+
categories: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof PieceCategory>>>;
|
|
618
630
|
minimumSupportedRelease: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
619
631
|
maximumSupportedRelease: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
620
632
|
}>, import("@sinclair/typebox").TObject<{
|
|
@@ -1029,6 +1041,13 @@ export declare const PieceMetadata: import("@sinclair/typebox").TComposite<[impo
|
|
|
1029
1041
|
strategy: import("@sinclair/typebox").TEnum<typeof import("./trigger/trigger").WebhookHandshakeStrategy>;
|
|
1030
1042
|
paramName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
1031
1043
|
}>>;
|
|
1044
|
+
renewConfiguration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1045
|
+
strategy: import("@sinclair/typebox").TLiteral<import("./trigger/trigger").WebhookRenewStrategy.CRON>;
|
|
1046
|
+
cronExpression: import("@sinclair/typebox").TString<string>;
|
|
1047
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1048
|
+
strategy: import("@sinclair/typebox").TLiteral<import("./trigger/trigger").WebhookRenewStrategy.NONE>;
|
|
1049
|
+
}>]>>;
|
|
1050
|
+
testStrategy: import("@sinclair/typebox").TEnum<typeof TriggerTestStrategy>;
|
|
1032
1051
|
}>]>>;
|
|
1033
1052
|
}>]>;
|
|
1034
1053
|
export type PieceMetadata = PieceBase & {
|
|
@@ -1120,6 +1139,7 @@ export declare const PieceMetadataSummary: import("@sinclair/typebox").TComposit
|
|
|
1120
1139
|
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
1121
1140
|
directoryPath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
1122
1141
|
version: import("@sinclair/typebox").TString<string>;
|
|
1142
|
+
categories: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof PieceCategory>>>;
|
|
1123
1143
|
minimumSupportedRelease: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
1124
1144
|
maximumSupportedRelease: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
1125
1145
|
}>, import("@sinclair/typebox").TObject<{}>]>, import("@sinclair/typebox").TObject<{
|
|
@@ -6,6 +6,7 @@ const trigger_1 = require("./trigger/trigger");
|
|
|
6
6
|
const action_1 = require("./action/action");
|
|
7
7
|
const authentication_1 = require("./property/authentication");
|
|
8
8
|
const typebox_1 = require("@sinclair/typebox");
|
|
9
|
+
const shared_1 = require("@activepieces/shared");
|
|
9
10
|
exports.PieceBase = typebox_1.Type.Object({
|
|
10
11
|
id: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
11
12
|
name: typebox_1.Type.String(),
|
|
@@ -17,6 +18,7 @@ exports.PieceBase = typebox_1.Type.Object({
|
|
|
17
18
|
directoryPath: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
18
19
|
auth: typebox_1.Type.Optional(authentication_1.PieceAuthProperty),
|
|
19
20
|
version: typebox_1.Type.String(),
|
|
21
|
+
categories: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Enum(shared_1.PieceCategory))),
|
|
20
22
|
minimumSupportedRelease: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
21
23
|
maximumSupportedRelease: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
22
24
|
});
|
|
@@ -34,6 +36,8 @@ exports.TriggerBase = typebox_1.Type.Composite([
|
|
|
34
36
|
type: typebox_1.Type.Enum(trigger_1.TriggerStrategy),
|
|
35
37
|
sampleData: typebox_1.Type.Unknown(),
|
|
36
38
|
handshakeConfiguration: typebox_1.Type.Optional(trigger_1.WebhookHandshakeConfiguration),
|
|
39
|
+
renewConfiguration: typebox_1.Type.Optional(trigger_1.WebhookRenewConfiguration),
|
|
40
|
+
testStrategy: typebox_1.Type.Enum(shared_1.TriggerTestStrategy),
|
|
37
41
|
})
|
|
38
42
|
]);
|
|
39
43
|
exports.PieceMetadata = typebox_1.Type.Composite([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"piece-metadata.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/piece-metadata.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAC9C,+
|
|
1
|
+
{"version":3,"file":"piece-metadata.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/piece-metadata.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAC9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oB,EAAE,cAAI,CAAC,QAAQ,CAAC,kCAAyB,CAAC;CAC/D,CAAC,CAAA;AAWW,QAAA,WAAW,GAAG,cAAI,CAAC,SAAS,CAAC;IACxC,cAAI,CAAC,IAAI,CAAC,kBAAU,EAAE,CAAC,aAAa,CAAC,CAAC;IACtC,cAAI,CAAC,MAAM,CAAC;QACV,IAAI,EAAE,cAAI,CAAC,IAAI,CAAC,yBAAe,CAAC;QAChC,UAAU,EAAE,cAAI,CAAC,OAAO,EAAE;QAC1B,sBAAsB,EAAE,cAAI,CAAC,QAAQ,CAAC,uCAA6B,CAAC;QACpE,kBAAkB,EAAE,cAAI,CAAC,QAAQ,CAAC,mCAAyB,CAAC;QAC5D,YAAY,EAAE,cAAI,CAAC,IAAI,CAAC,4BAAmB,CAAC;KAC7C,CAAC;CACH,CAAC,CAAA;AASW,QAAA,aAAa,GAAG,cAAI,CAAC,SAAS,CAAC;IAC1C,iBAAS;IACT,cAAI,CAAC,MAAM,CAAC;QACV,OAAO,EAAE,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,kBAAU,CAAC;QAC/C,QAAQ,EAAE,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,mBAAW,CAAC;KAClD,CAAC;CACH,CAAC,CAAA;AAOW,QAAA,oBAAoB,GAAG,cAAI,CAAC,SAAS,CAAC;IACjD,cAAI,CAAC,IAAI,CAAC,qBAAa,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACjD,cAAI,CAAC,MAAM,CAAC;QACV,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE;QACtB,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE;KACxB,CAAC;CACH,CAAC,CAAA"}
|
package/src/lib/piece.d.ts
CHANGED
|
@@ -8,14 +8,14 @@ export declare class Piece<PieceAuth extends PieceAuthProperty = PieceAuthProper
|
|
|
8
8
|
readonly logoUrl: string;
|
|
9
9
|
readonly authors: string[];
|
|
10
10
|
readonly events: PieceEventProcessors | undefined;
|
|
11
|
+
readonly categories: PieceCategory[];
|
|
11
12
|
readonly auth?: PieceAuth | undefined;
|
|
12
13
|
readonly minimumSupportedRelease?: string | undefined;
|
|
13
14
|
readonly maximumSupportedRelease?: string | undefined;
|
|
14
15
|
readonly description: string;
|
|
15
|
-
readonly categories?: PieceCategory[] | undefined;
|
|
16
16
|
private readonly _actions;
|
|
17
17
|
private readonly _triggers;
|
|
18
|
-
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
|
|
18
|
+
constructor(displayName: string, logoUrl: string, authors: string[], events: PieceEventProcessors | undefined, actions: Action<PieceAuth>[], triggers: Trigger<PieceAuth>[], categories: PieceCategory[], auth?: PieceAuth | undefined, minimumSupportedRelease?: string | undefined, maximumSupportedRelease?: string | undefined, description?: string);
|
|
19
19
|
metadata(): Omit<PieceMetadata, 'name' | 'version'>;
|
|
20
20
|
getAction(actionName: string): Action | undefined;
|
|
21
21
|
getTrigger(triggerName: string): Trigger | undefined;
|
package/src/lib/piece.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createPiece = exports.Piece = void 0;
|
|
4
4
|
class Piece {
|
|
5
|
-
constructor(displayName, logoUrl, authors, events, actions, triggers, auth, minimumSupportedRelease, maximumSupportedRelease, description = ''
|
|
5
|
+
constructor(displayName, logoUrl, authors, events, actions, triggers, categories, auth, minimumSupportedRelease, maximumSupportedRelease, description = '') {
|
|
6
6
|
this.displayName = displayName;
|
|
7
7
|
this.logoUrl = logoUrl;
|
|
8
8
|
this.authors = authors;
|
|
9
9
|
this.events = events;
|
|
10
|
+
this.categories = categories;
|
|
10
11
|
this.auth = auth;
|
|
11
12
|
this.minimumSupportedRelease = minimumSupportedRelease;
|
|
12
13
|
this.maximumSupportedRelease = maximumSupportedRelease;
|
|
13
14
|
this.description = description;
|
|
14
|
-
this.categories = categories;
|
|
15
15
|
this._actions = {};
|
|
16
16
|
this._triggers = {};
|
|
17
17
|
actions.forEach((action) => (this._actions[action.name] = action));
|
|
@@ -23,6 +23,7 @@ class Piece {
|
|
|
23
23
|
logoUrl: this.logoUrl,
|
|
24
24
|
actions: this._actions,
|
|
25
25
|
triggers: this._triggers,
|
|
26
|
+
categories: this.categories,
|
|
26
27
|
description: this.description,
|
|
27
28
|
auth: this.auth,
|
|
28
29
|
minimumSupportedRelease: this.minimumSupportedRelease,
|
|
@@ -44,8 +45,8 @@ class Piece {
|
|
|
44
45
|
}
|
|
45
46
|
exports.Piece = Piece;
|
|
46
47
|
const createPiece = (params) => {
|
|
47
|
-
var _a, _b;
|
|
48
|
-
return new Piece(params.displayName, params.logoUrl, (_a = params.authors) !== null && _a !== void 0 ? _a : [], params.events, params.actions, params.triggers, (_b = params.
|
|
48
|
+
var _a, _b, _c;
|
|
49
|
+
return new Piece(params.displayName, params.logoUrl, (_a = params.authors) !== null && _a !== void 0 ? _a : [], params.events, params.actions, params.triggers, (_b = params.categories) !== null && _b !== void 0 ? _b : [], (_c = params.auth) !== null && _c !== void 0 ? _c : undefined, params.minimumSupportedRelease, params.maximumSupportedRelease, params.description);
|
|
49
50
|
};
|
|
50
51
|
exports.createPiece = createPiece;
|
|
51
52
|
//# sourceMappingURL=piece.js.map
|
package/src/lib/piece.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"piece.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/piece.ts"],"names":[],"mappings":";;;AAUA,MAAa,KAAK;IAMhB,YACkB,WAAmB,EACnB,OAAe,EACf,OAAiB,EACjB,MAAwC,EACxD,OAA4B,EAC5B,QAA8B,EACd,IAAgB,EAChB,uBAAgC,EAChC,uBAAgC,EAChC,cAAsB,EAAE
|
|
1
|
+
{"version":3,"file":"piece.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/piece.ts"],"names":[],"mappings":";;;AAUA,MAAa,KAAK;IAMhB,YACkB,WAAmB,EACnB,OAAe,EACf,OAAiB,EACjB,MAAwC,EACxD,OAA4B,EAC5B,QAA8B,EACd,UAA2B,EAC3B,IAAgB,EAChB,uBAAgC,EAChC,uBAAgC,EAChC,cAAsB,EAAE;QAVxB,gBAAW,GAAX,WAAW,CAAQ;QACnB,YAAO,GAAP,OAAO,CAAQ;QACf,YAAO,GAAP,OAAO,CAAU;QACjB,WAAM,GAAN,MAAM,CAAkC;QAGxC,eAAU,GAAV,UAAU,CAAiB;QAC3B,SAAI,GAAJ,IAAI,CAAY;QAChB,4BAAuB,GAAvB,uBAAuB,CAAS;QAChC,4BAAuB,GAAvB,uBAAuB,CAAS;QAChC,gBAAW,GAAX,WAAW,CAAa;QAdzB,aAAQ,GAA2B,EAAE,CAAC;QACtC,cAAS,GAA4B,EAAE,CAAC;QAevD,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACnE,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,QAAQ;QACN,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,QAAQ,EAAE,IAAI,CAAC,SAAS;YACxB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;YACrD,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;SACtD,CAAC;IACJ,CAAC;IAED,SAAS,CAAC,UAAkB;QAC1B,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC;IAED,UAAU,CAAC,WAAmB;QAC5B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AApDD,sBAoDC;AAEM,MAAM,WAAW,GAAG,CACzB,MAAoC,EACpC,EAAE;;IACF,OAAO,IAAI,KAAK,CACd,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,OAAO,EACd,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,EACpB,MAAM,CAAC,MAAM,EACb,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,QAAQ,EACf,MAAA,MAAM,CAAC,UAAU,mCAAI,EAAE,EACvB,MAAA,MAAM,CAAC,IAAI,mCAAI,SAAS,EACxB,MAAM,CAAC,uBAAuB,EAC9B,MAAM,CAAC,uBAAuB,EAC9B,MAAM,CAAC,WAAW,CACnB,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,WAAW,eAgBtB"}
|
|
@@ -3,6 +3,7 @@ import { TestOrRunHookContext, TriggerHookContext } from '../context';
|
|
|
3
3
|
import { TriggerBase } from '../piece-metadata';
|
|
4
4
|
import { InputPropertyMap } from '../property';
|
|
5
5
|
import { PieceAuthProperty } from '../property/authentication';
|
|
6
|
+
import { TriggerTestStrategy } from '@activepieces/shared';
|
|
6
7
|
export declare enum TriggerStrategy {
|
|
7
8
|
POLLING = "POLLING",
|
|
8
9
|
WEBHOOK = "WEBHOOK",
|
|
@@ -14,34 +15,47 @@ export declare enum WebhookHandshakeStrategy {
|
|
|
14
15
|
QUERY_PRESENT = "QUERY_PRESENT",
|
|
15
16
|
BODY_PARAM_PRESENT = "BODY_PARAM_PRESENT"
|
|
16
17
|
}
|
|
18
|
+
export declare enum WebhookRenewStrategy {
|
|
19
|
+
CRON = "CRON",
|
|
20
|
+
NONE = "NONE"
|
|
21
|
+
}
|
|
17
22
|
export declare const WebhookHandshakeConfiguration: import("@sinclair/typebox").TObject<{
|
|
18
23
|
strategy: import("@sinclair/typebox").TEnum<typeof WebhookHandshakeStrategy>;
|
|
19
24
|
paramName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
20
25
|
}>;
|
|
21
26
|
export type WebhookHandshakeConfiguration = Static<typeof WebhookHandshakeConfiguration>;
|
|
27
|
+
export declare const WebhookRenewConfiguration: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
28
|
+
strategy: import("@sinclair/typebox").TLiteral<WebhookRenewStrategy.CRON>;
|
|
29
|
+
cronExpression: import("@sinclair/typebox").TString<string>;
|
|
30
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
31
|
+
strategy: import("@sinclair/typebox").TLiteral<WebhookRenewStrategy.NONE>;
|
|
32
|
+
}>]>;
|
|
33
|
+
export type WebhookRenewConfiguration = Static<typeof WebhookRenewConfiguration>;
|
|
22
34
|
export interface WebhookResponse {
|
|
23
35
|
status: number;
|
|
24
36
|
body?: any;
|
|
25
37
|
headers?: Record<string, string>;
|
|
26
38
|
}
|
|
27
|
-
type
|
|
28
|
-
/**
|
|
29
|
-
* A dummy parameter used to infer {@code PieceAuth} type
|
|
30
|
-
*/
|
|
39
|
+
type BaseTriggerParams<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = {
|
|
31
40
|
name: string;
|
|
32
41
|
displayName: string;
|
|
33
42
|
description: string;
|
|
34
43
|
auth?: PieceAuth;
|
|
35
44
|
props: TriggerProps;
|
|
36
45
|
type: TS;
|
|
37
|
-
handshakeConfiguration?: WebhookHandshakeConfiguration;
|
|
38
46
|
onEnable: (context: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
39
|
-
onHandshake?: (context: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<WebhookResponse>;
|
|
40
47
|
onDisable: (context: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
41
48
|
run: (context: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
|
|
42
49
|
test?: (context: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
|
|
43
50
|
sampleData: unknown;
|
|
44
51
|
};
|
|
52
|
+
type WebhookTriggerParams<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = BaseTriggerParams<PieceAuth, TriggerProps, TS> & {
|
|
53
|
+
handshakeConfiguration?: WebhookHandshakeConfiguration;
|
|
54
|
+
onHandshake?: (context: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<WebhookResponse>;
|
|
55
|
+
renewConfiguration?: WebhookRenewConfiguration;
|
|
56
|
+
onRenew?(context: TriggerHookContext<PieceAuth, TriggerProps, TS>): Promise<void>;
|
|
57
|
+
};
|
|
58
|
+
type CreateTriggerParams<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = TS extends TriggerStrategy.WEBHOOK ? WebhookTriggerParams<PieceAuth, TriggerProps, TS> : BaseTriggerParams<PieceAuth, TriggerProps, TS>;
|
|
45
59
|
export declare class ITrigger<TS extends TriggerStrategy, PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap> implements TriggerBase {
|
|
46
60
|
readonly name: string;
|
|
47
61
|
readonly displayName: string;
|
|
@@ -49,14 +63,17 @@ export declare class ITrigger<TS extends TriggerStrategy, PieceAuth extends Piec
|
|
|
49
63
|
readonly props: TriggerProps;
|
|
50
64
|
readonly type: TS;
|
|
51
65
|
readonly handshakeConfiguration: WebhookHandshakeConfiguration;
|
|
52
|
-
readonly onEnable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
53
66
|
readonly onHandshake: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<WebhookResponse>;
|
|
67
|
+
readonly renewConfiguration: WebhookRenewConfiguration;
|
|
68
|
+
readonly onRenew: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
69
|
+
readonly onEnable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
54
70
|
readonly onDisable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
55
71
|
readonly run: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
|
|
56
72
|
readonly test: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
|
|
57
|
-
sampleData: unknown;
|
|
58
|
-
|
|
73
|
+
readonly sampleData: unknown;
|
|
74
|
+
readonly testStrategy: TriggerTestStrategy;
|
|
75
|
+
constructor(name: string, displayName: string, description: string, props: TriggerProps, type: TS, handshakeConfiguration: WebhookHandshakeConfiguration, onHandshake: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<WebhookResponse>, renewConfiguration: WebhookRenewConfiguration, onRenew: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>, onEnable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>, onDisable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>, run: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>, test: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>, sampleData: unknown, testStrategy: TriggerTestStrategy);
|
|
59
76
|
}
|
|
60
77
|
export type Trigger<PieceAuth extends PieceAuthProperty = any, TriggerProps extends InputPropertyMap = any, S extends TriggerStrategy = TriggerStrategy> = ITrigger<S, PieceAuth, TriggerProps>;
|
|
61
|
-
export declare const createTrigger: <TS extends TriggerStrategy, PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap>(params: CreateTriggerParams<PieceAuth, TriggerProps, TS>) => ITrigger<
|
|
78
|
+
export declare const createTrigger: <TS extends TriggerStrategy, PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap>(params: CreateTriggerParams<PieceAuth, TriggerProps, TS>) => ITrigger<TriggerStrategy.WEBHOOK, PieceAuth, TriggerProps> | ITrigger<TriggerStrategy.POLLING, PieceAuth, TriggerProps> | ITrigger<TriggerStrategy.APP_WEBHOOK, PieceAuth, TriggerProps>;
|
|
62
79
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTrigger = exports.ITrigger = exports.WebhookHandshakeConfiguration = exports.WebhookHandshakeStrategy = exports.TriggerStrategy = void 0;
|
|
3
|
+
exports.createTrigger = exports.ITrigger = exports.WebhookRenewConfiguration = exports.WebhookHandshakeConfiguration = exports.WebhookRenewStrategy = exports.WebhookHandshakeStrategy = exports.TriggerStrategy = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
const shared_1 = require("@activepieces/shared");
|
|
6
7
|
var TriggerStrategy;
|
|
7
8
|
(function (TriggerStrategy) {
|
|
8
9
|
TriggerStrategy["POLLING"] = "POLLING";
|
|
@@ -16,30 +17,55 @@ var WebhookHandshakeStrategy;
|
|
|
16
17
|
WebhookHandshakeStrategy["QUERY_PRESENT"] = "QUERY_PRESENT";
|
|
17
18
|
WebhookHandshakeStrategy["BODY_PARAM_PRESENT"] = "BODY_PARAM_PRESENT";
|
|
18
19
|
})(WebhookHandshakeStrategy || (exports.WebhookHandshakeStrategy = WebhookHandshakeStrategy = {}));
|
|
20
|
+
var WebhookRenewStrategy;
|
|
21
|
+
(function (WebhookRenewStrategy) {
|
|
22
|
+
WebhookRenewStrategy["CRON"] = "CRON";
|
|
23
|
+
WebhookRenewStrategy["NONE"] = "NONE";
|
|
24
|
+
})(WebhookRenewStrategy || (exports.WebhookRenewStrategy = WebhookRenewStrategy = {}));
|
|
19
25
|
exports.WebhookHandshakeConfiguration = typebox_1.Type.Object({
|
|
20
26
|
strategy: typebox_1.Type.Enum(WebhookHandshakeStrategy),
|
|
21
27
|
paramName: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
22
28
|
});
|
|
29
|
+
exports.WebhookRenewConfiguration = typebox_1.Type.Union([
|
|
30
|
+
typebox_1.Type.Object({
|
|
31
|
+
strategy: typebox_1.Type.Literal(WebhookRenewStrategy.CRON),
|
|
32
|
+
cronExpression: typebox_1.Type.String(),
|
|
33
|
+
}),
|
|
34
|
+
typebox_1.Type.Object({
|
|
35
|
+
strategy: typebox_1.Type.Literal(WebhookRenewStrategy.NONE),
|
|
36
|
+
}),
|
|
37
|
+
]);
|
|
23
38
|
class ITrigger {
|
|
24
|
-
constructor(name, displayName, description, props, type, handshakeConfiguration,
|
|
39
|
+
constructor(name, displayName, description, props, type, handshakeConfiguration, onHandshake, renewConfiguration, onRenew, onEnable, onDisable, run, test, sampleData, testStrategy) {
|
|
25
40
|
this.name = name;
|
|
26
41
|
this.displayName = displayName;
|
|
27
42
|
this.description = description;
|
|
28
43
|
this.props = props;
|
|
29
44
|
this.type = type;
|
|
30
45
|
this.handshakeConfiguration = handshakeConfiguration;
|
|
31
|
-
this.onEnable = onEnable;
|
|
32
46
|
this.onHandshake = onHandshake;
|
|
47
|
+
this.renewConfiguration = renewConfiguration;
|
|
48
|
+
this.onRenew = onRenew;
|
|
49
|
+
this.onEnable = onEnable;
|
|
33
50
|
this.onDisable = onDisable;
|
|
34
51
|
this.run = run;
|
|
35
52
|
this.test = test;
|
|
36
53
|
this.sampleData = sampleData;
|
|
54
|
+
this.testStrategy = testStrategy;
|
|
37
55
|
}
|
|
38
56
|
}
|
|
39
57
|
exports.ITrigger = ITrigger;
|
|
58
|
+
// TODO refactor and extract common logic
|
|
40
59
|
const createTrigger = (params) => {
|
|
41
|
-
var _a, _b, _c;
|
|
42
|
-
|
|
60
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
61
|
+
switch (params.type) {
|
|
62
|
+
case TriggerStrategy.WEBHOOK:
|
|
63
|
+
return new ITrigger(params.name, params.displayName, params.description, params.props, params.type, (_a = params.handshakeConfiguration) !== null && _a !== void 0 ? _a : { strategy: WebhookHandshakeStrategy.NONE }, (_b = params.onHandshake) !== null && _b !== void 0 ? _b : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({ status: 200 }); })), (_c = params.renewConfiguration) !== null && _c !== void 0 ? _c : { strategy: WebhookRenewStrategy.NONE }, (_d = params.onRenew) !== null && _d !== void 0 ? _d : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); })), params.onEnable, params.onDisable, params.run, (_e = params.test) !== null && _e !== void 0 ? _e : (() => Promise.resolve([params.sampleData])), params.sampleData, params.test ? shared_1.TriggerTestStrategy.TEST_FUNCTION : shared_1.TriggerTestStrategy.SIMULATION);
|
|
64
|
+
case TriggerStrategy.POLLING:
|
|
65
|
+
return new ITrigger(params.name, params.displayName, params.description, params.props, params.type, { strategy: WebhookHandshakeStrategy.NONE }, () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({ status: 200 }); }), { strategy: WebhookRenewStrategy.NONE }, (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); })), params.onEnable, params.onDisable, params.run, (_f = params.test) !== null && _f !== void 0 ? _f : (() => Promise.resolve([params.sampleData])), params.sampleData, shared_1.TriggerTestStrategy.TEST_FUNCTION);
|
|
66
|
+
case TriggerStrategy.APP_WEBHOOK:
|
|
67
|
+
return new ITrigger(params.name, params.displayName, params.description, params.props, params.type, { strategy: WebhookHandshakeStrategy.NONE }, () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({ status: 200 }); }), { strategy: WebhookRenewStrategy.NONE }, (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); })), params.onEnable, params.onDisable, params.run, (_g = params.test) !== null && _g !== void 0 ? _g : (() => Promise.resolve([params.sampleData])), params.sampleData, shared_1.TriggerTestStrategy.TEST_FUNCTION);
|
|
68
|
+
}
|
|
43
69
|
};
|
|
44
70
|
exports.createTrigger = createTrigger;
|
|
45
71
|
//# sourceMappingURL=trigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/trigger/trigger.ts"],"names":[],"mappings":";;;;AAAA,+CAAiD;
|
|
1
|
+
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/trigger/trigger.ts"],"names":[],"mappings":";;;;AAAA,+CAAiD;AAKjD,iDAA2D;AAE3D,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,8CAA2B,CAAA;AAC7B,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,6DAAiC,CAAA;IACjC,2DAA+B,CAAA;IAC/B,qEAAyC,CAAA;AAC3C,CAAC,EALW,wBAAwB,wCAAxB,wBAAwB,QAKnC;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;AACf,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAEY,QAAA,6BAA6B,GAAG,cAAI,CAAC,MAAM,CAAC;IACvD,QAAQ,EAAE,cAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC;IAC7C,SAAS,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EA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