@lessly/sdk-app 63.7.0 → 63.8.1

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,11 +1,161 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  import type { GeneratedClient } from '../client.gen';
3
3
  import type {
4
+ WorkflowCapabilityGetInput,
5
+ WorkflowCapabilityGetOutput,
6
+ WorkflowCapabilityListInput,
7
+ WorkflowCapabilityListOutput,
8
+ WorkflowConfigDeleteInput,
9
+ WorkflowConfigListInput,
10
+ WorkflowConfigListOutput,
11
+ WorkflowConfigSetInput,
12
+ WorkflowDefinitionCreateInput,
13
+ WorkflowDefinitionDisableInput,
14
+ WorkflowDefinitionDryrunInput,
15
+ WorkflowDefinitionDryrunOutput,
16
+ WorkflowDefinitionEnableInput,
17
+ WorkflowDefinitionExportInput,
18
+ WorkflowDefinitionExportOutput,
19
+ WorkflowDefinitionGetInput,
20
+ WorkflowDefinitionGetOutput,
21
+ WorkflowDefinitionImportInput,
22
+ WorkflowDefinitionListInput,
23
+ WorkflowDefinitionListOutput,
24
+ WorkflowDefinitionPublishInput,
25
+ WorkflowDefinitionUpdateInput,
26
+ WorkflowDefinitionValidateInput,
27
+ WorkflowDefinitionValidateOutput,
4
28
  WorkflowHealthPingInput,
5
29
  WorkflowHealthPingOutput,
30
+ WorkflowRunCancelInput,
31
+ WorkflowRunGetInput,
32
+ WorkflowRunGetOutput,
33
+ WorkflowRunListInput,
34
+ WorkflowRunListOutput,
35
+ WorkflowRunReplayInput,
36
+ WorkflowRunStartInput,
37
+ WorkflowVersionGetInput,
38
+ WorkflowVersionGetOutput,
39
+ WorkflowVersionListInput,
40
+ WorkflowVersionListOutput,
6
41
  } from '../types.gen';
7
42
 
43
+ export const workflowCapabilityGetQueryOptions = (sdk: GeneratedClient, input: WorkflowCapabilityGetInput) => ({
44
+ queryKey: ['workflow', 'capability', 'get', input] as const,
45
+ queryFn: () => sdk['workflow']['capability']['get'](input),
46
+ });
47
+
48
+ export const workflowCapabilityListQueryOptions = (sdk: GeneratedClient, input: WorkflowCapabilityListInput) => ({
49
+ queryKey: ['workflow', 'capability', 'list', input] as const,
50
+ queryFn: () => sdk['workflow']['capability']['list'](input),
51
+ });
52
+
53
+ export const workflowConfigDeleteMutationOptions = (sdk: GeneratedClient) => ({
54
+ mutationKey: ['workflow', 'config', 'delete'],
55
+ mutationFn: (input: WorkflowConfigDeleteInput) => sdk['workflow']['config']['delete'](input),
56
+ });
57
+
58
+ export const workflowConfigListQueryOptions = (sdk: GeneratedClient, input: WorkflowConfigListInput) => ({
59
+ queryKey: ['workflow', 'config', 'list', input] as const,
60
+ queryFn: () => sdk['workflow']['config']['list'](input),
61
+ });
62
+
63
+ export const workflowConfigSetMutationOptions = (sdk: GeneratedClient) => ({
64
+ mutationKey: ['workflow', 'config', 'set'],
65
+ mutationFn: (input: WorkflowConfigSetInput) => sdk['workflow']['config']['set'](input),
66
+ });
67
+
68
+ export const workflowDefinitionCreateMutationOptions = (sdk: GeneratedClient) => ({
69
+ mutationKey: ['workflow', 'definition', 'create'],
70
+ mutationFn: (input: WorkflowDefinitionCreateInput) => sdk['workflow']['definition']['create'](input),
71
+ });
72
+
73
+ export const workflowDefinitionDisableMutationOptions = (sdk: GeneratedClient) => ({
74
+ mutationKey: ['workflow', 'definition', 'disable'],
75
+ mutationFn: (input: WorkflowDefinitionDisableInput) => sdk['workflow']['definition']['disable'](input),
76
+ });
77
+
78
+ export const workflowDefinitionDryrunQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionDryrunInput) => ({
79
+ queryKey: ['workflow', 'definition', 'dryrun', input] as const,
80
+ queryFn: () => sdk['workflow']['definition']['dryrun'](input),
81
+ });
82
+
83
+ export const workflowDefinitionEnableMutationOptions = (sdk: GeneratedClient) => ({
84
+ mutationKey: ['workflow', 'definition', 'enable'],
85
+ mutationFn: (input: WorkflowDefinitionEnableInput) => sdk['workflow']['definition']['enable'](input),
86
+ });
87
+
88
+ export const workflowDefinitionExportQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionExportInput) => ({
89
+ queryKey: ['workflow', 'definition', 'export', input] as const,
90
+ queryFn: () => sdk['workflow']['definition']['export'](input),
91
+ });
92
+
93
+ export const workflowDefinitionGetQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionGetInput) => ({
94
+ queryKey: ['workflow', 'definition', 'get', input] as const,
95
+ queryFn: () => sdk['workflow']['definition']['get'](input),
96
+ });
97
+
98
+ export const workflowDefinitionImportMutationOptions = (sdk: GeneratedClient) => ({
99
+ mutationKey: ['workflow', 'definition', 'import'],
100
+ mutationFn: (input: WorkflowDefinitionImportInput) => sdk['workflow']['definition']['import'](input),
101
+ });
102
+
103
+ export const workflowDefinitionListQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionListInput) => ({
104
+ queryKey: ['workflow', 'definition', 'list', input] as const,
105
+ queryFn: () => sdk['workflow']['definition']['list'](input),
106
+ });
107
+
108
+ export const workflowDefinitionPublishMutationOptions = (sdk: GeneratedClient) => ({
109
+ mutationKey: ['workflow', 'definition', 'publish'],
110
+ mutationFn: (input: WorkflowDefinitionPublishInput) => sdk['workflow']['definition']['publish'](input),
111
+ });
112
+
113
+ export const workflowDefinitionUpdateMutationOptions = (sdk: GeneratedClient) => ({
114
+ mutationKey: ['workflow', 'definition', 'update'],
115
+ mutationFn: (input: WorkflowDefinitionUpdateInput) => sdk['workflow']['definition']['update'](input),
116
+ });
117
+
118
+ export const workflowDefinitionValidateQueryOptions = (sdk: GeneratedClient, input: WorkflowDefinitionValidateInput) => ({
119
+ queryKey: ['workflow', 'definition', 'validate', input] as const,
120
+ queryFn: () => sdk['workflow']['definition']['validate'](input),
121
+ });
122
+
8
123
  export const workflowHealthPingQueryOptions = (sdk: GeneratedClient, input: WorkflowHealthPingInput) => ({
9
124
  queryKey: ['workflow', 'health', 'ping', input] as const,
10
125
  queryFn: () => sdk['workflow']['health']['ping'](input),
11
126
  });
