prostgles-server 4.2.343 → 4.2.345
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/dist/Auth/AuthHandler.d.ts +3 -4
- package/dist/Auth/AuthHandler.d.ts.map +1 -1
- package/dist/Auth/AuthHandler.js +3 -11
- package/dist/Auth/AuthHandler.js.map +1 -1
- package/dist/Auth/AuthTypes.d.ts +8 -7
- package/dist/Auth/AuthTypes.d.ts.map +1 -1
- package/dist/Auth/AuthTypes.js.map +1 -1
- package/dist/Auth/endpoints/setCatchAllRequestHandler.d.ts +2 -2
- package/dist/Auth/endpoints/setCatchAllRequestHandler.d.ts.map +1 -1
- package/dist/Auth/endpoints/setCatchAllRequestHandler.js +4 -3
- package/dist/Auth/endpoints/setCatchAllRequestHandler.js.map +1 -1
- package/dist/Auth/endpoints/setLoginRequestHandler.d.ts +4 -3
- package/dist/Auth/endpoints/setLoginRequestHandler.d.ts.map +1 -1
- package/dist/Auth/endpoints/setLoginRequestHandler.js.map +1 -1
- package/dist/Auth/endpoints/setLogoutRequestHandler.d.ts +2 -2
- package/dist/Auth/endpoints/setLogoutRequestHandler.d.ts.map +1 -1
- package/dist/Auth/endpoints/setLogoutRequestHandler.js.map +1 -1
- package/dist/Auth/endpoints/setMagicLinkOrOTPRequestHandler.d.ts +3 -3
- package/dist/Auth/endpoints/setMagicLinkOrOTPRequestHandler.d.ts.map +1 -1
- package/dist/Auth/endpoints/setMagicLinkOrOTPRequestHandler.js.map +1 -1
- package/dist/Auth/endpoints/setOAuthRequestHandlers.d.ts +3 -3
- package/dist/Auth/endpoints/setOAuthRequestHandlers.d.ts.map +1 -1
- package/dist/Auth/endpoints/setOAuthRequestHandlers.js.map +1 -1
- package/dist/Auth/endpoints/setRegisterRequestHandler.d.ts +1 -1
- package/dist/Auth/endpoints/setRegisterRequestHandler.d.ts.map +1 -1
- package/dist/Auth/endpoints/setRegisterRequestHandler.js.map +1 -1
- package/dist/Auth/getClientAuth.d.ts +3 -3
- package/dist/Auth/getClientAuth.d.ts.map +1 -1
- package/dist/Auth/getClientAuth.js.map +1 -1
- package/dist/Auth/login.d.ts +4 -3
- package/dist/Auth/login.d.ts.map +1 -1
- package/dist/Auth/login.js.map +1 -1
- package/dist/Auth/sendEmail.d.ts +2 -2
- package/dist/Auth/sendEmail.d.ts.map +1 -1
- package/dist/Auth/setupAuthRoutes.d.ts +1 -1
- package/dist/Auth/setupAuthRoutes.d.ts.map +1 -1
- package/dist/Auth/setupAuthRoutes.js.map +1 -1
- package/dist/Auth/utils/getClientRequestIPsInfo.d.ts +2 -2
- package/dist/Auth/utils/getClientRequestIPsInfo.d.ts.map +1 -1
- package/dist/Auth/utils/getReturnUrl.d.ts +1 -1
- package/dist/Auth/utils/getReturnUrl.d.ts.map +1 -1
- package/dist/Auth/utils/getSidAndUserFromRequest.d.ts +2 -2
- package/dist/Auth/utils/getSidAndUserFromRequest.d.ts.map +1 -1
- package/dist/Auth/utils/handleGetUser.d.ts +1 -1
- package/dist/Auth/utils/handleGetUser.d.ts.map +1 -1
- package/dist/Auth/utils/handleGetUser.js.map +1 -1
- package/dist/Auth/utils/matchesRoute.d.ts +2 -0
- package/dist/Auth/utils/matchesRoute.d.ts.map +1 -0
- package/dist/Auth/utils/matchesRoute.js +13 -0
- package/dist/Auth/utils/matchesRoute.js.map +1 -0
- package/dist/Auth/utils/removeExpressRoute.d.ts +1 -1
- package/dist/Auth/utils/removeExpressRoute.d.ts.map +1 -1
- package/dist/Auth/utils/removeExpressRoute.js +2 -2
- package/dist/Auth/utils/removeExpressRoute.js.map +1 -1
- package/dist/Auth/utils/setCookieAndGoToReturnURLIFSet.d.ts.map +1 -1
- package/dist/Auth/utils/setCookieAndGoToReturnURLIFSet.js +2 -1
- package/dist/Auth/utils/setCookieAndGoToReturnURLIFSet.js.map +1 -1
- package/dist/Auth/utils/upsertNamedExpressMiddleware.d.ts +3 -1
- package/dist/Auth/utils/upsertNamedExpressMiddleware.d.ts.map +1 -1
- package/dist/Auth/utils/upsertNamedExpressMiddleware.js +14 -3
- package/dist/Auth/utils/upsertNamedExpressMiddleware.js.map +1 -1
- package/dist/DBEventsManager.d.ts +2 -2
- package/dist/DBEventsManager.d.ts.map +1 -1
- package/dist/DBEventsManager.js.map +1 -1
- package/dist/{DBSchemaBuilder.d.ts → DBSchemaBuilder/DBSchemaBuilder.d.ts} +9 -5
- package/dist/DBSchemaBuilder/DBSchemaBuilder.d.ts.map +1 -0
- package/dist/DBSchemaBuilder/DBSchemaBuilder.js +35 -0
- package/dist/DBSchemaBuilder/DBSchemaBuilder.js.map +1 -0
- package/dist/DBSchemaBuilder/DBSchemaBuilder.spec.d.ts +2 -0
- package/dist/DBSchemaBuilder/DBSchemaBuilder.spec.d.ts.map +1 -0
- package/dist/DBSchemaBuilder/DBSchemaBuilder.spec.js +98 -0
- package/dist/DBSchemaBuilder/DBSchemaBuilder.spec.js.map +1 -0
- package/dist/DBSchemaBuilder/getColumnTypescriptDefinition.d.ts +15 -0
- package/dist/DBSchemaBuilder/getColumnTypescriptDefinition.d.ts.map +1 -0
- package/dist/DBSchemaBuilder/getColumnTypescriptDefinition.js +79 -0
- package/dist/DBSchemaBuilder/getColumnTypescriptDefinition.js.map +1 -0
- package/dist/DboBuilder/DboBuilder.d.ts +9 -8
- package/dist/DboBuilder/DboBuilder.d.ts.map +1 -1
- package/dist/DboBuilder/DboBuilder.js +10 -6
- package/dist/DboBuilder/DboBuilder.js.map +1 -1
- package/dist/DboBuilder/DboBuilderTypes.d.ts +7 -7
- package/dist/DboBuilder/DboBuilderTypes.d.ts.map +1 -1
- package/dist/DboBuilder/QueryBuilder/Functions/COMPUTED_FIELDS.d.ts +3 -0
- package/dist/DboBuilder/QueryBuilder/Functions/COMPUTED_FIELDS.d.ts.map +1 -0
- package/dist/DboBuilder/QueryBuilder/Functions/COMPUTED_FIELDS.js +35 -0
- package/dist/DboBuilder/QueryBuilder/Functions/COMPUTED_FIELDS.js.map +1 -0
- package/dist/DboBuilder/QueryBuilder/{Functions.d.ts → Functions/Functions.d.ts} +1 -8
- package/dist/DboBuilder/QueryBuilder/Functions/Functions.d.ts.map +1 -0
- package/dist/DboBuilder/QueryBuilder/{Functions.js → Functions/Functions.js} +48 -123
- package/dist/DboBuilder/QueryBuilder/Functions/Functions.js.map +1 -0
- package/dist/DboBuilder/QueryBuilder/Functions/parseFunction.d.ts +8 -0
- package/dist/DboBuilder/QueryBuilder/Functions/parseFunction.d.ts.map +1 -0
- package/dist/DboBuilder/QueryBuilder/Functions/parseFunction.js +51 -0
- package/dist/DboBuilder/QueryBuilder/Functions/parseFunction.js.map +1 -0
- package/dist/DboBuilder/QueryBuilder/QueryBuilder.d.ts +5 -6
- package/dist/DboBuilder/QueryBuilder/QueryBuilder.d.ts.map +1 -1
- package/dist/DboBuilder/QueryBuilder/QueryBuilder.js +8 -14
- package/dist/DboBuilder/QueryBuilder/QueryBuilder.js.map +1 -1
- package/dist/DboBuilder/QueryBuilder/getJoinQuery.d.ts +3 -2
- package/dist/DboBuilder/QueryBuilder/getJoinQuery.d.ts.map +1 -1
- package/dist/DboBuilder/QueryBuilder/getJoinQuery.js +4 -4
- package/dist/DboBuilder/QueryBuilder/getJoinQuery.js.map +1 -1
- package/dist/DboBuilder/QueryBuilder/getNewQuery.d.ts +5 -5
- package/dist/DboBuilder/QueryBuilder/getNewQuery.d.ts.map +1 -1
- package/dist/DboBuilder/QueryBuilder/getNewQuery.js +3 -2
- package/dist/DboBuilder/QueryBuilder/getNewQuery.js.map +1 -1
- package/dist/DboBuilder/QueryBuilder/getSelectQuery.d.ts +2 -2
- package/dist/DboBuilder/QueryBuilder/getSelectQuery.d.ts.map +1 -1
- package/dist/DboBuilder/QueryStreamer.d.ts +6 -6
- package/dist/DboBuilder/QueryStreamer.d.ts.map +1 -1
- package/dist/DboBuilder/QueryStreamer.js.map +1 -1
- package/dist/DboBuilder/TableHandler/DataValidator.d.ts +5 -5
- package/dist/DboBuilder/TableHandler/DataValidator.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/DataValidator.js.map +1 -1
- package/dist/DboBuilder/TableHandler/TableHandler.d.ts +8 -7
- package/dist/DboBuilder/TableHandler/TableHandler.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/TableHandler.js +3 -2
- package/dist/DboBuilder/TableHandler/TableHandler.js.map +1 -1
- package/dist/DboBuilder/TableHandler/delete.d.ts +4 -4
- package/dist/DboBuilder/TableHandler/delete.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/delete.js.map +1 -1
- package/dist/DboBuilder/TableHandler/insert/insert.d.ts +4 -4
- package/dist/DboBuilder/TableHandler/insert/insert.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/insert/insert.js +0 -9
- package/dist/DboBuilder/TableHandler/insert/insert.js.map +1 -1
- package/dist/DboBuilder/TableHandler/insert/insertNestedRecords.d.ts +6 -5
- package/dist/DboBuilder/TableHandler/insert/insertNestedRecords.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/insert/insertNestedRecords.js.map +1 -1
- package/dist/DboBuilder/TableHandler/insertTest.d.ts +4 -4
- package/dist/DboBuilder/TableHandler/insertTest.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/insertTest.js.map +1 -1
- package/dist/DboBuilder/TableHandler/onDeleteFromFileTable.d.ts +3 -3
- package/dist/DboBuilder/TableHandler/onDeleteFromFileTable.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/onDeleteFromFileTable.js.map +1 -1
- package/dist/DboBuilder/TableHandler/runInsertUpdateQuery.d.ts +4 -4
- package/dist/DboBuilder/TableHandler/runInsertUpdateQuery.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/runInsertUpdateQuery.js.map +1 -1
- package/dist/DboBuilder/TableHandler/update.d.ts +4 -4
- package/dist/DboBuilder/TableHandler/update.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/update.js.map +1 -1
- package/dist/DboBuilder/TableHandler/updateBatch.d.ts +4 -4
- package/dist/DboBuilder/TableHandler/updateBatch.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/updateBatch.js.map +1 -1
- package/dist/DboBuilder/TableHandler/updateFile.d.ts +4 -4
- package/dist/DboBuilder/TableHandler/updateFile.d.ts.map +1 -1
- package/dist/DboBuilder/TableHandler/updateFile.js.map +1 -1
- package/dist/DboBuilder/TableHandler/upsert.d.ts +4 -4
- package/dist/DboBuilder/TableHandler/upsert.d.ts.map +1 -1
- package/dist/DboBuilder/TableRules/getValidatedRules.d.ts.map +1 -1
- package/dist/DboBuilder/TableRules/getValidatedRules.js +4 -4
- package/dist/DboBuilder/TableRules/getValidatedRules.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/ViewHandler.d.ts +10 -10
- package/dist/DboBuilder/ViewHandler/ViewHandler.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/ViewHandler.js +2 -1
- package/dist/DboBuilder/ViewHandler/ViewHandler.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/count.d.ts +4 -4
- package/dist/DboBuilder/ViewHandler/count.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/find.d.ts +6 -6
- package/dist/DboBuilder/ViewHandler/find.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/find.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/getExistsCondition.d.ts +2 -2
- package/dist/DboBuilder/ViewHandler/getExistsCondition.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/getExistsCondition.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/getExistsFilters.d.ts +2 -2
- package/dist/DboBuilder/ViewHandler/getExistsFilters.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/getExistsFilters.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/getInfo.d.ts +4 -4
- package/dist/DboBuilder/ViewHandler/getInfo.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/getTableJoinQuery.d.ts +1 -1
- package/dist/DboBuilder/ViewHandler/getTableJoinQuery.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/parseComplexFilter.d.ts +2 -2
- package/dist/DboBuilder/ViewHandler/parseComplexFilter.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/parseComplexFilter.js +5 -3
- package/dist/DboBuilder/ViewHandler/parseComplexFilter.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/parseFieldFilter.d.ts +1 -1
- package/dist/DboBuilder/ViewHandler/parseFieldFilter.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/parseFieldFilter.js +10 -5
- package/dist/DboBuilder/ViewHandler/parseFieldFilter.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/parseJoinPath.d.ts +2 -2
- package/dist/DboBuilder/ViewHandler/parseJoinPath.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/parseJoinPath.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/prepareSortItems.d.ts +3 -3
- package/dist/DboBuilder/ViewHandler/prepareSortItems.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/prepareSortItems.js +2 -2
- package/dist/DboBuilder/ViewHandler/prepareSortItems.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/prepareWhere.d.ts +4 -4
- package/dist/DboBuilder/ViewHandler/prepareWhere.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/prepareWhere.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/size.d.ts +4 -4
- package/dist/DboBuilder/ViewHandler/size.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/subscribe.d.ts +4 -4
- package/dist/DboBuilder/ViewHandler/subscribe.d.ts.map +1 -1
- package/dist/DboBuilder/ViewHandler/subscribe.js.map +1 -1
- package/dist/DboBuilder/ViewHandler/validateViewRules.d.ts +3 -3
- package/dist/DboBuilder/ViewHandler/validateViewRules.d.ts.map +1 -1
- package/dist/DboBuilder/dboBuilderUtils.d.ts +6 -13
- package/dist/DboBuilder/dboBuilderUtils.d.ts.map +1 -1
- package/dist/DboBuilder/dboBuilderUtils.js +3 -33
- package/dist/DboBuilder/dboBuilderUtils.js.map +1 -1
- package/dist/DboBuilder/getColumns.d.ts +5 -5
- package/dist/DboBuilder/getColumns.d.ts.map +1 -1
- package/dist/DboBuilder/getColumns.js +1 -1
- package/dist/DboBuilder/getColumns.js.map +1 -1
- package/dist/DboBuilder/getCondition.d.ts +3 -3
- package/dist/DboBuilder/getCondition.d.ts.map +1 -1
- package/dist/DboBuilder/getCondition.js +1 -1
- package/dist/DboBuilder/getCondition.js.map +1 -1
- package/dist/DboBuilder/getSubscribeRelatedTables.d.ts +6 -6
- package/dist/DboBuilder/getSubscribeRelatedTables.d.ts.map +1 -1
- package/dist/DboBuilder/getSubscribeRelatedTables.js.map +1 -1
- package/dist/DboBuilder/parseUpdateRules.d.ts +5 -4
- package/dist/DboBuilder/parseUpdateRules.d.ts.map +1 -1
- package/dist/DboBuilder/parseUpdateRules.js.map +1 -1
- package/dist/DboBuilder/prepareShortestJoinPaths.d.ts +4 -4
- package/dist/DboBuilder/prepareShortestJoinPaths.d.ts.map +1 -1
- package/dist/DboBuilder/prepareShortestJoinPaths.js.map +1 -1
- package/dist/DboBuilder/runSQL.d.ts +5 -5
- package/dist/DboBuilder/runSQL.d.ts.map +1 -1
- package/dist/DboBuilder/runSQL.js +2 -1
- package/dist/DboBuilder/runSQL.js.map +1 -1
- package/dist/DboBuilder/schema/getMaterialViews.d.ts +2 -2
- package/dist/DboBuilder/schema/getMaterialViews.d.ts.map +1 -1
- package/dist/DboBuilder/schema/getTablesForSchemaPostgresSQL.d.ts +3 -3
- package/dist/DboBuilder/schema/getTablesForSchemaPostgresSQL.d.ts.map +1 -1
- package/dist/DboBuilder/schema/getTablesForSchemaPostgresSQL.js +1 -1
- package/dist/DboBuilder/schema/getTablesForSchemaPostgresSQL.js.map +1 -1
- package/dist/DboBuilder/uploadFile.d.ts +4 -4
- package/dist/DboBuilder/uploadFile.d.ts.map +1 -1
- package/dist/DboBuilder/uploadFile.js.map +1 -1
- package/dist/FileManager/FileManager.d.ts +3 -5
- package/dist/FileManager/FileManager.d.ts.map +1 -1
- package/dist/FileManager/FileManager.js +1 -13
- package/dist/FileManager/FileManager.js.map +1 -1
- package/dist/FileManager/getValidatedFileType.d.ts +2 -2
- package/dist/FileManager/getValidatedFileType.d.ts.map +1 -1
- package/dist/FileManager/getValidatedFileType.js.map +1 -1
- package/dist/FileManager/initFileManager.d.ts +2 -2
- package/dist/FileManager/initFileManager.d.ts.map +1 -1
- package/dist/FileManager/initFileManager.js.map +1 -1
- package/dist/FileManager/upload.d.ts +1 -1
- package/dist/FileManager/upload.d.ts.map +1 -1
- package/dist/FileManager/uploadStream.d.ts +1 -1
- package/dist/FileManager/uploadStream.d.ts.map +1 -1
- package/dist/Filtering.d.ts +1 -1
- package/dist/Filtering.d.ts.map +1 -1
- package/dist/Filtering.js.map +1 -1
- package/dist/Logging.d.ts +3 -3
- package/dist/Logging.d.ts.map +1 -1
- package/dist/PostgresNotifListenManager.d.ts +3 -3
- package/dist/PostgresNotifListenManager.d.ts.map +1 -1
- package/dist/Prostgles.d.ts +7 -6
- package/dist/Prostgles.d.ts.map +1 -1
- package/dist/Prostgles.js.map +1 -1
- package/dist/ProstglesTypes.d.ts +17 -16
- package/dist/ProstglesTypes.d.ts.map +1 -1
- package/dist/ProstglesTypes.js.map +1 -1
- package/dist/PubSubManager/PubSubManager.d.ts +8 -7
- package/dist/PubSubManager/PubSubManager.d.ts.map +1 -1
- package/dist/PubSubManager/PubSubManager.js.map +1 -1
- package/dist/PubSubManager/PubSubManagerUtils.d.ts +1 -1
- package/dist/PubSubManager/PubSubManagerUtils.d.ts.map +1 -1
- package/dist/PubSubManager/addSub.d.ts +3 -3
- package/dist/PubSubManager/addSub.d.ts.map +1 -1
- package/dist/PubSubManager/addSync.d.ts +1 -1
- package/dist/PubSubManager/addSync.d.ts.map +1 -1
- package/dist/PubSubManager/addTrigger.d.ts +3 -2
- package/dist/PubSubManager/addTrigger.d.ts.map +1 -1
- package/dist/PubSubManager/addTrigger.js.map +1 -1
- package/dist/PubSubManager/deleteOrphanedTriggers.d.ts +1 -1
- package/dist/PubSubManager/deleteOrphanedTriggers.d.ts.map +1 -1
- package/dist/PubSubManager/getCreatePubSubManagerError.d.ts +1 -1
- package/dist/PubSubManager/getCreatePubSubManagerError.d.ts.map +1 -1
- package/dist/PubSubManager/init/getPubSubManagerInitQuery.d.ts +1 -1
- package/dist/PubSubManager/init/getPubSubManagerInitQuery.d.ts.map +1 -1
- package/dist/PubSubManager/notifListener.d.ts +1 -1
- package/dist/PubSubManager/notifListener.d.ts.map +1 -1
- package/dist/PubSubManager/pushSubData.d.ts +2 -1
- package/dist/PubSubManager/pushSubData.d.ts.map +1 -1
- package/dist/PubSubManager/pushSubData.js.map +1 -1
- package/dist/PublishParser/PublishParser.d.ts +6 -5
- package/dist/PublishParser/PublishParser.d.ts.map +1 -1
- package/dist/PublishParser/PublishParser.js.map +1 -1
- package/dist/PublishParser/getFileTableRules.d.ts +3 -3
- package/dist/PublishParser/getFileTableRules.d.ts.map +1 -1
- package/dist/PublishParser/getFileTableRules.js.map +1 -1
- package/dist/PublishParser/getSchemaFromPublish.d.ts +4 -3
- package/dist/PublishParser/getSchemaFromPublish.d.ts.map +1 -1
- package/dist/PublishParser/getSchemaFromPublish.js.map +1 -1
- package/dist/PublishParser/getTableRulesWithoutFileTable.d.ts +4 -3
- package/dist/PublishParser/getTableRulesWithoutFileTable.d.ts.map +1 -1
- package/dist/PublishParser/getTableRulesWithoutFileTable.js.map +1 -1
- package/dist/PublishParser/publishTypesAndUtils.d.ts +7 -7
- package/dist/PublishParser/publishTypesAndUtils.d.ts.map +1 -1
- package/dist/PublishParser/publishTypesAndUtils.js.map +1 -1
- package/dist/RestApi.d.ts +4 -4
- package/dist/RestApi.d.ts.map +1 -1
- package/dist/SchemaWatch/SchemaWatch.d.ts +1 -1
- package/dist/SchemaWatch/SchemaWatch.d.ts.map +1 -1
- package/dist/SchemaWatch/SchemaWatch.js.map +1 -1
- package/dist/SchemaWatch/getValidatedWatchSchemaType.d.ts +1 -1
- package/dist/SchemaWatch/getValidatedWatchSchemaType.d.ts.map +1 -1
- package/dist/SchemaWatch/getWatchSchemaTagList.d.ts +1 -1
- package/dist/SchemaWatch/getWatchSchemaTagList.d.ts.map +1 -1
- package/dist/SyncReplication.d.ts +2 -2
- package/dist/SyncReplication.d.ts.map +1 -1
- package/dist/SyncReplication.js.map +1 -1
- package/dist/TableConfig/TableConfig.d.ts +5 -5
- package/dist/TableConfig/TableConfig.d.ts.map +1 -1
- package/dist/TableConfig/TableConfig.js.map +1 -1
- package/dist/TableConfig/getColumnConfig.d.ts +3 -0
- package/dist/TableConfig/getColumnConfig.d.ts.map +1 -0
- package/dist/TableConfig/getColumnConfig.js +12 -0
- package/dist/TableConfig/getColumnConfig.js.map +1 -0
- package/dist/TableConfig/getColumnDefinitionQuery.d.ts +3 -3
- package/dist/TableConfig/getColumnDefinitionQuery.d.ts.map +1 -1
- package/dist/TableConfig/getConstraintDefinitionQueries.d.ts +3 -3
- package/dist/TableConfig/getConstraintDefinitionQueries.d.ts.map +1 -1
- package/dist/TableConfig/getFutureTableSchema.d.ts +3 -3
- package/dist/TableConfig/getFutureTableSchema.d.ts.map +1 -1
- package/dist/TableConfig/getFutureTableSchema.js.map +1 -1
- package/dist/TableConfig/getPGIndexes.d.ts +1 -1
- package/dist/TableConfig/getPGIndexes.d.ts.map +1 -1
- package/dist/TableConfig/getTableColumnQueries.d.ts +2 -2
- package/dist/TableConfig/getTableColumnQueries.d.ts.map +1 -1
- package/dist/TableConfig/getTableConfigSchemaQueries.d.ts +1 -1
- package/dist/TableConfig/getTableConfigSchemaQueries.d.ts.map +1 -1
- package/dist/TableConfig/initTableConfig.d.ts +1 -1
- package/dist/TableConfig/initTableConfig.d.ts.map +1 -1
- package/dist/WebsocketAPI/getClientHandlers.d.ts +1 -1
- package/dist/WebsocketAPI/getClientHandlers.d.ts.map +1 -1
- package/dist/WebsocketAPI/getClientSchema.d.ts +1 -1
- package/dist/WebsocketAPI/getClientSchema.d.ts.map +1 -1
- package/dist/WebsocketAPI/onSocketConnected.d.ts +2 -2
- package/dist/WebsocketAPI/onSocketConnected.d.ts.map +1 -1
- package/dist/WebsocketAPI/onSocketConnected.js.map +1 -1
- package/dist/WebsocketAPI/pushSocketSchema.d.ts +1 -1
- package/dist/WebsocketAPI/pushSocketSchema.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/initProstgles.d.ts +6 -5
- package/dist/initProstgles.d.ts.map +1 -1
- package/dist/initProstgles.js +1 -1
- package/dist/initProstgles.js.map +1 -1
- package/dist/runClientRequest.d.ts +4 -3
- package/dist/runClientRequest.d.ts.map +1 -1
- package/dist/runClientRequest.js.map +1 -1
- package/dist/utils/asNameAlias.d.ts +2 -0
- package/dist/utils/asNameAlias.d.ts.map +1 -0
- package/dist/utils/asNameAlias.js +12 -0
- package/dist/utils/asNameAlias.js.map +1 -0
- package/dist/{utils.d.ts → utils/utils.d.ts} +1 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +34 -0
- package/dist/utils/utils.js.map +1 -0
- package/eslint.config.mjs +1 -0
- package/lib/Auth/AuthHandler.ts +6 -11
- package/lib/Auth/AuthTypes.ts +8 -7
- package/lib/Auth/endpoints/setCatchAllRequestHandler.ts +8 -5
- package/lib/Auth/endpoints/setLoginRequestHandler.ts +7 -4
- package/lib/Auth/endpoints/setLogoutRequestHandler.ts +5 -3
- package/lib/Auth/endpoints/setMagicLinkOrOTPRequestHandler.ts +8 -6
- package/lib/Auth/endpoints/setOAuthRequestHandlers.ts +6 -5
- package/lib/Auth/endpoints/setRegisterRequestHandler.ts +3 -2
- package/lib/Auth/getClientAuth.ts +8 -5
- package/lib/Auth/login.ts +6 -4
- package/lib/Auth/sendEmail.ts +2 -2
- package/lib/Auth/setupAuthRoutes.ts +3 -2
- package/lib/Auth/utils/getClientRequestIPsInfo.ts +2 -2
- package/lib/Auth/utils/getReturnUrl.ts +1 -1
- package/lib/Auth/utils/getSidAndUserFromRequest.ts +2 -2
- package/lib/Auth/utils/handleGetUser.ts +3 -2
- package/lib/Auth/utils/matchesRoute.ts +6 -0
- package/lib/Auth/utils/removeExpressRoute.ts +2 -2
- package/lib/Auth/utils/setCookieAndGoToReturnURLIFSet.ts +2 -7
- package/lib/Auth/utils/upsertNamedExpressMiddleware.ts +13 -2
- package/lib/DBEventsManager.ts +4 -3
- package/lib/DBSchemaBuilder/DBSchemaBuilder.spec.ts +128 -0
- package/lib/DBSchemaBuilder/DBSchemaBuilder.ts +100 -0
- package/lib/DBSchemaBuilder/getColumnTypescriptDefinition.ts +117 -0
- package/lib/DboBuilder/DboBuilder.ts +20 -15
- package/lib/DboBuilder/DboBuilderTypes.ts +7 -7
- package/lib/DboBuilder/QueryBuilder/Functions/COMPUTED_FIELDS.ts +35 -0
- package/lib/DboBuilder/QueryBuilder/{Functions.ts → Functions/Functions.ts} +7 -103
- package/lib/DboBuilder/QueryBuilder/Functions/parseFunction.ts +65 -0
- package/lib/DboBuilder/QueryBuilder/QueryBuilder.ts +9 -15
- package/lib/DboBuilder/QueryBuilder/getJoinQuery.ts +6 -9
- package/lib/DboBuilder/QueryBuilder/getNewQuery.ts +10 -10
- package/lib/DboBuilder/QueryBuilder/getSelectQuery.ts +2 -2
- package/lib/DboBuilder/QueryStreamer.ts +10 -9
- package/lib/DboBuilder/TableHandler/DataValidator.ts +8 -6
- package/lib/DboBuilder/TableHandler/TableHandler.ts +12 -16
- package/lib/DboBuilder/TableHandler/delete.ts +7 -6
- package/lib/DboBuilder/TableHandler/insert/insert.ts +6 -14
- package/lib/DboBuilder/TableHandler/insert/insertNestedRecords.ts +7 -6
- package/lib/DboBuilder/TableHandler/insertTest.ts +6 -4
- package/lib/DboBuilder/TableHandler/onDeleteFromFileTable.ts +5 -3
- package/lib/DboBuilder/TableHandler/runInsertUpdateQuery.ts +7 -4
- package/lib/DboBuilder/TableHandler/update.ts +6 -5
- package/lib/DboBuilder/TableHandler/updateBatch.ts +6 -5
- package/lib/DboBuilder/TableHandler/updateFile.ts +5 -4
- package/lib/DboBuilder/TableHandler/upsert.ts +4 -4
- package/lib/DboBuilder/TableRules/getValidatedRules.ts +4 -3
- package/lib/DboBuilder/ViewHandler/ViewHandler.ts +14 -20
- package/lib/DboBuilder/ViewHandler/count.ts +4 -4
- package/lib/DboBuilder/ViewHandler/find.ts +9 -7
- package/lib/DboBuilder/ViewHandler/getExistsCondition.ts +6 -5
- package/lib/DboBuilder/ViewHandler/getExistsFilters.ts +4 -3
- package/lib/DboBuilder/ViewHandler/getInfo.ts +4 -4
- package/lib/DboBuilder/ViewHandler/getTableJoinQuery.ts +1 -1
- package/lib/DboBuilder/ViewHandler/parseComplexFilter.ts +7 -4
- package/lib/DboBuilder/ViewHandler/parseFieldFilter.ts +19 -6
- package/lib/DboBuilder/ViewHandler/parseJoinPath.ts +4 -3
- package/lib/DboBuilder/ViewHandler/prepareSortItems.ts +4 -3
- package/lib/DboBuilder/ViewHandler/prepareWhere.ts +5 -4
- package/lib/DboBuilder/ViewHandler/size.ts +4 -4
- package/lib/DboBuilder/ViewHandler/subscribe.ts +8 -7
- package/lib/DboBuilder/ViewHandler/validateViewRules.ts +3 -3
- package/lib/DboBuilder/dboBuilderUtils.ts +9 -46
- package/lib/DboBuilder/getColumns.ts +9 -12
- package/lib/DboBuilder/getCondition.ts +6 -5
- package/lib/DboBuilder/getSubscribeRelatedTables.ts +11 -9
- package/lib/DboBuilder/parseUpdateRules.ts +7 -5
- package/lib/DboBuilder/prepareShortestJoinPaths.ts +7 -5
- package/lib/DboBuilder/runSQL.ts +10 -6
- package/lib/DboBuilder/schema/getMaterialViews.ts +2 -2
- package/lib/DboBuilder/schema/getTablesForSchemaPostgresSQL.ts +5 -5
- package/lib/DboBuilder/uploadFile.ts +5 -4
- package/lib/FileManager/FileManager.ts +6 -22
- package/lib/FileManager/getValidatedFileType.ts +4 -2
- package/lib/FileManager/initFileManager.ts +4 -3
- package/lib/FileManager/upload.ts +1 -1
- package/lib/FileManager/uploadStream.ts +1 -1
- package/lib/Filtering.ts +3 -2
- package/lib/Logging.ts +3 -3
- package/lib/PostgresNotifListenManager.ts +3 -3
- package/lib/Prostgles.ts +8 -6
- package/lib/ProstglesTypes.ts +20 -19
- package/lib/PubSubManager/PubSubManager.ts +11 -9
- package/lib/PubSubManager/PubSubManagerUtils.ts +1 -1
- package/lib/PubSubManager/addSub.ts +3 -3
- package/lib/PubSubManager/addSync.ts +1 -1
- package/lib/PubSubManager/addTrigger.ts +3 -2
- package/lib/PubSubManager/deleteOrphanedTriggers.ts +1 -1
- package/lib/PubSubManager/getCreatePubSubManagerError.ts +1 -1
- package/lib/PubSubManager/init/getPubSubManagerInitQuery.ts +1 -1
- package/lib/PubSubManager/notifListener.ts +1 -1
- package/lib/PubSubManager/pushSubData.ts +3 -2
- package/lib/PublishParser/PublishParser.ts +10 -8
- package/lib/PublishParser/getFileTableRules.ts +5 -4
- package/lib/PublishParser/getSchemaFromPublish.ts +8 -6
- package/lib/PublishParser/getTableRulesWithoutFileTable.ts +9 -8
- package/lib/PublishParser/publishTypesAndUtils.ts +11 -11
- package/lib/RestApi.ts +4 -4
- package/lib/SchemaWatch/SchemaWatch.ts +2 -1
- package/lib/SchemaWatch/getValidatedWatchSchemaType.ts +1 -1
- package/lib/SchemaWatch/getWatchSchemaTagList.ts +1 -1
- package/lib/SyncReplication.ts +4 -3
- package/lib/TableConfig/TableConfig.ts +8 -7
- package/lib/TableConfig/getColumnConfig.ts +13 -0
- package/lib/TableConfig/getColumnDefinitionQuery.ts +3 -3
- package/lib/TableConfig/getConstraintDefinitionQueries.ts +3 -3
- package/lib/TableConfig/getFutureTableSchema.ts +5 -3
- package/lib/TableConfig/getPGIndexes.ts +1 -1
- package/lib/TableConfig/getTableColumnQueries.ts +2 -2
- package/lib/TableConfig/getTableConfigSchemaQueries.ts +1 -1
- package/lib/TableConfig/initTableConfig.ts +1 -1
- package/lib/WebsocketAPI/getClientHandlers.ts +1 -1
- package/lib/WebsocketAPI/getClientSchema.ts +1 -1
- package/lib/WebsocketAPI/onSocketConnected.ts +4 -3
- package/lib/WebsocketAPI/pushSocketSchema.ts +1 -1
- package/lib/index.ts +2 -2
- package/lib/initProstgles.ts +8 -6
- package/lib/runClientRequest.ts +9 -7
- package/lib/typeTests/dboTypeCheck.ts +4 -4
- package/lib/utils/asNameAlias.ts +7 -0
- package/lib/utils/utils.ts +27 -0
- package/package.json +5 -3
- package/dist/DBSchemaBuilder.d.ts.map +0 -1
- package/dist/DBSchemaBuilder.js +0 -170
- package/dist/DBSchemaBuilder.js.map +0 -1
- package/dist/DboBuilder/QueryBuilder/Functions.d.ts.map +0 -1
- package/dist/DboBuilder/QueryBuilder/Functions.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -19
- package/dist/utils.js.map +0 -1
- package/lib/DBSchemaBuilder.ts +0 -267
- package/lib/utils.ts +0 -14
package/lib/ProstglesTypes.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { FileColumnConfig } from "prostgles-types";
|
|
2
|
-
import { AuthConfig, AuthRequestParams, SessionUser } from "./Auth/AuthTypes";
|
|
3
|
-
import { EventTriggerTagFilter } from "./Event_Trigger_Tags";
|
|
4
|
-
import { CloudClient, ImageOptions, LocalConfig } from "./FileManager/FileManager";
|
|
5
|
-
import { DbConnection, OnReadyCallback } from "./initProstgles";
|
|
6
|
-
import { EventInfo } from "./Logging";
|
|
7
|
-
import { ExpressApp, RestApiConfig } from "./RestApi";
|
|
8
|
-
import { OnSchemaChangeCallback } from "./SchemaWatch/SchemaWatch";
|
|
9
|
-
import { ColConstraint } from "./TableConfig/getConstraintDefinitionQueries";
|
|
10
|
-
import { TableConfig } from "./TableConfig/TableConfig";
|
|
11
|
-
import { Express } from "express";
|
|
12
|
-
|
|
13
|
-
import { PRGLIOSocket } from "./DboBuilder/DboBuilder";
|
|
14
|
-
|
|
15
|
-
import pgPromise from "pg-promise";
|
|
16
|
-
import pg from "pg-promise/typescript/pg-subset";
|
|
17
|
-
import { AnyObject } from "prostgles-types";
|
|
1
|
+
import type { FileColumnConfig } from "prostgles-types";
|
|
2
|
+
import type { AuthConfig, AuthRequestParams, SessionUser } from "./Auth/AuthTypes";
|
|
3
|
+
import type { EventTriggerTagFilter } from "./Event_Trigger_Tags";
|
|
4
|
+
import type { CloudClient, ImageOptions, LocalConfig } from "./FileManager/FileManager";
|
|
5
|
+
import type { DbConnection, OnReadyCallback } from "./initProstgles";
|
|
6
|
+
import type { EventInfo } from "./Logging";
|
|
7
|
+
import type { ExpressApp, RestApiConfig } from "./RestApi";
|
|
8
|
+
import type { OnSchemaChangeCallback } from "./SchemaWatch/SchemaWatch";
|
|
9
|
+
import type { ColConstraint } from "./TableConfig/getConstraintDefinitionQueries";
|
|
10
|
+
import type { TableConfig } from "./TableConfig/TableConfig";
|
|
11
|
+
import type { Express } from "express";
|
|
12
|
+
|
|
13
|
+
import type { PRGLIOSocket } from "./DboBuilder/DboBuilder";
|
|
14
|
+
|
|
15
|
+
import type pgPromise from "pg-promise";
|
|
16
|
+
import type pg from "pg-promise/typescript/pg-subset";
|
|
17
|
+
import type { AnyObject } from "prostgles-types";
|
|
18
18
|
import type { Server } from "socket.io";
|
|
19
|
-
import {
|
|
19
|
+
import type {
|
|
20
20
|
Awaitable,
|
|
21
21
|
Publish,
|
|
22
22
|
PublishMethods,
|
|
23
|
-
PublishParams
|
|
23
|
+
PublishParams} from "./PublishParser/PublishParser";
|
|
24
|
+
import {
|
|
24
25
|
type PublishMethodsV2,
|
|
25
26
|
} from "./PublishParser/PublishParser";
|
|
26
27
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* Licensed under the MIT License. See LICENSE in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import type {
|
|
7
7
|
DBHandlerServer,
|
|
8
8
|
DboBuilder,
|
|
9
9
|
PRGLIOSocket,
|
|
10
10
|
TableInfo,
|
|
11
11
|
TableOrViewInfo,
|
|
12
12
|
} from "../DboBuilder/DboBuilder";
|
|
13
|
-
import { PostgresNotifListenManager } from "../PostgresNotifListenManager";
|
|
14
|
-
import { DB } from "../Prostgles";
|
|
13
|
+
import type { PostgresNotifListenManager } from "../PostgresNotifListenManager";
|
|
14
|
+
import type { DB } from "../Prostgles";
|
|
15
15
|
import { addSync } from "./addSync";
|
|
16
16
|
import { addTrigger, type AddTriggerParams } from "./addTrigger";
|
|
17
17
|
import { deleteOrphanedTriggers } from "./deleteOrphanedTriggers";
|
|
@@ -19,19 +19,21 @@ import { initPubSubManager } from "./init/initPubSubManager";
|
|
|
19
19
|
import { initialiseEventTriggers } from "./initialiseEventTriggers";
|
|
20
20
|
import { refreshTriggers } from "./refreshTriggers";
|
|
21
21
|
|
|
22
|
-
import {
|
|
22
|
+
import type {
|
|
23
23
|
AnyObject,
|
|
24
|
-
CHANNELS,
|
|
25
24
|
FieldFilter,
|
|
26
25
|
SelectParams,
|
|
27
|
-
WAL
|
|
26
|
+
WAL} from "prostgles-types";
|
|
27
|
+
import {
|
|
28
|
+
CHANNELS,
|
|
28
29
|
type SubscribeOptions,
|
|
29
30
|
} from "prostgles-types";
|
|
30
31
|
|
|
31
32
|
import { find, pickKeys } from "prostgles-types";
|
|
32
|
-
import { LocalFuncs
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
33
|
+
import type { LocalFuncs} from "../DboBuilder/ViewHandler/subscribe";
|
|
34
|
+
import { getOnDataFunc, matchesLocalFuncs } from "../DboBuilder/ViewHandler/subscribe";
|
|
35
|
+
import type { EventTypes } from "../Logging";
|
|
36
|
+
import type { ParsedTableRule } from "../PublishParser/PublishParser";
|
|
35
37
|
import { syncData } from "../SyncReplication";
|
|
36
38
|
import { addSub } from "./addSub";
|
|
37
39
|
import { notifListener } from "./notifListener";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SubscriptionChannels } from "prostgles-types";
|
|
2
|
-
import { VoidFunction } from "../SchemaWatch/SchemaWatch";
|
|
1
|
+
import type { SubscriptionChannels } from "prostgles-types";
|
|
2
|
+
import type { VoidFunction } from "../SchemaWatch/SchemaWatch";
|
|
3
3
|
import { tout } from "./init/initPubSubManager";
|
|
4
|
-
import { BasicCallback, PubSubManager, Subscription, SubscriptionParams } from "./PubSubManager";
|
|
4
|
+
import type { BasicCallback, PubSubManager, Subscription, SubscriptionParams } from "./PubSubManager";
|
|
5
5
|
import { parseCondition } from "./PubSubManagerUtils";
|
|
6
6
|
import type { AddTriggerParams } from "./addTrigger";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { find, tryCatchV2 } from "prostgles-types";
|
|
2
|
-
import { AddSyncParams, BasicCallback, PubSubManager } from "./PubSubManager";
|
|
2
|
+
import type { AddSyncParams, BasicCallback, PubSubManager } from "./PubSubManager";
|
|
3
3
|
import { DEFAULT_SYNC_BATCH_SIZE, parseCondition } from "./PubSubManagerUtils";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { asName, pickKeys, tryCatchV2 } from "prostgles-types";
|
|
2
|
-
import
|
|
2
|
+
import type { ViewSubscriptionOptions } from "./PubSubManager";
|
|
3
|
+
import { type PubSubManager } from "./PubSubManager";
|
|
3
4
|
import * as crypto from "crypto";
|
|
4
|
-
import { PRGLIOSocket } from "../DboBuilder/DboBuilderTypes";
|
|
5
|
+
import type { PRGLIOSocket } from "../DboBuilder/DboBuilderTypes";
|
|
5
6
|
import { asValue, EXCLUDE_QUERY_FROM_SCHEMA_WATCH_ID } from "./PubSubManagerUtils";
|
|
6
7
|
import { udtNamesWithoutEqualityComparison } from "./init/getDataWatchFunctionQuery";
|
|
7
8
|
import type { TableHandler } from "../DboBuilder/TableHandler/TableHandler";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PubSubManager } from "./PubSubManager";
|
|
1
|
+
import type { PubSubManager } from "./PubSubManager";
|
|
2
2
|
import { asValue, EXCLUDE_QUERY_FROM_SCHEMA_WATCH_ID, log } from "./PubSubManagerUtils";
|
|
3
3
|
|
|
4
4
|
export function deleteOrphanedTriggers(this: PubSubManager, tableNames: string[]) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tryCatch, tryCatchV2 } from "prostgles-types";
|
|
2
2
|
import { getPubSubManagerInitQuery } from "./init/getPubSubManagerInitQuery";
|
|
3
3
|
import { getCanExecute } from "../DboBuilder/dboBuilderUtils";
|
|
4
|
-
import { DboBuilder } from "../DboBuilder/DboBuilder";
|
|
4
|
+
import type { DboBuilder } from "../DboBuilder/DboBuilder";
|
|
5
5
|
|
|
6
6
|
export const getCreatePubSubManagerError = async (
|
|
7
7
|
dboBuilder: DboBuilder
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { includes, pickKeys } from "prostgles-types";
|
|
2
2
|
import { parseFieldFilter } from "../DboBuilder/ViewHandler/parseFieldFilter";
|
|
3
|
-
import { PubSubManager } from "./PubSubManager";
|
|
3
|
+
import type { PubSubManager } from "./PubSubManager";
|
|
4
4
|
import { DELIMITER, log, NOTIF_TYPE, type NotifTypeName } from "./PubSubManagerUtils";
|
|
5
5
|
|
|
6
6
|
/* Relay relevant data to relevant subscriptions */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { parseLocalFuncs } from "../DboBuilder/ViewHandler/subscribe";
|
|
2
|
-
import { EventTypes } from "../Logging";
|
|
3
|
-
import
|
|
2
|
+
import type { EventTypes } from "../Logging";
|
|
3
|
+
import type { Subscription } from "./PubSubManager";
|
|
4
|
+
import { type PubSubManager } from "./PubSubManager";
|
|
4
5
|
import { log } from "./PubSubManagerUtils";
|
|
5
6
|
|
|
6
7
|
export async function pushSubData(this: PubSubManager, sub: Subscription, err?: any) {
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { Method
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import type { Method} from "prostgles-types";
|
|
2
|
+
import { getObjectEntries, isObject } from "prostgles-types";
|
|
3
|
+
import type { AuthClientRequest, AuthResultWithSID, SessionUser } from "../Auth/AuthTypes";
|
|
4
|
+
import type { DBOFullyTyped } from "../DBSchemaBuilder/DBSchemaBuilder";
|
|
5
|
+
import type { DB, DBHandlerServer, Prostgles } from "../Prostgles";
|
|
6
|
+
import type { ProstglesInitOptions } from "../ProstglesTypes";
|
|
7
|
+
import type { VoidFunction } from "../SchemaWatch/SchemaWatch";
|
|
7
8
|
import { getClientHandlers } from "../WebsocketAPI/getClientHandlers";
|
|
8
9
|
import { getFileTableRules } from "./getFileTableRules";
|
|
9
10
|
import { getSchemaFromPublish } from "./getSchemaFromPublish";
|
|
10
11
|
import { getTableRulesWithoutFileTable } from "./getTableRulesWithoutFileTable";
|
|
11
|
-
import {
|
|
12
|
+
import type {
|
|
12
13
|
DboTable,
|
|
13
14
|
DboTableCommand,
|
|
14
15
|
ParsedTableRule,
|
|
15
16
|
PublishMethods,
|
|
16
|
-
PublishParams
|
|
17
|
+
PublishParams} from "./publishTypesAndUtils";
|
|
18
|
+
import {
|
|
17
19
|
RULE_TO_METHODS,
|
|
18
20
|
parsePublishTableRule,
|
|
19
21
|
type PublishMethodsV2,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AnyObject, FullFilter
|
|
2
|
-
import {
|
|
1
|
+
import type { AnyObject, FullFilter} from "prostgles-types";
|
|
2
|
+
import { includes, isDefined } from "prostgles-types";
|
|
3
|
+
import type { AuthClientRequest, AuthResultWithSID } from "../Auth/AuthTypes";
|
|
3
4
|
import { parseFieldFilter } from "../DboBuilder/ViewHandler/parseFieldFilter";
|
|
4
|
-
import { PublishParser } from "./PublishParser";
|
|
5
|
-
import { ParsedPublishTable, UpdateRule } from "./publishTypesAndUtils";
|
|
5
|
+
import type { PublishParser } from "./PublishParser";
|
|
6
|
+
import type { ParsedPublishTable, UpdateRule } from "./publishTypesAndUtils";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Permissions for referencedTables columns are propagated to the file table (even if file table has no permissions)
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
DBSchemaTable,
|
|
3
|
+
TableInfo,
|
|
4
|
+
TableSchemaErrors,
|
|
5
|
+
TableSchemaForClient} from "prostgles-types";
|
|
6
|
+
import {
|
|
3
7
|
getKeys,
|
|
4
8
|
includes,
|
|
5
9
|
isEmpty,
|
|
6
10
|
isObject,
|
|
7
11
|
pickKeys,
|
|
8
|
-
TableInfo,
|
|
9
|
-
TableSchemaErrors,
|
|
10
|
-
TableSchemaForClient,
|
|
11
12
|
type AnyObject,
|
|
12
13
|
} from "prostgles-types";
|
|
13
|
-
import { AuthClientRequest, AuthResultWithSID } from "../Auth/AuthTypes";
|
|
14
|
+
import type { AuthClientRequest, AuthResultWithSID } from "../Auth/AuthTypes";
|
|
14
15
|
import { getErrorAsObject } from "../DboBuilder/DboBuilder";
|
|
15
16
|
import type { TableHandler } from "../DboBuilder/TableHandler/TableHandler";
|
|
16
17
|
import { TABLE_METHODS } from "../Prostgles";
|
|
17
|
-
import
|
|
18
|
+
import type { PublishParser } from "./PublishParser";
|
|
19
|
+
import { type PermissionScope, type PublishObject } from "./PublishParser";
|
|
18
20
|
|
|
19
21
|
type Args = AuthClientRequest & {
|
|
20
22
|
userData: AuthResultWithSID | undefined;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { getKeys, isObject } from "prostgles-types";
|
|
2
|
-
import { AuthResultWithSID } from "../Auth/AuthTypes";
|
|
3
|
-
import { TableHandler } from "../DboBuilder/TableHandler/TableHandler";
|
|
4
|
-
import { ViewHandler } from "../DboBuilder/ViewHandler/ViewHandler";
|
|
2
|
+
import type { AuthResultWithSID } from "../Auth/AuthTypes";
|
|
3
|
+
import type { TableHandler } from "../DboBuilder/TableHandler/TableHandler";
|
|
4
|
+
import type { ViewHandler } from "../DboBuilder/ViewHandler/ViewHandler";
|
|
5
5
|
import { DEFAULT_SYNC_BATCH_SIZE } from "../PubSubManager/PubSubManagerUtils";
|
|
6
|
-
import { PublishParser } from "./PublishParser";
|
|
7
|
-
import {
|
|
6
|
+
import type { PublishParser } from "./PublishParser";
|
|
7
|
+
import type {
|
|
8
8
|
DboTable,
|
|
9
9
|
ParsedPublishTable,
|
|
10
|
-
type PublishObject,
|
|
11
10
|
PublishTableRule,
|
|
12
11
|
PublishViewRule,
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
SubscribeRule} from "./publishTypesAndUtils";
|
|
13
|
+
import {
|
|
14
|
+
type PublishObject,
|
|
15
|
+
RULE_TO_METHODS
|
|
15
16
|
} from "./publishTypesAndUtils";
|
|
16
17
|
|
|
17
18
|
export async function getTableRulesWithoutFileTable(
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AnyObject,
|
|
3
|
-
DBSchema,
|
|
4
|
-
FullFilter,
|
|
5
|
-
Method,
|
|
6
2
|
RULE_METHODS,
|
|
7
|
-
TableInfo,
|
|
8
3
|
type MethodFullDef,
|
|
9
4
|
} from "prostgles-types";
|
|
10
|
-
import type { DBOFullyTyped, PublishFullyTyped } from "../DBSchemaBuilder";
|
|
11
|
-
import { CommonTableRules, Filter, LocalParams, TableOrViewInfo } from "../DboBuilder/DboBuilder";
|
|
12
|
-
import { DB, DBHandlerServer } from "../Prostgles";
|
|
5
|
+
import type { DBOFullyTyped, PublishFullyTyped } from "../DBSchemaBuilder/DBSchemaBuilder";
|
|
6
|
+
import type { CommonTableRules, Filter, LocalParams, TableOrViewInfo } from "../DboBuilder/DboBuilder";
|
|
7
|
+
import type { DB, DBHandlerServer } from "../Prostgles";
|
|
13
8
|
|
|
14
9
|
export type PublishMethods<S = void, SUser extends SessionUser = SessionUser> = (
|
|
15
10
|
params: PublishParams<S, SUser>
|
|
@@ -148,9 +143,14 @@ export const RULE_TO_METHODS = [
|
|
|
148
143
|
},
|
|
149
144
|
] as const;
|
|
150
145
|
|
|
151
|
-
import { FieldFilter, SelectParams
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
import type { FieldFilter, SelectParams ,
|
|
147
|
+
AnyObject,
|
|
148
|
+
DBSchema,
|
|
149
|
+
FullFilter,
|
|
150
|
+
Method,
|
|
151
|
+
TableInfo} from "prostgles-types";
|
|
152
|
+
import type { AuthClientRequest, SessionUser } from "../Auth/AuthTypes";
|
|
153
|
+
import type { TableSchemaColumn } from "../DboBuilder/DboBuilderTypes";
|
|
154
154
|
import type { ClientHandlers } from "../WebsocketAPI/getClientHandlers";
|
|
155
155
|
|
|
156
156
|
export type InsertRequestData = {
|
package/lib/RestApi.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Express } from "express";
|
|
1
|
+
import type { Express } from "express";
|
|
2
2
|
import { HTTP_FAIL_CODES, removeExpressRoute } from "./Auth/AuthHandler";
|
|
3
|
-
import { ExpressReq, ExpressRes } from "./Auth/AuthTypes";
|
|
3
|
+
import type { ExpressReq, ExpressRes } from "./Auth/AuthTypes";
|
|
4
4
|
import { getSerializedClientErrorFromPGError } from "./DboBuilder/DboBuilder";
|
|
5
|
-
import { Prostgles } from "./Prostgles";
|
|
5
|
+
import type { Prostgles } from "./Prostgles";
|
|
6
6
|
import { runClientMethod, runClientRequest, runClientSqlRequest } from "./runClientRequest";
|
|
7
|
-
import { VoidFunction } from "./SchemaWatch/SchemaWatch";
|
|
7
|
+
import type { VoidFunction } from "./SchemaWatch/SchemaWatch";
|
|
8
8
|
import { isDefined } from "prostgles-types";
|
|
9
9
|
|
|
10
10
|
type ExpressInternalRouter = {
|
|
@@ -2,8 +2,9 @@ import type { DboBuilder } from "../DboBuilder/DboBuilder";
|
|
|
2
2
|
import { EVENT_TRIGGER_TAGS } from "../Event_Trigger_Tags";
|
|
3
3
|
import type { OnReadyCallbackBasic } from "../initProstgles";
|
|
4
4
|
import { EXCLUDE_QUERY_FROM_SCHEMA_WATCH_ID, log } from "../PubSubManager/PubSubManagerUtils";
|
|
5
|
+
import type {
|
|
6
|
+
ValidatedWatchSchemaType} from "./getValidatedWatchSchemaType";
|
|
5
7
|
import {
|
|
6
|
-
ValidatedWatchSchemaType,
|
|
7
8
|
getValidatedWatchSchemaType,
|
|
8
9
|
} from "./getValidatedWatchSchemaType";
|
|
9
10
|
const COMMAND_FIRST_KEYWORDS = EVENT_TRIGGER_TAGS.map((tag) => tag.split(" ")[0]!).filter(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getKeys, isObject } from "prostgles-types";
|
|
2
2
|
import { EVENT_TRIGGER_TAGS } from "../Event_Trigger_Tags";
|
|
3
|
-
import { ProstglesInitOptions } from "../ProstglesTypes";
|
|
3
|
+
import type { ProstglesInitOptions } from "../ProstglesTypes";
|
|
4
4
|
|
|
5
5
|
export const getWatchSchemaTagList = (
|
|
6
6
|
watchSchema: ProstglesInitOptions["watchSchema"],
|
package/lib/SyncReplication.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AnyObject, OrderBy, SyncBatchParams
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { AnyObject, OrderBy, SyncBatchParams} from "prostgles-types";
|
|
2
|
+
import { WAL, omitKeys, pickKeys } from "prostgles-types";
|
|
3
|
+
import type { TableHandler } from "./DboBuilder/TableHandler/TableHandler";
|
|
4
|
+
import type { PubSubManager, SyncParams } from "./PubSubManager/PubSubManager";
|
|
4
5
|
import { log } from "./PubSubManager/PubSubManagerUtils";
|
|
5
6
|
|
|
6
7
|
export type ClientSyncInfo = Partial<{
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
ALLOWED_CONTENT_TYPE,
|
|
3
3
|
ALLOWED_EXTENSION,
|
|
4
4
|
AnyObject,
|
|
5
5
|
ColumnInfo,
|
|
6
|
-
isObject,
|
|
7
6
|
JSONB,
|
|
8
|
-
TableInfo
|
|
7
|
+
TableInfo} from "prostgles-types";
|
|
8
|
+
import {
|
|
9
|
+
isObject
|
|
9
10
|
} from "prostgles-types";
|
|
10
|
-
import { JoinInfo, LocalParams } from "../DboBuilder/DboBuilder";
|
|
11
|
-
import { TableHandler } from "../DboBuilder/TableHandler/TableHandler";
|
|
11
|
+
import type { JoinInfo, LocalParams } from "../DboBuilder/DboBuilder";
|
|
12
|
+
import type { TableHandler } from "../DboBuilder/TableHandler/TableHandler";
|
|
12
13
|
import { uploadFile } from "../DboBuilder/uploadFile";
|
|
13
|
-
import { DB, DBHandlerServer, Prostgles } from "../Prostgles";
|
|
14
|
-
import { InsertRule, ValidateRowArgs } from "../PublishParser/PublishParser";
|
|
14
|
+
import type { DB, DBHandlerServer, Prostgles } from "../Prostgles";
|
|
15
|
+
import type { InsertRule, ValidateRowArgs } from "../PublishParser/PublishParser";
|
|
15
16
|
import { initTableConfig } from "./initTableConfig";
|
|
16
17
|
|
|
17
18
|
type ColExtraInfo = {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ColumnConfig, TableConfig } from "../TableConfig/TableConfig";
|
|
2
|
+
|
|
3
|
+
export const getColumnConfig = (
|
|
4
|
+
config: TableConfig,
|
|
5
|
+
tableName: string,
|
|
6
|
+
colName: string
|
|
7
|
+
): ColumnConfig | undefined => {
|
|
8
|
+
const tconf = config[tableName];
|
|
9
|
+
if (tconf && "columns" in tconf) {
|
|
10
|
+
return tconf.columns?.[colName];
|
|
11
|
+
}
|
|
12
|
+
return undefined;
|
|
13
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { asName, pickKeys } from "prostgles-types";
|
|
2
|
-
import { DB } from "../Prostgles";
|
|
2
|
+
import type { DB } from "../Prostgles";
|
|
3
3
|
import { asValue } from "../PubSubManager/PubSubManagerUtils";
|
|
4
4
|
import { VALIDATE_SCHEMA_FUNCNAME } from "../JSONBSchemaValidation/validateJSONBSchemaSQL";
|
|
5
|
-
import { BaseColumnTypes, ColumnConfig } from "./TableConfig";
|
|
6
|
-
import pgPromise from "pg-promise";
|
|
5
|
+
import type { BaseColumnTypes, ColumnConfig } from "./TableConfig";
|
|
6
|
+
import type pgPromise from "pg-promise";
|
|
7
7
|
|
|
8
8
|
type Args = {
|
|
9
9
|
column: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import pgPromise from "pg-promise";
|
|
1
|
+
import type pgPromise from "pg-promise";
|
|
2
2
|
import { asName } from "prostgles-types";
|
|
3
|
-
import { DB } from "../Prostgles";
|
|
3
|
+
import type { DB } from "../Prostgles";
|
|
4
4
|
import { asValue } from "../PubSubManager/PubSubManagerUtils";
|
|
5
|
-
import { TableConfig } from "./TableConfig";
|
|
5
|
+
import type { TableConfig } from "./TableConfig";
|
|
6
6
|
|
|
7
7
|
type Args = {
|
|
8
8
|
tableName: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { asName } from "prostgles-types";
|
|
2
2
|
import { pgp } from "../DboBuilder/DboBuilder";
|
|
3
|
-
import { DB } from "../Prostgles";
|
|
4
|
-
import { ColumnMinimalInfo
|
|
5
|
-
import {
|
|
3
|
+
import type { DB } from "../Prostgles";
|
|
4
|
+
import type { ColumnMinimalInfo} from "./getColumnDefinitionQuery";
|
|
5
|
+
import { getTableColumns } from "./getColumnDefinitionQuery";
|
|
6
|
+
import type { ColConstraint, ConstraintDef} from "./getConstraintDefinitionQueries";
|
|
7
|
+
import { getColConstraints } from "./getConstraintDefinitionQueries";
|
|
6
8
|
|
|
7
9
|
type Args = {
|
|
8
10
|
db: DB;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { asName, getKeys, getObjectEntries, isDefined, isObject } from "prostgles-types";
|
|
2
2
|
import { validate_jsonb_schema_sql } from "../JSONBSchemaValidation/validateJSONBSchemaSQL";
|
|
3
|
-
import { DB, DBHandlerServer } from "../Prostgles";
|
|
3
|
+
import type { DB, DBHandlerServer } from "../Prostgles";
|
|
4
4
|
import { getColumnDefinitionQuery, getTableColumns } from "./getColumnDefinitionQuery";
|
|
5
5
|
import { getFutureTableSchema } from "./getFutureTableSchema";
|
|
6
|
-
import { TableConfig } from "./TableConfig";
|
|
6
|
+
import type { TableConfig } from "./TableConfig";
|
|
7
7
|
|
|
8
8
|
type Args = {
|
|
9
9
|
db: DB;
|
|
@@ -6,7 +6,7 @@ import { getColumnDefinitionQuery } from "./getColumnDefinitionQuery";
|
|
|
6
6
|
import { getConstraintDefinitionQueries } from "./getConstraintDefinitionQueries";
|
|
7
7
|
import { tableConfigWithMigrations, type SchemaRelatedOptions } from "./getCreateSchemaQueries";
|
|
8
8
|
import type { TableConfig } from "./TableConfig";
|
|
9
|
-
import { getSchemaUtils } from "./tableConfigSchemaUtils";
|
|
9
|
+
import type { getSchemaUtils } from "./tableConfigSchemaUtils";
|
|
10
10
|
|
|
11
11
|
export const getTableConfigSchemaQueries = async (
|
|
12
12
|
opts: SchemaRelatedOptions,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
log,
|
|
6
6
|
} from "../PubSubManager/PubSubManagerUtils";
|
|
7
7
|
import type { OnReadyCallbackBasic } from "../initProstgles";
|
|
8
|
-
import TableConfigurator from "./TableConfig";
|
|
8
|
+
import type TableConfigurator from "./TableConfig";
|
|
9
9
|
import {
|
|
10
10
|
getColConstraints,
|
|
11
11
|
getConstraintDefinitionQueries,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
type ViewHandler,
|
|
9
9
|
} from "prostgles-types";
|
|
10
10
|
import type { AuthClientRequest } from "../Auth/AuthTypes";
|
|
11
|
-
import type { DBOFullyTyped } from "../DBSchemaBuilder";
|
|
11
|
+
import type { DBOFullyTyped } from "../DBSchemaBuilder/DBSchemaBuilder";
|
|
12
12
|
import type { Prostgles } from "../Prostgles";
|
|
13
13
|
import { runClientMethod, runClientRequest, runClientSqlRequest } from "../runClientRequest";
|
|
14
14
|
import { getClientSchema } from "./getClientSchema";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isObject, omitKeys, tryCatchV2, type ClientSchema } from "prostgles-types";
|
|
2
2
|
import type { AuthClientRequest } from "../Auth/AuthTypes";
|
|
3
|
-
import { Prostgles } from "../Prostgles";
|
|
3
|
+
import type { Prostgles } from "../Prostgles";
|
|
4
4
|
import type { PermissionScope, PublishParser } from "../PublishParser/PublishParser";
|
|
5
5
|
import { clientCanRunSqlRequest } from "../runClientRequest";
|
|
6
6
|
import { version } from "../../package.json";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { AnyObject
|
|
1
|
+
import type { AnyObject} from "prostgles-types";
|
|
2
|
+
import { CHANNELS } from "prostgles-types";
|
|
2
3
|
import type { Prostgles, TABLE_METHODS } from "../Prostgles";
|
|
3
|
-
import { PRGLIOSocket } from "../DboBuilder/DboBuilderTypes";
|
|
4
|
+
import type { PRGLIOSocket } from "../DboBuilder/DboBuilderTypes";
|
|
4
5
|
import { runClientMethod, runClientRequest } from "../runClientRequest";
|
|
5
6
|
import { getErrorAsObject } from "../DboBuilder/dboBuilderUtils";
|
|
6
|
-
import { DBOFullyTyped } from "../DBSchemaBuilder";
|
|
7
|
+
import type { DBOFullyTyped } from "../DBSchemaBuilder/DBSchemaBuilder";
|
|
7
8
|
import { getClientRequestIPsInfo } from "../Auth/AuthHandler";
|
|
8
9
|
import type { AuthResultWithSID, SessionUser } from "../Auth/AuthTypes";
|
|
9
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CHANNELS, getSerialisableError, type SQLRequest } from "prostgles-types";
|
|
2
2
|
import type { PRGLIOSocket } from "../DboBuilder/DboBuilderTypes";
|
|
3
|
-
import { Prostgles } from "../Prostgles";
|
|
3
|
+
import type { Prostgles } from "../Prostgles";
|
|
4
4
|
import { runClientSqlRequest } from "../runClientRequest";
|
|
5
5
|
import { makeSocketError } from "./onSocketConnected";
|
|
6
6
|
export async function pushSocketSchema(this: Prostgles, socket: PRGLIOSocket) {
|
package/lib/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SessionUser } from "./Auth/AuthTypes";
|
|
1
|
+
import type { SessionUser } from "./Auth/AuthTypes";
|
|
2
2
|
import type { InitResult, OnReadyCallbackBasic } from "./initProstgles";
|
|
3
3
|
import { Prostgles } from "./Prostgles";
|
|
4
|
-
import { ProstglesInitOptions } from "./ProstglesTypes";
|
|
4
|
+
import type { ProstglesInitOptions } from "./ProstglesTypes";
|
|
5
5
|
|
|
6
6
|
import { testDboTypes } from "./typeTests/dboTypeCheck";
|
|
7
7
|
testDboTypes();
|
package/lib/initProstgles.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import * as pgPromise from "pg-promise";
|
|
2
|
-
import pg from "pg-promise/typescript/pg-subset";
|
|
2
|
+
import type pg from "pg-promise/typescript/pg-subset";
|
|
3
3
|
import { getKeys, isEmpty, isEqual } from "prostgles-types";
|
|
4
4
|
import type { AuthClientRequest, SessionUser } from "./Auth/AuthTypes";
|
|
5
5
|
import { removeExpressRoutesTest } from "./Auth/utils/removeExpressRoute";
|
|
6
6
|
import { DBEventsManager } from "./DBEventsManager";
|
|
7
|
-
import { DBOFullyTyped } from "./DBSchemaBuilder";
|
|
8
|
-
import { DBHandlerServer, Prostgles
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import type { DBOFullyTyped } from "./DBSchemaBuilder/DBSchemaBuilder";
|
|
8
|
+
import type { DBHandlerServer, Prostgles } from "./Prostgles";
|
|
9
|
+
import { getIsSuperUser } from "./Prostgles";
|
|
10
|
+
import type { ProstglesInitOptions } from "./ProstglesTypes";
|
|
11
|
+
import type { DbTableInfo } from "./PublishParser/PublishParser";
|
|
12
|
+
import { PublishParser, type PermissionScope } from "./PublishParser/PublishParser";
|
|
11
13
|
import { SchemaWatch } from "./SchemaWatch/SchemaWatch";
|
|
12
14
|
import { runSQLFile } from "./TableConfig/runSQLFile";
|
|
13
|
-
import { sleep } from "./utils";
|
|
15
|
+
import { sleep } from "./utils/utils";
|
|
14
16
|
import { getClientHandlers } from "./WebsocketAPI/getClientHandlers";
|
|
15
17
|
|
|
16
18
|
/**
|
package/lib/runClientRequest.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
SQLRequest,
|
|
3
3
|
TableHandler,
|
|
4
|
-
UserLike
|
|
4
|
+
UserLike} from "prostgles-types";
|
|
5
|
+
import {
|
|
5
6
|
getKeys,
|
|
6
7
|
pickKeys,
|
|
7
8
|
type AnyObject,
|
|
8
9
|
} from "prostgles-types";
|
|
9
|
-
import { AuthClientRequest } from "./Auth/AuthTypes";
|
|
10
|
-
import { LocalParams } from "./DboBuilder/DboBuilder";
|
|
11
|
-
import { TableHandler as TableHandlerServer } from "./DboBuilder/TableHandler/TableHandler";
|
|
10
|
+
import type { AuthClientRequest } from "./Auth/AuthTypes";
|
|
11
|
+
import type { LocalParams } from "./DboBuilder/DboBuilder";
|
|
12
|
+
import type { TableHandler as TableHandlerServer } from "./DboBuilder/TableHandler/TableHandler";
|
|
12
13
|
import { parseFieldFilter } from "./DboBuilder/ViewHandler/parseFieldFilter";
|
|
13
14
|
import { canRunSQL } from "./DboBuilder/runSQL";
|
|
14
|
-
import { Prostgles } from "./Prostgles";
|
|
15
|
-
import { ParsedTableRule
|
|
15
|
+
import type { Prostgles } from "./Prostgles";
|
|
16
|
+
import type { ParsedTableRule} from "./PublishParser/publishTypesAndUtils";
|
|
17
|
+
import { type PermissionScope } from "./PublishParser/publishTypesAndUtils";
|
|
16
18
|
|
|
17
19
|
const TABLE_METHODS = {
|
|
18
20
|
find: 1,
|