@prostgles/app 2.3.6-dev.1791804762 → 2.3.6-dev.1791841928

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.
Files changed (125) hide show
  1. package/client/build/js/main.bundle.js +2 -2
  2. package/dist/common/DBGeneratedSchema.d.ts +15 -6
  3. package/dist/common/DBGeneratedSchema.d.ts.map +1 -1
  4. package/dist/common/Testing.d.ts +1 -0
  5. package/dist/common/Testing.js +1 -0
  6. package/dist/common/actionColumn.d.ts +51 -14
  7. package/dist/common/actionColumn.d.ts.map +1 -1
  8. package/dist/common/actionColumn.js +12 -3
  9. package/dist/common/actionColumn.js.map +1 -1
  10. package/dist/common/columnDisplayFormat.schema.d.ts +48 -4
  11. package/dist/common/columnDisplayFormat.schema.d.ts.map +1 -1
  12. package/dist/common/createActionColumn.d.ts +11 -4
  13. package/dist/common/createActionColumn.d.ts.map +1 -1
  14. package/dist/common/createActionColumn.js +12 -8
  15. package/dist/common/createActionColumn.js.map +1 -1
  16. package/dist/common/functionOptions.d.ts +346 -0
  17. package/dist/common/functionOptions.d.ts.map +1 -0
  18. package/dist/common/functionOptions.js +66 -0
  19. package/dist/common/functionOptions.js.map +1 -0
  20. package/dist/common/jobAction.d.ts +21 -0
  21. package/dist/common/jobAction.d.ts.map +1 -0
  22. package/dist/common/jobAction.js +62 -0
  23. package/dist/common/jobAction.js.map +1 -0
  24. package/dist/common/llmUtils.d.ts.map +1 -1
  25. package/dist/common/mcp/tableOptionsJsonbSchema.d.ts +48 -4
  26. package/dist/common/mcp/tableOptionsJsonbSchema.d.ts.map +1 -1
  27. package/dist/common/mcp/ui.mcp.schema.d.ts +48 -4
  28. package/dist/common/mcp/ui.mcp.schema.d.ts.map +1 -1
  29. package/dist/common/prostglesMcp.d.ts +48 -4
  30. package/dist/common/prostglesMcp.d.ts.map +1 -1
  31. package/dist/common/resolveActionFunction.d.ts +13 -0
  32. package/dist/common/resolveActionFunction.d.ts.map +1 -0
  33. package/dist/common/resolveActionFunction.js +31 -0
  34. package/dist/common/resolveActionFunction.js.map +1 -0
  35. package/dist/server/package.json +3 -3
  36. package/dist/server/src/BackupManager/BackupManager.d.ts +15 -6
  37. package/dist/server/src/BackupManager/BackupManager.d.ts.map +1 -1
  38. package/dist/server/src/ConnectionManager/ConnectionManager.d.ts +15 -6
  39. package/dist/server/src/ConnectionManager/ConnectionManager.d.ts.map +1 -1
  40. package/dist/server/src/ConnectionManager/ConnectionManager.js +11 -2
  41. package/dist/server/src/ConnectionManager/ConnectionManager.js.map +1 -1
  42. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.d.ts +11 -1
  43. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.d.ts.map +1 -1
  44. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.js +12 -3
  45. package/dist/server/src/ConnectionManager/getConnectionServerFunctions.js.map +1 -1
  46. package/dist/server/src/ConnectionManager/getHotReloadConfigs.d.ts +2 -1
  47. package/dist/server/src/ConnectionManager/getHotReloadConfigs.d.ts.map +1 -1
  48. package/dist/server/src/ConnectionManager/getHotReloadConfigs.js +3 -1
  49. package/dist/server/src/ConnectionManager/getHotReloadConfigs.js.map +1 -1
  50. package/dist/server/src/ConnectionManager/initConnectionManager.d.ts +1 -1
  51. package/dist/server/src/ConnectionManager/initConnectionManager.d.ts.map +1 -1
  52. package/dist/server/src/ConnectionManager/initConnectionManager.js +1 -0
  53. package/dist/server/src/ConnectionManager/initConnectionManager.js.map +1 -1
  54. package/dist/server/src/ConnectionManager/modifyClientFunctionSchema.d.ts +4 -0
  55. package/dist/server/src/ConnectionManager/modifyClientFunctionSchema.d.ts.map +1 -0
  56. package/dist/server/src/ConnectionManager/modifyClientFunctionSchema.js +13 -0
  57. package/dist/server/src/ConnectionManager/modifyClientFunctionSchema.js.map +1 -0
  58. package/dist/server/src/ConnectionManager/startConnection.d.ts.map +1 -1
  59. package/dist/server/src/ConnectionManager/startConnection.js +5 -1
  60. package/dist/server/src/ConnectionManager/startConnection.js.map +1 -1
  61. package/dist/server/src/ConnectionManager/validateSchemaConfigActions.d.ts +9 -0
  62. package/dist/server/src/ConnectionManager/validateSchemaConfigActions.d.ts.map +1 -0
  63. package/dist/server/src/ConnectionManager/validateSchemaConfigActions.js +126 -0
  64. package/dist/server/src/ConnectionManager/validateSchemaConfigActions.js.map +1 -0
  65. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateAgenticWorkflowDefinitions.d.ts.map +1 -1
  66. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/createWorkflowExecutionHandlers.d.ts.map +1 -1
  67. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/getAgentConfigWithDefaults.d.ts.map +1 -1
  68. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/setupOrchestrationToolPermissions.d.ts.map +1 -1
  69. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/getStartAgent.js +1 -1
  70. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/getStartAgent.js.map +1 -1
  71. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Ui.mcp.d.ts +48 -4
  72. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Ui.mcp.d.ts.map +1 -1
  73. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.d.ts +15 -6
  74. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.d.ts.map +1 -1
  75. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers.d.ts +96 -8
  76. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers.d.ts.map +1 -1
  77. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMcpHub.d.ts +96 -8
  78. package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMcpHub.d.ts.map +1 -1
  79. package/dist/server/src/authConfig/getAuth.d.ts.map +1 -1
  80. package/dist/server/src/authConfig/sessionUtils.d.ts.map +1 -1
  81. package/dist/server/src/authConfig/subscribeToAuthSetupChanges.d.ts.map +1 -1
  82. package/dist/server/src/cli/cliTemplateFiles.js +18 -7
  83. package/dist/server/src/cli/cliTemplateFiles.js.map +1 -1
  84. package/dist/server/src/init/initUsers.d.ts.map +1 -1
  85. package/dist/server/src/publish/getPublishLLM.d.ts.map +1 -1
  86. package/dist/server/src/publish/getPublishLlmChats.d.ts.map +1 -1
  87. package/dist/server/src/publish/publish.d.ts.map +1 -1
  88. package/dist/server/src/publish/publish.js +1 -0
  89. package/dist/server/src/publish/publish.js.map +1 -1
  90. package/dist/server/src/schemaConfig.d.ts +3 -2
  91. package/dist/server/src/schemaConfig.d.ts.map +1 -1
  92. package/dist/server/src/schemaConfig.js +2 -1
  93. package/dist/server/src/schemaConfig.js.map +1 -1
  94. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts +30 -12
  95. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts.map +1 -1
  96. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getTemplatedWebAppConnection.d.ts +15 -6
  97. package/dist/server/src/serverFunctions/adminServerFunctions/webApp/getTemplatedWebAppConnection.d.ts.map +1 -1
  98. package/dist/server/src/serverFunctions/applySampleSchema.d.ts +15 -6
  99. package/dist/server/src/serverFunctions/applySampleSchema.d.ts.map +1 -1
  100. package/dist/server/src/serverFunctions/askLLM/agentConstants.d.ts +1 -1
  101. package/dist/server/src/serverFunctions/askLLM/askLLM.d.ts.map +1 -1
  102. package/dist/server/src/serverFunctions/askLLM/getPastMessages.d.ts.map +1 -1
  103. package/dist/server/src/serverFunctions/askLLM/getValidatedAskLLMChatOptions.d.ts.map +1 -1
  104. package/dist/server/src/serverFunctions/askLLM/handleToolUseResultConfirmation.d.ts.map +1 -1
  105. package/dist/server/src/serverFunctions/askLLM/prostglesLLMTools/getMCPServerTools.d.ts.map +1 -1
  106. package/dist/server/src/serverFunctions/askLLM/prostglesLLMTools/getMcpToolsWithDynamicDescription.d.ts.map +1 -1
  107. package/dist/server/src/serverFunctions/deleteConnection.d.ts +15 -6
  108. package/dist/server/src/serverFunctions/deleteConnection.d.ts.map +1 -1
  109. package/dist/server/src/serverFunctions/getConnectionAndDatabaseConfig.d.ts +15 -6
  110. package/dist/server/src/serverFunctions/getConnectionAndDatabaseConfig.d.ts.map +1 -1
  111. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedWorkspaces.d.ts.map +1 -1
  112. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedWorkspacesFunction.d.ts.map +1 -1
  113. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts +30 -12
  114. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts.map +1 -1
  115. package/dist/server/src/tableConfig/tableConfigConnections.d.ts.map +1 -1
  116. package/dist/server/src/tableConfig/tableConfigConnections.js +5 -0
  117. package/dist/server/src/tableConfig/tableConfigConnections.js.map +1 -1
  118. package/dist/server/src/tableHooks/llm_credentials.tableHooks.d.ts.map +1 -1
  119. package/dist/server/src/tableHooks/tableHooks.d.ts +47 -20
  120. package/dist/server/src/tableHooks/tableHooks.d.ts.map +1 -1
  121. package/dist/server/src/tableHooks/users.tableHooks.d.ts +17 -8
  122. package/dist/server/src/tableHooks/users.tableHooks.d.ts.map +1 -1
  123. package/dist/server/src/upsertConnection.d.ts +15 -6
  124. package/dist/server/src/upsertConnection.d.ts.map +1 -1
  125. package/package.json +3 -3
