@redocly/revel-reef 0.124.0-next.29 → 0.124.0-next.30
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/CHANGELOG.md +12 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/cli/prepare/copy-migrations.d.ts +1 -1
- package/dist/cli/prepare/copy-migrations.d.ts.map +1 -1
- package/dist/cli/prepare/copy-migrations.js +1 -1
- package/dist/cli/prepare/copy-migrations.js.map +1 -1
- package/dist/server/constants/plugins/api-functions.d.ts +1 -1
- package/dist/server/constants/plugins/api-functions.d.ts.map +1 -1
- package/dist/server/constants/plugins/api-functions.js +1 -1
- package/dist/server/constants/plugins/api-functions.js.map +1 -1
- package/dist/server/persistence/file-hashes/mappers/create-file-hash-db-record.d.ts +9 -0
- package/dist/server/persistence/file-hashes/mappers/create-file-hash-db-record.d.ts.map +1 -0
- package/dist/server/persistence/file-hashes/mappers/create-file-hash-db-record.js +1 -0
- package/dist/server/persistence/file-hashes/mappers/create-file-hash-db-record.js.map +1 -0
- package/dist/server/persistence/file-hashes/mappers/create-file-hash-read-model.d.ts +5 -0
- package/dist/server/persistence/file-hashes/mappers/create-file-hash-read-model.d.ts.map +1 -0
- package/dist/server/persistence/file-hashes/mappers/create-file-hash-read-model.js +1 -0
- package/dist/server/persistence/file-hashes/mappers/create-file-hash-read-model.js.map +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.d.ts +15 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.d.ts.map +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.js +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.js.map +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.d.ts +19 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.d.ts.map +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.js +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.js.map +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.d.ts +11 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.d.ts.map +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.js +1 -0
- package/dist/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.js.map +1 -0
- package/dist/server/persistence/file-hashes/repositories/utils.d.ts +8 -0
- package/dist/server/persistence/file-hashes/repositories/utils.d.ts.map +1 -0
- package/dist/server/persistence/file-hashes/repositories/utils.js +1 -0
- package/dist/server/persistence/file-hashes/repositories/utils.js.map +1 -0
- package/dist/server/persistence/file-hashes/services/file-hashes-service.d.ts +22 -0
- package/dist/server/persistence/file-hashes/services/file-hashes-service.d.ts.map +1 -0
- package/dist/server/persistence/file-hashes/services/file-hashes-service.js +1 -0
- package/dist/server/persistence/file-hashes/services/file-hashes-service.js.map +1 -0
- package/dist/server/persistence/file-hashes/types.d.ts +24 -0
- package/dist/server/persistence/file-hashes/types.d.ts.map +1 -0
- package/dist/server/persistence/file-hashes/types.js +1 -0
- package/dist/server/persistence/file-hashes/types.js.map +1 -0
- package/dist/server/plugins/api-functions/api-functions-handler-worker.js +1 -1
- package/dist/server/plugins/api-functions/api-functions-handler-worker.js.map +1 -1
- package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.d.ts +2 -1
- package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.d.ts.map +1 -1
- package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.js +1 -1
- package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.js.map +1 -1
- package/dist/server/plugins/catalog-entities/{databases → database}/catalog-entities-service.d.ts +31 -11
- package/dist/server/plugins/catalog-entities/database/catalog-entities-service.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js +1 -0
- package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js.map +1 -0
- package/dist/server/plugins/catalog-entities/database/consts.d.ts +6 -0
- package/dist/server/plugins/catalog-entities/database/consts.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/consts.js +1 -0
- package/dist/server/plugins/catalog-entities/database/consts.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/index.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/index.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/index.js +1 -1
- package/dist/server/plugins/catalog-entities/database/index.js.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-entity.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-entity.js.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entities.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entities.js.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entity.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-bff-related-entity.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-entity-db-record.d.ts +4 -3
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.js +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-db-record.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-entity-read-model.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-entity-relation-db-record-from-dto.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-dto.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-dto.js +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-dto.js.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-file-schema.d.ts +13 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-file-schema.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-file-schema.js +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation-db-record-from-file-schema.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-entity-relation.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/create-entity-relation.js.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/field-transformations.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/mappers/field-transformations.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/repositories/local/catalog-entities-local-read-repository.d.ts +3 -3
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/repositories/local/catalog-entities-local-read-repository.js +1 -1
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/repositories/local/catalog-entities-local-repository.d.ts +15 -31
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.js +1 -0
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/repositories/local/catalog-entities-local-write-repository.d.ts +11 -3
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js +1 -0
- package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/repositories/remote/catalog-entities-remote-repository.d.ts +6 -12
- package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js +1 -0
- package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js.map +1 -0
- package/dist/server/plugins/catalog-entities/{databases → database}/repositories/utils.d.ts +4 -0
- package/dist/server/plugins/catalog-entities/database/repositories/utils.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/database/repositories/utils.js +1 -0
- package/dist/server/plugins/catalog-entities/database/repositories/utils.js.map +1 -0
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.d.ts +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.d.ts +11 -4
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.d.ts +19 -3
- package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.js +1 -1
- package/dist/server/plugins/catalog-entities/extensions/extractors/fs-entities-extractor.js.map +1 -1
- package/dist/server/plugins/catalog-entities/get-server-props.d.ts +2 -2
- package/dist/server/plugins/catalog-entities/get-server-props.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/get-server-props.js +1 -1
- package/dist/server/plugins/catalog-entities/get-server-props.js.map +1 -1
- package/dist/server/plugins/catalog-entities/index.d.ts +2 -1
- package/dist/server/plugins/catalog-entities/index.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/index.js +1 -1
- package/dist/server/plugins/catalog-entities/index.js.map +1 -1
- package/dist/server/plugins/catalog-entities/plugin.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/plugin.js +1 -1
- package/dist/server/plugins/catalog-entities/plugin.js.map +1 -1
- package/dist/server/plugins/catalog-entities/schemas/database-schemas.d.ts +3 -0
- package/dist/server/plugins/catalog-entities/schemas/database-schemas.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/schemas/database-schemas.js +1 -1
- package/dist/server/plugins/catalog-entities/schemas/database-schemas.js.map +1 -1
- package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts +6 -0
- package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/schemas/dto-schemas.js +1 -1
- package/dist/server/plugins/catalog-entities/schemas/dto-schemas.js.map +1 -1
- package/dist/server/plugins/catalog-entities/utils/hash-manager.d.ts +28 -0
- package/dist/server/plugins/catalog-entities/utils/hash-manager.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/utils/hash-manager.js +1 -0
- package/dist/server/plugins/catalog-entities/utils/hash-manager.js.map +1 -0
- package/dist/server/plugins/nav-utils.js +1 -1
- package/dist/server/plugins/nav-utils.js.map +1 -1
- package/dist/server/providers/database/base-repository.d.ts +12 -0
- package/dist/server/providers/database/base-repository.d.ts.map +1 -0
- package/dist/server/providers/database/base-repository.js +1 -0
- package/dist/server/providers/database/base-repository.js.map +1 -0
- package/dist/server/{plugins/catalog-entities/databases → providers}/database/client.d.ts +3 -1
- package/dist/server/providers/database/client.d.ts.map +1 -0
- package/dist/server/providers/database/client.js +1 -0
- package/dist/server/providers/database/client.js.map +1 -0
- package/dist/server/providers/database/consts.d.ts +4 -0
- package/dist/server/providers/database/consts.d.ts.map +1 -0
- package/dist/server/providers/database/consts.js +1 -0
- package/dist/server/providers/database/consts.js.map +1 -0
- package/dist/server/providers/database/database-initialization-strategy.d.ts +14 -0
- package/dist/server/providers/database/database-initialization-strategy.d.ts.map +1 -0
- package/dist/server/providers/database/database-initialization-strategy.js +1 -0
- package/dist/server/providers/database/database-initialization-strategy.js.map +1 -0
- package/dist/server/providers/database/database-path-generator.d.ts +23 -0
- package/dist/server/providers/database/database-path-generator.d.ts.map +1 -0
- package/dist/server/providers/database/database-path-generator.js +1 -0
- package/dist/server/providers/database/database-path-generator.js.map +1 -0
- package/dist/server/providers/database/databases/catalog-sqlite/migrations/0000_initial_migration.sql +46 -0
- package/dist/server/{plugins/catalog-entities/databases/database → providers/database/databases/catalog-sqlite}/migrations/meta/0000_snapshot.json +112 -91
- package/dist/server/{plugins/catalog-entities/databases/database → providers/database/databases/catalog-sqlite}/migrations/meta/_journal.json +2 -2
- package/dist/server/{plugins/catalog-entities/databases → providers/database/databases/catalog-sqlite}/schemas/entities-relations-table.d.ts +38 -0
- package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-relations-table.d.ts.map +1 -0
- package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-relations-table.js +1 -0
- package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-relations-table.js.map +1 -0
- package/dist/server/{plugins/catalog-entities/databases → providers/database/databases/catalog-sqlite}/schemas/entities-table.d.ts +19 -0
- package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-table.d.ts.map +1 -0
- package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-table.js +1 -0
- package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-table.js.map +1 -0
- package/dist/server/providers/database/databases/main-sqlite/migrations/0000_initial_migration.sql +11 -0
- package/dist/server/providers/database/databases/main-sqlite/migrations/meta/0000_snapshot.json +82 -0
- package/dist/server/providers/database/databases/main-sqlite/migrations/meta/_journal.json +13 -0
- package/dist/server/providers/database/databases/main-sqlite/schemas/file-hashes-table.d.ts +124 -0
- package/dist/server/providers/database/databases/main-sqlite/schemas/file-hashes-table.d.ts.map +1 -0
- package/dist/server/providers/database/databases/main-sqlite/schemas/file-hashes-table.js +1 -0
- package/dist/server/providers/database/databases/main-sqlite/schemas/file-hashes-table.js.map +1 -0
- package/dist/server/providers/database/pagination/after-and-before.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/after-and-before.js.map +1 -0
- package/dist/server/providers/database/pagination/combined-filters.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/combined-filters.js +1 -0
- package/dist/server/providers/database/pagination/combined-filters.js.map +1 -0
- package/dist/server/providers/database/pagination/filter.d.ts +10 -0
- package/dist/server/providers/database/pagination/filter.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/filter.js +1 -0
- package/dist/server/providers/database/pagination/filter.js.map +1 -0
- package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/index.d.ts +1 -0
- package/dist/server/providers/database/pagination/index.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/index.js +1 -0
- package/dist/server/providers/database/pagination/index.js.map +1 -0
- package/dist/server/providers/database/pagination/limit.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/limit.js.map +1 -0
- package/dist/server/providers/database/pagination/schemas.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/schemas.js.map +1 -0
- package/dist/server/providers/database/pagination/search.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/search.js.map +1 -0
- package/dist/server/providers/database/pagination/skip.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/skip.js.map +1 -0
- package/dist/server/providers/database/pagination/sort.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/sort.js.map +1 -0
- package/dist/server/providers/database/pagination/types.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/types.js.map +1 -0
- package/dist/server/providers/database/pagination/utils/create-cursor.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/utils/create-cursor.js.map +1 -0
- package/dist/server/providers/database/pagination/utils/decode-cursor.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/utils/decode-cursor.js.map +1 -0
- package/dist/server/providers/database/pagination/utils/index.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/utils/index.js.map +1 -0
- package/dist/server/providers/database/pagination/utils/is-base-64.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/utils/is-base-64.js.map +1 -0
- package/dist/server/providers/database/pagination/utils/transform-to-camel-case.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/utils/transform-to-camel-case.js.map +1 -0
- package/dist/server/providers/database/pagination/utils/transform-to-snake-case.d.ts.map +1 -0
- package/dist/server/providers/database/pagination/utils/transform-to-snake-case.js.map +1 -0
- package/dist/server/{plugins/catalog-entities/databases → providers}/database/transactions-manager.d.ts +1 -1
- package/dist/server/providers/database/transactions-manager.d.ts.map +1 -0
- package/dist/server/providers/database/transactions-manager.js +1 -0
- package/dist/server/providers/database/transactions-manager.js.map +1 -0
- package/dist/server/providers/database/types.d.ts +25 -0
- package/dist/server/providers/database/types.d.ts.map +1 -0
- package/dist/server/providers/database/types.js.map +1 -0
- package/dist/server/providers/database/utils/retry-async-operation.d.ts.map +1 -0
- package/dist/server/providers/database/utils/retry-async-operation.js.map +1 -0
- package/dist/server/types/fs.d.ts +1 -0
- package/dist/server/types/fs.d.ts.map +1 -1
- package/dist/server/utils/paths.d.ts +1 -1
- package/dist/server/utils/paths.d.ts.map +1 -1
- package/dist/server/utils/paths.js +1 -1
- package/dist/server/utils/paths.js.map +1 -1
- package/dist/server/web-server/utils/prepare-list-response.js +1 -1
- package/dist/server/web-server/utils/prepare-list-response.js.map +1 -1
- package/package.json +6 -6
- package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/catalog-entities-service.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/database/client.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/database/client.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/database/client.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/database/migrations/0000_initilize-entities-catalog.sql +0 -43
- package/dist/server/plugins/catalog-entities/databases/database/transactions-manager.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/database/transactions-manager.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/database/transactions-manager.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/database-path-generator.d.ts +0 -49
- package/dist/server/plugins/catalog-entities/databases/database-path-generator.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/database-path-generator.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/database-path-generator.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/index.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/index.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-entity.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-entity.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entities.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entities.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entity.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-bff-related-entity.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-db-record.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-read-model.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-dto.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.d.ts +0 -4
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation-db-record-from-file-schema.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/create-entity-relation.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/field-transformations.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/mappers/field-transformations.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/after-and-before.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/combined-filters.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/filter.d.ts +0 -10
- package/dist/server/plugins/catalog-entities/databases/pagination/filter.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/filter.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/filter.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/index.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/index.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/index.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/limit.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/limit.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/schemas.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/schemas.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/search.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/search.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/skip.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/skip.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/sort.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/sort.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/types.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/types.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/create-cursor.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/create-cursor.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/decode-cursor.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/decode-cursor.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/index.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/index.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/is-base-64.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/is-base-64.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/transform-to-camel-case.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/transform-to-camel-case.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/transform-to-snake-case.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/pagination/utils/transform-to-snake-case.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-read-repository.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-repository.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/local/catalog-entities-local-write-repository.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/remote/catalog-entities-remote-repository.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/utils.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/utils.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/repositories/utils.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-relations-table.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/entities-table.js.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/index.d.ts +0 -3
- package/dist/server/plugins/catalog-entities/databases/schemas/index.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/index.js +0 -1
- package/dist/server/plugins/catalog-entities/databases/schemas/index.js.map +0 -1
- package/dist/server/plugins/catalog-entities/types.d.ts +0 -7
- package/dist/server/plugins/catalog-entities/types.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/types.js.map +0 -1
- package/dist/server/plugins/catalog-entities/utils/retry-async-operation.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/utils/retry-async-operation.js.map +0 -1
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-bff-entity.d.ts +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-bff-entity.js +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-bff-related-entities.d.ts +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-bff-related-entities.js +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-bff-related-entity.d.ts +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-bff-related-entity.js +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-entity-read-model.js +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/create-entity-relation.js +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/field-transformations.d.ts +0 -0
- /package/dist/server/plugins/catalog-entities/{databases → database}/mappers/field-transformations.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/after-and-before.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/after-and-before.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/combined-filters.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/limit.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/limit.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/schemas.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/schemas.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/search.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/search.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/skip.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/skip.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/sort.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/sort.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/types.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/types.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/create-cursor.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/create-cursor.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/decode-cursor.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/decode-cursor.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/index.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/index.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/is-base-64.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/is-base-64.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/transform-to-camel-case.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/transform-to-camel-case.js +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/transform-to-snake-case.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities/databases → providers/database}/pagination/utils/transform-to-snake-case.js +0 -0
- /package/dist/server/{plugins/catalog-entities → providers/database}/types.js +0 -0
- /package/dist/server/{plugins/catalog-entities → providers/database}/utils/retry-async-operation.d.ts +0 -0
- /package/dist/server/{plugins/catalog-entities → providers/database}/utils/retry-async-operation.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Store } from '../../server/store.js';
|
|
2
2
|
/**
|
|
3
|
-
* Copy migrations
|
|
3
|
+
* Copy databases migrations folders into server output directory
|
|
4
4
|
*/
|
|
5
5
|
export declare const copyMigrationsFolder: (store: Store) => void;
|
|
6
6
|
//# sourceMappingURL=copy-migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-migrations.d.ts","sourceRoot":"","sources":["../../../../../src/cli/prepare/copy-migrations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD;;GAEG;AACH,eAAO,MAAM,oBAAoB,UAAW,KAAK,KAAG,
|
|
1
|
+
{"version":3,"file":"copy-migrations.d.ts","sourceRoot":"","sources":["../../../../../src/cli/prepare/copy-migrations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD;;GAEG;AACH,eAAO,MAAM,oBAAoB,UAAW,KAAK,KAAG,IA0BnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import c from"node:path";import{cpSync as m,existsSync as e,mkdirSync as d}from"node:fs";import{fromCurrentDir as u,logger as t}from"../../server/utils/index.js";const p=r=>{const s=["catalog-sqlite","main-sqlite"];for(const i of s){const o=u(import.meta.url,`../../server/providers/database/databases/${i}/migrations`),a=c.join(r.serverOutDir,"migrations",i);if(!e(o)){t.warn(`Migrations folder not found at ${o}`);continue}e(r.serverOutDir)||d(r.serverOutDir,{recursive:!0});try{m(o,a,{recursive:!0}),t.info("Successfully copied migrations")}catch(n){t.error("Failed to copy migrations folder: %s",n)}}};export{p as copyMigrationsFolder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-migrations.js","sourceRoot":"","sources":["../../../../../src/cli/prepare/copy-migrations.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIxD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAY,EAAQ,EAAE;IACzD,MAAM,oBAAoB,GAAG,cAAc,CACzC,MAAM,CAAC,IAAI,CAAC,GAAG,EACf,
|
|
1
|
+
{"version":3,"file":"copy-migrations.js","sourceRoot":"","sources":["../../../../../src/cli/prepare/copy-migrations.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIxD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAY,EAAQ,EAAE;IACzD,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;IAE3D,KAAK,MAAM,cAAc,IAAI,gBAAgB,EAAE,CAAC;QAC9C,MAAM,oBAAoB,GAAG,cAAc,CACzC,MAAM,CAAC,IAAI,CAAC,GAAG,EACf,6CAA6C,cAAc,aAAa,CACzE,CAAC;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC;QAEvF,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,kCAAkC,oBAAoB,EAAE,CAAC,CAAC;YACtE,SAAS;QACX,CAAC;QAED,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,SAAS,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,CAAC;YACH,MAAM,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACtE,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;QAChD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,sCAAsC,EAAE,KAAK,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const TIMEOUT_LIMIT = 10000;
|
|
2
|
-
export declare const MAX_RESPONSE_SIZE_MB =
|
|
2
|
+
export declare const MAX_RESPONSE_SIZE_MB = 10;
|
|
3
3
|
export declare const MAX_REQUEST_BODY_SIZE_MB = 5;
|
|
4
4
|
export declare const MAX_WORKERS_COUNT = 3;
|
|
5
5
|
export declare const EXCLUDED_ENV_VARS: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-functions.d.ts","sourceRoot":"","sources":["../../../../../../src/server/constants/plugins/api-functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"api-functions.d.ts","sourceRoot":"","sources":["../../../../../../src/server/constants/plugins/api-functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,iBAAiB,UAyF7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _=1e4,A=
|
|
1
|
+
const _=1e4,A=10,O=5,M=3,E=["AUTH_URL","BH_API_URL","HOME","HOSTNAME","INSPECT_MODE","INTERNAL_API_USERNAME","JWT_SECRET_KEY","METRICS_API_PORT","NODE","NODE_OPTIONS","NODE_VERSION","NOMAD_ADDR_http","NOMAD_ADDR_http_metrics_api","NOMAD_ALLOC_DIR","NOMAD_ALLOC_ID","NOMAD_ALLOC_INDEX","NOMAD_ALLOC_NAME","NOMAD_ALLOC_PORT_http","NOMAD_ALLOC_PORT_http-metrics-api","NOMAD_CPU_CORES","NOMAD_CPU_LIMIT","NOMAD_DC","NOMAD_GROUP_NAME","NOMAD_HOST_ADDR_http","NOMAD_HOST_ADDR_http-metrics-api","NOMAD_HOST_IP_http-metrics-api","NOMAD_HOST_PORT_http","NOMAD_HOST_PORT_http_metrics_api","NOMAD_IP_http","NOMAD_IP_http_metrics_api","NOMAD_JOB_ID","NOMAD_JOB_NAME","NOMAD_MEMORY_LIMIT","NOMAD_MEMORY_MAX_LIMIT","NOMAD_META_ARTIFACT_URL","NOMAD_META_BUILD_ID","NOMAD_META_ORGANIZATION_ID","NOMAD_META_build_id","NOMAD_META_deploy_time","NOMAD_META_job_type","NOMAD_META_portal_id","NOMAD_META_subscription_in_trial","NOMAD_NAMESPACE","NOMAD_PARENT_CGROUP","NOMAD_PORT_http","NOMAD_PORT_http_metrics_api","NOMAD_REGION","NOMAD_SECRETS_DIR","NOMAD_SHORT_ALLOC_ID","NOMAD_TASK_DIR","NOMAD_TASK_NAME","OAUTH_CLIENT_ID","OAUTH_CLIENT_SECRET","OTEL_TRACES_URL","PATH","PLAN_GATES","PORTAL_ID","PORTAL_LOG_FORMAT","PWD","REDOCLY_ENV","REDOCLY_RUNNING_COMMAND","REPORTER_VERBOSE","SERVER_EDITOR_APP_URL","SHLVL","SUBSCRIPTION_IN_TRIAL","TERM","TYPESENSE_API_URL","UV_USE_IO_URING","VAULT_TOKEN","WEB_SERVER_IDLE_TIMEOUT","YARN_VERSION","npm_config_cache","npm_config_local_prefix","npm_config_user_agent","npm_execpath","npm_node_execpath","npm_package_json","npm_package_name","npm_package_version","NOMAD_META_project_id","NOMAD_META_JOB_TYPE","NOMAD_META_SUBSCRIPTION_IN_TRIAL","NOMAD_HOST_IP_http","NOMAD_META_PROJECT_ID","NOMAD_META_artifact_url","NOMAD_META_PORTAL_ID","NOMAD_META_DEPLOY_TIME","NOMAD_META_organization_id"];export{E as EXCLUDED_ENV_VARS,O as MAX_REQUEST_BODY_SIZE_MB,A as MAX_RESPONSE_SIZE_MB,M as MAX_WORKERS_COUNT,_ as TIMEOUT_LIMIT};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-functions.js","sourceRoot":"","sources":["../../../../../../src/server/constants/plugins/api-functions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AACnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,
|
|
1
|
+
{"version":3,"file":"api-functions.js","sourceRoot":"","sources":["../../../../../../src/server/constants/plugins/api-functions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AACnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,UAAU;IACV,YAAY;IACZ,MAAM;IACN,UAAU;IACV,cAAc;IACd,uBAAuB;IACvB,gBAAgB;IAChB,kBAAkB;IAClB,MAAM;IACN,cAAc;IACd,cAAc;IACd,iBAAiB;IACjB,6BAA6B;IAC7B,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,uBAAuB;IACvB,mCAAmC;IACnC,iBAAiB;IACjB,iBAAiB;IACjB,UAAU;IACV,kBAAkB;IAClB,sBAAsB;IACtB,kCAAkC;IAClC,gCAAgC;IAChC,sBAAsB;IACtB,kCAAkC;IAClC,eAAe;IACf,2BAA2B;IAC3B,cAAc;IACd,gBAAgB;IAChB,oBAAoB;IACpB,wBAAwB;IACxB,yBAAyB;IACzB,qBAAqB;IACrB,4BAA4B;IAC5B,qBAAqB;IACrB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,kCAAkC;IAClC,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,6BAA6B;IAC7B,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,gBAAgB;IAChB,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,MAAM;IACN,YAAY;IACZ,WAAW;IACX,mBAAmB;IACnB,KAAK;IACL,aAAa;IACb,yBAAyB;IACzB,kBAAkB;IAClB,uBAAuB;IACvB,OAAO;IACP,uBAAuB;IACvB,MAAM;IACN,mBAAmB;IACnB,iBAAiB;IACjB,aAAa;IACb,yBAAyB;IACzB,cAAc;IACd,kBAAkB;IAClB,yBAAyB;IACzB,uBAAuB;IACvB,cAAc;IACd,mBAAmB;IACnB,kBAAkB;IAClB,kBAAkB;IAClB,qBAAqB;IACrB,uBAAuB;IACvB,qBAAqB;IACrB,kCAAkC;IAClC,oBAAoB;IACpB,uBAAuB;IACvB,yBAAyB;IACzB,sBAAsB;IACtB,wBAAwB;IACxB,4BAA4B;CAC7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FileType, FileHashStatus } from '../types.js';
|
|
2
|
+
import { DatabaseFileHashDto } from '../../../providers/database/databases/main-sqlite/schemas/file-hashes-table.js';
|
|
3
|
+
export declare function createFileHashDbRecord({ id, hash, status, fileType, }: {
|
|
4
|
+
id?: string;
|
|
5
|
+
hash: string;
|
|
6
|
+
fileType: FileType;
|
|
7
|
+
status?: FileHashStatus;
|
|
8
|
+
}): DatabaseFileHashDto;
|
|
9
|
+
//# sourceMappingURL=create-file-hash-db-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-file-hash-db-record.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/mappers/create-file-hash-db-record.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gFAAgF,CAAC;AAErH,wBAAgB,sBAAsB,CAAC,EACrC,EAAE,EACF,IAAI,EACJ,MAAM,EACN,QAAQ,GACT,EAAE;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,GAAG,mBAAmB,CAWtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ulid as d}from"ulid";function a({id:e,hash:r,status:o,fileType:n}){const t=new Date().toISOString();return{id:e||`fh_${d()}`,hash:r,status:o,fileType:n,createdAt:t,updatedAt:t}}export{a as createFileHashDbRecord};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-file-hash-db-record.js","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/mappers/create-file-hash-db-record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAK5B,MAAM,UAAU,sBAAsB,CAAC,EACrC,EAAE,EACF,IAAI,EACJ,MAAM,EACN,QAAQ,GAMT;IACC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAErC,OAAO;QACL,EAAE,EAAE,EAAE,IAAI,MAAM,IAAI,EAAE,EAAE;QACxB,IAAI;QACJ,MAAM;QACN,QAAQ;QACR,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Row } from '@libsql/client';
|
|
2
|
+
import { DatabaseFileHash } from '../../../providers/database/databases/main-sqlite/schemas/file-hashes-table.js';
|
|
3
|
+
import { FileHashReadModelSchema } from '../types.js';
|
|
4
|
+
export declare function createFileHashReadModel(fileHash: DatabaseFileHash | Row): FileHashReadModelSchema;
|
|
5
|
+
//# sourceMappingURL=create-file-hash-read-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-file-hash-read-model.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/mappers/create-file-hash-read-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gFAAgF,CAAC;AAClH,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,GAAG,GAAG,uBAAuB,CAYjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{FileHashStatus as e}from"../types.js";function d(t){return{id:t.id,hash:t.hash,status:t.status===e.UP_TO_DATE?e.UP_TO_DATE:e.OUTDATED,createdAt:t.createdAt,updatedAt:t.updatedAt,object:"fileHash"}}export{d as createFileHashReadModel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-file-hash-read-model.js","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/mappers/create-file-hash-read-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,UAAU,uBAAuB,CAAC,QAAgC;IACtE,OAAO;QACL,EAAE,EAAE,QAAQ,CAAC,EAAY;QACzB,IAAI,EAAE,QAAQ,CAAC,IAAc;QAC7B,MAAM,EACJ,QAAQ,CAAC,MAAM,KAAK,cAAc,CAAC,UAAU;YAC3C,CAAC,CAAC,cAAc,CAAC,UAAU;YAC3B,CAAC,CAAC,cAAc,CAAC,QAAQ;QAC7B,SAAS,EAAE,QAAQ,CAAC,SAAmB;QACvC,SAAS,EAAE,QAAQ,CAAC,SAAmB;QACvC,MAAM,EAAE,UAAU;KACe,CAAC;AACtC,CAAC"}
|
package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FileHashReadModelSchema } from '../types.js';
|
|
2
|
+
import { DatabaseClient } from '../../../providers/database/client.js';
|
|
3
|
+
import { PaginationParams } from '../../../providers/database/pagination/index.js';
|
|
4
|
+
export interface ListResult<T> {
|
|
5
|
+
items: T[];
|
|
6
|
+
hasMore?: boolean;
|
|
7
|
+
total: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class FileHashesLocalReadRepository {
|
|
10
|
+
private readonly db;
|
|
11
|
+
constructor(db: DatabaseClient);
|
|
12
|
+
getFileHashes(paginationParams?: PaginationParams): Promise<ListResult<FileHashReadModelSchema>>;
|
|
13
|
+
getFileHashByHash(hash: string): Promise<FileHashReadModelSchema | null>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=file-hashes-local-read-repository.d.ts.map
|
package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-hashes-local-read-repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAIvE,OAAO,EAAmB,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AAEpG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,cAAc;IAElC,aAAa,CACxB,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;IA0BlC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC;CAWtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{eq as d}from"drizzle-orm";import{FIELDS_TO_SELECT_FOR_FILE_HASH as n}from"./utils.js";import{fileHashesTable as l}from"../../../providers/database/databases/main-sqlite/schemas/file-hashes-table.js";import{createFileHashReadModel as a}from"../mappers/create-file-hash-read-model.js";import{applyPagination as p}from"../../../providers/database/pagination/index.js";class R{db;constructor(t){this.db=t}async getFileHashes(t={}){const s=this.db.client.select(n).from(l),e=this.db.client.$count(s),c=s.$dynamic(),i=t.limit||10,m=p(c,{...t,limit:i+1}),[r,h]=await Promise.all([m.run(),e]),u=r.rows.length>i;return{items:r.rows.slice(0,i).filter(o=>o!==null).map(o=>a(o)),hasMore:u,total:h}}async getFileHashByHash(t){const e=(await this.db.client.select(n).from(l).where(d(l.hash,t)).run()).rows[0];return e?a(e):null}}export{R as FileHashesLocalReadRepository};
|
package/dist/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-hashes-local-read-repository.js","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/repositories/file-hashes-local-read-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,gFAAgF,CAAC;AACjH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAoB,MAAM,iDAAiD,CAAC;AAQpG,MAAM,OAAO,6BAA6B;IACX;IAA7B,YAA6B,EAAkB;QAAlB,OAAE,GAAF,EAAE,CAAgB;IAAG,CAAC;IAE5C,KAAK,CAAC,aAAa,CACxB,mBAAqC,EAAE;QAEvC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC/F,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAErD,MAAM,mBAAmB,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC;QAClD,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,IAAI,EAAE,CAAC;QAC3C,MAAM,iBAAiB,GAAG,eAAe,CAAC,mBAAmB,EAAE;YAC7D,GAAG,gBAAgB;YACnB,KAAK,EAAE,KAAK,GAAG,CAAC;SACjB,CAAC,CAAC;QAEH,MAAM,CAAC,cAAc,EAAE,KAAK,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAC,GAAG,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC;QAEzF,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACnD,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI;aAC9B,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;aACf,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC;aAC7B,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC;QAE9C,OAAO;YACL,KAAK;YACL,OAAO;YACP,KAAK;SACN,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,IAAY;QACzC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,MAAM;aACjC,MAAM,CAAC,8BAA8B,CAAC;aACtC,IAAI,CAAC,eAAe,CAAC;aACrB,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;aACrC,GAAG,EAAE,CAAC;QAET,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAE7B,OAAO,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RepositoryInstanceOptions } from '../../../providers/database/types.js';
|
|
2
|
+
import { ListResult } from './file-hashes-local-read-repository.js';
|
|
3
|
+
import { FileHashReadModelSchema } from '../types.js';
|
|
4
|
+
import { FilterClause, PaginationParams } from '../../../providers/database/pagination/index.js';
|
|
5
|
+
import { BaseRepository } from '../../../providers/database/base-repository.js';
|
|
6
|
+
import { FileHashStatus, UpsertFileHashParams } from '../types.js';
|
|
7
|
+
export declare class FileHashesLocalRepository extends BaseRepository {
|
|
8
|
+
private static instance;
|
|
9
|
+
private readRepository;
|
|
10
|
+
private writeRepository;
|
|
11
|
+
private constructor();
|
|
12
|
+
static getInstance(options: RepositoryInstanceOptions): Promise<FileHashesLocalRepository>;
|
|
13
|
+
getFileHashes(paginationParams?: PaginationParams): Promise<ListResult<FileHashReadModelSchema>>;
|
|
14
|
+
getFileHashByHash(hash: string): Promise<FileHashReadModelSchema | null>;
|
|
15
|
+
upsertFileHash(upsertFileHashParams: UpsertFileHashParams): Promise<string | null>;
|
|
16
|
+
updateFileHashesStatus(status: FileHashStatus, filter: FilterClause[][]): Promise<boolean>;
|
|
17
|
+
deleteFileHashes(filter: FilterClause[][]): Promise<boolean>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=file-hashes-local-repository.d.ts.map
|
package/dist/server/persistence/file-hashes/repositories/file-hashes-local-repository.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-hashes-local-repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/repositories/file-hashes-local-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAiC,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAOnE,qBAAa,yBAA0B,SAAQ,cAAc;IAC3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA4B;IAEnD,OAAO,CAAC,cAAc,CAAgC;IACtD,OAAO,CAAC,eAAe,CAAiC;IAExD,OAAO;WAOa,WAAW,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,yBAAyB,CAAC;IAexB,aAAa,CACxB,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;IAIlC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC;IAIxE,cAAc,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIlF,sBAAsB,CACjC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,YAAY,EAAE,EAAE,GACvB,OAAO,CAAC,OAAO,CAAC;IAIN,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAG1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{FileHashesLocalWriteRepository as a}from"./file-hashes-local-write-repository.js";import{FileHashesLocalReadRepository as r}from"./file-hashes-local-read-repository.js";import{BaseRepository as n}from"../../../providers/database/base-repository.js";import{LocalDatabaseInitializationStrategy as o}from"../../../providers/database/database-initialization-strategy.js";import{MAIN_LOCAL_DATABASE_FOLDER as l,MAIN_DATABASE_MIGRATIONS_FOLDER as h,MAIN_LOCAL_DATABASE_NAME as p}from"../../../providers/database/consts.js";class e extends n{static instance;readRepository;writeRepository;constructor(t){super(t),this.readRepository=new r(this.databaseClient),this.writeRepository=new a(this.databaseClient)}static async getInstance(t){if(!e.instance){const s=await new o().initialize({...t,databaseName:p,additionalFolder:l,migrationsFolder:h});e.instance=new e(s)}return e.instance}async getFileHashes(t={}){return this.readRepository.getFileHashes(t)}async getFileHashByHash(t){return this.readRepository.getFileHashByHash(t)}async upsertFileHash(t){return await this.writeRepository.upsertFileHash(t)}async updateFileHashesStatus(t,i){return this.writeRepository.updateFileHashes(t,i)}async deleteFileHashes(t){return this.writeRepository.deleteFileHashes(t)}}export{e as FileHashesLocalRepository};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-hashes-local-repository.js","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/repositories/file-hashes-local-repository.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAc,MAAM,wCAAwC,CAAC;A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AAI,CAAC,CAAC;IACrD,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,oBAA0C;QACpE,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;IACzE,CAAC;IAEM,KAAK,CAAC,sBAAsB,CACjC,MAAsB,EACtB,MAAwB;QAExB,OAAO,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,MAAwB;QACpD,OAAO,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;CACF"}
|
package/dist/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DatabaseClient } from '../../../providers/database/client.js';
|
|
2
|
+
import { FilterClause } from '../../../providers/database/pagination/types.js';
|
|
3
|
+
import { FileHashStatus, UpsertFileHashParams } from '../types.js';
|
|
4
|
+
export declare class FileHashesLocalWriteRepository {
|
|
5
|
+
private readonly db;
|
|
6
|
+
constructor(db: DatabaseClient);
|
|
7
|
+
upsertFileHash(upsertFileHashParams: UpsertFileHashParams): Promise<string | null>;
|
|
8
|
+
updateFileHashes(status: FileHashStatus, filter: FilterClause[][]): Promise<boolean>;
|
|
9
|
+
deleteFileHashes(filter: FilterClause[][]): Promise<boolean>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=file-hashes-local-write-repository.d.ts.map
|
package/dist/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-hashes-local-write-repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAI/E,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnE,qBAAa,8BAA8B;IAC7B,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,cAAc;IAElC,cAAc,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAwBzF,gBAAgB,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAiBpF,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAgBnE"}
|
package/dist/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{convertFilterToWhereCondition as i}from"../../../providers/database/pagination/filter.js";import{createFileHashDbRecord as o}from"../mappers/create-file-hash-db-record.js";import{fileHashesTable as s}from"../../../providers/database/databases/main-sqlite/schemas/file-hashes-table.js";import a from"../../../utils/reporter/logger.js";class u{db;constructor(r){this.db=r}async upsertFileHash(r){try{const e=o({...r});return await this.db.client.insert(s).values(e).onConflictDoUpdate({target:[s.hash],set:{status:e.status,updatedAt:e.updatedAt}}),e.id}catch(e){return a.error("Error upserting file hash",e),null}}async updateFileHashes(r,e){try{const t=i(e);return t?(await this.db.client.update(s).set({status:r}).where(t),!0):!1}catch(t){return a.error("Error updating file hashes",t),!1}}async deleteFileHashes(r){try{const e=i(r);return e?(await this.db.client.delete(s).where(e),!0):!1}catch(e){return a.error("Error deleting file hashes",e),!1}}}export{u as FileHashesLocalWriteRepository};
|
package/dist/server/persistence/file-hashes/repositories/file-hashes-local-write-repository.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-hashes-local-write-repository.js","sourceRoot":"","sources":["../../../../../../../src/server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C,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAEnF,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;YAClD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,MAAwB;QAC7C,IAAI,CAAC;YACH,MAAM,cAAc,GAAG,6BAA6B,CAAC,MAAM,CAAC,CAAC;YAE7D,IAAI,CAAC,cAAc,EAAE,CAAC;gBACpB,OAAO,KAAK,CAAC;YACf,CAAC;YAED,MAAM,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAEnE,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;YAClD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const FIELDS_TO_SELECT_FOR_FILE_HASH: {
|
|
2
|
+
id: import("drizzle-orm").SQL<unknown>;
|
|
3
|
+
hash: import("drizzle-orm").SQL<unknown>;
|
|
4
|
+
status: import("drizzle-orm").SQL<unknown>;
|
|
5
|
+
createdAt: import("drizzle-orm").SQL<unknown>;
|
|
6
|
+
updatedAt: import("drizzle-orm").SQL<unknown>;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/repositories/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B;;;;;;CAM1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sql as a}from"drizzle-orm";const r={id:a.raw("id"),hash:a.raw("hash"),status:a.raw("status"),createdAt:a.raw("created_at"),updatedAt:a.raw("updated_at")};export{r as FIELDS_TO_SELECT_FOR_FILE_HASH};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/repositories/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC;IACzB,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC;IAChC,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC;CACjC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ListResponseResult } from '../../../web-server/utils/prepare-list-response.js';
|
|
2
|
+
import { ServiceInstanceOptions } from '../../../providers/database/types.js';
|
|
3
|
+
import { PaginationParams } from '../../../providers/database/pagination/schemas.js';
|
|
4
|
+
import { FilterClause } from '../../../providers/database/pagination/types.js';
|
|
5
|
+
import { FileHashStatus, UpsertFileHashParams } from '../types.js';
|
|
6
|
+
import { FileHashReadModelSchema } from '../types.js';
|
|
7
|
+
export declare class FileHashesService {
|
|
8
|
+
private readonly localRepository;
|
|
9
|
+
private static instance;
|
|
10
|
+
private constructor();
|
|
11
|
+
private static initialize;
|
|
12
|
+
static getInstance(options: ServiceInstanceOptions): Promise<FileHashesService>;
|
|
13
|
+
getFileHashes(paginationParams?: PaginationParams): Promise<ListResponseResult<FileHashReadModelSchema>>;
|
|
14
|
+
getFileHashByHash(hash: string): Promise<FileHashReadModelSchema | null>;
|
|
15
|
+
upsertFileHash(upsertFileHashParams: UpsertFileHashParams): Promise<string | null>;
|
|
16
|
+
updateFileHashes(status: FileHashStatus, filter: FilterClause[][]): Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Use only internally, everything that is deleted via API should be deleted in the remote database.
|
|
19
|
+
*/
|
|
20
|
+
deleteFileHashes(filter: FilterClause[][]): Promise<boolean>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=file-hashes-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-hashes-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/services/file-hashes-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGtD,qBAAa,iBAAiB;IAGR,OAAO,CAAC,QAAQ,CAAC,eAAe;IAFpD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAoB;IAE3C,OAAO;mBAEc,UAAU;WAOX,WAAW,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAWtF,aAAa,CACjB,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;IAWjD,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC;IAIxE,cAAc,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIlF,gBAAgB,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1F;;OAEG;IACG,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{prepareListResponse as o}from"../../../web-server/utils/prepare-list-response.js";import{FileHashesLocalRepository as n}from"../repositories/file-hashes-local-repository.js";class a{localRepository;static instance;constructor(t){this.localRepository=t}static async initialize(t){const s=await n.getInstance(t),e=new a(s);a.instance=e}static async getInstance(t){return t.removeExisting===void 0&&(t.removeExisting=!1),a.instance||await a.initialize(t),a.instance}async getFileHashes(t={}){const{items:s,total:e,hasMore:i}=await this.localRepository.getFileHashes(t);return o({data:s,params:t,totalCount:e,hasMore:i})}async getFileHashByHash(t){return await this.localRepository.getFileHashByHash(t)}async upsertFileHash(t){return await this.localRepository.upsertFileHash(t)}async updateFileHashes(t,s){return await this.localRepository.updateFileHashesStatus(t,s)}async deleteFileHashes(t){return await this.localRepository.deleteFileHashes(t)}}export{a as FileHashesService};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-hashes-service.js","sourceRoot":"","sources":["../../../../../../../src/server/persistence/file-hashes/services/file-hashes-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,GACpB,MAAM,oDAAoD,CAAC;AAM5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAE5F,MAAM,OAAO,iBAAiB;IAGS;IAF7B,MAAM,CAAC,QAAQ,CAAoB;IAE3C,YAAqC,eAA0C;QAA1C,oBAAe,GAAf,eAAe,CAA2B;IAAG,CAAC;IAE3E,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,OAA+B;QAC7D,MAAM,eAAe,GAAG,MAAM,yBAAyB,CAAC,WAA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MAAwB;QAC7C,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum FileType {
|
|
2
|
+
OPENAPI_DEFINITION = "openapiDefinition",
|
|
3
|
+
ASYNCAPI_DEFINITION = "asyncapiDefinition",
|
|
4
|
+
ENTITY_DEFINITION = "entityDefinition"
|
|
5
|
+
}
|
|
6
|
+
export declare enum FileHashStatus {
|
|
7
|
+
UP_TO_DATE = "upToDate",
|
|
8
|
+
OUTDATED = "outdated"
|
|
9
|
+
}
|
|
10
|
+
export type UpsertFileHashParams = {
|
|
11
|
+
id?: string;
|
|
12
|
+
hash: string;
|
|
13
|
+
status?: FileHashStatus;
|
|
14
|
+
fileType: FileType;
|
|
15
|
+
};
|
|
16
|
+
export type FileHashReadModelSchema = {
|
|
17
|
+
id: string;
|
|
18
|
+
hash: string;
|
|
19
|
+
status: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
object: 'fileHash';
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/server/persistence/file-hashes/types.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,kBAAkB,sBAAsB;IACxC,mBAAmB,uBAAuB;IAC1C,iBAAiB,qBAAqB;CACvC;AAED,oBAAY,cAAc;IACxB,UAAU,aAAa;IACvB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n;(function(i){i.OPENAPI_DEFINITION="openapiDefinition",i.ASYNCAPI_DEFINITION="asyncapiDefinition",i.ENTITY_DEFINITION="entityDefinition"})(n||(n={}));var t;(function(i){i.UP_TO_DATE="upToDate",i.OUTDATED="outdated"})(t||(t={}));export{t as FileHashStatus,n as FileType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/server/persistence/file-hashes/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,oDAAwC,CAAA;IACxC,sDAA0C,CAAA;IAC1C,kDAAsC,CAAA;AACxC,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as f from"workerpool";import{Hono as d}from"hono";import{TrieRouter as l}from"hono/router/trie-router";import{importApiRequestHandler as m}from"../../web-server/handle-api-request.js";import{ResponseSizeLimitError as S}from"./errors.js";import{readStreamWithSizeLimit as g}from"./utils/read-stream-with-size-limit.js";import{enhanceContext as w}from"./utils/enhance-context.js";import{Logger as y}from"../../utils/reporter/logger.js";import{API_FUNCTIONS_REQUEST_HANDLER_ID as p}from"./index.js";async function h(e,r=
|
|
1
|
+
import*as f from"workerpool";import{Hono as d}from"hono";import{TrieRouter as l}from"hono/router/trie-router";import{importApiRequestHandler as m}from"../../web-server/handle-api-request.js";import{ResponseSizeLimitError as S}from"./errors.js";import{readStreamWithSizeLimit as g}from"./utils/read-stream-with-size-limit.js";import{enhanceContext as w}from"./utils/enhance-context.js";import{Logger as y}from"../../utils/reporter/logger.js";import{API_FUNCTIONS_REQUEST_HANDLER_ID as p}from"./index.js";async function h(e,r=10){return e.body?await g({stream:e.body,maxSizeMB:r,onSizeExceededErrorHandler:()=>{throw new S(`Response size exceeded limit of ${r}MB`)}}):await e.arrayBuffer()}const n=new y;n.patchConsole();function q(e,r){n.setStickyState(e);const i=r.replace(`${p}:`,"");n.updateContext({apiFunction:i})}async function E(e){q(e.loggerStickyState,e.requestHandlerId);const r=new d({router:new l}),{requestHandlers:i}=await m(e.serverOutDir),s=i[e.requestHandlerId],u=(await s()).default;r.all(e.slug,async t=>{const o=await u(t.req.raw,w(t,e.ctxData),e.staticData);return o instanceof Response?o:typeof o=="string"?t.text(o):t.json(o)}),r.onError((t,o)=>{if(n.error(`[${e.requestHandlerId}] ${t.message} ${t.stack}`),t instanceof SyntaxError)return o.text(t.message,500);throw t});const a=await r.request(e.req.url,e.req),c=await h(a,e.maxResponseSizeMB);return{status:a.status,headers:Object.fromEntries(a.headers.entries()),body:c,loggerStickyState:n.getStickyState()}}f.worker({runHandler:E});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-functions-handler-worker.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/api-functions/api-functions-handler-worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAMrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAqB,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC;AA2B9D,KAAK,UAAU,oBAAoB,CACjC,QAAkB,EAClB,oBAA4B,
|
|
1
|
+
{"version":3,"file":"api-functions-handler-worker.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/api-functions/api-functions-handler-worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAMrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAqB,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC;AA2B9D,KAAK,UAAU,oBAAoB,CACjC,QAAkB,EAClB,oBAA4B,EAAE;IAE9B,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnB,OAAO,MAAM,QAAQ,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC;QAC3C,MAAM,EAAE,QAAQ,CAAC,IAAI;QACrB,SAAS,EAAE,iBAAiB;QAC5B,0BAA0B,EAAE,GAAG,EAAE;YAC/B,MAAM,IAAI,sBAAsB,CAAC,mCAAmC,iBAAiB,IAAI,CAAC,CAAC;QAC7F,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,MAAM,GAAG,IAAI,MAAM,E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,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,GAAG,CAAC,OAAO,CAAC,CAAC,KAAU,EAAE,GAAY,EAAE,EAAE;QACvC,MAAM,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,gBAAgB,KAAK,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QAC7E,IAAI,KAAK,YAAY,WAAW,EAAE,CAAC;YACjC,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;IAC7D,MAAM,IAAI,GAAG,MAAM,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAE1E,OAAO;QACL,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACrD,IAAI;QACJ,iBAAiB,EAAE,MAAM,CAAC,cAAc,EAAE;KAC3C,CAAC;AACJ,CAAC;AAED,UAAU,CAAC,MAAM,CAAC;IAChB,UAAU;CACX,CAAC,CAAC"}
|
|
@@ -10,7 +10,8 @@ export type BundledDefinition = {
|
|
|
10
10
|
realRelativePath: string;
|
|
11
11
|
relativePath: string;
|
|
12
12
|
isVirtual?: boolean;
|
|
13
|
+
hash: string;
|
|
13
14
|
};
|
|
14
|
-
export declare function asyncapiDocLoader(relativePath: string, { fs, logger, cache, getConfig, isPathIgnored }: LifecycleContext): Promise<BundledDefinition[]>;
|
|
15
|
+
export declare function asyncapiDocLoader(relativePath: string, { fs, logger, cache, getConfig, isPathIgnored }: LifecycleContext): Promise<Omit<BundledDefinition, 'hash'>[]>;
|
|
15
16
|
export declare function asyncapiDocsLoader(_: string, context: LifecycleContext): Promise<BundledDefinition[]>;
|
|
16
17
|
//# sourceMappingURL=asyncapi-doc-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncapi-doc-loader.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/asyncapi-doc-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAUlE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5E,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"asyncapi-doc-loader.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/asyncapi-doc-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAUlE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5E,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,MAAM,EACpB,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,gBAAgB,GAChE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,EAAE,CAAC,CAqG5C;AAED,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,gCA+B5E"}
|
|
@@ -2,4 +2,4 @@ import s from"node:path";import{bundle as E,createConfig as F,getTotals as O}fro
|
|
|
2
2
|
|
|
3
3
|
${C?.message} at ${C?.location?.[0].pointer}
|
|
4
4
|
|
|
5
|
-
`)}i.warnings&&f.warn(`${y} while bundling %rp definition`,e);const V={document:_(v,t.metadata),config:g,relativePath:e,realRelativePath:r?.realRelativePath||e,customOutputRelativeFile:c.output&&e,markdocChunks:I,isVirtual:r?.isVirtual};p.push(V)}return p}async function X(o,n){const{fs:f,cache:u,getConfig:l}=n,d=[];for(const a of await f.scan(/(\.ya?ml|\.json)$/)){if(!await l(s.posix.dirname(a.relativePath)))continue;let r;try{r=await u.load(a.relativePath,"asyncapi-doc")}catch{continue}r.data?.length&&d.push(...r.data.map(t=>({...t,isVirtual:a.isVirtual||t.isVirtual})))}return d}function _(o,n){return n?{...o,info:{...o.info,"x-metadata":{...o.info["x-metadata"],...n}}}:o}export{W as asyncapiDocLoader,X as asyncapiDocsLoader};
|
|
5
|
+
`)}i.warnings&&f.warn(`${y} while bundling %rp definition`,e);const V={document:_(v,t.metadata),config:g,relativePath:e,realRelativePath:r?.realRelativePath||e,customOutputRelativeFile:c.output&&e,markdocChunks:I,isVirtual:r?.isVirtual};p.push(V)}return p}async function X(o,n){const{fs:f,cache:u,getConfig:l}=n,d=[];for(const a of await f.scan(/(\.ya?ml|\.json)$/)){if(!await l(s.posix.dirname(a.relativePath)))continue;let r;try{r=await u.load(a.relativePath,"asyncapi-doc")}catch{continue}r.data?.length&&d.push(...r.data.map(t=>({...t,isVirtual:a.isVirtual||t.isVirtual,hash:r.compoundHash})))}return d}function _(o,n){return n?{...o,info:{...o.info,"x-metadata":{...o.info["x-metadata"],...n}}}:o}export{W as asyncapiDocLoader,X as asyncapiDocsLoader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncapi-doc-loader.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/asyncapi-doc-loader.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAU,MAAM,uBAAuB,CAAC;AAQhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"asyncapi-doc-loader.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/as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AI,CAC3C,MAAM,CAAC,YAAY,EACnB,cAAc,CACf,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,SAAS;QACX,CAAC;QAED,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;YAC7C,SAAS;QACX,CAAC;QAED,WAAW,CAAC,IAAI,CACd,GAAG,0BAA0B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC7C,GAAG,CAAC;YACJ,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS;YAC1C,IAAI,EAAE,0BAA0B,CAAC,YAAY;SAC9C,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,cAAc,CAAC,MAA0B,EAAE,QAAkC;IACpF,IAAI,CAAC,QAAQ;QAAE,OAAO,MAAM,CAAC;IAC7B,OAAO;QACL,GAAG,MAAM;QACT,IAAI,EAAE;YACJ,GAAG,MAAM,CAAC,IAAI;YACd,YAAY,EAAE;gBACZ,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC5B,GAAG,QAAQ;aACZ;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/dist/server/plugins/catalog-entities/{databases → database}/catalog-entities-service.d.ts
RENAMED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { BffCatalogEntity, BffCatalogEntityList, BffCatalogRelatedEntityList } from '@redocly/theme';
|
|
2
|
-
import type { PaginationParams } from '
|
|
2
|
+
import type { PaginationParams } from '../../../providers/database/pagination/schemas.js';
|
|
3
3
|
import type { EntityReadModelSchema, EntityRelationReadModelSchema } from '../schemas/read-model-schemas.js';
|
|
4
4
|
import { type EntityDtoSchema, type EntityRelationDtoSchema } from '../schemas/dto-schemas.js';
|
|
5
|
-
import { type EntityFileSchema } from '../schemas/file-schemas.js';
|
|
6
5
|
import { type ListResponseResult } from '../../../web-server/utils/prepare-list-response.js';
|
|
7
|
-
import {
|
|
8
|
-
import { TransactionsManager } from '
|
|
9
|
-
|
|
6
|
+
import { ServiceInstanceOptions } from '../../../providers/database/types.js';
|
|
7
|
+
import { TransactionsManager } from '../../../providers/database/transactions-manager.js';
|
|
8
|
+
import { CreateEntityParams } from './repositories/local/catalog-entities-local-write-repository.js';
|
|
9
|
+
import { FilterClause } from '../../../providers/database/pagination/types.js';
|
|
10
|
+
import { HashManagerUpdateService } from '../utils/hash-manager.js';
|
|
11
|
+
export declare class CatalogEntitiesService implements HashManagerUpdateService {
|
|
10
12
|
private readonly localRepository;
|
|
11
13
|
private readonly remoteRepository?;
|
|
12
14
|
private static instance;
|
|
13
15
|
private constructor();
|
|
14
16
|
private static initialize;
|
|
15
|
-
static getInstance(options:
|
|
17
|
+
static getInstance(options: ServiceInstanceOptions): Promise<CatalogEntitiesService>;
|
|
16
18
|
transaction<T>(...args: Parameters<TransactionsManager['transaction']>): Promise<T>;
|
|
17
19
|
getEntities(paginationParams: PaginationParams): Promise<ListResponseResult<EntityReadModelSchema>>;
|
|
18
20
|
getEntityByKey(key: string): Promise<EntityReadModelSchema | null>;
|
|
@@ -21,15 +23,12 @@ export declare class CatalogEntitiesService {
|
|
|
21
23
|
* Use only internally, everything that is created via API should be created in the remote database.
|
|
22
24
|
* @param entity - The entity to create.
|
|
23
25
|
*/
|
|
24
|
-
createEntityInLocalDatabase(
|
|
26
|
+
createEntityInLocalDatabase(createEntityParams: CreateEntityParams): Promise<void>;
|
|
25
27
|
/**
|
|
26
28
|
* Use only internally, everything that is created via API should be created in the remote database.
|
|
27
29
|
* @param entities - The entities to create.
|
|
28
30
|
*/
|
|
29
|
-
createEntitiesInLocalDatabase(
|
|
30
|
-
entity: EntityFileSchema;
|
|
31
|
-
sourceFile?: string;
|
|
32
|
-
}[]): Promise<void>;
|
|
31
|
+
createEntitiesInLocalDatabase(createEntitiesParams: CreateEntityParams[]): Promise<void>;
|
|
33
32
|
/**
|
|
34
33
|
* Use only internally, everything that is created via API should be created in the remote database.
|
|
35
34
|
* @param relation - The entity to create.
|
|
@@ -44,6 +43,11 @@ export declare class CatalogEntitiesService {
|
|
|
44
43
|
metadata: Record<string, unknown>;
|
|
45
44
|
}>): Promise<EntityReadModelSchema | null | undefined>;
|
|
46
45
|
deleteEntityByKey(key: string): Promise<string | null>;
|
|
46
|
+
/**
|
|
47
|
+
* Use only internally, everything that is created via API should be created in the remote database.
|
|
48
|
+
* @param filter - The conditions used to select which entities to delete.
|
|
49
|
+
*/
|
|
50
|
+
deleteEntitiesInLocalDatabase(filter: FilterClause[][]): Promise<void>;
|
|
47
51
|
getEntityRelationById(id: string): Promise<EntityRelationReadModelSchema | null>;
|
|
48
52
|
getEntitiesRelations(paginationParams?: PaginationParams): Promise<ListResponseResult<{
|
|
49
53
|
createdAt?: string | null | undefined;
|
|
@@ -67,6 +71,8 @@ export declare class CatalogEntitiesService {
|
|
|
67
71
|
sourceId: string | null;
|
|
68
72
|
targetId: string | null;
|
|
69
73
|
updatedAt: string;
|
|
74
|
+
sourceFile: string | null;
|
|
75
|
+
fileHash: string | null;
|
|
70
76
|
schemaVersion: number;
|
|
71
77
|
sourceToTargetRelation: string;
|
|
72
78
|
targetToSourceRelation: string;
|
|
@@ -81,13 +87,27 @@ export declare class CatalogEntitiesService {
|
|
|
81
87
|
sourceId: string | null;
|
|
82
88
|
targetId: string | null;
|
|
83
89
|
updatedAt: string;
|
|
90
|
+
sourceFile: string | null;
|
|
91
|
+
fileHash: string | null;
|
|
84
92
|
schemaVersion: number;
|
|
85
93
|
sourceToTargetRelation: string;
|
|
86
94
|
targetToSourceRelation: string;
|
|
87
95
|
} | null | undefined>;
|
|
88
96
|
deleteEntityRelation(id: string): Promise<string | null>;
|
|
97
|
+
/**
|
|
98
|
+
* Use only internally, everything that is created via API should be created in the remote database.
|
|
99
|
+
* @param filter - The conditions used to select which entity relations to delete.
|
|
100
|
+
*/
|
|
101
|
+
deleteEntityRelationsInLocalDatabase(filter: FilterClause[][]): Promise<void>;
|
|
89
102
|
getEntitiesWithRelations(paginationParams?: PaginationParams): Promise<BffCatalogEntityList>;
|
|
90
103
|
getEntityWithRelationsByKey(entityKey: string): Promise<BffCatalogEntity | null>;
|
|
91
104
|
getRelatedEntities(entityKey: string, paginationParams?: PaginationParams): Promise<BffCatalogRelatedEntityList>;
|
|
105
|
+
/**
|
|
106
|
+
* Use only internally, everything that is removed via API should be removed in the remote database.
|
|
107
|
+
* @param sourceFilePath - The source file path to delete.
|
|
108
|
+
*/
|
|
109
|
+
deleteEntitiesAndRelationsByFilePathInLocalDatabase(sourceFilePath: string): Promise<void>;
|
|
110
|
+
deleteEntitiesAndRelationsByHashInLocalDatabase(hash: string): Promise<void>;
|
|
111
|
+
clearOutdatedRecords(outdatedHash: string): Promise<void>;
|
|
92
112
|
}
|
|
93
113
|
//# sourceMappingURL=catalog-entities-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-entities-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/database/catalog-entities-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AAMnC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,iEAAiE,CAAC;AACrG,OAAO,EAAE,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G,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC;IAQhF,oBAAoB,CAAC,gBAAgB,GAAE,gBAAqB;;;;;;;;;;;;IAc5D,oBAAoB,CAAC,QAAQ,EAAE,uBAAuB;;;;;;;;;;;;;;;;IAItD,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB;;;;;;;;;;;;;;;;IAWlE,oBAAoB,CAAC,EAAE,EAAE,MAAM;IAQrC;;;OAGG;IACG,oCAAoC,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE;IAI7D,wBAAwB,CAC5B,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,oBAAoB,CAAC;IAa1B,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAIhF,kBAAkB,CACtB,SAAS,EAAE,MAAM,EACjB,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,2BAA2B,CAAC;IAgBvC;;;OAGG;IACG,mDAAmD,CAAC,cAAc,EAAE,MAAM;IAsB1E,+CAA+C,CAAC,IAAI,EAAE,MAAM;IAe5D,oBAAoB,CAAC,YAAY,EAAE,MAAM;CAGhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{entityRelationDtoSchema as R}from"../schemas/dto-schemas.js";import{deepMerge as r}from"../../../../shared/jsUtils.js";import{entityFileSchema as d}from"../schemas/file-schemas.js";import{CatalogEntitiesLocalRepository as E}from"./repositories/local/catalog-entities-local-repository.js";import{CatalogEntitiesRemoteRepository as p}from"./repositories/remote/catalog-entities-remote-repository.js";import l from"../../../utils/reporter/logger.js";import{prepareListResponse as s}from"../../../web-server/utils/prepare-list-response.js";import{ENTITY_RELATION_FROM_DATABASE as y}from"./mappers/field-transformations.js";import{createValidator as c}from"../utils/ajv-validator.js";const h=c(R,{errorPrefix:"Entity relation validation failed:",dataVar:"entity relation"}),m=c(d,{errorPrefix:"Entity file validation failed:",dataVar:"entity"});class n{localRepository;remoteRepository;static instance;constructor(t,e){this.localRepository=t,this.remoteRepository=e}static async initialize(t){const[e,a]=await Promise.all([E.getInstance(t),t.runOnlyLocalDatabase?void 0:p.getInstance(t)]),i=new n(e,a);a&&(process.env.NODE_ENV==="development"&&l.info("Attaching remote database to local database"),await i.localRepository.attachDatabase(a.path)),n.instance=i}static async getInstance(t){return t.runOnlyLocalDatabase===void 0&&(t.runOnlyLocalDatabase=process.env.REDOCLY_LOCAL_DEV==="true"||process.env.CI==="true"),t.removeExisting===void 0&&(t.removeExisting=!1),n.instance||await n.initialize(t),n.instance}async transaction(...t){return this.localRepository.transactionsManager.transaction(...t)}async getEntities(t){await this.remoteRepository?.sync();const{items:e,total:a,hasMore:i}=await this.localRepository.getEntities(t);return s({data:e,params:t,totalCount:a,hasMore:i})}async getEntityByKey(t){return await this.remoteRepository?.sync(),await this.localRepository.getEntityByKey(t)}async createEntity(t){return this.remoteRepository?this.remoteRepository.createEntity(t):(l.warn("No remote database found"),null)}async createEntityInLocalDatabase(t){await this.localRepository.createEntity(t)}async createEntitiesInLocalDatabase(t){await this.localRepository.createEntities(t)}async createEntityRelationInLocalDatabase(t){await this.localRepository.createEntityRelation(t)}async createEntityRelationsInLocalDatabase(t){await this.localRepository.createEntityRelations(t)}async updateEntityByKey(t,e){const a=await this.localRepository.getEntityByKey(t);if(!a)throw new Error(`Entity with key ${t} not found`);const i=r(a,e),o=m(i);return await this.remoteRepository?.updateEntity({...o,id:a.id,createdAt:a.createdAt||""})}async deleteEntityByKey(t){let e=await this.remoteRepository?.deleteEntity(t);return e||(e=await this.localRepository.deleteEntity(t)),e}async deleteEntitiesInLocalDatabase(t){await this.localRepository.deleteEntities(t)}async getEntityRelationById(t){return await this.remoteRepository?.sync(),await this.localRepository.getEntityRelationById(t)}async getEntitiesRelations(t={}){await this.remoteRepository?.sync();const{items:e,total:a,hasMore:i}=await this.localRepository.getEntitiesRelations(t);return s({data:e,params:t,totalCount:a,nameTransformationsFromDatabase:y,hasMore:i})}async createEntityRelation(t){return this.remoteRepository?.createEntityRelation(t)}async updateEntityRelation(t,e){const a=await this.localRepository.getEntityRelationById(t);if(!a)throw new Error(`Entity relation with id ${t} not found`);const i=r(a,e),o=h(i);return this.remoteRepository?.createEntityRelation(o)}async deleteEntityRelation(t){let e=await this.remoteRepository?.deleteEntityRelation(t);return e||(e=await this.localRepository.deleteEntityRelation(t)),e}async deleteEntityRelationsInLocalDatabase(t){await this.localRepository.deleteEntityRelations(t)}async getEntitiesWithRelations(t={}){await this.remoteRepository?.sync();const{items:e,total:a,hasMore:i}=await this.localRepository.getEntitiesWithRelations(t);return s({data:e,params:t,totalCount:a,hasMore:i})}async getEntityWithRelationsByKey(t){return this.localRepository.getEntityWithRelationsByKey(t)}async getRelatedEntities(t,e={}){await this.remoteRepository?.sync();const{items:a,total:i,hasMore:o}=await this.localRepository.getRelatedEntities(t,e);return s({data:a,params:e,totalCount:i,nameTransformationsFromDatabase:y,hasMore:o})}async deleteEntitiesAndRelationsByFilePathInLocalDatabase(t){await this.deleteEntitiesInLocalDatabase([[{field:"source_file",operator:"equal",value:t}]]),await this.deleteEntityRelationsInLocalDatabase([[{field:"source_file",operator:"equal",value:t}]])}async deleteEntitiesAndRelationsByHashInLocalDatabase(t){const e=[[{field:"file_hash",operator:"equal",value:t}]];await this.deleteEntitiesInLocalDatabase(e),await this.deleteEntityRelationsInLocalDatabase(e)}async clearOutdatedRecords(t){await this.deleteEntitiesAndRelationsByHashInLocalDatabase(t)}}export{n as CatalogEntitiesService};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-entities-service.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/database/catalog-entities-service.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BA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SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,+CAA+C,CAAC,IAAY;QAChE,MAAM,sBAAsB,GAAqB;YAC/C;gBACE;oBACE,KAAK,EAAE,WAAW;oBAClB,QAAQ,EAAE,OAAO;oBACjB,KAAK,EAAE,IAAI;iBACZ;aACF;SACF,CAAC;QAEF,MAAM,IAAI,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,CAAC;QACjE,MAAM,IAAI,CAAC,oCAAoC,CAAC,sBAAsB,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,YAAoB;QAC7C,MAAM,IAAI,CAAC,+CAA+C,CAAC,YAAY,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const CATALOG_LOCAL_DATABASE_NAME = "catalog-local.sqlite";
|
|
2
|
+
export declare const CATALOG_LOCAL_DATABASE_FOLDER = "catalog-local";
|
|
3
|
+
export declare const CATALOG_REMOTE_DATABASE_NAME = "catalog-remote.sqlite";
|
|
4
|
+
export declare const CATALOG_REMOTE_DATABASE_FOLDER = "catalog-remote";
|
|
5
|
+
export declare const CATALOG_DATABASE_MIGRATIONS_FOLDER = "catalog-sqlite";
|
|
6
|
+
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/database/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,yBAAyB,CAAC;AAClE,eAAO,MAAM,6BAA6B,kBAAkB,CAAC;AAE7D,eAAO,MAAM,4BAA4B,0BAA0B,CAAC;AACpE,eAAO,MAAM,8BAA8B,mBAAmB,CAAC;AAE/D,eAAO,MAAM,kCAAkC,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const A="catalog-local.sqlite",t="catalog-local",o="catalog-remote.sqlite",_="catalog-remote",E="catalog-sqlite";export{E as CATALOG_DATABASE_MIGRATIONS_FOLDER,t as CATALOG_LOCAL_DATABASE_FOLDER,A as CATALOG_LOCAL_DATABASE_NAME,_ as CATALOG_REMOTE_DATABASE_FOLDER,o as CATALOG_REMOTE_DATABASE_NAME};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/database/consts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AAClE,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAAC;AAE7D,MAAM,CAAC,MAAM,4BAA4B,GAAG,uBAAuB,CAAC;AACpE,MAAM,CAAC,MAAM,8BAA8B,GAAG,gBAAgB,CAAC;AAE/D,MAAM,CAAC,MAAM,kCAAkC,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/database/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,cAAc,oCAAoC,CAAC;AACnD,cAAc,iDAAiD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CatalogEntitiesService as e}from"./catalog-entities-service.js";export*from"./mappers/field-transformations.js";export*from"
|
|
1
|
+
import{CatalogEntitiesService as e}from"./catalog-entities-service.js";export*from"./mappers/field-transformations.js";export*from"../../../providers/database/pagination/index.js";export{e as CatalogEntitiesService};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/catalog-entities/database/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,cAAc,oCAAoC,CAAC;AACnD,cAAc,iDAAiD,CAAC"}
|