@activepieces/pieces-framework 0.7.43 → 0.7.45
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 +2 -2
- package/src/lib/context.d.ts +8 -3
- package/src/lib/context.js.map +1 -1
- package/src/lib/property/index.d.ts +7 -2
- package/src/lib/property/index.js +6 -7
- package/src/lib/property/index.js.map +1 -1
- package/src/lib/property/input/common.js.map +1 -1
- package/src/lib/property/input/custom-property.d.ts +11 -0
- package/src/lib/property/input/custom-property.js +18 -0
- package/src/lib/property/input/custom-property.js.map +1 -0
- package/src/lib/property/input/dropdown/common.js.map +1 -1
- package/src/lib/property/input/dynamic-prop.d.ts +2 -1
- package/src/lib/property/input/dynamic-prop.js.map +1 -1
- package/src/lib/property/input/index.d.ts +3 -1
- package/src/lib/property/input/index.js +3 -0
- package/src/lib/property/input/index.js.map +1 -1
- package/src/lib/property/input/property-type.d.ts +2 -1
- package/src/lib/property/input/property-type.js +1 -0
- package/src/lib/property/input/property-type.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/pieces-framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.45",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.34.11",
|
|
7
7
|
"deepmerge-ts": "7.1.0",
|
|
8
8
|
"nanoid": "3.3.8",
|
|
9
9
|
"semver": "7.6.0",
|
|
10
|
-
"@activepieces/shared": "0.10.
|
|
10
|
+
"@activepieces/shared": "0.10.153",
|
|
11
11
|
"tslib": "1.14.1"
|
|
12
12
|
},
|
|
13
13
|
"overrides": {
|
package/src/lib/context.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AppConnectionValue, ExecutionType, FlowRunId, PopulatedFlow, ProjectId, ResumePayload, SeekPage, TriggerPayload } from '@activepieces/shared';
|
|
1
|
+
import { AppConnectionValue, ExecutionType, FlowRunId, PopulatedFlow, ProjectId, RespondResponse, ResumePayload, SeekPage, TriggerPayload } from '@activepieces/shared';
|
|
2
2
|
import { TriggerStrategy } from './trigger/trigger';
|
|
3
3
|
import { InputPropertyMap, PiecePropValueSchema, StaticPropsValue } from './property';
|
|
4
4
|
import { PieceAuthProperty } from './property/authentication';
|
|
5
|
-
import {
|
|
5
|
+
import { DelayPauseMetadata, PauseMetadata, WebhookPauseMetadata } from '@activepieces/shared';
|
|
6
6
|
type BaseContext<PieceAuth extends PieceAuthProperty, Props extends InputPropertyMap> = {
|
|
7
7
|
flows: FlowsContext;
|
|
8
8
|
auth: PiecePropValueSchema<PieceAuth>;
|
|
@@ -38,9 +38,13 @@ export type TestOrRunHookContext<PieceAuth extends PieceAuthProperty, TriggerPro
|
|
|
38
38
|
files: FilesService;
|
|
39
39
|
};
|
|
40
40
|
export type StopHookParams = {
|
|
41
|
-
response:
|
|
41
|
+
response: RespondResponse;
|
|
42
|
+
};
|
|
43
|
+
export type RespondHookParams = {
|
|
44
|
+
response: RespondResponse;
|
|
42
45
|
};
|
|
43
46
|
export type StopHook = (params?: StopHookParams) => void;
|
|
47
|
+
export type RespondHook = (params?: RespondHookParams) => void;
|
|
44
48
|
export type PauseHookParams = {
|
|
45
49
|
pauseMetadata: PauseMetadata;
|
|
46
50
|
};
|
|
@@ -74,6 +78,7 @@ export type RunContext = {
|
|
|
74
78
|
id: FlowRunId;
|
|
75
79
|
stop: StopHook;
|
|
76
80
|
pause: PauseHook;
|
|
81
|
+
respond: RespondHook;
|
|
77
82
|
};
|
|
78
83
|
export type OnStartContext<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap> = Omit<BaseContext<PieceAuth, TriggerProps>, 'flows'> & {
|
|
79
84
|
run: Pick<RunContext, 'id'>;
|
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":";;;AAmNA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { InputProperty } from './input';
|
|
2
2
|
import { PieceAuthProperty } from './authentication';
|
|
3
|
+
import { PropertyType } from './input/property-type';
|
|
4
|
+
import { DropdownState } from './input/dropdown/common';
|
|
3
5
|
export { ApFile } from './input/file-property';
|
|
4
6
|
export { DropdownProperty, MultiSelectDropdownProperty } from './input/dropdown/dropdown-prop';
|
|
5
|
-
export { DropdownState } from './input/dropdown/common';
|
|
6
7
|
export { DynamicProperties, DynamicProp } from './input/dynamic-prop';
|
|
7
8
|
export { PropertyType } from './input/property-type';
|
|
8
9
|
export { Property } from './input';
|
|
9
10
|
export { PieceAuth } from './authentication';
|
|
10
11
|
export { DynamicPropsValue } from './input/dynamic-prop';
|
|
11
|
-
export { DropdownOption } from './input/dropdown/common';
|
|
12
|
+
export { DropdownOption, DropdownState } from './input/dropdown/common';
|
|
12
13
|
export { OAuth2PropertyValue } from './authentication/oauth2-prop';
|
|
13
14
|
export { PieceAuthProperty } from './authentication';
|
|
14
15
|
export { ShortTextProperty } from './input/text-property';
|
|
@@ -680,3 +681,7 @@ export type PiecePropValueSchema<T extends PieceProperty> = T extends undefined
|
|
|
680
681
|
export type StaticPropsValue<T extends PiecePropertyMap> = {
|
|
681
682
|
[P in keyof T]: PiecePropValueSchema<T[P]>;
|
|
682
683
|
};
|
|
684
|
+
export type ExecutePropsResult<T extends PropertyType.DROPDOWN | PropertyType.MULTI_SELECT_DROPDOWN | PropertyType.DYNAMIC> = {
|
|
685
|
+
type: T;
|
|
686
|
+
options: T extends PropertyType.DROPDOWN ? DropdownState<unknown> : T extends PropertyType.MULTI_SELECT_DROPDOWN ? DropdownState<unknown> : InputPropertyMap;
|
|
687
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InputPropertyMap = exports.PiecePropertyMap = exports.PieceProperty = exports.JsonProperty = exports.CustomAuthProperty = exports.SecretTextProperty = exports.BasicAuthProperty = exports.FileProperty = exports.OAuth2Property = exports.StaticDropdownProperty = exports.StaticMultiSelectDropdownProperty = exports.BasicAuthPropertyValue = exports.OAuth2AuthorizationMethod = exports.OAuth2Props = exports.ObjectProperty = exports.NumberProperty = exports.LongTextProperty = exports.DateTimeProperty = exports.CheckboxProperty = exports.BasePropertySchema = exports.ArraySubProps = exports.ArrayProperty = exports.ShortTextProperty = exports.PieceAuthProperty = exports.OAuth2PropertyValue = exports.DropdownOption = exports.DynamicPropsValue = exports.PieceAuth = exports.Property = exports.PropertyType = exports.DynamicProp = exports.DynamicProperties = exports.
|
|
3
|
+
exports.InputPropertyMap = exports.PiecePropertyMap = exports.PieceProperty = exports.JsonProperty = exports.CustomAuthProperty = exports.SecretTextProperty = exports.BasicAuthProperty = exports.FileProperty = exports.OAuth2Property = exports.StaticDropdownProperty = exports.StaticMultiSelectDropdownProperty = exports.BasicAuthPropertyValue = exports.OAuth2AuthorizationMethod = exports.OAuth2Props = exports.ObjectProperty = exports.NumberProperty = exports.LongTextProperty = exports.DateTimeProperty = exports.CheckboxProperty = exports.BasePropertySchema = exports.ArraySubProps = exports.ArrayProperty = exports.ShortTextProperty = exports.PieceAuthProperty = exports.OAuth2PropertyValue = exports.DropdownState = exports.DropdownOption = exports.DynamicPropsValue = exports.PieceAuth = exports.Property = exports.PropertyType = exports.DynamicProp = exports.DynamicProperties = exports.MultiSelectDropdownProperty = exports.DropdownProperty = exports.ApFile = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const input_1 = require("./input");
|
|
6
6
|
const authentication_1 = require("./authentication");
|
|
@@ -11,8 +11,6 @@ Object.defineProperty(exports, "ApFile", { enumerable: true, get: function () {
|
|
|
11
11
|
var dropdown_prop_1 = require("./input/dropdown/dropdown-prop");
|
|
12
12
|
Object.defineProperty(exports, "DropdownProperty", { enumerable: true, get: function () { return dropdown_prop_1.DropdownProperty; } });
|
|
13
13
|
Object.defineProperty(exports, "MultiSelectDropdownProperty", { enumerable: true, get: function () { return dropdown_prop_1.MultiSelectDropdownProperty; } });
|
|
14
|
-
var common_1 = require("./input/dropdown/common");
|
|
15
|
-
Object.defineProperty(exports, "DropdownState", { enumerable: true, get: function () { return common_1.DropdownState; } });
|
|
16
14
|
var dynamic_prop_1 = require("./input/dynamic-prop");
|
|
17
15
|
Object.defineProperty(exports, "DynamicProperties", { enumerable: true, get: function () { return dynamic_prop_1.DynamicProperties; } });
|
|
18
16
|
Object.defineProperty(exports, "DynamicProp", { enumerable: true, get: function () { return dynamic_prop_1.DynamicProp; } });
|
|
@@ -24,8 +22,9 @@ var authentication_2 = require("./authentication");
|
|
|
24
22
|
Object.defineProperty(exports, "PieceAuth", { enumerable: true, get: function () { return authentication_2.PieceAuth; } });
|
|
25
23
|
var dynamic_prop_2 = require("./input/dynamic-prop");
|
|
26
24
|
Object.defineProperty(exports, "DynamicPropsValue", { enumerable: true, get: function () { return dynamic_prop_2.DynamicPropsValue; } });
|
|
27
|
-
var
|
|
28
|
-
Object.defineProperty(exports, "DropdownOption", { enumerable: true, get: function () { return
|
|
25
|
+
var common_1 = require("./input/dropdown/common");
|
|
26
|
+
Object.defineProperty(exports, "DropdownOption", { enumerable: true, get: function () { return common_1.DropdownOption; } });
|
|
27
|
+
Object.defineProperty(exports, "DropdownState", { enumerable: true, get: function () { return common_1.DropdownState; } });
|
|
29
28
|
var oauth2_prop_1 = require("./authentication/oauth2-prop");
|
|
30
29
|
Object.defineProperty(exports, "OAuth2PropertyValue", { enumerable: true, get: function () { return oauth2_prop_1.OAuth2PropertyValue; } });
|
|
31
30
|
var authentication_3 = require("./authentication");
|
|
@@ -35,8 +34,8 @@ Object.defineProperty(exports, "ShortTextProperty", { enumerable: true, get: fun
|
|
|
35
34
|
var array_property_1 = require("./input/array-property");
|
|
36
35
|
Object.defineProperty(exports, "ArrayProperty", { enumerable: true, get: function () { return array_property_1.ArrayProperty; } });
|
|
37
36
|
Object.defineProperty(exports, "ArraySubProps", { enumerable: true, get: function () { return array_property_1.ArraySubProps; } });
|
|
38
|
-
var
|
|
39
|
-
Object.defineProperty(exports, "BasePropertySchema", { enumerable: true, get: function () { return
|
|
37
|
+
var common_2 = require("./input/common");
|
|
38
|
+
Object.defineProperty(exports, "BasePropertySchema", { enumerable: true, get: function () { return common_2.BasePropertySchema; } });
|
|
40
39
|
var checkbox_property_1 = require("./input/checkbox-property");
|
|
41
40
|
Object.defineProperty(exports, "CheckboxProperty", { enumerable: true, get: function () { return checkbox_property_1.CheckboxProperty; } });
|
|
42
41
|
var date_time_property_1 = require("./input/date-time-property");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/property/index.ts"],"names":[],"mappings":";;;;AAAA,mCAAwC;AACxC,qDAAqD;AACrD,+CAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/property/index.ts"],"names":[],"mappings":";;;;AAAA,mCAAwC;AACxC,qDAAqD;AACrD,+CAAyC;AAIzC,WAAW;AACX,uDAA+C;AAAtC,uGAAA,MAAM,OAAA;AACf,gEAA+F;AAAtF,iHAAA,gBAAgB,OAAA;AAAE,4HAAA,2BAA2B,OAAA;AACtD,qDAAsE;AAA7D,iHAAA,iBAAiB,OAAA;AAAE,2GAAA,WAAW,OAAA;AACvC,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AACrB,iCAAmC;AAA1B,iGA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I,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,qBAAa,CAAC,CAAA;AAK5D,QAAA,gBAAgB,GAAG,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,qBAAa,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/common.ts"],"names":[],"mappings":";;;AAAA,+CAAmE;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/common.ts"],"names":[],"mappings":";;;AAAA,+CAAmE;AAMtD,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CAC5C,CAAC,CAAA;AAIK,MAAM,cAAc,GAAG,CAA4C,CAAI,EAAE,YAAe,EAAW,EAAE,CAAC,cAAI,CAAC,MAAM,CAAC;IACrH,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,YAAY,CAAC;IAChC,QAAQ,EAAE,cAAI,CAAC,OAAO,EAAE;IACxB,YAAY,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,GAAG,EAAE,CAAC;CAC1C,CAAC,CAAA;AAJW,QAAA,cAAc,kBAIzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BasePropertySchema, TPropertyValue } from "./common";
|
|
2
|
+
import { PropertyType } from "./property-type";
|
|
3
|
+
export declare const CustomProperty: import("@sinclair/typebox").TObject<{
|
|
4
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
5
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
6
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
7
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
8
|
+
}>;
|
|
9
|
+
export type CustomProperty<R extends boolean> = BasePropertySchema & TPropertyValue<unknown, PropertyType.CUSTOM, R> & {
|
|
10
|
+
code: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomProperty = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
const property_type_1 = require("./property-type");
|
|
7
|
+
// Code should be a valid javascript function that takes a single argument which is an object
|
|
8
|
+
/*
|
|
9
|
+
(ctx: {containerId:string, value: unknown, onChange: (value: unknown) => void, isEmbeded: boolean, projectId:string}) => void
|
|
10
|
+
*/
|
|
11
|
+
exports.CustomProperty = typebox_1.Type.Composite([
|
|
12
|
+
common_1.BasePropertySchema,
|
|
13
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.Unknown(), property_type_1.PropertyType.CUSTOM),
|
|
14
|
+
typebox_1.Type.Object({
|
|
15
|
+
code: typebox_1.Type.String(),
|
|
16
|
+
})
|
|
17
|
+
]);
|
|
18
|
+
//# sourceMappingURL=custom-property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/custom-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAG/C,8FAA8F;AAC9F;;EAEE;AACW,QAAA,cAAc,GAAG,cAAI,CAAC,SAAS,CAAC;IAC3C,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,MAAM,CAAC;IACnD,cAAI,CAAC,MAAM,CAAC;QACV,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/dropdown/common.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/dropdown/common.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAG5B,QAAA,cAAc,GAAG,cAAI,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,cAAI,CAAC,OAAO,EAAE;CACxB,CAAC,CAAA;AAOW,QAAA,aAAa,GAAG,cAAI,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,EAAE,CAAC;IACvC,WAAW,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACzC,OAAO,EAAE,cAAI,CAAC,KAAK,CAAC,sBAAc,CAAC;CACtC,CAAC,CAAA"}
|
|
@@ -5,6 +5,7 @@ import { PropertyContext } from "../../context";
|
|
|
5
5
|
import { PropertyType } from "./property-type";
|
|
6
6
|
import { JsonProperty } from "./json-property";
|
|
7
7
|
import { ArrayProperty } from "./array-property";
|
|
8
|
+
import { InputPropertyMap } from "..";
|
|
8
9
|
export declare const DynamicProp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
9
10
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
10
11
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -213,6 +214,6 @@ export declare const DynamicProperties: import("@sinclair/typebox").TObject<{
|
|
|
213
214
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
214
215
|
}>;
|
|
215
216
|
export type DynamicProperties<R extends boolean> = BasePropertySchema & {
|
|
216
|
-
props: (propsValue: Record<string, DynamicPropsValue>, ctx: PropertyContext) => Promise<
|
|
217
|
+
props: (propsValue: Record<string, DynamicPropsValue>, ctx: PropertyContext) => Promise<InputPropertyMap>;
|
|
217
218
|
refreshers: string[];
|
|
218
219
|
} & TPropertyValue<DynamicPropsValue, PropertyType.DYNAMIC, R>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-prop.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/dynamic-prop.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,gEAAuG;AACvG,mDAAoD;AACpD,qCAA8D;AAE9D,mDAA+C;AAC/C,mDAA+C;AAC/C,qDAAiD;
|
|
1
|
+
{"version":3,"file":"dynamic-prop.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/dynamic-prop.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,gEAAuG;AACvG,mDAAoD;AACpD,qCAA8D;AAE9D,mDAA+C;AAC/C,mDAA+C;AAC/C,qDAAiD;AAGpC,QAAA,WAAW,GAAG,cAAI,CAAC,KAAK,CAAC;IACpC,iCAAiB;IACjB,wCAAsB;IACtB,4BAAY;IACZ,8BAAa;IACb,mDAAiC;CAClC,CAAC,CAAA;AASW,QAAA,iBAAiB,GAAG,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,mBAAW,CAAC,CAAC;AAI5D,QAAA,iBAAiB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC9C,cAAI,CAAC,MAAM,CAAC;QACV,UAAU,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;KACtC,CAAC;IACF,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,OAAO,CAAC;CACrD,CAAC,CAAA"}
|
|
@@ -11,6 +11,7 @@ import { MarkdownVariant } from '@activepieces/shared';
|
|
|
11
11
|
import { NumberProperty } from './number-property';
|
|
12
12
|
import { ObjectProperty } from './object-property';
|
|
13
13
|
import { LongTextProperty, ShortTextProperty } from './text-property';
|
|
14
|
+
import { CustomProperty } from './custom-property';
|
|
14
15
|
export declare const InputProperty: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
15
16
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
16
17
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -161,7 +162,7 @@ export declare const InputProperty: import("@sinclair/typebox").TUnion<[import("
|
|
|
161
162
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
162
163
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
163
164
|
}>]>;
|
|
164
|
-
export type InputProperty = ShortTextProperty<boolean> | LongTextProperty<boolean> | MarkDownProperty | CheckboxProperty<boolean> | DropdownProperty<any, boolean> | StaticDropdownProperty<any, boolean> | NumberProperty<boolean> | ArrayProperty<boolean> | ObjectProperty<boolean> | JsonProperty<boolean> | MultiSelectDropdownProperty<unknown, boolean> | StaticMultiSelectDropdownProperty<unknown, boolean> | DynamicProperties<boolean> | DateTimeProperty<boolean> | FileProperty<boolean>;
|
|
165
|
+
export type InputProperty = ShortTextProperty<boolean> | LongTextProperty<boolean> | MarkDownProperty | CheckboxProperty<boolean> | DropdownProperty<any, boolean> | StaticDropdownProperty<any, boolean> | NumberProperty<boolean> | ArrayProperty<boolean> | ObjectProperty<boolean> | JsonProperty<boolean> | MultiSelectDropdownProperty<unknown, boolean> | StaticMultiSelectDropdownProperty<unknown, boolean> | DynamicProperties<boolean> | DateTimeProperty<boolean> | FileProperty<boolean> | CustomProperty<boolean>;
|
|
165
166
|
type Properties<T> = Omit<T, 'valueSchema' | 'type' | 'defaultValidators' | 'defaultProcessors'>;
|
|
166
167
|
export declare const Property: {
|
|
167
168
|
ShortText<R extends boolean>(request: Properties<ShortTextProperty<R>>): R extends true ? ShortTextProperty<true> : ShortTextProperty<false>;
|
|
@@ -182,5 +183,6 @@ export declare const Property: {
|
|
|
182
183
|
StaticMultiSelectDropdown<T, R extends boolean = boolean>(request: Properties<StaticMultiSelectDropdownProperty<T, R>>): R extends true ? StaticMultiSelectDropdownProperty<T, true> : StaticMultiSelectDropdownProperty<T, false>;
|
|
183
184
|
DateTime<R extends boolean>(request: Properties<DateTimeProperty<R>>): R extends true ? DateTimeProperty<true> : DateTimeProperty<false>;
|
|
184
185
|
File<R extends boolean>(request: Properties<FileProperty<R>>): R extends true ? FileProperty<true> : FileProperty<false>;
|
|
186
|
+
Custom<R extends boolean>(request: Properties<CustomProperty<R>>): R extends true ? CustomProperty<true> : CustomProperty<false>;
|
|
185
187
|
};
|
|
186
188
|
export {};
|
|
@@ -87,5 +87,8 @@ exports.Property = {
|
|
|
87
87
|
File(request) {
|
|
88
88
|
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.FILE });
|
|
89
89
|
},
|
|
90
|
+
Custom(request) {
|
|
91
|
+
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.CUSTOM });
|
|
92
|
+
},
|
|
90
93
|
};
|
|
91
94
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,qDAAiD;AACjD,2DAAuD;AACvD,6DAAwD;AACxD,4DAGkC;AAClC,gEAGoC;AACpC,iDAAmD;AACnD,mDAA+C;AAC/C,mDAA+C;AAC/C,2DAAuD;AACvD,iDAAuD;AACvD,uDAAmD;AACnD,uDAAmD;AACnD,mDAA+C;AAC/C,mDAAsE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/index.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qDAAiD;AACjD,2DAAuD;AACvD,6DAAwD;AACxD,4DAGkC;AAClC,gEAGoC;AACpC,iDAAmD;AACnD,mDAA+C;AAC/C,mDAA+C;AAC/C,2DAAuD;AACvD,iDAAuD;AACvD,uDAAmD;AACnD,uDAAmD;AACnD,mDAA+C;AAC/C,mDAAsE;AAGzD,QAAA,aAAa,GAAG,cAAI,CAAC,KAAK,CAAC;IACtC,iCAAiB;IACjB,gCAAgB;IAChB,oCAAgB;IAChB,oCAAgB;IAChB,wCAAsB;IACtB,mDAAiC;IACjC,gCAAgB;IAChB,2CAA2B;IAC3B,gCAAiB;IACjB,gCAAc;IACd,8BAAa;IACb,gCAAc;IACd,4BAAY;IACZ,qCAAgB;IAChB,4BAAY;CACb,CAAC,CAAC;AAyBU,QAAA,QAAQ,GAAG;IACtB,SAAS,CACP,OAAyC;QAEzC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,UAAU,GAGH,CAAC;IAC/B,CAAC;IACD,QAAQ,CACN,OAAwC;QAExC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,QAAQ,GAGF,CAAC;IAC9B,CAAC;IACD,QAAQ,CACN,OAAwC;QAExC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,SAAS,GAGH,CAAC;IAC9B,CAAC;IACD,QAAQ,CAAC,OAGR;;QACC,OAAO;YACL,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,OAAO,CAAC,KAAK;YAC1B,IAAI,EAAE,4BAAY,CAAC,QAAQ;YAC3B,WAAW,EAAE,SAAkB;YA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EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,4BAA4B,GAGF,CAAC;IAClD,CAAC;IACD,QAAQ,CACN,OAAwC;QAExC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,SAAS,GAGH,CAAC;IAC9B,CAAC;IACD,IAAI,CACF,OAAoC;QAEpC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,IAAI,GACgD,CAAC;IAC5E,CAAC;IACD,MAAM,CACJ,OAAsC;QAEtC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,MAAM,GACkD,CAAC;IAChF,CAAC;CACF,CAAC"}
|
|
@@ -22,5 +22,6 @@ var PropertyType;
|
|
|
22
22
|
PropertyType["CUSTOM_AUTH"] = "CUSTOM_AUTH";
|
|
23
23
|
PropertyType["DATE_TIME"] = "DATE_TIME";
|
|
24
24
|
PropertyType["FILE"] = "FILE";
|
|
25
|
+
PropertyType["CUSTOM"] = "CUSTOM";
|
|
25
26
|
})(PropertyType || (exports.PropertyType = PropertyType = {}));
|
|
26
27
|
//# sourceMappingURL=property-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-type.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/property-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"property-type.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/property-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAqBX;AArBD,WAAY,YAAY;IACpB,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,mDAAmC,CAAA;IACnC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,2CAA2B,CAAA;IAC3B,+BAAe,CAAA;IACf,iCAAiB,CAAA;IACjB,yCAAyB,CAAA;IACzB,6BAAa,CAAA;IACb,+DAA+C,CAAA;IAC/C,6EAA6D,CAAA;IAC7D,mCAAmB,CAAA;IACnB,2CAA2B,CAAA;IAC3B,uCAAuB,CAAA;IACvB,6BAAa,CAAA;IACb,iCAAiB,CAAA;AACrB,CAAC,EArBW,YAAY,4BAAZ,YAAY,QAqBvB"}
|