@powerhousedao/pieces-framework 6.2.3-dev.23 → 6.2.3-dev.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/UPSTREAM.md +57 -10
- package/dist/{action--RmO83_Y.d.ts → action-BOq8m66H.d.ts} +6116 -6119
- package/dist/{action--RmO83_Y.d.ts.map → action-BOq8m66H.d.ts.map} +1 -1
- package/dist/{authentication-B7brX_It.js → authentication-o-4CdAPR.js} +20 -20
- package/dist/{authentication-B7brX_It.js.map → authentication-o-4CdAPR.js.map} +1 -1
- package/dist/common.d.ts +41 -77
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +64 -66
- package/dist/common.js.map +1 -1
- package/dist/host.d.ts +26 -22
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +33 -28
- package/dist/host.js.map +1 -1
- package/dist/{index-BW6GxXEN.d.ts → index-Ceki0QqC.d.ts} +957 -968
- package/dist/index-Ceki0QqC.d.ts.map +1 -0
- package/dist/index.d.ts +176 -175
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +185 -155
- package/dist/index.js.map +1 -1
- package/dist/{input-COuhC1I-.js → input-BHkj_oP5.js} +45 -32
- package/dist/{input-COuhC1I-.js.map → input-BHkj_oP5.js.map} +1 -1
- package/dist/{markdown-property-Df2l6_y_.js → markdown-property-DMfHjEiL.js} +13 -10
- package/dist/{markdown-property-Df2l6_y_.js.map → markdown-property-DMfHjEiL.js.map} +1 -1
- package/package.json +4 -3
- package/dist/index-BW6GxXEN.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as PropertyType, C as CheckboxProperty, M as TPropertyValue, O as LongTextProperty, S as NumberProperty, T as StaticMultiSelectDropdownProperty, _ as DateRangeProperty, h as MarkdownVariant, j as BasePropertySchema, k as ShortTextProperty, t as MarkDownProperty, w as StaticDropdownProperty, x as FileProperty } from "./markdown-property-
|
|
1
|
+
import { A as PropertyType, C as CheckboxProperty, M as TPropertyValue, O as LongTextProperty, S as NumberProperty, T as StaticMultiSelectDropdownProperty, _ as DateRangeProperty, h as MarkdownVariant, j as BasePropertySchema, k as ShortTextProperty, t as MarkDownProperty, w as StaticDropdownProperty, x as FileProperty } from "./markdown-property-DMfHjEiL.js";
|
|
2
2
|
import * as z from "zod/mini";
|
|
3
3
|
|
|
4
4
|
//#region upstream/framework/lib/action/action.ts
|
|
@@ -13,6 +13,19 @@ const ErrorHandlingOptionsParam = z.object({
|
|
|
13
13
|
})
|
|
14
14
|
});
|
|
15
15
|
var IAction = class {
|
|
16
|
+
name;
|
|
17
|
+
displayName;
|
|
18
|
+
description;
|
|
19
|
+
props;
|
|
20
|
+
propertyGroups;
|
|
21
|
+
run;
|
|
22
|
+
test;
|
|
23
|
+
requireAuth;
|
|
24
|
+
errorHandlingOptions;
|
|
25
|
+
outputSchema;
|
|
26
|
+
audience;
|
|
27
|
+
aiMetadata;
|
|
28
|
+
classification;
|
|
16
29
|
constructor(name, displayName, description, props, propertyGroups, run, test, requireAuth, errorHandlingOptions, outputSchema, audience, aiMetadata, classification) {
|
|
17
30
|
this.name = name;
|
|
18
31
|
this.displayName = displayName;
|
|
@@ -40,12 +53,12 @@ const createAction = (params) => {
|
|
|
40
53
|
//#region upstream/framework/lib/property/input/dropdown/dropdown-prop.ts
|
|
41
54
|
const DropdownProperty = z.object({
|
|
42
55
|
...BasePropertySchema.shape,
|
|
43
|
-
...TPropertyValue(z.unknown(),
|
|
56
|
+
...TPropertyValue(z.unknown(), "DROPDOWN").shape,
|
|
44
57
|
refreshers: z.array(z.string())
|
|
45
58
|
});
|
|
46
59
|
const MultiSelectDropdownProperty = z.object({
|
|
47
60
|
...BasePropertySchema.shape,
|
|
48
|
-
...TPropertyValue(z.array(z.unknown()),
|
|
61
|
+
...TPropertyValue(z.array(z.unknown()), "MULTI_SELECT_DROPDOWN").shape,
|
|
49
62
|
refreshers: z.array(z.string())
|
|
50
63
|
});
|
|
51
64
|
|
|
@@ -53,21 +66,21 @@ const MultiSelectDropdownProperty = z.object({
|
|
|
53
66
|
//#region upstream/framework/lib/property/input/json-property.ts
|
|
54
67
|
const JsonProperty = z.object({
|
|
55
68
|
...BasePropertySchema.shape,
|
|
56
|
-
...TPropertyValue(z.union([z.record(z.string(), z.unknown())]),
|
|
69
|
+
...TPropertyValue(z.union([z.record(z.string(), z.unknown())]), "JSON").shape
|
|
57
70
|
});
|
|
58
71
|
|
|
59
72
|
//#endregion
|
|
60
73
|
//#region upstream/framework/lib/property/input/color-property.ts
|
|
61
74
|
const ColorProperty = z.object({
|
|
62
75
|
...BasePropertySchema.shape,
|
|
63
|
-
...TPropertyValue(z.string(),
|
|
76
|
+
...TPropertyValue(z.string(), "COLOR").shape
|
|
64
77
|
});
|
|
65
78
|
|
|
66
79
|
//#endregion
|
|
67
80
|
//#region upstream/framework/lib/property/input/date-time-property.ts
|
|
68
81
|
const DateTimeProperty = z.object({
|
|
69
82
|
...BasePropertySchema.shape,
|
|
70
|
-
...TPropertyValue(z.string(),
|
|
83
|
+
...TPropertyValue(z.string(), "DATE_TIME").shape
|
|
71
84
|
});
|
|
72
85
|
|
|
73
86
|
//#endregion
|
|
@@ -88,7 +101,7 @@ const ArraySubProps = z.record(z.string(), z.union([
|
|
|
88
101
|
const ArrayProperty = z.object({
|
|
89
102
|
...BasePropertySchema.shape,
|
|
90
103
|
properties: z.optional(ArraySubProps),
|
|
91
|
-
...TPropertyValue(z.array(z.unknown()),
|
|
104
|
+
...TPropertyValue(z.array(z.unknown()), "ARRAY").shape
|
|
92
105
|
});
|
|
93
106
|
|
|
94
107
|
//#endregion
|
|
@@ -104,7 +117,7 @@ const DynamicPropsValue = z.record(z.string(), DynamicProp);
|
|
|
104
117
|
const DynamicProperties = z.object({
|
|
105
118
|
refreshers: z.array(z.string()),
|
|
106
119
|
...BasePropertySchema.shape,
|
|
107
|
-
...TPropertyValue(z.unknown(),
|
|
120
|
+
...TPropertyValue(z.unknown(), "DYNAMIC").shape
|
|
108
121
|
});
|
|
109
122
|
|
|
110
123
|
//#endregion
|
|
@@ -120,7 +133,7 @@ const isNotUndefined = (value) => {
|
|
|
120
133
|
//#region upstream/framework/lib/property/input/object-property.ts
|
|
121
134
|
const ObjectProperty = z.object({
|
|
122
135
|
...BasePropertySchema.shape,
|
|
123
|
-
...TPropertyValue(z.record(z.string(), z.unknown()),
|
|
136
|
+
...TPropertyValue(z.record(z.string(), z.unknown()), "OBJECT").shape
|
|
124
137
|
});
|
|
125
138
|
|
|
126
139
|
//#endregion
|
|
@@ -128,14 +141,14 @@ const ObjectProperty = z.object({
|
|
|
128
141
|
const RichTextProperty = z.object({
|
|
129
142
|
...BasePropertySchema.shape,
|
|
130
143
|
formatProperty: z.optional(z.string()),
|
|
131
|
-
...TPropertyValue(z.string(),
|
|
144
|
+
...TPropertyValue(z.string(), "RICH_TEXT").shape
|
|
132
145
|
});
|
|
133
146
|
|
|
134
147
|
//#endregion
|
|
135
148
|
//#region upstream/framework/lib/property/input/custom-property.ts
|
|
136
149
|
const CustomProperty = z.object({
|
|
137
150
|
...BasePropertySchema.shape,
|
|
138
|
-
...TPropertyValue(z.unknown(),
|
|
151
|
+
...TPropertyValue(z.unknown(), "CUSTOM").shape,
|
|
139
152
|
code: z.string()
|
|
140
153
|
});
|
|
141
154
|
|
|
@@ -167,28 +180,28 @@ const Property = {
|
|
|
167
180
|
return {
|
|
168
181
|
...request,
|
|
169
182
|
valueSchema: void 0,
|
|
170
|
-
type:
|
|
183
|
+
type: "SHORT_TEXT"
|
|
171
184
|
};
|
|
172
185
|
},
|
|
173
186
|
Checkbox(request) {
|
|
174
187
|
return {
|
|
175
188
|
...request,
|
|
176
189
|
valueSchema: void 0,
|
|
177
|
-
type:
|
|
190
|
+
type: "CHECKBOX"
|
|
178
191
|
};
|
|
179
192
|
},
|
|
180
193
|
LongText(request) {
|
|
181
194
|
return {
|
|
182
195
|
...request,
|
|
183
196
|
valueSchema: void 0,
|
|
184
|
-
type:
|
|
197
|
+
type: "LONG_TEXT"
|
|
185
198
|
};
|
|
186
199
|
},
|
|
187
200
|
RichText(request) {
|
|
188
201
|
return {
|
|
189
202
|
...request,
|
|
190
203
|
valueSchema: void 0,
|
|
191
|
-
type:
|
|
204
|
+
type: "RICH_TEXT"
|
|
192
205
|
};
|
|
193
206
|
},
|
|
194
207
|
MarkDown(request) {
|
|
@@ -196,93 +209,93 @@ const Property = {
|
|
|
196
209
|
displayName: "Markdown",
|
|
197
210
|
required: false,
|
|
198
211
|
description: request.value,
|
|
199
|
-
type:
|
|
212
|
+
type: "MARKDOWN",
|
|
200
213
|
valueSchema: void 0,
|
|
201
|
-
variant: request.variant ??
|
|
214
|
+
variant: request.variant ?? "INFO"
|
|
202
215
|
};
|
|
203
216
|
},
|
|
204
217
|
Number(request) {
|
|
205
218
|
return {
|
|
206
219
|
...request,
|
|
207
220
|
valueSchema: void 0,
|
|
208
|
-
type:
|
|
221
|
+
type: "NUMBER"
|
|
209
222
|
};
|
|
210
223
|
},
|
|
211
224
|
Json(request) {
|
|
212
225
|
return {
|
|
213
226
|
...request,
|
|
214
227
|
valueSchema: void 0,
|
|
215
|
-
type:
|
|
228
|
+
type: "JSON"
|
|
216
229
|
};
|
|
217
230
|
},
|
|
218
231
|
Array(request) {
|
|
219
232
|
return {
|
|
220
233
|
...request,
|
|
221
234
|
valueSchema: void 0,
|
|
222
|
-
type:
|
|
235
|
+
type: "ARRAY"
|
|
223
236
|
};
|
|
224
237
|
},
|
|
225
238
|
Object(request) {
|
|
226
239
|
return {
|
|
227
240
|
...request,
|
|
228
241
|
valueSchema: void 0,
|
|
229
|
-
type:
|
|
242
|
+
type: "OBJECT"
|
|
230
243
|
};
|
|
231
244
|
},
|
|
232
245
|
Dropdown(request) {
|
|
233
246
|
return {
|
|
234
247
|
...request,
|
|
235
248
|
valueSchema: void 0,
|
|
236
|
-
type:
|
|
249
|
+
type: "DROPDOWN"
|
|
237
250
|
};
|
|
238
251
|
},
|
|
239
252
|
StaticDropdown(request) {
|
|
240
253
|
return {
|
|
241
254
|
...request,
|
|
242
255
|
valueSchema: void 0,
|
|
243
|
-
type:
|
|
256
|
+
type: "STATIC_DROPDOWN"
|
|
244
257
|
};
|
|
245
258
|
},
|
|
246
259
|
MultiSelectDropdown(request) {
|
|
247
260
|
return {
|
|
248
261
|
...request,
|
|
249
262
|
valueSchema: void 0,
|
|
250
|
-
type:
|
|
263
|
+
type: "MULTI_SELECT_DROPDOWN"
|
|
251
264
|
};
|
|
252
265
|
},
|
|
253
266
|
DynamicProperties(request) {
|
|
254
267
|
return {
|
|
255
268
|
...request,
|
|
256
269
|
valueSchema: void 0,
|
|
257
|
-
type:
|
|
270
|
+
type: "DYNAMIC"
|
|
258
271
|
};
|
|
259
272
|
},
|
|
260
273
|
StaticMultiSelectDropdown(request) {
|
|
261
274
|
return {
|
|
262
275
|
...request,
|
|
263
276
|
valueSchema: void 0,
|
|
264
|
-
type:
|
|
277
|
+
type: "STATIC_MULTI_SELECT_DROPDOWN"
|
|
265
278
|
};
|
|
266
279
|
},
|
|
267
280
|
DateTime(request) {
|
|
268
281
|
return {
|
|
269
282
|
...request,
|
|
270
283
|
valueSchema: void 0,
|
|
271
|
-
type:
|
|
284
|
+
type: "DATE_TIME"
|
|
272
285
|
};
|
|
273
286
|
},
|
|
274
287
|
DateRange(request) {
|
|
275
288
|
return {
|
|
276
289
|
...request,
|
|
277
290
|
valueSchema: void 0,
|
|
278
|
-
type:
|
|
291
|
+
type: "DATE_RANGE"
|
|
279
292
|
};
|
|
280
293
|
},
|
|
281
294
|
File(request) {
|
|
282
295
|
return {
|
|
283
296
|
...request,
|
|
284
297
|
valueSchema: void 0,
|
|
285
|
-
type:
|
|
298
|
+
type: "FILE"
|
|
286
299
|
};
|
|
287
300
|
},
|
|
288
301
|
Custom(request) {
|
|
@@ -291,18 +304,18 @@ const Property = {
|
|
|
291
304
|
...request,
|
|
292
305
|
code,
|
|
293
306
|
valueSchema: void 0,
|
|
294
|
-
type:
|
|
307
|
+
type: "CUSTOM"
|
|
295
308
|
};
|
|
296
309
|
},
|
|
297
310
|
Color(request) {
|
|
298
311
|
return {
|
|
299
312
|
...request,
|
|
300
313
|
valueSchema: void 0,
|
|
301
|
-
type:
|
|
314
|
+
type: "COLOR"
|
|
302
315
|
};
|
|
303
316
|
}
|
|
304
317
|
};
|
|
305
318
|
|
|
306
319
|
//#endregion
|
|
307
320
|
export { ErrorHandlingOptionsParam as _, ObjectProperty as a, DynamicProp as c, ArrayProperty as d, ArraySubProps as f, MultiSelectDropdownProperty as g, DropdownProperty as h, RichTextProperty as i, DynamicProperties as l, JsonProperty as m, Property as n, assertNotNullOrUndefined as o, DateTimeProperty as p, CustomProperty as r, isNotUndefined as s, InputProperty as t, DynamicPropsValue as u, IAction as v, createAction as y };
|
|
308
|
-
//# sourceMappingURL=input-
|
|
321
|
+
//# sourceMappingURL=input-BHkj_oP5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-COuhC1I-.js","names":[],"sources":["../upstream/framework/lib/action/action.ts","../upstream/framework/lib/property/input/dropdown/dropdown-prop.ts","../upstream/framework/lib/property/input/json-property.ts","../upstream/framework/lib/property/input/color-property.ts","../upstream/framework/lib/property/input/date-time-property.ts","../upstream/framework/lib/property/input/array-property.ts","../upstream/framework/lib/property/input/dynamic-prop.ts","../upstream/core-utils/lib/assertions.ts","../upstream/framework/lib/property/input/object-property.ts","../upstream/framework/lib/property/input/rich-text-property.ts","../upstream/framework/lib/property/input/custom-property.ts","../upstream/framework/lib/property/input/index.ts"],"sourcesContent":["// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/action/action.ts. MIT; see ../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport type { ActionContext } from \"../context/index.js\";\nimport type { OutputSchema } from \"../output-schema.js\";\nimport type {\n ActionBase,\n Audience,\n AiMetadata,\n ActionClassification,\n PropertyGroup,\n} from \"../piece-metadata.js\";\nimport type { InputPropertyMap } from \"../property/index.js\";\nimport type {\n ExtractPieceAuthPropertyTypeForMethods,\n PieceAuthProperty,\n} from \"../property/authentication/index.js\";\n\nexport type ActionRunner<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n PieceAuthProperty,\n ActionProps extends InputPropertyMap = InputPropertyMap,\n> = (ctx: ActionContext<PieceAuth, ActionProps>) => Promise<unknown | void>;\n\nexport const ErrorHandlingOptionsParam = z.object({\n retryOnFailure: z.object({\n defaultValue: z.optional(z.boolean()),\n hide: z.optional(z.boolean()),\n }),\n continueOnFailure: z.object({\n defaultValue: z.optional(z.boolean()),\n hide: z.optional(z.boolean()),\n }),\n});\nexport type ErrorHandlingOptionsParam = z.infer<\n typeof ErrorHandlingOptionsParam\n>;\n\ntype CreateActionParams<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined,\n ActionProps extends InputPropertyMap,\n> = {\n /**\n * A dummy parameter used to infer {@code PieceAuth} type\n */\n name: string;\n /**\n * this parameter is used to infer the type of the piece auth value in run and test methods\n */\n auth?: PieceAuth;\n displayName: string;\n description: string;\n props: ActionProps;\n propertyGroups?: PropertyGroup[];\n run: ActionRunner<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>,\n ActionProps\n >;\n test?: ActionRunner<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>,\n ActionProps\n >;\n requireAuth?: boolean;\n errorHandlingOptions?: ErrorHandlingOptionsParam;\n outputSchema?: OutputSchema;\n audience?: Audience;\n aiMetadata?: AiMetadata;\n classification?: ActionClassification;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport class IAction<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = any,\n ActionProps extends InputPropertyMap = InputPropertyMap,\n> implements ActionBase {\n constructor(\n public readonly name: string,\n public readonly displayName: string,\n public readonly description: string,\n public readonly props: ActionProps,\n public readonly propertyGroups: PropertyGroup[] | undefined,\n public readonly run: ActionRunner<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>,\n ActionProps\n >,\n public readonly test: ActionRunner<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>,\n ActionProps\n >,\n public readonly requireAuth: boolean,\n public readonly errorHandlingOptions: ErrorHandlingOptionsParam,\n public readonly outputSchema?: OutputSchema,\n public readonly audience?: Audience,\n public readonly aiMetadata?: AiMetadata,\n public readonly classification?: ActionClassification,\n ) {}\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type Action<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = any,\n ActionProps extends InputPropertyMap = any,\n> = IAction<PieceAuth, ActionProps>;\n\nexport const createAction = <\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n PieceAuthProperty,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ActionProps extends InputPropertyMap = any,\n>(\n params: CreateActionParams<PieceAuth, ActionProps>,\n) => {\n return new IAction(\n params.name,\n params.displayName,\n params.description,\n params.props,\n params.propertyGroups,\n params.run,\n params.test ?? params.run,\n params.requireAuth ?? true,\n params.errorHandlingOptions ?? {\n continueOnFailure: {\n defaultValue: false,\n },\n retryOnFailure: {\n defaultValue: false,\n },\n },\n params.outputSchema,\n params.audience,\n params.aiMetadata,\n params.classification,\n );\n};\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/dropdown/dropdown-prop.ts. MIT; see ../../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport { BasePropertySchema, TPropertyValue } from \"../common.js\";\nimport type { DropdownState } from \"./common.js\";\nimport type {\n AppConnectionValueForAuthProperty,\n PropertyContext,\n} from \"../../../context/index.js\";\nimport * as z from \"zod/mini\";\nimport { PropertyType } from \"../property-type.js\";\nimport type { PieceAuthProperty } from \"../../authentication/index.js\";\n\ntype DynamicDropdownOptions<\n T,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = (\n propsValue: Record<string, unknown> & {\n auth?: PieceAuth extends undefined\n ? undefined\n : AppConnectionValueForAuthProperty<Exclude<PieceAuth, undefined>>;\n },\n ctx: PropertyContext,\n) => Promise<DropdownState<T>>;\n\nexport const DropdownProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.unknown(), PropertyType.DROPDOWN).shape,\n refreshers: z.array(z.string()),\n});\n\nexport type DropdownProperty<\n T,\n R extends boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = BasePropertySchema & {\n /**\n * A dummy property used to infer {@code PieceAuth} type\n */\n auth: PieceAuth;\n refreshers: string[];\n refreshOnSearch?: boolean;\n options: DynamicDropdownOptions<T, PieceAuth>;\n} & TPropertyValue<T, PropertyType.DROPDOWN, R>;\n\nexport const MultiSelectDropdownProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.array(z.unknown()), PropertyType.MULTI_SELECT_DROPDOWN)\n .shape,\n refreshers: z.array(z.string()),\n});\n\nexport type MultiSelectDropdownProperty<\n T,\n R extends boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = BasePropertySchema & {\n /**\n * A dummy property used to infer {@code PieceAuth} type\n */\n auth: PieceAuth;\n refreshers: string[];\n refreshOnSearch?: boolean;\n options: DynamicDropdownOptions<T, PieceAuth>;\n} & TPropertyValue<T[], PropertyType.MULTI_SELECT_DROPDOWN, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/json-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const JsonProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(\n z.union([z.record(z.string(), z.unknown())]),\n PropertyType.JSON,\n ).shape,\n});\nexport type JsonProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<Record<string, unknown>, PropertyType.JSON, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/color-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const ColorProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.string(), PropertyType.COLOR).shape,\n});\n\nexport type ColorProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<string, PropertyType.COLOR, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/date-time-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const DateTimeProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.string(), PropertyType.DATE_TIME).shape,\n});\n\nexport type DateTimeProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<string, PropertyType.DATE_TIME, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/array-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\nimport { LongTextProperty, ShortTextProperty } from \"./text-property.js\";\nimport {\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n} from \"./dropdown/static-dropdown.js\";\nimport { MultiSelectDropdownProperty } from \"./dropdown/dropdown-prop.js\";\nimport { CheckboxProperty } from \"./checkbox-property.js\";\nimport { NumberProperty } from \"./number-property.js\";\nimport { FileProperty } from \"./file-property.js\";\nimport { JsonProperty } from \"./json-property.js\";\nimport { ColorProperty } from \"./color-property.js\";\nimport { DateTimeProperty } from \"./date-time-property.js\";\n\nexport const ArraySubProps = z.record(\n z.string(),\n z.union([\n ShortTextProperty,\n LongTextProperty,\n StaticDropdownProperty,\n MultiSelectDropdownProperty,\n StaticMultiSelectDropdownProperty,\n CheckboxProperty,\n NumberProperty,\n FileProperty,\n JsonProperty,\n ColorProperty,\n DateTimeProperty,\n ]),\n);\n\nexport const ArrayProperty = z.object({\n ...BasePropertySchema.shape,\n properties: z.optional(ArraySubProps),\n ...TPropertyValue(z.array(z.unknown()), PropertyType.ARRAY).shape,\n});\n\nexport type ArraySubProps<R extends boolean> = Record<\n string,\n | ShortTextProperty<R>\n | LongTextProperty<R>\n | StaticDropdownProperty<unknown, R>\n | MultiSelectDropdownProperty<unknown, R>\n | StaticMultiSelectDropdownProperty<unknown, R>\n | CheckboxProperty<R>\n | NumberProperty<R>\n | FileProperty<R>\n | JsonProperty<R>\n | ColorProperty<R>\n | DateTimeProperty<R>\n>;\n\nexport type ArrayProperty<R extends boolean> = BasePropertySchema & {\n properties?: ArraySubProps<R>;\n} & TPropertyValue<unknown[], PropertyType.ARRAY, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/dynamic-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport {\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n} from \"./dropdown/static-dropdown.js\";\nimport { ShortTextProperty } from \"./text-property.js\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport type {\n AppConnectionValueForAuthProperty,\n PropertyContext,\n} from \"../../context/index.js\";\nimport { PropertyType } from \"./property-type.js\";\nimport { JsonProperty } from \"./json-property.js\";\nimport { ArrayProperty } from \"./array-property.js\";\nimport type {\n ExtractPieceAuthPropertyTypeForMethods,\n InputPropertyMap,\n PieceAuthProperty,\n} from \"../index.js\";\n\nexport const DynamicProp = z.union([\n ShortTextProperty,\n StaticDropdownProperty,\n JsonProperty,\n ArrayProperty,\n StaticMultiSelectDropdownProperty,\n]);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type DynamicProp =\n | ShortTextProperty<boolean>\n | StaticDropdownProperty<any, boolean>\n | JsonProperty<boolean>\n | ArrayProperty<boolean>\n | StaticMultiSelectDropdownProperty<any, boolean>;\n\nexport const DynamicPropsValue = z.record(z.string(), DynamicProp);\n\nexport type DynamicPropsValue = Record<string, DynamicProp[\"valueSchema\"]>;\n\nexport const DynamicProperties = z.object({\n refreshers: z.array(z.string()),\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.unknown(), PropertyType.DYNAMIC).shape,\n});\n\nexport type DynamicProperties<\n R extends boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = BasePropertySchema & {\n //dummy property to define auth property value inside props value\n auth: PieceAuth;\n props: DynamicPropertiesOptions<PieceAuth>;\n refreshers: string[];\n} & TPropertyValue<DynamicPropsValue, PropertyType.DYNAMIC, R>;\n\ntype DynamicPropertiesOptions<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = (\n propsValue: Record<string, unknown> & {\n auth?: AppConnectionValueForAuthProperty<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>\n >;\n },\n ctx: PropertyContext,\n) => Promise<InputPropertyMap>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/core/utils/src/lib/assertions.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nexport function assertEqual<T>(\n actual: T,\n expected: T,\n fieldName1: string,\n fieldName2: string,\n): asserts actual is T {\n if (actual !== expected) {\n throw new Error(`${fieldName1} and ${fieldName2} should be equal`);\n }\n}\n\nexport function assertNotNullOrUndefined<T>(\n value: T | null | undefined,\n fieldName: string,\n): asserts value is T {\n if (value === null || value === undefined) {\n throw new Error(`${fieldName} is null or undefined`);\n }\n}\n\nexport function assertNotEqual<T>(\n value1: T,\n value2: T,\n fieldName1: string,\n fieldName2: string,\n): void {\n if (value1 === value2) {\n throw new Error(`${fieldName1} and ${fieldName2} should not be equal`);\n }\n}\n\nexport const isNotUndefined = <T>(value: T | undefined): value is T => {\n return value !== undefined;\n};\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/object-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const ObjectProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.record(z.string(), z.unknown()), PropertyType.OBJECT)\n .shape,\n});\n\nexport type ObjectProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<Record<string, unknown>, PropertyType.OBJECT, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/rich-text-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const RichTextProperty = z.object({\n ...BasePropertySchema.shape,\n formatProperty: z.optional(z.string()),\n ...TPropertyValue(z.string(), PropertyType.RICH_TEXT).shape,\n});\n\nexport type RichTextProperty<R extends boolean> = BasePropertySchema & {\n /**\n * Name of a sibling property whose value selects the editing mode.\n * The sibling value is mapped by convention: 'plain_text' | 'plain' | 'text' -> plain,\n * 'html' -> rich/html, 'markdown' | 'md' -> markdown. Anything else falls back to plain.\n */\n formatProperty?: string;\n} & TPropertyValue<string, PropertyType.RICH_TEXT, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/custom-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\n// Code should be a valid javascript function that takes a single argument which is an object\n/*\n(ctx: {containerId:string, value: unknown, onChange: (value: unknown) => void, isEmbeded: boolean, projectId:string}) => void\n*/\nexport const CustomProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.unknown(), PropertyType.CUSTOM).shape,\n code: z.string(),\n});\n\nexport type CustomProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<unknown, PropertyType.CUSTOM, R> & {\n code: string;\n };\n\nexport type CustomPropertyCodeFunctionParams = {\n containerId: string;\n value: unknown;\n onChange: (value: unknown) => void;\n isEmbeded: boolean;\n projectId: string;\n property: Pick<\n CustomProperty<boolean>,\n \"displayName\" | \"description\" | \"required\"\n >;\n disabled: boolean;\n};\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/index.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { ArrayProperty } from \"./array-property.js\";\nimport { CheckboxProperty } from \"./checkbox-property.js\";\nimport { DateTimeProperty } from \"./date-time-property.js\";\nimport { DateRangeProperty } from \"./date-range-property.js\";\nimport {\n DropdownProperty,\n MultiSelectDropdownProperty,\n} from \"./dropdown/dropdown-prop.js\";\nimport {\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n} from \"./dropdown/static-dropdown.js\";\nimport { DynamicProperties } from \"./dynamic-prop.js\";\nimport { FileProperty } from \"./file-property.js\";\nimport { JsonProperty } from \"./json-property.js\";\nimport { MarkDownProperty } from \"./markdown-property.js\";\nimport { MarkdownVariant } from \"../../../../core-piece-types/index.js\";\nimport { NumberProperty } from \"./number-property.js\";\nimport { ObjectProperty } from \"./object-property.js\";\nimport { PropertyType } from \"./property-type.js\";\nimport { LongTextProperty, ShortTextProperty } from \"./text-property.js\";\nimport { RichTextProperty } from \"./rich-text-property.js\";\nimport { CustomProperty } from \"./custom-property.js\";\nimport type { CustomPropertyCodeFunctionParams } from \"./custom-property.js\";\nimport { ColorProperty } from \"./color-property.js\";\nimport type { PieceAuthProperty } from \"../authentication/index.js\";\n\nexport const InputProperty = z.union([\n ShortTextProperty,\n LongTextProperty,\n RichTextProperty,\n MarkDownProperty,\n CheckboxProperty,\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n DropdownProperty,\n MultiSelectDropdownProperty,\n DynamicProperties,\n NumberProperty,\n ArrayProperty,\n ObjectProperty,\n JsonProperty,\n DateTimeProperty,\n DateRangeProperty,\n FileProperty,\n CustomProperty,\n ColorProperty,\n]);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type InputProperty =\n | ShortTextProperty<boolean>\n | LongTextProperty<boolean>\n | RichTextProperty<boolean>\n | MarkDownProperty\n | CheckboxProperty<boolean>\n | DropdownProperty<\n any,\n boolean,\n PieceAuthProperty | undefined | PieceAuthProperty[]\n >\n | StaticDropdownProperty<any, boolean>\n | NumberProperty<boolean>\n | ArrayProperty<boolean>\n | ObjectProperty<boolean>\n | JsonProperty<boolean>\n | MultiSelectDropdownProperty<\n any,\n boolean,\n PieceAuthProperty | undefined | PieceAuthProperty[]\n >\n | StaticMultiSelectDropdownProperty<any, boolean>\n | DynamicProperties<\n boolean,\n PieceAuthProperty | PieceAuthProperty[] | undefined\n >\n | DateTimeProperty<boolean>\n | DateRangeProperty<boolean>\n | FileProperty<boolean, boolean>\n | CustomProperty<boolean>\n | ColorProperty<boolean>;\n\ntype Properties<T> = Omit<\n T,\n \"valueSchema\" | \"type\" | \"defaultValidators\" | \"defaultProcessors\"\n>;\n\nexport const Property = {\n ShortText<R extends boolean>(\n request: Properties<ShortTextProperty<R>>,\n ): R extends true ? ShortTextProperty<true> : ShortTextProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.SHORT_TEXT,\n } as unknown as R extends true\n ? ShortTextProperty<true>\n : ShortTextProperty<false>;\n },\n Checkbox<R extends boolean>(\n request: Properties<CheckboxProperty<R>>,\n ): R extends true ? CheckboxProperty<true> : CheckboxProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.CHECKBOX,\n } as unknown as R extends true\n ? CheckboxProperty<true>\n : CheckboxProperty<false>;\n },\n LongText<R extends boolean>(\n request: Properties<LongTextProperty<R>>,\n ): R extends true ? LongTextProperty<true> : LongTextProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.LONG_TEXT,\n } as unknown as R extends true\n ? LongTextProperty<true>\n : LongTextProperty<false>;\n },\n RichText<R extends boolean>(\n request: Properties<RichTextProperty<R>>,\n ): R extends true ? RichTextProperty<true> : RichTextProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.RICH_TEXT,\n } as unknown as R extends true\n ? RichTextProperty<true>\n : RichTextProperty<false>;\n },\n MarkDown(request: {\n value: string;\n variant?: MarkdownVariant;\n }): MarkDownProperty {\n return {\n displayName: \"Markdown\",\n required: false,\n description: request.value,\n type: PropertyType.MARKDOWN,\n valueSchema: undefined as never,\n variant: request.variant ?? MarkdownVariant.INFO,\n };\n },\n Number<R extends boolean>(\n request: Properties<NumberProperty<R>>,\n ): R extends true ? NumberProperty<true> : NumberProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.NUMBER,\n } as unknown as R extends true\n ? NumberProperty<true>\n : NumberProperty<false>;\n },\n\n Json<R extends boolean>(\n request: Properties<JsonProperty<R>>,\n ): R extends true ? JsonProperty<true> : JsonProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.JSON,\n } as unknown as R extends true ? JsonProperty<true> : JsonProperty<false>;\n },\n Array<R extends boolean>(\n request: Properties<ArrayProperty<R>>,\n ): R extends true ? ArrayProperty<true> : ArrayProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.ARRAY,\n } as unknown as R extends true ? ArrayProperty<true> : ArrayProperty<false>;\n },\n Object<R extends boolean>(\n request: Properties<ObjectProperty<R>>,\n ): R extends true ? ObjectProperty<true> : ObjectProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.OBJECT,\n } as unknown as R extends true\n ? ObjectProperty<true>\n : ObjectProperty<false>;\n },\n Dropdown<\n T,\n R extends boolean = boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n >(\n request: Properties<DropdownProperty<T, R, PieceAuth>>,\n ): R extends true\n ? DropdownProperty<T, true, PieceAuth>\n : DropdownProperty<T, false, PieceAuth> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.DROPDOWN,\n } as unknown as R extends true\n ? DropdownProperty<T, true, PieceAuth>\n : DropdownProperty<T, false, PieceAuth>;\n },\n StaticDropdown<T, R extends boolean = boolean>(\n request: Properties<StaticDropdownProperty<T, R>>,\n ): R extends true\n ? StaticDropdownProperty<T, true>\n : StaticDropdownProperty<T, false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.STATIC_DROPDOWN,\n } as unknown as R extends true\n ? StaticDropdownProperty<T, true>\n : StaticDropdownProperty<T, false>;\n },\n MultiSelectDropdown<\n T,\n R extends boolean = boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n >(\n request: Properties<MultiSelectDropdownProperty<T, R, PieceAuth>>,\n ): R extends true\n ? MultiSelectDropdownProperty<T, true, PieceAuth>\n : MultiSelectDropdownProperty<T, false, PieceAuth> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.MULTI_SELECT_DROPDOWN,\n } as unknown as R extends true\n ? MultiSelectDropdownProperty<T, true, PieceAuth>\n : MultiSelectDropdownProperty<T, false, PieceAuth>;\n },\n DynamicProperties<\n R extends boolean = boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n >(\n request: Properties<DynamicProperties<R, PieceAuth>>,\n ): R extends true\n ? DynamicProperties<true, PieceAuth>\n : DynamicProperties<false, PieceAuth> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.DYNAMIC,\n } as unknown as R extends true\n ? DynamicProperties<true, PieceAuth>\n : DynamicProperties<false, PieceAuth>;\n },\n StaticMultiSelectDropdown<T, R extends boolean = boolean>(\n request: Properties<StaticMultiSelectDropdownProperty<T, R>>,\n ): R extends true\n ? StaticMultiSelectDropdownProperty<T, true>\n : StaticMultiSelectDropdownProperty<T, false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.STATIC_MULTI_SELECT_DROPDOWN,\n } as unknown as R extends true\n ? StaticMultiSelectDropdownProperty<T, true>\n : StaticMultiSelectDropdownProperty<T, false>;\n },\n DateTime<R extends boolean>(\n request: Properties<DateTimeProperty<R>>,\n ): R extends true ? DateTimeProperty<true> : DateTimeProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.DATE_TIME,\n } as unknown as R extends true\n ? DateTimeProperty<true>\n : DateTimeProperty<false>;\n },\n DateRange<R extends boolean>(\n request: Properties<DateRangeProperty<R>>,\n ): R extends true ? DateRangeProperty<true> : DateRangeProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.DATE_RANGE,\n } as unknown as R extends true\n ? DateRangeProperty<true>\n : DateRangeProperty<false>;\n },\n File<R extends boolean, S extends boolean = false>(\n request: Properties<FileProperty<R, S>>,\n ): FileProperty<\n R extends true ? true : false,\n S extends true ? true : false\n > {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.FILE,\n } as unknown as FileProperty<\n R extends true ? true : false,\n S extends true ? true : false\n >;\n },\n Custom<R extends boolean>(\n request: Omit<Properties<CustomProperty<R>>, \"code\"> & {\n /**\n * This is designed to be self-contained and operates independently of any\n * external libraries or imported dependencies. All necessary logic and\n * functionality are implemented within this function itself.\n *\n * You can return a cleanup function that will be called when the component is unmounted in the frontend.\n * */\n code: (ctx: CustomPropertyCodeFunctionParams) => (() => void) | void;\n },\n ): R extends true ? CustomProperty<true> : CustomProperty<false> {\n const code = request.code.toString();\n return {\n ...request,\n code,\n valueSchema: undefined,\n type: PropertyType.CUSTOM,\n } as unknown as R extends true\n ? CustomProperty<true>\n : CustomProperty<false>;\n },\n Color<R extends boolean>(\n request: Properties<ColorProperty<R>>,\n ): R extends true ? ColorProperty<true> : ColorProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.COLOR,\n } as unknown as R extends true ? ColorProperty<true> : ColorProperty<false>;\n },\n};\n"],"mappings":";;;;AAwBA,MAAa,4BAA4B,EAAE,OAAO;CAChD,gBAAgB,EAAE,OAAO;EACvB,cAAc,EAAE,SAAS,EAAE,SAAS,CAAC;EACrC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;EAC9B,CAAC;CACF,mBAAmB,EAAE,OAAO;EAC1B,cAAc,EAAE,SAAS,EAAE,SAAS,CAAC;EACrC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;EAC9B,CAAC;CACH,CAAC;AAsCF,IAAa,UAAb,MAGwB;CACtB,YACE,AAAgB,MAChB,AAAgB,aAChB,AAAgB,aAChB,AAAgB,OAChB,AAAgB,gBAChB,AAAgB,KAIhB,AAAgB,MAIhB,AAAgB,aAChB,AAAgB,sBAChB,AAAgB,cAChB,AAAgB,UAChB,AAAgB,YAChB,AAAgB,gBAChB;EAnBgB;EACA;EACA;EACA;EACA;EACA;EAIA;EAIA;EACA;EACA;EACA;EACA;EACA;;;AAUpB,MAAa,gBAMX,WACG;AACH,QAAO,IAAI,QACT,OAAO,MACP,OAAO,aACP,OAAO,aACP,OAAO,OACP,OAAO,gBACP,OAAO,KACP,OAAO,QAAQ,OAAO,KACtB,OAAO,eAAe,MACtB,OAAO,wBAAwB;EAC7B,mBAAmB,EACjB,cAAc,OACf;EACD,gBAAgB,EACd,cAAc,OACf;EACF,EACD,OAAO,cACP,OAAO,UACP,OAAO,YACP,OAAO,eACR;;;;;AC5GH,MAAa,mBAAmB,EAAE,OAAO;C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AEJ"}
|
|
1
|
+
{"version":3,"file":"input-BHkj_oP5.js","names":[],"sources":["../upstream/framework/lib/action/action.ts","../upstream/framework/lib/property/input/dropdown/dropdown-prop.ts","../upstream/framework/lib/property/input/json-property.ts","../upstream/framework/lib/property/input/color-property.ts","../upstream/framework/lib/property/input/date-time-property.ts","../upstream/framework/lib/property/input/array-property.ts","../upstream/framework/lib/property/input/dynamic-prop.ts","../upstream/core-utils/lib/assertions.ts","../upstream/framework/lib/property/input/object-property.ts","../upstream/framework/lib/property/input/rich-text-property.ts","../upstream/framework/lib/property/input/custom-property.ts","../upstream/framework/lib/property/input/index.ts"],"sourcesContent":["// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/action/action.ts. MIT; see ../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport type { ActionContext } from \"../context/index.js\";\nimport type { OutputSchema } from \"../output-schema.js\";\nimport type {\n ActionBase,\n Audience,\n AiMetadata,\n ActionClassification,\n PropertyGroup,\n} from \"../piece-metadata.js\";\nimport type { InputPropertyMap } from \"../property/index.js\";\nimport type {\n ExtractPieceAuthPropertyTypeForMethods,\n PieceAuthProperty,\n} from \"../property/authentication/index.js\";\n\nexport type ActionRunner<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n PieceAuthProperty,\n ActionProps extends InputPropertyMap = InputPropertyMap,\n> = (ctx: ActionContext<PieceAuth, ActionProps>) => Promise<unknown | void>;\n\nexport const ErrorHandlingOptionsParam = z.object({\n retryOnFailure: z.object({\n defaultValue: z.optional(z.boolean()),\n hide: z.optional(z.boolean()),\n }),\n continueOnFailure: z.object({\n defaultValue: z.optional(z.boolean()),\n hide: z.optional(z.boolean()),\n }),\n});\nexport type ErrorHandlingOptionsParam = z.infer<\n typeof ErrorHandlingOptionsParam\n>;\n\ntype CreateActionParams<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined,\n ActionProps extends InputPropertyMap,\n> = {\n /**\n * A dummy parameter used to infer {@code PieceAuth} type\n */\n name: string;\n /**\n * this parameter is used to infer the type of the piece auth value in run and test methods\n */\n auth?: PieceAuth;\n displayName: string;\n description: string;\n props: ActionProps;\n propertyGroups?: PropertyGroup[];\n run: ActionRunner<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>,\n ActionProps\n >;\n test?: ActionRunner<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>,\n ActionProps\n >;\n requireAuth?: boolean;\n errorHandlingOptions?: ErrorHandlingOptionsParam;\n outputSchema?: OutputSchema;\n audience?: Audience;\n aiMetadata?: AiMetadata;\n classification?: ActionClassification;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport class IAction<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = any,\n ActionProps extends InputPropertyMap = InputPropertyMap,\n> implements ActionBase {\n constructor(\n public readonly name: string,\n public readonly displayName: string,\n public readonly description: string,\n public readonly props: ActionProps,\n public readonly propertyGroups: PropertyGroup[] | undefined,\n public readonly run: ActionRunner<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>,\n ActionProps\n >,\n public readonly test: ActionRunner<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>,\n ActionProps\n >,\n public readonly requireAuth: boolean,\n public readonly errorHandlingOptions: ErrorHandlingOptionsParam,\n public readonly outputSchema?: OutputSchema,\n public readonly audience?: Audience,\n public readonly aiMetadata?: AiMetadata,\n public readonly classification?: ActionClassification,\n ) {}\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type Action<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined = any,\n ActionProps extends InputPropertyMap = any,\n> = IAction<PieceAuth, ActionProps>;\n\nexport const createAction = <\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n PieceAuthProperty,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ActionProps extends InputPropertyMap = any,\n>(\n params: CreateActionParams<PieceAuth, ActionProps>,\n) => {\n return new IAction(\n params.name,\n params.displayName,\n params.description,\n params.props,\n params.propertyGroups,\n params.run,\n params.test ?? params.run,\n params.requireAuth ?? true,\n params.errorHandlingOptions ?? {\n continueOnFailure: {\n defaultValue: false,\n },\n retryOnFailure: {\n defaultValue: false,\n },\n },\n params.outputSchema,\n params.audience,\n params.aiMetadata,\n params.classification,\n );\n};\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/dropdown/dropdown-prop.ts. MIT; see ../../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport { BasePropertySchema, TPropertyValue } from \"../common.js\";\nimport type { DropdownState } from \"./common.js\";\nimport type {\n AppConnectionValueForAuthProperty,\n PropertyContext,\n} from \"../../../context/index.js\";\nimport * as z from \"zod/mini\";\nimport { PropertyType } from \"../property-type.js\";\nimport type { PieceAuthProperty } from \"../../authentication/index.js\";\n\ntype DynamicDropdownOptions<\n T,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = (\n propsValue: Record<string, unknown> & {\n auth?: PieceAuth extends undefined\n ? undefined\n : AppConnectionValueForAuthProperty<Exclude<PieceAuth, undefined>>;\n },\n ctx: PropertyContext,\n) => Promise<DropdownState<T>>;\n\nexport const DropdownProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.unknown(), PropertyType.DROPDOWN).shape,\n refreshers: z.array(z.string()),\n});\n\nexport type DropdownProperty<\n T,\n R extends boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = BasePropertySchema & {\n /**\n * A dummy property used to infer {@code PieceAuth} type\n */\n auth: PieceAuth;\n refreshers: string[];\n refreshOnSearch?: boolean;\n options: DynamicDropdownOptions<T, PieceAuth>;\n} & TPropertyValue<T, PropertyType.DROPDOWN, R>;\n\nexport const MultiSelectDropdownProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.array(z.unknown()), PropertyType.MULTI_SELECT_DROPDOWN)\n .shape,\n refreshers: z.array(z.string()),\n});\n\nexport type MultiSelectDropdownProperty<\n T,\n R extends boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = BasePropertySchema & {\n /**\n * A dummy property used to infer {@code PieceAuth} type\n */\n auth: PieceAuth;\n refreshers: string[];\n refreshOnSearch?: boolean;\n options: DynamicDropdownOptions<T, PieceAuth>;\n} & TPropertyValue<T[], PropertyType.MULTI_SELECT_DROPDOWN, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/json-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const JsonProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(\n z.union([z.record(z.string(), z.unknown())]),\n PropertyType.JSON,\n ).shape,\n});\nexport type JsonProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<Record<string, unknown>, PropertyType.JSON, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/color-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const ColorProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.string(), PropertyType.COLOR).shape,\n});\n\nexport type ColorProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<string, PropertyType.COLOR, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/date-time-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const DateTimeProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.string(), PropertyType.DATE_TIME).shape,\n});\n\nexport type DateTimeProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<string, PropertyType.DATE_TIME, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/array-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\nimport { LongTextProperty, ShortTextProperty } from \"./text-property.js\";\nimport {\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n} from \"./dropdown/static-dropdown.js\";\nimport { MultiSelectDropdownProperty } from \"./dropdown/dropdown-prop.js\";\nimport { CheckboxProperty } from \"./checkbox-property.js\";\nimport { NumberProperty } from \"./number-property.js\";\nimport { FileProperty } from \"./file-property.js\";\nimport { JsonProperty } from \"./json-property.js\";\nimport { ColorProperty } from \"./color-property.js\";\nimport { DateTimeProperty } from \"./date-time-property.js\";\n\nexport const ArraySubProps = z.record(\n z.string(),\n z.union([\n ShortTextProperty,\n LongTextProperty,\n StaticDropdownProperty,\n MultiSelectDropdownProperty,\n StaticMultiSelectDropdownProperty,\n CheckboxProperty,\n NumberProperty,\n FileProperty,\n JsonProperty,\n ColorProperty,\n DateTimeProperty,\n ]),\n);\n\nexport const ArrayProperty = z.object({\n ...BasePropertySchema.shape,\n properties: z.optional(ArraySubProps),\n ...TPropertyValue(z.array(z.unknown()), PropertyType.ARRAY).shape,\n});\n\nexport type ArraySubProps<R extends boolean> = Record<\n string,\n | ShortTextProperty<R>\n | LongTextProperty<R>\n | StaticDropdownProperty<unknown, R>\n | MultiSelectDropdownProperty<unknown, R>\n | StaticMultiSelectDropdownProperty<unknown, R>\n | CheckboxProperty<R>\n | NumberProperty<R>\n | FileProperty<R>\n | JsonProperty<R>\n | ColorProperty<R>\n | DateTimeProperty<R>\n>;\n\nexport type ArrayProperty<R extends boolean> = BasePropertySchema & {\n properties?: ArraySubProps<R>;\n} & TPropertyValue<unknown[], PropertyType.ARRAY, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/dynamic-prop.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport {\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n} from \"./dropdown/static-dropdown.js\";\nimport { ShortTextProperty } from \"./text-property.js\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport type {\n AppConnectionValueForAuthProperty,\n PropertyContext,\n} from \"../../context/index.js\";\nimport { PropertyType } from \"./property-type.js\";\nimport { JsonProperty } from \"./json-property.js\";\nimport { ArrayProperty } from \"./array-property.js\";\nimport type {\n ExtractPieceAuthPropertyTypeForMethods,\n InputPropertyMap,\n PieceAuthProperty,\n} from \"../index.js\";\n\nexport const DynamicProp = z.union([\n ShortTextProperty,\n StaticDropdownProperty,\n JsonProperty,\n ArrayProperty,\n StaticMultiSelectDropdownProperty,\n]);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type DynamicProp =\n | ShortTextProperty<boolean>\n | StaticDropdownProperty<any, boolean>\n | JsonProperty<boolean>\n | ArrayProperty<boolean>\n | StaticMultiSelectDropdownProperty<any, boolean>;\n\nexport const DynamicPropsValue = z.record(z.string(), DynamicProp);\n\nexport type DynamicPropsValue = Record<string, DynamicProp[\"valueSchema\"]>;\n\nexport const DynamicProperties = z.object({\n refreshers: z.array(z.string()),\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.unknown(), PropertyType.DYNAMIC).shape,\n});\n\nexport type DynamicProperties<\n R extends boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = BasePropertySchema & {\n //dummy property to define auth property value inside props value\n auth: PieceAuth;\n props: DynamicPropertiesOptions<PieceAuth>;\n refreshers: string[];\n} & TPropertyValue<DynamicPropsValue, PropertyType.DYNAMIC, R>;\n\ntype DynamicPropertiesOptions<\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n> = (\n propsValue: Record<string, unknown> & {\n auth?: AppConnectionValueForAuthProperty<\n ExtractPieceAuthPropertyTypeForMethods<PieceAuth>\n >;\n },\n ctx: PropertyContext,\n) => Promise<InputPropertyMap>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/core/utils/src/lib/assertions.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nexport function assertEqual<T>(\n actual: T,\n expected: T,\n fieldName1: string,\n fieldName2: string,\n): asserts actual is T {\n if (actual !== expected) {\n throw new Error(`${fieldName1} and ${fieldName2} should be equal`);\n }\n}\n\nexport function assertNotNullOrUndefined<T>(\n value: T | null | undefined,\n fieldName: string,\n): asserts value is T {\n if (value === null || value === undefined) {\n throw new Error(`${fieldName} is null or undefined`);\n }\n}\n\nexport function assertNotEqual<T>(\n value1: T,\n value2: T,\n fieldName1: string,\n fieldName2: string,\n): void {\n if (value1 === value2) {\n throw new Error(`${fieldName1} and ${fieldName2} should not be equal`);\n }\n}\n\nexport const isNotUndefined = <T>(value: T | undefined): value is T => {\n return value !== undefined;\n};\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/object-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const ObjectProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.record(z.string(), z.unknown()), PropertyType.OBJECT)\n .shape,\n});\n\nexport type ObjectProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<Record<string, unknown>, PropertyType.OBJECT, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/rich-text-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport const RichTextProperty = z.object({\n ...BasePropertySchema.shape,\n formatProperty: z.optional(z.string()),\n ...TPropertyValue(z.string(), PropertyType.RICH_TEXT).shape,\n});\n\nexport type RichTextProperty<R extends boolean> = BasePropertySchema & {\n /**\n * Name of a sibling property whose value selects the editing mode.\n * The sibling value is mapped by convention: 'plain_text' | 'plain' | 'text' -> plain,\n * 'html' -> rich/html, 'markdown' | 'md' -> markdown. Anything else falls back to plain.\n */\n formatProperty?: string;\n} & TPropertyValue<string, PropertyType.RICH_TEXT, R>;\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/custom-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\n// Code should be a valid javascript function that takes a single argument which is an object\n/*\n(ctx: {containerId:string, value: unknown, onChange: (value: unknown) => void, isEmbeded: boolean, projectId:string}) => void\n*/\nexport const CustomProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.unknown(), PropertyType.CUSTOM).shape,\n code: z.string(),\n});\n\nexport type CustomProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<unknown, PropertyType.CUSTOM, R> & {\n code: string;\n };\n\nexport type CustomPropertyCodeFunctionParams = {\n containerId: string;\n value: unknown;\n onChange: (value: unknown) => void;\n isEmbeded: boolean;\n projectId: string;\n property: Pick<\n CustomProperty<boolean>,\n \"displayName\" | \"description\" | \"required\"\n >;\n disabled: boolean;\n};\n","// Vendored from activepieces/activepieces@0.91.0 packages/pieces/framework/src/lib/property/input/index.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport { ArrayProperty } from \"./array-property.js\";\nimport { CheckboxProperty } from \"./checkbox-property.js\";\nimport { DateTimeProperty } from \"./date-time-property.js\";\nimport { DateRangeProperty } from \"./date-range-property.js\";\nimport {\n DropdownProperty,\n MultiSelectDropdownProperty,\n} from \"./dropdown/dropdown-prop.js\";\nimport {\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n} from \"./dropdown/static-dropdown.js\";\nimport { DynamicProperties } from \"./dynamic-prop.js\";\nimport { FileProperty } from \"./file-property.js\";\nimport { JsonProperty } from \"./json-property.js\";\nimport { MarkDownProperty } from \"./markdown-property.js\";\nimport { MarkdownVariant } from \"../../../../core-piece-types/index.js\";\nimport { NumberProperty } from \"./number-property.js\";\nimport { ObjectProperty } from \"./object-property.js\";\nimport { PropertyType } from \"./property-type.js\";\nimport { LongTextProperty, ShortTextProperty } from \"./text-property.js\";\nimport { RichTextProperty } from \"./rich-text-property.js\";\nimport { CustomProperty } from \"./custom-property.js\";\nimport type { CustomPropertyCodeFunctionParams } from \"./custom-property.js\";\nimport { ColorProperty } from \"./color-property.js\";\nimport type { PieceAuthProperty } from \"../authentication/index.js\";\n\nexport const InputProperty = z.union([\n ShortTextProperty,\n LongTextProperty,\n RichTextProperty,\n MarkDownProperty,\n CheckboxProperty,\n StaticDropdownProperty,\n StaticMultiSelectDropdownProperty,\n DropdownProperty,\n MultiSelectDropdownProperty,\n DynamicProperties,\n NumberProperty,\n ArrayProperty,\n ObjectProperty,\n JsonProperty,\n DateTimeProperty,\n DateRangeProperty,\n FileProperty,\n CustomProperty,\n ColorProperty,\n]);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type InputProperty =\n | ShortTextProperty<boolean>\n | LongTextProperty<boolean>\n | RichTextProperty<boolean>\n | MarkDownProperty\n | CheckboxProperty<boolean>\n | DropdownProperty<\n any,\n boolean,\n PieceAuthProperty | undefined | PieceAuthProperty[]\n >\n | StaticDropdownProperty<any, boolean>\n | NumberProperty<boolean>\n | ArrayProperty<boolean>\n | ObjectProperty<boolean>\n | JsonProperty<boolean>\n | MultiSelectDropdownProperty<\n any,\n boolean,\n PieceAuthProperty | undefined | PieceAuthProperty[]\n >\n | StaticMultiSelectDropdownProperty<any, boolean>\n | DynamicProperties<\n boolean,\n PieceAuthProperty | PieceAuthProperty[] | undefined\n >\n | DateTimeProperty<boolean>\n | DateRangeProperty<boolean>\n | FileProperty<boolean, boolean>\n | CustomProperty<boolean>\n | ColorProperty<boolean>;\n\ntype Properties<T> = Omit<\n T,\n \"valueSchema\" | \"type\" | \"defaultValidators\" | \"defaultProcessors\"\n>;\n\nexport const Property = {\n ShortText<R extends boolean>(\n request: Properties<ShortTextProperty<R>>,\n ): R extends true ? ShortTextProperty<true> : ShortTextProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.SHORT_TEXT,\n } as unknown as R extends true\n ? ShortTextProperty<true>\n : ShortTextProperty<false>;\n },\n Checkbox<R extends boolean>(\n request: Properties<CheckboxProperty<R>>,\n ): R extends true ? CheckboxProperty<true> : CheckboxProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.CHECKBOX,\n } as unknown as R extends true\n ? CheckboxProperty<true>\n : CheckboxProperty<false>;\n },\n LongText<R extends boolean>(\n request: Properties<LongTextProperty<R>>,\n ): R extends true ? LongTextProperty<true> : LongTextProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.LONG_TEXT,\n } as unknown as R extends true\n ? LongTextProperty<true>\n : LongTextProperty<false>;\n },\n RichText<R extends boolean>(\n request: Properties<RichTextProperty<R>>,\n ): R extends true ? RichTextProperty<true> : RichTextProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.RICH_TEXT,\n } as unknown as R extends true\n ? RichTextProperty<true>\n : RichTextProperty<false>;\n },\n MarkDown(request: {\n value: string;\n variant?: MarkdownVariant;\n }): MarkDownProperty {\n return {\n displayName: \"Markdown\",\n required: false,\n description: request.value,\n type: PropertyType.MARKDOWN,\n valueSchema: undefined as never,\n variant: request.variant ?? MarkdownVariant.INFO,\n };\n },\n Number<R extends boolean>(\n request: Properties<NumberProperty<R>>,\n ): R extends true ? NumberProperty<true> : NumberProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.NUMBER,\n } as unknown as R extends true\n ? NumberProperty<true>\n : NumberProperty<false>;\n },\n\n Json<R extends boolean>(\n request: Properties<JsonProperty<R>>,\n ): R extends true ? JsonProperty<true> : JsonProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.JSON,\n } as unknown as R extends true ? JsonProperty<true> : JsonProperty<false>;\n },\n Array<R extends boolean>(\n request: Properties<ArrayProperty<R>>,\n ): R extends true ? ArrayProperty<true> : ArrayProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.ARRAY,\n } as unknown as R extends true ? ArrayProperty<true> : ArrayProperty<false>;\n },\n Object<R extends boolean>(\n request: Properties<ObjectProperty<R>>,\n ): R extends true ? ObjectProperty<true> : ObjectProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.OBJECT,\n } as unknown as R extends true\n ? ObjectProperty<true>\n : ObjectProperty<false>;\n },\n Dropdown<\n T,\n R extends boolean = boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n >(\n request: Properties<DropdownProperty<T, R, PieceAuth>>,\n ): R extends true\n ? DropdownProperty<T, true, PieceAuth>\n : DropdownProperty<T, false, PieceAuth> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.DROPDOWN,\n } as unknown as R extends true\n ? DropdownProperty<T, true, PieceAuth>\n : DropdownProperty<T, false, PieceAuth>;\n },\n StaticDropdown<T, R extends boolean = boolean>(\n request: Properties<StaticDropdownProperty<T, R>>,\n ): R extends true\n ? StaticDropdownProperty<T, true>\n : StaticDropdownProperty<T, false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.STATIC_DROPDOWN,\n } as unknown as R extends true\n ? StaticDropdownProperty<T, true>\n : StaticDropdownProperty<T, false>;\n },\n MultiSelectDropdown<\n T,\n R extends boolean = boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n >(\n request: Properties<MultiSelectDropdownProperty<T, R, PieceAuth>>,\n ): R extends true\n ? MultiSelectDropdownProperty<T, true, PieceAuth>\n : MultiSelectDropdownProperty<T, false, PieceAuth> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.MULTI_SELECT_DROPDOWN,\n } as unknown as R extends true\n ? MultiSelectDropdownProperty<T, true, PieceAuth>\n : MultiSelectDropdownProperty<T, false, PieceAuth>;\n },\n DynamicProperties<\n R extends boolean = boolean,\n PieceAuth extends PieceAuthProperty | PieceAuthProperty[] | undefined =\n undefined,\n >(\n request: Properties<DynamicProperties<R, PieceAuth>>,\n ): R extends true\n ? DynamicProperties<true, PieceAuth>\n : DynamicProperties<false, PieceAuth> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.DYNAMIC,\n } as unknown as R extends true\n ? DynamicProperties<true, PieceAuth>\n : DynamicProperties<false, PieceAuth>;\n },\n StaticMultiSelectDropdown<T, R extends boolean = boolean>(\n request: Properties<StaticMultiSelectDropdownProperty<T, R>>,\n ): R extends true\n ? StaticMultiSelectDropdownProperty<T, true>\n : StaticMultiSelectDropdownProperty<T, false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.STATIC_MULTI_SELECT_DROPDOWN,\n } as unknown as R extends true\n ? StaticMultiSelectDropdownProperty<T, true>\n : StaticMultiSelectDropdownProperty<T, false>;\n },\n DateTime<R extends boolean>(\n request: Properties<DateTimeProperty<R>>,\n ): R extends true ? DateTimeProperty<true> : DateTimeProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.DATE_TIME,\n } as unknown as R extends true\n ? DateTimeProperty<true>\n : DateTimeProperty<false>;\n },\n DateRange<R extends boolean>(\n request: Properties<DateRangeProperty<R>>,\n ): R extends true ? DateRangeProperty<true> : DateRangeProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.DATE_RANGE,\n } as unknown as R extends true\n ? DateRangeProperty<true>\n : DateRangeProperty<false>;\n },\n File<R extends boolean, S extends boolean = false>(\n request: Properties<FileProperty<R, S>>,\n ): FileProperty<\n R extends true ? true : false,\n S extends true ? true : false\n > {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.FILE,\n } as unknown as FileProperty<\n R extends true ? true : false,\n S extends true ? true : false\n >;\n },\n Custom<R extends boolean>(\n request: Omit<Properties<CustomProperty<R>>, \"code\"> & {\n /**\n * This is designed to be self-contained and operates independently of any\n * external libraries or imported dependencies. All necessary logic and\n * functionality are implemented within this function itself.\n *\n * You can return a cleanup function that will be called when the component is unmounted in the frontend.\n * */\n code: (ctx: CustomPropertyCodeFunctionParams) => (() => void) | void;\n },\n ): R extends true ? CustomProperty<true> : CustomProperty<false> {\n const code = request.code.toString();\n return {\n ...request,\n code,\n valueSchema: undefined,\n type: PropertyType.CUSTOM,\n } as unknown as R extends true\n ? CustomProperty<true>\n : CustomProperty<false>;\n },\n Color<R extends boolean>(\n request: Properties<ColorProperty<R>>,\n ): R extends true ? ColorProperty<true> : ColorProperty<false> {\n return {\n ...request,\n valueSchema: undefined,\n type: PropertyType.COLOR,\n } as unknown as R extends true ? ColorProperty<true> : ColorProperty<false>;\n },\n};\n"],"mappings":";;;;AAwBA,MAAa,4BAA4B,EAAE,OAAO;CAChD,gBAAgB,EAAE,OAAO;EACvB,cAAc,EAAE,SAAS,EAAE,QAAQ,CAAC;EACpC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;CAC9B,CAAC;CACD,mBAAmB,EAAE,OAAO;EAC1B,cAAc,EAAE,SAAS,EAAE,QAAQ,CAAC;EACpC,MAAM,EA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E,OAAO,CAAC;CACrC,GAAG,eAAe,EAAE,OAAO,cAAyB,CAAC,CAAC;AACxD,CAAC;;;;ACAD,MAAa,iBAAiB,EAAE,OAAO;CACrC,GAAG,mBAAmB;CACtB,GAAG,eAAe,EAAE,QAAQ,WAAsB,CAAC,CAAC;CACpD,MAAM,EAAE,OAAO;AACjB,CAAC;;;;ACgBD,MAAa,gBAAgB,EAAE,MAAM;CACnC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAwCD,MAAa,WAAW;CACtB,UACE,SACqE;EACrE,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,SACE,SACmE;EACnE,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,SACE,SACmE;EACnE,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,SACE,SACmE;EACnE,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,SAAS,SAGY;EACnB,OAAO;GACL,aAAa;GACb,UAAU;GACV,aAAa,QAAQ;GACrB;GACA,aAAa;GACb,SAAS,QAAQ;EACnB;CACF;CACA,OACE,SAC+D;EAC/D,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CAEA,KACE,SAC2D;EAC3D,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CACF;CACA,MACE,SAC6D;EAC7D,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CACF;CACA,OACE,SAC+D;EAC/D,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,SAME,SAGwC;EACxC,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,eACE,SAGmC;EACnC,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,oBAME,SAGmD;EACnD,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,kBAKE,SAGsC;EACtC,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,0BACE,SAG8C;EAC9C,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,SACE,SACmE;EACnE,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,UACE,SACqE;EACrE,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAGF;CACA,KACE,SAIA;EACA,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CAIF;CACA,OACE,SAU+D;EAC/D,MAAM,OAAO,QAAQ,KAAK,SAAS;EACnC,OAAO;GACL,GAAG;GACH;GACA,aAAa;GACb;EACF;CAGF;CACA,MACE,SAC6D;EAC7D,OAAO;GACL,GAAG;GACH,aAAa;GACb;EACF;CACF;AACF"}
|
|
@@ -49,11 +49,11 @@ let PropertyType = /* @__PURE__ */ function(PropertyType) {
|
|
|
49
49
|
//#region upstream/framework/lib/property/input/text-property.ts
|
|
50
50
|
const ShortTextProperty = z.object({
|
|
51
51
|
...BasePropertySchema.shape,
|
|
52
|
-
...TPropertyValue(z.string(),
|
|
52
|
+
...TPropertyValue(z.string(), "SHORT_TEXT").shape
|
|
53
53
|
});
|
|
54
54
|
const LongTextProperty = z.object({
|
|
55
55
|
...BasePropertySchema.shape,
|
|
56
|
-
...TPropertyValue(z.string(),
|
|
56
|
+
...TPropertyValue(z.string(), "LONG_TEXT").shape
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
//#endregion
|
|
@@ -77,12 +77,12 @@ const StaticDropdownProperty = z.object({
|
|
|
77
77
|
...BasePropertySchema.shape,
|
|
78
78
|
options: DropdownState,
|
|
79
79
|
display: z.optional(StaticDropdownDisplay),
|
|
80
|
-
...TPropertyValue(z.unknown(),
|
|
80
|
+
...TPropertyValue(z.unknown(), "STATIC_DROPDOWN").shape
|
|
81
81
|
});
|
|
82
82
|
const StaticMultiSelectDropdownProperty = z.object({
|
|
83
83
|
...BasePropertySchema.shape,
|
|
84
84
|
options: DropdownState,
|
|
85
|
-
...TPropertyValue(z.array(z.unknown()),
|
|
85
|
+
...TPropertyValue(z.array(z.unknown()), "STATIC_MULTI_SELECT_DROPDOWN").shape
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
//#endregion
|
|
@@ -90,7 +90,7 @@ const StaticMultiSelectDropdownProperty = z.object({
|
|
|
90
90
|
const CheckboxProperty = z.object({
|
|
91
91
|
...BasePropertySchema.shape,
|
|
92
92
|
reveals: z.optional(z.array(z.string())),
|
|
93
|
-
...TPropertyValue(z.boolean(),
|
|
93
|
+
...TPropertyValue(z.boolean(), "CHECKBOX").shape
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
//#endregion
|
|
@@ -101,12 +101,15 @@ const NumberProperty = z.object({
|
|
|
101
101
|
min: z.optional(z.number()),
|
|
102
102
|
max: z.optional(z.number()),
|
|
103
103
|
step: z.optional(z.number()),
|
|
104
|
-
...TPropertyValue(z.number(),
|
|
104
|
+
...TPropertyValue(z.number(), "NUMBER").shape
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region upstream/framework/lib/property/input/file-property.ts
|
|
109
109
|
var ApFile = class {
|
|
110
|
+
filename;
|
|
111
|
+
data;
|
|
112
|
+
extension;
|
|
110
113
|
constructor(filename, data, extension) {
|
|
111
114
|
this.filename = filename;
|
|
112
115
|
this.data = data;
|
|
@@ -119,7 +122,7 @@ var ApFile = class {
|
|
|
119
122
|
const FileProperty = z.object({
|
|
120
123
|
...BasePropertySchema.shape,
|
|
121
124
|
streaming: z.optional(z.boolean()),
|
|
122
|
-
...TPropertyValue(z.unknown(),
|
|
125
|
+
...TPropertyValue(z.unknown(), "FILE").shape
|
|
123
126
|
});
|
|
124
127
|
|
|
125
128
|
//#endregion
|
|
@@ -141,7 +144,7 @@ const DateRangeValue = z.object({
|
|
|
141
144
|
const DateRangeProperty = z.object({
|
|
142
145
|
...BasePropertySchema.shape,
|
|
143
146
|
display: z.optional(z.enum(["dropdown"])),
|
|
144
|
-
...TPropertyValue(DateRangeValue,
|
|
147
|
+
...TPropertyValue(DateRangeValue, "DATE_RANGE").shape
|
|
145
148
|
});
|
|
146
149
|
function isoDaysAgo(days) {
|
|
147
150
|
return (/* @__PURE__ */ new Date(Date.now() - days * 24 * 60 * 60 * 1e3)).toISOString();
|
|
@@ -276,10 +279,10 @@ function tryCatchSync(fn) {
|
|
|
276
279
|
//#region upstream/framework/lib/property/input/markdown-property.ts
|
|
277
280
|
const MarkDownProperty = z.object({
|
|
278
281
|
...BasePropertySchema.shape,
|
|
279
|
-
...TPropertyValue(z.void(),
|
|
282
|
+
...TPropertyValue(z.void(), "MARKDOWN").shape,
|
|
280
283
|
variant: z.optional(z.enum(MarkdownVariant))
|
|
281
284
|
});
|
|
282
285
|
|
|
283
286
|
//#endregion
|
|
284
287
|
export { PropertyType as A, CheckboxProperty as C, DropdownState as D, DropdownOption as E, TPropertyValue as M, LongTextProperty as O, NumberProperty as S, StaticMultiSelectDropdownProperty as T, DateRangeProperty as _, chunk as a, ApFile as b, isNil as c, parseToJsonIfPossible as d, pickBy as f, DateRangePreset as g, MarkdownVariant as h, camelCase as i, BasePropertySchema as j, ShortTextProperty as k, isString as l, unique as m, tryCatch as n, isBase64 as o, startCase as p, tryCatchSync as r, isEmpty as s, MarkDownProperty as t, kebabCase as u, DateRangeValue as v, StaticDropdownProperty as w, FileProperty as x, dateRangeUtils as y };
|
|
285
|
-
//# sourceMappingURL=markdown-property-
|
|
288
|
+
//# sourceMappingURL=markdown-property-DMfHjEiL.js.map
|