@activepieces/pieces-framework 0.21.0 → 0.22.1

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 (34) hide show
  1. package/package.json +2 -2
  2. package/src/lib/action/action.d.ts +14 -11
  3. package/src/lib/action/action.js.map +1 -1
  4. package/src/lib/context/index.d.ts +14 -13
  5. package/src/lib/context/index.js.map +1 -1
  6. package/src/lib/context/versioning.js +1 -1
  7. package/src/lib/context/versioning.js.map +1 -1
  8. package/src/lib/index.d.ts +0 -1
  9. package/src/lib/index.js +0 -1
  10. package/src/lib/index.js.map +1 -1
  11. package/src/lib/piece-metadata.d.ts +486 -11
  12. package/src/lib/piece-metadata.js +1 -1
  13. package/src/lib/piece-metadata.js.map +1 -1
  14. package/src/lib/piece.d.ts +10 -10
  15. package/src/lib/piece.js +8 -2
  16. package/src/lib/piece.js.map +1 -1
  17. package/src/lib/property/authentication/index.d.ts +12 -2
  18. package/src/lib/property/authentication/index.js +22 -4
  19. package/src/lib/property/authentication/index.js.map +1 -1
  20. package/src/lib/property/authentication/oauth2-prop.d.ts +1 -1
  21. package/src/lib/property/index.d.ts +523 -520
  22. package/src/lib/property/index.js +5 -1
  23. package/src/lib/property/index.js.map +1 -1
  24. package/src/lib/property/input/dropdown/dropdown-prop.d.ts +3 -3
  25. package/src/lib/property/input/dynamic-prop.d.ts +4 -4
  26. package/src/lib/property/input/index.d.ts +4 -4
  27. package/src/lib/property/util.d.ts +8 -0
  28. package/src/lib/property/util.js +121 -0
  29. package/src/lib/property/util.js.map +1 -0
  30. package/src/lib/trigger/trigger.d.ts +22 -22
  31. package/src/lib/trigger/trigger.js.map +1 -1
  32. package/src/lib/validators/index.d.ts +0 -1
  33. package/src/lib/validators/index.js +0 -5
  34. package/src/lib/validators/index.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InputPropertyMap = exports.PiecePropertyMap = exports.CustomProperty = exports.PieceProperty = exports.JsonProperty = exports.CustomAuthProperty = exports.SecretTextProperty = exports.BasicAuthProperty = exports.FileProperty = exports.OAuth2Property = exports.StaticDropdownProperty = exports.StaticMultiSelectDropdownProperty = exports.BasicAuthPropertyValue = exports.OAuth2AuthorizationMethod = exports.OAuth2Props = exports.ObjectProperty = exports.NumberProperty = exports.LongTextProperty = exports.DateTimeProperty = exports.CheckboxProperty = exports.BasePropertySchema = exports.ArraySubProps = exports.ArrayProperty = exports.ShortTextProperty = exports.PieceAuthProperty = exports.OAuth2PropertyValue = exports.DropdownState = exports.DropdownOption = exports.DynamicPropsValue = exports.PieceAuth = exports.Property = exports.PropertyType = exports.DynamicProp = exports.DynamicProperties = exports.MultiSelectDropdownProperty = exports.DropdownProperty = exports.ApFile = void 0;
3
+ exports.piecePropertiesUtils = exports.InputPropertyMap = exports.PiecePropertyMap = exports.CustomProperty = exports.PieceProperty = exports.JsonProperty = exports.CustomAuthProperty = exports.SecretTextProperty = exports.BasicAuthProperty = exports.FileProperty = exports.OAuth2Property = exports.StaticDropdownProperty = exports.StaticMultiSelectDropdownProperty = exports.BasicAuthPropertyValue = exports.OAuth2AuthorizationMethod = exports.OAuth2Props = exports.ObjectProperty = exports.NumberProperty = exports.LongTextProperty = exports.DateTimeProperty = exports.CheckboxProperty = exports.BasePropertySchema = exports.ArraySubProps = exports.ArrayProperty = exports.ShortTextProperty = exports.DEFAULT_CONNECTION_DISPLAY_NAME = exports.PieceAuthProperty = exports.OAuth2PropertyValue = exports.DropdownState = exports.DropdownOption = exports.DynamicPropsValue = exports.getAuthPropertyForValue = exports.PieceAuth = exports.Property = exports.PropertyType = exports.DynamicProp = exports.DynamicProperties = exports.MultiSelectDropdownProperty = exports.DropdownProperty = exports.ApFile = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const input_1 = require("./input");
6
6
  const authentication_1 = require("./authentication");
@@ -20,6 +20,7 @@ var input_2 = require("./input");
20
20
  Object.defineProperty(exports, "Property", { enumerable: true, get: function () { return input_2.Property; } });
