@activepieces/pieces-framework 0.7.44 → 0.7.46
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 +5 -3
- package/src/lib/context.js.map +1 -1
- package/src/lib/piece-metadata.d.ts +50 -0
- package/src/lib/property/index.d.ts +22 -2
- package/src/lib/property/index.js +6 -7
- package/src/lib/property/index.js.map +1 -1
- package/src/lib/property/input/array-property.d.ts +2 -1
- package/src/lib/property/input/array-property.js.map +1 -1
- package/src/lib/property/input/color-property.d.ts +9 -0
- package/src/lib/property/input/color-property.js +11 -0
- package/src/lib/property/input/color-property.js.map +1 -0
- package/src/lib/property/input/common.d.ts +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 +10 -1
- package/src/lib/property/input/index.js +8 -0
- package/src/lib/property/input/index.js.map +1 -1
- package/src/lib/property/input/property-type.d.ts +3 -1
- package/src/lib/property/input/property-type.js +2 -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.46",
|
|
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.158",
|
|
11
11
|
"tslib": "1.14.1"
|
|
12
12
|
},
|
|
13
13
|
"overrides": {
|
package/src/lib/context.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AppConnectionValue, ExecutionType, FlowRunId, PopulatedFlow, ProjectId,
|
|
|
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>;
|
|
@@ -33,12 +33,14 @@ type WebhookTriggerHookContext<PieceAuth extends PieceAuthProperty, TriggerProps
|
|
|
33
33
|
webhookUrl: string;
|
|
34
34
|
payload: TriggerPayload;
|
|
35
35
|
};
|
|
36
|
-
export type TriggerHookContext<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap, S extends TriggerStrategy> = S extends TriggerStrategy.APP_WEBHOOK ? AppWebhookTriggerHookContext<PieceAuth, TriggerProps> : S extends TriggerStrategy.POLLING ? PollingTriggerHookContext<PieceAuth, TriggerProps> : S extends TriggerStrategy.WEBHOOK ? WebhookTriggerHookContext<PieceAuth, TriggerProps>
|
|
36
|
+
export type TriggerHookContext<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap, S extends TriggerStrategy> = S extends TriggerStrategy.APP_WEBHOOK ? AppWebhookTriggerHookContext<PieceAuth, TriggerProps> : S extends TriggerStrategy.POLLING ? PollingTriggerHookContext<PieceAuth, TriggerProps> : S extends TriggerStrategy.WEBHOOK ? WebhookTriggerHookContext<PieceAuth, TriggerProps> & {
|
|
37
|
+
server: ServerContext;
|
|
38
|
+
} : never;
|
|
37
39
|
export type TestOrRunHookContext<PieceAuth extends PieceAuthProperty, TriggerProps extends InputPropertyMap, S extends TriggerStrategy> = TriggerHookContext<PieceAuth, TriggerProps, S> & {
|
|
38
40
|
files: FilesService;
|
|
39
41
|
};
|
|
40
42
|
export type StopHookParams = {
|
|
41
|
-
response:
|
|
43
|
+
response: RespondResponse;
|
|
42
44
|
};
|
|
43
45
|
export type RespondHookParams = {
|
|
44
46
|
response: RespondResponse;
|
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":";;;AAoNA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|
|
@@ -282,6 +282,11 @@ export declare const ActionBase: import("@sinclair/typebox").TObject<{
|
|
|
282
282
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
283
283
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
284
284
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
285
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
286
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
287
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
288
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
289
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
285
290
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
286
291
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
287
292
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -548,6 +553,11 @@ export declare const TriggerBase: import("@sinclair/typebox").TObject<{
|
|
|
548
553
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
549
554
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
550
555
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
556
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
557
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
558
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
559
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
560
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
551
561
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
552
562
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
553
563
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -935,6 +945,11 @@ export declare const PieceMetadata: import("@sinclair/typebox").TObject<{
|
|
|
935
945
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
936
946
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
937
947
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
948
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
949
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
950
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
951
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
952
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
938
953
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
939
954
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
940
955
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -1193,6 +1208,11 @@ export declare const PieceMetadata: import("@sinclair/typebox").TObject<{
|
|
|
1193
1208
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
1194
1209
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1195
1210
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1211
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1212
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
1213
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
1214
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1215
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1196
1216
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1197
1217
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
1198
1218
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -1579,6 +1599,11 @@ export declare const PieceMetadataSummary: import("@sinclair/typebox").TObject<{
|
|
|
1579
1599
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
1580
1600
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1581
1601
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1602
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1603
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
1604
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
1605
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1606
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1582
1607
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1583
1608
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
1584
1609
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -1851,6 +1876,11 @@ export declare const PieceMetadataSummary: import("@sinclair/typebox").TObject<{
|
|
|
1851
1876
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
1852
1877
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1853
1878
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1879
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
1880
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
1881
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
1882
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1883
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
1854
1884
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
1855
1885
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
1856
1886
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -2233,6 +2263,11 @@ export declare const PieceMetadataModel: import("@sinclair/typebox").TObject<{
|
|
|
2233
2263
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
2234
2264
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2235
2265
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2266
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
2267
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
2268
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
2269
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2270
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2236
2271
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
2237
2272
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
2238
2273
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -2491,6 +2526,11 @@ export declare const PieceMetadataModel: import("@sinclair/typebox").TObject<{
|
|
|
2491
2526
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
2492
2527
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2493
2528
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2529
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
2530
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
2531
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
2532
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2533
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2494
2534
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
2495
2535
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
2496
2536
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -2879,6 +2919,11 @@ export declare const PieceMetadataModelSummary: import("@sinclair/typebox").TObj
|
|
|
2879
2919
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
2880
2920
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2881
2921
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2922
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
2923
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
2924
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
2925
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2926
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
2882
2927
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
2883
2928
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
2884
2929
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -3151,6 +3196,11 @@ export declare const PieceMetadataModelSummary: import("@sinclair/typebox").TObj
|
|
|
3151
3196
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
3152
3197
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
3153
3198
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
3199
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
3200
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
3201
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
3202
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
3203
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
3154
3204
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
3155
3205
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
3156
3206
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -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';
|
|
@@ -180,6 +181,11 @@ export declare const PieceProperty: import("@sinclair/typebox").TUnion<[import("
|
|
|
180
181
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
181
182
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
182
183
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
184
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
185
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
186
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
187
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
188
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
183
189
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
184
190
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
185
191
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -424,6 +430,11 @@ export declare const PiecePropertyMap: import("@sinclair/typebox").TRecord<impor
|
|
|
424
430
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
425
431
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
426
432
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
433
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
434
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
435
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
436
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
437
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
427
438
|
}>]>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
428
439
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
429
440
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -670,6 +681,11 @@ export declare const InputPropertyMap: import("@sinclair/typebox").TRecord<impor
|
|
|
670
681
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
671
682
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
672
683
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
684
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
685
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
686
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
687
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
688
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
673
689
|
}>]>>;
|
|
674
690
|
export interface InputPropertyMap {
|
|
675
691
|
[name: string]: InputProperty;
|
|
@@ -680,3 +696,7 @@ export type PiecePropValueSchema<T extends PieceProperty> = T extends undefined
|
|
|
680
696
|
export type StaticPropsValue<T extends PiecePropertyMap> = {
|
|
681
697
|
[P in keyof T]: PiecePropValueSchema<T[P]>;
|
|
682
698
|
};
|
|
699
|
+
export type ExecutePropsResult<T extends PropertyType.DROPDOWN | PropertyType.MULTI_SELECT_DROPDOWN | PropertyType.DYNAMIC> = {
|
|
700
|
+
type: T;
|
|
701
|
+
options: T extends PropertyType.DROPDOWN ? DropdownState<unknown> : T extends PropertyType.MULTI_SELECT_DROPDOWN ? DropdownState<unknown> : InputPropertyMap;
|
|
702
|
+
};
|
|
@@ -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,iGAAA,QAAQ,OAAA;AACjB,mDAA6C;AAApC,2GAAA,SAAS,OAAA;AAClB,qDAAyD;AAAhD,iHAAA,iBAAiB,OAAA;AAC1B,kDAAuE;AAA9D,wGAAA,cAAc,OAAA;AAAC,uGAAA,aAAa,OAAA;AACrC,4DAAmE;AAA1D,kHAAA,mBAAmB,OAAA;AAC5B,mDAAqD;AAA5C,mHAAA,iBAAiB,OAAA;AAC1B,uDAA0D;AAAjD,kHAAA,iBAAiB,OAAA;AAC1B,yDAAsE;AAA7D,+GAAA,aAAa,OAAA;AAAE,+GAAA,aAAa,OAAA;AACrC,yCAAoD;AAA3C,4GAAA,kBAAkB,OAAA;AAC3B,+DAA6D;AAApD,qHAAA,gBAAgB,OAAA;AACzB,iEAA8D;AAArD,sHAAA,gBAAgB,OAAA;AACzB,uDAAyD;AAAhD,iHAAA,gBAAgB,OAAA;AACzB,2DAAyD;AAAhD,iHAAA,cAAc,OAAA;AACvB,2DAAyD;AAAhD,iHAAA,cAAc,OAAA;AACvB,4DAA2D;AAAlD,0GAAA,WAAW,OAAA;AACpB,4DAAyE;AAAhE,wHAAA,yBAAyB,OAAA;AAClC,oEAA0E;AAAjE,yHAAA,sBAAsB,OAAA;AAC/B,oEAAqF;AAA5E,oIAAA,iCAAiC,OAAA;AAC1C,oEAA0E;AAAjE,yHAAA,sBAAsB,OAAA;AAC/B,4EAAkD;AAClD,4DAA8D;AAArD,6GAAA,cAAc,OAAA;AACvB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AACrB,oEAAqE;AAA5D,oHAAA,iBAAiB,OAAA;AAC1B,8EAA0E;AAAjE,0HAAA,kBAAkB,OAAA;AAC3B,sEAAuE;AAA9D,sHAAA,kBAAkB,OAAA;AAC3B,uDAAoD;AAA3C,6GAAA,YAAY,OAAA;AACR,QAAA,aAAa,GAAG,cAAI,CAAC,KAAK,CAAC,CAAC,qBAAa,EAAE,kCAAiB,CAAC,CAAC,CAAA;AAG9D,QAAA,gBAAgB,GAAG,cAAI,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"}
|
|
@@ -7,6 +7,7 @@ import { CheckboxProperty } from "./checkbox-property";
|
|
|
7
7
|
import { NumberProperty } from "./number-property";
|
|
8
8
|
import { FileProperty } from "./file-property";
|
|
9
9
|
import { JsonProperty } from './json-property';
|
|
10
|
+
import { ColorProperty } from "./color-property";
|
|
10
11
|
export declare const ArraySubProps: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
11
12
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
12
13
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -127,7 +128,7 @@ export declare const ArrayProperty: import("@sinclair/typebox").TObject<{
|
|
|
127
128
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
128
129
|
}>]>>, import("@sinclair/typebox").TSchema]>;
|
|
129
130
|
}>;
|
|
130
|
-
export type ArraySubProps<R extends boolean> = Record<string, ShortTextProperty<R> | LongTextProperty<R> | StaticDropdownProperty<any, R> | MultiSelectDropdownProperty<any, R> | StaticMultiSelectDropdownProperty<any, R> | CheckboxProperty<R> | NumberProperty<R> | FileProperty<R> | JsonProperty<R>>;
|
|
131
|
+
export type ArraySubProps<R extends boolean> = Record<string, ShortTextProperty<R> | LongTextProperty<R> | StaticDropdownProperty<any, R> | MultiSelectDropdownProperty<any, R> | StaticMultiSelectDropdownProperty<any, R> | CheckboxProperty<R> | NumberProperty<R> | FileProperty<R> | JsonProperty<R> | ColorProperty<R>>;
|
|
131
132
|
export type ArrayProperty<R extends boolean> = BasePropertySchema & {
|
|
132
133
|
properties?: ArraySubProps<R>;
|
|
133
134
|
} & TPropertyValue<unknown[], PropertyType.ARRAY, R>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/array-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAC/C,mDAAsE;AACtE,gEAAuG;AACvG,4DAAuE;AACvE,2DAAuD;AACvD,uDAAmD;AACnD,mDAA+C;
|
|
1
|
+
{"version":3,"file":"array-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/array-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAC/C,mDAAsE;AACtE,gEAAuG;AACvG,4DAAuE;AACvE,2DAAuD;AACvD,uDAAmD;AACnD,mDAA+C;AAIlC,QAAA,aAAa,GAAG,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,KAAK,CAAC;IAC/D,iCAAiB;IACjB,gCAAgB;IAChB,wCAAsB;IACtB,2CAA2B;IAC3B,mDAAiC;IACjC,oCAAgB;IAChB,gCAAc;IACd,4BAAY;CACf,CAAC,CAAC,CAAA;AAEU,QAAA,aAAa,GAAG,cAAI,CAAC,SAAS,CAAC;IACxC,2BAAkB;IAClB,cAAI,CAAC,MAAM,CAAC;QACR,UAAU,EAAE,qBAAa;KAC5B,CAAC;IACF,IAAA,uBAAc,EAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,OAAO,EAAE,CAAC,EAAE,4BAAY,CAAC,KAAK,CAAC;CACjE,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BasePropertySchema, TPropertyValue } from "./common";
|
|
2
|
+
import { PropertyType } from "./property-type";
|
|
3
|
+
export declare const ColorProperty: 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 ColorProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.COLOR, R>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ColorProperty = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
const property_type_1 = require("./property-type");
|
|
7
|
+
exports.ColorProperty = typebox_1.Type.Composite([
|
|
8
|
+
common_1.BasePropertySchema,
|
|
9
|
+
(0, common_1.TPropertyValue)(typebox_1.Type.String(), property_type_1.PropertyType.COLOR)
|
|
10
|
+
]);
|
|
11
|
+
//# sourceMappingURL=color-property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-property.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/framework/src/lib/property/input/color-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,aAAa,GAAG,cAAI,CAAC,SAAS,CAAC;IACxC,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,MAAM,EAAE,EAAE,4BAAY,CAAC,KAAK,CAAC;CACpD,CAAC,CAAA"}
|
|
@@ -11,5 +11,5 @@ export type TPropertyValue<T, U extends PropertyType, REQUIRED extends boolean>
|
|
|
11
11
|
valueSchema: T;
|
|
12
12
|
type: U;
|
|
13
13
|
required: REQUIRED;
|
|
14
|
-
defaultValue?: U extends PropertyType.ARRAY ? unknown[] : U extends PropertyType.JSON ? object : U extends PropertyType.CHECKBOX ? boolean : U extends PropertyType.LONG_TEXT ? string : U extends PropertyType.SHORT_TEXT ? string : U extends PropertyType.NUMBER ? number : U extends PropertyType.DROPDOWN ? unknown : U extends PropertyType.MULTI_SELECT_DROPDOWN ? unknown[] : U extends PropertyType.STATIC_MULTI_SELECT_DROPDOWN ? unknown[] : U extends PropertyType.STATIC_DROPDOWN ? unknown : U extends PropertyType.DATE_TIME ? string : U extends PropertyType.FILE ? ApFile : unknown;
|
|
14
|
+
defaultValue?: U extends PropertyType.ARRAY ? unknown[] : U extends PropertyType.JSON ? object : U extends PropertyType.CHECKBOX ? boolean : U extends PropertyType.LONG_TEXT ? string : U extends PropertyType.SHORT_TEXT ? string : U extends PropertyType.NUMBER ? number : U extends PropertyType.DROPDOWN ? unknown : U extends PropertyType.MULTI_SELECT_DROPDOWN ? unknown[] : U extends PropertyType.STATIC_MULTI_SELECT_DROPDOWN ? unknown[] : U extends PropertyType.STATIC_DROPDOWN ? unknown : U extends PropertyType.DATE_TIME ? string : U extends PropertyType.FILE ? ApFile : U extends PropertyType.COLOR ? string : unknown;
|
|
15
15
|
};
|
|
@@ -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,8 @@ 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';
|
|
15
|
+
import { ColorProperty } from './color-property';
|
|
14
16
|
export declare const InputProperty: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
15
17
|
[x: string]: import("@sinclair/typebox").TSchema;
|
|
16
18
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
@@ -160,8 +162,13 @@ export declare const InputProperty: import("@sinclair/typebox").TUnion<[import("
|
|
|
160
162
|
[x: number]: import("@sinclair/typebox").TSchema;
|
|
161
163
|
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
162
164
|
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
165
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
166
|
+
[x: string]: import("@sinclair/typebox").TSchema;
|
|
167
|
+
[x: number]: import("@sinclair/typebox").TSchema;
|
|
168
|
+
displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
169
|
+
description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
|
|
163
170
|
}>]>;
|
|
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>;
|
|
171
|
+
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> | ColorProperty<boolean>;
|
|
165
172
|
type Properties<T> = Omit<T, 'valueSchema' | 'type' | 'defaultValidators' | 'defaultProcessors'>;
|
|
166
173
|
export declare const Property: {
|
|
167
174
|
ShortText<R extends boolean>(request: Properties<ShortTextProperty<R>>): R extends true ? ShortTextProperty<true> : ShortTextProperty<false>;
|
|
@@ -182,5 +189,7 @@ export declare const Property: {
|
|
|
182
189
|
StaticMultiSelectDropdown<T, R extends boolean = boolean>(request: Properties<StaticMultiSelectDropdownProperty<T, R>>): R extends true ? StaticMultiSelectDropdownProperty<T, true> : StaticMultiSelectDropdownProperty<T, false>;
|
|
183
190
|
DateTime<R extends boolean>(request: Properties<DateTimeProperty<R>>): R extends true ? DateTimeProperty<true> : DateTimeProperty<false>;
|
|
184
191
|
File<R extends boolean>(request: Properties<FileProperty<R>>): R extends true ? FileProperty<true> : FileProperty<false>;
|
|
192
|
+
Custom<R extends boolean>(request: Properties<CustomProperty<R>>): R extends true ? CustomProperty<true> : CustomProperty<false>;
|
|
193
|
+
Color<R extends boolean>(request: Properties<ColorProperty<R>>): R extends true ? ColorProperty<true> : ColorProperty<false>;
|
|
185
194
|
};
|
|
186
195
|
export {};
|
|
@@ -16,6 +16,7 @@ const number_property_1 = require("./number-property");
|
|
|
16
16
|
const object_property_1 = require("./object-property");
|
|
17
17
|
const property_type_1 = require("./property-type");
|
|
18
18
|
const text_property_1 = require("./text-property");
|
|
19
|
+
const color_property_1 = require("./color-property");
|
|
19
20
|
exports.InputProperty = typebox_1.Type.Union([
|
|
20
21
|
text_property_1.ShortTextProperty,
|
|
21
22
|
text_property_1.LongTextProperty,
|
|
@@ -32,6 +33,7 @@ exports.InputProperty = typebox_1.Type.Union([
|
|
|
32
33
|
json_property_1.JsonProperty,
|
|
33
34
|
date_time_property_1.DateTimeProperty,
|
|
34
35
|
file_property_1.FileProperty,
|
|
36
|
+
color_property_1.ColorProperty,
|
|
35
37
|
]);
|
|
36
38
|
exports.Property = {
|
|
37
39
|
ShortText(request) {
|
|
@@ -87,5 +89,11 @@ exports.Property = {
|
|
|
87
89
|
File(request) {
|
|
88
90
|
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.FILE });
|
|
89
91
|
},
|
|
92
|
+
Custom(request) {
|
|
93
|
+
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.CUSTOM });
|
|
94
|
+
},
|
|
95
|
+
Color(request) {
|
|
96
|
+
return Object.assign(Object.assign({}, request), { valueSchema: undefined, type: property_type_1.PropertyType.COLOR });
|
|
97
|
+
},
|
|
90
98
|
};
|
|
91
99
|
//# 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":"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"}
|
|
@@ -22,5 +22,7 @@ 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";
|
|
26
|
+
PropertyType["COLOR"] = "COLOR";
|
|
25
27
|
})(PropertyType || (exports.PropertyType = PropertyType = {}));
|
|
26
28
|
//# 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,YAsBX;AAtBD,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;IACjB,+BAAe,CAAA;AACnB,CAAC,EAtBW,YAAY,4BAAZ,YAAY,QAsBvB"}
|