@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.
Files changed (91) 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/index.d.ts +1 -0
  6. package/src/lib/index.js +1 -0
  7. package/src/lib/index.js.map +1 -1
  8. package/src/lib/piece-metadata.d.ts +4360 -3892
  9. package/src/lib/piece-metadata.js +48 -66
  10. package/src/lib/piece-metadata.js.map +1 -1
  11. package/src/lib/property/authentication/basic-auth-prop.d.ts +21 -20
  12. package/src/lib/property/authentication/basic-auth-prop.js +11 -18
  13. package/src/lib/property/authentication/basic-auth-prop.js.map +1 -1
  14. package/src/lib/property/authentication/common.d.ts +5 -4
  15. package/src/lib/property/authentication/common.js +4 -4
  16. package/src/lib/property/authentication/common.js.map +1 -1
  17. package/src/lib/property/authentication/custom-auth-prop.d.ts +47 -40
  18. package/src/lib/property/authentication/custom-auth-prop.js +3 -9
  19. package/src/lib/property/authentication/custom-auth-prop.js.map +1 -1
  20. package/src/lib/property/authentication/index.d.ts +110 -96
  21. package/src/lib/property/authentication/index.js +2 -2
  22. package/src/lib/property/authentication/index.js.map +1 -1
  23. package/src/lib/property/authentication/oauth2-prop.d.ts +167 -150
  24. package/src/lib/property/authentication/oauth2-prop.js +19 -23
  25. package/src/lib/property/authentication/oauth2-prop.js.map +1 -1
  26. package/src/lib/property/authentication/secret-text-property.d.ts +8 -6
  27. package/src/lib/property/authentication/secret-text-property.js +4 -7
  28. package/src/lib/property/authentication/secret-text-property.js.map +1 -1
  29. package/src/lib/property/index.d.ts +779 -671
  30. package/src/lib/property/index.js +4 -4
  31. package/src/lib/property/index.js.map +1 -1
  32. package/src/lib/property/input/array-property.d.ts +153 -131
  33. package/src/lib/property/input/array-property.js +3 -9
  34. package/src/lib/property/input/array-property.js.map +1 -1
  35. package/src/lib/property/input/checkbox-property.d.ts +8 -6
  36. package/src/lib/property/input/checkbox-property.js +2 -5
  37. package/src/lib/property/input/checkbox-property.js.map +1 -1
  38. package/src/lib/property/input/color-property.d.ts +8 -6
  39. package/src/lib/property/input/color-property.js +2 -5
  40. package/src/lib/property/input/color-property.js.map +1 -1
  41. package/src/lib/property/input/common.d.ts +10 -6
  42. package/src/lib/property/input/common.js +8 -8
  43. package/src/lib/property/input/common.js.map +1 -1
  44. package/src/lib/property/input/custom-property.d.ts +9 -6
  45. package/src/lib/property/input/custom-property.js +3 -9
  46. package/src/lib/property/input/custom-property.js.map +1 -1
  47. package/src/lib/property/input/date-time-property.d.ts +8 -6
  48. package/src/lib/property/input/date-time-property.js +2 -5
  49. package/src/lib/property/input/date-time-property.js.map +1 -1
  50. package/src/lib/property/input/dropdown/common.d.ts +13 -12
  51. package/src/lib/property/input/dropdown/common.js +8 -8
  52. package/src/lib/property/input/dropdown/common.js.map +1 -1
  53. package/src/lib/property/input/dropdown/dropdown-prop.d.ts +17 -12
  54. package/src/lib/property/input/dropdown/dropdown-prop.js +3 -15
  55. package/src/lib/property/input/dropdown/dropdown-prop.js.map +1 -1
  56. package/src/lib/property/input/dropdown/static-dropdown.d.ts +31 -28
  57. package/src/lib/property/input/dropdown/static-dropdown.js +3 -15
  58. package/src/lib/property/input/dropdown/static-dropdown.js.map +1 -1
  59. package/src/lib/property/input/dynamic-prop.d.ts +247 -215
  60. package/src/lib/property/input/dynamic-prop.js +4 -10
  61. package/src/lib/property/input/dynamic-prop.js.map +1 -1
  62. package/src/lib/property/input/file-property.d.ts +8 -6
  63. package/src/lib/property/input/file-property.js +2 -5
  64. package/src/lib/property/input/file-property.js.map +1 -1
  65. package/src/lib/property/input/index.d.ts +191 -161
  66. package/src/lib/property/input/index.js +2 -2
  67. package/src/lib/property/input/index.js.map +1 -1
  68. package/src/lib/property/input/json-property.d.ts +8 -6
  69. package/src/lib/property/input/json-property.js +2 -5
  70. package/src/lib/property/input/json-property.js.map +1 -1
  71. package/src/lib/property/input/markdown-property.d.ts +8 -6
  72. package/src/lib/property/input/markdown-property.js +2 -5
  73. package/src/lib/property/input/markdown-property.js.map +1 -1
  74. package/src/lib/property/input/number-property.d.ts +8 -6
  75. package/src/lib/property/input/number-property.js +2 -5
  76. package/src/lib/property/input/number-property.js.map +1 -1
  77. package/src/lib/property/input/object-property.d.ts +8 -6
  78. package/src/lib/property/input/object-property.js +2 -5
  79. package/src/lib/property/input/object-property.js.map +1 -1
  80. package/src/lib/property/input/text-property.d.ts +15 -12
  81. package/src/lib/property/input/text-property.js +3 -9
  82. package/src/lib/property/input/text-property.js.map +1 -1
  83. package/src/lib/property/util.d.ts +4 -2
  84. package/src/lib/property/util.js +38 -54
  85. package/src/lib/property/util.js.map +1 -1
  86. package/src/lib/test/index.d.ts +5 -0
  87. package/src/lib/test/index.js +73 -0
  88. package/src/lib/test/index.js.map +1 -0
  89. package/src/lib/trigger/trigger.d.ts +9 -9
  90. package/src/lib/trigger/trigger.js +7 -7
  91. package/src/lib/trigger/trigger.js.map +1 -1
