@windmill-labs/shared-utils 1.0.5 → 1.0.12

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/common.d.ts CHANGED
@@ -30,6 +30,7 @@ export interface SchemaProperty {
30
30
  properties?: {
31
31
  [name: string]: SchemaProperty;
32
32
  };
33
+ required?: string[];
33
34
  };
34
35
  min?: number;
35
36
  max?: number;
@@ -42,6 +43,7 @@ export interface SchemaProperty {
42
43
  };
43
44
  required?: string[];
44
45
  showExpr?: string;
46
+ hideWhenChatEnabled?: boolean;
45
47
  password?: boolean;
46
48
  order?: string[];
47
49
  nullable?: boolean;
@@ -52,6 +54,7 @@ export interface SchemaProperty {
52
54
  originalType?: string;
53
55
  disabled?: boolean;
54
56
  'x-no-s3-storage-workspace-warning'?: string;
57
+ 'x-auto-generate'?: boolean;
55
58
  }
56
59
  export interface ModalSchemaProperty {
57
60
  selectedType?: string;
@@ -86,8 +89,8 @@ export declare function modalToSchema(schema: ModalSchemaProperty): SchemaProper
86
89
  export type Schema = {
87
90
  $schema: string | undefined;
88
91
  type: string;
89
- "x-windmill-dyn-select-code"?: string;
90
- "x-windmill-dyn-select-lang"?: ScriptLang;
92
+ 'x-windmill-dyn-select-code'?: string;
93
+ 'x-windmill-dyn-select-lang'?: ScriptLang;
91
94
  properties: {
92
95
  [name: string]: SchemaProperty;
93
96
  };
@@ -4,6 +4,8 @@ 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;
7
9
  }): string;
