@activepieces/pieces-framework 0.3.19 → 0.3.20
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
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/pieces-framework",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.26.8",
|
|
7
7
|
"lodash": "4.17.21",
|
|
8
8
|
"nanoid": "3.3.4",
|
|
9
|
-
"@activepieces/shared": "0.3.
|
|
9
|
+
"@activepieces/shared": "0.3.30",
|
|
10
10
|
"tslib": "2.4.1"
|
|
11
11
|
},
|
|
12
12
|
"main": "./src/index.js",
|
|
@@ -7,7 +7,7 @@ export declare type TPropertyValue<T, U extends PropertyType, REQUIRED extends b
|
|
|
7
7
|
valueSchema: T;
|
|
8
8
|
type: U;
|
|
9
9
|
required: REQUIRED;
|
|
10
|
-
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 ?
|
|
10
|
+
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 : unknown;
|
|
11
11
|
};
|
|
12
12
|
export declare type ShortTextProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.SHORT_TEXT, R>;
|
|
13
13
|
export declare type LongTextProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.LONG_TEXT, R>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropertyType } from "./property";
|
|
2
|
-
import { BasePropertySchema,
|
|
2
|
+
import { BasePropertySchema, ShortTextProperty, TPropertyValue } from "./base-prop";
|
|
3
3
|
import { StaticDropdownProperty, StaticMultiSelectDropdownProperty } from "./dropdown-prop";
|
|
4
|
-
declare type DynamicProp = ShortTextProperty<boolean> |
|
|
4
|
+
declare type DynamicProp = ShortTextProperty<boolean> | StaticDropdownProperty<any, boolean> | StaticMultiSelectDropdownProperty<any, boolean>;
|
|
5
5
|
export declare type DynamicPropsValue = Record<string, DynamicProp['valueSchema']>;
|
|
6
6
|
export declare type DynamicPropsSchema = BasePropertySchema & {
|
|
7
7
|
props: (propsValue: Record<string, DynamicPropsValue>) => Promise<Record<string, DynamicProp>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropertyType } from "./property";
|
|
2
|
-
import { BasePropertySchema,
|
|
2
|
+
import { BasePropertySchema, SecretTextProperty, ShortTextProperty, TPropertyValue } from "./base-prop";
|
|
3
3
|
import { StaticDropdownProperty } from "./dropdown-prop";
|
|
4
4
|
import { StaticPropsValue } from "./property";
|
|
5
|
-
declare type OAuthProp = ShortTextProperty<true> | SecretTextProperty<true> |
|
|
5
|
+
declare type OAuthProp = ShortTextProperty<true> | SecretTextProperty<true> | StaticDropdownProperty<any, true>;
|
|
6
6
|
export interface OAuth2Props {
|
|
7
|
-
[name: string]: ShortTextProperty<boolean> | SecretTextProperty<boolean> |
|
|
7
|
+
[name: string]: ShortTextProperty<boolean> | SecretTextProperty<boolean> | StaticDropdownProperty<unknown, boolean>;
|
|
8
8
|
}
|
|
9
9
|
export declare type OAuthPropsValue<T extends OAuth2Props> = StaticPropsValue<T>;
|
|
10
10
|
export declare type OAuth2PropertySchema = BasePropertySchema & {
|