@powerhousedao/pieces-framework 6.2.3-dev.88 → 6.2.3-dev.90

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.
@@ -1 +1 @@
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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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.92.3 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,E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;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"}
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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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@d078d47750b53c13b837b2bec86b0402b4bff94f 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,EAAE,SAAS,EAAE,QAAQ,CAAC;CAC9B,CAAC;AACH,CAAC;AAsCD,IAAa,UAAb,MAGwB;CAEJ;CACA;CACA;CACA;CACA;CACA;CAIA;CAIA;CACA;CACA;CACA;CACA;CACA;CAnBlB,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;EAn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A;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-property-DMfHjEiL.js","names":[],"sources":["../upstream/framework/lib/property/input/common.ts","../upstream/framework/lib/property/input/property-type.ts","../upstream/framework/lib/property/input/text-property.ts","../upstream/framework/lib/property/input/dropdown/common.ts","../upstream/framework/lib/property/input/dropdown/static-dropdown.ts","../upstream/framework/lib/property/input/checkbox-property.ts","../upstream/framework/lib/property/input/number-property.ts","../upstream/framework/lib/property/input/file-property.ts","../upstream/framework/lib/property/input/date-range-property.ts","../upstream/core-piece-types/lib/markdown.ts","../upstream/core-utils/lib/utils.ts","../upstream/core-utils/lib/try-catch.ts","../upstream/framework/lib/property/input/markdown-property.ts"],"sourcesContent":["// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/common.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport type { ApFile } from \"./file-property.js\";\nimport type { PropertyType } from \"./property-type.js\";\n\nexport const BasePropertySchema = z.object({\n displayName: z.string(),\n description: z.optional(z.string()),\n advanced: z.optional(z.boolean()),\n width: z.optional(z.enum([\"half\", \"full\"])),\n icon: z.optional(z.string()),\n placeholder: z.optional(z.string()),\n});\n\nexport type BasePropertySchema = z.infer<typeof BasePropertySchema>;\n\nexport const TPropertyValue = <T extends z.ZodMiniType, U extends PropertyType>(\n _T: T,\n propertyType: U,\n) =>\n z.object({\n type: z.literal(propertyType),\n required: z.boolean(),\n defaultValue: z.optional(z.any()),\n });\n\nexport type TPropertyValue<\n T,\n U extends PropertyType,\n REQUIRED extends boolean,\n> = {\n valueSchema: T;\n type: U;\n required: REQUIRED;\n // TODO this should be T or undefined\n defaultValue?: U extends PropertyType.ARRAY\n ? unknown[]\n : U extends PropertyType.JSON\n ? object\n : U extends PropertyType.CHECKBOX\n ? boolean\n : U extends PropertyType.LONG_TEXT\n ? string\n : U extends PropertyType.RICH_TEXT\n ? string\n : U extends PropertyType.SHORT_TEXT\n ? string\n : U extends PropertyType.NUMBER\n ? number\n : U extends PropertyType.DROPDOWN\n ? unknown\n : U extends PropertyType.MULTI_SELECT_DROPDOWN\n ? unknown[]\n : U extends PropertyType.STATIC_MULTI_SELECT_DROPDOWN\n ? unknown[]\n : U extends PropertyType.STATIC_DROPDOWN\n ? unknown\n : U extends PropertyType.DATE_TIME\n ? string\n : U extends PropertyType.DATE_RANGE\n ? object\n : U extends PropertyType.FILE\n ? ApFile\n : U extends PropertyType.COLOR\n ? string\n : unknown;\n};\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/property-type.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nexport enum PropertyType {\n SHORT_TEXT = \"SHORT_TEXT\",\n LONG_TEXT = \"LONG_TEXT\",\n RICH_TEXT = \"RICH_TEXT\",\n MARKDOWN = \"MARKDOWN\",\n DROPDOWN = \"DROPDOWN\",\n STATIC_DROPDOWN = \"STATIC_DROPDOWN\",\n NUMBER = \"NUMBER\",\n CHECKBOX = \"CHECKBOX\",\n OAUTH2 = \"OAUTH2\",\n SECRET_TEXT = \"SECRET_TEXT\",\n ARRAY = \"ARRAY\",\n OBJECT = \"OBJECT\",\n BASIC_AUTH = \"BASIC_AUTH\",\n JSON = \"JSON\",\n MULTI_SELECT_DROPDOWN = \"MULTI_SELECT_DROPDOWN\",\n STATIC_MULTI_SELECT_DROPDOWN = \"STATIC_MULTI_SELECT_DROPDOWN\",\n DYNAMIC = \"DYNAMIC\",\n CUSTOM_AUTH = \"CUSTOM_AUTH\",\n OIDC = \"OIDC\",\n DATE_TIME = \"DATE_TIME\",\n DATE_RANGE = \"DATE_RANGE\",\n FILE = \"FILE\",\n CUSTOM = \"CUSTOM\",\n COLOR = \"COLOR\",\n}\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/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 ShortTextProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.string(), PropertyType.SHORT_TEXT).shape,\n});\n\nexport type ShortTextProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<string, PropertyType.SHORT_TEXT, R>;\n\nexport const LongTextProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.string(), PropertyType.LONG_TEXT).shape,\n});\n\nexport type LongTextProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<string, PropertyType.LONG_TEXT, R>;\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/dropdown/common.ts. MIT; see ../../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\n\nexport const DropdownOption = z.object({\n label: z.string(),\n value: z.unknown(),\n description: z.optional(z.string()),\n icon: z.optional(z.string()),\n});\n\nexport type DropdownOption<T> = {\n label: string;\n value: T;\n description?: string;\n icon?: string;\n};\n\nexport const DropdownState = z.object({\n disabled: z.optional(z.boolean()),\n placeholder: z.optional(z.string()),\n options: z.array(DropdownOption),\n});\n\nexport type DropdownState<T> = {\n disabled?: boolean;\n placeholder?: string;\n options: DropdownOption<T>[];\n};\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/dropdown/static-dropdown.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 { DropdownState } from \"./common.js\";\nimport { PropertyType } from \"../property-type.js\";\n\nexport const StaticDropdownDisplay = z.enum([\"cards\"]);\nexport type StaticDropdownDisplay = z.infer<typeof StaticDropdownDisplay>;\n\nexport const StaticDropdownProperty = z.object({\n ...BasePropertySchema.shape,\n options: DropdownState,\n display: z.optional(StaticDropdownDisplay),\n ...TPropertyValue(z.unknown(), PropertyType.STATIC_DROPDOWN).shape,\n});\n\nexport type StaticDropdownProperty<\n T,\n R extends boolean,\n> = BasePropertySchema & {\n options: DropdownState<T>;\n display?: StaticDropdownDisplay;\n} & TPropertyValue<T, PropertyType.STATIC_DROPDOWN, R>;\n\nexport const StaticMultiSelectDropdownProperty = z.object({\n ...BasePropertySchema.shape,\n options: DropdownState,\n ...TPropertyValue(\n z.array(z.unknown()),\n PropertyType.STATIC_MULTI_SELECT_DROPDOWN,\n ).shape,\n});\n\nexport type StaticMultiSelectDropdownProperty<\n T,\n R extends boolean,\n> = BasePropertySchema & {\n options: DropdownState<T>;\n} & TPropertyValue<T[], PropertyType.STATIC_MULTI_SELECT_DROPDOWN, R>;\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/checkbox-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 CheckboxProperty = z.object({\n ...BasePropertySchema.shape,\n reveals: z.optional(z.array(z.string())),\n ...TPropertyValue(z.boolean(), PropertyType.CHECKBOX).shape,\n});\n\nexport type CheckboxProperty<R extends boolean> = BasePropertySchema & {\n /** Names of sibling props revealed (rendered nested) when this checkbox is on. Effective inside a 'section' group. */\n reveals?: string[];\n} & TPropertyValue<boolean, PropertyType.CHECKBOX, R>;\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/number-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 NumberProperty = z.object({\n ...BasePropertySchema.shape,\n display: z.optional(z.enum([\"stepper\"])),\n min: z.optional(z.number()),\n max: z.optional(z.number()),\n step: z.optional(z.number()),\n ...TPropertyValue(z.number(), PropertyType.NUMBER).shape,\n});\n\nexport type NumberProperty<R extends boolean> = BasePropertySchema & {\n display?: \"stepper\";\n min?: number;\n max?: number;\n step?: number;\n} & TPropertyValue<number, PropertyType.NUMBER, R>;\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/file-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport type { Readable } from \"node:stream\";\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport class ApFile {\n constructor(\n public filename: string,\n public data: Buffer,\n public extension?: string,\n ) {}\n\n get base64(): string {\n return this.data.toString(\"base64\");\n }\n}\n\nexport const FileProperty = z.object({\n ...BasePropertySchema.shape,\n streaming: z.optional(z.boolean()),\n ...TPropertyValue(z.unknown(), PropertyType.FILE).shape,\n});\n\nexport type ApStreamingFile = {\n filename: string;\n extension?: string;\n size?: number;\n body: Readable;\n /** Absolute path of the staged file, set only when its bytes are on local\n * disk. Do not modify the file or use the path after the step ends. */\n path?: string;\n};\n\nexport type FileProperty<\n R extends boolean,\n S extends boolean = false,\n> = BasePropertySchema & {\n streaming?: S;\n} & TPropertyValue<\n S extends true ? ApStreamingFile | ApFile : ApFile,\n PropertyType.FILE,\n R\n >;\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/date-range-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 DateRangePreset = z.enum([\n \"any_time\",\n \"last_24_hours\",\n \"last_7_days\",\n \"last_30_days\",\n \"last_90_days\",\n \"this_month\",\n \"custom\",\n]);\nexport type DateRangePreset = z.infer<typeof DateRangePreset>;\n\nexport const DateRangeValue = z.object({\n preset: z.optional(DateRangePreset),\n after: z.optional(z.string()),\n before: z.optional(z.string()),\n});\nexport type DateRangeValue = {\n preset?: DateRangePreset;\n after?: string;\n before?: string;\n};\n\nexport const DateRangeProperty = z.object({\n ...BasePropertySchema.shape,\n display: z.optional(z.enum([\"dropdown\"])),\n ...TPropertyValue(DateRangeValue, PropertyType.DATE_RANGE).shape,\n});\n\nexport type DateRangeProperty<R extends boolean> = BasePropertySchema & {\n display?: \"dropdown\";\n} & TPropertyValue<DateRangeValue, PropertyType.DATE_RANGE, R>;\n\nfunction isoDaysAgo(days: number): string {\n return new Date(Date.now() - days * 24 * 60 * 60 * 1000).toISOString();\n}\n\nfunction startOfThisMonth(): string {\n const now = new Date();\n return new Date(now.getFullYear(), now.getMonth(), 1).toISOString();\n}\n\n// Relative presets are resolved against \"now\" so recurring flows roll forward.\nfunction resolve(value: DateRangeValue | null | undefined): {\n after?: string;\n before?: string;\n} {\n if (!value || !value.preset || value.preset === \"any_time\") {\n return {};\n }\n switch (value.preset) {\n case \"last_24_hours\":\n return { after: isoDaysAgo(1) };\n case \"last_7_days\":\n return { after: isoDaysAgo(7) };\n case \"last_30_days\":\n return { after: isoDaysAgo(30) };\n case \"last_90_days\":\n return { after: isoDaysAgo(90) };\n case \"this_month\":\n return { after: startOfThisMonth() };\n case \"custom\":\n return {\n after: value.after && value.after.length > 0 ? value.after : undefined,\n before:\n value.before && value.before.length > 0 ? value.before : undefined,\n };\n default:\n return {};\n }\n}\n\nexport const dateRangeUtils = { resolve };\n","// Vendored from activepieces/activepieces@0.92.3 packages/core/piece-types/src/lib/markdown.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nexport enum MarkdownVariant {\n BORDERLESS = \"BORDERLESS\",\n INFO = \"INFO\",\n WARNING = \"WARNING\",\n TIP = \"TIP\",\n}\n","// Vendored from activepieces/activepieces@0.92.3 packages/core/utils/src/lib/utils.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport { deepmerge } from \"deepmerge-ts\";\n\nexport function isString(str: unknown): str is string {\n return str != null && typeof str === \"string\";\n}\n\nexport function truncateString({\n value,\n maxLength,\n suffix = \"…\",\n}: {\n value: string;\n maxLength: number;\n suffix?: string;\n}): string {\n if (value.length <= maxLength) {\n return value;\n }\n let end = maxLength;\n const lastKeptCodeUnit = value.charCodeAt(end - 1);\n const splitsSurrogatePair =\n lastKeptCodeUnit >= 0xd800 && lastKeptCodeUnit <= 0xdbff;\n if (splitsSurrogatePair) {\n end -= 1;\n }\n return value.slice(0, end) + suffix;\n}\n\nexport function isNil<T>(\n value: T | null | undefined,\n): value is null | undefined {\n return value === null || value === undefined;\n}\n\nexport function stringifyNullOrUndefined(data: undefined | null): string {\n if (data === undefined) {\n return \"undefined\";\n }\n return \"null\";\n}\n\nexport function ensureTrailingSlash(url: string): string {\n return url.endsWith(\"/\") ? url : `${url}/`;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function setAtPath<T, K extends keyof any>(\n obj: T,\n path: K | K[],\n value: any,\n): void {\n const pathArray = Array.isArray(path)\n ? path\n : ((path as string).match(/([^[.\\]])+/g) as unknown as K[]);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n pathArray.reduce((acc: any, key: K, i: number) => {\n if (acc[key] === undefined) acc[key] = {};\n if (i === pathArray.length - 1) acc[key] = value;\n return acc[key];\n }, obj);\n}\n\nexport function insertAt<T>(array: T[], index: number, item: T): T[] {\n return [...array.slice(0, index), item, ...array.slice(index)];\n}\n\nexport function debounce<T>(\n func: (...args: T[]) => void,\n wait: number,\n): (key?: string, ...args: T[]) => void {\n let timeout: NodeJS.Timeout;\n let currentKey: string | undefined;\n return function (key?: string, ...args: T[]) {\n const later = () => {\n func(...args);\n };\n if (currentKey === key) {\n clearTimeout(timeout);\n }\n currentKey = key;\n timeout = setTimeout(later, wait);\n };\n}\n\ntype DeepPartial<T> = {\n [P in keyof T]?: T[P] extends Record<string, unknown>\n ? DeepPartial<T[P]>\n : T[P];\n};\n\n/**\n * This function also merges arrays, x = [1, 2], y = [3, 4], z = deepMergeAndCast(x, y) -> [1, 2, 3, 4]\n **/\nexport function deepMergeAndCast<T>(\n target: DeepPartial<T>,\n source: DeepPartial<T>,\n): T {\n return deepmerge(target as Partial<T>, source as Partial<T>) as T;\n}\n\nexport function kebabCase(str: string): string {\n return str\n .replace(/([a-z])([A-Z])/g, \"$1-$2\") // Handle camelCase by adding hyphen between lowercase and uppercase letters\n .replace(/\\s+/g, \"-\") // Replace spaces with hyphens\n .replace(/_/g, \"-\") // Replace underscores with hyphens\n .toLowerCase() // Convert to lowercase\n .replace(/^-+|-+$/g, \"\"); // Remove leading and trailing hyphens\n}\n\nexport function slugify(value: string): string {\n return value\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, \"-\")\n .replace(/^-+|-+$/g, \"\");\n}\n\nexport function isEmpty<T>(value: T | null | undefined): boolean {\n if (value == null) {\n return true;\n }\n\n if (typeof value === \"string\" || Array.isArray(value)) {\n return value.length === 0;\n }\n\n if (typeof value === \"object\") {\n return Object.keys(value).length === 0;\n }\n\n return false;\n}\n\nexport function startCase(str: string): string {\n return str\n .replace(/([a-z])([A-Z])/g, \"$1 $2\")\n .replace(/[_-]+/g, \" \")\n .replace(/\\s+/g, \" \")\n .replace(/^[a-z]/, (match) => match.toUpperCase())\n .replace(/\\b[a-z]/g, (match) => match.toUpperCase());\n}\n\nexport function camelCase(str: string): string {\n return str.replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace(\"-\", \"\").replace(\"_\", \"\"),\n );\n}\n\nexport function parseToJsonIfPossible(str: unknown): unknown {\n try {\n return JSON.parse(str as string);\n } catch (e) {\n return str;\n }\n}\n\nexport function pickBy<T extends Record<string, unknown>>(\n object: T,\n predicate: (value: T[keyof T], key: keyof T) => boolean,\n): Partial<T> {\n return Object.keys(object).reduce((result: Partial<T>, key: keyof T) => {\n if (predicate(object[key], key)) {\n result[key] = object[key];\n }\n return result;\n }, {});\n}\n\nexport function chunk<T>(records: T[], size: number) {\n const chunks: T[][] = [];\n for (let i = 0; i < records.length; i += size) {\n chunks.push(records.slice(i, i + size));\n }\n return chunks;\n}\n\nexport function partition<T>(\n array: T[],\n predicate: (item: T, index: number, arr: T[]) => boolean,\n): [T[], T[]] {\n const truthy: T[] = [];\n const falsy: T[] = [];\n array.forEach((item, idx) => {\n if (predicate(item, idx, array)) {\n truthy.push(item);\n } else {\n falsy.push(item);\n }\n });\n return [truthy, falsy];\n}\n\nexport function unique<T>(array: T[]): T[] {\n const seen = new Set<string | undefined>();\n return array.filter((item) => {\n const key = JSON.stringify(item);\n if (seen.has(key)) {\n return false;\n }\n seen.add(key);\n return true;\n });\n}\n\nexport function mapsAreSame<K, V>(a: Map<K, V>, b: Map<K, V>): boolean {\n if (a.size !== b.size) return false;\n for (const [key, value] of a) {\n if (!b.has(key)) return false;\n if (b.get(key) !== value) return false;\n }\n return true;\n}\n\nexport function validateIndexBound({\n index,\n limit,\n}: {\n index: number;\n limit: number;\n}) {\n if (index < 0) {\n return 0;\n }\n if (index >= limit) {\n return limit - 1;\n }\n return index;\n}\n\nexport function isManualPieceTrigger({\n pieceName,\n triggerName,\n}: {\n pieceName: string;\n triggerName: string;\n}) {\n return (\n pieceName === \"@activepieces/piece-manual-trigger\" &&\n triggerName === \"manual_trigger\"\n );\n}\n\nexport function isEnumValue<T extends { [key: string]: string | number }>(\n enumObj: T,\n value: string | number,\n): value is T[keyof T] {\n return Object.values(enumObj).includes(value as T[keyof T]);\n}\n\nexport type IsBase64Options = {\n allowMime?: boolean;\n};\n\nconst INVALID_BASE64_CHARS = /[^A-Za-z0-9+/=]/;\n\nexport function isBase64(value: string, options?: IsBase64Options): boolean {\n if (!isString(value) || value.length === 0) {\n return false;\n }\n\n if (options?.allowMime) {\n const base64MarkerIndex = value.indexOf(\";base64,\");\n if (base64MarkerIndex !== -1 && value.startsWith(\"data:\")) {\n const base64Part = value.slice(base64MarkerIndex + 8); // 8 = ';base64,'.length\n return _isValidBase64String(base64Part);\n }\n }\n\n return _isValidBase64String(value);\n}\n\nfunction _isValidBase64String(str: string): boolean {\n const len = str.length;\n if (len === 0 || len % 4 !== 0 || INVALID_BASE64_CHARS.test(str)) {\n return false;\n }\n // Validate that '=' only appears at the end (padding), at most 2 chars\n const firstPaddingIndex = str.indexOf(\"=\");\n return (\n firstPaddingIndex === -1 ||\n firstPaddingIndex === len - 1 ||\n (firstPaddingIndex === len - 2 && str[len - 1] === \"=\")\n );\n}\n","// Vendored from activepieces/activepieces@0.92.3 packages/core/utils/src/lib/try-catch.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\n// Types for the result object with discriminated union\ntype Success<T> = {\n data: T;\n error: null;\n};\n\ntype Failure<E> = {\n data: null;\n error: E;\n};\n\nexport type Result<T, E = Error> = Success<T> | Failure<E>;\n\n// Main wrapper function\nexport async function tryCatch<T, E = Error>(\n fn: () => Promise<T>,\n): Promise<Result<T, E>> {\n try {\n const data = await fn();\n return { data, error: null };\n } catch (error) {\n return { data: null, error: error as E };\n }\n}\n\nexport function tryCatchSync<T, E = Error>(fn: () => T): Result<T, E> {\n try {\n const data = fn();\n return { data, error: null };\n } catch (error) {\n return { data: null, error: error as E };\n }\n}\n\nexport function toError(value: unknown): Error {\n if (value instanceof Error) {\n return value;\n }\n if (typeof value === \"string\") {\n return new Error(value);\n }\n const { data: serialized } = tryCatchSync(() => JSON.stringify(value));\n return new Error(serialized ?? String(value));\n}\n","// Vendored from activepieces/activepieces@0.92.3 packages/pieces/framework/src/lib/property/input/markdown-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 { MarkdownVariant } from \"../../../../core-piece-types/index.js\";\n\nexport const MarkDownProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.void(), PropertyType.MARKDOWN).shape,\n variant: z.optional(z.enum(MarkdownVariant)),\n});\n\nexport type MarkDownProperty = BasePropertySchema &\n TPropertyValue<undefined, PropertyType.MARKDOWN, false> & {\n variant?: MarkdownVariant;\n };\n"],"mappings":";;;AAMA,MAAa,qBAAqB,EAAE,OAAO;CACzC,aAAa,EAAE,OAAO;CACtB,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;CAClC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC;CAChC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC;CAC1C,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC;CAC3B,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;AACpC,CAAC;AAID,MAAa,kBACX,IACA,iBAEA,EAAE,OAAO;CACP,MAAM,EAAE,QAAQ,YAAY;CAC5B,UAAU,EAAE,QAAQ;CACpB,cAAc,EAAE,SAAS,EAAE,IAAI,CAAC;AAClC,CAAC;;;;ACvBH,IAAY,eAAL;CACL;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;AACF;;;;ACrBA,MAAa,oBAAoB,EAAE,OAAO;CACxC,GAAG,mBAAmB;CACtB,GAAG,eAAe,EAAE,OAAO,eAA0B,CAAC,CAAC;AACzD,CAAC;AAKD,MAAa,mBAAmB,EAAE,OAAO;CACvC,GAAG,mBAAmB;CACtB,GAAG,eAAe,EAAE,OAAO,cAAyB,CAAC,CAAC;AACxD,CAAC;;;;ACbD,MAAa,iBAAiB,EAA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AoB,IAAI,QAAQ,GAAG;CACzC,OACE,sBAAsB,MACtB,sBAAsB,MAAM,KAC3B,sBAAsB,MAAM,KAAK,IAAI,MAAM,OAAO;AAEvD;;;;AC7QA,eAAsB,SACpB,IACuB;CACvB,IAAI;EAEF,OAAO;GAAE,YADU,GAAG;GACP,OAAO;EAAK;CAC7B,SAAS,OAAO;EACd,OAAO;GAAE,MAAM;GAAa;EAAW;CACzC;AACF;AAEA,SAAgB,aAA2B,IAA2B;CACpE,IAAI;EAEF,OAAO;GAAE,MADI,GACD;GAAG,OAAO;EAAK;CAC7B,SAAS,OAAO;EACd,OAAO;GAAE,MAAM;GAAa;EAAW;CACzC;AACF;;;;AC3BA,MAAa,mBAAmB,EAAE,OAAO;CACvC,GAAG,mBAAmB;CACtB,GAAG,eAAe,EAAE,KAAK,aAAwB,CAAC,CAAC;CACnD,SAAS,EAAE,SAAS,EAAE,KAAK,eAAe,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"markdown-property-DMfHjEiL.js","names":[],"sources":["../upstream/framework/lib/property/input/common.ts","../upstream/framework/lib/property/input/property-type.ts","../upstream/framework/lib/property/input/text-property.ts","../upstream/framework/lib/property/input/dropdown/common.ts","../upstream/framework/lib/property/input/dropdown/static-dropdown.ts","../upstream/framework/lib/property/input/checkbox-property.ts","../upstream/framework/lib/property/input/number-property.ts","../upstream/framework/lib/property/input/file-property.ts","../upstream/framework/lib/property/input/date-range-property.ts","../upstream/core-piece-types/lib/markdown.ts","../upstream/core-utils/lib/utils.ts","../upstream/core-utils/lib/try-catch.ts","../upstream/framework/lib/property/input/markdown-property.ts"],"sourcesContent":["// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/common.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\nimport type { ApFile } from \"./file-property.js\";\nimport type { PropertyType } from \"./property-type.js\";\n\nexport const BasePropertySchema = z.object({\n displayName: z.string(),\n description: z.optional(z.string()),\n advanced: z.optional(z.boolean()),\n width: z.optional(z.enum([\"half\", \"full\"])),\n icon: z.optional(z.string()),\n placeholder: z.optional(z.string()),\n});\n\nexport type BasePropertySchema = z.infer<typeof BasePropertySchema>;\n\nexport const TPropertyValue = <T extends z.ZodMiniType, U extends PropertyType>(\n _T: T,\n propertyType: U,\n) =>\n z.object({\n type: z.literal(propertyType),\n required: z.boolean(),\n defaultValue: z.optional(z.any()),\n });\n\nexport type TPropertyValue<\n T,\n U extends PropertyType,\n REQUIRED extends boolean,\n> = {\n valueSchema: T;\n type: U;\n required: REQUIRED;\n // TODO this should be T or undefined\n defaultValue?: U extends PropertyType.ARRAY\n ? unknown[]\n : U extends PropertyType.JSON\n ? object\n : U extends PropertyType.CHECKBOX\n ? boolean\n : U extends PropertyType.LONG_TEXT\n ? string\n : U extends PropertyType.RICH_TEXT\n ? string\n : U extends PropertyType.SHORT_TEXT\n ? string\n : U extends PropertyType.NUMBER\n ? number\n : U extends PropertyType.DROPDOWN\n ? unknown\n : U extends PropertyType.MULTI_SELECT_DROPDOWN\n ? unknown[]\n : U extends PropertyType.STATIC_MULTI_SELECT_DROPDOWN\n ? unknown[]\n : U extends PropertyType.STATIC_DROPDOWN\n ? unknown\n : U extends PropertyType.DATE_TIME\n ? string\n : U extends PropertyType.DATE_RANGE\n ? object\n : U extends PropertyType.FILE\n ? ApFile\n : U extends PropertyType.COLOR\n ? string\n : unknown;\n};\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/property-type.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nexport enum PropertyType {\n SHORT_TEXT = \"SHORT_TEXT\",\n LONG_TEXT = \"LONG_TEXT\",\n RICH_TEXT = \"RICH_TEXT\",\n MARKDOWN = \"MARKDOWN\",\n DROPDOWN = \"DROPDOWN\",\n STATIC_DROPDOWN = \"STATIC_DROPDOWN\",\n NUMBER = \"NUMBER\",\n CHECKBOX = \"CHECKBOX\",\n OAUTH2 = \"OAUTH2\",\n SECRET_TEXT = \"SECRET_TEXT\",\n ARRAY = \"ARRAY\",\n OBJECT = \"OBJECT\",\n BASIC_AUTH = \"BASIC_AUTH\",\n JSON = \"JSON\",\n MULTI_SELECT_DROPDOWN = \"MULTI_SELECT_DROPDOWN\",\n STATIC_MULTI_SELECT_DROPDOWN = \"STATIC_MULTI_SELECT_DROPDOWN\",\n DYNAMIC = \"DYNAMIC\",\n CUSTOM_AUTH = \"CUSTOM_AUTH\",\n OIDC = \"OIDC\",\n DATE_TIME = \"DATE_TIME\",\n DATE_RANGE = \"DATE_RANGE\",\n FILE = \"FILE\",\n CUSTOM = \"CUSTOM\",\n COLOR = \"COLOR\",\n}\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/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 ShortTextProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.string(), PropertyType.SHORT_TEXT).shape,\n});\n\nexport type ShortTextProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<string, PropertyType.SHORT_TEXT, R>;\n\nexport const LongTextProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.string(), PropertyType.LONG_TEXT).shape,\n});\n\nexport type LongTextProperty<R extends boolean> = BasePropertySchema &\n TPropertyValue<string, PropertyType.LONG_TEXT, R>;\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/dropdown/common.ts. MIT; see ../../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport * as z from \"zod/mini\";\n\nexport const DropdownOption = z.object({\n label: z.string(),\n value: z.unknown(),\n description: z.optional(z.string()),\n icon: z.optional(z.string()),\n});\n\nexport type DropdownOption<T> = {\n label: string;\n value: T;\n description?: string;\n icon?: string;\n};\n\nexport const DropdownState = z.object({\n disabled: z.optional(z.boolean()),\n placeholder: z.optional(z.string()),\n options: z.array(DropdownOption),\n});\n\nexport type DropdownState<T> = {\n disabled?: boolean;\n placeholder?: string;\n options: DropdownOption<T>[];\n};\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/dropdown/static-dropdown.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 { DropdownState } from \"./common.js\";\nimport { PropertyType } from \"../property-type.js\";\n\nexport const StaticDropdownDisplay = z.enum([\"cards\"]);\nexport type StaticDropdownDisplay = z.infer<typeof StaticDropdownDisplay>;\n\nexport const StaticDropdownProperty = z.object({\n ...BasePropertySchema.shape,\n options: DropdownState,\n display: z.optional(StaticDropdownDisplay),\n ...TPropertyValue(z.unknown(), PropertyType.STATIC_DROPDOWN).shape,\n});\n\nexport type StaticDropdownProperty<\n T,\n R extends boolean,\n> = BasePropertySchema & {\n options: DropdownState<T>;\n display?: StaticDropdownDisplay;\n} & TPropertyValue<T, PropertyType.STATIC_DROPDOWN, R>;\n\nexport const StaticMultiSelectDropdownProperty = z.object({\n ...BasePropertySchema.shape,\n options: DropdownState,\n ...TPropertyValue(\n z.array(z.unknown()),\n PropertyType.STATIC_MULTI_SELECT_DROPDOWN,\n ).shape,\n});\n\nexport type StaticMultiSelectDropdownProperty<\n T,\n R extends boolean,\n> = BasePropertySchema & {\n options: DropdownState<T>;\n} & TPropertyValue<T[], PropertyType.STATIC_MULTI_SELECT_DROPDOWN, R>;\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/checkbox-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 CheckboxProperty = z.object({\n ...BasePropertySchema.shape,\n reveals: z.optional(z.array(z.string())),\n ...TPropertyValue(z.boolean(), PropertyType.CHECKBOX).shape,\n});\n\nexport type CheckboxProperty<R extends boolean> = BasePropertySchema & {\n /** Names of sibling props revealed (rendered nested) when this checkbox is on. Effective inside a 'section' group. */\n reveals?: string[];\n} & TPropertyValue<boolean, PropertyType.CHECKBOX, R>;\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/number-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 NumberProperty = z.object({\n ...BasePropertySchema.shape,\n display: z.optional(z.enum([\"stepper\"])),\n min: z.optional(z.number()),\n max: z.optional(z.number()),\n step: z.optional(z.number()),\n ...TPropertyValue(z.number(), PropertyType.NUMBER).shape,\n});\n\nexport type NumberProperty<R extends boolean> = BasePropertySchema & {\n display?: \"stepper\";\n min?: number;\n max?: number;\n step?: number;\n} & TPropertyValue<number, PropertyType.NUMBER, R>;\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/file-property.ts. MIT; see ../../../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport type { Readable } from \"node:stream\";\nimport * as z from \"zod/mini\";\nimport { BasePropertySchema, TPropertyValue } from \"./common.js\";\nimport { PropertyType } from \"./property-type.js\";\n\nexport class ApFile {\n constructor(\n public filename: string,\n public data: Buffer,\n public extension?: string,\n ) {}\n\n get base64(): string {\n return this.data.toString(\"base64\");\n }\n}\n\nexport const FileProperty = z.object({\n ...BasePropertySchema.shape,\n streaming: z.optional(z.boolean()),\n ...TPropertyValue(z.unknown(), PropertyType.FILE).shape,\n});\n\nexport type ApStreamingFile = {\n filename: string;\n extension?: string;\n size?: number;\n body: Readable;\n /** Absolute path of the staged file, set only when its bytes are on local\n * disk. Do not modify the file or use the path after the step ends. */\n path?: string;\n};\n\nexport type FileProperty<\n R extends boolean,\n S extends boolean = false,\n> = BasePropertySchema & {\n streaming?: S;\n} & TPropertyValue<\n S extends true ? ApStreamingFile | ApFile : ApFile,\n PropertyType.FILE,\n R\n >;\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/date-range-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 DateRangePreset = z.enum([\n \"any_time\",\n \"last_24_hours\",\n \"last_7_days\",\n \"last_30_days\",\n \"last_90_days\",\n \"this_month\",\n \"custom\",\n]);\nexport type DateRangePreset = z.infer<typeof DateRangePreset>;\n\nexport const DateRangeValue = z.object({\n preset: z.optional(DateRangePreset),\n after: z.optional(z.string()),\n before: z.optional(z.string()),\n});\nexport type DateRangeValue = {\n preset?: DateRangePreset;\n after?: string;\n before?: string;\n};\n\nexport const DateRangeProperty = z.object({\n ...BasePropertySchema.shape,\n display: z.optional(z.enum([\"dropdown\"])),\n ...TPropertyValue(DateRangeValue, PropertyType.DATE_RANGE).shape,\n});\n\nexport type DateRangeProperty<R extends boolean> = BasePropertySchema & {\n display?: \"dropdown\";\n} & TPropertyValue<DateRangeValue, PropertyType.DATE_RANGE, R>;\n\nfunction isoDaysAgo(days: number): string {\n return new Date(Date.now() - days * 24 * 60 * 60 * 1000).toISOString();\n}\n\nfunction startOfThisMonth(): string {\n const now = new Date();\n return new Date(now.getFullYear(), now.getMonth(), 1).toISOString();\n}\n\n// Relative presets are resolved against \"now\" so recurring flows roll forward.\nfunction resolve(value: DateRangeValue | null | undefined): {\n after?: string;\n before?: string;\n} {\n if (!value || !value.preset || value.preset === \"any_time\") {\n return {};\n }\n switch (value.preset) {\n case \"last_24_hours\":\n return { after: isoDaysAgo(1) };\n case \"last_7_days\":\n return { after: isoDaysAgo(7) };\n case \"last_30_days\":\n return { after: isoDaysAgo(30) };\n case \"last_90_days\":\n return { after: isoDaysAgo(90) };\n case \"this_month\":\n return { after: startOfThisMonth() };\n case \"custom\":\n return {\n after: value.after && value.after.length > 0 ? value.after : undefined,\n before:\n value.before && value.before.length > 0 ? value.before : undefined,\n };\n default:\n return {};\n }\n}\n\nexport const dateRangeUtils = { resolve };\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/core/piece-types/src/lib/markdown.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nexport enum MarkdownVariant {\n BORDERLESS = \"BORDERLESS\",\n INFO = \"INFO\",\n WARNING = \"WARNING\",\n TIP = \"TIP\",\n}\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/core/utils/src/lib/utils.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\nimport { deepmerge } from \"deepmerge-ts\";\n\nexport function isString(str: unknown): str is string {\n return str != null && typeof str === \"string\";\n}\n\nexport function truncateString({\n value,\n maxLength,\n suffix = \"…\",\n}: {\n value: string;\n maxLength: number;\n suffix?: string;\n}): string {\n if (value.length <= maxLength) {\n return value;\n }\n let end = maxLength;\n const lastKeptCodeUnit = value.charCodeAt(end - 1);\n const splitsSurrogatePair =\n lastKeptCodeUnit >= 0xd800 && lastKeptCodeUnit <= 0xdbff;\n if (splitsSurrogatePair) {\n end -= 1;\n }\n return value.slice(0, end) + suffix;\n}\n\nexport function isNil<T>(\n value: T | null | undefined,\n): value is null | undefined {\n return value === null || value === undefined;\n}\n\nexport function stringifyNullOrUndefined(data: undefined | null): string {\n if (data === undefined) {\n return \"undefined\";\n }\n return \"null\";\n}\n\nexport function ensureTrailingSlash(url: string): string {\n return url.endsWith(\"/\") ? url : `${url}/`;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function setAtPath<T, K extends keyof any>(\n obj: T,\n path: K | K[],\n value: any,\n): void {\n const pathArray = Array.isArray(path)\n ? path\n : ((path as string).match(/([^[.\\]])+/g) as unknown as K[]);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n pathArray.reduce((acc: any, key: K, i: number) => {\n if (acc[key] === undefined) acc[key] = {};\n if (i === pathArray.length - 1) acc[key] = value;\n return acc[key];\n }, obj);\n}\n\nexport function insertAt<T>(array: T[], index: number, item: T): T[] {\n return [...array.slice(0, index), item, ...array.slice(index)];\n}\n\nexport function debounce<T>(\n func: (...args: T[]) => void,\n wait: number,\n): (key?: string, ...args: T[]) => void {\n let timeout: NodeJS.Timeout;\n let currentKey: string | undefined;\n return function (key?: string, ...args: T[]) {\n const later = () => {\n func(...args);\n };\n if (currentKey === key) {\n clearTimeout(timeout);\n }\n currentKey = key;\n timeout = setTimeout(later, wait);\n };\n}\n\ntype DeepPartial<T> = {\n [P in keyof T]?: T[P] extends Record<string, unknown>\n ? DeepPartial<T[P]>\n : T[P];\n};\n\n/**\n * This function also merges arrays, x = [1, 2], y = [3, 4], z = deepMergeAndCast(x, y) -> [1, 2, 3, 4]\n **/\nexport function deepMergeAndCast<T>(\n target: DeepPartial<T>,\n source: DeepPartial<T>,\n): T {\n return deepmerge(target as Partial<T>, source as Partial<T>) as T;\n}\n\nexport function kebabCase(str: string): string {\n return str\n .replace(/([a-z])([A-Z])/g, \"$1-$2\") // Handle camelCase by adding hyphen between lowercase and uppercase letters\n .replace(/\\s+/g, \"-\") // Replace spaces with hyphens\n .replace(/_/g, \"-\") // Replace underscores with hyphens\n .toLowerCase() // Convert to lowercase\n .replace(/^-+|-+$/g, \"\"); // Remove leading and trailing hyphens\n}\n\nexport function slugify(value: string): string {\n return value\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, \"-\")\n .replace(/^-+|-+$/g, \"\");\n}\n\nexport function isEmpty<T>(value: T | null | undefined): boolean {\n if (value == null) {\n return true;\n }\n\n if (typeof value === \"string\" || Array.isArray(value)) {\n return value.length === 0;\n }\n\n if (typeof value === \"object\") {\n return Object.keys(value).length === 0;\n }\n\n return false;\n}\n\nexport function startCase(str: string): string {\n return str\n .replace(/([a-z])([A-Z])/g, \"$1 $2\")\n .replace(/[_-]+/g, \" \")\n .replace(/\\s+/g, \" \")\n .replace(/^[a-z]/, (match) => match.toUpperCase())\n .replace(/\\b[a-z]/g, (match) => match.toUpperCase());\n}\n\nexport function camelCase(str: string): string {\n return str.replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace(\"-\", \"\").replace(\"_\", \"\"),\n );\n}\n\nexport function parseToJsonIfPossible(str: unknown): unknown {\n try {\n return JSON.parse(str as string);\n } catch (e) {\n return str;\n }\n}\n\nexport function pickBy<T extends Record<string, unknown>>(\n object: T,\n predicate: (value: T[keyof T], key: keyof T) => boolean,\n): Partial<T> {\n return Object.keys(object).reduce((result: Partial<T>, key: keyof T) => {\n if (predicate(object[key], key)) {\n result[key] = object[key];\n }\n return result;\n }, {});\n}\n\nexport function chunk<T>(records: T[], size: number) {\n const chunks: T[][] = [];\n for (let i = 0; i < records.length; i += size) {\n chunks.push(records.slice(i, i + size));\n }\n return chunks;\n}\n\nexport function partition<T>(\n array: T[],\n predicate: (item: T, index: number, arr: T[]) => boolean,\n): [T[], T[]] {\n const truthy: T[] = [];\n const falsy: T[] = [];\n array.forEach((item, idx) => {\n if (predicate(item, idx, array)) {\n truthy.push(item);\n } else {\n falsy.push(item);\n }\n });\n return [truthy, falsy];\n}\n\nexport function unique<T>(array: T[]): T[] {\n const seen = new Set<string | undefined>();\n return array.filter((item) => {\n const key = JSON.stringify(item);\n if (seen.has(key)) {\n return false;\n }\n seen.add(key);\n return true;\n });\n}\n\nexport function mapsAreSame<K, V>(a: Map<K, V>, b: Map<K, V>): boolean {\n if (a.size !== b.size) return false;\n for (const [key, value] of a) {\n if (!b.has(key)) return false;\n if (b.get(key) !== value) return false;\n }\n return true;\n}\n\nexport function validateIndexBound({\n index,\n limit,\n}: {\n index: number;\n limit: number;\n}) {\n if (index < 0) {\n return 0;\n }\n if (index >= limit) {\n return limit - 1;\n }\n return index;\n}\n\nexport function isManualPieceTrigger({\n pieceName,\n triggerName,\n}: {\n pieceName: string;\n triggerName: string;\n}) {\n return (\n pieceName === \"@activepieces/piece-manual-trigger\" &&\n triggerName === \"manual_trigger\"\n );\n}\n\nexport function isEnumValue<T extends { [key: string]: string | number }>(\n enumObj: T,\n value: string | number,\n): value is T[keyof T] {\n return Object.values(enumObj).includes(value as T[keyof T]);\n}\n\nexport type IsBase64Options = {\n allowMime?: boolean;\n};\n\nconst INVALID_BASE64_CHARS = /[^A-Za-z0-9+/=]/;\n\nexport function isBase64(value: string, options?: IsBase64Options): boolean {\n if (!isString(value) || value.length === 0) {\n return false;\n }\n\n if (options?.allowMime) {\n const base64MarkerIndex = value.indexOf(\";base64,\");\n if (base64MarkerIndex !== -1 && value.startsWith(\"data:\")) {\n const base64Part = value.slice(base64MarkerIndex + 8); // 8 = ';base64,'.length\n return _isValidBase64String(base64Part);\n }\n }\n\n return _isValidBase64String(value);\n}\n\nfunction _isValidBase64String(str: string): boolean {\n const len = str.length;\n if (len === 0 || len % 4 !== 0 || INVALID_BASE64_CHARS.test(str)) {\n return false;\n }\n // Validate that '=' only appears at the end (padding), at most 2 chars\n const firstPaddingIndex = str.indexOf(\"=\");\n return (\n firstPaddingIndex === -1 ||\n firstPaddingIndex === len - 1 ||\n (firstPaddingIndex === len - 2 && str[len - 1] === \"=\")\n );\n}\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/core/utils/src/lib/try-catch.ts. MIT; see ../../../LICENSE.\n// Generated by scripts/sync-upstream.mts — do not edit by hand.\n// Types for the result object with discriminated union\ntype Success<T> = {\n data: T;\n error: null;\n};\n\ntype Failure<E> = {\n data: null;\n error: E;\n};\n\nexport type Result<T, E = Error> = Success<T> | Failure<E>;\n\n// Main wrapper function\nexport async function tryCatch<T, E = Error>(\n fn: () => Promise<T>,\n): Promise<Result<T, E>> {\n try {\n const data = await fn();\n return { data, error: null };\n } catch (error) {\n return { data: null, error: error as E };\n }\n}\n\nexport function tryCatchSync<T, E = Error>(fn: () => T): Result<T, E> {\n try {\n const data = fn();\n return { data, error: null };\n } catch (error) {\n return { data: null, error: error as E };\n }\n}\n\nexport function toError(value: unknown): Error {\n if (value instanceof Error) {\n return value;\n }\n if (typeof value === \"string\") {\n return new Error(value);\n }\n const { data: serialized } = tryCatchSync(() => JSON.stringify(value));\n return new Error(serialized ?? String(value), { cause: value });\n}\n","// Vendored from activepieces/activepieces@d078d47750b53c13b837b2bec86b0402b4bff94f packages/pieces/framework/src/lib/property/input/markdown-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 { MarkdownVariant } from \"../../../../core-piece-types/index.js\";\n\nexport const MarkDownProperty = z.object({\n ...BasePropertySchema.shape,\n ...TPropertyValue(z.void(), PropertyType.MARKDOWN).shape,\n variant: z.optional(z.enum(MarkdownVariant)),\n});\n\nexport type MarkDownProperty = BasePropertySchema &\n TPropertyValue<undefined, PropertyType.MARKDOWN, false> & {\n variant?: MarkdownVariant;\n };\n"],"mappings":";;;AAMA,MAAa,qBAAqB,EAAE,OAAO;CACzC,aAAa,EAAE,OAAO;CACtB,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;CAClC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC;CACh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B,CAAC,CAAC;CACnD,SAAS,EAAE,SAAS,EAAE,KAAK,eAAe,CAAC;AAC7C,CAAC"}
@@ -58,11 +58,24 @@ export declare function undeclaredPortEdges<E extends PortedEdge>(edges: readonl
58
58
  export declare const CORE_PIECE_NAME = "@powerhousedao/piece-core";
59
59
  export declare const BRANCH_PORTS: readonly string[];
60
60
  export declare const STOP_PORTS: readonly string[];
61
- export declare function knownPorts(block: {
61
+ export declare const ROUTER_ACTION = "router";
62
+ export declare const LOOP_ACTION = "loop";
63
+ export declare const OTHERWISE_PORT = "otherwise";
64
+ export declare const LOOP_EACH_PORT = "each";
65
+ export declare const LOOP_PORTS: readonly string[];
66
+ export interface BlockKind {
62
67
  pieceName: string;
63
68
  kind: "action" | "trigger";
64
69
  name: string;
65
- }): readonly string[];
70
+ }
71
+ export declare function isCoreAction(block: BlockKind, name: string): boolean;
72
+ export declare function routerBranchPort(index: number): string;
73
+ export declare function routerBranches(config: unknown): Record<string, unknown>[];
74
+ export declare function routerBranchName(branch: Record<string, unknown>, index: number): string;
75
+ export declare function routerPorts(config: unknown, wired?: readonly string[]): string[];
76
+ export declare function stepPortLabel(block: BlockKind, config: unknown, port: string): string | undefined;
77
+ export declare function knownPorts(block: BlockKind): readonly string[];
78
+ export declare function stepPorts<B extends BlockKind>(block: B, config: unknown, portsOf?: (block: B) => readonly string[] | undefined, wired?: readonly string[]): readonly string[] | undefined;
66
79
  //#endregion
67
80
  //#region src/workflow/document-reference.d.ts
68
81
  export interface DocumentReference {
@@ -129,5 +142,15 @@ export declare function manualDefault(input: ManualInput): unknown;
129
142
  export declare function coerceManualPayload(inputs: readonly ManualInput[], payload: unknown): Record<string, unknown>;
130
143
  export declare function manualInputTypeName(input: ManualInput): string;
131
144
  //#endregion
145
+ //#region src/workflow/subflows.d.ts
146
+ export declare const SUBFLOWS_PIECE = "@activepieces/piece-subflows";
147
+ export declare const CALLABLE_FLOW_TRIGGER = "callableFlow";
148
+ export declare const CALL_FLOW_ACTION = "callFlow";
149
+ export declare function isCallableFlow(trigger: {
150
+ pieceName?: string;
151
+ packageName?: string;
152
+ triggerName?: string;
153
+ }): boolean;
154
+ //#endregion
132
155
  export {};
133
156
  //# sourceMappingURL=workflow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","names":[],"sources":["../src/workflow/strategy.ts","../src/workflow/schedule.ts","../src/workflow/ports.ts","../src/workflow/core.ts","../src/workflow/document-reference.ts","../src/workflow/manual-inputs.ts"],"mappings":";YAGY;YAEA;EACN,UAAU;;EACV;;qBAUO;qBAGA,6BAA6B;WAC/B;EAET,YAAY,mBAAmB;;wBAOjB,qBAAqB,oBAAoB;wBAczC,gBAAgB,oBAAoB;;;qBCzCvC;qBAEA;WACX;WACA;WACA;;YAGU,4BAA4B;qBAE3B;YAED,uBAAuB;YAEvB;EACN;EAAc;EAAc;;EAE5B;EACA;EACA,MAAM;EACN;EACA;;qBAGO,4BAA4B;EACvC,YAAY;;wBAiCE,cAAc;wBAqCd,oBAAoB,kBAAkB;wBAmBtC,oBAAoB;;;qBClHvB;qBACA;qBAGA;qBAGA;wBAGG,UAAU;iBAIT;EACf;EACA;EACA;;wBAKc,oBAAoB,UAAU,YAC5C,gBAAgB,KAChB,UAAU,qDACT;;;qBCxBU;qBAGA;qBAGA;wBAIG,WAAW;EACzB;EACA;EACA;;;;iBCde;EACf;EACA;EACA;EAEA,UAAU;;qBAIC;iBAEI;GACd,mBAAmB;;UAGZ;EACR;EACA;EACA;EACA,UAAU;;wBAgCI,kBAAkB,QAAQ,aAAa;wBASvC,oBACd,iBACC,SAAS;wBA0BI,kBACd,iBACC;EAAW,QAAQ;EAAY,OAAO;;wBAQzB,oBACd,iBACC,SAAS,oBAAoB;wBAoChB,mBAAmB;wBAmBnB,eAAe,iBAAiB;wBAchC,oBAAoB;wBAMpB,mBACd,gBACA,SAAS,WAAW,sBAAsB;;;qBCjL/B;YAUD,0BAA0B;iBAErB;EAEf;EACA;EACA,MAAM;EACN;EACA;EAEA;EAEA,UAAU;;iBAGK;EACf;EACA;;iBAGe;EACf;EACA;;qBAGW,2BAA2B;WAC7B,QAAQ;EACjB,YAAY,QAAQ;;wBA6BN,mBAAmB,iBAAiB;wBA8BpC,kBAAkB,kBAAkB;KA8B/C;EAAY;;EAAqB;;wBAGtB,kBAAkB,OAAO,aAAa,eAAe;wBAgDrD,cAAc,OAAO;wBA0BrB,oBACd,iBAAiB,eACjB,mBACC;wBAsCa,oBAAoB,OAAO"}
1
+ {"version":3,"file":"workflow.d.ts","names":[],"sources":["../src/workflow/strategy.ts","../src/workflow/schedule.ts","../src/workflow/ports.ts","../src/workflow/core.ts","../src/workflow/document-reference.ts","../src/workflow/manual-inputs.ts","../src/workflow/subflows.ts"],"mappings":";YAGY;YAEA;EACN,UAAU;;EACV;;qBAUO;qBAGA,6BAA6B;WAC/B;EAET,YAAY,mBAAmB;;wBAOjB,qBAAqB,oBAAoB;wBAczC,gBAAgB,oBAAoB;;;qBCzCvC;qBAEA;WACX;WACA;WACA;;YAGU,4BAA4B;qBAE3B;YAED,uBAAuB;YAEvB;EACN;EAAc;EAAc;;EAE5B;EACA;EACA,MAAM;EACN;EACA;;qBAGO,4BAA4B;EACvC,YAAY;;wBAiCE,cAAc;wBAqCd,oBAAoB,kBAAkB;wBAmBtC,oBAAoB;;;qBClHvB;qBACA;qBAGA;qBAGA;wBAGG,UAAU;iBAIT;EACf;EACA;EACA;;wBAKc,oBAAoB,UAAU,YAC5C,gBAAgB,KAChB,UAAU,qDACT;;;qBCnBU;qBAGA;qBAGA;qBAEA;qBACA;qBAGA;qBAGA;qBACA;iBAMI;EACf;EACA;EACA;;wBAGc,aAAa,OAAO,WAAW;wBAS/B,iBAAiB;wBAKjB,eAAe,kBAAkB;wBAcjC,iBACd,QAAQ,yBACR;wBAUc,YACd,iBACA;wBAmBc,cACd,OAAO,WACP,iBACA;wBAqBc,WAAW,OAAO;wBAYlB,UAAU,UAAU,WAClC,OAAO,GACP,iBACA,WAAU,OAAO,qCACjB;;;iBCvIe;EACf;EACA;EACA;EAEA,UAAU;;qBAIC;iBAEI;GACd,mBAAmB;;UAGZ;EACR;EACA;EACA;EACA,UAAU;;wBAgCI,kBAAkB,QAAQ,aAAa;wBASvC,oBACd,iBACC,SAAS;wBA0BI,kBACd,iBACC;EAAW,QAAQ;EAAY,OAAO;;wBAQzB,oBACd,iBACC,SAAS,oBAAoB;wBAoChB,mBAAmB;wBAmBnB,eAAe,iBAAiB;wBAchC,oBAAoB;wBAMpB,mBACd,gBACA,SAAS,WAAW,sBAAsB;;;qBCjL/B;YAUD,0BAA0B;iBAErB;EAEf;EACA;EACA,MAAM;EACN;EACA;EAEA;EAEA,UAAU;;iBAGK;EACf;EACA;;iBAGe;EACf;EACA;;qBAGW,2BAA2B;WAC7B,QAAQ;EACjB,YAAY,QAAQ;;wBA6BN,mBAAmB,iBAAiB;wBA8BpC,kBAAkB,kBAAkB;KA8B/C;EAAY;;EAAqB;;wBAGtB,kBAAkB,OAAO,aAAa,eAAe;wBAgDrD,cAAc,OAAO;wBA0BrB,oBACd,iBAAiB,eACjB,mBACC;wBAsCa,oBAAoB,OAAO;;;qBCrP9B;qBACA;qBACA;wBAGG,eAAe;EAC7B;EACA;EACA"}
package/dist/workflow.js CHANGED
@@ -122,13 +122,67 @@ const BRANCH_PORTS = [
122
122
  ERROR_PORT
123
123
  ];
124
124
  const STOP_PORTS = [ERROR_PORT];
125
+ const ROUTER_ACTION = "router";
126
+ const LOOP_ACTION = "loop";
127
+ const OTHERWISE_PORT = "otherwise";
128
+ const LOOP_EACH_PORT = "each";
129
+ const LOOP_PORTS = [
130
+ NEXT_PORT,
131
+ LOOP_EACH_PORT,
132
+ ERROR_PORT
133
+ ];
134
+ function isCoreAction(block, name) {
135
+ return block.kind === "action" && block.pieceName === "@powerhousedao/piece-core" && block.name === name;
136
+ }
137
+ function routerBranchPort(index) {
138
+ return `branch_${index}`;
139
+ }
140
+ function routerBranches(config) {
141
+ const branches = config !== null && typeof config === "object" ? config.branches : void 0;
142
+ if (!Array.isArray(branches)) return [];
143
+ return branches.map((branch) => branch !== null && typeof branch === "object" ? branch : {});
144
+ }
145
+ function routerBranchName(branch, index) {
146
+ return (typeof branch.name === "string" ? branch.name.trim() : "") || `Branch ${index}`;
147
+ }
148
+ const BRANCH_PORT = /^branch_[1-9]\d*$/;
149
+ function routerPorts(config, wired = []) {
150
+ const branches = config !== null && typeof config === "object" ? config.branches : void 0;
151
+ const dynamic = branches !== void 0 && branches !== null && !Array.isArray(branches);
152
+ return [
153
+ ...routerBranches(config).map((_, i) => routerBranchPort(i + 1)),
154
+ ...dynamic ? [...new Set(wired)].filter((port) => BRANCH_PORT.test(port)) : [],
155
+ OTHERWISE_PORT,
156
+ ERROR_PORT
157
+ ];
158
+ }
159
+ function stepPortLabel(block, config, port) {
160
+ if (isCoreAction(block, "router")) {
161
+ if (port === "otherwise") return "Otherwise";
162
+ const match = /^branch_(\d+)$/.exec(port);
163
+ const branches = routerBranches(config);
164
+ const index = match ? Number(match[1]) : 0;
165
+ if (index >= 1 && index <= branches.length) return routerBranchName(branches[index - 1], index);
166
+ return;
167
+ }
168
+ if (isCoreAction(block, "loop")) {
169
+ if (port === "each") return "For each item";
170
+ if (port === "next") return "After loop";
171
+ }
172
+ }
125
173
  function knownPorts(block) {
126
174
  if (block.kind === "trigger") return TRIGGER_PORTS;
127
175
  if (block.pieceName !== "@powerhousedao/piece-core") return PIECE_ACTION_PORTS;
128
176
  if (block.name === "branch") return BRANCH_PORTS;
129
177
  if (block.name === "stop") return STOP_PORTS;
178
+ if (block.name === "loop") return LOOP_PORTS;
179
+ if (block.name === "router") return routerPorts(void 0);
130
180
  return PIECE_ACTION_PORTS;
131
181
  }
182
+ function stepPorts(block, config, portsOf = knownPorts, wired) {
183
+ if (isCoreAction(block, "router")) return routerPorts(config, wired);
184
+ return portsOf(block);
185
+ }
132
186
 
133
187
  //#endregion
134
188
  //#region src/workflow/document-reference.ts
@@ -384,5 +438,14 @@ function manualInputTypeName(input) {
384
438
  }
385
439
 
386
440
  //#endregion
387
- export { APP_WEBHOOK_UNSUPPORTED, BRANCH_PORTS, CORE_PIECE_NAME, DEFAULT_TIMEZONE, DOCUMENT_REF_KEY, ERROR_PORT, MANUAL_INPUT_TYPES, ManualPayloadError, NEXT_PORT, PIECE_ACTION_PORTS, SCHEDULE_MODES, SCHEDULE_UNIT_MS, STOP_PORTS, ScheduleConfigError, TRIGGER_PORTS, TriggerStrategyError, checkTriggerStrategy, coerceManualPayload, coerceManualValue, containsDocumentRef, documentReference, documentRefsIn, expandDocumentRefs, flowPorts, isDocumentRefMarker, isDocumentReference, isReactorDocument, knownPorts, manualDefault, manualInputTypeName, parseCronText, parseManualInputs, parseManualOptions, parseScheduleConfig, referenceDocuments, scheduleConfigIssue, triggerDelivery, undeclaredPortEdges };
441
+ //#region src/workflow/subflows.ts
442
+ const SUBFLOWS_PIECE = "@activepieces/piece-subflows";
443
+ const CALLABLE_FLOW_TRIGGER = "callableFlow";
444
+ const CALL_FLOW_ACTION = "callFlow";
445
+ function isCallableFlow(trigger) {
446
+ return (trigger.packageName ?? trigger.pieceName) === "@activepieces/piece-subflows" && trigger.triggerName === "callableFlow";
447
+ }
448
+
449
+ //#endregion
450
+ export { APP_WEBHOOK_UNSUPPORTED, BRANCH_PORTS, CALLABLE_FLOW_TRIGGER, CALL_FLOW_ACTION, CORE_PIECE_NAME, DEFAULT_TIMEZONE, DOCUMENT_REF_KEY, ERROR_PORT, LOOP_ACTION, LOOP_EACH_PORT, LOOP_PORTS, MANUAL_INPUT_TYPES, ManualPayloadError, NEXT_PORT, OTHERWISE_PORT, PIECE_ACTION_PORTS, ROUTER_ACTION, SCHEDULE_MODES, SCHEDULE_UNIT_MS, STOP_PORTS, SUBFLOWS_PIECE, ScheduleConfigError, TRIGGER_PORTS, TriggerStrategyError, checkTriggerStrategy, coerceManualPayload, coerceManualValue, containsDocumentRef, documentReference, documentRefsIn, expandDocumentRefs, flowPorts, isCallableFlow, isCoreAction, isDocumentRefMarker, isDocumentReference, isReactorDocument, knownPorts, manualDefault, manualInputTypeName, parseCronText, parseManualInputs, parseManualOptions, parseScheduleConfig, referenceDocuments, routerBranchName, routerBranchPort, routerBranches, routerPorts, scheduleConfigIssue, stepPortLabel, stepPorts, triggerDelivery, undeclaredPortEdges };
388
451
  //# sourceMappingURL=workflow.js.map