@@ -4,7 +4,7 @@ exports.piecePropertiesUtils = exports.InputPropertyMap = exports.PiecePropertyM
4
4
  const tslib_1 = require("tslib");
5
5
  const input_1 = require("./input");
6
6
  const authentication_1 = require("./authentication");
7
- const typebox_1 = require("@sinclair/typebox");
7
+ const zod_1 = require("zod");
8
8
  // EXPORTED
9
9
  var file_property_1 = require("./input/file-property");
10
10
  Object.defineProperty(exports, "ApFile", { enumerable: true, get: function () { return file_property_1.ApFile; } });
@@ -71,11 +71,11 @@ var custom_auth_prop_1 = require("./authentication/custom-auth-prop");
71
71
  Object.defineProperty(exports, "CustomAuthProperty", { enumerable: true, get: function () { return custom_auth_prop_1.CustomAuthProperty; } });
72
72
  var json_property_1 = require("./input/json-property");
73
73
  Object.defineProperty(exports, "JsonProperty", { enumerable: true, get: function () { return json_property_1.JsonProperty; } });
74
- exports.PieceProperty = typebox_1.Type.Union([input_1.InputProperty, authentication_1.PieceAuthProperty]);
74
+ exports.PieceProperty = zod_1.z.union([input_1.InputProperty, authentication_1.PieceAuthProperty]);
75
75
  var custom_property_1 = require("./input/custom-property");
76
76
  Object.defineProperty(exports, "CustomProperty", { enumerable: true, get: function () { return custom_property_1.CustomProperty; } });