21
21
  var authentication_2 = require("./authentication");
22
22
  Object.defineProperty(exports, "PieceAuth", { enumerable: true, get: function () { return authentication_2.PieceAuth; } });
23
+ Object.defineProperty(exports, "getAuthPropertyForValue", { enumerable: true, get: function () { return authentication_2.getAuthPropertyForValue; } });
23
24
  var dynamic_prop_2 = require("./input/dynamic-prop");
24
25
  Object.defineProperty(exports, "DynamicPropsValue", { enumerable: true, get: function () { return dynamic_prop_2.DynamicPropsValue; } });
25
26
  var common_1 = require("./input/dropdown/common");
@@ -29,6 +30,7 @@ var oauth2_prop_1 = require("./authentication/oauth2-prop");
29
30
  Object.defineProperty(exports, "OAuth2PropertyValue", { enumerable: true, get: function () { return oauth2_prop_1.OAuth2PropertyValue; } });
30
31
  var authentication_3 = require("./authentication");
31
32
  Object.defineProperty(exports, "PieceAuthProperty", { enumerable: true, get: function () { return authentication_3.PieceAuthProperty; } });
33
+ Object.defineProperty(exports, "DEFAULT_CONNECTION_DISPLAY_NAME", { enumerable: true, get: function () { return authentication_3.DEFAULT_CONNECTION_DISPLAY_NAME; } });
32
34
  var text_property_1 = require("./input/text-property");
33
35
  Object.defineProperty(exports, "ShortTextProperty", { enumerable: true, get: function () { return text_property_1.ShortTextProperty; } });
34
36
  var array_property_1 = require("./input/array-property");
@@ -74,4 +76,6 @@ var custom_property_1 = require("./input/custom-property");
74
76
  Object.defineProperty(exports, "CustomProperty", { enumerable: true, get: function () { return custom_property_1.CustomProperty; } });
75
77
  exports.PiecePropertyMap = typebox_1.Type.Record(typebox_1.Type.String(), exports.PieceProperty);
76
78
  exports.InputPropertyMap = typebox_1.Type.Record(typebox_1.Type.String(), input_1.InputProperty);
79
+ var util_1 = require("./util");
80
+ Object.defineProperty(exports, "piecePropertiesUtils", { enumerable: true, get: function () { return util_1.piecePropertiesUtils; } });
77
81
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces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;AACvB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AACrB,oEAAqE;AAA5D,oHAAA,iBAAiB,OAAA;AAC1B,8EAA0E;AAAjE,0HAAA,kBAAkB,OAAA;AAC3B,sEAAuE;AAA9D,sHAAA,kBAAkB,OAAA;AAC3B,uDAAoD;AAA3C,6GAAA,YAAY,OAAA;AACR,QAAA,aAAa,GAAG,cAAI,CAAC,KAAK,CAAC,CAAC,qBAAa,EAAE,kCAAiB,CAAC,CAAC,CAAA;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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/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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AAArC,4GAAA,oBAAoB,OAAA"}
@@ -3,7 +3,7 @@ import { DropdownState } from "./common";
3
3
  import { AppConnectionValueForAuthProperty, PropertyContext } from "../../../context";
4
4
  import { PropertyType } from "../property-type";
5
5
  import { PieceAuthProperty } from "../../authentication";