127
+
128
+ export const workflowRunCancelMutationOptions = (sdk: GeneratedClient) => ({
129
+ mutationKey: ['workflow', 'run', 'cancel'],
130
+ mutationFn: (input: WorkflowRunCancelInput) => sdk['workflow']['run']['cancel'](input),
131
+ });
132
+
133
+ export const workflowRunGetQueryOptions = (sdk: GeneratedClient, input: WorkflowRunGetInput) => ({
134
+ queryKey: ['workflow', 'run', 'get', input] as const,
135
+ queryFn: () => sdk['workflow']['run']['get'](input),
136
+ });
137
+
138
+ export const workflowRunListQueryOptions = (sdk: GeneratedClient, input: WorkflowRunListInput) => ({
139
+ queryKey: ['workflow', 'run', 'list', input] as const,
140
+ queryFn: () => sdk['workflow']['run']['list'](input),
141
+ });
142
+
143
+ export const workflowRunReplayMutationOptions = (sdk: GeneratedClient) => ({
144
+ mutationKey: ['workflow', 'run', 'replay'],
145
+ mutationFn: (input: WorkflowRunReplayInput) => sdk['workflow']['run']['replay'](input),
146
+ });
147
+
148
+ export const workflowRunStartMutationOptions = (sdk: GeneratedClient) => ({
149
+ mutationKey: ['workflow', 'run', 'start'],
150
+ mutationFn: (input: WorkflowRunStartInput) => sdk['workflow']['run']['start'](input),
151
+ });
152
+
153
+ export const workflowVersionGetQueryOptions = (sdk: GeneratedClient, input: WorkflowVersionGetInput) => ({
154
+ queryKey: ['workflow', 'version', 'get', input] as const,
155
+ queryFn: () => sdk['workflow']['version']['get'](input),
156
+ });
157
+
158
+ export const workflowVersionListQueryOptions = (sdk: GeneratedClient, input: WorkflowVersionListInput) => ({
159
+ queryKey: ['workflow', 'version', 'list', input] as const,
160
+ queryFn: () => sdk['workflow']['version']['list'](input),
161
+ });