@@ -0,0 +1,346 @@
1
+ import { getActionFunctions, type AnyObject, type ClientServerFunction, type JSONB } from "prostgles-types";
2
+ import { type ActionButtonState } from "./actionColumn";
3
+ export declare const functionOptionsSchema: {
4
+ readonly action: {
5
+ readonly optional: true;
6
+ readonly type: {
7
+ readonly conditions: {
8
+ readonly optional: true;
9
+ readonly arrayOf: {
10
+ readonly type: {
11
+ readonly filter: {
12
+ readonly oneOfType: readonly [{
13
+ readonly $and: {
14
+ readonly arrayOf: {
15
+ readonly record: {
16
+ readonly values: "any";
17
+ };
18
+ };
19
+ };
20
+ }, {
21
+ readonly $or: {
22
+ readonly arrayOf: {
23
+ readonly record: {
24
+ readonly values: "any";
25
+ };
26
+ };
27
+ };
28
+ }];
29
+ };
30
+ readonly value: {
31
+ readonly type: {
32
+ readonly text: {
33
+ readonly type: "string";
34
+ readonly optional: true;
35
+ };
36
+ readonly icon: {
37
+ readonly type: "string";
38
+ readonly optional: true;
39
+ };
40
+ readonly variant: {
41
+ readonly enum: readonly ["text", "faded", "filled", "outline"];
42
+ readonly optional: true;
43
+ };
44
+ readonly color: {
45
+ readonly enum: readonly ["default", "action", "danger", "warn", "green", "indigo", "inherit", "transparent", "white"];
46
+ readonly optional: true;
47
+ };
48
+ readonly disabledInfo: {
49
+ readonly type: "string";
50
+ readonly optional: true;
51
+ };
52
+ readonly isLoading: {
53
+ readonly type: "boolean";
54
+ readonly optional: true;
55
+ };
56
+ };
57
+ };
58
+ };
59
+ };
60
+ };
61
+ readonly defaultValue: {
62
+ readonly type: {
63
+ readonly text: {
64
+ readonly type: "string";
65
+ readonly optional: true;
66
+ };
67
+ readonly icon: {
68
+ readonly type: "string";
69
+ readonly optional: true;
70
+ };
71
+ readonly variant: {
72
+ readonly enum: readonly ["text", "faded", "filled", "outline"];
73
+ readonly optional: true;
74
+ };
75
+ readonly color: {
76
+ readonly enum: readonly ["default", "action", "danger", "warn", "green", "indigo", "inherit", "transparent", "white"];
77
+ readonly optional: true;
78
+ };
79
+ readonly disabledInfo: {
80
+ readonly type: "string";
81
+ readonly optional: true;
82
+ };
83
+ readonly isLoading: {
84
+ readonly type: "boolean";
85
+ readonly optional: true;
86
+ };
87
+ };
88
+ readonly optional: true;
89
+ };
90
+ /** Labels for a job control function; its binding and status policy are derived automatically. */
91
+ readonly job: {
92
+ readonly type: {
93
+ readonly runningText: {
94
+ readonly type: "string";
95
+ readonly optional: true;
96
+ };
97
+ readonly succeededText: {
98
+ readonly type: "string";
99
+ readonly optional: true;
100
+ };
101
+ readonly retryText: {
102
+ readonly type: "string";
103
+ readonly optional: true;
104
+ };
105
+ };
106
+ readonly optional: true;
107
+ };
108
+ };
109
+ };
110
+ readonly defaultArgs: {
111
+ readonly record: {
112
+ readonly values: "any";
113
+ };
114
+ readonly optional: true;
115
+ };
116
+ readonly outputTable: {
117
+ readonly type: "string";
118
+ readonly optional: true;
119
+ };
120
+ };
121
+ export declare const functionOptionsJsonbSchema: {
122
+ readonly record: {
123
+ readonly partial: true;
124
+ readonly values: {
125
+ readonly type: {
126
+ readonly action: {
127
+ readonly optional: true;
128
+ readonly type: {
129
+ readonly conditions: {
130
+ readonly optional: true;
131
+ readonly arrayOf: {
132
+ readonly type: {
133
+ readonly filter: {
134
+ readonly oneOfType: readonly [{
135
+ readonly $and: {
136
+ readonly arrayOf: {
137
+ readonly record: {
138
+ readonly values: "any";
139
+ };
140
+ };
141
+ };
142
+ }, {
143
+ readonly $or: {
144
+ readonly arrayOf: {
145
+ readonly record: {
146
+ readonly values: "any";
147
+ };
148
+ };
149
+ };
150
+ }];
151
+ };
152
+ readonly value: {
153
+ readonly type: {
154
+ readonly text: {
155
+ readonly type: "string";
156
+ readonly optional: true;
157
+ };
158
+ readonly icon: {
159
+ readonly type: "string";
160
+ readonly optional: true;
161
+ };
162
+ readonly variant: {
163
+ readonly enum: readonly ["text", "faded", "filled", "outline"];
164
+ readonly optional: true;
165
+ };
166
+ readonly color: {
167
+ readonly enum: readonly ["default", "action", "danger", "warn", "green", "indigo", "inherit", "transparent", "white"];
168
+ readonly optional: true;
169
+ };
170
+ readonly disabledInfo: {
171
+ readonly type: "string";
172
+ readonly optional: true;
173
+ };
174
+ readonly isLoading: {
175
+ readonly type: "boolean";
176
+ readonly optional: true;
177
+ };
178
+ };
179
+ };
180
+ };
181
+ };
182
+ };
183
+ readonly defaultValue: {
184
+ readonly type: {
185
+ readonly text: {
186
+ readonly type: "string";
187
+ readonly optional: true;
188
+ };
189
+ readonly icon: {
190
+ readonly type: "string";
191
+ readonly optional: true;
192
+ };
193
+ readonly variant: {
194
+ readonly enum: readonly ["text", "faded", "filled", "outline"];
195
+ readonly optional: true;
196
+ };
197
+ readonly color: {
198
+ readonly enum: readonly ["default", "action", "danger", "warn", "green", "indigo", "inherit", "transparent", "white"];
199
+ readonly optional: true;
200
+ };
201
+ readonly disabledInfo: {
202
+ readonly type: "string";
203
+ readonly optional: true;
204
+ };
205
+ readonly isLoading: {
206
+ readonly type: "boolean";
207
+ readonly optional: true;
208
+ };
209
+ };
210
+ readonly optional: true;
211
+ };
212
+ /** Labels for a job control function; its binding and status policy are derived automatically. */
213
+ readonly job: {
214
+ readonly type: {
215
+ readonly runningText: {
216
+ readonly type: "string";
217
+ readonly optional: true;
218
+ };
219
+ readonly succeededText: {
220
+ readonly type: "string";
221
+ readonly optional: true;
222
+ };
223
+ readonly retryText: {
224
+ readonly type: "string";
225
+ readonly optional: true;
226
+ };
227
+ };
228
+ readonly optional: true;
229
+ };
230
+ };
231
+ };
232
+ readonly defaultArgs: {
233
+ readonly record: {
234
+ readonly values: "any";
235
+ };
236
+ readonly optional: true;
237
+ };
238
+ readonly outputTable: {
239
+ readonly type: "string";
240
+ readonly optional: true;
241
+ };
242
+ };
243
+ };
244
+ };
245
+ };
246
+ export type FunctionOptions = JSONB.GetObjectType<typeof functionOptionsSchema>;
247
+ export type FunctionOptionsMap = Partial<Record<string, FunctionOptions>>;
248
+ export declare const getFunctionOptions: (method: ClientServerFunction | undefined) => {
249
+ action: {
250
+ job: {
251
+ jobName: string;
252
+ rowArg: "row";
253
+ operation: import("prostgles-types").JobControlOperation;
254
+ tableName: string;
255
+ columnName: string;
256
+ allowedStatuses: readonly import("prostgles-types").JobStatus[];
257
+ runningText?: string | undefined;
258
+ succeededText?: string | undefined;
259
+ retryText?: string | undefined;
260
+ } | undefined;
261
+ conditions?: JSONB.GetObjectType<{
262
+ readonly filter: {
263
+ readonly oneOfType: readonly [{
264
+ readonly $and: {
265
+ readonly arrayOf: {
266
+ readonly record: {
267
+ readonly values: "any";
268
+ };
269
+ };
270
+ };
271
+ }, {
272
+ readonly $or: {
273
+ readonly arrayOf: {
274
+ readonly record: {
275
+ readonly values: "any";
276
+ };
277
+ };
278
+ };
279
+ }];
280
+ };
281
+ readonly value: {
282
+ readonly type: {
283
+ readonly text: {
284
+ readonly type: "string";
285
+ readonly optional: true;
286
+ };
287
+ readonly icon: {
288
+ readonly type: "string";
289
+ readonly optional: true;
290
+ };
291
+ readonly variant: {
292
+ readonly enum: readonly ["text", "faded", "filled", "outline"];
293
+ readonly optional: true;
294
+ };
295
+ readonly color: {
296
+ readonly enum: readonly ["default", "action", "danger", "warn", "green", "indigo", "inherit", "transparent", "white"];
297
+ readonly optional: true;
298
+ };
299
+ readonly disabledInfo: {
300
+ readonly type: "string";
301
+ readonly optional: true;
302
+ };
303
+ readonly isLoading: {
304
+ readonly type: "boolean";
305
+ readonly optional: true;
306
+ };
307
+ };
308
+ };
309
+ }>[] | undefined;
310
+ defaultValue?: JSONB.GetObjectType<{
311
+ readonly text: {
312
+ readonly type: "string";
313
+ readonly optional: true;
314
+ };
315
+ readonly icon: {
316
+ readonly type: "string";
317
+ readonly optional: true;
318
+ };
319
+ readonly variant: {
320
+ readonly enum: readonly ["text", "faded", "filled", "outline"];
321
+ readonly optional: true;
322
+ };
323
+ readonly color: {
324
+ readonly enum: readonly ["default", "action", "danger", "warn", "green", "indigo", "inherit", "transparent", "white"];
325
+ readonly optional: true;
326
+ };
327
+ readonly disabledInfo: {
328
+ readonly type: "string";
329
+ readonly optional: true;
330
+ };
331
+ readonly isLoading: {
332
+ readonly type: "boolean";
333
+ readonly optional: true;
334
+ };
335
+ }> | undefined;
336
+ };
337
+ defaultArgs?: {
338
+ [x: string]: any;
339
+ } | undefined;
340
+ outputTable?: string | undefined;
341
+ } | undefined;
342
+ export declare const getFunctionActionValueKey: (key: string) => string;
343
+ export declare const getFunctionActionSelect: (method: ClientServerFunction | undefined, key: string) => AnyObject;
344
+ export declare const getTableFunctionActionSelect: (methods: Record<string, ClientServerFunction>, table: Parameters<typeof getActionFunctions>[1]) => AnyObject;
345
+ export declare const getFunctionActionValue: (method: ClientServerFunction | undefined, row: AnyObject, key: string, overrides?: ActionButtonState) => ActionButtonState;
346
+ //# sourceMappingURL=functionOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functionOptions.d.ts","sourceRoot":"","sources":["../../../common/functionOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,KAAK,EACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAM5B,kGAAkG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM9F,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBARjC,kGAAkG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU9F,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAChF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;AAE1E,eAAO,MAAM,kBAAkB,GAAI,QAAQ,oBAAoB,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAS1E,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,KAAK,MAAM,WAC3B,CAAC;AAE3B,eAAO,MAAM,uBAAuB,GAClC,QAAQ,oBAAoB,GAAG,SAAS,EACxC,KAAK,MAAM,KACV,SASF,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,SAAS,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,OAAO,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,KAC9C,SAMA,CAAC;AAEJ,eAAO,MAAM,sBAAsB,GACjC,QAAQ,oBAAoB,GAAG,SAAS,EACxC,KAAK,SAAS,EACd,KAAK,MAAM,EACX,YAAW,iBAAsB,KAChC,iBAgBF,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFunctionActionValue = exports.getTableFunctionActionSelect = exports.getFunctionActionSelect = exports.getFunctionActionValueKey = exports.getFunctionOptions = exports.functionOptionsJsonbSchema = exports.functionOptionsSchema = void 0;
4
+ const prostgles_types_1 = require("prostgles-types");
5
+ const actionColumn_1 = require("./actionColumn");
6
+ const jobAction_1 = require("./jobAction");
7
+ exports.functionOptionsSchema = {
8
+ action: {
9
+ optional: true,
10
+ type: {
11
+ conditions: actionColumn_1.actionColumnParamsSchema.conditions,
12
+ defaultValue: actionColumn_1.actionColumnParamsSchema.defaultValue,
13
+ /** Labels for a job control function; its binding and status policy are derived automatically. */
14
+ job: { type: jobAction_1.jobActionSchema, optional: true },
15
+ },
16
+ },
17
+ defaultArgs: { record: { values: "any" }, optional: true },
18
+ outputTable: { type: "string", optional: true },
19
+ };
20
+ exports.functionOptionsJsonbSchema = {
21
+ record: { partial: true, values: { type: exports.functionOptionsSchema } },
22
+ };
23
+ const getFunctionOptions = (method) => {
24
+ if (!method)
25
+ return;
26
+ const options = method.function_options;
27
+ const binding = method.jobControl;
28
+ const { job, ...action } = options?.action ?? {};
29
+ return {
30
+ ...options,
31
+ action: { ...action, job: binding && { ...job, ...binding } },
32
+ };
33
+ };
34
+ exports.getFunctionOptions = getFunctionOptions;
35
+ const getFunctionActionValueKey = (key) => `${key}__function_state`;
36
+ exports.getFunctionActionValueKey = getFunctionActionValueKey;
37
+ const getFunctionActionSelect = (method, key) => {
38
+ const action = (0, exports.getFunctionOptions)(method)?.action;
39
+ const expression = (0, actionColumn_1.getActionCaseSelect)(action?.job ? { ...action, defaultValue: {} } : action ?? {});
40
+ return {
41
+ ...(0, jobAction_1.getJobActionSelect)(action?.job, key),
42
+ ...(expression ? { [(0, exports.getFunctionActionValueKey)(key)]: expression } : {}),
43
+ };
44
+ };
45
+ exports.getFunctionActionSelect = getFunctionActionSelect;
46
+ const getTableFunctionActionSelect = (methods, table) => Object.assign({}, ...(0, prostgles_types_1.getActionFunctions)(methods, table).map(({ methodName }) => (0, exports.getFunctionActionSelect)(methods[methodName], methodName)));
47
+ exports.getTableFunctionActionSelect = getTableFunctionActionSelect;
48
+ const getFunctionActionValue = (method, row, key, overrides = {}) => {
49
+ const state = row[(0, exports.getFunctionActionValueKey)(key)];
50
+ const action = (0, exports.getFunctionOptions)(method)?.action;
51
+ const values = {
52
+ ...action?.defaultValue,
53
+ // Conditional states must not inherit a disabled or loading default.
54
+ ...(state && !action?.job ? { disabledInfo: undefined, isLoading: undefined } : {}),
55
+ ...(state ? JSON.parse(state) : {}),
56
+ ...overrides,
57
+ };
58
+ const jobValue = (0, jobAction_1.getJobActionValue)(action?.job, row, key);
59
+ return {
60
+ ...values,
61
+ ...jobValue,
62
+ disabledInfo: jobValue.disabledInfo || values.disabledInfo,
63
+ };
64
+ };
65
+ exports.getFunctionActionValue = getFunctionActionValue;
66
+ //# sourceMappingURL=functionOptions.js.map
@@ -0,0 +1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IAClD,MAAM,MAAM,GAAG;QACb,GAAG,MAAM,EAAE,YAAY;QACvB,qEAAqE;QACrE,GAAG,CAAC,KAAK,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnF,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAuB,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1D,GAAG,SAAS;KACb,CAAC;IACF,MAAM,QAAQ,GAAG,IAAA,6BAAiB,EAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC1D,OAAO;QACL,GAAG,MAAM;QACT,GAAG,QAAQ;QACX,YAAY,EAAE,QAAQ,CAAC,YAAY,IAAI,MAAM,CAAC,YAAY;KAC3D,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,sBAAsB,0BAqBjC"}
@@ -0,0 +1,21 @@
1
+ import type { AnyObject, JobControlBinding, JSONB } from "prostgles-types";
2
+ import type { ActionButtonState } from "./actionColumn";
3
+ export declare const jobActionSchema: {
4
+ readonly runningText: {
5
+ readonly type: "string";
6
+ readonly optional: true;
7
+ };
8
+ readonly succeededText: {
9
+ readonly type: "string";
10
+ readonly optional: true;
11
+ };
12
+ readonly retryText: {
13
+ readonly type: "string";
14
+ readonly optional: true;
15
+ };
16
+ };
17
+ type JobAction = JSONB.GetObjectType<typeof jobActionSchema> & JobControlBinding;
18
+ export declare const getJobActionSelect: (job: JobAction | undefined, key: string) => AnyObject;
19
+ export declare const getJobActionValue: (options: JobAction | undefined, row: AnyObject, key: string) => ActionButtonState;
20
+ export {};
21
+ //# sourceMappingURL=jobAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobAction.d.ts","sourceRoot":"","sources":["../../../common/jobAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAa,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAIlB,CAAC;AAEX,KAAK,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,eAAe,CAAC,GAAG,iBAAiB,CAAC;AAGjF,eAAO,MAAM,kBAAkB,GAC7B,KAAK,SAAS,GAAG,SAAS,EAC1B,KAAK,MAAM,KACV,SAQG,CAAC;AAEP,eAAO,MAAM,iBAAiB,GAC5B,SAAS,SAAS,GAAG,SAAS,EAC9B,KAAK,SAAS,EACd,KAAK,MAAM,KACV,iBAuCF,CAAC"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getJobActionValue = exports.getJobActionSelect = exports.jobActionSchema = void 0;
4
+ exports.jobActionSchema = {
5
+ runningText: { type: "string", optional: true },
6
+ succeededText: { type: "string", optional: true },
7
+ retryText: { type: "string", optional: true },
8
+ };
9
+ const getJobActionSelect = (job, key) => job ? {
10
+ [getJobActionValueKey(key)]: {
11
+ $leftJoin: [{
12
+ table: job.tableName,
13
+ on: [{ [job.columnName]: "id" }],
14
+ }],
15
+ select: { status: 1, progress_message: 1 },
16
+ },
17
+ } : {};
18
+ exports.getJobActionSelect = getJobActionSelect;
19
+ const getJobActionValue = (options, row, key) => {
20
+ const job = row[getJobActionValueKey(key)]?.[0];
21
+ if (!options)
22
+ return {};
23
+ const disabledInfo = !job ? "Job has not started"
24
+ : options.allowedStatuses.includes(job.status) ? undefined
25
+ : `Job control is not allowed while the job is ${job.status}`;
26
+ if (options.operation === "cancel" || options.operation === "rerun") {
27
+ return {
28
+ text: options.operation === "cancel" ? options.runningText ?? "Cancel" : options.succeededText ?? "Rerun",
29
+ isLoading: false,
30
+ disabledInfo,
31
+ };
32
+ }
33
+ if (!job)
34
+ return { isLoading: false };
35
+ if (job.status === "pending" || job.status === "running") {
36
+ return {
37
+ text: job.progress_message || options.runningText || (job.status === "pending" ? "Queued" : "Running"),
38
+ isLoading: true,
39
+ disabledInfo,
40
+ };
41
+ }
42
+ if (job.status === "succeeded") {
43
+ return {
44
+ text: options.succeededText ?? "Complete",
45
+ color: "green",
46
+ isLoading: false,
47
+ disabledInfo,
48
+ };
49
+ }
50
+ if (job.status === "failed" || job.status === "cancelled") {
51
+ return {
52
+ text: options.retryText ?? "Retry",
53
+ color: "warn",
54
+ isLoading: false,
55
+ disabledInfo,
56
+ };
57
+ }
58
+ return {};
59
+ };
60
+ exports.getJobActionValue = getJobActionValue;
61
+ const getJobActionValueKey = (key) => `${key}__job`;
62
+ //# sourceMappingURL=jobAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobAction.js","sourceRoot":"","sources":["../../../common/jobAction.ts"],"names":[],"mappings":";;;AAGa,QAAA,eAAe,GAAG;IAC7B,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC/C,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;IACjD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;CACrC,CAAC;AAKJ,MAAM,kBAAkB,GAAG,CAChC,GAA0B,EAC1B,GAAW,EACA,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACpB,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,EAAE;QAC3B,SAAS,EAAE,CAAC;gBACV,KAAK,EAAE,GAAG,CAAC,SAAS;gBACpB,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;aACjC,CAAC;QACF,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC,EAAE;KAC3C;CACF,CAAC,C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,CAAC,EAOrB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;CAOvB,CAAC;AAEX,eAAO,MAAM,QAAQ,GACnB,UAAU,KAAK,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,EAChD,MAAM,MAAM,WAGb,CAAC;AAEF,eAAO,MAAM,6CAA6C,GACxD,UAAU,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,EAAE,EACtD,OAAO,MAAM,EACb,oBAAkB,KACjB,OAsBF,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC9C,SAAS,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,GAAG,SAAS,KAC9D,OAAO,IAAI,SAAS,CAAC,cAAc,CAErC,CAAC"}
@@ -56,7 +56,10 @@ export declare const tableOptionsJsonbSchema: {
56
56
  readonly columnName: "string";
57
57
  }, {
58
58
  readonly methodName: "string";
59
- readonly argName: "string";
59
+ readonly argName: {
60
+ readonly type: "string";
61
+ readonly optional: true;
62
+ };
60
63
  readonly joinPath: {
61
64
  readonly optional: true;
62
65
  readonly arrayOf: {
@@ -73,9 +76,28 @@ export declare const tableOptionsJsonbSchema: {
73
76
  };
74
77
  };
75
78
  readonly conditions: {
79
+ readonly optional: true;
76
80
  readonly arrayOf: {
77
81
  readonly type: {
78
- readonly filter: "any";
82
+ readonly filter: {
83
+ readonly oneOfType: readonly [{
84
+ readonly $and: {
85
+ readonly arrayOf: {
86
+ readonly record: {
87
+ readonly values: "any";
88
+ };
89
+ };
90
+ };
91
+ }, {
92
+ readonly $or: {
93
+ readonly arrayOf: {
94
+ readonly record: {
95
+ readonly values: "any";
96
+ };
97
+ };
98
+ };
99
+ }];
100
+ };
79
101
  readonly value: {
80
102
  readonly type: {
81
103
  readonly text: {
@@ -149,7 +171,10 @@ export declare const tableOptionsJsonbSchema: {
149
171
  readonly params: {
150
172
  readonly type: {
151
173
  readonly methodName: "string";
152
- readonly argName: "string";
174
+ readonly argName: {
175
+ readonly type: "string";
176
+ readonly optional: true;
177
+ };
153
178
  readonly joinPath: {
154
179
  readonly optional: true;
155
180
  readonly arrayOf: {
@@ -166,9 +191,28 @@ export declare const tableOptionsJsonbSchema: {
166
191
  };
167
192
  };
168
193
  readonly conditions: {
194
+ readonly optional: true;
169
195
  readonly arrayOf: {
170
196
  readonly type: {
171
- readonly filter: "any";
197
+ readonly filter: {
198
+ readonly oneOfType: readonly [{
199
+ readonly $and: {
200
+ readonly arrayOf: {
201
+ readonly record: {
202
+ readonly values: "any";
203
+ };
204
+ };
205
+ };
206
+ }, {
207
+ readonly $or: {
208
+ readonly arrayOf: {
209
+ readonly record: {
210
+ readonly values: "any";
211
+ };
212
+ };
213
+ };
214
+ }];
215
+ };
172
216
  readonly value: {
173
217
  readonly type: {
174
218
  readonly text: {
@@ -1 +1 @@
1
- {"version":3,"file":"tableOptionsJsonbSchema.d.ts","sourceRoot":"","sources":["../../../../common/mcp/tableOptionsJsonbSchema.ts"],"names":[],"mappings":"AA4DA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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