77
- exports.PiecePropertyMap = typebox_1.Type.Record(typebox_1.Type.String(), exports.PieceProperty);
78
- exports.InputPropertyMap = typebox_1.Type.Record(typebox_1.Type.String(), input_1.InputProperty);
77
+ exports.PiecePropertyMap = zod_1.z.record(zod_1.z.string(), exports.PieceProperty);
78
+ exports.InputPropertyMap = zod_1.z.record(zod_1.z.string(), input_1.InputProperty);
79
79
  var util_1 = require("./util");
80
80
  Object.defineProperty(exports, "piecePropertiesUtils", { enumerable: true, get: function () { return util_1.piecePropertiesUtils; } });
81
81
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/property/index.ts"],"names":[],"mappings":";;;;AAAA,mCAAwC;AACxC,qDAAqD;AACrD,+CAAkD;AAKlD,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,mDAAqE;AAA5D,2GAAA,SAAS,OAAA;AAAC,yHAAA,uBAAuB,OAAA;AAE1C,qDAAyD;AAAhD,iHAAA,iBAAiB,OAAA;AAC1B,kDAAuE;AAA9D,wGAAA,cAAc,OAAA;AAAC,uGAAA,aAAa,OAAA;AACrC,4DAAmE;AAA1D,kHAAA,mBAAmB,OAAA;AAC5B,mDAAqF;AAA5E,mHAAA,iBAAiB,OAAA;AAAE,iIAAA,+BAA+B,OAAA;AAC3D,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;AAE3B,uDAAoD;AAA3C,6GAAA,YAAY,OAAA;AACR,QAAA,aAAa,GAAG,cAAI,CAAC,KAAK,CAAC,CAAC,qBAAa,EAAE,kCAAiB,CAAC,CAAC,CAAA;AAE3E,2DAAsD;AAA9C,iHAAA,cAAc,OAAA;AAET,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;AAIzE,+BAA8C;AAArC,4GAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/property/index.ts"],"names":[],"mappings":";;;;AAAA,mCAAwC;AACxC,qDAAqD;AACrD,6BAAwB;AAIxB,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,mDAAqE;AAA5D,2GAAA,SAAS,OAAA;AAAC,yHAAA,uBAAuB,OAAA;AAE1C,qDAAyD;AAAhD,iHAAA,iBAAiB,OAAA;AAC1B,kDAAuE;AAA9D,wGAAA,cAAc,OAAA;AAAC,uGAAA,aAAa,OAAA;AACrC,4DAAmE;AAA1D,kHAAA,mBAAmB,OAAA;AAC5B,mDAAqF;AAA5E,mHAAA,iBAAiB,OAAA;AAAE,iIAAA,+BAA+B,OAAA;AAC3D,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;AAE3B,uDAAoD;AAA3C,6GAAA,YAAY,OAAA;AACR,QAAA,aAAa,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,qBAAa,EAAE,kCAAiB,CAAC,CAAC,CAAA;AAExE,2DAAsD;AAA9C,iHAAA,cAAc,OAAA;AAET,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,qBAAa,CAAC,CAAA;AAKtD,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,qBAAa,CAAC,CAAA;AAInE,+BAA8C;AAArC,4GAAA,oBAAoB,OAAA"}
@@ -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
  import { LongTextProperty, ShortTextProperty } from "./text-property";
@@ -9,137 +10,158 @@ import { FileProperty } from "./file-property";
9
10
  import { JsonProperty } from './json-property';
10
11
  import { ColorProperty } from "./color-property";
11
12
  import { DateTimeProperty } from './date-time-property';
