@activepieces/pieces-framework 0.7.36 → 0.7.38
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 +16 -4
- package/src/lib/context.d.ts +10 -6
- package/src/lib/context.js.map +1 -1
- package/src/lib/property/authentication/index.d.ts +1 -1
- package/src/lib/property/input/file-property.d.ts +0 -1
- package/src/lib/property/input/index.d.ts +27 -25
- package/src/lib/property/input/index.js +3 -0
- package/src/lib/property/input/index.js.map +1 -1
- package/src/lib/property/input/markdown-property.d.ts +7 -4
- package/src/lib/property/input/markdown-property.js +1 -1
- package/src/lib/property/input/markdown-property.js.map +1 -1
- package/src/lib/trigger/trigger.d.ts +5 -2
- package/src/lib/trigger/trigger.js +6 -5
- package/src/lib/trigger/trigger.js.map +1 -1
- package/src/lib/validators/utils.js +1 -2
- package/src/lib/validators/utils.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/pieces-framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.38",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@sinclair/typebox": "0.
|
|
6
|
+
"@sinclair/typebox": "0.33.17",
|
|
7
7
|
"dayjs": "1.11.9",
|
|
8
8
|
"deepmerge": "4.3.1",
|
|
9
9
|
"nanoid": "3.3.6",
|
|
10
10
|
"semver": "7.6.0",
|
|
11
|
-
"@activepieces/shared": "0.10.
|
|
11
|
+
"@activepieces/shared": "0.10.122",
|
|
12
12
|
"tslib": "2.6.2"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"overrides": {
|
|
15
|
+
"@tryfabric/martian": {
|
|
16
|
+
"@notionhq/client": "$@notionhq/client"
|
|
17
|
+
},
|
|
18
|
+
"vite": {
|
|
19
|
+
"rollup": "npm:@rollup/wasm-node"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"resolutions": {
|
|
23
|
+
"rollup": "npm:@rollup/wasm-node"
|
|
24
|
+
},
|
|
25
|
+
"main": "./src/index.js",
|
|
26
|
+
"types": "./src/index.d.ts"
|
|
15
27
|
}
|
package/src/lib/context.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { AppConnectionValue, ExecutionType, FlowRunId, PopulatedFlow, ProjectId, ResumePayload, SeekPage, TriggerPayload } from '@activepieces/shared';
|
|
3
2
|
import { TriggerStrategy } from './trigger/trigger';
|
|
4
3
|
import { InputPropertyMap, PiecePropValueSchema, StaticPropsValue } from './property';
|
|
@@ -71,6 +70,15 @@ export type ServerContext = {
|
|
|
71
70
|
publicUrl: string;
|
|
72
71
|
token: string;
|
|
73
72
|
};
|
|
73
|
+
export type RunContext = {
|
|
74
|
+
id: FlowRunId;
|
|
75
|
+
stop: StopHook;
|
|
76
|
+
pause: PauseHook;
|
|
77
|
+
};
|
|
78
|
+
export type OnStartContext<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap> = Omit<BaseContext<PieceAuth, TriggerProps>, 'flows'> & {
|
|
79
|
+
run: Pick<RunContext, 'id'>;
|
|
80
|
+
payload: unknown;
|
|
81
|
+
};
|
|
74
82
|
export type BaseActionContext<ET extends ExecutionType, PieceAuth extends PieceAuthProperty, ActionProps extends InputPropertyMap> = BaseContext<PieceAuth, ActionProps> & {
|
|
75
83
|
executionType: ET;
|
|
76
84
|
connections: ConnectionsManager;
|
|
@@ -78,11 +86,7 @@ export type BaseActionContext<ET extends ExecutionType, PieceAuth extends PieceA
|
|
|
78
86
|
server: ServerContext;
|
|
79
87
|
files: FilesService;
|
|
80
88
|
serverUrl: string;
|
|
81
|
-
run:
|
|
82
|
-
id: FlowRunId;
|
|
83
|
-
stop: StopHook;
|
|
84
|
-
pause: PauseHook;
|
|
85
|
-
};
|
|
89
|
+
run: RunContext;
|
|
86
90
|
generateResumeUrl: (params: {
|
|
87
91
|
queryParams: Record<string, string>;
|
|
88
92
|
}) => string;
|
package/src/lib/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/context.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/context.ts"],"names":[],"mappings":";;;AA2MA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|
|
@@ -103,7 +103,7 @@ export declare const PieceAuth: {
|
|
|
103
103
|
SecretText<R extends boolean>(request: Properties<SecretTextProperty<R>>): R extends true ? SecretTextProperty<true> : SecretTextProperty<false>;
|
|
104
104
|
OAuth2<T extends OAuth2Props>(request: AuthProperties<OAuth2Property<T>>): OAuth2Property<T>;
|
|
105
105
|
BasicAuth(request: AuthProperties<BasicAuthProperty>): BasicAuthProperty;
|
|
106
|
-
CustomAuth<
|
|
106
|
+
CustomAuth<T extends CustomAuthProps>(request: AuthProperties<CustomAuthProperty<T>>): CustomAuthProperty<T>;
|
|
107
107
|
None(): undefined;
|
|
108
108
|
};
|
|
109
109
|
export {};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { ArrayProperty } from
|
|
2
|
-
import { CheckboxProperty } from
|
|
3
|
-
import { DateTimeProperty } from
|
|
4
|
-
import { DropdownProperty, MultiSelectDropdownProperty } from
|
|
5
|
-
import { StaticDropdownProperty, StaticMultiSelectDropdownProperty } from
|
|
6
|
-
import { DynamicProperties } from
|
|
7
|
-
import { FileProperty } from
|
|
8
|
-
import { JsonProperty } from
|
|
9
|
-
import { MarkDownProperty } from
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
import { ArrayProperty } from './array-property';
|
|
2
|
+
import { CheckboxProperty } from './checkbox-property';
|
|
3
|
+
import { DateTimeProperty } from './date-time-property';
|
|
4
|
+
import { DropdownProperty, MultiSelectDropdownProperty } from './dropdown/dropdown-prop';
|
|
5
|
+
import { StaticDropdownProperty, StaticMultiSelectDropdownProperty } from './dropdown/static-dropdown';
|
|
6
|
+
import { DynamicProperties } from './dynamic-prop';
|
|
7
|
+
import { FileProperty } from './file-property';
|
|
8
|
+
import { JsonProperty } from './json-property';
|
|
9
|
+
import { MarkDownProperty } from './markdown-property';
|
|
10
|
+
import { MarkdownVariant } from '@activepieces/shared';
|
|
11
|
+
import { NumberProperty } from './number-property';
|
|
12
|
+
import { ObjectProperty } from './object-property';
|
|
13
|
+
import { LongTextProperty, ShortTextProperty } from './text-property';
|
|
13
14
|
export declare const InputProperty: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
14
15
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
15
16
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -164,21 +165,22 @@ export type InputProperty = ShortTextProperty<boolean> | LongTextProperty<boolea
|
|
|
164
165
|
type Properties<T> = Omit<T, 'valueSchema' | 'type' | 'defaultValidators' | 'defaultProcessors'>;
|
|
165
166
|
export declare const Property: {
|
|
166
167
|
ShortText<R extends boolean>(request: Properties<ShortTextProperty<R>>): R extends true ? ShortTextProperty<true> : ShortTextProperty<false>;
|
|
167
|
-
Checkbox<
|
|
168
|
-
LongText<
|
|
168
|
+
Checkbox<R extends boolean>(request: Properties<CheckboxProperty<R>>): R extends true ? CheckboxProperty<true> : CheckboxProperty<false>;
|
|
169
|
+
LongText<R extends boolean>(request: Properties<LongTextProperty<R>>): R extends true ? LongTextProperty<true> : LongTextProperty<false>;
|
|
169
170
|
MarkDown(request: {
|
|
170
171
|
value: string;
|
|
172
|
+
variant?: MarkdownVariant;
|
|
171
173
|
}): MarkDownProperty;
|
|
172
|
-
Number<
|
|
173
|
-
Json<
|
|
174
|
-
Array<
|
|
175
|
-
Object<
|
|
176
|
-
Dropdown<T,
|
|
177
|
-
StaticDropdown<
|
|
178
|
-
MultiSelectDropdown<
|
|
179
|
-
DynamicProperties<
|
|
180
|
-
StaticMultiSelectDropdown<
|
|
181
|
-
DateTime<
|
|
182
|
-
File<
|
|
174
|
+
Number<R extends boolean>(request: Properties<NumberProperty<R>>): R extends true ? NumberProperty<true> : NumberProperty<false>;
|
|
175
|
+
Json<R extends boolean>(request: Properties<JsonProperty<R>>): R extends true ? JsonProperty<true> : JsonProperty<false>;
|
|
176
|
+
Array<R extends boolean>(request: Properties<ArrayProperty<R>>): R extends true ? ArrayProperty<true> : ArrayProperty<false>;
|
|
177
|
+
Object<R extends boolean>(request: Properties<ObjectProperty<R>>): R extends true ? ObjectProperty<true> : ObjectProperty<false>;
|
|
178
|
+
Dropdown<T, R extends boolean = boolean>(request: Properties<DropdownProperty<T, R>>): R extends true ? DropdownProperty<T, true> : DropdownProperty<T, false>;
|
|
179
|
+
StaticDropdown<T, R extends boolean = boolean>(request: Properties<StaticDropdownProperty<T, R>>): R extends true ? StaticDropdownProperty<T, true> : StaticDropdownProperty<T, false>;
|
|
180
|
+
MultiSelectDropdown<T, R extends boolean = boolean>(request: Properties<MultiSelectDropdownProperty<T, R>>): R extends true ? MultiSelectDropdownProperty<T, true> : MultiSelectDropdownProperty<T, false>;
|
|
181
|
+
DynamicProperties<R extends boolean = boolean>(request: Properties<DynamicProperties<R>>): R extends true ? DynamicProperties<true> : DynamicProperties<false>;
|
|
182
|
+
StaticMultiSelectDropdown<T, R extends boolean = boolean>(request: Properties<StaticMultiSelectDropdownProperty<T, R>>): R extends true ? StaticMultiSelectDropdownProperty<T, true> : StaticMultiSelectDropdownProperty<T, false>;
|
|
183
|
+
DateTime<R extends boolean>(request: Properties<DateTimeProperty<R>>): R extends true ? DateTimeProperty<true> : DateTimeProperty<false>;
|
|
184
|
+
File<R extends boolean>(request: Properties<FileProperty<R>>): R extends true ? FileProperty<true> : FileProperty<false>;
|
|
183
185
|
};
|
|
184
186
|
export {};
|
|
@@ -12,6 +12,7 @@ const dynamic_prop_1 = require("./dynamic-prop");
|
|
|
12
12
|
const file_property_1 = require("./file-property");
|
|
13
13
|
const json_property_1 = require("./json-property");
|
|
14
14
|
const markdown_property_1 = require("./markdown-property");
|
|
15
|
+
const shared_1 = require("@activepieces/shared");
|
|
15
16
|
const number_property_1 = require("./number-property");
|
|
16
17
|
const object_property_1 = require("./object-property");
|
|
17
18
|
const property_type_1 = require("./property-type");
|
|
@@ -44,12 +45,14 @@ exports.Property = {
|
|
|
44
45
|
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.LONG_TEXT });
|
|
45
46
|
},
|
|
46
47
|
MarkDown(request) {
|
|
48
|
+
var _a;
|
|
47
49
|
return {
|
|
48
50
|
displayName: 'Markdown',
|
|
49
51
|
required: false,
|
|
50
52
|
description: request.value,
|
|
51
53
|
type: property_type_1.PropertyType.MARKDOWN,
|
|
52
54
|
valueSchema: undefined,
|
|
55
|
+
variant: (_a = request.variant) !== null && _a !== void 0 ? _a : shared_1.MarkdownVariant.INFO,
|
|
53
56
|
};
|
|
54
57
|
},
|
|
55
58
|
Number(request) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/index.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,4DAAyD;AACzD,qDAAiD;AACjD,2DAAuD;AACvD,6DAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/index.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,4DAAyD;AACzD,qDAAiD;AACjD,2DAAuD;AACvD,6DAAwD;AACxD,4DAGkC;AAClC,gEAGoC;AACpC,iDAAmD;AACnD,mDAA+C;AAC/C,mDAA+C;AAC/C,2DAAuD;AACvD,iDAAuD;AACvD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,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,SAAS,GAGH,CAAC;IAC9B,CAAC;IACD,IAAI,CACF,OAAoC;QAEpC,OAAO,gCACF,OAAO,KACV,iBAAiB,EAAE,CAAC,uBAAU,CAAC,IAAI,CAAC,EACpC,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,IAAI,GACgD,CAAC;IAC5E,CAAC;CACF,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { BasePropertySchema, TPropertyValue } from
|
|
2
|
-
import { PropertyType } from
|
|
3
|
-
import { ValidationInputType } from
|
|
1
|
+
import { BasePropertySchema, TPropertyValue } from './common';
|
|
2
|
+
import { PropertyType } from './property-type';
|
|
3
|
+
import { ValidationInputType } from '../../validators/types';
|
|
4
|
+
import { MarkdownVariant } from '@activepieces/shared';
|
|
4
5
|
export declare const MarkDownProperty: import("@sinclair/typebox").TObject<{
|
|
5
6
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
6
7
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
7
8
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
8
9
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
9
10
|
}>;
|
|
10
|
-
export type MarkDownProperty = BasePropertySchema & TPropertyValue<undefined, PropertyType.MARKDOWN, ValidationInputType.ANY, false
|
|
11
|
+
export type MarkDownProperty = BasePropertySchema & TPropertyValue<undefined, PropertyType.MARKDOWN, ValidationInputType.ANY, false> & {
|
|
12
|
+
variant?: MarkdownVariant;
|
|
13
|
+
};
|
|
@@ -6,6 +6,6 @@ const common_1 = require("./common");
|
|
|
6
6
|
const property_type_1 = require("./property-type");
|
|
7
7
|
exports.MarkDownProperty = typebox_1.Type.Composite([
|
|
8
8
|
common_1.BasePropertySchema,
|
|
9
|
-
(0, common_1.TPropertyValue)(typebox_1.Type.Void(), property_type_1.PropertyType.MARKDOWN)
|
|
9
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.Void(), property_type_1.PropertyType.MARKDOWN),
|
|
10
10
|
]);
|
|
11
11
|
//# sourceMappingURL=markdown-property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/markdown-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;
|
|
1
|
+
{"version":3,"file":"markdown-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/markdown-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAIlC,QAAA,gBAAgB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC7C,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,IAAI,EAAE,EAAE,4BAAY,CAAC,QAAQ,CAAC;CACnD,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Static } from '@sinclair/typebox';
|
|
2
|
-
import { TestOrRunHookContext, TriggerHookContext } from '../context';
|
|
2
|
+
import { OnStartContext, TestOrRunHookContext, TriggerHookContext } from '../context';
|
|
3
3
|
import { TriggerBase } from '../piece-metadata';
|
|
4
4
|
import { InputPropertyMap } from '../property';
|
|
5
5
|
import { PieceAuthProperty } from '../property/authentication';
|
|
@@ -24,6 +24,7 @@ export declare const WebhookHandshakeConfiguration: import("@sinclair/typebox").
|
|
|
24
24
|
strategy: import("@sinclair/typebox").TEnum<typeof WebhookHandshakeStrategy>;
|
|
25
25
|
paramName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
26
26
|
}>;
|
|
27
|
+
type OnStartRunner<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap> = (ctx: OnStartContext<PieceAuth, TriggerProps>) => Promise<unknown | void>;
|
|
27
28
|
export type WebhookHandshakeConfiguration = Static<typeof WebhookHandshakeConfiguration>;
|
|
28
29
|
export declare const WebhookRenewConfiguration: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
29
30
|
strategy: import("@sinclair/typebox").TLiteral<WebhookRenewStrategy.CRON>;
|
|
@@ -49,6 +50,7 @@ type BaseTriggerParams<PieceAuth extends PieceAuthProperty, TriggerProps extends
|
|
|
49
50
|
onDisable: (context: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
50
51
|
run: (context: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
|
|
51
52
|
test?: (context: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
|
|
53
|
+
onStart?: OnStartRunner<PieceAuth, TriggerProps>;
|
|
52
54
|
sampleData: unknown;
|
|
53
55
|
};
|
|
54
56
|
type WebhookTriggerParams<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = BaseTriggerParams<PieceAuth, TriggerProps, TS> & {
|
|
@@ -71,11 +73,12 @@ export declare class ITrigger<TS extends TriggerStrategy, PieceAuth extends Piec
|
|
|
71
73
|
readonly onRenew: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
72
74
|
readonly onEnable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
73
75
|
readonly onDisable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
|
|
76
|
+
readonly onStart: OnStartRunner<PieceAuth, TriggerProps>;
|
|
74
77
|
readonly run: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
|
|
75
78
|
readonly test: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
|
|
76
79
|
readonly sampleData: unknown;
|
|
77
80
|
readonly testStrategy: TriggerTestStrategy;
|
|
78
|
-
constructor(name: string, displayName: string, description: string, requireAuth: boolean, 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);
|
|
81
|
+
constructor(name: string, displayName: string, description: string, requireAuth: boolean, 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>, onStart: OnStartRunner<PieceAuth, TriggerProps>, run: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>, test: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>, sampleData: unknown, testStrategy: TriggerTestStrategy);
|
|
79
82
|
}
|
|
80
83
|
export type Trigger<PieceAuth extends PieceAuthProperty = any, TriggerProps extends InputPropertyMap = any, S extends TriggerStrategy = TriggerStrategy> = ITrigger<S, PieceAuth, TriggerProps>;
|
|
81
84
|
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>;
|
|
@@ -37,7 +37,7 @@ exports.WebhookRenewConfiguration = typebox_1.Type.Union([
|
|
|
37
37
|
}),
|
|
38
38
|
]);
|
|
39
39
|
class ITrigger {
|
|
40
|
-
constructor(name, displayName, description, requireAuth, props, type, handshakeConfiguration, onHandshake, renewConfiguration, onRenew, onEnable, onDisable, run, test, sampleData, testStrategy) {
|
|
40
|
+
constructor(name, displayName, description, requireAuth, props, type, handshakeConfiguration, onHandshake, renewConfiguration, onRenew, onEnable, onDisable, onStart, run, test, sampleData, testStrategy) {
|
|
41
41
|
this.name = name;
|
|
42
42
|
this.displayName = displayName;
|
|
43
43
|
this.description = description;
|
|
@@ -50,6 +50,7 @@ class ITrigger {
|
|
|
50
50
|
this.onRenew = onRenew;
|
|
51
51
|
this.onEnable = onEnable;
|
|
52
52
|
this.onDisable = onDisable;
|
|
53
|
+
this.onStart = onStart;
|
|
53
54
|
this.run = run;
|
|
54
55
|
this.test = test;
|
|
55
56
|
this.sampleData = sampleData;
|
|
@@ -59,14 +60,14 @@ class ITrigger {
|
|
|
59
60
|
exports.ITrigger = ITrigger;
|
|
60
61
|
// TODO refactor and extract common logic
|
|
61
62
|
const createTrigger = (params) => {
|
|
62
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
63
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
63
64
|
switch (params.type) {
|
|
64
65
|
case TriggerStrategy.WEBHOOK:
|
|
65
|
-
return new ITrigger(params.name, params.displayName, params.description, (_a = params.requireAuth) !== null && _a !== void 0 ? _a : true, params.props, params.type, (_b = params.handshakeConfiguration) !== null && _b !== void 0 ? _b : { strategy: WebhookHandshakeStrategy.NONE }, (_c = params.onHandshake) !== null && _c !== void 0 ? _c : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({ status: 200 }); })), (_d = params.renewConfiguration) !== null && _d !== void 0 ? _d : { strategy: WebhookRenewStrategy.NONE }, (_e = params.onRenew) !== null && _e !== void 0 ? _e : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); })), params.onEnable, params.onDisable, params.run, (
|
|
66
|
+
return new ITrigger(params.name, params.displayName, params.description, (_a = params.requireAuth) !== null && _a !== void 0 ? _a : true, params.props, params.type, (_b = params.handshakeConfiguration) !== null && _b !== void 0 ? _b : { strategy: WebhookHandshakeStrategy.NONE }, (_c = params.onHandshake) !== null && _c !== void 0 ? _c : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({ status: 200 }); })), (_d = params.renewConfiguration) !== null && _d !== void 0 ? _d : { strategy: WebhookRenewStrategy.NONE }, (_e = params.onRenew) !== null && _e !== void 0 ? _e : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); })), params.onEnable, params.onDisable, (_f = params.onStart) !== null && _f !== void 0 ? _f : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); })), params.run, (_g = params.test) !== null && _g !== void 0 ? _g : (() => Promise.resolve([params.sampleData])), params.sampleData, params.test ? shared_1.TriggerTestStrategy.TEST_FUNCTION : shared_1.TriggerTestStrategy.SIMULATION);
|
|
66
67
|
case TriggerStrategy.POLLING:
|
|
67
|
-
return new ITrigger(params.name, params.displayName, params.description, (
|
|
68
|
+
return new ITrigger(params.name, params.displayName, params.description, (_h = params.requireAuth) !== null && _h !== void 0 ? _h : true, 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, (_j = params.onStart) !== null && _j !== void 0 ? _j : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); })), params.run, (_k = params.test) !== null && _k !== void 0 ? _k : (() => Promise.resolve([params.sampleData])), params.sampleData, shared_1.TriggerTestStrategy.TEST_FUNCTION);
|
|
68
69
|
case TriggerStrategy.APP_WEBHOOK:
|
|
69
|
-
return new ITrigger(params.name, params.displayName, params.description, (
|
|
70
|
+
return new ITrigger(params.name, params.displayName, params.description, (_l = params.requireAuth) !== null && _l !== void 0 ? _l : true, 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, (_m = params.onStart) !== null && _m !== void 0 ? _m : (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); })), params.run, (_o = params.test) !== null && _o !== void 0 ? _o : (() => Promise.resolve([params.sampleData])), params.sampleData, shared_1.TriggerTestStrategy.TEST_FUNCTION);
|
|
70
71
|
}
|
|
71
72
|
};
|
|
72
73
|
exports.createTrigger = createTrigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/trigger/trigger.ts"],"names":[],"mappings":";;;;AAAA,+CAAiD;AAKjD,iDAA2D;AAE9C,QAAA,mBAAmB,GAAG,aAAa,CAAA;AAEhD,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,EAAE,CAAC;CACxC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/trigger/trigger.ts"],"names":[],"mappings":";;;;AAAA,+CAAiD;AAKjD,iDAA2D;AAE9C,QAAA,mBAAmB,GAAG,aAAa,CAAA;AAEhD,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,EAAE,CAAC;CACxC,CAAC,CAAA;AAMW,QAAA,yBAAyB,G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EAC/B,MAAM,CAAC,QAAQ,EACf,MAAM,CAAC,SAAS,EAChB,MAAA,MAAM,CAAC,OAAO,mCAAI,CAAC,GAAS,EAAE,0DAAC,OAAA,OAAO,CAAC,OAAO,EAAE,CAAA,GAAA,CAAC,EACjD,MAAM,CAAC,GAAG,EACV,MAAA,MAAM,CAAC,IAAI,mCAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAC3D,MAAM,CAAC,UAAU,EACjB,4BAAmB,CAAC,aAAa,CAClC,CAAA;IACL,CAAC;AACH,CAAC,CAAA;AAnEY,QAAA,aAAa,iBAmEzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatErrorMessage =
|
|
3
|
+
exports.formatErrorMessage = formatErrorMessage;
|
|
4
4
|
function formatErrorMessage(errorMessage, tokens) {
|
|
5
5
|
let formattedMessage = errorMessage;
|
|
6
6
|
for (const key in tokens) {
|
|
@@ -8,5 +8,4 @@ function formatErrorMessage(errorMessage, tokens) {
|
|
|
8
8
|
}
|
|
9
9
|
return formattedMessage;
|
|
10
10
|
}
|
|
11
|
-
exports.formatErrorMessage = formatErrorMessage;
|
|
12
11
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/validators/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/validators/utils.ts"],"names":[],"mappings":";;AAAA,gDASC;AATD,SAAgB,kBAAkB,CAChC,YAAoB,EACpB,MAA2B;IAE3B,IAAI,gBAAgB,GAAG,YAAY,CAAC;IACpC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACzB,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CAAC,IAAI,GAAG,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|