@harperfast/harper 5.0.0-alpha.10
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/CODE_OF_CONDUCT.md +83 -0
- package/LICENSE +201 -0
- package/README.md +54 -0
- package/SECURITY.md +18 -0
- package/SUPPORT.md +26 -0
- package/dist/bin/BinObjects.d.ts +9 -0
- package/dist/bin/BinObjects.js +15 -0
- package/dist/bin/BinObjects.js.map +1 -0
- package/dist/bin/cliOperations.d.ts +12 -0
- package/dist/bin/cliOperations.js +156 -0
- package/dist/bin/cliOperations.js.map +1 -0
- package/dist/bin/copyDb.d.ts +2 -0
- package/dist/bin/copyDb.js +298 -0
- package/dist/bin/copyDb.js.map +1 -0
- package/dist/bin/harper.d.ts +2 -0
- package/dist/bin/harper.js +148 -0
- package/dist/bin/harper.js.map +1 -0
- package/dist/bin/install.d.ts +2 -0
- package/dist/bin/install.js +16 -0
- package/dist/bin/install.js.map +1 -0
- package/dist/bin/lite.d.ts +1 -0
- package/dist/bin/lite.js +6 -0
- package/dist/bin/lite.js.map +1 -0
- package/dist/bin/restart.d.ts +13 -0
- package/dist/bin/restart.js +194 -0
- package/dist/bin/restart.js.map +1 -0
- package/dist/bin/run.d.ts +21 -0
- package/dist/bin/run.js +365 -0
- package/dist/bin/run.js.map +1 -0
- package/dist/bin/status.d.ts +2 -0
- package/dist/bin/status.js +56 -0
- package/dist/bin/status.js.map +1 -0
- package/dist/bin/stop.d.ts +2 -0
- package/dist/bin/stop.js +17 -0
- package/dist/bin/stop.js.map +1 -0
- package/dist/bin/upgrade.d.ts +7 -0
- package/dist/bin/upgrade.js +111 -0
- package/dist/bin/upgrade.js.map +1 -0
- package/dist/components/Application.d.ts +110 -0
- package/dist/components/Application.js +509 -0
- package/dist/components/Application.js.map +1 -0
- package/dist/components/ApplicationScope.d.ts +28 -0
- package/dist/components/ApplicationScope.js +81 -0
- package/dist/components/ApplicationScope.js.map +1 -0
- package/dist/components/Component.d.ts +21 -0
- package/dist/components/Component.js +43 -0
- package/dist/components/Component.js.map +1 -0
- package/dist/components/ComponentV1.d.ts +69 -0
- package/dist/components/ComponentV1.js +263 -0
- package/dist/components/ComponentV1.js.map +1 -0
- package/dist/components/DEFAULT_CONFIG.d.ts +18 -0
- package/dist/components/DEFAULT_CONFIG.js +22 -0
- package/dist/components/DEFAULT_CONFIG.js.map +1 -0
- package/dist/components/EntryHandler.d.ts +61 -0
- package/dist/components/EntryHandler.js +148 -0
- package/dist/components/EntryHandler.js.map +1 -0
- package/dist/components/OptionsWatcher.d.ts +75 -0
- package/dist/components/OptionsWatcher.js +281 -0
- package/dist/components/OptionsWatcher.js.map +1 -0
- package/dist/components/PluginModule.d.ts +5 -0
- package/dist/components/PluginModule.js +3 -0
- package/dist/components/PluginModule.js.map +1 -0
- package/dist/components/Scope.d.ts +49 -0
- package/dist/components/Scope.js +262 -0
- package/dist/components/Scope.js.map +1 -0
- package/dist/components/componentLoader.js +498 -0
- package/dist/components/componentLoader.js.map +1 -0
- package/dist/components/deriveCommonPatternBase.d.ts +1 -0
- package/dist/components/deriveCommonPatternBase.js +34 -0
- package/dist/components/deriveCommonPatternBase.js.map +1 -0
- package/dist/components/deriveGlobOptions.d.ts +13 -0
- package/dist/components/deriveGlobOptions.js +30 -0
- package/dist/components/deriveGlobOptions.js.map +1 -0
- package/dist/components/deriveURLPath.d.ts +3 -0
- package/dist/components/deriveURLPath.js +55 -0
- package/dist/components/deriveURLPath.js.map +1 -0
- package/dist/components/operations.d.ts +97 -0
- package/dist/components/operations.js +556 -0
- package/dist/components/operations.js.map +1 -0
- package/dist/components/operationsValidation.d.ts +44 -0
- package/dist/components/operationsValidation.js +221 -0
- package/dist/components/operationsValidation.js.map +1 -0
- package/dist/components/packageComponent.d.ts +8 -0
- package/dist/components/packageComponent.js +42 -0
- package/dist/components/packageComponent.js.map +1 -0
- package/dist/components/requestRestart.d.ts +3 -0
- package/dist/components/requestRestart.js +27 -0
- package/dist/components/requestRestart.js.map +1 -0
- package/dist/components/resolveBaseURLPath.d.ts +15 -0
- package/dist/components/resolveBaseURLPath.js +38 -0
- package/dist/components/resolveBaseURLPath.js.map +1 -0
- package/dist/components/status/ComponentStatus.d.ts +61 -0
- package/dist/components/status/ComponentStatus.js +102 -0
- package/dist/components/status/ComponentStatus.js.map +1 -0
- package/dist/components/status/ComponentStatusRegistry.d.ts +89 -0
- package/dist/components/status/ComponentStatusRegistry.js +195 -0
- package/dist/components/status/ComponentStatusRegistry.js.map +1 -0
- package/dist/components/status/api.d.ts +104 -0
- package/dist/components/status/api.js +137 -0
- package/dist/components/status/api.js.map +1 -0
- package/dist/components/status/crossThread.d.ts +62 -0
- package/dist/components/status/crossThread.js +343 -0
- package/dist/components/status/crossThread.js.map +1 -0
- package/dist/components/status/errors.d.ts +68 -0
- package/dist/components/status/errors.js +123 -0
- package/dist/components/status/errors.js.map +1 -0
- package/dist/components/status/index.d.ts +35 -0
- package/dist/components/status/index.js +75 -0
- package/dist/components/status/index.js.map +1 -0
- package/dist/components/status/internal.d.ts +40 -0
- package/dist/components/status/internal.js +76 -0
- package/dist/components/status/internal.js.map +1 -0
- package/dist/components/status/registry.d.ts +10 -0
- package/dist/components/status/registry.js +14 -0
- package/dist/components/status/registry.js.map +1 -0
- package/dist/components/status/types.d.ts +94 -0
- package/dist/components/status/types.js +20 -0
- package/dist/components/status/types.js.map +1 -0
- package/dist/config/RootConfigWatcher.d.ts +10 -0
- package/dist/config/RootConfigWatcher.js +59 -0
- package/dist/config/RootConfigWatcher.js.map +1 -0
- package/dist/config/configHelpers.d.ts +6 -0
- package/dist/config/configHelpers.js +47 -0
- package/dist/config/configHelpers.js.map +1 -0
- package/dist/config/configUtils.d.ts +85 -0
- package/dist/config/configUtils.js +801 -0
- package/dist/config/configUtils.js.map +1 -0
- package/dist/config/harperConfigEnvVars.d.ts +46 -0
- package/dist/config/harperConfigEnvVars.js +527 -0
- package/dist/config/harperConfigEnvVars.js.map +1 -0
- package/dist/dataLayer/CreateAttributeObject.d.ts +19 -0
- package/dist/dataLayer/CreateAttributeObject.js +23 -0
- package/dist/dataLayer/CreateAttributeObject.js.map +1 -0
- package/dist/dataLayer/CreateTableObject.d.ts +7 -0
- package/dist/dataLayer/CreateTableObject.js +10 -0
- package/dist/dataLayer/CreateTableObject.js.map +1 -0
- package/dist/dataLayer/DataLayerObjects.d.ts +22 -0
- package/dist/dataLayer/DataLayerObjects.js +33 -0
- package/dist/dataLayer/DataLayerObjects.js.map +1 -0
- package/dist/dataLayer/DeleteBeforeObject.d.ts +18 -0
- package/dist/dataLayer/DeleteBeforeObject.js +21 -0
- package/dist/dataLayer/DeleteBeforeObject.js.map +1 -0
- package/dist/dataLayer/DeleteObject.d.ts +19 -0
- package/dist/dataLayer/DeleteObject.js +23 -0
- package/dist/dataLayer/DeleteObject.js.map +1 -0
- package/dist/dataLayer/DropAttributeObject.d.ts +7 -0
- package/dist/dataLayer/DropAttributeObject.js +10 -0
- package/dist/dataLayer/DropAttributeObject.js.map +1 -0
- package/dist/dataLayer/GetBackupObject.d.ts +16 -0
- package/dist/dataLayer/GetBackupObject.js +20 -0
- package/dist/dataLayer/GetBackupObject.js.map +1 -0
- package/dist/dataLayer/InsertObject.d.ts +20 -0
- package/dist/dataLayer/InsertObject.js +24 -0
- package/dist/dataLayer/InsertObject.js.map +1 -0
- package/dist/dataLayer/ReadAuditLogObject.d.ts +18 -0
- package/dist/dataLayer/ReadAuditLogObject.js +22 -0
- package/dist/dataLayer/ReadAuditLogObject.js.map +1 -0
- package/dist/dataLayer/SQLSearch.d.ts +171 -0
- package/dist/dataLayer/SQLSearch.js +1168 -0
- package/dist/dataLayer/SQLSearch.js.map +1 -0
- package/dist/dataLayer/SearchByConditionsObject.d.ts +85 -0
- package/dist/dataLayer/SearchByConditionsObject.js +57 -0
- package/dist/dataLayer/SearchByConditionsObject.js.map +1 -0
- package/dist/dataLayer/SearchByHashObject.d.ts +17 -0
- package/dist/dataLayer/SearchByHashObject.js +20 -0
- package/dist/dataLayer/SearchByHashObject.js.map +1 -0
- package/dist/dataLayer/SearchObject.d.ts +30 -0
- package/dist/dataLayer/SearchObject.js +33 -0
- package/dist/dataLayer/SearchObject.js.map +1 -0
- package/dist/dataLayer/SqlSearchObject.d.ts +10 -0
- package/dist/dataLayer/SqlSearchObject.js +13 -0
- package/dist/dataLayer/SqlSearchObject.js.map +1 -0
- package/dist/dataLayer/UpdateObject.d.ts +18 -0
- package/dist/dataLayer/UpdateObject.js +22 -0
- package/dist/dataLayer/UpdateObject.js.map +1 -0
- package/dist/dataLayer/UpsertObject.d.ts +18 -0
- package/dist/dataLayer/UpsertObject.js +22 -0
- package/dist/dataLayer/UpsertObject.js.map +1 -0
- package/dist/dataLayer/bulkLoad.d.ts +28 -0
- package/dist/dataLayer/bulkLoad.js +624 -0
- package/dist/dataLayer/bulkLoad.js.map +1 -0
- package/dist/dataLayer/dataObjects/BulkLoadObjects.d.ts +17 -0
- package/dist/dataLayer/dataObjects/BulkLoadObjects.js +25 -0
- package/dist/dataLayer/dataObjects/BulkLoadObjects.js.map +1 -0
- package/dist/dataLayer/dataObjects/UpsertObject.d.ts +18 -0
- package/dist/dataLayer/dataObjects/UpsertObject.js +22 -0
- package/dist/dataLayer/dataObjects/UpsertObject.js.map +1 -0
- package/dist/dataLayer/delete.d.ts +22 -0
- package/dist/dataLayer/delete.js +111 -0
- package/dist/dataLayer/delete.js.map +1 -0
- package/dist/dataLayer/export.d.ts +15 -0
- package/dist/dataLayer/export.js +302 -0
- package/dist/dataLayer/export.js.map +1 -0
- package/dist/dataLayer/getBackup.d.ts +8 -0
- package/dist/dataLayer/getBackup.js +28 -0
- package/dist/dataLayer/getBackup.js.map +1 -0
- package/dist/dataLayer/harperBridge/BridgeMethods.d.ts +24 -0
- package/dist/dataLayer/harperBridge/BridgeMethods.js +62 -0
- package/dist/dataLayer/harperBridge/BridgeMethods.js.map +1 -0
- package/dist/dataLayer/harperBridge/ResourceBridge.d.ts +104 -0
- package/dist/dataLayer/harperBridge/ResourceBridge.js +630 -0
- package/dist/dataLayer/harperBridge/ResourceBridge.js.map +1 -0
- package/dist/dataLayer/harperBridge/bridgeUtility/insertUpdateReturnObj.d.ts +14 -0
- package/dist/dataLayer/harperBridge/bridgeUtility/insertUpdateReturnObj.js +24 -0
- package/dist/dataLayer/harperBridge/bridgeUtility/insertUpdateReturnObj.js.map +1 -0
- package/dist/dataLayer/harperBridge/bridgeUtility/insertUpdateValidate.d.ts +11 -0
- package/dist/dataLayer/harperBridge/bridgeUtility/insertUpdateValidate.js +68 -0
- package/dist/dataLayer/harperBridge/bridgeUtility/insertUpdateValidate.js.map +1 -0
- package/dist/dataLayer/harperBridge/harperBridge.d.ts +2 -0
- package/dist/dataLayer/harperBridge/harperBridge.js +18 -0
- package/dist/dataLayer/harperBridge/harperBridge.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/LMDBBridge.d.ts +47 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/LMDBBridge.js +99 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/LMDBBridge.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/DeleteAuditLogsBeforeResults.d.ts +15 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/DeleteAuditLogsBeforeResults.js +18 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/DeleteAuditLogsBeforeResults.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateAttribute.d.ts +12 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateAttribute.js +74 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateAttribute.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateRecords.d.ts +13 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateRecords.js +54 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateRecords.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateSchema.d.ts +6 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateSchema.js +23 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateSchema.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateTable.d.ts +8 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateTable.js +62 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateTable.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteAuditLogsBefore.d.ts +8 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteAuditLogsBefore.js +82 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteAuditLogsBefore.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecords.d.ts +11 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecords.js +76 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecords.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropAttribute.d.ts +9 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropAttribute.js +83 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropAttribute.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropSchema.d.ts +6 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropSchema.js +73 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropSchema.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropTable.d.ts +6 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropTable.js +110 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropTable.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbFlush.d.ts +14 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbFlush.js +33 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbFlush.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetBackup.d.ts +7 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetBackup.js +110 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetBackup.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByHash.d.ts +6 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByHash.js +21 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByHash.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByValue.d.ts +14 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByValue.js +25 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByValue.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbReadAuditLog.d.ts +7 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbReadAuditLog.js +180 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbReadAuditLog.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByConditions.d.ts +8 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByConditions.js +134 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByConditions.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByHash.d.ts +6 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByHash.js +14 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByHash.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByValue.d.ts +15 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByValue.js +26 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByValue.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbTransaction.d.ts +8 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbTransaction.js +17 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbTransaction.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpdateRecords.d.ts +12 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpdateRecords.js +52 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpdateRecords.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpsertRecords.d.ts +15 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpsertRecords.js +56 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpsertRecords.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBCreateAttributeObject.d.ts +16 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBCreateAttributeObject.js +20 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBCreateAttributeObject.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBDeleteTransactionObject.d.ts +16 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBDeleteTransactionObject.js +22 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBDeleteTransactionObject.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBInsertTransactionObject.d.ts +16 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBInsertTransactionObject.js +21 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBInsertTransactionObject.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBTransactionObject.d.ts +19 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBTransactionObject.js +22 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBTransactionObject.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpdateTransactionObject.d.ts +18 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpdateTransactionObject.js +23 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpdateTransactionObject.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpsertTransactionObject.d.ts +18 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpsertTransactionObject.js +23 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpsertTransactionObject.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.d.ts +21 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.js +24 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/initializeHashSearch.d.ts +7 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/initializeHashSearch.js +19 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/initializeHashSearch.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/initializePaths.d.ts +22 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/initializePaths.js +137 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/initializePaths.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbCheckForNewAttributes.d.ts +9 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbCheckForNewAttributes.js +73 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbCheckForNewAttributes.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbCreateTransactionsAuditEnvironment.d.ts +8 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbCreateTransactionsAuditEnvironment.js +38 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbCreateTransactionsAuditEnvironment.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.d.ts +8 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.js +29 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbProcessRows.d.ts +17 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbProcessRows.js +63 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbProcessRows.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbSearch.d.ts +106 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbSearch.js +251 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbSearch.js.map +1 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbWriteTransaction.d.ts +8 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbWriteTransaction.js +66 -0
- package/dist/dataLayer/harperBridge/lmdbBridge/lmdbUtility/lmdbWriteTransaction.js.map +1 -0
- package/dist/dataLayer/hdbInfoController.d.ts +28 -0
- package/dist/dataLayer/hdbInfoController.js +203 -0
- package/dist/dataLayer/hdbInfoController.js.map +1 -0
- package/dist/dataLayer/insert.d.ts +44 -0
- package/dist/dataLayer/insert.js +192 -0
- package/dist/dataLayer/insert.js.map +1 -0
- package/dist/dataLayer/readAuditLog.d.ts +8 -0
- package/dist/dataLayer/readAuditLog.js +37 -0
- package/dist/dataLayer/readAuditLog.js.map +1 -0
- package/dist/dataLayer/schema.d.ts +24 -0
- package/dist/dataLayer/schema.js +225 -0
- package/dist/dataLayer/schema.js.map +1 -0
- package/dist/dataLayer/schemaDescribe.d.ts +26 -0
- package/dist/dataLayer/schemaDescribe.js +265 -0
- package/dist/dataLayer/schemaDescribe.js.map +1 -0
- package/dist/dataLayer/search.d.ts +4 -0
- package/dist/dataLayer/search.js +56 -0
- package/dist/dataLayer/search.js.map +1 -0
- package/dist/dataLayer/transaction.d.ts +8 -0
- package/dist/dataLayer/transaction.js +16 -0
- package/dist/dataLayer/transaction.js.map +1 -0
- package/dist/dataLayer/update.d.ts +15 -0
- package/dist/dataLayer/update.js +107 -0
- package/dist/dataLayer/update.js.map +1 -0
- package/dist/globals.d.ts +7 -0
- package/dist/globals.js +12 -0
- package/dist/globals.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/json/systemSchema.json +373 -0
- package/dist/launchServiceScripts/utility/checkNodeVersion.d.ts +4 -0
- package/dist/launchServiceScripts/utility/checkNodeVersion.js +13 -0
- package/dist/launchServiceScripts/utility/checkNodeVersion.js.map +1 -0
- package/dist/resources/DatabaseTransaction.d.ts +96 -0
- package/dist/resources/DatabaseTransaction.js +354 -0
- package/dist/resources/DatabaseTransaction.js.map +1 -0
- package/dist/resources/ErrorResource.d.ts +26 -0
- package/dist/resources/ErrorResource.js +60 -0
- package/dist/resources/ErrorResource.js.map +1 -0
- package/dist/resources/IterableEventQueue.d.ts +19 -0
- package/dist/resources/IterableEventQueue.js +103 -0
- package/dist/resources/IterableEventQueue.js.map +1 -0
- package/dist/resources/LMDBTransaction.d.ts +43 -0
- package/dist/resources/LMDBTransaction.js +371 -0
- package/dist/resources/LMDBTransaction.js.map +1 -0
- package/dist/resources/RecordEncoder.d.ts +65 -0
- package/dist/resources/RecordEncoder.js +700 -0
- package/dist/resources/RecordEncoder.js.map +1 -0
- package/dist/resources/RequestTarget.d.ts +57 -0
- package/dist/resources/RequestTarget.js +91 -0
- package/dist/resources/RequestTarget.js.map +1 -0
- package/dist/resources/Resource.d.ts +152 -0
- package/dist/resources/Resource.js +727 -0
- package/dist/resources/Resource.js.map +1 -0
- package/dist/resources/ResourceInterface.d.ts +162 -0
- package/dist/resources/ResourceInterface.js +3 -0
- package/dist/resources/ResourceInterface.js.map +1 -0
- package/dist/resources/ResourceInterfaceV2.d.ts +21 -0
- package/dist/resources/ResourceInterfaceV2.js +3 -0
- package/dist/resources/ResourceInterfaceV2.js.map +1 -0
- package/dist/resources/ResourceV2.d.ts +30 -0
- package/dist/resources/ResourceV2.js +27 -0
- package/dist/resources/ResourceV2.js.map +1 -0
- package/dist/resources/Resources.d.ts +36 -0
- package/dist/resources/Resources.js +155 -0
- package/dist/resources/Resources.js.map +1 -0
- package/dist/resources/RocksIndexStore.d.ts +24 -0
- package/dist/resources/RocksIndexStore.js +54 -0
- package/dist/resources/RocksIndexStore.js.map +1 -0
- package/dist/resources/RocksTransactionLogStore.d.ts +60 -0
- package/dist/resources/RocksTransactionLogStore.js +344 -0
- package/dist/resources/RocksTransactionLogStore.js.map +1 -0
- package/dist/resources/Table.d.ts +854 -0
- package/dist/resources/Table.js +4350 -0
- package/dist/resources/Table.js.map +1 -0
- package/dist/resources/analytics/hostnames.d.ts +16 -0
- package/dist/resources/analytics/hostnames.js +72 -0
- package/dist/resources/analytics/hostnames.js.map +1 -0
- package/dist/resources/analytics/metadata.d.ts +9 -0
- package/dist/resources/analytics/metadata.js +12 -0
- package/dist/resources/analytics/metadata.js.map +1 -0
- package/dist/resources/analytics/profile.d.ts +2 -0
- package/dist/resources/analytics/profile.js +144 -0
- package/dist/resources/analytics/profile.js.map +1 -0
- package/dist/resources/analytics/read.d.ts +41 -0
- package/dist/resources/analytics/read.js +189 -0
- package/dist/resources/analytics/read.js.map +1 -0
- package/dist/resources/analytics/write.d.ts +131 -0
- package/dist/resources/analytics/write.js +822 -0
- package/dist/resources/analytics/write.js.map +1 -0
- package/dist/resources/auditStore.d.ts +81 -0
- package/dist/resources/auditStore.js +572 -0
- package/dist/resources/auditStore.js.map +1 -0
- package/dist/resources/blob.d.ts +137 -0
- package/dist/resources/blob.js +1273 -0
- package/dist/resources/blob.js.map +1 -0
- package/dist/resources/crdt.d.ts +19 -0
- package/dist/resources/crdt.js +146 -0
- package/dist/resources/crdt.js.map +1 -0
- package/dist/resources/dataLoader.d.ts +98 -0
- package/dist/resources/dataLoader.js +461 -0
- package/dist/resources/dataLoader.js.map +1 -0
- package/dist/resources/databases.d.ts +131 -0
- package/dist/resources/databases.js +1220 -0
- package/dist/resources/databases.js.map +1 -0
- package/dist/resources/graphql.d.ts +19 -0
- package/dist/resources/graphql.js +223 -0
- package/dist/resources/graphql.js.map +1 -0
- package/dist/resources/indexes/HierarchicalNavigableSmallWorld.d.ts +87 -0
- package/dist/resources/indexes/HierarchicalNavigableSmallWorld.js +598 -0
- package/dist/resources/indexes/HierarchicalNavigableSmallWorld.js.map +1 -0
- package/dist/resources/indexes/customIndexes.d.ts +4 -0
- package/dist/resources/indexes/customIndexes.js +10 -0
- package/dist/resources/indexes/customIndexes.js.map +1 -0
- package/dist/resources/indexes/vector.d.ts +2 -0
- package/dist/resources/indexes/vector.js +40 -0
- package/dist/resources/indexes/vector.js.map +1 -0
- package/dist/resources/jsResource.d.ts +24 -0
- package/dist/resources/jsResource.js +82 -0
- package/dist/resources/jsResource.js.map +1 -0
- package/dist/resources/loadEnv.d.ts +5 -0
- package/dist/resources/loadEnv.js +28 -0
- package/dist/resources/loadEnv.js.map +1 -0
- package/dist/resources/login.d.ts +3 -0
- package/dist/resources/login.js +22 -0
- package/dist/resources/login.js.map +1 -0
- package/dist/resources/openApi.d.ts +27 -0
- package/dist/resources/openApi.js +327 -0
- package/dist/resources/openApi.js.map +1 -0
- package/dist/resources/registrationDeprecated.d.ts +4 -0
- package/dist/resources/registrationDeprecated.js +11 -0
- package/dist/resources/registrationDeprecated.js.map +1 -0
- package/dist/resources/replayLogs.d.ts +2 -0
- package/dist/resources/replayLogs.js +170 -0
- package/dist/resources/replayLogs.js.map +1 -0
- package/dist/resources/roles.d.ts +11 -0
- package/dist/resources/roles.js +102 -0
- package/dist/resources/roles.js.map +1 -0
- package/dist/resources/search.d.ts +39 -0
- package/dist/resources/search.js +1333 -0
- package/dist/resources/search.js.map +1 -0
- package/dist/resources/tracked.d.ts +49 -0
- package/dist/resources/tracked.js +665 -0
- package/dist/resources/tracked.js.map +1 -0
- package/dist/resources/transaction.d.ts +9 -0
- package/dist/resources/transaction.js +89 -0
- package/dist/resources/transaction.js.map +1 -0
- package/dist/resources/transactionBroadcast.d.ts +38 -0
- package/dist/resources/transactionBroadcast.js +263 -0
- package/dist/resources/transactionBroadcast.js.map +1 -0
- package/dist/security/auth.d.ts +9 -0
- package/dist/security/auth.js +408 -0
- package/dist/security/auth.js.map +1 -0
- package/dist/security/certificateVerification/certificateVerificationSource.d.ts +18 -0
- package/dist/security/certificateVerification/certificateVerificationSource.js +78 -0
- package/dist/security/certificateVerification/certificateVerificationSource.js.map +1 -0
- package/dist/security/certificateVerification/configValidation.d.ts +14 -0
- package/dist/security/certificateVerification/configValidation.js +101 -0
- package/dist/security/certificateVerification/configValidation.js.map +1 -0
- package/dist/security/certificateVerification/crlVerification.d.ts +29 -0
- package/dist/security/certificateVerification/crlVerification.js +564 -0
- package/dist/security/certificateVerification/crlVerification.js.map +1 -0
- package/dist/security/certificateVerification/index.d.ts +31 -0
- package/dist/security/certificateVerification/index.js +111 -0
- package/dist/security/certificateVerification/index.js.map +1 -0
- package/dist/security/certificateVerification/ocspVerification.d.ts +23 -0
- package/dist/security/certificateVerification/ocspVerification.js +117 -0
- package/dist/security/certificateVerification/ocspVerification.js.map +1 -0
- package/dist/security/certificateVerification/pkijs-ed25519-patch.d.ts +14 -0
- package/dist/security/certificateVerification/pkijs-ed25519-patch.js +183 -0
- package/dist/security/certificateVerification/pkijs-ed25519-patch.js.map +1 -0
- package/dist/security/certificateVerification/types.d.ts +105 -0
- package/dist/security/certificateVerification/types.js +6 -0
- package/dist/security/certificateVerification/types.js.map +1 -0
- package/dist/security/certificateVerification/verificationConfig.d.ts +29 -0
- package/dist/security/certificateVerification/verificationConfig.js +121 -0
- package/dist/security/certificateVerification/verificationConfig.js.map +1 -0
- package/dist/security/certificateVerification/verificationUtils.d.ts +79 -0
- package/dist/security/certificateVerification/verificationUtils.js +441 -0
- package/dist/security/certificateVerification/verificationUtils.js.map +1 -0
- package/dist/security/cryptoHash.d.ts +2 -0
- package/dist/security/cryptoHash.js +35 -0
- package/dist/security/cryptoHash.js.map +1 -0
- package/dist/security/data_objects/PermissionAttributeResponseObject.d.ts +11 -0
- package/dist/security/data_objects/PermissionAttributeResponseObject.js +14 -0
- package/dist/security/data_objects/PermissionAttributeResponseObject.js.map +1 -0
- package/dist/security/data_objects/PermissionResponseObject.d.ts +57 -0
- package/dist/security/data_objects/PermissionResponseObject.js +105 -0
- package/dist/security/data_objects/PermissionResponseObject.js.map +1 -0
- package/dist/security/data_objects/PermissionTableResponseObject.d.ts +16 -0
- package/dist/security/data_objects/PermissionTableResponseObject.js +19 -0
- package/dist/security/data_objects/PermissionTableResponseObject.js.map +1 -0
- package/dist/security/fastifyAuth.d.ts +2 -0
- package/dist/security/fastifyAuth.js +135 -0
- package/dist/security/fastifyAuth.js.map +1 -0
- package/dist/security/impersonation.d.ts +11 -0
- package/dist/security/impersonation.js +139 -0
- package/dist/security/impersonation.js.map +1 -0
- package/dist/security/jsLoader.d.ts +9 -0
- package/dist/security/jsLoader.js +522 -0
- package/dist/security/jsLoader.js.map +1 -0
- package/dist/security/keys.d.ts +119 -0
- package/dist/security/keys.js +866 -0
- package/dist/security/keys.js.map +1 -0
- package/dist/security/permissionsTranslator.d.ts +9 -0
- package/dist/security/permissionsTranslator.js +269 -0
- package/dist/security/permissionsTranslator.js.map +1 -0
- package/dist/security/role.d.ts +5 -0
- package/dist/security/role.js +160 -0
- package/dist/security/role.js.map +1 -0
- package/dist/security/tokenAuthentication.d.ts +38 -0
- package/dist/security/tokenAuthentication.js +205 -0
- package/dist/security/tokenAuthentication.js.map +1 -0
- package/dist/security/user.d.ts +77 -0
- package/dist/security/user.js +349 -0
- package/dist/security/user.js.map +1 -0
- package/dist/server/DurableSubscriptionsSession.d.ts +74 -0
- package/dist/server/DurableSubscriptionsSession.js +511 -0
- package/dist/server/DurableSubscriptionsSession.js.map +1 -0
- package/dist/server/REST.d.ts +16 -0
- package/dist/server/REST.js +423 -0
- package/dist/server/REST.js.map +1 -0
- package/dist/server/Server.d.ts +62 -0
- package/dist/server/Server.js +27 -0
- package/dist/server/Server.js.map +1 -0
- package/dist/server/fastifyRoutes/helpers/getCORSOptions.d.ts +11 -0
- package/dist/server/fastifyRoutes/helpers/getCORSOptions.js +32 -0
- package/dist/server/fastifyRoutes/helpers/getCORSOptions.js.map +1 -0
- package/dist/server/fastifyRoutes/helpers/getHeaderTimeoutConfig.d.ts +6 -0
- package/dist/server/fastifyRoutes/helpers/getHeaderTimeoutConfig.js +13 -0
- package/dist/server/fastifyRoutes/helpers/getHeaderTimeoutConfig.js.map +1 -0
- package/dist/server/fastifyRoutes/helpers/getServerOptions.d.ts +12 -0
- package/dist/server/fastifyRoutes/helpers/getServerOptions.js +30 -0
- package/dist/server/fastifyRoutes/helpers/getServerOptions.js.map +1 -0
- package/dist/server/fastifyRoutes/plugins/hdbCore.d.ts +2 -0
- package/dist/server/fastifyRoutes/plugins/hdbCore.js +31 -0
- package/dist/server/fastifyRoutes/plugins/hdbCore.js.map +1 -0
- package/dist/server/fastifyRoutes.d.ts +25 -0
- package/dist/server/fastifyRoutes.js +235 -0
- package/dist/server/fastifyRoutes.js.map +1 -0
- package/dist/server/graphqlQuerying.d.ts +1 -0
- package/dist/server/graphqlQuerying.js +630 -0
- package/dist/server/graphqlQuerying.js.map +1 -0
- package/dist/server/http.d.ts +15 -0
- package/dist/server/http.js +650 -0
- package/dist/server/http.js.map +1 -0
- package/dist/server/itc/serverHandlers.d.ts +10 -0
- package/dist/server/itc/serverHandlers.js +153 -0
- package/dist/server/itc/serverHandlers.js.map +1 -0
- package/dist/server/itc/utility/ITCEventObject.d.ts +6 -0
- package/dist/server/itc/utility/ITCEventObject.js +9 -0
- package/dist/server/itc/utility/ITCEventObject.js.map +1 -0
- package/dist/server/jobs/JobObject.d.ts +15 -0
- package/dist/server/jobs/JobObject.js +22 -0
- package/dist/server/jobs/JobObject.js.map +1 -0
- package/dist/server/jobs/jobProcess.d.ts +1 -0
- package/dist/server/jobs/jobProcess.js +66 -0
- package/dist/server/jobs/jobProcess.js.map +1 -0
- package/dist/server/jobs/jobRunner.d.ts +11 -0
- package/dist/server/jobs/jobRunner.js +160 -0
- package/dist/server/jobs/jobRunner.js.map +1 -0
- package/dist/server/jobs/jobs.d.ts +20 -0
- package/dist/server/jobs/jobs.js +267 -0
- package/dist/server/jobs/jobs.js.map +1 -0
- package/dist/server/loadRootComponents.d.ts +5 -0
- package/dist/server/loadRootComponents.js +45 -0
- package/dist/server/loadRootComponents.js.map +1 -0
- package/dist/server/mqtt.d.ts +9 -0
- package/dist/server/mqtt.js +466 -0
- package/dist/server/mqtt.js.map +1 -0
- package/dist/server/nodeName.d.ts +5 -0
- package/dist/server/nodeName.js +84 -0
- package/dist/server/nodeName.js.map +1 -0
- package/dist/server/operationsServer.d.ts +48 -0
- package/dist/server/operationsServer.js +265 -0
- package/dist/server/operationsServer.js.map +1 -0
- package/dist/server/serverHelpers/Headers.d.ts +20 -0
- package/dist/server/serverHelpers/Headers.js +134 -0
- package/dist/server/serverHelpers/Headers.js.map +1 -0
- package/dist/server/serverHelpers/JSONStream.d.ts +14 -0
- package/dist/server/serverHelpers/JSONStream.js +322 -0
- package/dist/server/serverHelpers/JSONStream.js.map +1 -0
- package/dist/server/serverHelpers/OperationFunctionObject.d.ts +9 -0
- package/dist/server/serverHelpers/OperationFunctionObject.js +17 -0
- package/dist/server/serverHelpers/OperationFunctionObject.js.map +1 -0
- package/dist/server/serverHelpers/Request.d.ts +69 -0
- package/dist/server/serverHelpers/Request.js +141 -0
- package/dist/server/serverHelpers/Request.js.map +1 -0
- package/dist/server/serverHelpers/contentTypes.d.ts +57 -0
- package/dist/server/serverHelpers/contentTypes.js +639 -0
- package/dist/server/serverHelpers/contentTypes.js.map +1 -0
- package/dist/server/serverHelpers/requestTimePlugin.d.ts +2 -0
- package/dist/server/serverHelpers/requestTimePlugin.js +56 -0
- package/dist/server/serverHelpers/requestTimePlugin.js.map +1 -0
- package/dist/server/serverHelpers/serverHandlers.d.ts +6 -0
- package/dist/server/serverHelpers/serverHandlers.js +130 -0
- package/dist/server/serverHelpers/serverHandlers.js.map +1 -0
- package/dist/server/serverHelpers/serverUtilities.d.ts +29 -0
- package/dist/server/serverHelpers/serverUtilities.js +356 -0
- package/dist/server/serverHelpers/serverUtilities.js.map +1 -0
- package/dist/server/serverRegistry.d.ts +3 -0
- package/dist/server/serverRegistry.js +11 -0
- package/dist/server/serverRegistry.js.map +1 -0
- package/dist/server/static.d.ts +16 -0
- package/dist/server/static.js +164 -0
- package/dist/server/static.js.map +1 -0
- package/dist/server/status/definitions.d.ts +27 -0
- package/dist/server/status/definitions.js +22 -0
- package/dist/server/status/definitions.js.map +1 -0
- package/dist/server/status/index.d.ts +26 -0
- package/dist/server/status/index.js +89 -0
- package/dist/server/status/index.js.map +1 -0
- package/dist/server/storageReclamation.d.ts +18 -0
- package/dist/server/storageReclamation.js +96 -0
- package/dist/server/storageReclamation.js.map +1 -0
- package/dist/server/threads/itc.d.ts +53 -0
- package/dist/server/threads/itc.js +81 -0
- package/dist/server/threads/itc.js.map +1 -0
- package/dist/server/threads/manageThreads.d.ts +30 -0
- package/dist/server/threads/manageThreads.js +579 -0
- package/dist/server/threads/manageThreads.js.map +1 -0
- package/dist/server/threads/socketRouter.d.ts +6 -0
- package/dist/server/threads/socketRouter.js +395 -0
- package/dist/server/threads/socketRouter.js.map +1 -0
- package/dist/server/threads/threadServer.d.ts +5 -0
- package/dist/server/threads/threadServer.js +288 -0
- package/dist/server/threads/threadServer.js.map +1 -0
- package/dist/server/throttle.d.ts +7 -0
- package/dist/server/throttle.js +71 -0
- package/dist/server/throttle.js.map +1 -0
- package/dist/sqlTranslator/SelectValidator.d.ts +79 -0
- package/dist/sqlTranslator/SelectValidator.js +274 -0
- package/dist/sqlTranslator/SelectValidator.js.map +1 -0
- package/dist/sqlTranslator/alasqlFunctionImporter.d.ts +2 -0
- package/dist/sqlTranslator/alasqlFunctionImporter.js +55 -0
- package/dist/sqlTranslator/alasqlFunctionImporter.js.map +1 -0
- package/dist/sqlTranslator/deleteTranslator.d.ts +2 -0
- package/dist/sqlTranslator/deleteTranslator.js +56 -0
- package/dist/sqlTranslator/deleteTranslator.js.map +1 -0
- package/dist/sqlTranslator/index.d.ts +16 -0
- package/dist/sqlTranslator/index.js +215 -0
- package/dist/sqlTranslator/index.js.map +1 -0
- package/dist/sqlTranslator/sql_statement_bucket.d.ts +46 -0
- package/dist/sqlTranslator/sql_statement_bucket.js +430 -0
- package/dist/sqlTranslator/sql_statement_bucket.js.map +1 -0
- package/dist/upgrade/UpgradeObjects.d.ts +5 -0
- package/dist/upgrade/UpgradeObjects.js +12 -0
- package/dist/upgrade/UpgradeObjects.js.map +1 -0
- package/dist/upgrade/directives/directivesController.d.ts +30 -0
- package/dist/upgrade/directives/directivesController.js +76 -0
- package/dist/upgrade/directives/directivesController.js.map +1 -0
- package/dist/upgrade/directivesManager.d.ts +7 -0
- package/dist/upgrade/directivesManager.js +125 -0
- package/dist/upgrade/directivesManager.js.map +1 -0
- package/dist/upgrade/upgradePrompt.d.ts +13 -0
- package/dist/upgrade/upgradePrompt.js +102 -0
- package/dist/upgrade/upgradePrompt.js.map +1 -0
- package/dist/upgrade/upgradeUtilities.d.ts +10 -0
- package/dist/upgrade/upgradeUtilities.js +26 -0
- package/dist/upgrade/upgradeUtilities.js.map +1 -0
- package/dist/utility/AWS/AWSConnector.d.ts +2 -0
- package/dist/utility/AWS/AWSConnector.js +26 -0
- package/dist/utility/AWS/AWSConnector.js.map +1 -0
- package/dist/utility/OperationFunctionCaller.d.ts +9 -0
- package/dist/utility/OperationFunctionCaller.js +58 -0
- package/dist/utility/OperationFunctionCaller.js.map +1 -0
- package/dist/utility/assignCmdEnvVariables.d.ts +10 -0
- package/dist/utility/assignCmdEnvVariables.js +55 -0
- package/dist/utility/assignCmdEnvVariables.js.map +1 -0
- package/dist/utility/common_utils.d.ts +264 -0
- package/dist/utility/common_utils.js +806 -0
- package/dist/utility/common_utils.js.map +1 -0
- package/dist/utility/environment/environmentManager.d.ts +41 -0
- package/dist/utility/environment/environmentManager.js +179 -0
- package/dist/utility/environment/environmentManager.js.map +1 -0
- package/dist/utility/environment/systemInformation.d.ts +67 -0
- package/dist/utility/environment/systemInformation.js +326 -0
- package/dist/utility/environment/systemInformation.js.map +1 -0
- package/dist/utility/errors/commonErrors.d.ts +171 -0
- package/dist/utility/errors/commonErrors.js +230 -0
- package/dist/utility/errors/commonErrors.js.map +1 -0
- package/dist/utility/errors/hdbError.d.ts +76 -0
- package/dist/utility/errors/hdbError.js +128 -0
- package/dist/utility/errors/hdbError.js.map +1 -0
- package/dist/utility/functions/date/dateFunctions.d.ts +11 -0
- package/dist/utility/functions/date/dateFunctions.js +64 -0
- package/dist/utility/functions/date/dateFunctions.js.map +1 -0
- package/dist/utility/functions/geo.d.ts +74 -0
- package/dist/utility/functions/geo.js +311 -0
- package/dist/utility/functions/geo.js.map +1 -0
- package/dist/utility/functions/sql/alaSQLExtension.d.ts +13 -0
- package/dist/utility/functions/sql/alaSQLExtension.js +96 -0
- package/dist/utility/functions/sql/alaSQLExtension.js.map +1 -0
- package/dist/utility/globalSchema.d.ts +151 -0
- package/dist/utility/globalSchema.js +34 -0
- package/dist/utility/globalSchema.js.map +1 -0
- package/dist/utility/hdbTerms.d.ts +737 -0
- package/dist/utility/hdbTerms.js +756 -0
- package/dist/utility/hdbTerms.js.map +1 -0
- package/dist/utility/install/checkJWTTokensExist.d.ts +5 -0
- package/dist/utility/install/checkJWTTokensExist.js +53 -0
- package/dist/utility/install/checkJWTTokensExist.js.map +1 -0
- package/dist/utility/install/installer.d.ts +17 -0
- package/dist/utility/install/installer.js +569 -0
- package/dist/utility/install/installer.js.map +1 -0
- package/dist/utility/installation.d.ts +12 -0
- package/dist/utility/installation.js +64 -0
- package/dist/utility/installation.js.map +1 -0
- package/dist/utility/lmdb/DBIDefinition.d.ts +16 -0
- package/dist/utility/lmdb/DBIDefinition.js +19 -0
- package/dist/utility/lmdb/DBIDefinition.js.map +1 -0
- package/dist/utility/lmdb/DeleteRecordsResponseObject.d.ts +21 -0
- package/dist/utility/lmdb/DeleteRecordsResponseObject.js +24 -0
- package/dist/utility/lmdb/DeleteRecordsResponseObject.js.map +1 -0
- package/dist/utility/lmdb/InsertRecordsResponseObject.d.ts +18 -0
- package/dist/utility/lmdb/InsertRecordsResponseObject.js +21 -0
- package/dist/utility/lmdb/InsertRecordsResponseObject.js.map +1 -0
- package/dist/utility/lmdb/OpenDBIObject.d.ts +23 -0
- package/dist/utility/lmdb/OpenDBIObject.js +29 -0
- package/dist/utility/lmdb/OpenDBIObject.js.map +1 -0
- package/dist/utility/lmdb/OpenEnvironmentObject.d.ts +22 -0
- package/dist/utility/lmdb/OpenEnvironmentObject.js +40 -0
- package/dist/utility/lmdb/OpenEnvironmentObject.js.map +1 -0
- package/dist/utility/lmdb/UpdateRecordsResponseObject.d.ts +21 -0
- package/dist/utility/lmdb/UpdateRecordsResponseObject.js +24 -0
- package/dist/utility/lmdb/UpdateRecordsResponseObject.js.map +1 -0
- package/dist/utility/lmdb/UpsertRecordsResponseObject.d.ts +18 -0
- package/dist/utility/lmdb/UpsertRecordsResponseObject.js +21 -0
- package/dist/utility/lmdb/UpsertRecordsResponseObject.js.map +1 -0
- package/dist/utility/lmdb/cleanLMDBMap.d.ts +6 -0
- package/dist/utility/lmdb/cleanLMDBMap.js +63 -0
- package/dist/utility/lmdb/cleanLMDBMap.js.map +1 -0
- package/dist/utility/lmdb/commonUtility.d.ts +28 -0
- package/dist/utility/lmdb/commonUtility.js +120 -0
- package/dist/utility/lmdb/commonUtility.js.map +1 -0
- package/dist/utility/lmdb/deleteUtility.d.ts +10 -0
- package/dist/utility/lmdb/deleteUtility.js +115 -0
- package/dist/utility/lmdb/deleteUtility.js.map +1 -0
- package/dist/utility/lmdb/environmentUtility.d.ts +81 -0
- package/dist/utility/lmdb/environmentUtility.js +432 -0
- package/dist/utility/lmdb/environmentUtility.js.map +1 -0
- package/dist/utility/lmdb/searchCursorFunctions.d.ts +93 -0
- package/dist/utility/lmdb/searchCursorFunctions.js +174 -0
- package/dist/utility/lmdb/searchCursorFunctions.js.map +1 -0
- package/dist/utility/lmdb/searchUtility.d.ts +204 -0
- package/dist/utility/lmdb/searchUtility.js +724 -0
- package/dist/utility/lmdb/searchUtility.js.map +1 -0
- package/dist/utility/lmdb/terms.d.ts +34 -0
- package/dist/utility/lmdb/terms.js +52 -0
- package/dist/utility/lmdb/terms.js.map +1 -0
- package/dist/utility/lmdb/writeUtility.d.ts +32 -0
- package/dist/utility/lmdb/writeUtility.js +360 -0
- package/dist/utility/lmdb/writeUtility.js.map +1 -0
- package/dist/utility/logging/harper_logger.d.ts +141 -0
- package/dist/utility/logging/harper_logger.js +862 -0
- package/dist/utility/logging/harper_logger.js.map +1 -0
- package/dist/utility/logging/logRotator.d.ts +19 -0
- package/dist/utility/logging/logRotator.js +146 -0
- package/dist/utility/logging/logRotator.js.map +1 -0
- package/dist/utility/logging/logger.d.ts +11 -0
- package/dist/utility/logging/logger.js +19 -0
- package/dist/utility/logging/logger.js.map +1 -0
- package/dist/utility/logging/readLog.d.ts +8 -0
- package/dist/utility/logging/readLog.js +339 -0
- package/dist/utility/logging/readLog.js.map +1 -0
- package/dist/utility/logging/transactionLog.d.ts +8 -0
- package/dist/utility/logging/transactionLog.js +46 -0
- package/dist/utility/logging/transactionLog.js.map +1 -0
- package/dist/utility/mount_hdb.d.ts +2 -0
- package/dist/utility/mount_hdb.js +51 -0
- package/dist/utility/mount_hdb.js.map +1 -0
- package/dist/utility/npmUtilities.d.ts +6 -0
- package/dist/utility/npmUtilities.js +91 -0
- package/dist/utility/npmUtilities.js.map +1 -0
- package/dist/utility/operationPermissions.d.ts +36 -0
- package/dist/utility/operationPermissions.js +116 -0
- package/dist/utility/operationPermissions.js.map +1 -0
- package/dist/utility/operation_authorization.d.ts +18 -0
- package/dist/utility/operation_authorization.js +667 -0
- package/dist/utility/operation_authorization.js.map +1 -0
- package/dist/utility/packageUtils.d.ts +9 -0
- package/dist/utility/packageUtils.js +52 -0
- package/dist/utility/packageUtils.js.map +1 -0
- package/dist/utility/password.d.ts +20 -0
- package/dist/utility/password.js +119 -0
- package/dist/utility/password.js.map +1 -0
- package/dist/utility/processManagement/processManagement.d.ts +35 -0
- package/dist/utility/processManagement/processManagement.js +188 -0
- package/dist/utility/processManagement/processManagement.js.map +1 -0
- package/dist/utility/processManagement/servicesConfig.d.ts +29 -0
- package/dist/utility/processManagement/servicesConfig.js +52 -0
- package/dist/utility/processManagement/servicesConfig.js.map +1 -0
- package/dist/utility/scripts/restartHdb.d.ts +1 -0
- package/dist/utility/scripts/restartHdb.js +23 -0
- package/dist/utility/scripts/restartHdb.js.map +1 -0
- package/dist/utility/signalling.d.ts +2 -0
- package/dist/utility/signalling.js +35 -0
- package/dist/utility/signalling.js.map +1 -0
- package/dist/utility/terms/certificates.d.ts +46 -0
- package/dist/utility/terms/certificates.js +65 -0
- package/dist/utility/terms/certificates.js.map +1 -0
- package/dist/utility/when.d.ts +3 -0
- package/dist/utility/when.js +18 -0
- package/dist/utility/when.js.map +1 -0
- package/dist/validation/bulkDeleteValidator.d.ts +2 -0
- package/dist/validation/bulkDeleteValidator.js +21 -0
- package/dist/validation/bulkDeleteValidator.js.map +1 -0
- package/dist/validation/check_permissions.d.ts +2 -0
- package/dist/validation/check_permissions.js +20 -0
- package/dist/validation/check_permissions.js.map +1 -0
- package/dist/validation/common_validators.d.ts +19 -0
- package/dist/validation/common_validators.js +76 -0
- package/dist/validation/common_validators.js.map +1 -0
- package/dist/validation/configValidator.d.ts +8 -0
- package/dist/validation/configValidator.js +292 -0
- package/dist/validation/configValidator.js.map +1 -0
- package/dist/validation/deleteValidator.d.ts +2 -0
- package/dist/validation/deleteValidator.js +15 -0
- package/dist/validation/deleteValidator.js.map +1 -0
- package/dist/validation/fileLoadValidator.d.ts +4 -0
- package/dist/validation/fileLoadValidator.js +138 -0
- package/dist/validation/fileLoadValidator.js.map +1 -0
- package/dist/validation/insertValidator.d.ts +2 -0
- package/dist/validation/insertValidator.js +38 -0
- package/dist/validation/insertValidator.js.map +1 -0
- package/dist/validation/installValidator.d.ts +7 -0
- package/dist/validation/installValidator.js +28 -0
- package/dist/validation/installValidator.js.map +1 -0
- package/dist/validation/readLogValidator.d.ts +2 -0
- package/dist/validation/readLogValidator.js +48 -0
- package/dist/validation/readLogValidator.js.map +1 -0
- package/dist/validation/role_validation.d.ts +3 -0
- package/dist/validation/role_validation.js +284 -0
- package/dist/validation/role_validation.js.map +1 -0
- package/dist/validation/schemaMetadataValidator.d.ts +16 -0
- package/dist/validation/schemaMetadataValidator.js +38 -0
- package/dist/validation/schemaMetadataValidator.js.map +1 -0
- package/dist/validation/searchValidator.d.ts +2 -0
- package/dist/validation/searchValidator.js +141 -0
- package/dist/validation/searchValidator.js.map +1 -0
- package/dist/validation/statusValidator.d.ts +19 -0
- package/dist/validation/statusValidator.js +95 -0
- package/dist/validation/statusValidator.js.map +1 -0
- package/dist/validation/transactionLogValidator.d.ts +2 -0
- package/dist/validation/transactionLogValidator.js +28 -0
- package/dist/validation/transactionLogValidator.js.map +1 -0
- package/dist/validation/user_validation.d.ts +3 -0
- package/dist/validation/user_validation.js +52 -0
- package/dist/validation/user_validation.js.map +1 -0
- package/dist/validation/validationWrapper.d.ts +15 -0
- package/dist/validation/validationWrapper.js +95 -0
- package/dist/validation/validationWrapper.js.map +1 -0
- package/package.json +225 -0
- package/static/README.md +13 -0
- package/static/ascii_logo.txt +21 -0
- package/static/defaultConfig.yaml +75 -0
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides the main table implementation of the Resource API, providing full access to Harper
|
|
3
|
+
* tables through the interface defined by the Resource class. This module is responsible for handling these
|
|
4
|
+
* table-level interactions, loading records, updating records, querying, and more.
|
|
5
|
+
*/
|
|
6
|
+
import { type Database } from 'lmdb';
|
|
7
|
+
import type { ResourceInterface, SubscriptionRequest, Id, Context, Sort, SubSelect, RequestTargetOrId } from './ResourceInterface.ts';
|
|
8
|
+
import type { User } from '../security/user.ts';
|
|
9
|
+
import { type RecordObject, type Entry } from './RecordEncoder.ts';
|
|
10
|
+
import { RequestTarget } from './RequestTarget.ts';
|
|
11
|
+
export type Attribute = {
|
|
12
|
+
name: string;
|
|
13
|
+
type: string;
|
|
14
|
+
assignCreatedTime?: boolean;
|
|
15
|
+
assignUpdatedTime?: boolean;
|
|
16
|
+
expiresAt?: boolean;
|
|
17
|
+
isPrimaryKey?: boolean;
|
|
18
|
+
};
|
|
19
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
20
|
+
export declare const INVALIDATED = 1;
|
|
21
|
+
export declare const EVICTED = 8;
|
|
22
|
+
export interface Table {
|
|
23
|
+
primaryStore: Database;
|
|
24
|
+
auditStore: Database;
|
|
25
|
+
indices: {};
|
|
26
|
+
databasePath: string;
|
|
27
|
+
tableName: string;
|
|
28
|
+
databaseName: string;
|
|
29
|
+
attributes: any[];
|
|
30
|
+
primaryKey: string;
|
|
31
|
+
splitSegments?: boolean;
|
|
32
|
+
replicate?: boolean;
|
|
33
|
+
subscriptions: Map<any, Function[]>;
|
|
34
|
+
expirationMS: number;
|
|
35
|
+
indexingOperations?: Promise<void>;
|
|
36
|
+
source?: new () => ResourceInterface;
|
|
37
|
+
Transaction: ReturnType<typeof makeTable>;
|
|
38
|
+
}
|
|
39
|
+
type ResidencyDefinition = number | string[] | void;
|
|
40
|
+
/**
|
|
41
|
+
* This returns a Table class for the given table settings (determined from the metadata table)
|
|
42
|
+
* Instances of the returned class are Resource instances, intended to provide a consistent view or transaction of the table
|
|
43
|
+
* @param options
|
|
44
|
+
*/
|
|
45
|
+
export declare function makeTable(options: any): {
|
|
46
|
+
new <Record extends object = any>(identifier: Id, source: any): {
|
|
47
|
+
"__#private@#record": any;
|
|
48
|
+
"__#private@#changes": any;
|
|
49
|
+
"__#private@#version"?: number;
|
|
50
|
+
"__#private@#entry"?: Entry;
|
|
51
|
+
"__#private@#savingOperation"?: any;
|
|
52
|
+
getProperty: (name: string) => any;
|
|
53
|
+
_loadRecord<Record_1 extends object = any>(target: RequestTarget, request: Context, resourceOptions?: any): MaybePromise<{
|
|
54
|
+
"__#private@#record": any;
|
|
55
|
+
"__#private@#changes": any;
|
|
56
|
+
"__#private@#version"?: number;
|
|
57
|
+
"__#private@#entry"?: Entry;
|
|
58
|
+
"__#private@#savingOperation"?: any;
|
|
59
|
+
getProperty: (name: string) => any;
|
|
60
|
+
_loadRecord<Record_1 extends object = any>(target: RequestTarget, request: Context, resourceOptions?: any): MaybePromise</*elided*/ any>;
|
|
61
|
+
/**
|
|
62
|
+
* This is a request to explicitly ensure that the record is loaded from source, rather than only using the local record.
|
|
63
|
+
* This will load from source if the current record is expired, missing, or invalidated.
|
|
64
|
+
* @returns
|
|
65
|
+
*/
|
|
66
|
+
ensureLoaded(): unknown;
|
|
67
|
+
/**
|
|
68
|
+
* This retrieves the data of this resource. By default, with no argument, just return `this`.
|
|
69
|
+
*/
|
|
70
|
+
get(): /*elided*/ any;
|
|
71
|
+
/**
|
|
72
|
+
* This retrieves the data of this resource.
|
|
73
|
+
* @param target - If included, is an identifier/query that specifies the requested target to retrieve and query
|
|
74
|
+
*/
|
|
75
|
+
get(target: RequestTargetOrId): Record_1 | AsyncIterable<Record_1> | Promise<Record_1 | AsyncIterable<Record_1>>;
|
|
76
|
+
/**
|
|
77
|
+
* Determine if the user is allowed to get/read data from the current resource
|
|
78
|
+
*/
|
|
79
|
+
allowRead(user: User, target: RequestTarget, context: Context): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Determine if the user is allowed to update data from the current resource
|
|
82
|
+
*/
|
|
83
|
+
allowUpdate(user: User, updatedData: Record_1, context: Context): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Determine if the user is allowed to create new data in the current resource
|
|
86
|
+
*/
|
|
87
|
+
allowCreate(user: User, newData: Record_1, context: Context): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Determine if the user is allowed to delete from the current resource
|
|
90
|
+
*/
|
|
91
|
+
allowDelete(user: User, target: RequestTarget, context: Context): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Start updating a record. The returned resource will record changes which are written
|
|
94
|
+
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
95
|
+
*/
|
|
96
|
+
update(updates: Record_1 & RecordObject, fullUpdate: true): any;
|
|
97
|
+
update(updates: Partial<Record_1 & RecordObject>, target?: RequestTarget): any;
|
|
98
|
+
update(target: RequestTarget, updates?: any): any;
|
|
99
|
+
/**
|
|
100
|
+
* Save any changes into this instance to the current transaction
|
|
101
|
+
*/
|
|
102
|
+
save(): void;
|
|
103
|
+
addTo(property: any, value: any): void;
|
|
104
|
+
subtractFrom(property: any, value: any): void;
|
|
105
|
+
getMetadata(): Entry;
|
|
106
|
+
getRecord(): any;
|
|
107
|
+
getChanges(): any;
|
|
108
|
+
_setChanges(changes: any): void;
|
|
109
|
+
setRecord(record: any): void;
|
|
110
|
+
invalidate(target: RequestTargetOrId): void | Promise<void>;
|
|
111
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
112
|
+
_writeRelocate(id: Id, options: any): void;
|
|
113
|
+
/**
|
|
114
|
+
* This is intended to acquire a lock on a record from the whole cluster.
|
|
115
|
+
*/
|
|
116
|
+
lock(): void;
|
|
117
|
+
/**
|
|
118
|
+
* Store the provided record data into the current resource. This is not written
|
|
119
|
+
* until the corresponding transaction is committed.
|
|
120
|
+
*/
|
|
121
|
+
put(target: RequestTarget, record: Record_1 & RecordObject): void | (Record_1 & Partial<RecordObject>) | Promise<void | (Record_1 & Partial<RecordObject>)>;
|
|
122
|
+
create(target: RequestTarget, record: Partial<Record_1 & RecordObject>): void | (Record_1 & Partial<RecordObject>) | Promise<Record_1 & Partial<RecordObject>>;
|
|
123
|
+
patch(target: RequestTarget, recordUpdate: Partial<Record_1 & RecordObject>): void | (Record_1 & Partial<RecordObject>) | Promise<void | (Record_1 & Partial<RecordObject>)>;
|
|
124
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): import("./DatabaseTransaction.ts").TransactionWrite;
|
|
125
|
+
delete(target: RequestTargetOrId): Promise<boolean>;
|
|
126
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
127
|
+
search(target: RequestTarget): AsyncIterable<Record_1 & Partial<RecordObject>>;
|
|
128
|
+
subscribe(request: SubscriptionRequest): Promise<AsyncIterable<Record_1>>;
|
|
129
|
+
doesExist(): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Publishing a message to a record adds an (observable) entry in the audit log, but does not change
|
|
132
|
+
* the record at all. This entries should be replicated and trigger subscription listeners.
|
|
133
|
+
* @param id
|
|
134
|
+
* @param message
|
|
135
|
+
* @param options
|
|
136
|
+
*/
|
|
137
|
+
publish(target: RequestTarget, message: Record_1, options?: any): void | Promise<void>;
|
|
138
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
139
|
+
validate(record: any, patch?: boolean): void;
|
|
140
|
+
getUpdatedTime(): number;
|
|
141
|
+
readonly "__#private@#id": Id;
|
|
142
|
+
readonly "__#private@#context": Context | import("./ResourceInterface.ts").SourceContext;
|
|
143
|
+
"__#private@#isCollection": boolean;
|
|
144
|
+
post(target: RequestTargetOrId, newRecord: Partial<Record_1 & RecordObject>): Promise<Record_1 & Partial<RecordObject>>;
|
|
145
|
+
get isCollection(): boolean;
|
|
146
|
+
connect(target: RequestTarget, incomingMessages: import("./IterableEventQueue.ts").IterableEventQueue<Record_1>): AsyncIterable<Record_1>;
|
|
147
|
+
getId(): Id;
|
|
148
|
+
getContext(): Context | import("./ResourceInterface.ts").SourceContext;
|
|
149
|
+
getCurrentUser(): User | undefined;
|
|
150
|
+
}>;
|
|
151
|
+
/**
|
|
152
|
+
* This is a request to explicitly ensure that the record is loaded from source, rather than only using the local record.
|
|
153
|
+
* This will load from source if the current record is expired, missing, or invalidated.
|
|
154
|
+
* @returns
|
|
155
|
+
*/
|
|
156
|
+
ensureLoaded(): unknown;
|
|
157
|
+
/**
|
|
158
|
+
* This retrieves the data of this resource. By default, with no argument, just return `this`.
|
|
159
|
+
*/
|
|
160
|
+
get(): /*elided*/ any | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* This retrieves the data of this resource.
|
|
163
|
+
* @param target - If included, is an identifier/query that specifies the requested target to retrieve and query
|
|
164
|
+
*/
|
|
165
|
+
get(target: RequestTargetOrId): Record | AsyncIterable<Record> | Promise<Record | AsyncIterable<Record>>;
|
|
166
|
+
/**
|
|
167
|
+
* Determine if the user is allowed to get/read data from the current resource
|
|
168
|
+
*/
|
|
169
|
+
allowRead(user: User, target: RequestTarget, context: Context): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Determine if the user is allowed to update data from the current resource
|
|
172
|
+
*/
|
|
173
|
+
allowUpdate(user: User, updatedData: Record, context: Context): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Determine if the user is allowed to create new data in the current resource
|
|
176
|
+
*/
|
|
177
|
+
allowCreate(user: User, newData: Record, context: Context): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Determine if the user is allowed to delete from the current resource
|
|
180
|
+
*/
|
|
181
|
+
allowDelete(user: User, target: RequestTarget, context: Context): boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Start updating a record. The returned resource will record changes which are written
|
|
184
|
+
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
185
|
+
*/
|
|
186
|
+
update(updates: Record & RecordObject, fullUpdate: true): any;
|
|
187
|
+
update(updates: Partial<Record & RecordObject>, target?: RequestTarget): any;
|
|
188
|
+
update(target: RequestTarget, updates?: any): any;
|
|
189
|
+
/**
|
|
190
|
+
* Save any changes into this instance to the current transaction
|
|
191
|
+
*/
|
|
192
|
+
save(): void;
|
|
193
|
+
addTo(property: any, value: any): void;
|
|
194
|
+
subtractFrom(property: any, value: any): void;
|
|
195
|
+
getMetadata(): Entry;
|
|
196
|
+
getRecord(): any;
|
|
197
|
+
getChanges(): any;
|
|
198
|
+
_setChanges(changes: any): void;
|
|
199
|
+
setRecord(record: any): void;
|
|
200
|
+
invalidate(target: RequestTargetOrId): void | Promise<void>;
|
|
201
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
202
|
+
_writeRelocate(id: Id, options: any): void;
|
|
203
|
+
/**
|
|
204
|
+
* This is intended to acquire a lock on a record from the whole cluster.
|
|
205
|
+
*/
|
|
206
|
+
lock(): void;
|
|
207
|
+
/**
|
|
208
|
+
* Store the provided record data into the current resource. This is not written
|
|
209
|
+
* until the corresponding transaction is committed.
|
|
210
|
+
*/
|
|
211
|
+
put(target: RequestTarget, record: Record & RecordObject): void | (Record & Partial<RecordObject>) | Promise<void | (Record & Partial<RecordObject>)>;
|
|
212
|
+
create(target: RequestTarget, record: Partial<Record & RecordObject>): void | (Record & Partial<RecordObject>) | Promise<Record & Partial<RecordObject>>;
|
|
213
|
+
patch(target: RequestTarget, recordUpdate: Partial<Record & RecordObject>): void | (Record & Partial<RecordObject>) | Promise<void | (Record & Partial<RecordObject>)>;
|
|
214
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): import("./DatabaseTransaction.ts").TransactionWrite;
|
|
215
|
+
delete(target: RequestTargetOrId): Promise<boolean>;
|
|
216
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
217
|
+
search(target: RequestTarget): AsyncIterable<Record & Partial<RecordObject>>;
|
|
218
|
+
subscribe(request: SubscriptionRequest): Promise<AsyncIterable<Record>>;
|
|
219
|
+
doesExist(): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Publishing a message to a record adds an (observable) entry in the audit log, but does not change
|
|
222
|
+
* the record at all. This entries should be replicated and trigger subscription listeners.
|
|
223
|
+
* @param id
|
|
224
|
+
* @param message
|
|
225
|
+
* @param options
|
|
226
|
+
*/
|
|
227
|
+
publish(target: RequestTarget, message: Record, options?: any): void | Promise<void>;
|
|
228
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
229
|
+
validate(record: any, patch?: boolean): void;
|
|
230
|
+
getUpdatedTime(): number;
|
|
231
|
+
readonly "__#private@#id": Id;
|
|
232
|
+
readonly "__#private@#context": Context | import("./ResourceInterface.ts").SourceContext;
|
|
233
|
+
"__#private@#isCollection": boolean;
|
|
234
|
+
post(target: RequestTargetOrId, newRecord: Partial<Record & RecordObject>): Promise<Record & Partial<RecordObject>>;
|
|
235
|
+
get isCollection(): boolean;
|
|
236
|
+
connect(target: RequestTarget, incomingMessages: import("./IterableEventQueue.ts").IterableEventQueue<Record>): AsyncIterable<Record>;
|
|
237
|
+
getId(): Id;
|
|
238
|
+
getContext(): Context | import("./ResourceInterface.ts").SourceContext;
|
|
239
|
+
getCurrentUser(): User | undefined;
|
|
240
|
+
};
|
|
241
|
+
name: any;
|
|
242
|
+
primaryStore: any;
|
|
243
|
+
auditStore: any;
|
|
244
|
+
primaryKey: any;
|
|
245
|
+
tableName: any;
|
|
246
|
+
tableId: any;
|
|
247
|
+
indices: any;
|
|
248
|
+
audit: any;
|
|
249
|
+
databasePath: any;
|
|
250
|
+
databaseName: any;
|
|
251
|
+
attributes: any;
|
|
252
|
+
replicate: any;
|
|
253
|
+
sealed: any;
|
|
254
|
+
splitSegments: any;
|
|
255
|
+
createdTimeProperty: Attribute;
|
|
256
|
+
updatedTimeProperty: Attribute;
|
|
257
|
+
propertyResolvers: any;
|
|
258
|
+
userResolvers: {};
|
|
259
|
+
source?: /*elided*/ any;
|
|
260
|
+
sourceOptions: any;
|
|
261
|
+
intermediateSource: boolean;
|
|
262
|
+
getResidencyById: (id: Id) => number | void;
|
|
263
|
+
get expirationMS(): any;
|
|
264
|
+
dbisDB: any;
|
|
265
|
+
schemaDefined: any;
|
|
266
|
+
/**
|
|
267
|
+
* This defines a source for a table. This effectively makes a table into a cache, where the canonical
|
|
268
|
+
* source of data (or source of truth) is provided here in the Resource argument. Additional options
|
|
269
|
+
* can be provided to indicate how the caching should be handled.
|
|
270
|
+
* @param source
|
|
271
|
+
* @param options
|
|
272
|
+
* @returns
|
|
273
|
+
*/
|
|
274
|
+
sourcedFrom(source: any, options: any): /*elided*/ any;
|
|
275
|
+
get isCaching(): any;
|
|
276
|
+
/** Indicates if the events should be revalidated when they are received. By default we do this if the get
|
|
277
|
+
* method is overriden */
|
|
278
|
+
get shouldRevalidateEvents(): boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Gets a resource instance, as defined by the Resource class, adding the table-specific handling
|
|
281
|
+
* of also loading the stored record into the resource instance.
|
|
282
|
+
* @param target
|
|
283
|
+
* @param request
|
|
284
|
+
* @param resourceOptions An important option is ensureLoaded, which can be used to indicate that it is necessary for a caching table to load data from the source if there is not a local copy of the data in the table (usually not necessary for a delete, for example).
|
|
285
|
+
* @returns
|
|
286
|
+
*/
|
|
287
|
+
getResource<Record extends object = any>(target: RequestTarget, request: Context, resourceOptions?: any): Promise<{
|
|
288
|
+
"__#private@#record": any;
|
|
289
|
+
"__#private@#changes": any;
|
|
290
|
+
"__#private@#version"?: number;
|
|
291
|
+
"__#private@#entry"?: Entry;
|
|
292
|
+
"__#private@#savingOperation"?: any;
|
|
293
|
+
getProperty: (name: string) => any;
|
|
294
|
+
_loadRecord<Record_1 extends object = any>(target: RequestTarget, request: Context, resourceOptions?: any): MaybePromise<{
|
|
295
|
+
"__#private@#record": any;
|
|
296
|
+
"__#private@#changes": any;
|
|
297
|
+
"__#private@#version"?: number;
|
|
298
|
+
"__#private@#entry"?: Entry;
|
|
299
|
+
"__#private@#savingOperation"?: any;
|
|
300
|
+
getProperty: (name: string) => any;
|
|
301
|
+
_loadRecord<Record_1 extends object = any>(target: RequestTarget, request: Context, resourceOptions?: any): MaybePromise</*elided*/ any>;
|
|
302
|
+
/**
|
|
303
|
+
* This is a request to explicitly ensure that the record is loaded from source, rather than only using the local record.
|
|
304
|
+
* This will load from source if the current record is expired, missing, or invalidated.
|
|
305
|
+
* @returns
|
|
306
|
+
*/
|
|
307
|
+
ensureLoaded(): unknown;
|
|
308
|
+
/**
|
|
309
|
+
* This retrieves the data of this resource. By default, with no argument, just return `this`.
|
|
310
|
+
*/
|
|
311
|
+
get(): /*elided*/ any;
|
|
312
|
+
/**
|
|
313
|
+
* This retrieves the data of this resource.
|
|
314
|
+
* @param target - If included, is an identifier/query that specifies the requested target to retrieve and query
|
|
315
|
+
*/
|
|
316
|
+
get(target: RequestTargetOrId): Record_1 | AsyncIterable<Record_1> | Promise<Record_1 | AsyncIterable<Record_1>>;
|
|
317
|
+
/**
|
|
318
|
+
* Determine if the user is allowed to get/read data from the current resource
|
|
319
|
+
*/
|
|
320
|
+
allowRead(user: User, target: RequestTarget, context: Context): boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Determine if the user is allowed to update data from the current resource
|
|
323
|
+
*/
|
|
324
|
+
allowUpdate(user: User, updatedData: Record_1, context: Context): boolean;
|
|
325
|
+
/**
|
|
326
|
+
* Determine if the user is allowed to create new data in the current resource
|
|
327
|
+
*/
|
|
328
|
+
allowCreate(user: User, newData: Record_1, context: Context): boolean;
|
|
329
|
+
/**
|
|
330
|
+
* Determine if the user is allowed to delete from the current resource
|
|
331
|
+
*/
|
|
332
|
+
allowDelete(user: User, target: RequestTarget, context: Context): boolean;
|
|
333
|
+
/**
|
|
334
|
+
* Start updating a record. The returned resource will record changes which are written
|
|
335
|
+
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
336
|
+
*/
|
|
337
|
+
update(updates: Record_1 & RecordObject, fullUpdate: true): any;
|
|
338
|
+
update(updates: Partial<Record_1 & RecordObject>, target?: RequestTarget): any;
|
|
339
|
+
update(target: RequestTarget, updates?: any): any;
|
|
340
|
+
/**
|
|
341
|
+
* Save any changes into this instance to the current transaction
|
|
342
|
+
*/
|
|
343
|
+
save(): void;
|
|
344
|
+
addTo(property: any, value: any): void;
|
|
345
|
+
subtractFrom(property: any, value: any): void;
|
|
346
|
+
getMetadata(): Entry;
|
|
347
|
+
getRecord(): any;
|
|
348
|
+
getChanges(): any;
|
|
349
|
+
_setChanges(changes: any): void;
|
|
350
|
+
setRecord(record: any): void;
|
|
351
|
+
invalidate(target: RequestTargetOrId): void | Promise<void>;
|
|
352
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
353
|
+
_writeRelocate(id: Id, options: any): void;
|
|
354
|
+
/**
|
|
355
|
+
* This is intended to acquire a lock on a record from the whole cluster.
|
|
356
|
+
*/
|
|
357
|
+
lock(): void;
|
|
358
|
+
/**
|
|
359
|
+
* Store the provided record data into the current resource. This is not written
|
|
360
|
+
* until the corresponding transaction is committed.
|
|
361
|
+
*/
|
|
362
|
+
put(target: RequestTarget, record: Record_1 & RecordObject): void | (Record_1 & Partial<RecordObject>) | Promise<void | (Record_1 & Partial<RecordObject>)>;
|
|
363
|
+
create(target: RequestTarget, record: Partial<Record_1 & RecordObject>): void | (Record_1 & Partial<RecordObject>) | Promise<Record_1 & Partial<RecordObject>>;
|
|
364
|
+
patch(target: RequestTarget, recordUpdate: Partial<Record_1 & RecordObject>): void | (Record_1 & Partial<RecordObject>) | Promise<void | (Record_1 & Partial<RecordObject>)>;
|
|
365
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): import("./DatabaseTransaction.ts").TransactionWrite;
|
|
366
|
+
delete(target: RequestTargetOrId): Promise<boolean>;
|
|
367
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
368
|
+
search(target: RequestTarget): AsyncIterable<Record_1 & Partial<RecordObject>>;
|
|
369
|
+
subscribe(request: SubscriptionRequest): Promise<AsyncIterable<Record_1>>;
|
|
370
|
+
doesExist(): boolean;
|
|
371
|
+
/**
|
|
372
|
+
* Publishing a message to a record adds an (observable) entry in the audit log, but does not change
|
|
373
|
+
* the record at all. This entries should be replicated and trigger subscription listeners.
|
|
374
|
+
* @param id
|
|
375
|
+
* @param message
|
|
376
|
+
* @param options
|
|
377
|
+
*/
|
|
378
|
+
publish(target: RequestTarget, message: Record_1, options?: any): void | Promise<void>;
|
|
379
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
380
|
+
validate(record: any, patch?: boolean): void;
|
|
381
|
+
getUpdatedTime(): number;
|
|
382
|
+
readonly "__#private@#id": Id;
|
|
383
|
+
readonly "__#private@#context": Context | import("./ResourceInterface.ts").SourceContext;
|
|
384
|
+
"__#private@#isCollection": boolean;
|
|
385
|
+
post(target: RequestTargetOrId, newRecord: Partial<Record_1 & RecordObject>): Promise<Record_1 & Partial<RecordObject>>;
|
|
386
|
+
get isCollection(): boolean;
|
|
387
|
+
connect(target: RequestTarget, incomingMessages: import("./IterableEventQueue.ts").IterableEventQueue<Record_1>): AsyncIterable<Record_1>;
|
|
388
|
+
getId(): Id;
|
|
389
|
+
getContext(): Context | import("./ResourceInterface.ts").SourceContext;
|
|
390
|
+
getCurrentUser(): User | undefined;
|
|
391
|
+
}>;
|
|
392
|
+
/**
|
|
393
|
+
* This is a request to explicitly ensure that the record is loaded from source, rather than only using the local record.
|
|
394
|
+
* This will load from source if the current record is expired, missing, or invalidated.
|
|
395
|
+
* @returns
|
|
396
|
+
*/
|
|
397
|
+
ensureLoaded(): unknown;
|
|
398
|
+
/**
|
|
399
|
+
* This retrieves the data of this resource. By default, with no argument, just return `this`.
|
|
400
|
+
*/
|
|
401
|
+
get(): /*elided*/ any;
|
|
402
|
+
/**
|
|
403
|
+
* This retrieves the data of this resource.
|
|
404
|
+
* @param target - If included, is an identifier/query that specifies the requested target to retrieve and query
|
|
405
|
+
*/
|
|
406
|
+
get(target: RequestTargetOrId): Record | AsyncIterable<Record> | Promise<Record | AsyncIterable<Record>>;
|
|
407
|
+
/**
|
|
408
|
+
* Determine if the user is allowed to get/read data from the current resource
|
|
409
|
+
*/
|
|
410
|
+
allowRead(user: User, target: RequestTarget, context: Context): boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Determine if the user is allowed to update data from the current resource
|
|
413
|
+
*/
|
|
414
|
+
allowUpdate(user: User, updatedData: Record, context: Context): boolean;
|
|
415
|
+
/**
|
|
416
|
+
* Determine if the user is allowed to create new data in the current resource
|
|
417
|
+
*/
|
|
418
|
+
allowCreate(user: User, newData: Record, context: Context): boolean;
|
|
419
|
+
/**
|
|
420
|
+
* Determine if the user is allowed to delete from the current resource
|
|
421
|
+
*/
|
|
422
|
+
allowDelete(user: User, target: RequestTarget, context: Context): boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Start updating a record. The returned resource will record changes which are written
|
|
425
|
+
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
426
|
+
*/
|
|
427
|
+
update(updates: Record & RecordObject, fullUpdate: true): any;
|
|
428
|
+
update(updates: Partial<Record & RecordObject>, target?: RequestTarget): any;
|
|
429
|
+
update(target: RequestTarget, updates?: any): any;
|
|
430
|
+
/**
|
|
431
|
+
* Save any changes into this instance to the current transaction
|
|
432
|
+
*/
|
|
433
|
+
save(): void;
|
|
434
|
+
addTo(property: any, value: any): void;
|
|
435
|
+
subtractFrom(property: any, value: any): void;
|
|
436
|
+
getMetadata(): Entry;
|
|
437
|
+
getRecord(): any;
|
|
438
|
+
getChanges(): any;
|
|
439
|
+
_setChanges(changes: any): void;
|
|
440
|
+
setRecord(record: any): void;
|
|
441
|
+
invalidate(target: RequestTargetOrId): void | Promise<void>;
|
|
442
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
443
|
+
_writeRelocate(id: Id, options: any): void;
|
|
444
|
+
/**
|
|
445
|
+
* This is intended to acquire a lock on a record from the whole cluster.
|
|
446
|
+
*/
|
|
447
|
+
lock(): void;
|
|
448
|
+
/**
|
|
449
|
+
* Store the provided record data into the current resource. This is not written
|
|
450
|
+
* until the corresponding transaction is committed.
|
|
451
|
+
*/
|
|
452
|
+
put(target: RequestTarget, record: Record & RecordObject): void | (Record & Partial<RecordObject>) | Promise<void | (Record & Partial<RecordObject>)>;
|
|
453
|
+
create(target: RequestTarget, record: Partial<Record & RecordObject>): void | (Record & Partial<RecordObject>) | Promise<Record & Partial<RecordObject>>;
|
|
454
|
+
patch(target: RequestTarget, recordUpdate: Partial<Record & RecordObject>): void | (Record & Partial<RecordObject>) | Promise<void | (Record & Partial<RecordObject>)>;
|
|
455
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): import("./DatabaseTransaction.ts").TransactionWrite;
|
|
456
|
+
delete(target: RequestTargetOrId): Promise<boolean>;
|
|
457
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
458
|
+
search(target: RequestTarget): AsyncIterable<Record & Partial<RecordObject>>;
|
|
459
|
+
subscribe(request: SubscriptionRequest): Promise<AsyncIterable<Record>>;
|
|
460
|
+
doesExist(): boolean;
|
|
461
|
+
/**
|
|
462
|
+
* Publishing a message to a record adds an (observable) entry in the audit log, but does not change
|
|
463
|
+
* the record at all. This entries should be replicated and trigger subscription listeners.
|
|
464
|
+
* @param id
|
|
465
|
+
* @param message
|
|
466
|
+
* @param options
|
|
467
|
+
*/
|
|
468
|
+
publish(target: RequestTarget, message: Record, options?: any): void | Promise<void>;
|
|
469
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
470
|
+
validate(record: any, patch?: boolean): void;
|
|
471
|
+
getUpdatedTime(): number;
|
|
472
|
+
readonly "__#private@#id": Id;
|
|
473
|
+
readonly "__#private@#context": Context | import("./ResourceInterface.ts").SourceContext;
|
|
474
|
+
"__#private@#isCollection": boolean;
|
|
475
|
+
post(target: RequestTargetOrId, newRecord: Partial<Record & RecordObject>): Promise<Record & Partial<RecordObject>>;
|
|
476
|
+
get isCollection(): boolean;
|
|
477
|
+
connect(target: RequestTarget, incomingMessages: import("./IterableEventQueue.ts").IterableEventQueue<Record>): AsyncIterable<Record>;
|
|
478
|
+
getId(): Id;
|
|
479
|
+
getContext(): Context | import("./ResourceInterface.ts").SourceContext;
|
|
480
|
+
getCurrentUser(): User | undefined;
|
|
481
|
+
}> | {
|
|
482
|
+
"__#private@#record": any;
|
|
483
|
+
"__#private@#changes": any;
|
|
484
|
+
"__#private@#version"?: number;
|
|
485
|
+
"__#private@#entry"?: Entry;
|
|
486
|
+
"__#private@#savingOperation"?: any;
|
|
487
|
+
getProperty: (name: string) => any;
|
|
488
|
+
_loadRecord<Record_1 extends object = any>(target: RequestTarget, request: Context, resourceOptions?: any): MaybePromise<{
|
|
489
|
+
"__#private@#record": any;
|
|
490
|
+
"__#private@#changes": any;
|
|
491
|
+
"__#private@#version"?: number;
|
|
492
|
+
"__#private@#entry"?: Entry;
|
|
493
|
+
"__#private@#savingOperation"?: any;
|
|
494
|
+
getProperty: (name: string) => any;
|
|
495
|
+
_loadRecord<Record_1 extends object = any>(target: RequestTarget, request: Context, resourceOptions?: any): MaybePromise</*elided*/ any>;
|
|
496
|
+
/**
|
|
497
|
+
* This is a request to explicitly ensure that the record is loaded from source, rather than only using the local record.
|
|
498
|
+
* This will load from source if the current record is expired, missing, or invalidated.
|
|
499
|
+
* @returns
|
|
500
|
+
*/
|
|
501
|
+
ensureLoaded(): unknown;
|
|
502
|
+
/**
|
|
503
|
+
* This retrieves the data of this resource. By default, with no argument, just return `this`.
|
|
504
|
+
*/
|
|
505
|
+
get(): /*elided*/ any;
|
|
506
|
+
/**
|
|
507
|
+
* This retrieves the data of this resource.
|
|
508
|
+
* @param target - If included, is an identifier/query that specifies the requested target to retrieve and query
|
|
509
|
+
*/
|
|
510
|
+
get(target: RequestTargetOrId): Record_1 | AsyncIterable<Record_1> | Promise<Record_1 | AsyncIterable<Record_1>>;
|
|
511
|
+
/**
|
|
512
|
+
* Determine if the user is allowed to get/read data from the current resource
|
|
513
|
+
*/
|
|
514
|
+
allowRead(user: User, target: RequestTarget, context: Context): boolean;
|
|
515
|
+
/**
|
|
516
|
+
* Determine if the user is allowed to update data from the current resource
|
|
517
|
+
*/
|
|
518
|
+
allowUpdate(user: User, updatedData: Record_1, context: Context): boolean;
|
|
519
|
+
/**
|
|
520
|
+
* Determine if the user is allowed to create new data in the current resource
|
|
521
|
+
*/
|
|
522
|
+
allowCreate(user: User, newData: Record_1, context: Context): boolean;
|
|
523
|
+
/**
|
|
524
|
+
* Determine if the user is allowed to delete from the current resource
|
|
525
|
+
*/
|
|
526
|
+
allowDelete(user: User, target: RequestTarget, context: Context): boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Start updating a record. The returned resource will record changes which are written
|
|
529
|
+
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
530
|
+
*/
|
|
531
|
+
update(updates: Record_1 & RecordObject, fullUpdate: true): any;
|
|
532
|
+
update(updates: Partial<Record_1 & RecordObject>, target?: RequestTarget): any;
|
|
533
|
+
update(target: RequestTarget, updates?: any): any;
|
|
534
|
+
/**
|
|
535
|
+
* Save any changes into this instance to the current transaction
|
|
536
|
+
*/
|
|
537
|
+
save(): void;
|
|
538
|
+
addTo(property: any, value: any): void;
|
|
539
|
+
subtractFrom(property: any, value: any): void;
|
|
540
|
+
getMetadata(): Entry;
|
|
541
|
+
getRecord(): any;
|
|
542
|
+
getChanges(): any;
|
|
543
|
+
_setChanges(changes: any): void;
|
|
544
|
+
setRecord(record: any): void;
|
|
545
|
+
invalidate(target: RequestTargetOrId): void | Promise<void>;
|
|
546
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
547
|
+
_writeRelocate(id: Id, options: any): void;
|
|
548
|
+
/**
|
|
549
|
+
* This is intended to acquire a lock on a record from the whole cluster.
|
|
550
|
+
*/
|
|
551
|
+
lock(): void;
|
|
552
|
+
/**
|
|
553
|
+
* Store the provided record data into the current resource. This is not written
|
|
554
|
+
* until the corresponding transaction is committed.
|
|
555
|
+
*/
|
|
556
|
+
put(target: RequestTarget, record: Record_1 & RecordObject): void | (Record_1 & Partial<RecordObject>) | Promise<void | (Record_1 & Partial<RecordObject>)>;
|
|
557
|
+
create(target: RequestTarget, record: Partial<Record_1 & RecordObject>): void | (Record_1 & Partial<RecordObject>) | Promise<Record_1 & Partial<RecordObject>>;
|
|
558
|
+
patch(target: RequestTarget, recordUpdate: Partial<Record_1 & RecordObject>): void | (Record_1 & Partial<RecordObject>) | Promise<void | (Record_1 & Partial<RecordObject>)>;
|
|
559
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): import("./DatabaseTransaction.ts").TransactionWrite;
|
|
560
|
+
delete(target: RequestTargetOrId): Promise<boolean>;
|
|
561
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
562
|
+
search(target: RequestTarget): AsyncIterable<Record_1 & Partial<RecordObject>>;
|
|
563
|
+
subscribe(request: SubscriptionRequest): Promise<AsyncIterable<Record_1>>;
|
|
564
|
+
doesExist(): boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Publishing a message to a record adds an (observable) entry in the audit log, but does not change
|
|
567
|
+
* the record at all. This entries should be replicated and trigger subscription listeners.
|
|
568
|
+
* @param id
|
|
569
|
+
* @param message
|
|
570
|
+
* @param options
|
|
571
|
+
*/
|
|
572
|
+
publish(target: RequestTarget, message: Record_1, options?: any): void | Promise<void>;
|
|
573
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
574
|
+
validate(record: any, patch?: boolean): void;
|
|
575
|
+
getUpdatedTime(): number;
|
|
576
|
+
readonly "__#private@#id": Id;
|
|
577
|
+
readonly "__#private@#context": Context | import("./ResourceInterface.ts").SourceContext;
|
|
578
|
+
"__#private@#isCollection": boolean;
|
|
579
|
+
post(target: RequestTargetOrId, newRecord: Partial<Record_1 & RecordObject>): Promise<Record_1 & Partial<RecordObject>>;
|
|
580
|
+
get isCollection(): boolean;
|
|
581
|
+
connect(target: RequestTarget, incomingMessages: import("./IterableEventQueue.ts").IterableEventQueue<Record_1>): AsyncIterable<Record_1>;
|
|
582
|
+
getId(): Id;
|
|
583
|
+
getContext(): Context | import("./ResourceInterface.ts").SourceContext;
|
|
584
|
+
getCurrentUser(): User | undefined;
|
|
585
|
+
}>;
|
|
586
|
+
/**
|
|
587
|
+
* This is a request to explicitly ensure that the record is loaded from source, rather than only using the local record.
|
|
588
|
+
* This will load from source if the current record is expired, missing, or invalidated.
|
|
589
|
+
* @returns
|
|
590
|
+
*/
|
|
591
|
+
ensureLoaded(): unknown;
|
|
592
|
+
/**
|
|
593
|
+
* This retrieves the data of this resource. By default, with no argument, just return `this`.
|
|
594
|
+
*/
|
|
595
|
+
get(): /*elided*/ any;
|
|
596
|
+
/**
|
|
597
|
+
* This retrieves the data of this resource.
|
|
598
|
+
* @param target - If included, is an identifier/query that specifies the requested target to retrieve and query
|
|
599
|
+
*/
|
|
600
|
+
get(target: RequestTargetOrId): Record | AsyncIterable<Record> | Promise<Record | AsyncIterable<Record>>;
|
|
601
|
+
/**
|
|
602
|
+
* Determine if the user is allowed to get/read data from the current resource
|
|
603
|
+
*/
|
|
604
|
+
allowRead(user: User, target: RequestTarget, context: Context): boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Determine if the user is allowed to update data from the current resource
|
|
607
|
+
*/
|
|
608
|
+
allowUpdate(user: User, updatedData: Record, context: Context): boolean;
|
|
609
|
+
/**
|
|
610
|
+
* Determine if the user is allowed to create new data in the current resource
|
|
611
|
+
*/
|
|
612
|
+
allowCreate(user: User, newData: Record, context: Context): boolean;
|
|
613
|
+
/**
|
|
614
|
+
* Determine if the user is allowed to delete from the current resource
|
|
615
|
+
*/
|
|
616
|
+
allowDelete(user: User, target: RequestTarget, context: Context): boolean;
|
|
617
|
+
/**
|
|
618
|
+
* Start updating a record. The returned resource will record changes which are written
|
|
619
|
+
* once the corresponding transaction is committed. These changes can (eventually) include CRDT type operations.
|
|
620
|
+
*/
|
|
621
|
+
update(updates: Record & RecordObject, fullUpdate: true): any;
|
|
622
|
+
update(updates: Partial<Record & RecordObject>, target?: RequestTarget): any;
|
|
623
|
+
update(target: RequestTarget, updates?: any): any;
|
|
624
|
+
/**
|
|
625
|
+
* Save any changes into this instance to the current transaction
|
|
626
|
+
*/
|
|
627
|
+
save(): void;
|
|
628
|
+
addTo(property: any, value: any): void;
|
|
629
|
+
subtractFrom(property: any, value: any): void;
|
|
630
|
+
getMetadata(): Entry;
|
|
631
|
+
getRecord(): any;
|
|
632
|
+
getChanges(): any;
|
|
633
|
+
_setChanges(changes: any): void;
|
|
634
|
+
setRecord(record: any): void;
|
|
635
|
+
invalidate(target: RequestTargetOrId): void | Promise<void>;
|
|
636
|
+
_writeInvalidate(id: Id, partialRecord?: any, options?: any): void;
|
|
637
|
+
_writeRelocate(id: Id, options: any): void;
|
|
638
|
+
/**
|
|
639
|
+
* This is intended to acquire a lock on a record from the whole cluster.
|
|
640
|
+
*/
|
|
641
|
+
lock(): void;
|
|
642
|
+
/**
|
|
643
|
+
* Store the provided record data into the current resource. This is not written
|
|
644
|
+
* until the corresponding transaction is committed.
|
|
645
|
+
*/
|
|
646
|
+
put(target: RequestTarget, record: Record & RecordObject): void | (Record & Partial<RecordObject>) | Promise<void | (Record & Partial<RecordObject>)>;
|
|
647
|
+
create(target: RequestTarget, record: Partial<Record & RecordObject>): void | (Record & Partial<RecordObject>) | Promise<Record & Partial<RecordObject>>;
|
|
648
|
+
patch(target: RequestTarget, recordUpdate: Partial<Record & RecordObject>): void | (Record & Partial<RecordObject>) | Promise<void | (Record & Partial<RecordObject>)>;
|
|
649
|
+
_writeUpdate(id: Id, recordUpdate: any, fullUpdate: boolean, options?: any): import("./DatabaseTransaction.ts").TransactionWrite;
|
|
650
|
+
delete(target: RequestTargetOrId): Promise<boolean>;
|
|
651
|
+
_writeDelete(id: Id, options?: any): boolean;
|
|
652
|
+
search(target: RequestTarget): AsyncIterable<Record & Partial<RecordObject>>;
|
|
653
|
+
subscribe(request: SubscriptionRequest): Promise<AsyncIterable<Record>>;
|
|
654
|
+
doesExist(): boolean;
|
|
655
|
+
/**
|
|
656
|
+
* Publishing a message to a record adds an (observable) entry in the audit log, but does not change
|
|
657
|
+
* the record at all. This entries should be replicated and trigger subscription listeners.
|
|
658
|
+
* @param id
|
|
659
|
+
* @param message
|
|
660
|
+
* @param options
|
|
661
|
+
*/
|
|
662
|
+
publish(target: RequestTarget, message: Record, options?: any): void | Promise<void>;
|
|
663
|
+
_writePublish(id: Id, message: any, options?: any): void;
|
|
664
|
+
validate(record: any, patch?: boolean): void;
|
|
665
|
+
getUpdatedTime(): number;
|
|
666
|
+
readonly "__#private@#id": Id;
|
|
667
|
+
readonly "__#private@#context": Context | import("./ResourceInterface.ts").SourceContext;
|
|
668
|
+
"__#private@#isCollection": boolean;
|
|
669
|
+
post(target: RequestTargetOrId, newRecord: Partial<Record & RecordObject>): Promise<Record & Partial<RecordObject>>;
|
|
670
|
+
get isCollection(): boolean;
|
|
671
|
+
connect(target: RequestTarget, incomingMessages: import("./IterableEventQueue.ts").IterableEventQueue<Record>): AsyncIterable<Record>;
|
|
672
|
+
getId(): Id;
|
|
673
|
+
getContext(): Context | import("./ResourceInterface.ts").SourceContext;
|
|
674
|
+
getCurrentUser(): User | undefined;
|
|
675
|
+
};
|
|
676
|
+
_updateResource(resource: any, entry: any): void;
|
|
677
|
+
getNewId(): any;
|
|
678
|
+
/**
|
|
679
|
+
* Set TTL expiration for records in this table. On retrieval, record timestamps are checked for expiration.
|
|
680
|
+
* This also informs the scheduling for record eviction.
|
|
681
|
+
* @param expirationTime Time in seconds until records expire (are stale)
|
|
682
|
+
* @param evictionTime Time in seconds until records are evicted (removed)
|
|
683
|
+
*/
|
|
684
|
+
setTTLExpiration(expiration: number | {
|
|
685
|
+
expiration: number;
|
|
686
|
+
eviction?: number;
|
|
687
|
+
scanInterval?: number;
|
|
688
|
+
}): void;
|
|
689
|
+
getResidencyRecord(id: Id): any;
|
|
690
|
+
setResidency(getResidency?: (record: object, context: Context) => ResidencyDefinition): void;
|
|
691
|
+
setResidencyById(getResidencyById?: (id: Id) => number | void): void;
|
|
692
|
+
getResidency(record: object, context: Context): number | void | string[];
|
|
693
|
+
/**
|
|
694
|
+
* Turn on auditing at runtime
|
|
695
|
+
*/
|
|
696
|
+
enableAuditing(): void;
|
|
697
|
+
/**
|
|
698
|
+
* Coerce the id as a string to the correct type for the primary key
|
|
699
|
+
* @param id
|
|
700
|
+
* @returns
|
|
701
|
+
*/
|
|
702
|
+
coerceId(id: string): number | string;
|
|
703
|
+
dropTable(): Promise<void>;
|
|
704
|
+
/**
|
|
705
|
+
* Record the relocation of an entry (when a record is moved to a different node), return true if it is now located locally
|
|
706
|
+
* @param existingEntry
|
|
707
|
+
* @param entry
|
|
708
|
+
*/
|
|
709
|
+
_recordRelocate(existingEntry: any, entry: any): boolean;
|
|
710
|
+
/**
|
|
711
|
+
* Evicting a record will remove it from a caching table. This is not considered a canonical data change, and it is assumed that retrieving this record from the source will still yield the same record, this is only removing the local copy of the record.
|
|
712
|
+
*/
|
|
713
|
+
evict(id: any, existingRecord: any, existingVersion: any): any;
|
|
714
|
+
operation(operation: any, context: any): any;
|
|
715
|
+
/**
|
|
716
|
+
* This is responsible for ordering and select()ing the attributes/properties from returned entries
|
|
717
|
+
* @param select
|
|
718
|
+
* @param context
|
|
719
|
+
* @param filtered
|
|
720
|
+
* @param ensure_loaded
|
|
721
|
+
* @param canSkip
|
|
722
|
+
* @returns
|
|
723
|
+
*/
|
|
724
|
+
transformToOrderedSelect(entries: any[], select: (string | SubSelect)[], sort: Sort, context: Context, readTxn: any, transformToRecord: Function): any;
|
|
725
|
+
/**
|
|
726
|
+
* This is responsible for select()ing the attributes/properties from returned entries
|
|
727
|
+
* @param select
|
|
728
|
+
* @param context
|
|
729
|
+
* @param filtered
|
|
730
|
+
* @param ensure_loaded
|
|
731
|
+
* @param canSkip
|
|
732
|
+
* @returns
|
|
733
|
+
*/
|
|
734
|
+
transformEntryForSelect(select: any, context: any, readTxn: any, filtered: any, ensure_loaded?: any, canSkip?: any): (entry: Entry) => any;
|
|
735
|
+
/**
|
|
736
|
+
* Subscribe on one thread unless this is a per-thread subscription
|
|
737
|
+
* @param workerIndex
|
|
738
|
+
* @param options
|
|
739
|
+
*/
|
|
740
|
+
subscribeOnThisThread(workerIndex: any, options: any): boolean;
|
|
741
|
+
addAttributes(attributesToAdd: any): Promise<any>;
|
|
742
|
+
removeAttributes(names: string[]): Promise<any>;
|
|
743
|
+
/**
|
|
744
|
+
* Get the size of the table in bytes (based on amount of pages stored in the database)
|
|
745
|
+
* @param options
|
|
746
|
+
*/
|
|
747
|
+
getSize(): any;
|
|
748
|
+
getAuditSize(): number;
|
|
749
|
+
getStorageStats(): {
|
|
750
|
+
available: number;
|
|
751
|
+
free: number;
|
|
752
|
+
size: number;
|
|
753
|
+
};
|
|
754
|
+
getRecordCount(options?: any): Promise<{
|
|
755
|
+
recordCount: number;
|
|
756
|
+
estimatedRange: number[];
|
|
757
|
+
} | {
|
|
758
|
+
recordCount: number;
|
|
759
|
+
estimatedRange?: undefined;
|
|
760
|
+
}>;
|
|
761
|
+
/**
|
|
762
|
+
* When attributes have been changed, we update the accessors that are assigned to this table
|
|
763
|
+
*/
|
|
764
|
+
updatedAttributes(): void;
|
|
765
|
+
setComputedAttribute(attribute_name: any, resolver: any): void;
|
|
766
|
+
deleteHistory(endTime?: number, cleanupDeletedRecords?: boolean): Promise<void>;
|
|
767
|
+
getHistory(startTime?: number, endTime?: number): AsyncGenerator<{
|
|
768
|
+
id: any;
|
|
769
|
+
localTime: any;
|
|
770
|
+
version: any;
|
|
771
|
+
type: any;
|
|
772
|
+
value: any;
|
|
773
|
+
user: any;
|
|
774
|
+
operation: any;
|
|
775
|
+
}, void, unknown>;
|
|
776
|
+
getHistoryOfRecord(id: any): Promise<any[]>;
|
|
777
|
+
clear(): any;
|
|
778
|
+
cleanup(): void;
|
|
779
|
+
_readTxnForContext(context: any): any;
|
|
780
|
+
transactions: import("./DatabaseTransaction.ts").Transaction[] & {
|
|
781
|
+
timestamp: number;
|
|
782
|
+
};
|
|
783
|
+
directURLMapping: boolean;
|
|
784
|
+
loadAsInstance: boolean;
|
|
785
|
+
get: {
|
|
786
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
787
|
+
reliesOnPrototype: boolean;
|
|
788
|
+
};
|
|
789
|
+
put: {
|
|
790
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
791
|
+
reliesOnPrototype: boolean;
|
|
792
|
+
};
|
|
793
|
+
patch: {
|
|
794
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
795
|
+
reliesOnPrototype: boolean;
|
|
796
|
+
};
|
|
797
|
+
delete: {
|
|
798
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
799
|
+
reliesOnPrototype: boolean;
|
|
800
|
+
};
|
|
801
|
+
create(idPrefix: Id, record: any, context: Context): Promise<Id>;
|
|
802
|
+
create(record: any, context: Context): Promise<Id>;
|
|
803
|
+
invalidate: {
|
|
804
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
805
|
+
reliesOnPrototype: boolean;
|
|
806
|
+
};
|
|
807
|
+
post: {
|
|
808
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
809
|
+
reliesOnPrototype: boolean;
|
|
810
|
+
};
|
|
811
|
+
update: {
|
|
812
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
813
|
+
reliesOnPrototype: boolean;
|
|
814
|
+
};
|
|
815
|
+
connect: {
|
|
816
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
817
|
+
reliesOnPrototype: boolean;
|
|
818
|
+
};
|
|
819
|
+
subscribe: {
|
|
820
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
821
|
+
reliesOnPrototype: boolean;
|
|
822
|
+
};
|
|
823
|
+
publish: {
|
|
824
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
825
|
+
reliesOnPrototype: boolean;
|
|
826
|
+
};
|
|
827
|
+
search: {
|
|
828
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
829
|
+
reliesOnPrototype: boolean;
|
|
830
|
+
};
|
|
831
|
+
query: {
|
|
832
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
833
|
+
reliesOnPrototype: boolean;
|
|
834
|
+
};
|
|
835
|
+
copy: {
|
|
836
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
837
|
+
reliesOnPrototype: boolean;
|
|
838
|
+
};
|
|
839
|
+
move: {
|
|
840
|
+
(idOrQuery: string | Id | import("./ResourceInterface.ts").Query, dataOrContext?: any, context?: Context): any;
|
|
841
|
+
reliesOnPrototype: boolean;
|
|
842
|
+
};
|
|
843
|
+
isCollection(resource: any): any;
|
|
844
|
+
parseQuery(search: any, query: any): any;
|
|
845
|
+
parsePath(path: any, context: any, query: any): any;
|
|
846
|
+
};
|
|
847
|
+
/**
|
|
848
|
+
* Coerce a string to the type defined by the attribute
|
|
849
|
+
* @param value
|
|
850
|
+
* @param attribute
|
|
851
|
+
* @returns
|
|
852
|
+
*/
|
|
853
|
+
export declare function coerceType(value: any, attribute: any): any;
|
|
854
|
+
export {};
|