@activepieces/pieces-framework 0.25.5 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/lib/action/action.d.ts +12 -12
- package/src/lib/action/action.js +9 -8
- package/src/lib/action/action.js.map +1 -1
- package/src/lib/index.d.ts +1 -0
- package/src/lib/index.js +1 -0
- package/src/lib/index.js.map +1 -1
- package/src/lib/piece-metadata.d.ts +4360 -3892
- package/src/lib/piece-metadata.js +48 -66
- package/src/lib/piece-metadata.js.map +1 -1
- package/src/lib/property/authentication/basic-auth-prop.d.ts +21 -20
- package/src/lib/property/authentication/basic-auth-prop.js +11 -18
- package/src/lib/property/authentication/basic-auth-prop.js.map +1 -1
- package/src/lib/property/authentication/common.d.ts +5 -4
- package/src/lib/property/authentication/common.js +4 -4
- package/src/lib/property/authentication/common.js.map +1 -1
- package/src/lib/property/authentication/custom-auth-prop.d.ts +47 -40
- package/src/lib/property/authentication/custom-auth-prop.js +3 -9
- package/src/lib/property/authentication/custom-auth-prop.js.map +1 -1
- package/src/lib/property/authentication/index.d.ts +110 -96
- package/src/lib/property/authentication/index.js +2 -2
- package/src/lib/property/authentication/index.js.map +1 -1
- package/src/lib/property/authentication/oauth2-prop.d.ts +167 -150
- package/src/lib/property/authentication/oauth2-prop.js +19 -23
- package/src/lib/property/authentication/oauth2-prop.js.map +1 -1
- package/src/lib/property/authentication/secret-text-property.d.ts +8 -6
- package/src/lib/property/authentication/secret-text-property.js +4 -7
- package/src/lib/property/authentication/secret-text-property.js.map +1 -1
- package/src/lib/property/index.d.ts +779 -671
- package/src/lib/property/index.js +4 -4
- package/src/lib/property/index.js.map +1 -1
- package/src/lib/property/input/array-property.d.ts +153 -131
- package/src/lib/property/input/array-property.js +3 -9
- package/src/lib/property/input/array-property.js.map +1 -1
- package/src/lib/property/input/checkbox-property.d.ts +8 -6
- package/src/lib/property/input/checkbox-property.js +2 -5
- package/src/lib/property/input/checkbox-property.js.map +1 -1
- package/src/lib/property/input/color-property.d.ts +8 -6
- package/src/lib/property/input/color-property.js +2 -5
- package/src/lib/property/input/color-property.js.map +1 -1
- package/src/lib/property/input/common.d.ts +10 -6
- package/src/lib/property/input/common.js +8 -8
- package/src/lib/property/input/common.js.map +1 -1
- package/src/lib/property/input/custom-property.d.ts +9 -6
- package/src/lib/property/input/custom-property.js +3 -9
- package/src/lib/property/input/custom-property.js.map +1 -1
- package/src/lib/property/input/date-time-property.d.ts +8 -6
- package/src/lib/property/input/date-time-property.js +2 -5
- package/src/lib/property/input/date-time-property.js.map +1 -1
- package/src/lib/property/input/dropdown/common.d.ts +13 -12
- package/src/lib/property/input/dropdown/common.js +8 -8
- package/src/lib/property/input/dropdown/common.js.map +1 -1
- package/src/lib/property/input/dropdown/dropdown-prop.d.ts +17 -12
- package/src/lib/property/input/dropdown/dropdown-prop.js +3 -15
- package/src/lib/property/input/dropdown/dropdown-prop.js.map +1 -1
- package/src/lib/property/input/dropdown/static-dropdown.d.ts +31 -28
- package/src/lib/property/input/dropdown/static-dropdown.js +3 -15
- package/src/lib/property/input/dropdown/static-dropdown.js.map +1 -1
- package/src/lib/property/input/dynamic-prop.d.ts +247 -215
- package/src/lib/property/input/dynamic-prop.js +4 -10
- package/src/lib/property/input/dynamic-prop.js.map +1 -1
- package/src/lib/property/input/file-property.d.ts +8 -6
- package/src/lib/property/input/file-property.js +2 -5
- package/src/lib/property/input/file-property.js.map +1 -1
- package/src/lib/property/input/index.d.ts +191 -161
- package/src/lib/property/input/index.js +2 -2
- package/src/lib/property/input/index.js.map +1 -1
- package/src/lib/property/input/json-property.d.ts +8 -6
- package/src/lib/property/input/json-property.js +2 -5
- package/src/lib/property/input/json-property.js.map +1 -1
- package/src/lib/property/input/markdown-property.d.ts +8 -6
- package/src/lib/property/input/markdown-property.js +2 -5
- package/src/lib/property/input/markdown-property.js.map +1 -1
- package/src/lib/property/input/number-property.d.ts +8 -6
- package/src/lib/property/input/number-property.js +2 -5
- package/src/lib/property/input/number-property.js.map +1 -1
- package/src/lib/property/input/object-property.d.ts +8 -6
- package/src/lib/property/input/object-property.js +2 -5
- package/src/lib/property/input/object-property.js.map +1 -1
- package/src/lib/property/input/text-property.d.ts +15 -12
- package/src/lib/property/input/text-property.js +3 -9
- package/src/lib/property/input/text-property.js.map +1 -1
- package/src/lib/property/util.d.ts +4 -2
- package/src/lib/property/util.js +38 -54
- package/src/lib/property/util.js.map +1 -1
- package/src/lib/test/index.d.ts +5 -0
- package/src/lib/test/index.js +73 -0
- package/src/lib/test/index.js.map +1 -0
- package/src/lib/trigger/trigger.d.ts +9 -9
- package/src/lib/trigger/trigger.js +7 -7
- package/src/lib/trigger/trigger.js.map +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { StaticDropdownProperty, StaticMultiSelectDropdownProperty } from "./dropdown/static-dropdown";
|
|
2
3
|
import { ShortTextProperty } from "./text-property";
|
|
3
4
|
import { BasePropertySchema, TPropertyValue } from "./common";
|
|
@@ -6,223 +7,254 @@ import { PropertyType } from "./property-type";
|
|
|
6
7
|
import { JsonProperty } from "./json-property";
|
|
7
8
|
import { ArrayProperty } from "./array-property";
|
|
8
9
|
import { ExtractPieceAuthPropertyTypeForMethods, InputPropertyMap, PieceAuthProperty } from "..";
|
|
9
|
-
export declare const DynamicProp:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
options:
|
|
20
|
-
disabled:
|
|
21
|
-
placeholder:
|
|
22
|
-
options:
|
|
23
|
-
label:
|
|
24
|
-
value:
|
|
25
|
-
}>>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
displayName:
|
|
64
|
-
description:
|
|
65
|
-
}>,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
displayName:
|
|
97
|
-
description:
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
10
|
+
export declare const DynamicProp: z.ZodUnion<readonly [z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
|
|
12
|
+
required: z.ZodBoolean;
|
|
13
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
14
|
+
displayName: z.ZodString;
|
|
15
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
|
|
18
|
+
required: z.ZodBoolean;
|
|
19
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
options: z.ZodObject<{
|
|
21
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
23
|
+
options: z.ZodArray<z.ZodObject<{
|
|
24
|
+
label: z.ZodString;
|
|
25
|
+
value: z.ZodUnknown;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
displayName: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<PropertyType.JSON>;
|
|
32
|
+
required: z.ZodBoolean;
|
|
33
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
34
|
+
displayName: z.ZodString;
|
|
35
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<PropertyType.ARRAY>;
|
|
38
|
+
required: z.ZodBoolean;
|
|
39
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
40
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
|
|
42
|
+
required: z.ZodBoolean;
|
|
43
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
44
|
+
displayName: z.ZodString;
|
|
45
|
+
description: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<PropertyType.LONG_TEXT>;
|
|
48
|
+
required: z.ZodBoolean;
|
|
49
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
50
|
+
displayName: z.ZodString;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
|
|
54
|
+
required: z.ZodBoolean;
|
|
55
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
56
|
+
options: z.ZodObject<{
|
|
57
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
59
|
+
options: z.ZodArray<z.ZodObject<{
|
|
60
|
+
label: z.ZodString;
|
|
61
|
+
value: z.ZodUnknown;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
displayName: z.ZodString;
|
|
65
|
+
description: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
refreshers: z.ZodArray<z.ZodString>;
|
|
68
|
+
type: z.ZodLiteral<PropertyType.MULTI_SELECT_DROPDOWN>;
|
|
69
|
+
required: z.ZodBoolean;
|
|
70
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
71
|
+
displayName: z.ZodString;
|
|
72
|
+
description: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<PropertyType.STATIC_MULTI_SELECT_DROPDOWN>;
|
|
75
|
+
required: z.ZodBoolean;
|
|
76
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
77
|
+
options: z.ZodObject<{
|
|
78
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
80
|
+
options: z.ZodArray<z.ZodObject<{
|
|
81
|
+
label: z.ZodString;
|
|
82
|
+
value: z.ZodUnknown;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
displayName: z.ZodString;
|
|
86
|
+
description: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
type: z.ZodLiteral<PropertyType.CHECKBOX>;
|
|
89
|
+
required: z.ZodBoolean;
|
|
90
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
91
|
+
displayName: z.ZodString;
|
|
92
|
+
description: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
type: z.ZodLiteral<PropertyType.NUMBER>;
|
|
95
|
+
required: z.ZodBoolean;
|
|
96
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
97
|
+
displayName: z.ZodString;
|
|
98
|
+
description: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
type: z.ZodLiteral<PropertyType.FILE>;
|
|
101
|
+
required: z.ZodBoolean;
|
|
102
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
103
|
+
displayName: z.ZodString;
|
|
104
|
+
description: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
type: z.ZodLiteral<PropertyType.DATE_TIME>;
|
|
107
|
+
required: z.ZodBoolean;
|
|
108
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
109
|
+
displayName: z.ZodString;
|
|
110
|
+
description: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>]>>;
|
|
112
|
+
displayName: z.ZodString;
|
|
113
|
+
description: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
+
type: z.ZodLiteral<PropertyType.STATIC_MULTI_SELECT_DROPDOWN>;
|
|
116
|
+
required: z.ZodBoolean;
|
|
117
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
118
|
+
options: z.ZodObject<{
|
|
119
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
121
|
+
options: z.ZodArray<z.ZodObject<{
|
|
122
|
+
label: z.ZodString;
|
|
123
|
+
value: z.ZodUnknown;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
displayName: z.ZodString;
|
|
127
|
+
description: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>]>;
|
|
113
129
|
export type DynamicProp = ShortTextProperty<boolean> | StaticDropdownProperty<any, boolean> | JsonProperty<boolean> | ArrayProperty<boolean> | StaticMultiSelectDropdownProperty<any, boolean>;
|
|
114
|
-
export declare const DynamicPropsValue:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
options:
|
|
125
|
-
disabled:
|
|
126
|
-
placeholder:
|
|
127
|
-
options:
|
|
128
|
-
label:
|
|
129
|
-
value:
|
|
130
|
-
}>>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
displayName:
|
|
169
|
-
description:
|
|
170
|
-
}>,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
displayName:
|
|
202
|
-
description:
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
130
|
+
export declare const DynamicPropsValue: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
|
|
132
|
+
required: z.ZodBoolean;
|
|
133
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
134
|
+
displayName: z.ZodString;
|
|
135
|
+
description: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
|
|
138
|
+
required: z.ZodBoolean;
|
|
139
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
140
|
+
options: z.ZodObject<{
|
|
141
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
143
|
+
options: z.ZodArray<z.ZodObject<{
|
|
144
|
+
label: z.ZodString;
|
|
145
|
+
value: z.ZodUnknown;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
displayName: z.ZodString;
|
|
149
|
+
description: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<PropertyType.JSON>;
|
|
152
|
+
required: z.ZodBoolean;
|
|
153
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
154
|
+
displayName: z.ZodString;
|
|
155
|
+
description: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
+
type: z.ZodLiteral<PropertyType.ARRAY>;
|
|
158
|
+
required: z.ZodBoolean;
|
|
159
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
160
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
|
|
162
|
+
required: z.ZodBoolean;
|
|
163
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
164
|
+
displayName: z.ZodString;
|
|
165
|
+
description: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
type: z.ZodLiteral<PropertyType.LONG_TEXT>;
|
|
168
|
+
required: z.ZodBoolean;
|
|
169
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
170
|
+
displayName: z.ZodString;
|
|
171
|
+
description: z.ZodOptional<z.ZodString>;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
+
type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
|
|
174
|
+
required: z.ZodBoolean;
|
|
175
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
176
|
+
options: z.ZodObject<{
|
|
177
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
179
|
+
options: z.ZodArray<z.ZodObject<{
|
|
180
|
+
label: z.ZodString;
|
|
181
|
+
value: z.ZodUnknown;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
displayName: z.ZodString;
|
|
185
|
+
description: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
refreshers: z.ZodArray<z.ZodString>;
|
|
188
|
+
type: z.ZodLiteral<PropertyType.MULTI_SELECT_DROPDOWN>;
|
|
189
|
+
required: z.ZodBoolean;
|
|
190
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
191
|
+
displayName: z.ZodString;
|
|
192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
194
|
+
type: z.ZodLiteral<PropertyType.STATIC_MULTI_SELECT_DROPDOWN>;
|
|
195
|
+
required: z.ZodBoolean;
|
|
196
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
197
|
+
options: z.ZodObject<{
|
|
198
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
200
|
+
options: z.ZodArray<z.ZodObject<{
|
|
201
|
+
label: z.ZodString;
|
|
202
|
+
value: z.ZodUnknown;
|
|
203
|
+
}, z.core.$strip>>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
displayName: z.ZodString;
|
|
206
|
+
description: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
type: z.ZodLiteral<PropertyType.CHECKBOX>;
|
|
209
|
+
required: z.ZodBoolean;
|
|
210
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
211
|
+
displayName: z.ZodString;
|
|
212
|
+
description: z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<PropertyType.NUMBER>;
|
|
215
|
+
required: z.ZodBoolean;
|
|
216
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
217
|
+
displayName: z.ZodString;
|
|
218
|
+
description: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
+
type: z.ZodLiteral<PropertyType.FILE>;
|
|
221
|
+
required: z.ZodBoolean;
|
|
222
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
223
|
+
displayName: z.ZodString;
|
|
224
|
+
description: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<PropertyType.DATE_TIME>;
|
|
227
|
+
required: z.ZodBoolean;
|
|
228
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
229
|
+
displayName: z.ZodString;
|
|
230
|
+
description: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strip>]>>;
|
|
232
|
+
displayName: z.ZodString;
|
|
233
|
+
description: z.ZodOptional<z.ZodString>;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<PropertyType.STATIC_MULTI_SELECT_DROPDOWN>;
|
|
236
|
+
required: z.ZodBoolean;
|
|
237
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
238
|
+
options: z.ZodObject<{
|
|
239
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
241
|
+
options: z.ZodArray<z.ZodObject<{
|
|
242
|
+
label: z.ZodString;
|
|
243
|
+
value: z.ZodUnknown;
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
displayName: z.ZodString;
|
|
247
|
+
description: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>]>>;
|
|
218
249
|
export type DynamicPropsValue = Record<string, DynamicProp['valueSchema']>;
|
|
219
|
-
export declare const DynamicProperties:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
displayName:
|
|
224
|
-
description:
|
|
225
|
-
|
|
250
|
+
export declare const DynamicProperties: z.ZodObject<{
|
|
251
|
+
type: z.ZodLiteral<PropertyType.DYNAMIC>;
|
|
252
|
+
required: z.ZodBoolean;
|
|
253
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
254
|
+
displayName: z.ZodString;
|
|
255
|
+
description: z.ZodOptional<z.ZodString>;
|
|
256
|
+
refreshers: z.ZodArray<z.ZodString>;
|
|
257
|
+
}, z.core.$strip>;
|
|
226
258
|
export type DynamicProperties<R extends boolean, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined> = BasePropertySchema & {
|
|
227
259
|
auth: PieceAuth;
|
|
228
260
|
props: DynamicPropertiesOptions<PieceAuth>;
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DynamicProperties = exports.DynamicPropsValue = exports.DynamicProp = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const static_dropdown_1 = require("./dropdown/static-dropdown");
|
|
6
6
|
const text_property_1 = require("./text-property");
|
|
7
7
|
const common_1 = require("./common");
|
|
8
8
|
const property_type_1 = require("./property-type");
|
|
9
9
|
const json_property_1 = require("./json-property");
|
|
10
10
|
const array_property_1 = require("./array-property");
|
|
11
|
-
exports.DynamicProp =
|
|
11
|
+
exports.DynamicProp = zod_1.z.union([
|
|
12
12
|
text_property_1.ShortTextProperty,
|
|
13
13
|
static_dropdown_1.StaticDropdownProperty,
|
|
14
14
|
json_property_1.JsonProperty,
|
|
15
15
|
array_property_1.ArrayProperty,
|
|
16
16
|
static_dropdown_1.StaticMultiSelectDropdownProperty,
|
|
17
17
|
]);
|
|
18
|
-
exports.DynamicPropsValue =
|
|
19
|
-
exports.DynamicProperties =
|
|
20
|
-
typebox_1.Type.Object({
|
|
21
|
-
refreshers: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
22
|
-
}),
|
|
23
|
-
common_1.BasePropertySchema,
|
|
24
|
-
(0, common_1.TPropertyValue)(typebox_1.Type.Unknown(), property_type_1.PropertyType.DYNAMIC),
|
|
25
|
-
]);
|
|
18
|
+
exports.DynamicPropsValue = zod_1.z.record(zod_1.z.string(), exports.DynamicProp);
|
|
19
|
+
exports.DynamicProperties = zod_1.z.object(Object.assign(Object.assign({ refreshers: zod_1.z.array(zod_1.z.string()) }, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.unknown(), property_type_1.PropertyType.DYNAMIC).shape));
|
|
26
20
|
//# sourceMappingURL=dynamic-prop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-prop.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/dynamic-prop.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"dynamic-prop.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/dynamic-prop.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gEAAuG;AACvG,mDAAoD;AACpD,qCAA8D;AAE9D,mDAA+C;AAC/C,mDAA+C;AAC/C,qDAAiD;AAGpC,QAAA,WAAW,GAAG,OAAC,CAAC,KAAK,CAAC;IACjC,iCAAiB;IACjB,wCAAsB;IACtB,4BAAY;IACZ,8BAAa;IACb,mDAAiC;CAClC,CAAC,CAAA;AAUW,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,mBAAW,CAAC,CAAC;AAItD,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,+BACvC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,IAC5B,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EAAC,OAAC,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,OAAO,CAAC,CAAC,KAAK,EAC1D,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { BasePropertySchema, TPropertyValue } from "./common";
|
|
2
3
|
import { PropertyType } from "./property-type";
|
|
3
4
|
export declare class ApFile {
|
|
@@ -7,10 +8,11 @@ export declare class ApFile {
|
|
|
7
8
|
constructor(filename: string, data: Buffer, extension?: string | undefined);
|
|
8
9
|
get base64(): string;
|
|
9
10
|
}
|
|
10
|
-
export declare const FileProperty:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
export declare const FileProperty: z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<PropertyType.FILE>;
|
|
13
|
+
required: z.ZodBoolean;
|
|
14
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
15
|
+
displayName: z.ZodString;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
16
18
|
export type FileProperty<R extends boolean> = BasePropertySchema & TPropertyValue<ApFile, PropertyType.FILE, R>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FileProperty = exports.ApFile = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
const property_type_1 = require("./property-type");
|
|
7
7
|
class ApFile {
|
|
@@ -15,8 +15,5 @@ class ApFile {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.ApFile = ApFile;
|
|
18
|
-
exports.FileProperty =
|
|
19
|
-
common_1.BasePropertySchema,
|
|
20
|
-
(0, common_1.TPropertyValue)(typebox_1.Type.Unknown(), property_type_1.PropertyType.FILE)
|
|
21
|
-
]);
|
|
18
|
+
exports.FileProperty = zod_1.z.object(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.unknown(), property_type_1.PropertyType.FILE).shape));
|
|
22
19
|
//# sourceMappingURL=file-property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/file-property.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"file-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/file-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAE/C,MAAa,MAAM;IACf,YACW,QAAgB,EAChB,IAAY,EACZ,SAAkB;QAFlB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,SAAI,GAAJ,IAAI,CAAQ;QACZ,cAAS,GAAT,SAAS,CAAS;IACzB,CAAC;IAEL,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;CACJ;AAVD,wBAUC;AAEY,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,iCAC7B,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EAAC,OAAC,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,IAAI,CAAC,CAAC,KAAK,EACzD,CAAA"}
|