12
- export declare const ArraySubProps: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
13
- [x: string]: import("@sinclair/typebox").TSchema;
14
- [x: number]: import("@sinclair/typebox").TSchema;
15
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
16
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
17
- }>, 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
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
28
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
29
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
30
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
31
- label: import("@sinclair/typebox").TString;
32
- value: import("@sinclair/typebox").TUnknown;
33
- }>>;
34
- }>, import("@sinclair/typebox").TSchema]>;
35
- }>, import("@sinclair/typebox").TObject<{
36
- [x: string]: import("@sinclair/typebox").TSchema;
37
- [x: number]: import("@sinclair/typebox").TSchema;
38
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
39
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
40
- }>, import("@sinclair/typebox").TObject<{
41
- [x: string]: import("@sinclair/typebox").TSchema;
42
- [x: number]: import("@sinclair/typebox").TSchema;
43
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
44
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
45
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
46
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
47
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
48
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
49
- label: import("@sinclair/typebox").TString;
50
- value: import("@sinclair/typebox").TUnknown;
51
- }>>;
52
- }>, import("@sinclair/typebox").TSchema]>;
53
- }>, import("@sinclair/typebox").TObject<{
54
- [x: string]: import("@sinclair/typebox").TSchema;
55
- [x: number]: import("@sinclair/typebox").TSchema;
56
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
57
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
58
- }>, import("@sinclair/typebox").TObject<{
59
- [x: string]: import("@sinclair/typebox").TSchema;
60
- [x: number]: import("@sinclair/typebox").TSchema;
61
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
62
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, 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
- }>]>>;
74
- export declare const ArrayProperty: import("@sinclair/typebox").TObject<{
75
- [x: string]: import("@sinclair/typebox").TSchema;
76
- [x: number]: 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
- properties: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[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
- }>, 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
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
95
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
96
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
97
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
98
- label: import("@sinclair/typebox").TString;
99
- value: import("@sinclair/typebox").TUnknown;
100
- }>>;
101
- }>, import("@sinclair/typebox").TSchema]>;
102
- }>, import("@sinclair/typebox").TObject<{
103
- [x: string]: import("@sinclair/typebox").TSchema;
104
- [x: number]: import("@sinclair/typebox").TSchema;
105
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
106
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
107
- }>, import("@sinclair/typebox").TObject<{
108
- [x: string]: import("@sinclair/typebox").TSchema;
109
- [x: number]: import("@sinclair/typebox").TSchema;
110
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
111
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
112
- options: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
113
- disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
114
- placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
115
- options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
116
- label: import("@sinclair/typebox").TString;
117
- value: import("@sinclair/typebox").TUnknown;
118
- }>>;
119
- }>, import("@sinclair/typebox").TSchema]>;
120
- }>, import("@sinclair/typebox").TObject<{
121
- [x: string]: import("@sinclair/typebox").TSchema;
122
- [x: number]: import("@sinclair/typebox").TSchema;
123
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
124
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
125
- }>, import("@sinclair/typebox").TObject<{
126
- [x: string]: import("@sinclair/typebox").TSchema;
127
- [x: number]: import("@sinclair/typebox").TSchema;
128
- displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
129
- description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, 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").TSchema]>;
141
- }>;
142
- 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> | DateTimeProperty<R>>;
13
+ export declare const ArraySubProps: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
14
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
15
+ required: z.ZodBoolean;
16
+ defaultValue: z.ZodOptional<z.ZodAny>;
17
+ displayName: z.ZodString;
18
+ description: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ type: z.ZodLiteral<PropertyType.LONG_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.STATIC_DROPDOWN>;
27
+ required: z.ZodBoolean;
28
+ defaultValue: z.ZodOptional<z.ZodAny>;
29
+ options: z.ZodObject<{
30
+ disabled: z.ZodOptional<z.ZodBoolean>;
31
+ placeholder: z.ZodOptional<z.ZodString>;
32
+ options: z.ZodArray<z.ZodObject<{
33
+ label: z.ZodString;
34
+ value: z.ZodUnknown;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>;
37
+ displayName: z.ZodString;
38
+ description: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ refreshers: z.ZodArray<z.ZodString>;
41
+ type: z.ZodLiteral<PropertyType.MULTI_SELECT_DROPDOWN>;
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.STATIC_MULTI_SELECT_DROPDOWN>;
48
+ required: z.ZodBoolean;
49
+ defaultValue: z.ZodOptional<z.ZodAny>;
50
+ options: z.ZodObject<{
51
+ disabled: z.ZodOptional<z.ZodBoolean>;
52
+ placeholder: z.ZodOptional<z.ZodString>;
53
+ options: z.ZodArray<z.ZodObject<{
54
+ label: z.ZodString;
55
+ value: z.ZodUnknown;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ displayName: z.ZodString;
59
+ description: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ type: z.ZodLiteral<PropertyType.CHECKBOX>;
62
+ required: z.ZodBoolean;
63
+ defaultValue: z.ZodOptional<z.ZodAny>;
64
+ displayName: z.ZodString;
65
+ description: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ type: z.ZodLiteral<PropertyType.NUMBER>;
68
+ required: z.ZodBoolean;
69
+ defaultValue: z.ZodOptional<z.ZodAny>;
70
+ displayName: z.ZodString;
71
+ description: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ type: z.ZodLiteral<PropertyType.FILE>;
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
+ type: z.ZodLiteral<PropertyType.DATE_TIME>;
80
+ required: z.ZodBoolean;
81
+ defaultValue: z.ZodOptional<z.ZodAny>;
82
+ displayName: z.ZodString;
83
+ description: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>]>>;
85
+ export declare const ArrayProperty: z.ZodObject<{
86
+ type: z.ZodLiteral<PropertyType.ARRAY>;
87
+ required: z.ZodBoolean;
88
+ defaultValue: z.ZodOptional<z.ZodAny>;
89
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
90
+ type: z.ZodLiteral<PropertyType.SHORT_TEXT>;
91
+ required: z.ZodBoolean;
92
+ defaultValue: z.ZodOptional<z.ZodAny>;
93
+ displayName: z.ZodString;
94
+ description: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ type: z.ZodLiteral<PropertyType.LONG_TEXT>;
97
+ required: z.ZodBoolean;
98
+ defaultValue: z.ZodOptional<z.ZodAny>;
99
+ displayName: z.ZodString;
100
+ description: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ type: z.ZodLiteral<PropertyType.STATIC_DROPDOWN>;
103
+ required: z.ZodBoolean;
104
+ defaultValue: z.ZodOptional<z.ZodAny>;
105
+ options: z.ZodObject<{
106
+ disabled: z.ZodOptional<z.ZodBoolean>;
107
+ placeholder: z.ZodOptional<z.ZodString>;
108
+ options: z.ZodArray<z.ZodObject<{
109
+ label: z.ZodString;
110
+ value: z.ZodUnknown;
111
+ }, z.core.$strip>>;
112
+ }, z.core.$strip>;
113
+ displayName: z.ZodString;
114
+ description: z.ZodOptional<z.ZodString>;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ refreshers: z.ZodArray<z.ZodString>;
117
+ type: z.ZodLiteral<PropertyType.MULTI_SELECT_DROPDOWN>;
118
+ required: z.ZodBoolean;
119
+ defaultValue: z.ZodOptional<z.ZodAny>;
120
+ displayName: z.ZodString;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ type: z.ZodLiteral<PropertyType.STATIC_MULTI_SELECT_DROPDOWN>;
124
+ required: z.ZodBoolean;
125
+ defaultValue: z.ZodOptional<z.ZodAny>;
126
+ options: z.ZodObject<{
127
+ disabled: z.ZodOptional<z.ZodBoolean>;
128
+ placeholder: z.ZodOptional<z.ZodString>;
129
+ options: z.ZodArray<z.ZodObject<{
130
+ label: z.ZodString;
131
+ value: z.ZodUnknown;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>;
134
+ displayName: z.ZodString;
135
+ description: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strip>, z.ZodObject<{
137
+ type: z.ZodLiteral<PropertyType.CHECKBOX>;
138
+ required: z.ZodBoolean;
139
+ defaultValue: z.ZodOptional<z.ZodAny>;
140
+ displayName: z.ZodString;
141
+ description: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ type: z.ZodLiteral<PropertyType.NUMBER>;
144
+ required: z.ZodBoolean;
145
+ defaultValue: z.ZodOptional<z.ZodAny>;
146
+ displayName: z.ZodString;
147
+ description: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ type: z.ZodLiteral<PropertyType.FILE>;
150
+ required: z.ZodBoolean;
151
+ defaultValue: z.ZodOptional<z.ZodAny>;
152
+ displayName: z.ZodString;
153
+ description: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ type: z.ZodLiteral<PropertyType.DATE_TIME>;
156
+ required: z.ZodBoolean;
157
+ defaultValue: z.ZodOptional<z.ZodAny>;
158
+ displayName: z.ZodString;
159
+ description: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$strip>]>>;
161
+ displayName: z.ZodString;
162
+ description: z.ZodOptional<z.ZodString>;
163
+ }, z.core.$strip>;
164
+ export type ArraySubProps<R extends boolean> = Record<string, ShortTextProperty<R> | LongTextProperty<R> | StaticDropdownProperty<unknown, R> | MultiSelectDropdownProperty<unknown, R> | StaticMultiSelectDropdownProperty<unknown, R> | CheckboxProperty<R> | NumberProperty<R> | FileProperty<R> | JsonProperty<R> | ColorProperty<R> | DateTimeProperty<R>>;
143
165
  export type ArrayProperty<R extends boolean> = BasePropertySchema & {
144
166
  properties?: ArraySubProps<R>;
145
167
  } & TPropertyValue<unknown[], PropertyType.ARRAY, R>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ArrayProperty = exports.ArraySubProps = 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
7
  const text_property_1 = require("./text-property");
@@ -11,7 +11,7 @@ const checkbox_property_1 = require("./checkbox-property");
11
11
  const number_property_1 = require("./number-property");
12
12
  const file_property_1 = require("./file-property");
13
13
  const date_time_property_1 = require("./date-time-property");
14
- exports.ArraySubProps = typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Union([
14
+ exports.ArraySubProps = zod_1.z.record(zod_1.z.string(), zod_1.z.union([
15
15
  text_property_1.ShortTextProperty,
16
16
  text_property_1.LongTextProperty,
17
17
  static_dropdown_1.StaticDropdownProperty,
@@ -22,11 +22,5 @@ exports.ArraySubProps = typebox_1.Type.Record(typebox_1.Type.String(), typebox_1
22
22
  file_property_1.FileProperty,
23
23
  date_time_property_1.DateTimeProperty,
24
24
  ]));
25
- exports.ArrayProperty = typebox_1.Type.Composite([
26
- common_1.BasePropertySchema,
27
- typebox_1.Type.Object({
28
- properties: exports.ArraySubProps
29
- }),
30
- (0, common_1.TPropertyValue)(typebox_1.Type.Array(typebox_1.Type.Unknown()), property_type_1.PropertyType.ARRAY)
31
- ]);
25
+ exports.ArrayProperty = zod_1.z.object(Object.assign(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), { properties: exports.ArraySubProps }), (0, common_1.TPropertyValue)(zod_1.z.array(zod_1.z.unknown()), property_type_1.PropertyType.ARRAY).shape));
32
26
  //# sourceMappingURL=array-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"array-property.js","sourceRoot":"","sources":["../../../../../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;AAG/C,6DAAwD;AAE3C,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;IACZ,qCAAgB;CACnB,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"}
1
+ {"version":3,"file":"array-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/array-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAC/C,mDAAsE;AACtE,gEAAuG;AACvG,4DAAuE;AACvE,2DAAuD;AACvD,uDAAmD;AACnD,mDAA+C;AAG/C,6DAAwD;AAE3C,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC;IACtD,iCAAiB;IACjB,gCAAgB;IAChB,wCAAsB;IACtB,2CAA2B;IAC3B,mDAAiC;IACjC,oCAAgB;IAChB,gCAAc;IACd,4BAAY;IACZ,qCAAgB;CACnB,CAAC,CAAC,CAAA;AAEU,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,+CAC9B,2BAAkB,CAAC,KAAK,KAC3B,UAAU,EAAE,qBAAa,KACtB,IAAA,uBAAc,EAAC,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,EAAE,4BAAY,CAAC,KAAK,CAAC,CAAC,KAAK,EACnE,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 CheckboxProperty: 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 CheckboxProperty: z.ZodObject<{
5
+ type: z.ZodLiteral<PropertyType.CHECKBOX>;
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 CheckboxProperty<R extends boolean> = BasePropertySchema & TPropertyValue<boolean, PropertyType.CHECKBOX, R>;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CheckboxProperty = 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.CheckboxProperty = typebox_1.Type.Composite([
8
- common_1.BasePropertySchema,
9
- (0, common_1.TPropertyValue)(typebox_1.Type.Boolean(), property_type_1.PropertyType.CHECKBOX)
10
- ]);
7
+ exports.CheckboxProperty = zod_1.z.object(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.boolean(), property_type_1.PropertyType.CHECKBOX).shape));
11
8
  //# sourceMappingURL=checkbox-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/checkbox-property.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,gBAAgB,GAAG,cAAI,CAAC,SAAS,CAAC;IAC7C,2BAAkB;IAClB,IAAA,uBAAc,EAAC,cAAI,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,QAAQ,CAAC;CACtD,CAAC,CAAA"}
1
+ {"version":3,"file":"checkbox-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/checkbox-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,iCACnC,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EAAC,OAAC,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,EAC3D,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 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
- }>;
4
+ export declare const ColorProperty: z.ZodObject<{
5
+ type: z.ZodLiteral<PropertyType.COLOR>;
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 ColorProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.COLOR, R>;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ColorProperty = 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.ColorProperty = typebox_1.Type.Composite([
8
- common_1.BasePropertySchema,
9
- (0, common_1.TPropertyValue)(typebox_1.Type.String(), property_type_1.PropertyType.COLOR)
10
- ]);
7
+ exports.ColorProperty = zod_1.z.object(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.string(), property_type_1.PropertyType.COLOR).shape));
11
8
  //# sourceMappingURL=color-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"color-property.js","sourceRoot":"","sources":["../../../../../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"}
1
+ {"version":3,"file":"color-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/color-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAElC,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,iCAC9B,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EAAC,OAAC,CAAC,MAAM,EAAE,EAAE,4BAAY,CAAC,KAAK,CAAC,CAAC,KAAK,EACzD,CAAA"}
@@ -1,12 +1,16 @@
1
- import { Static, TObject, TSchema } from "@sinclair/typebox";
1
+ import { z } from "zod";
2
2
  import { ApFile } from "./file-property";
3
3
  import { PropertyType } from "./property-type";
4
- export declare const BasePropertySchema: TObject<{
5
- displayName: import("@sinclair/typebox").TString;
6
- description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
4
+ export declare const BasePropertySchema: z.ZodObject<{
5
+ displayName: z.ZodString;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type BasePropertySchema = z.infer<typeof BasePropertySchema>;
9
+ export declare const TPropertyValue: <T extends z.ZodType, U extends PropertyType>(_T: T, propertyType: U) => z.ZodObject<{
10
+ type: z.ZodLiteral<U>;
11
+ required: z.ZodBoolean;
12
+ defaultValue: z.ZodOptional<z.ZodAny>;
7
13
  }>;
8
- export type BasePropertySchema = Static<typeof BasePropertySchema>;
9
- export declare const TPropertyValue: <T extends TSchema, U extends PropertyType>(T: T, propertyType: U) => TObject;
10
14
  export type TPropertyValue<T, U extends PropertyType, REQUIRED extends boolean> = {
11
15
  valueSchema: T;
12
16
  type: U;
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TPropertyValue = exports.BasePropertySchema = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
5
- exports.BasePropertySchema = typebox_1.Type.Object({
6
- displayName: typebox_1.Type.String(),
7
- description: typebox_1.Type.Optional(typebox_1.Type.String())
4
+ const zod_1 = require("zod");
5
+ exports.BasePropertySchema = zod_1.z.object({
6
+ displayName: zod_1.z.string(),
7
+ description: zod_1.z.string().optional()
8
8
  });
9
- const TPropertyValue = (T, propertyType) => typebox_1.Type.Object({
10
- type: typebox_1.Type.Literal(propertyType),
11
- required: typebox_1.Type.Boolean(),
12
- defaultValue: typebox_1.Type.Optional(typebox_1.Type.Any()),
9
+ const TPropertyValue = (_T, propertyType) => zod_1.z.object({
10
+ type: zod_1.z.literal(propertyType),
11
+ required: zod_1.z.boolean(),
12
+ defaultValue: zod_1.z.any().optional(),
13
13
  });
14
14
  exports.TPropertyValue = TPropertyValue;
15
15
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../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"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/common.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA;AAIK,MAAM,cAAc,GAAG,CAA8C,EAAK,EAAE,YAAe,EAI/F,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAC7B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA;AARW,QAAA,cAAc,kBAQzB"}
@@ -1,11 +1,14 @@
1
+ import { z } from "zod";
1
2
  import { BasePropertySchema, TPropertyValue } from "./common";
2
3
  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
- }>;
4
+ export declare const CustomProperty: z.ZodObject<{
5
+ code: z.ZodString;
6
+ type: z.ZodLiteral<PropertyType.CUSTOM>;
7
+ required: z.ZodBoolean;
8
+ defaultValue: z.ZodOptional<z.ZodAny>;
9
+ displayName: z.ZodString;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
9
12
  export type CustomProperty<R extends boolean> = BasePropertySchema & TPropertyValue<unknown, PropertyType.CUSTOM, R> & {
10
13
  code: string;
11
14
  };
@@ -1,18 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomProperty = 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
- // Code should be a valid javascript function that takes a single argument which is an object
7
+ // Code should be a valid javascript function that takes a single argument which is an object
8
8
  /*
9
9
  (ctx: {containerId:string, value: unknown, onChange: (value: unknown) => void, isEmbeded: boolean, projectId:string}) => void
10
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
- ]);
11
+ exports.CustomProperty = zod_1.z.object(Object.assign(Object.assign(Object.assign({}, common_1.BasePropertySchema.shape), (0, common_1.TPropertyValue)(zod_1.z.unknown(), property_type_1.PropertyType.CUSTOM).shape), { code: zod_1.z.string() }));
18
12
  //# sourceMappingURL=custom-property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-property.js","sourceRoot":"","sources":["../../../../../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
+ {"version":3,"file":"custom-property.js","sourceRoot":"","sources":["../../../../../src/lib/property/input/custom-property.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAA8D;AAC9D,mDAA+C;AAG/C,6FAA6F;AAC7F;;EAEE;AACW,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,+CACjC,2BAAkB,CAAC,KAAK,GACxB,IAAA,uBAAc,EAAC,OAAC,CAAC,OAAO,EAAE,EAAE,4BAAY,CAAC,MAAM,CAAC,CAAC,KAAK,KACzD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,IAChB,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 DateTimeProperty: 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 DateTimeProperty: z.ZodObject<{
5
+ type: z.ZodLiteral<PropertyType.DATE_TIME>;
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 DateTimeProperty<R extends boolean> = BasePropertySchema & TPropertyValue<string, PropertyType.DATE_TIME, R>;