mirror of
https://github.com/immich-app/immich.git
synced 2026-05-26 17:42:32 -04:00
8682be4774
* wip: confirm before existing and disable/enable save button condition * fix: get correct workflow detail * wip: add back workflow summary * wip: add back json editor * wip: step property badge * wip: redesign card flow * wip: redesign card flow * redesign workflow summary * wworkflow summary styling * wip * drag and drop * list redesign * refactor * refactor * remove deadcode * refactor * insert steps * push down when dropped * feat: workflow template * simplify * move template to manifest * feat: hash manifest file * fix: template column * fix: migration * fix: workflow lookup * chore: clean up --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
199 lines
4.3 KiB
SQL
199 lines
4.3 KiB
SQL
-- NOTE: This file is auto generated by ./sql-generator
|
|
|
|
-- PluginRepository.getForLoad
|
|
select
|
|
"plugin"."id",
|
|
"plugin"."name",
|
|
"plugin"."version",
|
|
"plugin"."wasmBytes",
|
|
(
|
|
select
|
|
coalesce(json_agg(agg), '[]')
|
|
from
|
|
(
|
|
select
|
|
"plugin_method"."name",
|
|
"plugin_method"."hostFunctions"
|
|
from
|
|
"plugin_method"
|
|
where
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
|
) as agg
|
|
) as "methods"
|
|
from
|
|
"plugin"
|
|
where
|
|
"enabled" = $1
|
|
|
|
-- PluginRepository.search
|
|
select
|
|
"plugin"."id",
|
|
"plugin"."name",
|
|
"plugin"."title",
|
|
"plugin"."description",
|
|
"plugin"."author",
|
|
"plugin"."version",
|
|
"plugin"."createdAt",
|
|
"plugin"."updatedAt",
|
|
"plugin"."templates",
|
|
(
|
|
select
|
|
coalesce(json_agg(agg), '[]')
|
|
from
|
|
(
|
|
select
|
|
"plugin_method"."name",
|
|
"plugin_method"."title",
|
|
"plugin_method"."description",
|
|
"plugin_method"."types",
|
|
"plugin_method"."schema",
|
|
"plugin_method"."hostFunctions",
|
|
"plugin_method"."uiHints",
|
|
"plugin"."name" as "pluginName"
|
|
from
|
|
"plugin_method"
|
|
where
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
|
) as agg
|
|
) as "methods"
|
|
from
|
|
"plugin"
|
|
order by
|
|
"plugin"."name"
|
|
|
|
-- PluginRepository.getByHash
|
|
select
|
|
"plugin"."id",
|
|
"plugin"."name",
|
|
"plugin"."title",
|
|
"plugin"."description",
|
|
"plugin"."author",
|
|
"plugin"."version",
|
|
"plugin"."createdAt",
|
|
"plugin"."updatedAt",
|
|
"plugin"."templates",
|
|
(
|
|
select
|
|
coalesce(json_agg(agg), '[]')
|
|
from
|
|
(
|
|
select
|
|
"plugin_method"."name",
|
|
"plugin_method"."title",
|
|
"plugin_method"."description",
|
|
"plugin_method"."types",
|
|
"plugin_method"."schema",
|
|
"plugin_method"."hostFunctions",
|
|
"plugin_method"."uiHints",
|
|
"plugin"."name" as "pluginName"
|
|
from
|
|
"plugin_method"
|
|
where
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
|
) as agg
|
|
) as "methods"
|
|
from
|
|
"plugin"
|
|
where
|
|
"plugin"."sha256hash" = $1
|
|
|
|
-- PluginRepository.getByName
|
|
select
|
|
"plugin"."id",
|
|
"plugin"."name",
|
|
"plugin"."title",
|
|
"plugin"."description",
|
|
"plugin"."author",
|
|
"plugin"."version",
|
|
"plugin"."createdAt",
|
|
"plugin"."updatedAt",
|
|
"plugin"."templates",
|
|
(
|
|
select
|
|
coalesce(json_agg(agg), '[]')
|
|
from
|
|
(
|
|
select
|
|
"plugin_method"."name",
|
|
"plugin_method"."title",
|
|
"plugin_method"."description",
|
|
"plugin_method"."types",
|
|
"plugin_method"."schema",
|
|
"plugin_method"."hostFunctions",
|
|
"plugin_method"."uiHints",
|
|
"plugin"."name" as "pluginName"
|
|
from
|
|
"plugin_method"
|
|
where
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
|
) as agg
|
|
) as "methods"
|
|
from
|
|
"plugin"
|
|
where
|
|
"plugin"."name" = $1
|
|
|
|
-- PluginRepository.get
|
|
select
|
|
"plugin"."id",
|
|
"plugin"."name",
|
|
"plugin"."title",
|
|
"plugin"."description",
|
|
"plugin"."author",
|
|
"plugin"."version",
|
|
"plugin"."createdAt",
|
|
"plugin"."updatedAt",
|
|
"plugin"."templates",
|
|
(
|
|
select
|
|
coalesce(json_agg(agg), '[]')
|
|
from
|
|
(
|
|
select
|
|
"plugin_method"."name",
|
|
"plugin_method"."title",
|
|
"plugin_method"."description",
|
|
"plugin_method"."types",
|
|
"plugin_method"."schema",
|
|
"plugin_method"."hostFunctions",
|
|
"plugin_method"."uiHints",
|
|
"plugin"."name" as "pluginName"
|
|
from
|
|
"plugin_method"
|
|
where
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
|
) as agg
|
|
) as "methods"
|
|
from
|
|
"plugin"
|
|
where
|
|
"plugin"."id" = $1
|
|
|
|
-- PluginRepository.getForValidation
|
|
select
|
|
"plugin_method"."id",
|
|
"plugin_method"."name",
|
|
"plugin"."name" as "pluginName",
|
|
"plugin_method"."types"
|
|
from
|
|
"plugin_method"
|
|
inner join "plugin" on "plugin_method"."pluginId" = "plugin"."id"
|
|
|
|
-- PluginRepository.searchMethods
|
|
select
|
|
"plugin"."name" as "pluginName",
|
|
"plugin_method"."pluginId",
|
|
"plugin_method"."id",
|
|
"plugin_method"."name",
|
|
"plugin_method"."title",
|
|
"plugin_method"."description",
|
|
"plugin_method"."types",
|
|
"plugin_method"."schema",
|
|
"plugin_method"."hostFunctions",
|
|
"plugin_method"."uiHints"
|
|
from
|
|
"plugin_method"
|
|
inner join "plugin" on "plugin"."id" = "plugin_method"."pluginId"
|
|
order by
|
|
"plugin_method"."name"
|