windmill-components 1.700.2 → 1.700.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appPolicy/myFunction.es.js +1337 -0
- package/dist/sharedUtils/common.d.ts +2 -5
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/select.d.ts +0 -2
- package/dist/sharedUtils/components/apps/components/display/dbtable/utils.d.ts +3 -14
- package/dist/sharedUtils/components/apps/editor/appPolicy.d.ts +1 -1
- package/dist/sharedUtils/components/apps/editor/appUtilsS3.d.ts +1 -12
- package/dist/sharedUtils/components/apps/editor/component/components.d.ts +2 -68
- package/dist/sharedUtils/components/apps/inputType.d.ts +2 -4
- package/dist/sharedUtils/components/apps/sharedTypes.d.ts +0 -2
- package/dist/sharedUtils/components/dbTypes.d.ts +0 -3
- package/dist/sharedUtils/components/raw_apps/rawAppPolicy.d.ts +1 -1
- package/dist/sharedUtils/components/raw_apps/utils.d.ts +1 -1
- package/dist/sharedUtils/components/triggers/utils.d.ts +3 -2
- package/dist/sharedUtils/gen/schemas.gen.d.ts +71 -915
- package/dist/sharedUtils/gen/services.gen.d.ts +23 -329
- package/dist/sharedUtils/gen/types.gen.d.ts +141 -1870
- package/dist/sharedUtils/hub.d.ts +0 -1
- package/dist/sharedUtils/jsr.json +5 -5
- package/dist/sharedUtils/lib.d.ts +1 -1
- package/dist/sharedUtils/lib.es.js +79 -241
- package/dist/sharedUtils/package.json +11 -11
- package/dist/sharedUtils/stores.d.ts +0 -1
- package/dist/sharedUtils/svelte5Utils.svelte.d.ts +1 -32
- package/dist/sharedUtils/utils.d.ts +4 -19
- package/package/components/DisplayResultControlBar.svelte +26 -11
- package/package/components/JobArgs.svelte +43 -24
- package/package/components/ShareModal.svelte.d.ts +1 -1
- package/package/components/apps/components/helpers/RunnableComponent.svelte.d.ts +0 -3
- package/package/components/copilot/CustomAIPrompts.svelte +3 -2
- package/package/components/copilot/chat/AIChatInput.svelte +2 -0
- package/package/components/copilot/chat/AIChatManager.svelte.js +52 -14
- package/package/components/copilot/chat/CreatedResourceActionDrawers.svelte +15 -0
- package/package/components/copilot/chat/ToolMessageActions.svelte +4 -2
- package/package/components/copilot/chat/app/core.js +2 -30
- package/package/components/copilot/chat/flow/core.js +13 -351
- package/package/components/copilot/chat/flow/editableFlowJson.d.ts +52 -0
- package/package/components/copilot/chat/flow/editableFlowJson.js +328 -0
- package/package/components/copilot/chat/flow/inlineScriptsUtils.js +2 -2
- package/package/components/copilot/chat/global/core.d.ts +5 -0
- package/package/components/copilot/chat/global/core.js +1739 -0
- package/package/components/copilot/chat/global/core.test.d.ts +1 -0
- package/package/components/copilot/chat/global/core.test.js +123 -0
- package/package/components/copilot/chat/global/deployRequests.d.ts +7 -0
- package/package/components/copilot/chat/global/deployRequests.js +76 -0
- package/package/components/copilot/chat/global/deployRequests.test.d.ts +1 -0
- package/package/components/copilot/chat/global/deployRequests.test.js +142 -0
- package/package/components/copilot/chat/global/draftStore.svelte.d.ts +55 -0
- package/package/components/copilot/chat/global/draftStore.svelte.js +78 -0
- package/package/components/copilot/chat/global/draftStore.test.d.ts +1 -0
- package/package/components/copilot/chat/global/draftStore.test.js +44 -0
- package/package/components/copilot/chat/global/gate.d.ts +1 -0
- package/package/components/copilot/chat/global/gate.js +27 -0
- package/package/components/copilot/chat/shared.d.ts +16 -2
- package/package/components/copilot/chat/shared.js +40 -0
- package/package/components/copilot/chat/workspaceToolsZod.gen.d.ts +28 -9
- package/package/components/copilot/chat/workspaceToolsZod.gen.js +19 -0
- package/package/components/raw_apps/templates.d.ts +77 -0
- package/package/components/raw_apps/templates.js +618 -0
- package/package/components/runs/runsFilter.d.ts +1 -1
- package/package/components/settings/AIPromptsModal.svelte +5 -2
- package/package/components/triggers/azure/AzureTriggerEditorConfigSection.svelte.d.ts +1 -1
- package/package/gen/core/OpenAPI.js +1 -1
- package/package/gen/schemas.gen.d.ts +37 -355
- package/package/gen/schemas.gen.js +39 -359
- package/package/gen/services.gen.d.ts +4 -280
- package/package/gen/services.gen.js +7 -565
- package/package/gen/types.gen.d.ts +77 -1135
- package/package/system_prompts/index.d.ts +2 -0
- package/package/system_prompts/index.js +8 -0
- package/package/system_prompts/prompts.d.ts +2 -0
- package/package/system_prompts/prompts.js +381 -0
- package/package/utils_deployable.d.ts +5 -318
- package/package.json +1 -1
- package/dist/sharedUtils/components/assets/lib.d.ts +0 -25
- package/dist/sharedUtils/components/icons/index.d.ts +0 -101
|
@@ -30,7 +30,6 @@ export interface SchemaProperty {
|
|
|
30
30
|
properties?: {
|
|
31
31
|
[name: string]: SchemaProperty;
|
|
32
32
|
};
|
|
33
|
-
required?: string[];
|
|
34
33
|
};
|
|
35
34
|
min?: number;
|
|
36
35
|
max?: number;
|
|
@@ -43,7 +42,6 @@ export interface SchemaProperty {
|
|
|
43
42
|
};
|
|
44
43
|
required?: string[];
|
|
45
44
|
showExpr?: string;
|
|
46
|
-
hideWhenChatEnabled?: boolean;
|
|
47
45
|
password?: boolean;
|
|
48
46
|
order?: string[];
|
|
49
47
|
nullable?: boolean;
|
|
@@ -54,7 +52,6 @@ export interface SchemaProperty {
|
|
|
54
52
|
originalType?: string;
|
|
55
53
|
disabled?: boolean;
|
|
56
54
|
'x-no-s3-storage-workspace-warning'?: string;
|
|
57
|
-
'x-auto-generate'?: boolean;
|
|
58
55
|
}
|
|
59
56
|
export interface ModalSchemaProperty {
|
|
60
57
|
selectedType?: string;
|
|
@@ -89,8 +86,8 @@ export declare function modalToSchema(schema: ModalSchemaProperty): SchemaProper
|
|
|
89
86
|
export type Schema = {
|
|
90
87
|
$schema: string | undefined;
|
|
91
88
|
type: string;
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
"x-windmill-dyn-select-code"?: string;
|
|
90
|
+
"x-windmill-dyn-select-lang"?: ScriptLang;
|
|
94
91
|
properties: {
|
|
95
92
|
[name: string]: SchemaProperty;
|
|
96
93
|
};
|
|
@@ -4,8 +4,6 @@ import { type ColumnDef } from '../utils';
|
|
|
4
4
|
export declare function makeSelectQuery(table: string, columnDefs: ColumnDef[], whereClause: string | undefined, dbType: DbType, options?: {
|
|
5
5
|
limit?: number;
|
|
6
6
|
offset?: number;
|
|
7
|
-
}, breakingFeatures?: {
|
|
8
|
-
fixPgIntTypes?: boolean;
|
|
9
7
|
}): string;
|
|
10
8
|
export declare function getSelectInput(dbInput: DbInput, table: string | undefined, columnDefs: ColumnDef[], whereClause: string | undefined, options?: {
|
|
11
9
|
limit?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ScriptLang } from '$lib/gen';
|
|
2
2
|
import type { SQLSchema } from '$lib/stores';
|
|
3
3
|
import { type IntrospectionQuery } from 'graphql';
|
|
4
|
-
import type {
|
|
4
|
+
import type { DbType } from '$lib/components/dbTypes';
|
|
5
5
|
export declare enum ColumnIdentity {
|
|
6
6
|
ByDefault = "By Default",
|
|
7
7
|
Always = "Always",
|
|
@@ -15,7 +15,6 @@ export type ColumnMetadata = {
|
|
|
15
15
|
isidentity: ColumnIdentity;
|
|
16
16
|
isnullable: 'YES' | 'NO';
|
|
17
17
|
isenum: boolean;
|
|
18
|
-
default_constraint_name?: string;
|
|
19
18
|
};
|
|
20
19
|
export type TableMetadata = ColumnMetadata[];
|
|
21
20
|
export type ColumnDef = {
|
|
@@ -43,14 +42,13 @@ export type ColumnDef = {
|
|
|
43
42
|
defaultValueNull?: boolean;
|
|
44
43
|
} & ColumnMetadata;
|
|
45
44
|
export declare function resourceTypeToLang(rt: string): string;
|
|
46
|
-
declare const
|
|
45
|
+
declare const scripts: Record<string, {
|
|
47
46
|
code: string;
|
|
48
47
|
lang: string;
|
|
49
48
|
processingFn?: (any: any) => SQLSchema['schema'];
|
|
50
49
|
argName: string;
|
|
51
50
|
}>;
|
|
52
|
-
|
|
53
|
-
export { legacyScripts, scriptsV2 };
|
|
51
|
+
export { scripts };
|
|
54
52
|
export declare function formatSchema(dbSchema: {
|
|
55
53
|
lang: SQLSchema['lang'];
|
|
56
54
|
schema: SQLSchema['schema'];
|
|
@@ -76,7 +74,6 @@ export declare function formatSchema(dbSchema: {
|
|
|
76
74
|
};
|
|
77
75
|
export declare function formatGraphqlSchema(schema: IntrospectionQuery): string;
|
|
78
76
|
export declare function buildVisibleFieldList(columnDefs: ColumnDef[], dbType: DbType): string[];
|
|
79
|
-
export declare function renderDbQuotedIdentifier(identifier: string, dbType: DbType): string;
|
|
80
77
|
export declare function getLanguageByResourceType(name: string): ScriptLang;
|
|
81
78
|
export declare function buildParameters(columns: Array<{
|
|
82
79
|
field: string;
|
|
@@ -85,11 +82,3 @@ export declare function buildParameters(columns: Array<{
|
|
|
85
82
|
export declare function getPrimaryKeys(tableMetadata?: TableMetadata): string[];
|
|
86
83
|
export declare function dbSupportsSchemas(dbType: DbType): boolean;
|
|
87
84
|
export declare function datatypeHasLength(datatype: string): boolean;
|
|
88
|
-
export declare function sqlDataTypeToJsTypeHeuristic(datatype: string): string;
|
|
89
|
-
export type DbFeatures = {
|
|
90
|
-
foreignKeys?: boolean;
|
|
91
|
-
primaryKeys?: boolean;
|
|
92
|
-
defaultValues?: boolean;
|
|
93
|
-
defaultToNotNull?: boolean;
|
|
94
|
-
};
|
|
95
|
-
export declare function getDbFeatures(dbInput: DbInput): Required<DbFeatures>;
|
|
@@ -16,18 +16,7 @@ export declare function isPartialS3Object(input: unknown): input is {
|
|
|
16
16
|
storage?: string;
|
|
17
17
|
presigned?: string;
|
|
18
18
|
};
|
|
19
|
-
export declare function
|
|
20
|
-
source: string | undefined;
|
|
21
|
-
storage?: string;
|
|
22
|
-
presigned?: string;
|
|
23
|
-
appPath: string;
|
|
24
|
-
username: string | undefined;
|
|
25
|
-
workspace: string;
|
|
26
|
-
token: string | undefined;
|
|
27
|
-
isEditor: boolean;
|
|
28
|
-
configuration: RichConfigurations;
|
|
29
|
-
}): Promise<string>;
|
|
30
|
-
export declare function computeS3FileViewerPolicy(config: RichConfigurations): {
|
|
19
|
+
export declare function computeS3ImageViewerPolicy(config: RichConfigurations): {
|
|
31
20
|
s3_path: string;
|
|
32
21
|
storage: string | undefined;
|
|
33
22
|
} | undefined;
|
|
@@ -129,7 +129,6 @@ export type LogComponent = BaseComponent<'logcomponent'>;
|
|
|
129
129
|
export type JobIdLogComponent = BaseComponent<'jobidlogcomponent'>;
|
|
130
130
|
export type FlowStatusComponent = BaseComponent<'flowstatuscomponent'>;
|
|
131
131
|
export type JobIdFlowStatusComponent = BaseComponent<'jobidflowstatuscomponent'>;
|
|
132
|
-
export type JobProgressBarComponent = BaseComponent<'jobprogressbarcomponent'>;
|
|
133
132
|
export type ImageComponent = BaseComponent<'imagecomponent'>;
|
|
134
133
|
export type InputComponent = BaseComponent<'inputcomponent'>;
|
|
135
134
|
export type SelectComponent = BaseComponent<'selectcomponent'> & RecomputeOthersSource & {
|
|
@@ -234,7 +233,7 @@ export type DateSelectComponent = BaseComponent<'dateselectcomponent'> & {
|
|
|
234
233
|
onChange?: string[];
|
|
235
234
|
};
|
|
236
235
|
export type RecomputeAllComponent = BaseComponent<'recomputeallcomponent'>;
|
|
237
|
-
export type TypedComponent = DBExplorerComponent | DisplayComponent | ChatComponent | LogComponent | JobIdLogComponent | FlowStatusComponent | JobIdFlowStatusComponent |
|
|
236
|
+
export type TypedComponent = DBExplorerComponent | DisplayComponent | ChatComponent | LogComponent | JobIdLogComponent | FlowStatusComponent | JobIdFlowStatusComponent | TextInputComponent | QuillComponent | CodeInputComponent | TextareaInputComponent | PasswordInputComponent | EmailInputComponent | DateInputComponent | NumberInputComponent | CurrencyComponent | SliderComponent | RangeComponent | BarChartComponent | TimeseriesComponent | HtmlComponent | CustomComponent | MarkdownComponent | TableComponent | TextComponent | ButtonComponent | PieChartComponent | ScatterChartComponent | SelectComponent | ResourceSelectComponent | MultiSelectComponent | CheckboxComponent | FormComponent | FormButtonComponent | VegaLiteComponent | PlotlyComponent | TabsComponent | ContainerComponent | ListComponent | IconComponent | HorizontalDividerComponent | VerticalDividerComponent | FileInputComponent | ImageComponent | AggridComponent | AggridComponentEe | DrawerComponent | MapComponent | VerticalSplitPanesComponent | HorizontalSplitPanesComponent | PdfComponent | ModalComponent | StepperComponent | Schemaformcomponent | SelectTabComponent | ConditionalWrapperComponent | SelectStepComponent | DownloadComponent | ChartJsComponent | CarouselListComponent | AccordionListComponent | PlotlyComponentV2 | ChartJsComponentV2 | StatisticCardComponent | MenuComponent | DecisionTreeComponent | S3FileInputComponent | AgChartsComponent | AgChartsComponentEe | AlertComponent | DateSliderComponent | TimeInputComponent | DateTimeInputComponent | AggridInfiniteComponent | AggridInfiniteComponentEe | MultiSelectComponentV2 | NavBarComponent | DateSelectComponent | JobIdDisplayComponent | RecomputeAllComponent | ResourceConnectComponent;
|
|
238
237
|
export type AppComponent = BaseAppComponent & TypedComponent;
|
|
239
238
|
export type AppComponentDimensions = `${IntRange<1, typeof NARROW_GRID_COLUMNS>}:${number}-${IntRange<1, typeof WIDE_GRID_COLUMNS>}:${number}`;
|
|
240
239
|
export declare function getRecommendedDimensionsByComponent(componentType: AppComponent['type'], column: number): Size;
|
|
@@ -707,32 +706,6 @@ export declare const components: {
|
|
|
707
706
|
};
|
|
708
707
|
};
|
|
709
708
|
};
|
|
710
|
-
readonly jobprogressbarcomponent: {
|
|
711
|
-
readonly name: "Progress Bar by Job Id";
|
|
712
|
-
readonly icon: typeof Monitor;
|
|
713
|
-
readonly documentationLink: "https://www.windmill.dev/docs/apps/app_configuration_settings/progress_bar";
|
|
714
|
-
readonly dims: AppComponentDimensions;
|
|
715
|
-
readonly customCss: {
|
|
716
|
-
readonly header: {
|
|
717
|
-
readonly class: "";
|
|
718
|
-
readonly style: "";
|
|
719
|
-
};
|
|
720
|
-
readonly container: {
|
|
721
|
-
readonly class: "";
|
|
722
|
-
readonly style: "";
|
|
723
|
-
};
|
|
724
|
-
};
|
|
725
|
-
readonly initialData: {
|
|
726
|
-
readonly configuration: {
|
|
727
|
-
readonly jobId: {
|
|
728
|
-
readonly type: "static";
|
|
729
|
-
readonly fieldType: "text";
|
|
730
|
-
readonly value: "";
|
|
731
|
-
readonly tooltip: "Job id to display progress from";
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
709
|
readonly containercomponent: {
|
|
737
710
|
readonly name: "Container";
|
|
738
711
|
readonly icon: typeof BoxSelect;
|
|
@@ -1364,9 +1337,6 @@ export declare const components: {
|
|
|
1364
1337
|
readonly accept: "*";
|
|
1365
1338
|
readonly convertTo: "base64";
|
|
1366
1339
|
};
|
|
1367
|
-
readonly fileUploadS3: {
|
|
1368
|
-
readonly accept: "*";
|
|
1369
|
-
};
|
|
1370
1340
|
readonly placeholder: "Enter URL or upload file (base64)";
|
|
1371
1341
|
};
|
|
1372
1342
|
readonly filename: {
|
|
@@ -1741,23 +1711,6 @@ export declare const components: {
|
|
|
1741
1711
|
};
|
|
1742
1712
|
};
|
|
1743
1713
|
};
|
|
1744
|
-
readonly clearFormInputs: {
|
|
1745
|
-
readonly type: "oneOf";
|
|
1746
|
-
readonly tooltip: "When to clear the form inputs";
|
|
1747
|
-
readonly selected: "never";
|
|
1748
|
-
readonly labels: {
|
|
1749
|
-
readonly never: "Never";
|
|
1750
|
-
readonly onSuccess: "On success";
|
|
1751
|
-
readonly onSubmit: "On submit";
|
|
1752
|
-
readonly onError: "On error";
|
|
1753
|
-
};
|
|
1754
|
-
readonly configuration: {
|
|
1755
|
-
readonly never: {};
|
|
1756
|
-
readonly onSuccess: {};
|
|
1757
|
-
readonly onSubmit: {};
|
|
1758
|
-
readonly onError: {};
|
|
1759
|
-
};
|
|
1760
|
-
};
|
|
1761
1714
|
};
|
|
1762
1715
|
};
|
|
1763
1716
|
};
|
|
@@ -2098,23 +2051,6 @@ export declare const components: {
|
|
|
2098
2051
|
};
|
|
2099
2052
|
};
|
|
2100
2053
|
};
|
|
2101
|
-
readonly clearFormInputs: {
|
|
2102
|
-
readonly type: "oneOf";
|
|
2103
|
-
readonly tooltip: "When to clear the form inputs";
|
|
2104
|
-
readonly selected: "never";
|
|
2105
|
-
readonly labels: {
|
|
2106
|
-
readonly never: "Never";
|
|
2107
|
-
readonly onSuccess: "On success";
|
|
2108
|
-
readonly onSubmit: "On submit";
|
|
2109
|
-
readonly onError: "On error";
|
|
2110
|
-
};
|
|
2111
|
-
readonly configuration: {
|
|
2112
|
-
readonly never: {};
|
|
2113
|
-
readonly onSuccess: {};
|
|
2114
|
-
readonly onSubmit: {};
|
|
2115
|
-
readonly onError: {};
|
|
2116
|
-
};
|
|
2117
|
-
};
|
|
2118
2054
|
readonly disabled: {
|
|
2119
2055
|
readonly fieldType: "boolean";
|
|
2120
2056
|
readonly type: "static";
|
|
@@ -4190,6 +4126,7 @@ export declare const components: {
|
|
|
4190
4126
|
};
|
|
4191
4127
|
readonly fileUploadS3: {
|
|
4192
4128
|
readonly accept: "image/*";
|
|
4129
|
+
readonly convertTo: "base64";
|
|
4193
4130
|
};
|
|
4194
4131
|
};
|
|
4195
4132
|
readonly sourceKind: {
|
|
@@ -4379,9 +4316,6 @@ export declare const components: {
|
|
|
4379
4316
|
readonly accept: "application/pdf";
|
|
4380
4317
|
readonly convertTo: "base64";
|
|
4381
4318
|
};
|
|
4382
|
-
readonly fileUploadS3: {
|
|
4383
|
-
readonly accept: "application/pdf";
|
|
4384
|
-
};
|
|
4385
4319
|
readonly placeholder: "Enter URL or upload file (base64)";
|
|
4386
4320
|
};
|
|
4387
4321
|
readonly zoom: {
|
|
@@ -72,14 +72,12 @@ export type RunnableByPath = {
|
|
|
72
72
|
path: string;
|
|
73
73
|
schema: any;
|
|
74
74
|
runType: 'script' | 'flow' | 'hubscript';
|
|
75
|
-
type: 'runnableByPath'
|
|
75
|
+
type: 'runnableByPath';
|
|
76
76
|
};
|
|
77
|
-
export declare function isRunnableByPath(runnable: Runnable): runnable is RunnableByPath;
|
|
78
|
-
export declare function isRunnableByName(runnable: Runnable): runnable is RunnableByName;
|
|
79
77
|
export type RunnableByName = {
|
|
80
78
|
name: string;
|
|
81
79
|
inlineScript: InlineScript | undefined;
|
|
82
|
-
type: 'runnableByName'
|
|
80
|
+
type: 'runnableByName';
|
|
83
81
|
};
|
|
84
82
|
export type Runnable = RunnableByPath | RunnableByName | undefined;
|
|
85
83
|
export type RunnableWithFields = Runnable & {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Schema } from '$lib/common';
|
|
2
2
|
import type { Preview } from '$lib/gen';
|
|
3
|
-
import type { AssetWithAltAccessType } from '../assets/lib';
|
|
4
3
|
export type InlineScript = {
|
|
5
4
|
content: string;
|
|
6
5
|
language: Preview['language'] | 'frontend';
|
|
@@ -17,5 +16,4 @@ export type InlineScript = {
|
|
|
17
16
|
key: string;
|
|
18
17
|
}[];
|
|
19
18
|
id?: number;
|
|
20
|
-
assets?: AssetWithAltAccessType[];
|
|
21
19
|
};
|
|
@@ -2,12 +2,9 @@ export type DbInput = {
|
|
|
2
2
|
type: 'database';
|
|
3
3
|
resourceType: DbType;
|
|
4
4
|
resourcePath: string;
|
|
5
|
-
specificSchema?: string;
|
|
6
|
-
specificTable?: string;
|
|
7
5
|
} | {
|
|
8
6
|
type: 'ducklake';
|
|
9
7
|
ducklake: string;
|
|
10
|
-
specificTable?: string;
|
|
11
8
|
};
|
|
12
9
|
export type DbType = (typeof dbTypes)[number];
|
|
13
10
|
export declare const dbTypes: readonly ["mysql", "ms_sql_server", "postgresql", "snowflake", "bigquery", "duckdb"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Policy, ScriptLang } from '$lib/gen';
|
|
2
|
-
import {
|
|
2
|
+
import type { InlineScript, RunnableWithFields } from '../apps/inputType';
|
|
3
3
|
export declare function updateRawAppPolicy(runnables: Record<string, Runnable>, currentPolicy: Policy | undefined): Promise<Policy>;
|
|
4
4
|
type RunnableWithInlineScript = RunnableWithFields & {
|
|
5
5
|
inlineScript?: InlineScript & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ScriptLang } from '../../gen/types.gen';
|
|
2
|
-
import { type RunnableWithFields } from '../apps/inputType';
|
|
3
2
|
import type { InlineScript } from '../apps/sharedTypes';
|
|
3
|
+
export type RunnableWithFields = any;
|
|
4
4
|
type RunnableWithInlineScript = RunnableWithFields & {
|
|
5
5
|
inlineScript?: InlineScript & {
|
|
6
6
|
language: ScriptLang;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Webhook, Mail, Calendar, Route, Unplug, Database, Terminal } from 'lucide-svelte';
|
|
2
|
-
import type { CaptureTriggerKind, ErrorHandler, Flow,
|
|
2
|
+
import type { CaptureTriggerKind, ErrorHandler, Flow, NewScript, TriggersCount } from '$lib/gen/types.gen';
|
|
3
3
|
import type { Writable } from 'svelte/store';
|
|
4
4
|
import { type TriggerKind } from '$lib/components/triggers';
|
|
5
5
|
import type { Triggers } from './triggers.svelte';
|
|
6
6
|
export declare const CLOUD_DISABLED_TRIGGER_TYPES: string[];
|
|
7
7
|
export type TriggerType = 'webhook' | 'default_email' | 'email' | 'schedule' | 'http' | 'websocket' | 'postgres' | 'kafka' | 'nats' | 'mqtt' | 'sqs' | 'gcp' | 'email' | 'poll' | 'cli';
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const jobTriggerTypes: readonly ["webhook", "http", "websocket", "kafka", "email", "nats", "mqtt", "sqs", "postgres", "schedule", "gcp"];
|
|
9
|
+
export type JobTriggerType = (typeof jobTriggerTypes)[number];
|
|
9
10
|
export type Trigger = {
|
|
10
11
|
type: TriggerType;
|
|
11
12
|
path?: string;
|