8
10
  export declare function getSelectInput(dbInput: DbInput, table: string | undefined, columnDefs: ColumnDef[], whereClause: string | undefined, options?: {
9
11
  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 { DbType } from '$lib/components/dbTypes';
4
+ import type { DbInput, DbType } from '$lib/components/dbTypes';
5
5
  export declare enum ColumnIdentity {
6
6
  ByDefault = "By Default",
7
7
  Always = "Always",
@@ -15,6 +15,7 @@ export type ColumnMetadata = {
15
15
  isidentity: ColumnIdentity;
16
16
  isnullable: 'YES' | 'NO';
17
17
  isenum: boolean;
18
+ default_constraint_name?: string;
18
19
  };
19
20
  export type TableMetadata = ColumnMetadata[];
20
21
  export type ColumnDef = {
@@ -42,13 +43,14 @@ export type ColumnDef = {
42
43
  defaultValueNull?: boolean;
43
44
  } & ColumnMetadata;
44
45
  export declare function resourceTypeToLang(rt: string): string;
45
- declare const scripts: Record<string, {
46
+ declare const legacyScripts: Record<string, {
46
47
  code: string;
47
48
  lang: string;
48
49
  processingFn?: (any: any) => SQLSchema['schema'];
49
50
  argName: string;
50
51
  }>;
51
- export { scripts };
52
+ declare const scriptsV2: typeof legacyScripts;
53
+ export { legacyScripts, scriptsV2 };
52
54
  export declare function formatSchema(dbSchema: {
53
55
  lang: SQLSchema['lang'];
54
56
  schema: SQLSchema['schema'];
@@ -74,6 +76,7 @@ export declare function formatSchema(dbSchema: {
74
76
  };
75
77
  export declare function formatGraphqlSchema(schema: IntrospectionQuery): string;
76
78
  export declare function buildVisibleFieldList(columnDefs: ColumnDef[], dbType: DbType): string[];
79
+ export declare function renderDbQuotedIdentifier(identifier: string, dbType: DbType): string;
77
80
  export declare function getLanguageByResourceType(name: string): ScriptLang;
78
81
  export declare function buildParameters(columns: Array<{
79
82
  field: string;
@@ -82,3 +85,11 @@ export declare function buildParameters(columns: Array<{
82
85
  export declare function getPrimaryKeys(tableMetadata?: TableMetadata): string[];
83
86
  export declare function dbSupportsSchemas(dbType: DbType): boolean;
84
87
  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>;
@@ -1,4 +1,4 @@
1
- import type { Runnable } from '../inputType';
1
+ import { type Runnable } from '../inputType';
2
2
  import type { App } from '../types';
3
3
  import { type TriggerableV2 } from './commonAppUtils';
4
4
  import type { Policy } from '$lib/gen';
@@ -16,7 +16,18 @@ export declare function isPartialS3Object(input: unknown): input is {
16
16
  storage?: string;
17
17
  presigned?: string;
18
18
  };
19
- export declare function computeS3ImageViewerPolicy(config: RichConfigurations): {
19
+ export declare function getS3File({ source, storage, presigned, appPath, username, workspace, token, isEditor, configuration }: {
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): {
20
31
  s3_path: string;
21
32
  storage: string | undefined;
22
33
  } | undefined;
@@ -129,6 +129,7 @@ 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'>;
132
133
  export type ImageComponent = BaseComponent<'imagecomponent'>;
133
134
  export type InputComponent = BaseComponent<'inputcomponent'>;
134
135
  export type SelectComponent = BaseComponent<'selectcomponent'> & RecomputeOthersSource & {
@@ -233,7 +234,7 @@ export type DateSelectComponent = BaseComponent<'dateselectcomponent'> & {
233
234
  onChange?: string[];
234
235
  };
235
236
  export type RecomputeAllComponent = BaseComponent<'recomputeallcomponent'>;
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;
237
+ export type TypedComponent = DBExplorerComponent | DisplayComponent | ChatComponent | LogComponent | JobIdLogComponent | FlowStatusComponent | JobIdFlowStatusComponent | JobProgressBarComponent | 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;
237
238
  export type AppComponent = BaseAppComponent & TypedComponent;
238
239
  export type AppComponentDimensions = `${IntRange<1, typeof NARROW_GRID_COLUMNS>}:${number}-${IntRange<1, typeof WIDE_GRID_COLUMNS>}:${number}`;
239
240
  export declare function getRecommendedDimensionsByComponent(componentType: AppComponent['type'], column: number): Size;
@@ -706,6 +707,32 @@ export declare const components: {
706
707
  };
707
708
  };
708
709
  };
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
+ };
709
736
  readonly containercomponent: {
710
737
  readonly name: "Container";
711
738
  readonly icon: typeof BoxSelect;
@@ -1337,6 +1364,9 @@ export declare const components: {
1337
1364
  readonly accept: "*";
1338
1365
  readonly convertTo: "base64";
1339
1366
  };
1367
+ readonly fileUploadS3: {
1368
+ readonly accept: "*";
1369
+ };
1340
1370
  readonly placeholder: "Enter URL or upload file (base64)";
1341
1371
  };
1342
1372
  readonly filename: {
@@ -1711,6 +1741,23 @@ export declare const components: {
1711
1741
  };
1712
1742
  };
1713
1743
  };
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
+ };
1714
1761
  };
1715
1762
  };
1716
1763
  };
@@ -2051,6 +2098,23 @@ export declare const components: {
2051
2098
  };
2052
2099
  };
2053
2100
  };
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
+ };
2054
2118
  readonly disabled: {
2055
2119
  readonly fieldType: "boolean";
2056
2120
  readonly type: "static";
@@ -4126,7 +4190,6 @@ export declare const components: {
4126
4190
  };
4127
4191
  readonly fileUploadS3: {
4128
4192
  readonly accept: "image/*";
4129
- readonly convertTo: "base64";
4130
4193
  };
4131
4194
  };
4132
4195
  readonly sourceKind: {
@@ -4316,6 +4379,9 @@ export declare const components: {
4316
4379
  readonly accept: "application/pdf";
4317
4380
  readonly convertTo: "base64";
4318
4381
  };
4382
+ readonly fileUploadS3: {
4383
+ readonly accept: "application/pdf";
4384
+ };
4319
4385
  readonly placeholder: "Enter URL or upload file (base64)";
4320
4386
  };
4321
4387
  readonly zoom: {
@@ -72,12 +72,14 @@ export type RunnableByPath = {
72
72
  path: string;
73
73
  schema: any;
74
74
  runType: 'script' | 'flow' | 'hubscript';
75
- type: 'runnableByPath';
75
+ type: 'runnableByPath' | 'path';
76
76
  };
77
+ export declare function isRunnableByPath(runnable: Runnable): runnable is RunnableByPath;
78
+ export declare function isRunnableByName(runnable: Runnable): runnable is RunnableByName;
77
79
  export type RunnableByName = {
78
80
  name: string;
79
81
  inlineScript: InlineScript | undefined;
80
- type: 'runnableByName';
82
+ type: 'runnableByName' | 'inline';
81
83
  };
82
84
  export type Runnable = RunnableByPath | RunnableByName | undefined;
83
85
  export type RunnableWithFields = Runnable & {
@@ -1,5 +1,6 @@
1
1
  import type { Schema } from '$lib/common';
2
2
  import type { Preview } from '$lib/gen';
3
+ import type { AssetWithAltAccessType } from '../assets/lib';
3
4
  export type InlineScript = {
4
5
  content: string;
5
6
  language: Preview['language'] | 'frontend';
@@ -16,4 +17,5 @@ export type InlineScript = {
16
17
  key: string;
17
18
  }[];
18
19
  id?: number;
20
+ assets?: AssetWithAltAccessType[];
19
21
  };
@@ -0,0 +1,25 @@
1
+ import type { AssetKind as _AssetKind, Asset as _Asset, ListAssetsResponse, AssetUsageAccessType, FlowModule, ScriptArgs } from '$lib/gen';
2
+ export type Asset = _Asset;
3
+ export type AssetKind = _AssetKind;
4
+ export type AssetWithAccessType = Asset & {
5
+ access_type?: AssetUsageAccessType;
6
+ };
7
+ export type AssetWithAltAccessType = AssetWithAccessType & {
8
+ alt_access_type?: AssetUsageAccessType;
9
+ };
10
+ export declare function formatAsset(asset: Asset): string;
11
+ export declare function formatShortAssetPath(asset: Asset): string;
12
+ export declare function getAssetUsagePageUri(usage: ListAssetsResponse[number]['usages'][number]): string | undefined;
13
+ export declare function assetEq(a: Asset | undefined, b: Asset | undefined): boolean;
14
+ export declare function assetsEq(a: Asset[], b: Asset[]): boolean;
15
+ export declare function parseAssetFromString(s: string): Asset | undefined;
16
+ export declare function formatAssetKind(asset: {
17
+ kind: AssetKind;
18
+ metadata?: {
19
+ resource_type?: string;
20
+ };
21
+ }): string;
22
+ export declare function formatAssetAccessType(accessType: AssetUsageAccessType | undefined): "?" | "Read" | "Write" | "R/W";
23
+ export declare function getAccessType(asset: AssetWithAltAccessType): AssetUsageAccessType | undefined;
24
+ export declare function getFlowModuleAssets(flowModuleValue: FlowModule, additionalAssetsMap?: Record<string, AssetWithAccessType[]>): AssetWithAccessType[] | undefined;
25
+ export declare function parseInputArgsAssets(args: ScriptArgs): AssetWithAccessType[];
@@ -2,9 +2,12 @@ export type DbInput = {
2
2
  type: 'database';
3
3
  resourceType: DbType;
4
4
  resourcePath: string;
5
+ specificSchema?: string;
6
+ specificTable?: string;
5
7
  } | {
6
8
  type: 'ducklake';
7
9
  ducklake: string;
10
+ specificTable?: string;
8
11
  };
9
12
  export type DbType = (typeof dbTypes)[number];
10
13
  export declare const dbTypes: readonly ["mysql", "ms_sql_server", "postgresql", "snowflake", "bigquery", "duckdb"];
@@ -0,0 +1,101 @@
1
+ import AirtableIcon from './AirtableIcon.svelte';
2
+ import DbIcon from './DbIcon.svelte';
3
+ import DiscordIcon from './DiscordIcon.svelte';
4
+ import GcalIcon from './GcalIcon.svelte';
5
+ import GCloudIcon from './GCloudIcon.svelte';
6
+ import GdriveIcon from './GdriveIcon.svelte';
7
+ import GithubIcon from './GithubIcon.svelte';
8
+ import GitlabIcon from './GitlabIcon.svelte';
9
+ import GmailIcon from './GmailIcon.svelte';
10
+ import GSheetsIcon from './GSheetsIcon.svelte';
11
+ import HttpIcon from './HttpIcon.svelte';
12
+ import Mail from './Mail.svelte';
13
+ import MastodonIcon from './MastodonIcon.svelte';
14
+ import MatrixIcon from './MatrixIcon.svelte';
15
+ import Mysql from './Mysql.svelte';
16
+ import PostgresIcon from './PostgresIcon.svelte';
17
+ import S3Icon from './S3Icon.svelte';
18
+ import Slack from './Slack.svelte';
19
+ import TogglIcon from './TogglIcon.svelte';
20
+ import WindmillIcon from './WindmillIcon.svelte';
21
+ import WindmillIcon2 from './WindmillIcon2.svelte';
22
+ import SchedulePollIcon from './SchedulePollIcon.svelte';
23
+ import MailchimpIcon from './MailchimpIcon.svelte';
24
+ import SendgridIcon from './SendgridIcon.svelte';
25
+ import SendflakeIcon from './SendflakeIcon.svelte';
26
+ import LinkedinIcon from './LinkedinIcon.svelte';
27
+ import HubspotIcon from './HubspotIcon.svelte';
28
+ import DatadogIcon from './DatadogIcon.svelte';
29
+ import StripeIcon from './StripeIcon.svelte';
30
+ import TelegramIcon from './TelegramIcon.svelte';
31
+ import FunkwhaleIcon from './FunkwhaleIcon.svelte';
32
+ import GdocsIcon from './GdocsIcon.svelte';
33
+ import NextcloudIcon from './NextcloudIcon.svelte';
34
+ import FaunadbIcon from './FaunadbIcon.svelte';
35
+ import ClickhouseIcon from './ClickhouseIcon.svelte';
36
+ import OpenaiIcon from './OpenaiIcon.svelte';
37
+ import AwsIcon from './AwsIcon.svelte';
38
+ import BcryptIcon from './BcryptIcon.svelte';
39
+ import GoogleIcon from './GoogleIcon.svelte';
40
+ import MicrosoftIcon from './MicrosoftIcon.svelte';
41
+ import HackernewsIcon from './HackernewsIcon.svelte';
42
+ import MongodbIcon from './MongodbIcon.svelte';
43
+ import RedditIcon from './RedditIcon.svelte';
44
+ import SupabaseIcon from './SupabaseIcon.svelte';
45
+ import WebdavIcon from './WebdavIcon.svelte';
46
+ import ZammadIcon from './ZammadIcon.svelte';
47
+ import SurrealdbIcon from './SurrealdbIcon.svelte';
48
+ import ActivitypubIcon from './ActivitypubIcon.svelte';
49
+ import AwsEcrIcon from './AwsEcrIcon.svelte';
50
+ import CalcomIcon from './CalcomIcon.svelte';
51
+ import ClickupIcon from './ClickupIcon.svelte';
52
+ import CloudflareIcon from './CloudflareIcon.svelte';
53
+ import FirebaseIcon from './FirebaseIcon.svelte';
54
+ import GoogleFormsIcon from './GoogleFormsIcon.svelte';
55
+ import JiraIcon from './JiraIcon.svelte';
56
+ import NotionIcon from './NotionIcon.svelte';
57
+ import PineconeIcon from './PineconeIcon.svelte';
58
+ import RssIcon from './RssIcon.svelte';
59
+ import ShopifyIcon from './ShopifyIcon.svelte';
60
+ import TypeformIcon from './TypeformIcon.svelte';
61
+ import BigQueryIcon from './BigQueryIcon.svelte';
62
+ import OracleDBIcon from './OracleDBIcon.svelte';
63
+ import GraphqlIcon from './GraphqlIcon.svelte';
64
+ import NocoDbIcon from './NocoDbIcon.svelte';
65
+ import AzureIcon from './AzureIcon.svelte';
66
+ import OktaIcon from './OktaIcon.svelte';
67
+ import Auth0Icon from './Auth0Icon.svelte';
68
+ import AuthentikIcon from './AuthentikIcon.svelte';
69
+ import AutheliaIcon from './AutheliaIcon.svelte';
70
+ import KanidmIcon from './KanidmIcon.svelte';
71
+ import AsanaIcon from './AsanaIcon.svelte';
72
+ import BitbucketIcon from './BitbucketIcon.svelte';
73
+ import DynatraceIcon from './DynatraceIcon.svelte';
74
+ import EdgeDbIcon from './EdgeDbIcon.svelte';
75
+ import GitIcon from './GitIcon.svelte';
76
+ import ZendeskIcon from './ZendeskIcon.svelte';
77
+ import TwilioIcon from './TwilioIcon.svelte';
78
+ import TrelloIcon from './TrelloIcon.svelte';
79
+ import ResendIcon from './ResendIcon.svelte';
80
+ import PushoverIcon from './PushoverIcon.svelte';
81
+ import QuickbooksIcon from './QuickbooksIcon.svelte';
82
+ import MsTeamsIcon from './MSTeamsIcon.svelte';
83
+ import MailgunIcon from './MailgunIcon.svelte';
84
+ import IpinfoIcon from './IpinfoIcon.svelte';
85
+ import GoogleCloudIcon from './GoogleCloudIcon.svelte';
86
+ import CaCertificate from './CACertificate.svelte';
87
+ import CurrencyApiIcon from './CurrencyApiIcon.svelte';
88
+ import VismaIcon from './VismaIcon.svelte';
89
+ import JumpCloudIcon from './JumpCloudIcon.svelte';
90
+ import KeycloakIcon from './KeycloakIcon.svelte';
91
+ import ZitadelIcon from './ZitadelIcon.svelte';
92
+ import XeroIcon from './XeroIcon.svelte';
93
+ import KafkaIcon from './KafkaIcon.svelte';
94
+ import NatsIcon from './NatsIcon.svelte';
95
+ import MqttIcon from './MqttIcon.svelte';
96
+ import ApifyIcon from './ApifyIcon.svelte';
97
+ import McpIcon from './McpIcon.svelte';
98
+ import ZohoIcon from './ZohoIcon.svelte';
99
+ import type { Component } from 'svelte';
100
+ export declare const APP_TO_ICON_COMPONENT: Record<string, Component>;
101
+ export { AirtableIcon, DbIcon, DiscordIcon, GcalIcon, GCloudIcon, GdriveIcon, GithubIcon, GitlabIcon, GmailIcon, GSheetsIcon, HttpIcon, Mail, MastodonIcon, MatrixIcon, Mysql, PostgresIcon, S3Icon, Slack, TogglIcon, WindmillIcon, WindmillIcon2, SchedulePollIcon, MailchimpIcon, SendgridIcon, LinkedinIcon, HubspotIcon, TelegramIcon, StripeIcon, DatadogIcon, FunkwhaleIcon, GdocsIcon, FaunadbIcon, ClickhouseIcon, OpenaiIcon, AwsIcon, BcryptIcon, GoogleIcon, HackernewsIcon, MongodbIcon, RedditIcon, SupabaseIcon, WebdavIcon, ZammadIcon, NextcloudIcon, SendflakeIcon, SurrealdbIcon, ActivitypubIcon, AwsEcrIcon, CalcomIcon, ClickupIcon, CloudflareIcon, FirebaseIcon, GoogleFormsIcon, JiraIcon, NotionIcon, PineconeIcon, RssIcon, ShopifyIcon, TypeformIcon, BigQueryIcon, OracleDBIcon, GraphqlIcon, NocoDbIcon, AzureIcon, MicrosoftIcon, OktaIcon, Auth0Icon, AuthentikIcon, AutheliaIcon, KanidmIcon, AsanaIcon, BitbucketIcon, DynatraceIcon, EdgeDbIcon, GitIcon, ZendeskIcon, TwilioIcon, TrelloIcon, ResendIcon, PushoverIcon, QuickbooksIcon, MsTeamsIcon, MailgunIcon, IpinfoIcon, GoogleCloudIcon, CaCertificate, CurrencyApiIcon, VismaIcon, JumpCloudIcon, KeycloakIcon, ZitadelIcon, XeroIcon, KafkaIcon, NatsIcon, MqttIcon, ApifyIcon, McpIcon, ZohoIcon };
@@ -1,5 +1,5 @@
1
1
  import type { Policy, ScriptLang } from '$lib/gen';
2
- import type { InlineScript, RunnableWithFields } from '../apps/inputType';
2
+ import { type InlineScript, type 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';
2
3
  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,12 +1,11 @@
1
1
  import { Webhook, Mail, Calendar, Route, Unplug, Database, Terminal } from 'lucide-svelte';
2
- import type { CaptureTriggerKind, ErrorHandler, Flow, NewScript, TriggersCount } from '$lib/gen/types.gen';
2
+ import type { CaptureTriggerKind, ErrorHandler, Flow, JobTriggerKind, 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 jobTriggerTypes: readonly ["webhook", "http", "websocket", "kafka", "email", "nats", "mqtt", "sqs", "postgres", "schedule", "gcp"];
9
- export type JobTriggerType = (typeof jobTriggerTypes)[number];
8
+ export declare const jobTriggerKinds: JobTriggerKind[];
10
9
  export type Trigger = {
11
10
  type: TriggerType;
12
11
  path?: string;