@activepieces/pieces-framework 0.25.6 → 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.
Files changed (85) hide show
  1. package/package.json +3 -3
  2. package/src/lib/action/action.d.ts +12 -12
  3. package/src/lib/action/action.js +9 -8
  4. package/src/lib/action/action.js.map +1 -1
  5. package/src/lib/piece-metadata.d.ts +4360 -3892
  6. package/src/lib/piece-metadata.js +48 -66
  7. package/src/lib/piece-metadata.js.map +1 -1
  8. package/src/lib/property/authentication/basic-auth-prop.d.ts +21 -20
  9. package/src/lib/property/authentication/basic-auth-prop.js +11 -18
  10. package/src/lib/property/authentication/basic-auth-prop.js.map +1 -1
  11. package/src/lib/property/authentication/common.d.ts +5 -4
  12. package/src/lib/property/authentication/common.js +4 -4
  13. package/src/lib/property/authentication/common.js.map +1 -1
  14. package/src/lib/property/authentication/custom-auth-prop.d.ts +47 -40
  15. package/src/lib/property/authentication/custom-auth-prop.js +3 -9
  16. package/src/lib/property/authentication/custom-auth-prop.js.map +1 -1
  17. package/src/lib/property/authentication/index.d.ts +110 -96
  18. package/src/lib/property/authentication/index.js +2 -2
  19. package/src/lib/property/authentication/index.js.map +1 -1
  20. package/src/lib/property/authentication/oauth2-prop.d.ts +167 -150
  21. package/src/lib/property/authentication/oauth2-prop.js +19 -23
  22. package/src/lib/property/authentication/oauth2-prop.js.map +1 -1
  23. package/src/lib/property/authentication/secret-text-property.d.ts +8 -6
  24. package/src/lib/property/authentication/secret-text-property.js +4 -7
  25. package/src/lib/property/authentication/secret-text-property.js.map +1 -1
  26. package/src/lib/property/index.d.ts +779 -671
  27. package/src/lib/property/index.js +4 -4
  28. package/src/lib/property/index.js.map +1 -1
  29. package/src/lib/property/input/array-property.d.ts +153 -131
  30. package/src/lib/property/input/array-property.js +3 -9
  31. package/src/lib/property/input/array-property.js.map +1 -1
  32. package/src/lib/property/input/checkbox-property.d.ts +8 -6
  33. package/src/lib/property/input/checkbox-property.js +2 -5
  34. package/src/lib/property/input/checkbox-property.js.map +1 -1
  35. package/src/lib/property/input/color-property.d.ts +8 -6
  36. package/src/lib/property/input/color-property.js +2 -5
  37. package/src/lib/property/input/color-property.js.map +1 -1
  38. package/src/lib/property/input/common.d.ts +10 -6
  39. package/src/lib/property/input/common.js +8 -8
  40. package/src/lib/property/input/common.js.map +1 -1
  41. package/src/lib/property/input/custom-property.d.ts +9 -6
  42. package/src/lib/property/input/custom-property.js +3 -9
  43. package/src/lib/property/input/custom-property.js.map +1 -1
  44. package/src/lib/property/input/date-time-property.d.ts +8 -6
  45. package/src/lib/property/input/date-time-property.js +2 -5
  46. package/src/lib/property/input/date-time-property.js.map +1 -1
  47. package/src/lib/property/input/dropdown/common.d.ts +13 -12
  48. package/src/lib/property/input/dropdown/common.js +8 -8
  49. package/src/lib/property/input/dropdown/common.js.map +1 -1
  50. package/src/lib/property/input/dropdown/dropdown-prop.d.ts +17 -12
  51. package/src/lib/property/input/dropdown/dropdown-prop.js +3 -15
  52. package/src/lib/property/input/dropdown/dropdown-prop.js.map +1 -1
  53. package/src/lib/property/input/dropdown/static-dropdown.d.ts +31 -28
  54. package/src/lib/property/input/dropdown/static-dropdown.js +3 -15
  55. package/src/lib/property/input/dropdown/static-dropdown.js.map +1 -1
  56. package/src/lib/property/input/dynamic-prop.d.ts +247 -215
  57. package/src/lib/property/input/dynamic-prop.js +4 -10
  58. package/src/lib/property/input/dynamic-prop.js.map +1 -1
  59. package/src/lib/property/input/file-property.d.ts +8 -6
  60. package/src/lib/property/input/file-property.js +2 -5
  61. package/src/lib/property/input/file-property.js.map +1 -1
  62. package/src/lib/property/input/index.d.ts +191 -161
  63. package/src/lib/property/input/index.js +2 -2
  64. package/src/lib/property/input/index.js.map +1 -1
  65. package/src/lib/property/input/json-property.d.ts +8 -6
  66. package/src/lib/property/input/json-property.js +2 -5
  67. package/src/lib/property/input/json-property.js.map +1 -1
  68. package/src/lib/property/input/markdown-property.d.ts +8 -6
  69. package/src/lib/property/input/markdown-property.js +2 -5
  70. package/src/lib/property/input/markdown-property.js.map +1 -1
  71. package/src/lib/property/input/number-property.d.ts +8 -6
  72. package/src/lib/property/input/number-property.js +2 -5
  73. package/src/lib/property/input/number-property.js.map +1 -1
  74. package/src/lib/property/input/object-property.d.ts +8 -6
  75. package/src/lib/property/input/object-property.js +2 -5
  76. package/src/lib/property/input/object-property.js.map +1 -1
  77. package/src/lib/property/input/text-property.d.ts +15 -12
  78. package/src/lib/property/input/text-property.js +3 -9
  79. package/src/lib/property/input/text-property.js.map +1 -1
  80. package/src/lib/property/util.d.ts +4 -2
  81. package/src/lib/property/util.js +38 -54
  82. package/src/lib/property/util.js.map +1 -1
  83. package/src/lib/trigger/trigger.d.ts +9 -9
  84. package/src/lib/trigger/trigger.js +7 -7
  85. package/src/lib/trigger/trigger.js.map +1 -1
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import { ArrayProperty } from './array-property';
2
3
  import { CheckboxProperty } from './checkbox-property';