6
- type DynamicDropdownOptions<T, PieceAuth extends PieceAuthProperty | undefined = undefined> = (propsValue: Record<string, unknown> & {
6
+ type DynamicDropdownOptions<T, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined> = (propsValue: Record<string, unknown> & {
7
7
  auth?: PieceAuth extends undefined ? undefined : AppConnectionValueForAuthProperty<Exclude<PieceAuth, undefined>>;
8
8
  }, ctx: PropertyContext) => Promise<DropdownState<T>>;
9
9
  export declare const DropdownProperty: import("@sinclair/typebox").TObject<{
@@ -12,7 +12,7 @@ export declare const DropdownProperty: import("@sinclair/typebox").TObject<{
12
12
  displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
13
13
  description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
14
14
  }>;
15
- export type DropdownProperty<T, R extends boolean, PieceAuth extends PieceAuthProperty | undefined = undefined> = BasePropertySchema & {
15
+ export type DropdownProperty<T, R extends boolean, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined> = BasePropertySchema & {
16
16
  /**
17
17
  * A dummy property used to infer {@code PieceAuth} type
18
18
  */
@@ -27,7 +27,7 @@ export declare const MultiSelectDropdownProperty: import("@sinclair/typebox").TO
27
27
  displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
28
28
  description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
29
29
  }>;
30
- export type MultiSelectDropdownProperty<T, R extends boolean, PieceAuth extends PieceAuthProperty | undefined = undefined> = BasePropertySchema & {
30
+ export type MultiSelectDropdownProperty<T, R extends boolean, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined> = BasePropertySchema & {
31
31
  /**
32
32
  * A dummy property used to infer {@code PieceAuth} type
33
33
  */
@@ -5,7 +5,7 @@ import { AppConnectionValueForAuthProperty, PropertyContext } from "../../contex
5
5
  import { PropertyType } from "./property-type";
6
6
  import { JsonProperty } from "./json-property";
7
7
  import { ArrayProperty } from "./array-property";
8
- import { InputPropertyMap, PieceAuthProperty } from "..";
8
+ import { ExtractPieceAuthPropertyTypeForMethods, InputPropertyMap, PieceAuthProperty } from "..";
9
9
  export declare const DynamicProp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
10
10
  [x: string]: import("@sinclair/typebox").TSchema;
11
11
  [x: number]: import("@sinclair/typebox").TSchema;
@@ -223,12 +223,12 @@ export declare const DynamicProperties: import("@sinclair/typebox").TObject<{
223
223
  displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
224
224
  description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
225
225
  }>;
226
- export type DynamicProperties<R extends boolean, PieceAuth extends PieceAuthProperty | undefined = undefined> = BasePropertySchema & {
226
+ export type DynamicProperties<R extends boolean, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined> = BasePropertySchema & {
227
227
  auth: PieceAuth;
228
228
  props: DynamicPropertiesOptions<PieceAuth>;
229
229
  refreshers: string[];
230
230
  } & TPropertyValue<DynamicPropsValue, PropertyType.DYNAMIC, R>;
231
- type DynamicPropertiesOptions<PieceAuth extends PieceAuthProperty | undefined = undefined> = (propsValue: Record<string, unknown> & {
232
- auth?: PieceAuth extends undefined ? undefined : AppConnectionValueForAuthProperty<Exclude<PieceAuth, undefined>>;
231
+ type DynamicPropertiesOptions<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined> = (propsValue: Record<string, unknown> & {
232
+ auth?: AppConnectionValueForAuthProperty<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>>;
233
233
  }, ctx: PropertyContext) => Promise<InputPropertyMap>;
234
234
  export {};
@@ -174,7 +174,7 @@ export declare const InputProperty: import("@sinclair/typebox").TUnion<[import("
174
174
  displayName: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
175
175
  description: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TSchema]>;
176
176
  }>]>;
177
- export type InputProperty = ShortTextProperty<boolean> | LongTextProperty<boolean> | MarkDownProperty | CheckboxProperty<boolean> | DropdownProperty<any, boolean, PieceAuthProperty | undefined> | StaticDropdownProperty<any, boolean> | NumberProperty<boolean> | ArrayProperty<boolean> | ObjectProperty<boolean> | JsonProperty<boolean> | MultiSelectDropdownProperty<unknown, boolean, PieceAuthProperty | undefined> | StaticMultiSelectDropdownProperty<unknown, boolean> | DynamicProperties<boolean, PieceAuthProperty | undefined> | DateTimeProperty<boolean> | FileProperty<boolean> | CustomProperty<boolean> | ColorProperty<boolean>;
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>;
178
178
  type Properties<T> = Omit<T, 'valueSchema' | 'type' | 'defaultValidators' | 'defaultProcessors'>;
179
179
  export declare const Property: {
180
180
  ShortText<R extends boolean>(request: Properties<ShortTextProperty<R>>): R extends true ? ShortTextProperty<true> : ShortTextProperty<false>;
@@ -188,10 +188,10 @@ export declare const Property: {
188
188
  Json<R extends boolean>(request: Properties<JsonProperty<R>>): R extends true ? JsonProperty<true> : JsonProperty<false>;
189
189
  Array<R extends boolean>(request: Properties<ArrayProperty<R>>): R extends true ? ArrayProperty<true> : ArrayProperty<false>;
190
190
  Object<R extends boolean>(request: Properties<ObjectProperty<R>>): R extends true ? ObjectProperty<true> : ObjectProperty<false>;
191
- Dropdown<T, R extends boolean = boolean, PieceAuth extends PieceAuthProperty | undefined = undefined>(request: Properties<DropdownProperty<T, R, PieceAuth>>): R extends true ? DropdownProperty<T, true, PieceAuth> : DropdownProperty<T, false, PieceAuth>;
191
+ Dropdown<T, R extends boolean = boolean, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined>(request: Properties<DropdownProperty<T, R, PieceAuth>>): R extends true ? DropdownProperty<T, true, PieceAuth> : DropdownProperty<T, false, PieceAuth>;
192
192
  StaticDropdown<T, R extends boolean = boolean>(request: Properties<StaticDropdownProperty<T, R>>): R extends true ? StaticDropdownProperty<T, true> : StaticDropdownProperty<T, false>;
193
- MultiSelectDropdown<T, R extends boolean = boolean, PieceAuth extends PieceAuthProperty | undefined = undefined>(request: Properties<MultiSelectDropdownProperty<T, R, PieceAuth>>): R extends true ? MultiSelectDropdownProperty<T, true, PieceAuth> : MultiSelectDropdownProperty<T, false, PieceAuth>;
194
- DynamicProperties<R extends boolean = boolean, PieceAuth extends PieceAuthProperty | undefined = undefined>(request: Properties<DynamicProperties<R, PieceAuth>>): R extends true ? DynamicProperties<true, PieceAuth> : DynamicProperties<false, PieceAuth>;
193
+ MultiSelectDropdown<T, R extends boolean = boolean, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined>(request: Properties<MultiSelectDropdownProperty<T, R, PieceAuth>>): R extends true ? MultiSelectDropdownProperty<T, true, PieceAuth> : MultiSelectDropdownProperty<T, false, PieceAuth>;
194
+ DynamicProperties<R extends boolean = boolean, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = undefined>(request: Properties<DynamicProperties<R, PieceAuth>>): R extends true ? DynamicProperties<true, PieceAuth> : DynamicProperties<false, PieceAuth>;
195
195
  StaticMultiSelectDropdown<T, R extends boolean = boolean>(request: Properties<StaticMultiSelectDropdownProperty<T, R>>): R extends true ? StaticMultiSelectDropdownProperty<T, true> : StaticMultiSelectDropdownProperty<T, false>;
196
196
  DateTime<R extends boolean>(request: Properties<DateTimeProperty<R>>): R extends true ? DateTimeProperty<true> : DateTimeProperty<false>;
197
197
  File<R extends boolean>(request: Properties<FileProperty<R>>): R extends true ? FileProperty<true> : FileProperty<false>;
@@ -0,0 +1,8 @@
1
+ import { PiecePropertyMap } from ".";
2
+ import { PieceAuthProperty } from "./authentication";
3
+ import { TSchema } from "@sinclair/typebox";
4
+ declare function buildSchema(props: PiecePropertyMap, auth: PieceAuthProperty | PieceAuthProperty[] | undefined): import("@sinclair/typebox").TObject<Record<string, TSchema>>;
5
+ export declare const piecePropertiesUtils: {
6
+ buildSchema: typeof buildSchema;
7
+ };
8
+ export {};
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.piecePropertiesUtils = void 0;
4
+ const property_type_1 = require("./input/property-type");
5
+ const typebox_1 = require("@sinclair/typebox");
6
+ const shared_1 = require("@activepieces/shared");
7
+ function buildSchema(props, auth) {
8
+ const entries = Object.entries(props);
9
+ const nullableType = [typebox_1.Type.Null(), typebox_1.Type.Undefined()];
10
+ const nonNullableUnknownPropType = typebox_1.Type.Not(typebox_1.Type.Union(nullableType), typebox_1.Type.Unknown());
11
+ const propsSchema = {};
12
+ for (const [name, property] of entries) {
13
+ switch (property.type) {
14
+ case property_type_1.PropertyType.MARKDOWN:
15
+ propsSchema[name] = typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Null(), typebox_1.Type.Undefined(), typebox_1.Type.Never(), typebox_1.Type.Unknown()]));
16
+ break;
17
+ case property_type_1.PropertyType.DATE_TIME:
18
+ case property_type_1.PropertyType.SHORT_TEXT:
19
+ case property_type_1.PropertyType.LONG_TEXT:
20
+ case property_type_1.PropertyType.COLOR:
21
+ case property_type_1.PropertyType.FILE:
22
+ propsSchema[name] = typebox_1.Type.String({
23
+ minLength: property.required ? 1 : undefined,
24
+ });
25
+ break;
26
+ case property_type_1.PropertyType.CHECKBOX:
27
+ propsSchema[name] = typebox_1.Type.Union([
28
+ typebox_1.Type.Boolean({ defaultValue: false }),
29
+ typebox_1.Type.String({}),
30
+ ]);
31
+ break;
32
+ case property_type_1.PropertyType.NUMBER:
33
+ propsSchema[name] = typebox_1.Type.Union([
34
+ typebox_1.Type.String({
35
+ minLength: property.required ? 1 : undefined,
36
+ }),
37
+ typebox_1.Type.Number(),
38
+ ]);
39
+ break;
40
+ case property_type_1.PropertyType.STATIC_DROPDOWN:
41
+ case property_type_1.PropertyType.DROPDOWN:
42
+ propsSchema[name] = nonNullableUnknownPropType;
43
+ break;
44
+ case property_type_1.PropertyType.BASIC_AUTH:
45
+ case property_type_1.PropertyType.CUSTOM_AUTH:
46
+ case property_type_1.PropertyType.SECRET_TEXT:
47
+ case property_type_1.PropertyType.OAUTH2:
48
+ break;
49
+ case property_type_1.PropertyType.ARRAY: {
50
+ const arrayItemSchema = (0, shared_1.isNil)(property.properties)
51
+ ? typebox_1.Type.String({
52
+ minLength: property.required ? 1 : undefined,
53
+ })
54
+ : buildSchema(property.properties, undefined);
55
+ propsSchema[name] = typebox_1.Type.Union([
56
+ typebox_1.Type.Array(arrayItemSchema, {
57
+ minItems: property.required ? 1 : undefined,
58
+ }),
59
+ //for inline items mode
60
+ typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
61
+ //for normal dynamic input mode
62
+ typebox_1.Type.String({
63
+ minLength: property.required ? 1 : undefined,
64
+ }),
65
+ ]);
66
+ break;
67
+ }
68
+ case property_type_1.PropertyType.OBJECT:
69
+ propsSchema[name] = typebox_1.Type.Union([
70
+ typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any()),
71
+ typebox_1.Type.String({
72
+ minLength: property.required ? 1 : undefined,
73
+ }),
74
+ ]);
75
+ break;
76
+ case property_type_1.PropertyType.JSON:
77
+ propsSchema[name] = typebox_1.Type.Union([
78
+ typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any()),
79
+ typebox_1.Type.Array(typebox_1.Type.Any()),
80
+ typebox_1.Type.String({
81
+ minLength: property.required ? 1 : undefined,
82
+ }),
83
+ ]);
84
+ break;
85
+ case property_type_1.PropertyType.MULTI_SELECT_DROPDOWN:
86
+ case property_type_1.PropertyType.STATIC_MULTI_SELECT_DROPDOWN:
87
+ propsSchema[name] = typebox_1.Type.Union([
88
+ typebox_1.Type.Array(typebox_1.Type.Any(), {
89
+ minItems: property.required ? 1 : undefined,
90
+ }),
91
+ typebox_1.Type.String({
92
+ minLength: property.required ? 1 : undefined,
93
+ }),
94
+ ]);
95
+ break;
96
+ case property_type_1.PropertyType.DYNAMIC:
97
+ propsSchema[name] = typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any());
98
+ break;
99
+ case property_type_1.PropertyType.CUSTOM:
100
+ propsSchema[name] = typebox_1.Type.Unknown();
101
+ break;
102
+ }
103
+ //optional array is checked against its children
104
+ if (!property.required && property.type !== property_type_1.PropertyType.ARRAY) {
105
+ propsSchema[name] = typebox_1.Type.Optional(typebox_1.Type.Union((0, shared_1.isEmpty)(propsSchema[name])
106
+ ? [typebox_1.Type.Any(), ...nullableType]
107
+ : [propsSchema[name], ...nullableType]));
108
+ }
109
+ }
110
+ if (auth) {
111
+ const authProperty = Array.isArray(auth) ? auth.at(0) : auth;
112
+ propsSchema[shared_1.AUTHENTICATION_PROPERTY_NAME] = typebox_1.Type.String({
113
+ minLength: (authProperty === null || authProperty === void 0 ? void 0 : authProperty.required) ? 1 : 0
114
+ });
115
+ }
116
+ return typebox_1.Type.Object(propsSchema);
117
+ }
118
+ exports.piecePropertiesUtils = {
119
+ buildSchema
120
+ };
121
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/property/util.ts"],"names":[],"mappings":";;;AAEA,yDAAqD;AACrD,+CAAkD;AAClD,iDAAoF;AAEpF,SAAS,WAAW,CAAC,KAAuB,EAAE,IAAyD;IACnG,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,YAAY,GAAG,CAAC,cAAI,CAAC,IAAI,EAAE,EAAE,cAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IACrD,MAAM,0BAA0B,GAAG,cAAI,CAAC,GAAG,CACzC,cAAI,CAAC,KAAK,CAAC,YAAY,CAAC,EACxB,cAAI,CAAC,OAAO,EAAE,CACf,CAAC;IACF,MAAM,WAAW,GAA4B,EAAE,CAAC;IAChD,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,OAAO,EAAE,CAAC;QACvC,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtB,KAAK,4BAAY,CAAC,QAAQ;gBACxB,WAAW,CAAC,IAAI,CAAC,GAAG,cAAI,CAAC,QAAQ,CAC/B,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,IAAI,EAAE,EAAE,cAAI,CAAC,SAAS,EAAE,EAAE,cAAI,CAAC,KAAK,EAAE,EAAE,cAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAC1E,CAAC;gBACF,MAAM;YACR,KAAK,4BAAY,CAAC,SAAS,CAAC;YAC5B,KAAK,4BAAY,CAAC,UAAU,CAAC;YAC7B,KAAK,4BAAY,CAAC,SAAS,CAAC;YAC5B,KAAK,4BAAY,CAAC,KAAK,CAAC;YACxB,KAAK,4BAAY,CAAC,IAAI;gBACpB,WAAW,CAAC,IAAI,CAAC,GAAG,cAAI,CAAC,MAAM,CAA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,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IACD,IAAG,IAAI,EACL,CAAC;QACA,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7D,WAAW,CAAC,qCAA4B,CAAC,GAAG,cAAI,CAAC,MAAM,CAAC;YACtD,SAAS,EAAE,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,EAAA,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC;SACxC,CAAC,CAAA;IACH,CAAC;IACH,OAAO,cAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAClC,CAAC;AAEY,QAAA,oBAAoB,GAAG;IAClC,WAAW;CACZ,CAAA"}
@@ -2,7 +2,7 @@ import { Static } from '@sinclair/typebox';
2
2
  import { OnStartContext, TestOrRunHookContext, TriggerHookContext } from '../context';
3
3
  import { TriggerBase } from '../piece-metadata';
4
4
  import { InputPropertyMap } from '../property';
5
- import { PieceAuthProperty } from '../property/authentication';
5
+ import { ExtractPieceAuthPropertyTypeForMethods, PieceAuthProperty } from '../property/authentication';
6
6
  import { TriggerStrategy, TriggerTestStrategy, WebhookHandshakeConfiguration } from '@activepieces/shared';
7
7
  export { TriggerStrategy };
8
8
  export declare const DEDUPE_KEY_PROPERTY = "_dedupe_key";
@@ -23,7 +23,7 @@ export interface WebhookResponse {
23
23
  body?: any;
24
24
  headers?: Record<string, string>;
25
25
  }
26
- type BaseTriggerParams<PieceAuth extends PieceAuthProperty | undefined, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = {
26
+ type BaseTriggerParams<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = {
27
27
  name: string;
28
28
  displayName: string;
29
29
  description: string;
@@ -31,21 +31,21 @@ type BaseTriggerParams<PieceAuth extends PieceAuthProperty | undefined, TriggerP
31
31
  auth?: PieceAuth;
32
32
  props: TriggerProps;
33
33
  type: TS;
34
- onEnable: (context: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
35
- onDisable: (context: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
36
- run: (context: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
37
- test?: (context: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
38
- onStart?: OnStartRunner<PieceAuth, TriggerProps>;
34
+ onEnable: (context: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<void>;
35
+ onDisable: (context: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<void>;
36
+ run: (context: TestOrRunHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<unknown[]>;
37
+ test?: (context: TestOrRunHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<unknown[]>;
38
+ onStart?: OnStartRunner<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps>;
39
39
  sampleData: unknown;
40
40
  };
41
- type WebhookTriggerParams<PieceAuth extends PieceAuthProperty | undefined, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = BaseTriggerParams<PieceAuth, TriggerProps, TS> & {
41
+ type WebhookTriggerParams<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = BaseTriggerParams<PieceAuth, TriggerProps, TS> & {
42
42
  handshakeConfiguration?: WebhookHandshakeConfiguration;
43
- onHandshake?: (context: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<WebhookResponse>;
43
+ onHandshake?: (context: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<WebhookResponse>;
44
44
  renewConfiguration?: WebhookRenewConfiguration;
45
- onRenew?(context: TriggerHookContext<PieceAuth, TriggerProps, TS>): Promise<void>;
45
+ onRenew?(context: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>): Promise<void>;
46
46
  };
47
- type CreateTriggerParams<PieceAuth extends PieceAuthProperty | undefined, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = TS extends TriggerStrategy.WEBHOOK ? WebhookTriggerParams<PieceAuth, TriggerProps, TS> : BaseTriggerParams<PieceAuth, TriggerProps, TS>;
48
- export declare class ITrigger<TS extends TriggerStrategy, PieceAuth extends PieceAuthProperty | undefined, TriggerProps extends InputPropertyMap> implements TriggerBase {
47
+ type CreateTriggerParams<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined, TriggerProps extends InputPropertyMap, TS extends TriggerStrategy> = TS extends TriggerStrategy.WEBHOOK ? WebhookTriggerParams<PieceAuth, TriggerProps, TS> : BaseTriggerParams<PieceAuth, TriggerProps, TS>;
48
+ export declare class ITrigger<TS extends TriggerStrategy, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined, TriggerProps extends InputPropertyMap> implements TriggerBase {
49
49
  readonly name: string;
50
50
  readonly displayName: string;
51
51
  readonly description: string;
@@ -53,17 +53,17 @@ export declare class ITrigger<TS extends TriggerStrategy, PieceAuth extends Piec
53
53
  readonly props: TriggerProps;
54
54
  readonly type: TS;
55
55
  readonly handshakeConfiguration: WebhookHandshakeConfiguration;
56
- readonly onHandshake: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<WebhookResponse>;
56
+ readonly onHandshake: (ctx: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<WebhookResponse>;
57
57
  readonly renewConfiguration: WebhookRenewConfiguration;
58
- readonly onRenew: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
59
- readonly onEnable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
60
- readonly onDisable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>;
61
- readonly onStart: OnStartRunner<PieceAuth, TriggerProps>;
62
- readonly run: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
63
- readonly test: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>;
58
+ readonly onRenew: (ctx: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<void>;
59
+ readonly onEnable: (ctx: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<void>;
60
+ readonly onDisable: (ctx: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<void>;
61
+ readonly onStart: OnStartRunner<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps>;
62
+ readonly run: (ctx: TestOrRunHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<unknown[]>;
63
+ readonly test: (ctx: TestOrRunHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<unknown[]>;
64
64
  readonly sampleData: unknown;
65
65
  readonly testStrategy: TriggerTestStrategy;
66
- constructor(name: string, displayName: string, description: string, requireAuth: boolean, props: TriggerProps, type: TS, handshakeConfiguration: WebhookHandshakeConfiguration, onHandshake: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<WebhookResponse>, renewConfiguration: WebhookRenewConfiguration, onRenew: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>, onEnable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>, onDisable: (ctx: TriggerHookContext<PieceAuth, TriggerProps, TS>) => Promise<void>, onStart: OnStartRunner<PieceAuth, TriggerProps>, run: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>, test: (ctx: TestOrRunHookContext<PieceAuth, TriggerProps, TS>) => Promise<unknown[]>, sampleData: unknown, testStrategy: TriggerTestStrategy);
66
+ constructor(name: string, displayName: string, description: string, requireAuth: boolean, props: TriggerProps, type: TS, handshakeConfiguration: WebhookHandshakeConfiguration, onHandshake: (ctx: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<WebhookResponse>, renewConfiguration: WebhookRenewConfiguration, onRenew: (ctx: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<void>, onEnable: (ctx: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<void>, onDisable: (ctx: TriggerHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<void>, onStart: OnStartRunner<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps>, run: (ctx: TestOrRunHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<unknown[]>, test: (ctx: TestOrRunHookContext<ExtractPieceAuthPropertyTypeForMethods<PieceAuth>, TriggerProps, TS>) => Promise<unknown[]>, sampleData: unknown, testStrategy: TriggerTestStrategy);
67
67
  }
68
- export type Trigger<PieceAuth extends PieceAuthProperty | undefined = PieceAuthProperty, TriggerProps extends InputPropertyMap = any, S extends TriggerStrategy = TriggerStrategy> = ITrigger<S, PieceAuth, TriggerProps>;
69
- export declare const createTrigger: <TS extends TriggerStrategy, PieceAuth extends PieceAuthProperty | undefined, TriggerProps extends InputPropertyMap>(params: CreateTriggerParams<PieceAuth, TriggerProps, TS>) => ITrigger<TriggerStrategy.WEBHOOK, PieceAuth, TriggerProps> | ITrigger<TriggerStrategy.POLLING, PieceAuth, TriggerProps> | ITrigger<TriggerStrategy.APP_WEBHOOK, PieceAuth, TriggerProps>;
68
+ export type Trigger<PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = any, TriggerProps extends InputPropertyMap = any, S extends TriggerStrategy = any> = ITrigger<S, PieceAuth, TriggerProps>;
69
+ export declare const createTrigger: <TS extends TriggerStrategy, PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined, TriggerProps extends InputPropertyMap>(params: CreateTriggerParams<PieceAuth, TriggerProps, TS>) => ITrigger<TriggerStrategy.WEBHOOK, PieceAuth, TriggerProps> | ITrigger<TriggerStrategy.POLLING, PieceAuth, TriggerProps> | ITrigger<TriggerStrategy.APP_WEBHOOK, PieceAuth, TriggerProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/trigger/trigger.ts"],"names":[],"mappings":";;;;AAAA,+CAAiD;AAKjD,iDAA4I;AACnI,gGADO,wBAAe,OACP;AAEX,QAAA,mBAAmB,GAAG,aAAa,CAAA;AAIhD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;AACf,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAMY,QAAA,yBAAyB,GAAG,cAAI,CAAC,KAAK,CAAC;IAClD,cAAI,CAAC,MAAM,CAAC;QACV,QAAQ,EAAE,cAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC;QACjD,cAAc,EAAE,cAAI,CAAC,MAAM,EAAE;KAC9B,CAAC;IACF,cAAI,CAAC,MAAM,CAAC;QACV,QAAQ,EAAE,cAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC;KAClD,CAAC;CACH,CAAC,CAAA;AAgDF,MAAa,QAAQ;IAKnB,YACkB,IAAY,EACZ,WAAmB,EACnB,WAAmB,EACnB,WAAoB,EACpB,KAAmB,EACnB,IAAQ,EACR,sBAAqD,EACrD,WAA+F,EAC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C,CAAC,CAAC,CAAC,4BAAmB,CAAC,UAAU,CAAC,CAAC,CAAC,4BAAmB,CAAC,aAAa,CACtH,CAAA;IACL,CAAC;AACH,CAAC,CAAA;AAnEY,QAAA,aAAa,iBAmEzB"}
1
+ {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/trigger/trigger.ts"],"names":[],"mappings":";;;;AAAA,+CAAiD;AAKjD,iDAA4I;AACnI,gGADO,wBAAe,OACP;AAEX,QAAA,mBAAmB,GAAG,aAAa,CAAA;AAIhD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;AACf,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAMY,QAAA,yBAAyB,GAAG,cAAI,CAAC,KAAK,CAAC;IAClD,cAAI,CAAC,MAAM,CAAC;QACV,QAAQ,EAAE,cAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC;QACjD,cAAc,EAAE,cAAI,CAAC,MAAM,EAAE;KAC9B,CAAC;IACF,cAAI,CAAC,MAAM,CAAC;QACV,QAAQ,EAAE,cAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC;KAClD,CAAC;CACH,CAAC,CAAA;AAgDF,MAAa,QAAQ;IAKnB,YACkB,IAAY,EACZ,WAAmB,EACnB,WAAmB,EACnB,WAAoB,EACpB,KAAmB,EACnB,IAAQ,EACR,sBAAqD,EACrD,WAAuI,EACvI,kBAA6C,EAC7C,OAAwH,EACxH,QAAyH,EACzH,SAA0H,EAC1H,OAAuF,EACvF,GAA2H,EAC3H,IAA4H,EAC5H,UAAmB,EACnB,YAAiC;QAhBjC,SAAI,GAAJ,IAAI,CAAQ;QACZ,gBAAW,GAAX,WAAW,CAAQ;QACnB,gBAAW,GAAX,WAAW,CAAQ;QACnB,gBAAW,GAAX,WAAW,CAAS;QACpB,UAAK,GAAL,KAAK,CAAc;QACnB,SAAI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ClC,CAAA;QACH,KAAK,wBAAe,CAAC,WAAW;YAC9B,OAAO,IAAI,QAAQ,CACjB,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,WAAW,EAClB,MAAA,MAAM,CAAC,WAAW,mCAAI,IAAI,EAC1B,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,IAAI,EACX,EAAE,QAAQ,EAAE,iCAAwB,CAAC,IAAI,EAAE,EAC3C,GAAS,EAAE,0DAAC,OAAA,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA,GAAA,EAC7B,EAAE,QAAQ,EAAE,oBAAoB,CAAC,IAAI,EAAE,EACvC,CAAC,GAAS,EAAE,0DAAC,OAAA,OAAO,CAAC,OAAO,EAAE,CAAA,GAAA,CAAC,EAC/B,MAAM,CAAC,QAAQ,EACf,MAAM,CAAC,SAAS,EAChB,MAAA,MAAM,CAAC,OAAO,mCAAI,CAAC,GAAS,EAAE,0DAAC,OAAA,OAAO,CAAC,OAAO,EAAE,CAAA,GAAA,CAAC,EACjD,MAAM,CAAC,GAAG,EACV,MAAA,MAAM,CAAC,IAAI,mCAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAC3D,MAAM,CAAC,UAAU,EACjB,CAAC,IAAA,cAAK,EAAC,MAAM,CAAC,UAAU,CAAC,IAAI,IAAA,cAAK,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,4BAAmB,CAAC,UAAU,CAAC,CAAC,CAAC,4BAAmB,CAAC,aAAa,CACtH,CAAA;IACL,CAAC;AACH,CAAC,CAAA;AAnEY,QAAA,aAAa,iBAmEzB"}
@@ -1 +0,0 @@
1
- export declare const CONNECTION_REGEX = "{{1}{connections.(.*?)}{1}}";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONNECTION_REGEX = void 0;
4
- exports.CONNECTION_REGEX = '{{1}{connections.(.*?)}{1}}';
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/framework/src/lib/validators/index.ts"],"names":[],"mappings":";;;AACa,QAAA,gBAAgB,GAAG,6BAA6B,CAAA"}