@prostgles/app 2.3.6-dev.1788978204 → 2.3.6-dev.1789046358
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/client/build/js/298.bundle.js +1 -1
- package/client/build/js/main.bundle.js +2 -2
- package/dist/common/managedTableSchema.d.ts +1 -0
- package/dist/common/managedTableSchema.d.ts.map +1 -1
- package/dist/common/managedTableSchema.js +7 -1
- package/dist/common/managedTableSchema.js.map +1 -1
- package/dist/common/mcp/ui.mcp.schema.js +1 -1
- package/dist/common/prostglesApiTypes.d.ts +1 -1
- package/dist/common/prostglesApiTypes.d.ts.map +1 -1
- package/dist/common/prostglesApiTypes.js +5 -5
- package/dist/server/package.json +2 -2
- package/dist/server/src/ConnectionManager/getTableAuditConfig.d.ts +1 -1
- package/dist/server/src/ConnectionManager/getTableAuditConfig.d.ts.map +1 -1
- package/dist/server/src/ConnectionManager/getTableAuditConfig.js +3 -0
- package/dist/server/src/ConnectionManager/getTableAuditConfig.js.map +1 -1
- package/dist/server/src/ConnectionManager/modifyClientSchema.js +1 -1
- package/dist/server/src/ConnectionManager/modifyClientSchema.js.map +1 -1
- package/dist/server/src/ConnectionManager/syncSchemaConfig.d.ts.map +1 -1
- package/dist/server/src/ConnectionManager/syncSchemaConfig.js +11 -0
- package/dist/server/src/ConnectionManager/syncSchemaConfig.js.map +1 -1
- package/dist/server/src/McpHub/DockerSandbox/createContainer.spec.js +1 -1
- package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.d.ts +2 -2
- package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.d.ts.map +1 -1
- package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.js +2 -2
- package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/utils.js +1 -1
- package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/utils.js.map +1 -1
- package/dist/server/src/ServiceManager/ServiceManagerTypes.d.ts +3 -3
- package/dist/server/src/ServiceManager/getServiceManager.d.ts +3 -3
- package/dist/server/src/ServiceManager/services/documents/documents.service.d.ts +2 -2
- package/dist/server/src/ServiceManager/services/documents/documents.service.js +2 -2
- package/dist/server/src/ServiceManager/services/speechToText/speechToText.service.d.ts +1 -1
- package/dist/server/src/ServiceManager/services/speechToText/speechToText.service.js +1 -1
- package/dist/server/src/ServiceManager/services/speechToText/speechToText.service.js.map +1 -1
- package/dist/server/src/cli/Dockerfile +1 -1
- package/dist/server/src/cli/cli.js +91 -22
- package/dist/server/src/cli/cli.js.map +1 -1
- package/dist/server/src/cli/cliTemplateFiles.js +10 -2
- package/dist/server/src/cli/cliTemplateFiles.js.map +1 -1
- package/dist/server/src/cli/startTemporaryDatabases.d.ts +18 -0
- package/dist/server/src/cli/startTemporaryDatabases.d.ts.map +1 -0
- package/dist/server/src/cli/startTemporaryDatabases.js +198 -0
- package/dist/server/src/cli/startTemporaryDatabases.js.map +1 -0
- package/dist/server/src/cli/testing/createTestDeployment.d.ts +2 -0
- package/dist/server/src/cli/testing/createTestDeployment.d.ts.map +1 -1
- package/dist/server/src/cli/testing/createTestDeployment.js +6 -157
- package/dist/server/src/cli/testing/createTestDeployment.js.map +1 -1
- package/dist/server/src/serverFunctions/adminServerFunctions/webApp/buildWebApp.js +1 -1
- package/dist/server/src/serverFunctions/adminServerFunctions/webApp/buildWebApp.js.map +1 -1
- package/dist/server/src/serverFunctions/adminServerFunctions/webApp/runDockerForWebApp.d.ts +1 -1
- package/dist/server/src/serverFunctions/adminServerFunctions/webApp/runDockerForWebApp.d.ts.map +1 -1
- package/dist/server/src/serverFunctions/adminServerFunctions/webApp/testWebApp.js +1 -1
- package/dist/server/src/tableHooks/accessControl.tableHooks.d.ts +4 -0
- package/dist/server/src/tableHooks/accessControl.tableHooks.d.ts.map +1 -0
- package/dist/server/src/tableHooks/accessControl.tableHooks.js +54 -0
- package/dist/server/src/tableHooks/accessControl.tableHooks.js.map +1 -0
- package/dist/server/src/tableHooks/tableHooks.d.ts.map +1 -1
- package/dist/server/src/tableHooks/tableHooks.js +2 -0
- package/dist/server/src/tableHooks/tableHooks.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DBSSchema } from "./publishUtils";
|
|
2
2
|
import type { RequiredKeepUndefined } from "./utils";
|
|
3
|
+
export declare const auditTrailFilterColumns: readonly ["schema_name", "table_name", "old_id", "new_id"];
|
|
3
4
|
export type ClientTableAuditConfig = {
|
|
4
5
|
error: string;
|
|
5
6
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedTableSchema.d.ts","sourceRoot":"","sources":["../../../common/managedTableSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,MAAM,sBAAsB,GAC9B;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACjB;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEN,MAAM,MAAM,YAAY,GAAG,qBAAqB,CAC9C,WAAW,CACT,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAC/D,GAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAAC;CACjD,CACF,GAAG;IAAE,KAAK,CAAC,EAAE,sBAAsB,CAAA;CAAE,CAAC;AACvC,MAAM,MAAM,aAAa,GAAG,qBAAqB,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-1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.annotationsTableColumns = void 0;
|
|
3
|
+
exports.annotationsTableColumns = exports.auditTrailFilterColumns = void 0;
|
|
4
|
+
exports.auditTrailFilterColumns = [
|
|
5
|
+
"schema_name",
|
|
6
|
+
"table_name",
|
|
7
|
+
"old_id",
|
|
8
|
+
"new_id",
|
|
9
|
+
];
|
|
4
10
|
exports.annotationsTableColumns = {
|
|
5
11
|
id: `INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY`,
|
|
6
12
|
file_id: `UUID NOT NULL`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedTableSchema.js","sourceRoot":"","sources":["../../../common/managedTableSchema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"managedTableSchema.js","sourceRoot":"","sources":["../../../common/managedTableSchema.ts"],"names":[],"mappings":";;;AAGa,QAAA,uBAAuB,GAAG;IACrC,aAAa;IACb,YAAY;IACZ,QAAQ;IACR,QAAQ;CACA,CAAC;AA2BE,QAAA,uBAAuB,GAAG;IACrC,EAAE,EAAE,8CAA8C;IAClD,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,oCAAoC;IAC1C,UAAU,EAAE;QACV,WAAW,EAAE;YACX,WAAW,EAAE;gBACX,CAAC,EAAE,QAAQ;gBACX,CAAC,EAAE,QAAQ;gBACX,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,QAAQ;aACjB;SACF;KACF;CACO,CAAC"}
|
|
@@ -54,7 +54,7 @@ exports.uiMcpSchema = {
|
|
|
54
54
|
${"```json"}
|
|
55
55
|
{
|
|
56
56
|
"files": {
|
|
57
|
-
"Dockerfile": "FROM node:
|
|
57
|
+
"Dockerfile": "FROM node:24-trixie-slim\nWORKDIR /app\nCOPY . .\nRUN npm install\nCMD [\"node\", \"index.js\"]",
|
|
58
58
|
"index.ts": "import type { JSONB } from \"prostgles-types\"; console.log('hello world');"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated file. Do not edit.
|
|
3
3
|
*/
|
|
4
|
-
export declare const prostglesApiTypes = "/**\n * Data fetching and manipulation methods for interacting with the database\n */\n/**\n * List of fields to include or exclude\n */\nexport type FieldFilter<T extends AnyObject = AnyObject> = SelectTyped<T>;\nexport type AscOrDesc = 1 | -1 | boolean;\nexport type OrderByDetailed<T> = {\n key: keyof T;\n asc?: AscOrDesc | null;\n nulls?: \"last\" | \"first\" | null;\n nullEmpty?: boolean | null;\n};\n/**\n * `{ product_name: -1 }` -> SORT BY product_name DESC\n * [{ field_name: (1 | -1 | boolean) }]\n * true | 1 -> ascending\n * false | -1 -> descending\n * Array order is maintained\n * if nullEmpty is true then empty text will be replaced to null (so nulls sorting takes effect on it)\n */\nexport type OrderByTyped<T extends AnyObject> = {\n [K in keyof Partial<T>]: AscOrDesc;\n} | {\n [K in keyof Partial<T>]: AscOrDesc;\n}[] | OrderByDetailed<T> | OrderByDetailed<T>[] | Array<keyof T> | keyof T;\nexport type OrderBy<T extends AnyObject | void = void> = T extends AnyObject ? OrderByTyped<T> : OrderByTyped<AnyObject>;\nexport type CommonSelect = \"*\" | \"\" | {\n \"*\": 1;\n};\nexport type SelectTyped<T extends AnyObject> = {\n [K in keyof Partial<T>]: 1 | true;\n} | {\n [K in keyof Partial<T>]: 0 | false;\n} | (keyof T)[] | CommonSelect;\nexport declare const JOIN_KEYS: readonly [\"$innerJoin\", \"$leftJoin\"];\nexport declare const JOIN_PARAMS: readonly [\"select\", \"filter\", \"$path\", \"$condition\", \"offset\", \"limit\", \"orderBy\"];\nexport type JoinCondition = {\n column: string;\n rootColumn: string;\n} | ComplexFilter;\nexport type JoinPath = {\n table: string;\n /**\n * {\n * leftColumn: \"rightColumn\"\n * }\n */\n on?: Record<string, string>[];\n};\n/**\n * Can be either the target table name, or the sequence of tables to join through with the target table at the end.\n */\nexport type RawJoinPath = string | (JoinPath | string)[];\nexport type DetailedJoinSelect = Partial<Record<(typeof JOIN_KEYS)[number], RawJoinPath>> & {\n select: Select;\n filter?: FullFilter<void, void>;\n having?: FullFilter<void, void>;\n offset?: number;\n limit?: number;\n orderBy?: OrderBy;\n} & ({\n $condition?: undefined;\n} | {\n /**\n * If present then will overwrite $path and any inferred joins\n */\n $condition?: JoinCondition[];\n});\nexport type SimpleJoinSelect = \"*\"\n/** Aliased Shorthand join: table_name: { ...select } */\n | Record<string, 1 | \"*\" | true | FunctionSelect> | Record<string, 0 | false>;\nexport type JoinSelect = SimpleJoinSelect | DetailedJoinSelect;\n/**\n * Functions that take one column argument can be applied to the selected field by specifying the function name.\n * Example: { field: { funcName: [\"field\"] } }\n * Can be written as { field: \"funcName\" } if the field is the same as the argument\n */\ntype FunctionShorthand = string;\n/**\n * Common functions:\n * - Aggregation functions: $count, $sum, $avg, $min, $max\n * - String functions: $upper, $lower\n * - Date functions: $age, $date_part\n * - JSON functions: $merge\n */\ntype FunctionFull = Record<string, any[] | readonly any[] | FunctionShorthand>;\ntype FunctionSelect = FunctionShorthand | FunctionFull;\n/**\n * { computed_field: { funcName: [args] } }\n */\ntype FunctionAliasedSelect = Record<string, FunctionFull>;\ntype InclusiveSelect = true | 1 | FunctionSelect | JoinSelect;\ntype SelectWithFunctions<T extends AnyObject = AnyObject, IsTyped = false> = ({\n [K in keyof Partial<T>]: InclusiveSelect;\n} & Record<string, IsTyped extends true ? FunctionFull : InclusiveSelect>) | FunctionAliasedSelect | {\n [K in keyof Partial<T>]: true | 1 | string;\n} | {\n [K in keyof Partial<T>]: 0 | false;\n} | CommonSelect | (keyof Partial<T>)[];\n/** S param is needed to ensure the non typed select works fine */\nexport type Select<T extends AnyObject | void = void, S extends DBSchema | void = void> = {\n t: T;\n s: S;\n} extends {\n t: AnyObject;\n s: DBSchema;\n} ? SelectWithFunctions<T & {\n $rowhash: string;\n}, true> : SelectWithFunctions<AnyObject & {\n $rowhash: string;\n}, false>;\nexport type SelectBasic = {\n [key: string]: any;\n} | {} | undefined | \"\" | \"*\";\n/**\n * Will return the first row as an object. Will throw an error if more than a row is returned. Use limit: 1 to avoid error.\n */\ntype ReturnTypeRow = \"row\";\ntype CommonSelectParams = {\n /**\n * Max number of rows to return. Defaults to 1000\n * - On client publish rules can affect this behaviour: cannot request more than the maxLimit (if present)\n */\n limit?: number | null;\n /**\n * Number of rows to skip\n */\n offset?: number;\n /**\n * Will group by all non aggregated fields specified in select (or all fields by default)\n */\n groupBy?: boolean;\n /**\n * Result data structure/type:\n * - **row**: the first row as an object\n * - **value**: the first value from of first field\n * - **values**: array of values from the selected field\n * - **statement**: sql statement\n * - **statement-no-rls**: sql statement without row level security\n * - **statement-where**: sql statement where condition\n */\n returnType?: ReturnTypeRow\n /**\n * Will return the first value from the selected field\n */\n | \"value\"\n /**\n * Will return an array of values from the selected field. Similar to array_agg(field).\n */\n | \"values\"\n /**\n * Will return the sql statement. Requires publishRawSQL privileges if called by client\n */\n | \"statement\"\n /**\n * Will return the sql statement excluding the user header. Requires publishRawSQL privileges if called by client\n */\n | \"statement-no-rls\"\n /**\n * Will return the sql statement where condition. Requires publishRawSQL privileges if called by client\n */\n | \"statement-where\";\n};\nexport type SelectParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = CommonSelectParams & {\n /**\n * Fields/expressions/linked data to select\n * - `\"*\"` or undefined will return all fields\n * - `{ field: 0 }` - all fields except the specified field will be selected. Cannot be combined with inclusive selects (1, true, function or join selects)\n * - `{ field: 1 }` - only the specified field will be selected\n * - `{ field: { $funcName: [...args] } }` - the field will be selected with the specified function applied\n * - `{ field: 1, referencedTable: \"*\" }` - field together with all fields from referencedTable will be returned (as an array). The referencedTable must have a reference to the current table through foreign keys for this to work\n * - `{ linkedData: { $leftJoin: [\"lookupTable\", \"targetTable\"], select: { field: 1 } } }` - linkedData will contain the linked/joined records from referencedTable as an array of objects.\n */\n select?: Select<T, S>;\n /**\n * Order by options\n * - Order is maintained in arrays\n * - `[{ key: \"field\", asc: true, nulls: \"last\" }]`\n */\n orderBy?: OrderBy<S extends DBSchema ? T : void>;\n /**\n * Filter applied after any aggregations (group by)\n */\n having?: FullFilter<T, S>;\n abortSignal?: AbortSignal;\n};\ntype SubscribeActions = \"insert\" | \"delete\" | \"update\";\nexport type SubscribeOptions = {\n /**\n * If true then the first value will not be emitted\n * */\n skipFirst?: boolean;\n /**\n * Controls which actions will trigger the subscription.\n * If not provided then all actions will be triggered\n */\n actions?: Partial<Record<SubscribeActions, true> | Record<SubscribeActions, false>>;\n /**\n * If true then the subscription will be triggered without first checking if selected column values have changed\n * @default false\n */\n skipChangedColumnsCheck?: boolean;\n /**\n * If provided then the subscription will be throttled to the provided number of milliseconds\n */\n throttle?: number;\n throttleOpts?: {\n /**\n * False by default.\n * If true then the first value will be emitted at the end of the interval. Instant otherwise\n * */\n skipFirst?: boolean;\n };\n};\nexport type SubscribeParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = SelectParams<T, S> & SubscribeOptions;\nexport type InsertParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = {\n /**\n * If defined will returns the specified fields of the updated record(s)\n */\n returning?: Select<T, S>;\n /**\n * By default the insert may fail due to a unique/exclusion constraint violation error. To control this:\n * - DoNothing: will ignore the error and do nothing\n * - DoUpdate: will update all non primary key columns of the conflicting row\n */\n onConflict?: \"DoNothing\" | \"DoUpdate\" | {\n action: \"DoNothing\" | \"DoUpdate\";\n conflictColumns: string[];\n };\n /**\n * Used for sync.\n * If true then only valid and allowed fields will be inserted\n */\n removeDisallowedFields?: boolean;\n} & Pick<CommonSelectParams, \"returnType\">;\ntype CollapseNumberIfStringPresent<T> = [\n Extract<T, string>\n] extends [never] ? T : Exclude<T, number>;\nexport type NormalizedRow<T extends Record<string, unknown>> = Required<{\n [K in keyof T]: CollapseNumberIfStringPresent<T[K]>;\n}>;\ntype JoinedSelect = Record<string, Select>;\nexport type SelectFunction = Record<string, any[]>;\ntype ParseSelect<Select extends SelectParams<TD>[\"select\"], TD extends AnyObject> = (Select extends {\n \"*\": 1;\n} ? NormalizedRow<TD> : {}) & {\n [Key in keyof Omit<Select, \"*\"> & string]: Select[Key] extends 1 ? NormalizedRow<TD>[Key] : Select[Key] extends SelectFunction ? any : Select[Key] extends JoinedSelect ? any[] : any;\n};\ntype SelectDataType<S extends DBSchema | void, O extends SelectParams<TD, S>, TD extends AnyObject> = O extends {\n returnType: \"value\";\n} ? any : O extends {\n returnType: \"values\";\n select: Record<string, 1>;\n} ? ValueOf<Pick<NormalizedRow<TD>, keyof O[\"select\"]>> : O extends {\n returnType: \"values\";\n} ? any : O extends {\n select: \"*\";\n} ? NormalizedRow<TD> : O extends {\n select: \"\";\n} ? Record<string, never> : O extends {\n select: Record<string, 0>;\n} ? Omit<NormalizedRow<TD>, keyof O[\"select\"]> : O extends {\n select: Record<string, any>;\n} ? ParseSelect<O[\"select\"], NormalizedRow<TD>> : NormalizedRow<TD>;\nexport type SelectReturnType<S extends DBSchema | void, O extends SelectParams<TD, S>, TD extends AnyObject, isMulti extends boolean> = O extends {\n returnType: \"statement\";\n} ? string : isMulti extends true ? SelectDataType<S, O, TD>[] : SelectDataType<S, O, TD>;\nexport type UpdateParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = {\n /**\n * If defined will returns the specified fields of the updated record(s)\n */\n returning?: Select<T, S>;\n /**\n * Used for sync.\n * If true then only valid and allowed fields will be updated\n */\n removeDisallowedFields?: boolean;\n /**\n * true by default.\n * When set to false the update will throw an error if more than one row is updated (but the update will commit).\n * */\n multi?: boolean;\n} & Pick<CommonSelectParams, \"returnType\">;\ntype GetReturningReturnType<O extends UpdateParams<TD, S>, TD extends AnyObject, S extends DBSchema | void = void> = O extends {\n returning: \"*\";\n} ? NormalizedRow<TD> : O extends {\n returning: \"\";\n} ? Record<string, never> : O extends {\n returning: Record<string, 1>;\n} ? Pick<NormalizedRow<TD>, keyof O[\"returning\"]> : O extends {\n returning: Record<string, 0>;\n} ? Omit<NormalizedRow<TD>, keyof O[\"returning\"]> : void;\n/**\n *\n * Nothing is returned by default.\n * `returning` must be specified to return the updated records.\n */\nexport type UpdateReturnType<O extends UpdateParams<TD, S>, TD extends AnyObject, S extends DBSchema | void = void> = O extends {\n multi: false;\n} ? GetReturningReturnType<O, TD, S> : GetReturningReturnType<O, TD, S>[];\n/**\n * Nothing is returned by default.\n * `returning` must be specified to return the updated records.\n * If an array of records is inserted then an array of records will be returned\n * otherwise a single record will be returned.\n */\nexport type InsertReturnType<Data extends AnyObject, O extends UpdateParams<TD, S>, TD extends AnyObject, S extends DBSchema | void = void> = Data extends any[] | readonly any[] ? GetReturningReturnType<O, TD, S>[] : GetReturningReturnType<O, TD, S>;\nexport type SubscriptionHandler = {\n unsubscribe: () => Promise<void>;\n filter: FullFilter<void, void> | {};\n};\n/**\n * Callback fired once after subscribing and then every time the data matching the filter changes\n */\ntype SubscribeCallback<ItemsDataType> = (items: ItemsDataType, \n/**\n * Error due to schema changes or other post subscribe issues\n * Column or filter issues are thrown during the subscribe call\n */\nerror?: unknown) => void | Promise<void>;\n/**\n * Callback fired once after subscribing and then every time the data matching the filter changes\n */\ntype SubscribeOneCallback<ItemDataType> = (item: ItemDataType) => void | Promise<void>;\nexport type AllowedTSType = string | number | boolean | Date | unknown;\nexport type CastFromTSToPG<T extends AllowedTSType> = T extends number ? T | string : T extends string ? T | number | Date : T extends boolean ? T | string : T extends Date ? T | string : T;\nexport type UpsertDataToPGCast<TD extends AnyObject> = {\n [K in keyof TD]: CastFromTSToPG<TD[K]> | Record<\"$merge\", unknown[]>;\n};\nexport type PartialLax<T = AnyObject> = Partial<T>;\ntype UpsertDataToPGCastLax<T extends AnyObject> = PartialLax<UpsertDataToPGCast<T>>;\nexport type DeleteParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = {\n returning?: Select<T, S>;\n} & Pick<CommonSelectParams, \"returnType\">;\n/**\n * TODO: pick only joined tables from schema AND exclude parent fkey columns from the nested data\n */\nexport type InsertDataWithNested<TD extends AnyObject, S extends DBSchema | void> = UpsertDataToPGCast<TD> & (S extends DBSchema ? string extends keyof S ? {} : {\n [TableName in keyof S]?: Partial<InsertDataWithNested<S[TableName][\"columns\"], S>>[];\n} : {});\n/**\n * Methods for interacting with a table/view\n * - On client-side some methods are restricted (and undefined) based on publish rules on the server\n */\nexport type TableHandler<TD extends AnyObject = AnyObject, S extends DBSchema | void = void, TName extends (S extends DBSchema ? keyof S : never) = never> = {\n /**\n * Retrieves the table/view info\n */\n getInfo(\n /**\n * Language code for i18n data. \"en\" by default\n */\n lang?: string): Promise<TableInfo>;\n /**\n * Retrieves columns metadata of the table/view\n */\n getColumns(\n /**\n * Language code for i18n data. \"en\" by default\n */\n lang?: string, params?: GetColumnsParams): Promise<ValidatedColumnInfo[]>;\n /**\n * Retrieves a list of matching records from the view/table\n */\n find<P extends SelectParams<TD, S>>(\n /**\n * A filter for a table, defined as a MongoDB-like query object.\n * Supported operators:\n * - Comparison: $eq, $ne, $gt, $gte, $lt, $lte\n * - Logical: $and, $or\n * - Evaluation: $like, $ilike\n * - Array: $in, $nin\n * - Joins: $existsJoined: { [tableName]: TableFilter }\n * @example\n * {\n $and: [\n {\n $or: [\n { topic: { $in: [\"Prostgles\", \"Postgres\"] } },\n { summary: { $ilike: \"%postgres%\" } },\n { id: { $gt: 5 } },\n ]\n },\n { summary: { $ne: null } }\n ]\n }\n */\n filter?: FullFilter<TD, S>, \n /**\n * @example\n * {\n * select: {\n * field1: 1,\n * field2: 1,\n * referencedTable: \"*\", // all fields from the referenced table will be included in an array under the \"referencedTable\" key\n * },\n * orderBy: { field1: -1 },\n * limit: 10,\n * }\n */\n selectParams?: P): Promise<SelectReturnType<S, P, TD, true>>;\n /**\n * Retrieves a record from the view/table\n */\n findOne<P extends SelectParams<TD, S>>(filter?: FullFilter<TD, S>, selectParams?: P): Promise<undefined | SelectReturnType<S, P, TD, false>>;\n /**\n * Retrieves a list of matching records from the view/table and subscribes to changes\n */\n subscribe<P extends SubscribeParams<TD, S>>(filter: FullFilter<TD, S>, params: P, onData: SubscribeCallback<SelectReturnType<S, P, TD, true>>): Promise<SubscriptionHandler>;\n /**\n * Retrieves first matching record from the view/table and subscribes to changes\n */\n subscribeOne<P extends SubscribeParams<TD, S>>(filter: FullFilter<TD, S>, params: P, onData: SubscribeOneCallback<SelectReturnType<S, P, TD, false> | undefined>): Promise<SubscriptionHandler>;\n /**\n * Returns the number of rows that match the filter\n */\n count<P extends SelectParams<TD, S>>(filter?: FullFilter<TD, S>, selectParams?: P): Promise<number>;\n /**\n * Returns result size in bits\n */\n size<P extends SelectParams<TD, S>>(filter?: FullFilter<TD, S>, selectParams?: P): Promise<string>;\n /**\n * Updates a record in the table based on the specified filter criteria\n * - Use { multi: false } to ensure no more than one row is updated\n */\n update<P extends UpdateParams<TD, S>>(filter: FullFilter<TD, S>, newData: UpsertDataToPGCastLax<TD>, params?: P): Promise<UpdateReturnType<P, TD, S> | undefined>;\n /**\n * Updates multiple records in the table in a batch operation.\n * - Each item in the `data` array contains a filter and the corresponding data to update.\n */\n updateBatch<P extends UpdateParams<TD, S>>(data: [FullFilter<TD, S>, UpsertDataToPGCastLax<TD>][], params?: P): Promise<null>;\n /**\n * Inserts a new record into the table.\n */\n insert<P extends InsertParams<TD, S>>(data: InsertDataWithNested<TD, S>, params?: P): Promise<GetReturningReturnType<P, TD, S>>;\n /**\n * Inserts new records into the table.\n */\n insertMany<P extends InsertParams<TD, S>>(data: InsertDataWithNested<TD, S>[], params?: P): Promise<GetReturningReturnType<P, TD, S>[]>;\n /**\n * Inserts or updates a record in the table.\n * - If a record matching the `filter` exists, it updates the record.\n * - If no matching record exists, it inserts a new record.\n */\n upsert<P extends UpdateParams<TD, S>>(filter: FullFilter<TD, S>, newData: UpsertDataToPGCastLax<TD>, params?: P): Promise<GetReturningReturnType<P, TD, S>>;\n /**\n * Deletes records from the table based on the specified filter criteria.\n * - If no filter is provided, all records may be deleted (use with caution).\n */\n delete<P extends DeleteParams<TD, S>>(filter?: FullFilter<TD, S>, params?: P): Promise<GetReturningReturnType<P, TD, S>[]>;\n};\nexport type AsyncResult<T> = {\n data?: undefined;\n isLoading: true;\n error?: undefined;\n} | {\n data: T;\n isLoading: boolean;\n error?: unknown;\n};\nexport type HookOptions = {\n /**\n * Used to prevent the hook from fetching data\n */\n skip?: boolean;\n /**\n * Used to trigger re-fetching\n */\n deps?: any[];\n};\nexport type TableHandlerClientMethods<T extends AnyObject = AnyObject, S extends DBSchema | void = void> = {\n /**\n * Retrieves rows matching the filter and keeps them in sync\n * - use { handlesOnData: true } to get optimistic updates method: $update\n * - any changes to the row using the $update method will be reflected instantly\n * to all sync subscribers that were initiated with the same syncOptions\n */\n useSync?: <TD extends T, Opts extends SyncOptions>(basicFilter: EqualityFilter<TD>, syncOptions: Opts, hookOptions?: HookOptions) => AsyncResult<SyncDataItem<Required<TD>, Opts>[] | undefined>;\n sync?: <TD extends T, Opts extends SyncOptions>(basicFilter: EqualityFilter<TD>, options: Opts, onChange: OnChange<TD, Opts>, onError?: OnErrorHandler) => Promise<SyncHandler<TD>>;\n syncOne?: <TD extends T, Opts extends SyncOneOptions>(basicFilter: EqualityFilter<TD>, options: Opts, onChange: OnChangeOne<TD, Opts>, onError?: OnErrorHandler) => Promise<SingleSyncHandles<TD, Opts[\"handlesOnData\"]>>;\n /**\n * Retrieves the first row matching the filter and keeps it in sync\n * - use { handlesOnData: true } to get optimistic updates method: $update\n * - any changes to the row using the $update method will be reflected instantly\n * to all sync subscribers that were initiated with the same syncOptions\n */\n useSyncOne?: <TD extends T, Opts extends SyncOneOptions>(basicFilter: EqualityFilter<TD>, syncOptions: Opts, hookOptions?: HookOptions) => AsyncResult<SyncDataItem<Required<TD>, Opts> | undefined>;\n /**\n * Used internally to setup sync\n */\n _sync?: (filter: EqualityFilter<AnyObject> | undefined, selectParams: {\n select: FieldFilter;\n }, triggers: ClientSyncHandles) => Promise<DbTableSync>;\n _syncInfo?: SyncTableInfo;\n /**\n * Retrieves a list of matching records from the view/table and subscribes to changes\n */\n useSubscribe: <SubParams extends SubscribeParams<T, S>>(filter?: FullFilter<T, S>, options?: SubParams, hookOptions?: HookOptions) => AsyncResult<SelectReturnType<S, SubParams, T, true> | undefined>;\n /**\n * Retrieves a matching record from the view/table and subscribes to changes\n */\n useSubscribeOne: <SubParams extends SubscribeParams<T, S>>(filter?: FullFilter<T, S>, options?: SubParams, hookOptions?: HookOptions) => AsyncResult<SelectReturnType<S, SubParams, T, false> | undefined>;\n /**\n * Retrieves a list of matching records from the view/table\n */\n useFind: <P extends SelectParams<T, S>>(filter?: FullFilter<T, S>, selectParams?: P, hookOptions?: HookOptions) => AsyncResult<SelectReturnType<S, P, T, true> | undefined>;\n /**\n * Retrieves first matching record from the view/table\n */\n useFindOne: <P extends SelectParams<T, S>>(filter?: FullFilter<T, S>, selectParams?: P, hookOptions?: HookOptions) => AsyncResult<SelectReturnType<S, P, T, false> | undefined>;\n /**\n * Returns the total number of rows matching the filter\n */\n useCount: <P extends SelectParams<T, S>>(filter?: FullFilter<T, S>, selectParams?: P, hookOptions?: HookOptions) => AsyncResult<number | undefined>;\n /**\n * Returns result size in bits matching the filter and selectParams\n */\n useSize: <P extends SelectParams<T, S>>(filter?: FullFilter<T, S>, selectParams?: P, hookOptions?: HookOptions) => AsyncResult<string | undefined>;\n};\nexport type TableHandlerClient<T extends AnyObject = AnyObject, S extends DBSchema | void = void> = TableHandler<T, S> & TableHandlerClientMethods<T, S>;\nexport type DBHandlerClient<Schema = void> = Schema extends DBSchema ? {\n [tov_name in keyof Schema]: TableHandler<Schema[tov_name][\"columns\"], Schema> & TableHandlerClientMethods<Schema[tov_name][\"columns\"], Schema>;\n} : Record<string, Partial<TableHandler & TableHandlerClientMethods>>;\nexport type ClientOnReadyParams<DBSchema = void, FunctionHandler extends ClientFunctionHandler = ClientFunctionHandler, U extends UserLike = UserLike> = {\n /**\n * The database handler object.\n * Only allowed tables and table methods are defined\n */\n db: Partial<DBHandlerClient<DBSchema>>;\n sql: SQLHandler | undefined;\n /**\n * Server-side TS function handlers\n * Only allowed methods are defined\n */\n methods: FunctionHandler | undefined;\n methodSchema: ServerFunctionHandler | undefined;\n /**\n * Table schema with column permission details the client has access to\n */\n tableSchema: DBSchemaTable[] | undefined;\n auth: AuthHandler<U>;\n isReconnect: boolean;\n socket: Socket;\n};\nexport\n";
|
|
4
|
+
export declare const prostglesApiTypes = "/**\n * Data fetching and manipulation methods for interacting with the database\n */\n/**\n * List of fields to include or exclude\n */\nexport type FieldFilter<T extends AnyObject = AnyObject> = SelectTyped<T>;\nexport type AscOrDesc = 1 | -1 | boolean;\nexport type OrderByDetailed<T> = {\n key: keyof T;\n asc?: AscOrDesc | null;\n nulls?: \"last\" | \"first\" | null;\n nullEmpty?: boolean | null;\n};\n/**\n * `{ product_name: -1 }` -> SORT BY product_name DESC\n * [{ field_name: (1 | -1 | boolean) }]\n * true | 1 -> ascending\n * false | -1 -> descending\n * Array order is maintained\n * if nullEmpty is true then empty text will be replaced to null (so nulls sorting takes effect on it)\n */\nexport type OrderByTyped<T extends AnyObject> = {\n [K in keyof Partial<T>]: AscOrDesc;\n} | {\n [K in keyof Partial<T>]: AscOrDesc;\n}[] | OrderByDetailed<T> | OrderByDetailed<T>[] | Array<keyof T> | keyof T;\nexport type OrderBy<T extends AnyObject | void = void> = T extends AnyObject ? OrderByTyped<T> : OrderByTyped<AnyObject>;\nexport type CommonSelect = \"*\" | \"\" | {\n \"*\": 1;\n};\nexport type SelectTyped<T extends AnyObject> = {\n [K in keyof Partial<T>]: 1 | true;\n} | {\n [K in keyof Partial<T>]: 0 | false;\n} | (keyof T)[] | CommonSelect;\nexport declare const JOIN_KEYS: readonly [\"$innerJoin\", \"$leftJoin\"];\nexport declare const JOIN_PARAMS: readonly [\"select\", \"filter\", \"$path\", \"$condition\", \"offset\", \"limit\", \"orderBy\"];\nexport type JoinCondition = {\n column: string;\n rootColumn: string;\n} | ComplexFilter;\nexport type JoinPath = {\n table: string;\n /**\n * {\n * leftColumn: \"rightColumn\"\n * }\n */\n on?: Record<string, string>[];\n};\n/**\n * Can be either the target table name, or the sequence of tables to join through with the target table at the end.\n */\nexport type RawJoinPath = string | (JoinPath | string)[];\nexport type DetailedJoinSelect = Partial<Record<(typeof JOIN_KEYS)[number], RawJoinPath>> & {\n select: Select;\n filter?: FullFilter<void, void>;\n having?: FullFilter<void, void>;\n offset?: number;\n limit?: number;\n orderBy?: OrderBy;\n} & ({\n $condition?: undefined;\n} | {\n /**\n * If present then will overwrite $path and any inferred joins\n */\n $condition?: JoinCondition[];\n});\nexport type SimpleJoinSelect = \"*\"\n/** Aliased Shorthand join: table_name: { ...select } */\n | Record<string, 1 | \"*\" | true | FunctionSelect> | Record<string, 0 | false>;\nexport type JoinSelect = SimpleJoinSelect | DetailedJoinSelect;\n/**\n * Functions that take one column argument can be applied to the selected field by specifying the function name.\n * Example: { field: { funcName: [\"field\"] } }\n * Can be written as { field: \"funcName\" } if the field is the same as the argument\n */\ntype FunctionShorthand = string;\n/**\n * Common functions:\n * - Aggregation functions: $count, $sum, $avg, $min, $max\n * - String functions: $upper, $lower\n * - Date functions: $age, $date_part\n * - JSON functions: $merge\n */\ntype FunctionFull = Record<string, any[] | readonly any[] | FunctionShorthand>;\ntype FunctionSelect = FunctionShorthand | FunctionFull;\n/**\n * { computed_field: { funcName: [args] } }\n */\ntype FunctionAliasedSelect = Record<string, FunctionFull>;\ntype InclusiveSelect = true | 1 | FunctionSelect | JoinSelect;\ntype SelectWithFunctions<T extends AnyObject = AnyObject, IsTyped = false> = ({\n [K in keyof Partial<T>]: InclusiveSelect;\n} & Record<string, IsTyped extends true ? FunctionFull : InclusiveSelect>) | FunctionAliasedSelect | {\n [K in keyof Partial<T>]: true | 1 | string;\n} | {\n [K in keyof Partial<T>]: 0 | false;\n} | CommonSelect | (keyof Partial<T>)[];\n/** S param is needed to ensure the non typed select works fine */\nexport type Select<T extends AnyObject | void = void, S extends DBSchema | void = void> = {\n t: T;\n s: S;\n} extends {\n t: AnyObject;\n s: DBSchema;\n} ? SelectWithFunctions<T & {\n $rowhash: string;\n}, true> : SelectWithFunctions<AnyObject & {\n $rowhash: string;\n}, false>;\nexport type SelectBasic = {\n [key: string]: any;\n} | {} | undefined | \"\" | \"*\";\n/**\n * Will return the first row as an object. Will throw an error if more than a row is returned. Use limit: 1 to avoid error.\n */\ntype ReturnTypeRow = \"row\";\ntype CommonSelectParams = {\n /**\n * Max number of rows to return. Defaults to 1000\n * - On client publish rules can affect this behaviour: cannot request more than the maxLimit (if present)\n */\n limit?: number | null;\n /**\n * Number of rows to skip\n */\n offset?: number;\n /**\n * Will group by all non aggregated fields specified in select (or all fields by default)\n */\n groupBy?: boolean;\n /**\n * Result data structure/type:\n * - **row**: the first row as an object\n * - **value**: the first value from of first field\n * - **values**: array of values from the selected field\n * - **statement**: sql statement\n * - **statement-no-rls**: sql statement without row level security\n * - **statement-where**: sql statement where condition\n */\n returnType?: ReturnTypeRow\n /**\n * Will return the first value from the selected field\n */\n | \"value\"\n /**\n * Will return an array of values from the selected field. Similar to array_agg(field).\n */\n | \"values\"\n /**\n * Will return the sql statement. Requires publishRawSQL privileges if called by client\n */\n | \"statement\"\n /**\n * Will return the sql statement excluding the user header. Requires publishRawSQL privileges if called by client\n */\n | \"statement-no-rls\"\n /**\n * Will return the sql statement where condition. Requires publishRawSQL privileges if called by client\n */\n | \"statement-where\";\n};\nexport type SelectParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = CommonSelectParams & {\n /**\n * Fields/expressions/linked data to select\n * - `\"*\"` or undefined will return all fields\n * - `{ field: 0 }` - all fields except the specified field will be selected. Cannot be combined with inclusive selects (1, true, function or join selects)\n * - `{ field: 1 }` - only the specified field will be selected\n * - `{ field: { $funcName: [...args] } }` - the field will be selected with the specified function applied\n * - `{ field: 1, referencedTable: \"*\" }` - field together with all fields from referencedTable will be returned (as an array). The referencedTable must have a reference to the current table through foreign keys for this to work\n * - `{ linkedData: { $leftJoin: [\"lookupTable\", \"targetTable\"], select: { field: 1 } } }` - linkedData will contain the linked/joined records from referencedTable as an array of objects.\n */\n select?: Select<T, S>;\n /**\n * Order by options\n * - Order is maintained in arrays\n * - `[{ key: \"field\", asc: true, nulls: \"last\" }]`\n */\n orderBy?: OrderBy<S extends DBSchema ? T : void>;\n /**\n * Filter applied after any aggregations (group by)\n */\n having?: FullFilter<T, S>;\n abortSignal?: AbortSignal;\n};\ntype SubscribeActions = \"insert\" | \"delete\" | \"update\";\nexport type SubscribeOptions = {\n /**\n * If true then the first value will not be emitted\n * */\n skipFirst?: boolean;\n /**\n * Controls which actions will trigger the subscription.\n * If not provided then all actions will be triggered\n */\n actions?: Partial<Record<SubscribeActions, true> | Record<SubscribeActions, false>>;\n /**\n * If true then the subscription will be triggered without first checking if selected column values have changed\n * @default false\n */\n skipChangedColumnsCheck?: boolean;\n /**\n * If provided then the subscription will be throttled to the provided number of milliseconds\n */\n throttle?: number;\n throttleOpts?: {\n /**\n * False by default.\n * If true then the first value will be emitted at the end of the interval. Instant otherwise\n * */\n skipFirst?: boolean;\n };\n};\nexport type SubscribeParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = SelectParams<T, S> & SubscribeOptions;\nexport type InsertParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = {\n /**\n * If defined will returns the specified fields of the updated record(s)\n */\n returning?: Select<T, S>;\n /**\n * By default the insert may fail due to a unique/exclusion constraint violation error. To control this:\n * - DoNothing: will ignore the error and do nothing\n * - DoUpdate: will update all non primary key columns of the conflicting row\n */\n onConflict?: \"DoNothing\" | \"DoUpdate\" | {\n action: \"DoNothing\" | \"DoUpdate\";\n conflictColumns: string[];\n };\n /**\n * Used for sync.\n * If true then only valid and allowed fields will be inserted\n */\n removeDisallowedFields?: boolean;\n} & Pick<CommonSelectParams, \"returnType\">;\ntype CollapseNumberIfStringPresent<T> = [\n Extract<T, string>\n] extends [never] ? T : Exclude<T, number>;\nexport type NormalizedRow<T extends Record<string, unknown>> = Required<{\n [K in keyof T]: CollapseNumberIfStringPresent<T[K]>;\n}>;\ntype JoinedSelect = Record<string, Select>;\nexport type SelectFunction = Record<string, any[]>;\ntype ParseSelect<Select extends SelectParams<TD>[\"select\"], TD extends AnyObject> = (Select extends {\n \"*\": 1;\n} ? NormalizedRow<TD> : {}) & {\n [Key in keyof Omit<Select, \"*\"> & string]: Select[Key] extends 1 ? NormalizedRow<TD>[Key] : Select[Key] extends SelectFunction ? any : Select[Key] extends JoinedSelect ? any[] : any;\n};\ntype SelectDataType<S extends DBSchema | void, O extends SelectParams<TD, S>, TD extends AnyObject> = O extends {\n returnType: \"value\";\n} ? any : O extends {\n returnType: \"values\";\n select: Record<string, 1>;\n} ? ValueOf<Pick<NormalizedRow<TD>, keyof O[\"select\"]>> : O extends {\n returnType: \"values\";\n} ? any : O extends {\n select: \"*\";\n} ? NormalizedRow<TD> : O extends {\n select: \"\";\n} ? Record<string, never> : O extends {\n select: Record<string, 0>;\n} ? Omit<NormalizedRow<TD>, keyof O[\"select\"]> : O extends {\n select: Record<string, any>;\n} ? ParseSelect<O[\"select\"], NormalizedRow<TD>> : NormalizedRow<TD>;\nexport type SelectReturnType<S extends DBSchema | void, O extends SelectParams<TD, S>, TD extends AnyObject, isMulti extends boolean> = O extends {\n returnType: \"statement\";\n} ? string : isMulti extends true ? SelectDataType<S, O, TD>[] : SelectDataType<S, O, TD>;\nexport type UpdateParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = {\n /**\n * If defined will returns the specified fields of the updated record(s)\n */\n returning?: Select<T, S>;\n /**\n * Used for sync.\n * If true then only valid and allowed fields will be updated\n */\n removeDisallowedFields?: boolean;\n /**\n * true by default.\n * When set to false the update will throw an error if more than one row is updated (but the update will commit).\n * */\n multi?: boolean;\n} & Pick<CommonSelectParams, \"returnType\">;\ntype GetReturningReturnType<O extends UpdateParams<TD, S>, TD extends AnyObject, S extends DBSchema | void = void> = O extends {\n returning: \"*\";\n} ? NormalizedRow<TD> : O extends {\n returning: \"\";\n} ? Record<string, never> : O extends {\n returning: Record<string, 1>;\n} ? Pick<NormalizedRow<TD>, keyof O[\"returning\"]> : O extends {\n returning: Record<string, 0>;\n} ? Omit<NormalizedRow<TD>, keyof O[\"returning\"]> : void;\n/**\n *\n * Nothing is returned by default.\n * `returning` must be specified to return the updated records.\n */\nexport type UpdateReturnType<O extends UpdateParams<TD, S>, TD extends AnyObject, S extends DBSchema | void = void> = O extends {\n multi: false;\n} ? GetReturningReturnType<O, TD, S> : GetReturningReturnType<O, TD, S>[];\n/**\n * Nothing is returned by default.\n * `returning` must be specified to return the updated records.\n * If an array of records is inserted then an array of records will be returned\n * otherwise a single record will be returned.\n */\nexport type InsertReturnType<Data extends AnyObject, O extends UpdateParams<TD, S>, TD extends AnyObject, S extends DBSchema | void = void> = Data extends any[] | readonly any[] ? GetReturningReturnType<O, TD, S>[] : GetReturningReturnType<O, TD, S>;\nexport type SubscriptionHandler = {\n unsubscribe: () => Promise<void>;\n filter: FullFilter<void, void> | {};\n};\n/**\n * Callback fired once after subscribing and then every time the data matching the filter changes\n */\ntype SubscribeCallback<ItemsDataType> = (items: ItemsDataType, \n/**\n * Error due to schema changes or other post subscribe issues\n * Column or filter issues are thrown during the subscribe call\n */\nerror?: unknown) => void | Promise<void>;\n/**\n * Callback fired once after subscribing and then every time the data matching the filter changes\n */\ntype SubscribeOneCallback<ItemDataType> = (item: ItemDataType) => void | Promise<void>;\nexport type AllowedTSType = string | number | boolean | Date | unknown;\nexport type CastFromTSToPG<T extends AllowedTSType> = T extends number ? T | string : T extends string ? T | number | Date : T extends boolean ? T | string : T extends Date ? T | string : T;\nexport type UpsertDataToPGCast<TD extends AnyObject> = {\n [K in keyof TD]: CastFromTSToPG<TD[K]> | Record<\"$merge\", unknown[]>;\n};\nexport type PartialLax<T = AnyObject> = Partial<T>;\ntype UpsertDataToPGCastLax<T extends AnyObject> = PartialLax<UpsertDataToPGCast<T>>;\nexport type DeleteParams<T extends AnyObject | void = void, S extends DBSchema | void = void> = {\n returning?: Select<T, S>;\n} & Pick<CommonSelectParams, \"returnType\">;\n/**\n * TODO: pick only joined tables from schema AND exclude parent fkey columns from the nested data\n */\nexport type InsertDataWithNested<TD extends AnyObject, S extends DBSchema | void, TName extends PropertyKey = never> = InsertColumnsWithReferences<TD, S, TName> & (S extends DBSchema ? string extends keyof S ? {} : {\n [TableName in keyof S]?: Partial<InsertDataWithNested<S[TableName][\"columns\"], S, TableName>>[];\n} : {});\n/**\n * Methods for interacting with a table/view\n * - On client-side some methods are restricted (and undefined) based on publish rules on the server\n */\nexport type TableHandler<TD extends AnyObject = AnyObject, S extends DBSchema | void = void, TName extends PropertyKey = never> = {\n /**\n * Retrieves the table/view info\n */\n getInfo(\n /**\n * Language code for i18n data. \"en\" by default\n */\n lang?: string): Promise<TableInfo>;\n /**\n * Retrieves columns metadata of the table/view\n */\n getColumns(\n /**\n * Language code for i18n data. \"en\" by default\n */\n lang?: string, params?: GetColumnsParams): Promise<ValidatedColumnInfo[]>;\n /**\n * Retrieves a list of matching records from the view/table\n */\n find<P extends SelectParams<TD, S>>(\n /**\n * A filter for a table, defined as a MongoDB-like query object.\n * Supported operators:\n * - Comparison: $eq, $ne, $gt, $gte, $lt, $lte\n * - Logical: $and, $or\n * - Evaluation: $like, $ilike\n * - Array: $in, $nin\n * - Joins: $existsJoined: { [tableName]: TableFilter }\n * @example\n * {\n $and: [\n {\n $or: [\n { topic: { $in: [\"Prostgles\", \"Postgres\"] } },\n { summary: { $ilike: \"%postgres%\" } },\n { id: { $gt: 5 } },\n ]\n },\n { summary: { $ne: null } }\n ]\n }\n */\n filter?: FullFilter<TD, S>, \n /**\n * @example\n * {\n * select: {\n * field1: 1,\n * field2: 1,\n * referencedTable: \"*\", // all fields from the referenced table will be included in an array under the \"referencedTable\" key\n * },\n * orderBy: { field1: -1 },\n * limit: 10,\n * }\n */\n selectParams?: P): Promise<SelectReturnType<S, P, TD, true>>;\n /**\n * Retrieves a record from the view/table\n */\n findOne<P extends SelectParams<TD, S>>(filter?: FullFilter<TD, S>, selectParams?: P): Promise<undefined | SelectReturnType<S, P, TD, false>>;\n /**\n * Retrieves a list of matching records from the view/table and subscribes to changes\n */\n subscribe<P extends SubscribeParams<TD, S>>(filter: FullFilter<TD, S>, params: P, onData: SubscribeCallback<SelectReturnType<S, P, TD, true>>): Promise<SubscriptionHandler>;\n /**\n * Retrieves first matching record from the view/table and subscribes to changes\n */\n subscribeOne<P extends SubscribeParams<TD, S>>(filter: FullFilter<TD, S>, params: P, onData: SubscribeOneCallback<SelectReturnType<S, P, TD, false> | undefined>): Promise<SubscriptionHandler>;\n /**\n * Returns the number of rows that match the filter\n */\n count<P extends SelectParams<TD, S>>(filter?: FullFilter<TD, S>, selectParams?: P): Promise<number>;\n /**\n * Returns result size in bits\n */\n size<P extends SelectParams<TD, S>>(filter?: FullFilter<TD, S>, selectParams?: P): Promise<string>;\n /**\n * Updates a record in the table based on the specified filter criteria\n * - Use { multi: false } to ensure no more than one row is updated\n */\n update<P extends UpdateParams<TD, S>>(filter: FullFilter<TD, S>, newData: UpsertDataToPGCastLax<TD>, params?: P): Promise<UpdateReturnType<P, TD, S> | undefined>;\n /**\n * Updates multiple records in the table in a batch operation.\n * - Each item in the `data` array contains a filter and the corresponding data to update.\n */\n updateBatch<P extends UpdateParams<TD, S>>(data: [FullFilter<TD, S>, UpsertDataToPGCastLax<TD>][], params?: P): Promise<null>;\n /**\n * Inserts a new record into the table.\n */\n insert<P extends InsertParams<TD, S>>(data: InsertDataWithNested<TD, S, TName>, params?: P): Promise<GetReturningReturnType<P, TD, S>>;\n /**\n * Inserts new records into the table.\n */\n insertMany<P extends InsertParams<TD, S>>(data: InsertDataWithNested<TD, S, TName>[], params?: P): Promise<GetReturningReturnType<P, TD, S>[]>;\n /**\n * Inserts or updates a record in the table.\n * - If a record matching the `filter` exists, it updates the record.\n * - If no matching record exists, it inserts a new record.\n */\n upsert<P extends UpdateParams<TD, S>>(filter: FullFilter<TD, S>, newData: UpsertDataToPGCastLax<TD>, params?: P): Promise<GetReturningReturnType<P, TD, S>>;\n /**\n * Deletes records from the table based on the specified filter criteria.\n * - If no filter is provided, all records may be deleted (use with caution).\n */\n delete<P extends DeleteParams<TD, S>>(filter?: FullFilter<TD, S>, params?: P): Promise<GetReturningReturnType<P, TD, S>[]>;\n};\nexport type AsyncResult<T> = {\n data?: undefined;\n isLoading: true;\n error?: undefined;\n} | {\n data: T;\n isLoading: boolean;\n error?: unknown;\n};\nexport type HookOptions = {\n /**\n * Used to prevent the hook from fetching data\n */\n skip?: boolean;\n /**\n * Used to trigger re-fetching\n */\n deps?: any[];\n};\nexport type TableHandlerClientMethods<T extends AnyObject = AnyObject, S extends DBSchema | void = void> = {\n /**\n * Retrieves rows matching the filter and keeps them in sync\n * - use { handlesOnData: true } to get optimistic updates method: $update\n * - any changes to the row using the $update method will be reflected instantly\n * to all sync subscribers that were initiated with the same syncOptions\n */\n useSync?: <TD extends T, Opts extends SyncOptions>(basicFilter: EqualityFilter<TD>, syncOptions: Opts, hookOptions?: HookOptions) => AsyncResult<SyncDataItem<Required<TD>, Opts>[] | undefined>;\n sync?: <TD extends T, Opts extends SyncOptions>(basicFilter: EqualityFilter<TD>, options: Opts, onChange: OnChange<TD, Opts>, onError?: OnErrorHandler) => Promise<SyncHandler<TD>>;\n syncOne?: <TD extends T, Opts extends SyncOneOptions>(basicFilter: EqualityFilter<TD>, options: Opts, onChange: OnChangeOne<TD, Opts>, onError?: OnErrorHandler) => Promise<SingleSyncHandles<TD, Opts[\"handlesOnData\"]>>;\n /**\n * Retrieves the first row matching the filter and keeps it in sync\n * - use { handlesOnData: true } to get optimistic updates method: $update\n * - any changes to the row using the $update method will be reflected instantly\n * to all sync subscribers that were initiated with the same syncOptions\n */\n useSyncOne?: <TD extends T, Opts extends SyncOneOptions>(basicFilter: EqualityFilter<TD>, syncOptions: Opts, hookOptions?: HookOptions) => AsyncResult<SyncDataItem<Required<TD>, Opts> | undefined>;\n /**\n * Used internally to setup sync\n */\n _sync?: (filter: EqualityFilter<AnyObject> | undefined, selectParams: {\n select: FieldFilter;\n }, triggers: ClientSyncHandles) => Promise<DbTableSync>;\n _syncInfo?: SyncTableInfo;\n /**\n * Retrieves a list of matching records from the view/table and subscribes to changes\n */\n useSubscribe: <SubParams extends SubscribeParams<T, S>>(filter?: FullFilter<T, S>, options?: SubParams, hookOptions?: HookOptions) => AsyncResult<SelectReturnType<S, SubParams, T, true> | undefined>;\n /**\n * Retrieves a matching record from the view/table and subscribes to changes\n */\n useSubscribeOne: <SubParams extends SubscribeParams<T, S>>(filter?: FullFilter<T, S>, options?: SubParams, hookOptions?: HookOptions) => AsyncResult<SelectReturnType<S, SubParams, T, false> | undefined>;\n /**\n * Retrieves a list of matching records from the view/table\n */\n useFind: <P extends SelectParams<T, S>>(filter?: FullFilter<T, S>, selectParams?: P, hookOptions?: HookOptions) => AsyncResult<SelectReturnType<S, P, T, true> | undefined>;\n /**\n * Retrieves first matching record from the view/table\n */\n useFindOne: <P extends SelectParams<T, S>>(filter?: FullFilter<T, S>, selectParams?: P, hookOptions?: HookOptions) => AsyncResult<SelectReturnType<S, P, T, false> | undefined>;\n /**\n * Returns the total number of rows matching the filter\n */\n useCount: <P extends SelectParams<T, S>>(filter?: FullFilter<T, S>, selectParams?: P, hookOptions?: HookOptions) => AsyncResult<number | undefined>;\n /**\n * Returns result size in bits matching the filter and selectParams\n */\n useSize: <P extends SelectParams<T, S>>(filter?: FullFilter<T, S>, selectParams?: P, hookOptions?: HookOptions) => AsyncResult<string | undefined>;\n};\nexport type TableHandlerClient<T extends AnyObject = AnyObject, S extends DBSchema | void = void> = TableHandler<T, S> & TableHandlerClientMethods<T, S>;\nexport type DBHandlerClient<Schema = void> = Schema extends DBSchema ? {\n [tov_name in keyof Schema]: TableHandler<Schema[tov_name][\"columns\"], Schema> & TableHandlerClientMethods<Schema[tov_name][\"columns\"], Schema>;\n} : Record<string, Partial<TableHandler & TableHandlerClientMethods>>;\nexport type ClientOnReadyParams<DBSchema = void, FunctionHandler extends ClientFunctionHandler = ClientFunctionHandler, U extends UserLike = UserLike> = {\n /**\n * The database handler object.\n * Only allowed tables and table methods are defined\n */\n db: Partial<DBHandlerClient<DBSchema>>;\n sql: SQLHandler | undefined;\n /**\n * Server-side TS function handlers\n * Only allowed methods are defined\n */\n methods: FunctionHandler | undefined;\n methodSchema: ServerFunctionHandler | undefined;\n /**\n * Table schema with column permission details the client has access to\n */\n tableSchema: DBSchemaTable[] | undefined;\n auth: AuthHandler<U>;\n isReconnect: boolean;\n socket: Socket;\n};\nexport\n";
|
|
5
5
|
//# sourceMappingURL=prostglesApiTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prostglesApiTypes.d.ts","sourceRoot":"","sources":["../../../common/prostglesApiTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"prostglesApiTypes.d.ts","sourceRoot":"","sources":["../../../common/prostglesApiTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,iBAAiB,uiwBAmiB7B,CAAC"}
|
|
@@ -343,14 +343,14 @@ export type DeleteParams<T extends AnyObject | void = void, S extends DBSchema |
|
|
|
343
343
|
/**
|
|
344
344
|
* TODO: pick only joined tables from schema AND exclude parent fkey columns from the nested data
|
|
345
345
|
*/
|
|
346
|
-
export type InsertDataWithNested<TD extends AnyObject, S extends DBSchema | void> =
|
|
347
|
-
[TableName in keyof S]?: Partial<InsertDataWithNested<S[TableName]["columns"], S>>[];
|
|
346
|
+
export type InsertDataWithNested<TD extends AnyObject, S extends DBSchema | void, TName extends PropertyKey = never> = InsertColumnsWithReferences<TD, S, TName> & (S extends DBSchema ? string extends keyof S ? {} : {
|
|
347
|
+
[TableName in keyof S]?: Partial<InsertDataWithNested<S[TableName]["columns"], S, TableName>>[];
|
|
348
348
|
} : {});
|
|
349
349
|
/**
|
|
350
350
|
* Methods for interacting with a table/view
|
|
351
351
|
* - On client-side some methods are restricted (and undefined) based on publish rules on the server
|
|
352
352
|
*/
|
|
353
|
-
export type TableHandler<TD extends AnyObject = AnyObject, S extends DBSchema | void = void, TName extends
|
|
353
|
+
export type TableHandler<TD extends AnyObject = AnyObject, S extends DBSchema | void = void, TName extends PropertyKey = never> = {
|
|
354
354
|
/**
|
|
355
355
|
* Retrieves the table/view info
|
|
356
356
|
*/
|
|
@@ -440,11 +440,11 @@ export type TableHandler<TD extends AnyObject = AnyObject, S extends DBSchema |
|
|
|
440
440
|
/**
|
|
441
441
|
* Inserts a new record into the table.
|
|
442
442
|
*/
|
|
443
|
-
insert<P extends InsertParams<TD, S>>(data: InsertDataWithNested<TD, S>, params?: P): Promise<GetReturningReturnType<P, TD, S>>;
|
|
443
|
+
insert<P extends InsertParams<TD, S>>(data: InsertDataWithNested<TD, S, TName>, params?: P): Promise<GetReturningReturnType<P, TD, S>>;
|
|
444
444
|
/**
|
|
445
445
|
* Inserts new records into the table.
|
|
446
446
|
*/
|
|
447
|
-
insertMany<P extends InsertParams<TD, S>>(data: InsertDataWithNested<TD, S>[], params?: P): Promise<GetReturningReturnType<P, TD, S>[]>;
|
|
447
|
+
insertMany<P extends InsertParams<TD, S>>(data: InsertDataWithNested<TD, S, TName>[], params?: P): Promise<GetReturningReturnType<P, TD, S>[]>;
|
|
448
448
|
/**
|
|
449
449
|
* Inserts or updates a record in the table.
|
|
450
450
|
* - If a record matching the \`filter\` exists, it updates the record.
|
package/dist/server/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prostgles/app",
|
|
3
|
-
"version": "2.3.6-dev.
|
|
3
|
+
"version": "2.3.6-dev.1789046358",
|
|
4
4
|
"description": "Prostgles UI runtime and configurable PostgreSQL dashboard",
|
|
5
5
|
"main": "dist/server/src/schemaConfig.js",
|
|
6
6
|
"bin": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"pg": "^8.23.0",
|
|
57
57
|
"pidusage": "^4.0.1",
|
|
58
58
|
"prostgles-client": "^4.0.386",
|
|
59
|
-
"prostgles-server": "^4.2.
|
|
59
|
+
"prostgles-server": "^4.2.616",
|
|
60
60
|
"qrcode": "^1.5.4",
|
|
61
61
|
"simple-git": "^3.36.0",
|
|
62
62
|
"smtp-server": "^3.19.3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ClientTableAuditConfig } from "../../../common/managedTableSchema";
|
|
2
2
|
import type { ResolvedAuditConfig } from "prostgles-server";
|
|
3
3
|
import type { DBSchemaTable } from "prostgles-types";
|
|
4
4
|
/** Publish UI metadata for tables included by the server's audit rules. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTableAuditConfig.d.ts","sourceRoot":"","sources":["../../../../src/ConnectionManager/getTableAuditConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getTableAuditConfig.d.ts","sourceRoot":"","sources":["../../../../src/ConnectionManager/getTableAuditConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,GAC9B,OAAO,aAAa,EACpB,aAAa,mBAAmB,GAAG,SAAS,KAC3C,sBAAsB,GAAG,SAmB3B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTableAuditConfig = void 0;
|
|
4
|
+
const managedTableSchema_1 = require("../../../common/managedTableSchema");
|
|
4
5
|
/** Publish UI metadata for tables included by the server's audit rules. */
|
|
5
6
|
const getTableAuditConfig = (table, auditConfig) => {
|
|
6
7
|
const config = auditConfig?.tables[table.name];
|
|
@@ -18,4 +19,6 @@ const getTableAuditConfig = (table, auditConfig) => {
|
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
21
|
exports.getTableAuditConfig = getTableAuditConfig;
|
|
22
|
+
// Fail compilation if the shared UI filter columns drift from the audit schema.
|
|
23
|
+
managedTableSchema_1.auditTrailFilterColumns;
|
|
21
24
|
//# sourceMappingURL=getTableAuditConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTableAuditConfig.js","sourceRoot":"","sources":["../../../../src/ConnectionManager/getTableAuditConfig.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getTableAuditConfig.js","sourceRoot":"","sources":["../../../../src/ConnectionManager/getTableAuditConfig.ts"],"names":[],"mappings":";;;AAAA,mEAGoC;AAIpC,2EAA2E;AACpE,MAAM,mBAAmB,GAAG,CACjC,KAAoB,EACpB,WAA4C,EACR,EAAE;IACtC,MAAM,MAAM,GAAG,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;IACT,CAAC;IAED,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAC7B,IACE,CAAC,SAAS,CAAC,MAAM;QACjB,SAAS,CAAC,IAAI,CACZ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAClE,EACD,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;IAC9C,CAAC;IACD,OAAO;QACL,SAAS,EAAE,WAAW,CAAC,SAAS;QAChC,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,mBAAmB,uBAsB9B;AAEF,gFAAgF;AAChF,4CAAkE,CAAC"}
|
|
@@ -139,7 +139,7 @@ const auditTableOptions = {
|
|
|
139
139
|
rowIconColumn: undefined,
|
|
140
140
|
card: {
|
|
141
141
|
headerColumn: "operation",
|
|
142
|
-
subHeaderColumn: "
|
|
142
|
+
subHeaderColumn: "table_name",
|
|
143
143
|
visibleColumns: ["created_at", "actor", "old_row", "new_row"],
|
|
144
144
|
},
|
|
145
145
|
columns: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modifyClientSchema.js","sourceRoot":"","sources":["../../../../src/ConnectionManager/modifyClientSchema.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;AAQpE,qDAA+D;AAE/D,iEAA8D;AAE9D,+DAA4D;AAErD,MAAM,kBAAkB,GAAG,CAAC,EACjC,UAAU,EACV,cAAc,EACd,KAAK,EACL,WAAW,EACX,WAAW,GAQZ,EAA+D,EAAE;IAChE,MAAM,EAAE,iBAAiB,EAAE,GAAG,cAAc,CAAC;IAC7C,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,IAAI,EAAE,CAAC;IAChE,MAAM,mBAAmB,GACvB,SAAS,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB;QAC3C,CAAC,CAAC,SAAS,IAAI,gBAAgB,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB;YACxE,CAAC,CAAC,WAAW,EAAE,SAAS,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB;gBAC3D,CAAC,CAAC,SAAS,CAAC;IACd,MAAM,YAAY,GAAG;QACnB,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAC1B,2CAAoB,CAAC,aAAa,CAChC,KAAK,CAAC,IAA4D,CACnE;YACH,CAAC,CAAC,EAAE,CAAC;QACL,GAAG,mBAAmB;QACtB,GAAG,UAAU,CAAC,aAAa,EAAE,CAAC,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K,EAAE,aAAa;IACpB,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IACxD,aAAa,EAAE,SAAS;IACxB,IAAI,EAAE;QACJ,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"modifyClientSchema.js","sourceRoot":"","sources":["../../../../src/ConnectionManager/modifyClientSchema.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;AAQpE,qDAA+D;AAE/D,iEAA8D;AAE9D,+DAA4D;AAErD,MAAM,kBAAkB,GAAG,CAAC,EACjC,UAAU,EACV,cAAc,EACd,KAAK,EACL,WAAW,EACX,WAAW,GAQZ,EAA+D,EAAE;IAChE,MAAM,EAAE,iBAAiB,EAAE,GAAG,cAAc,CAAC;IAC7C,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,IAAI,EAAE,CAAC;IAChE,MAAM,mBAAmB,GACvB,SAAS,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB;QAC3C,CAAC,CAAC,SAAS,IAAI,gBAAgB,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB;YACxE,CAAC,CAAC,WAAW,EAAE,SAAS,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB;gBAC3D,CAAC,CAAC,SAAS,CAAC;IACd,MAAM,YAAY,GAAG;QACnB,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAC1B,2CAAoB,CAAC,aAAa,CAChC,KAAK,CAAC,IAA4D,CACnE;YACH,CAAC,CAAC,EAAE,CAAC;QACL,GAAG,mBAAmB;QACtB,GAAG,UAAU,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;KAC1C,CAAC;IAEF,MAAM,eAAe,GACnB,UAAU,CAAC,eAAe,EAAE,yBAAyB,IAAI,IAAI,CAAC;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AAE,CAAC;IACxD,aAAa,EAAE,SAAS;IACxB,IAAI,EAAE;QACJ,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,YAAY;QAC7B,cAAc,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC;KAC9D;IACD,OAAO,EAAE;QACP,UAAU,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACzC,OAAO,EAAE;YACP,KAAK,EAAE,EAAE,GAAG,mBAAmB,EAAE,MAAM,EAAE,WAAW,EAAE;YACtD,QAAQ,EAAE;gBACR,IAAI,EAAE,WAAW;gBACjB,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE;aACvD;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,mBAAmB;SAC3B;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncSchemaConfig.d.ts","sourceRoot":"","sources":["../../../../src/ConnectionManager/syncSchemaConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,GAAG,EAAE,MAAM,IAAI,CAAC;AAQ/C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAU,0CAKpC;IACD,GAAG,EAAE,GAAG,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,eAAe,GAAG,KAAK,CAAC;CAC/B,
|
|
1
|
+
{"version":3,"file":"syncSchemaConfig.d.ts","sourceRoot":"","sources":["../../../../src/ConnectionManager/syncSchemaConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,GAAG,EAAE,MAAM,IAAI,CAAC;AAQ/C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAU,0CAKpC;IACD,GAAG,EAAE,GAAG,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,eAAe,GAAG,KAAK,CAAC;CAC/B,kBA4DA,CAAC"}
|
|
@@ -37,6 +37,17 @@ const syncSchemaConfig = async ({ dbs, connectionId, configPath, type, }) => {
|
|
|
37
37
|
if (!databaseConfig) {
|
|
38
38
|
throw "Database config not found";
|
|
39
39
|
}
|
|
40
|
+
if (type === "cli") {
|
|
41
|
+
const filter = { database_id: databaseConfig.id, name: "CLI access rules" };
|
|
42
|
+
await dbs.access_control.delete(filter);
|
|
43
|
+
if (schemaConfig.access_control) {
|
|
44
|
+
await dbs.access_control.insert({
|
|
45
|
+
...filter,
|
|
46
|
+
dbPermissions: schemaConfig.access_control,
|
|
47
|
+
access_control_connections: [{ connection_id: connectionId }],
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
40
51
|
/**
|
|
41
52
|
* Restart instead of updating a second Prostgles instance: config hooks,
|
|
42
53
|
* migrations, functions, and table config now all share the live instance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncSchemaConfig.js","sourceRoot":"","sources":["../../../../src/ConnectionManager/syncSchemaConfig.ts"],"names":[],"mappings":";;;AACA,0BAAuC;AACvC,kFAA6E;AAC7E,6EAA0E;AAC1E,uDAAoD;AACpD,yCAA2C;AAC3C,qDAA2C;AAE3C;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,KAAK,EAAE,EACrC,GAAG,EACH,YAAY,EACZ,UAAU,EACV,IAAI,GAML,EAAE,EAAE;IACH,MAAM,IAAA,uDAA0B,EAAC,UAAU,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAgD;QAC/D,IAAI;QACJ,UAAU;QACV,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACpC,oBAAoB,EAAE,EAAE;KACzB,CAAC;IACF,MAAM,kBAAkB,GAAG,IAAA,iCAAe,EAAC,WAAW,CAAC,CAAC;IACxD,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,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,EAAE,EAAE,EAAE,EACxD,EAAE,WAAW,EAAE,EAAE,GAAG,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,EACnE,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CACjC,CAAC;IACF,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,2BAA2B,CAAC;IACpC,CAAC;IAED,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;QACnB,MAAM,MAAM,GAAG,EAAE,WAAW,EAAE,cAAc,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;QAC5E,MAAM,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,YAAY,CAAC,cAAc,EAAE,CAAC;YAChC,MAAM,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC;gBAC9B,GAAG,MAAM;gBACT,aAAa,EAAE,YAAY,CAAC,cAAc;gBAC1C,0BAA0B,EAAE,CAAC,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;aAC9D,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,IAAI,qBAAiB,CAAC,6BAA6B,CAAC,YAAY,CAAC,EAAE,CAAC;QAClE,IAAI,CAAC,qBAAiB,CAAC,EAAE;YAAE,MAAM,0CAA0C,CAAC;QAC5E,MAAM,qBAAiB,CAAC,eAAe,CACrC,YAAY,EACZ,GAAG,EACH,qBAAiB,CAAC,EAAE,EACpB,SAAS,EACT,IAAI,CACL,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAtEW,QAAA,gBAAgB,oBAsE3B"}
|
|
@@ -4,7 +4,7 @@ export declare const getAgenticWorkflowDockerCoreFiles: (package_dependencies: R
|
|
|
4
4
|
"eslint.config.mjs": string;
|
|
5
5
|
"tsconfig.json": string;
|
|
6
6
|
};
|
|
7
|
-
export declare const DockerfileForAgenticWorkflow = "\nFROM node:24-slim\nWORKDIR /app\n\nCOPY package*.json ./\n\n\n# Fail-fast npm behavior\nENV NODE_OPTIONS=--dns-result-order=ipv4first NPM_CONFIG_REGISTRY=https://registry.npmjs.org/ NPM_CONFIG_FETCH_RETRIES=0 NPM_CONFIG_FETCH_TIMEOUT=10000 NPM_CONFIG_FETCH_RETRY_MINTIMEOUT=1000 NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT=2000\n\n# Build-time preflight: DNS + HTTPS to npm registry (hard fail quickly)\nRUN node - <<'EOF'\nconst dns = require('dns').promises;\nconst https = require('https');\n\nfunction withTimeout(ms, p, label) {\n return Promise.race([\n p,\n new Promise((_, rej) => setTimeout(() => rej(new Error(label + ' timeout')), ms))\n ]);\n}\n\n(async () => {\n try {\n await withTimeout(3000, dns.lookup('registry.npmjs.org'), 'DNS lookup');\n await withTimeout(5000, new Promise((res, rej) => {\n const req = https.get('https://registry.npmjs.org/-/ping', (r) => {\n r.resume();\n (r.statusCode === 200) ? res() : rej(new Error('HTTP status ' + r.statusCode));\n });\n req.on('error', rej);\n }), 'HTTPS ping');\n console.log('Network preflight OK');\n } catch (e) {\n console.error('NETWORK_PREFLIGHT_FAIL. Build DNS server might not bet working as expected. Use --network host', e.message);\n process.exit(42);\n }\n})();\nEOF\n\nRUN npm install --silent\n\n\n\nCOPY . . \n\nRUN npm run build\nCMD [\"npm\", \"start\", \"--silent\"]\n";
|
|
7
|
+
export declare const DockerfileForAgenticWorkflow = "\nFROM node:24-trixie-slim\nWORKDIR /app\n\nCOPY package*.json ./\n\n\n# Fail-fast npm behavior\nENV NODE_OPTIONS=--dns-result-order=ipv4first NPM_CONFIG_REGISTRY=https://registry.npmjs.org/ NPM_CONFIG_FETCH_RETRIES=0 NPM_CONFIG_FETCH_TIMEOUT=10000 NPM_CONFIG_FETCH_RETRY_MINTIMEOUT=1000 NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT=2000\n\n# Build-time preflight: DNS + HTTPS to npm registry (hard fail quickly)\nRUN node - <<'EOF'\nconst dns = require('dns').promises;\nconst https = require('https');\n\nfunction withTimeout(ms, p, label) {\n return Promise.race([\n p,\n new Promise((_, rej) => setTimeout(() => rej(new Error(label + ' timeout')), ms))\n ]);\n}\n\n(async () => {\n try {\n await withTimeout(3000, dns.lookup('registry.npmjs.org'), 'DNS lookup');\n await withTimeout(5000, new Promise((res, rej) => {\n const req = https.get('https://registry.npmjs.org/-/ping', (r) => {\n r.resume();\n (r.statusCode === 200) ? res() : rej(new Error('HTTP status ' + r.statusCode));\n });\n req.on('error', rej);\n }), 'HTTPS ping');\n console.log('Network preflight OK');\n } catch (e) {\n console.error('NETWORK_PREFLIGHT_FAIL. Build DNS server might not bet working as expected. Use --network host', e.message);\n process.exit(42);\n }\n})();\nEOF\n\nRUN npm install --silent\n\n\n\nCOPY . . \n\nRUN npm run build\nCMD [\"npm\", \"start\", \"--silent\"]\n";
|
|
8
8
|
export declare const packageJsonTemplate: {
|
|
9
9
|
readonly name: "agentic-workflow";
|
|
10
10
|
readonly version: "1.0.0";
|
|
@@ -17,7 +17,7 @@ export declare const packageJsonTemplate: {
|
|
|
17
17
|
readonly dependencies: {
|
|
18
18
|
readonly typescript: "^5.9.3";
|
|
19
19
|
readonly tslib: "^2.8.1";
|
|
20
|
-
readonly "prostgles-types": "^4.0.
|
|
20
|
+
readonly "prostgles-types": "^4.0.281";
|
|
21
21
|
};
|
|
22
22
|
readonly devDependencies: {
|
|
23
23
|
readonly "@types/node": "^22.20.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAgenticWorkflowDockerCoreFiles.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC,GAC5C,sBAAsB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS;;;;;CAmCzD,CAAC;AAgDF,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"getAgenticWorkflowDockerCoreFiles.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC,GAC5C,sBAAsB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS;;;;;CAmCzD,CAAC;AAgDF,eAAO,MAAM,4BAA4B,05CAYxC,CAAC;AA2BF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;CAoBrB,CAAC"}
|
|
@@ -81,7 +81,7 @@ RUN npm install --silent
|
|
|
81
81
|
|
|
82
82
|
`;
|
|
83
83
|
exports.DockerfileForAgenticWorkflow = `
|
|
84
|
-
FROM node:24-slim
|
|
84
|
+
FROM node:24-trixie-slim
|
|
85
85
|
WORKDIR /app
|
|
86
86
|
|
|
87
87
|
COPY package*.json ./
|
|
@@ -118,7 +118,7 @@ exports.packageJsonTemplate = fromServerPackageJson({
|
|
|
118
118
|
dependencies: {
|
|
119
119
|
typescript: "^5.9.3",
|
|
120
120
|
tslib: "^2.8.1",
|
|
121
|
-
"prostgles-types": "^4.0.
|
|
121
|
+
"prostgles-types": "^4.0.281",
|
|
122
122
|
},
|
|
123
123
|
devDependencies: {
|
|
124
124
|
"@types/node": "^22.20.0",
|
|
@@ -13,7 +13,7 @@ const installDependenciesIfNeeded = async ({ dependencies, devDependencies, web_
|
|
|
13
13
|
}
|
|
14
14
|
const installDepsResult = await (0, runDockerForWebApp_1.runDockerForWebApp)({
|
|
15
15
|
web_app_directory,
|
|
16
|
-
image: "node:24-slim",
|
|
16
|
+
image: "node:24-trixie-slim",
|
|
17
17
|
shCommand: `cd client && ${commands.join(" && ")}`,
|
|
18
18
|
});
|
|
19
19
|
if (installDepsResult.state !== "close") {
|
package/dist/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../../src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/utils.ts"],"names":[],"mappings":";;;AAAA,4GAAyG;AAElG,MAAM,2BAA2B,GAAG,KAAK,EAAE,EAChD,YAAY,EACZ,eAAe,EACf,iBAAiB,GAKlB,EAAE,EAAE;IACH,IAAI,YAAY,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,EAAE,CAAC;QACpD,MAAM,QAAQ,GAAa,EAAE,CAAC;QAC9B,IAAI,YAAY,EAAE,MAAM,EAAE,CAAC;YACzB,QAAQ,CAAC,IAAI,CAAC,wBAAwB,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAClE,CAAC;QACD,IAAI,eAAe,EAAE,MAAM,EAAE,CAAC;YAC5B,QAAQ,CAAC,IAAI,CAAC,2BAA2B,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACxE,CAAC;QACD,MAAM,iBAAiB,GAAG,MAAM,IAAA,uCAAkB,EAAC;YACjD,iBAAiB;YACjB,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../../src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/utils.ts"],"names":[],"mappings":";;;AAAA,4GAAyG;AAElG,MAAM,2BAA2B,GAAG,KAAK,EAAE,EAChD,YAAY,EACZ,eAAe,EACf,iBAAiB,GAKlB,EAAE,EAAE;IACH,IAAI,YAAY,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,EAAE,CAAC;QACpD,MAAM,QAAQ,GAAa,EAAE,CAAC;QAC9B,IAAI,YAAY,EAAE,MAAM,EAAE,CAAC;YACzB,QAAQ,CAAC,IAAI,CAAC,wBAAwB,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAClE,CAAC;QACD,IAAI,eAAe,EAAE,MAAM,EAAE,CAAC;YAC5B,QAAQ,CAAC,IAAI,CAAC,2BAA2B,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACxE,CAAC;QACD,MAAM,iBAAiB,GAAG,MAAM,IAAA,uCAAkB,EAAC;YACjD,iBAAiB;YACjB,KAAK,EAAE,qBAAqB;YAC5B,SAAS,EAAE,gBAAgB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;SACnD,CAAC,CAAC;QAEH,IAAI,iBAAiB,CAAC,KAAK,KAAK,OAAO,EAAE,CAAC;YACxC,OAAO,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AA3BW,QAAA,2BAA2B,+BA2BtC"}
|
|
@@ -104,7 +104,7 @@ export declare const prostglesServices: {
|
|
|
104
104
|
readonly WHISPER_DEVICE: "cuda";
|
|
105
105
|
};
|
|
106
106
|
readonly buildArgs: {
|
|
107
|
-
readonly BASE_IMAGE: "nvidia/cuda:12.
|
|
107
|
+
readonly BASE_IMAGE: "nvidia/cuda:12.9.2-cudnn-runtime-ubuntu24.04";
|
|
108
108
|
};
|
|
109
109
|
readonly gpus: "all";
|
|
110
110
|
};
|
|
@@ -386,7 +386,7 @@ export declare const prostglesServices: {
|
|
|
386
386
|
readonly cpu: {
|
|
387
387
|
readonly env: {};
|
|
388
388
|
readonly buildArgs: {
|
|
389
|
-
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.
|
|
389
|
+
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.32.0";
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
392
|
readonly cuda: {
|
|
@@ -397,7 +397,7 @@ export declare const prostglesServices: {
|
|
|
397
397
|
readonly MKL_NUM_THREADS: "4";
|
|
398
398
|
};
|
|
399
399
|
readonly buildArgs: {
|
|
400
|
-
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.
|
|
400
|
+
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.32.0";
|
|
401
401
|
};
|
|
402
402
|
readonly gpus: "all";
|
|
403
403
|
};
|
|
@@ -41,7 +41,7 @@ export declare const initializeServiceManager: (dbs: DBS) => Promise<{
|
|
|
41
41
|
readonly WHISPER_DEVICE: "cuda";
|
|
42
42
|
};
|
|
43
43
|
readonly buildArgs: {
|
|
44
|
-
readonly BASE_IMAGE: "nvidia/cuda:12.
|
|
44
|
+
readonly BASE_IMAGE: "nvidia/cuda:12.9.2-cudnn-runtime-ubuntu24.04";
|
|
45
45
|
};
|
|
46
46
|
readonly gpus: "all";
|
|
47
47
|
};
|
|
@@ -323,7 +323,7 @@ export declare const initializeServiceManager: (dbs: DBS) => Promise<{
|
|
|
323
323
|
readonly cpu: {
|
|
324
324
|
readonly env: {};
|
|
325
325
|
readonly buildArgs: {
|
|
326
|
-
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.
|
|
326
|
+
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.32.0";
|
|
327
327
|
};
|
|
328
328
|
};
|
|
329
329
|
readonly cuda: {
|
|
@@ -334,7 +334,7 @@ export declare const initializeServiceManager: (dbs: DBS) => Promise<{
|
|
|
334
334
|
readonly MKL_NUM_THREADS: "4";
|
|
335
335
|
};
|
|
336
336
|
readonly buildArgs: {
|
|
337
|
-
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.
|
|
337
|
+
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.32.0";
|
|
338
338
|
};
|
|
339
339
|
readonly gpus: "all";
|
|
340
340
|
};
|
|
@@ -15,7 +15,7 @@ export declare const documentsService: {
|
|
|
15
15
|
readonly cpu: {
|
|
16
16
|
readonly env: {};
|
|
17
17
|
readonly buildArgs: {
|
|
18
|
-
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.
|
|
18
|
+
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.32.0";
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
readonly cuda: {
|
|
@@ -26,7 +26,7 @@ export declare const documentsService: {
|
|
|
26
26
|
readonly MKL_NUM_THREADS: "4";
|
|
27
27
|
};
|
|
28
28
|
readonly buildArgs: {
|
|
29
|
-
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.
|
|
29
|
+
readonly BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.32.0";
|
|
30
30
|
};
|
|
31
31
|
readonly gpus: "all";
|
|
32
32
|
};
|
|
@@ -45,7 +45,7 @@ exports.documentsService = {
|
|
|
45
45
|
cpu: {
|
|
46
46
|
env: {},
|
|
47
47
|
buildArgs: {
|
|
48
|
-
BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.
|
|
48
|
+
BASE_IMAGE: "quay.io/docling-project/docling-serve:v1.32.0",
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
cuda: {
|
|
@@ -56,7 +56,7 @@ exports.documentsService = {
|
|
|
56
56
|
MKL_NUM_THREADS: "4",
|
|
57
57
|
},
|
|
58
58
|
buildArgs: {
|
|
59
|
-
BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.
|
|
59
|
+
BASE_IMAGE: "quay.io/docling-project/docling-serve-cu128:v1.32.0",
|
|
60
60
|
},
|
|
61
61
|
gpus: "all",
|
|
62
62
|
},
|
|
@@ -36,7 +36,7 @@ export declare const speechToTextService: {
|
|
|
36
36
|
readonly WHISPER_DEVICE: "cuda";
|
|
37
37
|
};
|
|
38
38
|
readonly buildArgs: {
|
|
39
|
-
readonly BASE_IMAGE: "nvidia/cuda:12.
|
|
39
|
+
readonly BASE_IMAGE: "nvidia/cuda:12.9.2-cudnn-runtime-ubuntu24.04";
|
|
40
40
|
};
|
|
41
41
|
readonly gpus: "all";
|
|
42
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speechToText.service.js","sourceRoot":"","sources":["../../../../../../src/ServiceManager/services/speechToText/speechToText.service.ts"],"names":[],"mappings":";;;AACA,yEAAsE;AAEzD,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,IAAI;IACV,GAAG,EAAE;QACH,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,aAAa;QAC9B,OAAO,EAAE,aAAa;KACvB;IACD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,yDAAyD;YACtE,aAAa,EAAE,OAAO;YACtB,OAAO,EAAE,MAAM,CAAC,WAAW,CACzB;gBACE,SAAS;gBACT,MAAM;gBACN,SAAS;gBACT,MAAM;gBACN,UAAU;gBACV,OAAO;gBACP,WAAW;gBACX,QAAQ;gBACR,UAAU;gBACV,UAAU;gBACV,UAAU;gBACV,OAAO;gBACP,iBAAiB;gBACjB,kBAAkB;gBAClB,iBAAiB;gBACjB,iBAAiB;gBACjB,mBAAmB;gBACnB,gBAAgB;gBAChB,OAAO;aACR,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC;gBACnB,SAAS;gBACT,EAAE,GAAG,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE;aACtC,CAAC,CACH;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,gDAAgD;YAC7D,aAAa,EAAE,KAAK;YACpB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE,GAAG,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE;gBACvC,IAAI,EAAE;oBACJ,GAAG,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE;oBAC/B,SAAS,EAAE;wBACT,UAAU,EAAE
|
|
1
|
+
{"version":3,"file":"speechToText.service.js","sourceRoot":"","sources":["../../../../../../src/Serv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