3
4
  import { DateTimeProperty } from './date-time-property';
@@ -10,171 +11,200 @@ import { MarkDownProperty } from './markdown-property';
10
11
  import { MarkdownVariant } from '@activepieces/shared';
11
12
  import { NumberProperty } from './number-property';
12
13
  import { ObjectProperty } from './object-property';
14
+ import { PropertyType } from './property-type';
13
15
  import { LongTextProperty, ShortTextProperty } from './text-property';
14
16
  import { CustomProperty, CustomPropertyCodeFunctionParams } from './custom-property';
15
17
  import { ColorProperty } from './color-property';
16
18
  import { PieceAuthProperty } from '../authentication';
17
- export declare const InputProperty: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
18
- [x: string]: import("@sinclair/typebox").TSchema;
19
- [x: number]: import("@sinclair/typebox").TSchema;
20
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
21
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
22
- }>, import("@sinclair/typebox").TObject<{
23
- [x: string]: import("@sinclair/typebox").TSchema;
24
- [x: number]: import("@sinclair/typebox").TSchema;
25
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
26
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
27
- }>, import("@sinclair/typebox").TObject<{
28
- [x: string]: import("@sinclair/typebox").TSchema;
29
- [x: number]: import("@sinclair/typebox").TSchema;
30
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
31
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
32
- }>, import("@sinclair/typebox").TObject<{
33
- [x: string]: import("@sinclair/typebox").TSchema;
34
- [x: number]: import("@sinclair/typebox").TSchema;
35
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
36
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
37
- }>, import("@sinclair/typebox").TObject<{
38
- [x: string]: import("@sinclair/typebox").TSchema;
39
- [x: number]: import("@sinclair/typebox").TSchema;
40
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
41
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
42
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
43
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
44
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
46
- label: import("@sinclair/typebox").TString;
47
- value: import("@sinclair/typebox").TUnknown;
48
- }>>;
49
- }>, import("@sinclair/typebox").TSchema]>;
50
- }>, import("@sinclair/typebox").TObject<{
51
- [x: string]: import("@sinclair/typebox").TSchema;
52
- [x: number]: import("@sinclair/typebox").TSchema;
53
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
54
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
55
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
56
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
57
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
58
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
59
- label: import("@sinclair/typebox").TString;
60
- value: import("@sinclair/typebox").TUnknown;
61
- }>>;
62
- }>, import("@sinclair/typebox").TSchema]>;
63
- }>, import("@sinclair/typebox").TObject<{
64
- [x: string]: import("@sinclair/typebox").TSchema;
65
- [x: number]: import("@sinclair/typebox").TSchema;
66
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
67
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
68
- }>, import("@sinclair/typebox").TObject<{
69
- [x: string]: import("@sinclair/typebox").TSchema;
70
- [x: number]: import("@sinclair/typebox").TSchema;
71
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
72
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
73
- }>, import("@sinclair/typebox").TObject<{
74
- [x: string]: import("@sinclair/typebox").TSchema;
75
- [x: number]: import("@sinclair/typebox").TSchema;
76
- refreshers: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TSchema]>;
77
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
78
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
79
- }>, import("@sinclair/typebox").TObject<{
80
- [x: string]: import("@sinclair/typebox").TSchema;
81
- [x: number]: import("@sinclair/typebox").TSchema;
82
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
83
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
84
- }>, import("@sinclair/typebox").TObject<{
85
- [x: string]: import("@sinclair/typebox").TSchema;
86
- [x: number]: import("@sinclair/typebox").TSchema;
87
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
88
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
89
- properties: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
90
- [x: string]: import("@sinclair/typebox").TSchema;
91
- [x: number]: import("@sinclair/typebox").TSchema;
92
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
93
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
94
- }>, import("@sinclair/typebox").TObject<{
95
- [x: string]: import("@sinclair/typebox").TSchema;
96
- [x: number]: import("@sinclair/typebox").TSchema;
97
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
98
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
99
- }>, import("@sinclair/typebox").TObject<{
100
- [x: string]: import("@sinclair/typebox").TSchema;
101
- [x: number]: import("@sinclair/typebox").TSchema;
102
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
103
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
104
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
105
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
106
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
107
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
108
- label: import("@sinclair/typebox").TString;
109
- value: import("@sinclair/typebox").TUnknown;
110
- }>>;
111
- }>, import("@sinclair/typebox").TSchema]>;
112
- }>, import("@sinclair/typebox").TObject<{
113
- [x: string]: import("@sinclair/typebox").TSchema;
114
- [x: number]: import("@sinclair/typebox").TSchema;
115
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
116
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
117
- }>, import("@sinclair/typebox").TObject<{
118
- [x: string]: import("@sinclair/typebox").TSchema;
119
- [x: number]: import("@sinclair/typebox").TSchema;
120
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
121
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
122
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
123
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
124
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
125
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
126
- label: import("@sinclair/typebox").TString;
127
- value: import("@sinclair/typebox").TUnknown;
128
- }>>;
129
- }>, import("@sinclair/typebox").TSchema]>;
130
- }>, import("@sinclair/typebox").TObject<{
131
- [x: string]: import("@sinclair/typebox").TSchema;
132
- [x: number]: import("@sinclair/typebox").TSchema;
133
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
134
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
135
- }>, import("@sinclair/typebox").TObject<{
136
- [x: string]: import("@sinclair/typebox").TSchema;
137
- [x: number]: import("@sinclair/typebox").TSchema;
138
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
139
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
140
- }>, import("@sinclair/typebox").TObject<{
141
- [x: string]: import("@sinclair/typebox").TSchema;
142
- [x: number]: import("@sinclair/typebox").TSchema;
143
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
144
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
145
- }>, import("@sinclair/typebox").TObject<{
146
- [x: string]: import("@sinclair/typebox").TSchema;
147
- [x: number]: import("@sinclair/typebox").TSchema;
148
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
149
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
150
- }>]>>, import("@sinclair/typebox").TSchema]>;
151
- }>, import("@sinclair/typebox").TObject<{
152
- [x: string]: import("@sinclair/typebox").TSchema;
153
- [x: number]: import("@sinclair/typebox").TSchema;
154
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
155
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
156
- }>, import("@sinclair/typebox").TObject<{
157
- [x: string]: import("@sinclair/typebox").TSchema;
158
- [x: number]: import("@sinclair/typebox").TSchema;
159
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
160
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
161
- }>, import("@sinclair/typebox").TObject<{
162
- [x: string]: import("@sinclair/typebox").TSchema;
163
- [x: number]: import("@sinclair/typebox").TSchema;
164
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
165
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
166
- }>, import("@sinclair/typebox").TObject<{
167
- [x: string]: import("@sinclair/typebox").TSchema;
168
- [x: number]: import("@sinclair/typebox").TSchema;
169
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
170
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
171
- }>, import("@sinclair/typebox").TObject<{
172
- [x: string]: import("@sinclair/typebox").TSchema;
173
- [x: number]: import("@sinclair/typebox").TSchema;
174
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
175
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
176
- }>]>;
177
- export type InputProperty = ShortTextProperty<boolean> | LongTextProperty<boolean> | MarkDownProperty | CheckboxProperty<boolean> | DropdownProperty<any, boolean, PieceAuthProperty | undefined | PieceAuthProperty[]> | StaticDropdownProperty<any, boolean> | NumberProperty<boolean> | ArrayProperty<boolean> | ObjectProperty<boolean> | JsonProperty<boolean> | MultiSelectDropdownProperty<unknown, boolean, PieceAuthProperty | undefined | PieceAuthProperty[]> | StaticMultiSelectDropdownProperty<unknown, boolean> | DynamicProperties<boolean, PieceAuthProperty | PieceAuthProperty[] | undefined> | DateTimeProperty<boolean> | FileProperty<boolean> | CustomProperty<boolean> | ColorProperty<boolean>;
19
+ export declare const InputProperty: z.ZodUnion<readonly [z.ZodObject<{
20
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
21
+ required: z.ZodBoolean;
22
+ defaultValue: z.ZodOptional<z.ZodAny>;
23
+ displayName: z.ZodString;
24
+ description: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodLiteral<PropertyType.LONG_TEXT>;
27
+ required: z.ZodBoolean;
28
+ defaultValue: z.ZodOptional<z.ZodAny>;
29
+ displayName: z.ZodString;
30
+ description: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ type: z.ZodLiteral<PropertyType.MARKDOWN>;
33
+ required: z.ZodBoolean;
34
+ defaultValue: z.ZodOptional<z.ZodAny>;
35
+ displayName: z.ZodString;
36
+ description: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ type: z.ZodLiteral<PropertyType.CHECKBOX>;
39
+ required: z.ZodBoolean;
40
+ defaultValue: z.ZodOptional<z.ZodAny>;
41
+ displayName: z.ZodString;
42
+ description: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
45
+ required: z.ZodBoolean;
46
+ defaultValue: z.ZodOptional<z.ZodAny>;
47
+ options: z.ZodObject<{
48
+ disabled: z.ZodOptional<z.ZodBoolean>;
49
+ placeholder: z.ZodOptional<z.ZodString>;
50
+ options: z.ZodArray<z.ZodObject<{
51
+ label: z.ZodString;
52
+ value: z.ZodUnknown;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>;
55
+ displayName: z.ZodString;
56
+ description: z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ type: z.ZodLiteral<PropertyType.STATIC_MULTI_SELECT_DROPDOWN>;
59
+ required: z.ZodBoolean;
60
+ defaultValue: z.ZodOptional<z.ZodAny>;
61
+ options: z.ZodObject<{
62
+ disabled: z.ZodOptional<z.ZodBoolean>;
63
+ placeholder: z.ZodOptional<z.ZodString>;
64
+ options: z.ZodArray<z.ZodObject<{
65
+ label: z.ZodString;
66
+ value: z.ZodUnknown;
67
+ }, z.core.$strip>>;
68
+ }, z.core.$strip>;
69
+ displayName: z.ZodString;
70
+ description: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ refreshers: z.ZodArray<z.ZodString>;
73
+ type: z.ZodLiteral<PropertyType.DROPDOWN>;
74
+ required: z.ZodBoolean;
75
+ defaultValue: z.ZodOptional<z.ZodAny>;
76
+ displayName: z.ZodString;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ refreshers: z.ZodArray<z.ZodString>;
80
+ type: z.ZodLiteral<PropertyType.MULTI_SELECT_DROPDOWN>;
81
+ required: z.ZodBoolean;
82
+ defaultValue: z.ZodOptional<z.ZodAny>;
83
+ displayName: z.ZodString;
84
+ description: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ type: z.ZodLiteral<PropertyType.DYNAMIC>;
87
+ required: z.ZodBoolean;
88
+ defaultValue: z.ZodOptional<z.ZodAny>;
89
+ displayName: z.ZodString;
90
+ description: z.ZodOptional<z.ZodString>;
91
+ refreshers: z.ZodArray<z.ZodString>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<PropertyType.NUMBER>;
94
+ required: z.ZodBoolean;
95
+ defaultValue: z.ZodOptional<z.ZodAny>;
96
+ displayName: z.ZodString;
97
+ description: z.ZodOptional<z.ZodString>;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ type: z.ZodLiteral<PropertyType.ARRAY>;
100
+ required: z.ZodBoolean;
101
+ defaultValue: z.ZodOptional<z.ZodAny>;
102
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
103
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
104
+ required: z.ZodBoolean;
105
+ defaultValue: z.ZodOptional<z.ZodAny>;
106
+ displayName: z.ZodString;
107
+ description: z.ZodOptional<z.ZodString>;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ type: z.ZodLiteral<PropertyType.LONG_TEXT>;
110
+ required: z.ZodBoolean;
111
+ defaultValue: z.ZodOptional<z.ZodAny>;
112
+ displayName: z.ZodString;
113
+ description: z.ZodOptional<z.ZodString>;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ type: z.ZodLiteral<PropertyType.STATIC_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>, z.ZodObject<{
129
+ refreshers: z.ZodArray<z.ZodString>;
130
+ type: z.ZodLiteral<PropertyType.MULTI_SELECT_DROPDOWN>;
131
+ required: z.ZodBoolean;
132
+ defaultValue: z.ZodOptional<z.ZodAny>;
133
+ displayName: z.ZodString;
134
+ description: z.ZodOptional<z.ZodString>;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ type: z.ZodLiteral<PropertyType.STATIC_MULTI_SELECT_DROPDOWN>;
137
+ required: z.ZodBoolean;
138
+ defaultValue: z.ZodOptional<z.ZodAny>;
139
+ options: z.ZodObject<{
140
+ disabled: z.ZodOptional<z.ZodBoolean>;
141
+ placeholder: z.ZodOptional<z.ZodString>;
142
+ options: z.ZodArray<z.ZodObject<{
143
+ label: z.ZodString;
144
+ value: z.ZodUnknown;
145
+ }, z.core.$strip>>;
146
+ }, z.core.$strip>;
147
+ displayName: z.ZodString;
148
+ description: z.ZodOptional<z.ZodString>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ type: z.ZodLiteral<PropertyType.CHECKBOX>;
151
+ required: z.ZodBoolean;
152
+ defaultValue: z.ZodOptional<z.ZodAny>;
153
+ displayName: z.ZodString;
154
+ description: z.ZodOptional<z.ZodString>;
155
+ }, z.core.$strip>, z.ZodObject<{
156
+ type: z.ZodLiteral<PropertyType.NUMBER>;
157
+ required: z.ZodBoolean;
158
+ defaultValue: z.ZodOptional<z.ZodAny>;
159
+ displayName: z.ZodString;
160
+ description: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strip>, z.ZodObject<{
162
+ type: z.ZodLiteral<PropertyType.FILE>;
163
+ required: z.ZodBoolean;
164
+ defaultValue: z.ZodOptional<z.ZodAny>;
165
+ displayName: z.ZodString;
166
+ description: z.ZodOptional<z.ZodString>;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ type: z.ZodLiteral<PropertyType.DATE_TIME>;
169
+ required: z.ZodBoolean;
170
+ defaultValue: z.ZodOptional<z.ZodAny>;
171
+ displayName: z.ZodString;
172
+ description: z.ZodOptional<z.ZodString>;
173
+ }, z.core.$strip>]>>;
174
+ displayName: z.ZodString;
175
+ description: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ type: z.ZodLiteral<PropertyType.OBJECT>;
178
+ required: z.ZodBoolean;
179
+ defaultValue: z.ZodOptional<z.ZodAny>;
180
+ displayName: z.ZodString;
181
+ description: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$strip>, z.ZodObject<{
183
+ type: z.ZodLiteral<PropertyType.JSON>;
184
+ required: z.ZodBoolean;
185
+ defaultValue: z.ZodOptional<z.ZodAny>;
186
+ displayName: z.ZodString;
187
+ description: z.ZodOptional<z.ZodString>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ type: z.ZodLiteral<PropertyType.DATE_TIME>;
190
+ required: z.ZodBoolean;
191
+ defaultValue: z.ZodOptional<z.ZodAny>;
192
+ displayName: z.ZodString;
193
+ description: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ type: z.ZodLiteral<PropertyType.FILE>;
196
+ required: z.ZodBoolean;
197
+ defaultValue: z.ZodOptional<z.ZodAny>;
198
+ displayName: z.ZodString;
199
+ description: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ type: z.ZodLiteral<PropertyType.COLOR>;
202
+ required: z.ZodBoolean;
203
+ defaultValue: z.ZodOptional<z.ZodAny>;
204
+ displayName: z.ZodString;
205
+ description: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strip>]>;
207
+ export type InputProperty = ShortTextProperty<boolean> | LongTextProperty<boolean> | MarkDownProperty | CheckboxProperty<boolean> | DropdownProperty<any, boolean, PieceAuthProperty | undefined | PieceAuthProperty[]> | StaticDropdownProperty<any, boolean> | NumberProperty<boolean> | ArrayProperty<boolean> | ObjectProperty<boolean> | JsonProperty<boolean> | MultiSelectDropdownProperty<any, boolean, PieceAuthProperty | undefined | PieceAuthProperty[]> | StaticMultiSelectDropdownProperty<any, boolean> | DynamicProperties<boolean, PieceAuthProperty | PieceAuthProperty[] | undefined> | DateTimeProperty<boolean> | FileProperty<boolean> | CustomProperty<boolean> | ColorProperty<boolean>;
178
208
  type Properties<T> = Omit<T, 'valueSchema' | 'type' | 'defaultValidators' | 'defaultProcessors'>;
179
209
  export declare const Property: {
180
210
  ShortText<R extends boolean>(request: Properties<ShortTextProperty<R>>): R extends true ? ShortTextProperty<true> : ShortTextProperty<false>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Property = exports.InputProperty = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const array_property_1 = require("./array-property");
6
6
  const checkbox_property_1 = require("./checkbox-property");
7
7
  const date_time_property_1 = require("./date-time-property");
@@ -17,7 +17,7 @@ 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
19
  const color_property_1 = require("./color-property");
20
- exports.InputProperty = typebox_1.Type.Union([
20
+ exports.InputProperty = zod_1.z.union([
21
21
  text_property_1.ShortTextProperty,
22
22
  text_property_1.LongTextProperty,
23
23
  markdown_property_1.MarkDownProperty,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../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;AAEtE,qDAAiD;AAGpC,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;IACZ,8BAAa;CACd,CAAC,CAAC;AA2BU,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;IAC9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BAAmB,CACjB,OAAiE;QAIjE,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,qBAAqB,GAGU,CAAC;IACvD,CAAC;IACD,iBAAiB,CACf,OAAmD;QAEnD,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,OAAO,GAGW,CAAC;IAC1C,CAAC;IACD,yBAAyB,CACvB,OAA4D;QAI5D,OAAO,gCACF,OAAO,KACV,WAAW,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,OASC;QAED,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACrC,OAAO,gCACF,OAAO,KACV,IAAI,EACJ,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,MAAM,GACkD,CAAC;IAChF,CAAC;IACD,KAAK,CACH,OAAqC;QAErC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,KAAK,GAGF,CAAC;IAC3B,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qDAAiD;AACjD,2DAAuD;AACvD,6DAAwD;AACxD,4DAGkC;AAClC,gEAGoC;AACpC,iDAAmD;AACnD,mDAA+C;AAC/C,mDAA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I,CACF,OAAoC;QAEpC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,IAAI,GACgD,CAAC;IAC5E,CAAC;IACD,MAAM,CACJ,OASC;QAED,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACrC,OAAO,gCACF,OAAO,KACV,IAAI,EACJ,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,MAAM,GACkD,CAAC;IAChF,CAAC;IACD,KAAK,CACH,OAAqC;QAErC,OAAO,gCACF,OAAO,KACV,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,4BAAY,CAAC,KAAK,GAGF,CAAC;IAC3B,CAAC;CACF,CAAC"}
@@ -1,9 +1,11 @@
1
+ import { z } from "zod";
1
2
  import { BasePropertySchema, TPropertyValue } from "./common";
2
3
  import { PropertyType } from "./property-type";
3
- export declare const JsonProperty: 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
- }>;
4
+ export declare const JsonProperty: z.ZodObject<{
5
+ type: z.ZodLiteral<PropertyType.JSON>;
6
+ required: z.ZodBoolean;
7
+ defaultValue: z.ZodOptional<z.ZodAny>;
8
+ displayName: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
9
11
  export type JsonProperty<R extends boolean> = BasePropertySchema & TPropertyValue<Record<string, unknown>, PropertyType.JSON, R>;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.JsonProperty = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const common_1 = require("./common");
6
6
  const property_type_1 = require("./property-type");
7
- exports.JsonProperty = typebox_1.Type.Composite([
8
- common_1.BasePropertySchema,
9
- (0, common_1.TPropertyValue)(typebox_1.Type.Union([typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())]), property_type_1.PropertyType.JSON),
10
- ]);
7
+ exports.JsonProperty = zod_1.z.object(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.union([zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())]), property_type_1.PropertyType.JSON).shape));
11
8
  //# sourceMappingURL=json-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/json-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,YAAY,GAAG,cAAI,CAAC,SAAS,CAAC;IACzC,2BAAkB;IAClB,IAAA,uBAAc,EACZ,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EACxD,4BAAY,CAAC,IAAI,CAClB;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"json-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/json-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,iCAC/B,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EACf,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAC5C,4BAAY,CAAC,IAAI,CAClB,CAAC,KAAK,EACP,CAAC"}
@@ -1,12 +1,14 @@
1
+ import { z } from 'zod';
1
2
  import { BasePropertySchema, TPropertyValue } from './common';
2
3
  import { PropertyType } from './property-type';
3
4
  import { MarkdownVariant } from '@activepieces/shared';
4
- export declare const MarkDownProperty: import("@sinclair/typebox").TObject<{
5
- [x: string]: import("@sinclair/typebox").TSchema;
6
- [x: number]: import("@sinclair/typebox").TSchema;
7
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
8
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
9
- }>;
5
+ export declare const MarkDownProperty: z.ZodObject<{
6
+ type: z.ZodLiteral<PropertyType.MARKDOWN>;
7
+ required: z.ZodBoolean;
8
+ defaultValue: z.ZodOptional<z.ZodAny>;
9
+ displayName: z.ZodString;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
10
12
  export type MarkDownProperty = BasePropertySchema & TPropertyValue<undefined, PropertyType.MARKDOWN, false> & {
11
13
  variant?: MarkdownVariant;
12
14
  };
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MarkDownProperty = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const common_1 = require("./common");
6
6
  const property_type_1 = require("./property-type");
7
- exports.MarkDownProperty = typebox_1.Type.Composite([
8
- common_1.BasePropertySchema,
9
- (0, common_1.TPropertyValue)(typebox_1.Type.Void(), property_type_1.PropertyType.MARKDOWN),
10
- ]);
7
+ exports.MarkDownProperty = zod_1.z.object(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.void(), property_type_1.PropertyType.MARKDOWN).shape));
11
8
  //# sourceMappingURL=markdown-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/markdown-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAGlC,QAAA,gBAAgB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC7C,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,IAAI,EAAE,EAAE,4BAAY,CAAC,QAAQ,CAAC;CACnD,CAAC,CAAC"}
1
+ {"version":3,"file":"markdown-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/markdown-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAGlC,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,iCACnC,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EAAC,OAAC,CAAC,IAAI,EAAE,EAAE,4BAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,EACxD,CAAC"}
@@ -1,9 +1,11 @@
1
+ import { z } from "zod";
1
2
  import { BasePropertySchema, TPropertyValue } from "./common";
2
3
  import { PropertyType } from "./property-type";
3
- export declare const NumberProperty: 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
- }>;
4
+ export declare const NumberProperty: z.ZodObject<{
5
+ type: z.ZodLiteral<PropertyType.NUMBER>;
6
+ required: z.ZodBoolean;
7
+ defaultValue: z.ZodOptional<z.ZodAny>;
8
+ displayName: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
9
11
  export type NumberProperty<R extends boolean> = BasePropertySchema & TPropertyValue<number, PropertyType.NUMBER, R>;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NumberProperty = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const common_1 = require("./common");
6
6
  const property_type_1 = require("./property-type");
7
- exports.NumberProperty = typebox_1.Type.Composite([
8
- common_1.BasePropertySchema,
9
- (0, common_1.TPropertyValue)(typebox_1.Type.Number(), property_type_1.PropertyType.NUMBER)
10
- ]);
7
+ exports.NumberProperty = zod_1.z.object(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.number(), property_type_1.PropertyType.NUMBER).shape));
11
8
  //# sourceMappingURL=number-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"number-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/number-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,cAAc,GAAG,cAAI,CAAC,SAAS,CAAC;IACzC,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,MAAM,EAAE,EAAE,4BAAY,CAAC,MAAM,CAAC;CACrD,CAAC,CAAA"}
1
+ {"version":3,"file":"number-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/number-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,iCAC/B,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EAAC,OAAC,CAAC,MAAM,EAAE,EAAE,4BAAY,CAAC,MAAM,CAAC,CAAC,KAAK,EAC1D,CAAA"}
@@ -1,9 +1,11 @@
1
+ import { z } from "zod";
1
2
  import { BasePropertySchema, TPropertyValue } from "./common";
2
3
  import { PropertyType } from "./property-type";
3
- export declare const ObjectProperty: 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
- }>;
4
+ export declare const ObjectProperty: z.ZodObject<{
5
+ type: z.ZodLiteral<PropertyType.OBJECT>;
6
+ required: z.ZodBoolean;
7
+ defaultValue: z.ZodOptional<z.ZodAny>;
8
+ displayName: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
9
11
  export type ObjectProperty<R extends boolean> = BasePropertySchema & TPropertyValue<Record<string, unknown>, PropertyType.OBJECT, R>;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ObjectProperty = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
4
+ const zod_1 = require("zod");
5
5
  const common_1 = require("./common");
6
6
  const property_type_1 = require("./property-type");
7
- exports.ObjectProperty = typebox_1.Type.Composite([
8
- common_1.BasePropertySchema,
9
- (0, common_1.TPropertyValue)(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()), property_type_1.PropertyType.OBJECT)
10
- ]);
7
+ exports.ObjectProperty = zod_1.z.object(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), property_type_1.PropertyType.OBJECT).shape));
11
8
  //# sourceMappingURL=object-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"object-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/object-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,cAAc,GAAG,cAAI,CAAC,SAAS,CAAC;IACzC,2BAAkB;IAClB,IAAA,uBAAc,EACV,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,OAAO,EAAE,CAAC,EAC1C,4BAAY,CAAC,MAAM,CACtB;CACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"object-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/object-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,iCAC/B,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EACb,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,EACjC,4BAAY,CAAC,MAAM,CACtB,CAAC,KAAK,EACT,CAAA"}