@aopslab/domain-dm-docman 0.1.2
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/LICENSE +202 -0
- package/NOTICE +6 -0
- package/README.md +26 -0
- package/dist/application/errors/AssetServiceError.d.ts +20 -0
- package/dist/application/errors/AssetServiceError.js +13 -0
- package/dist/application/errors/AssetVersionServiceError.d.ts +20 -0
- package/dist/application/errors/AssetVersionServiceError.js +13 -0
- package/dist/application/errors/DocumentGroupServiceError.d.ts +20 -0
- package/dist/application/errors/DocumentGroupServiceError.js +16 -0
- package/dist/application/errors/DocumentSectionLinkServiceError.d.ts +20 -0
- package/dist/application/errors/DocumentSectionLinkServiceError.js +16 -0
- package/dist/application/errors/DocumentServiceError.d.ts +20 -0
- package/dist/application/errors/DocumentServiceError.js +16 -0
- package/dist/application/errors/DocumentVersionServiceError.d.ts +20 -0
- package/dist/application/errors/DocumentVersionServiceError.js +16 -0
- package/dist/application/errors/EmbedServiceError.d.ts +20 -0
- package/dist/application/errors/EmbedServiceError.js +16 -0
- package/dist/application/errors/PageEmbedLinkServiceError.d.ts +20 -0
- package/dist/application/errors/PageEmbedLinkServiceError.js +16 -0
- package/dist/application/errors/PageServiceError.d.ts +20 -0
- package/dist/application/errors/PageServiceError.js +16 -0
- package/dist/application/errors/PageSnippetLinkServiceError.d.ts +20 -0
- package/dist/application/errors/PageSnippetLinkServiceError.js +16 -0
- package/dist/application/errors/PageVersionServiceError.d.ts +20 -0
- package/dist/application/errors/PageVersionServiceError.js +16 -0
- package/dist/application/errors/SectionPageLinkServiceError.d.ts +20 -0
- package/dist/application/errors/SectionPageLinkServiceError.js +16 -0
- package/dist/application/errors/SectionServiceError.d.ts +20 -0
- package/dist/application/errors/SectionServiceError.js +16 -0
- package/dist/application/errors/SnippetServiceError.d.ts +20 -0
- package/dist/application/errors/SnippetServiceError.js +16 -0
- package/dist/application/errors/index.d.ts +1 -0
- package/dist/application/errors/index.js +1 -0
- package/dist/application/factories/RepositoryFactoryAsset.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryAsset.js +7 -0
- package/dist/application/factories/RepositoryFactoryAssetVersion.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryAssetVersion.js +7 -0
- package/dist/application/factories/RepositoryFactoryDocument.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryDocument.js +7 -0
- package/dist/application/factories/RepositoryFactoryDocumentGroup.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryDocumentGroup.js +7 -0
- package/dist/application/factories/RepositoryFactoryDocumentIndexEntry.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryDocumentIndexEntry.js +7 -0
- package/dist/application/factories/RepositoryFactoryDocumentSectionLink.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryDocumentSectionLink.js +7 -0
- package/dist/application/factories/RepositoryFactoryDocumentVersion.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryDocumentVersion.js +7 -0
- package/dist/application/factories/RepositoryFactoryEmbed.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryEmbed.js +7 -0
- package/dist/application/factories/RepositoryFactoryPage.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryPage.js +7 -0
- package/dist/application/factories/RepositoryFactoryPageEmbedLink.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryPageEmbedLink.js +7 -0
- package/dist/application/factories/RepositoryFactoryPageSnippetLink.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryPageSnippetLink.js +7 -0
- package/dist/application/factories/RepositoryFactoryPageVersion.d.ts +4 -0
- package/dist/application/factories/RepositoryFactoryPageVersion.js +7 -0
- package/dist/application/factories/RepositoryFactorySection.d.ts +4 -0
- package/dist/application/factories/RepositoryFactorySection.js +7 -0
- package/dist/application/factories/RepositoryFactorySectionPageLink.d.ts +4 -0
- package/dist/application/factories/RepositoryFactorySectionPageLink.js +7 -0
- package/dist/application/factories/RepositoryFactorySnippet.d.ts +4 -0
- package/dist/application/factories/RepositoryFactorySnippet.js +7 -0
- package/dist/application/factories/ServiceAssetBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceAssetBuilder.js +80 -0
- package/dist/application/factories/ServiceAssetFactory.d.ts +11 -0
- package/dist/application/factories/ServiceAssetFactory.js +15 -0
- package/dist/application/factories/ServiceAssetVersionBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceAssetVersionBuilder.js +80 -0
- package/dist/application/factories/ServiceAssetVersionFactory.d.ts +11 -0
- package/dist/application/factories/ServiceAssetVersionFactory.js +15 -0
- package/dist/application/factories/ServiceDocumentBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceDocumentBuilder.js +83 -0
- package/dist/application/factories/ServiceDocumentFactory.d.ts +11 -0
- package/dist/application/factories/ServiceDocumentFactory.js +15 -0
- package/dist/application/factories/ServiceDocumentGroupBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceDocumentGroupBuilder.js +83 -0
- package/dist/application/factories/ServiceDocumentGroupFactory.d.ts +11 -0
- package/dist/application/factories/ServiceDocumentGroupFactory.js +15 -0
- package/dist/application/factories/ServiceDocumentSectionLinkBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceDocumentSectionLinkBuilder.js +83 -0
- package/dist/application/factories/ServiceDocumentSectionLinkFactory.d.ts +11 -0
- package/dist/application/factories/ServiceDocumentSectionLinkFactory.js +15 -0
- package/dist/application/factories/ServiceDocumentVersionBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceDocumentVersionBuilder.js +83 -0
- package/dist/application/factories/ServiceDocumentVersionFactory.d.ts +11 -0
- package/dist/application/factories/ServiceDocumentVersionFactory.js +15 -0
- package/dist/application/factories/ServiceEmbedBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceEmbedBuilder.js +83 -0
- package/dist/application/factories/ServiceEmbedFactory.d.ts +11 -0
- package/dist/application/factories/ServiceEmbedFactory.js +15 -0
- package/dist/application/factories/ServicePageBuilder.d.ts +30 -0
- package/dist/application/factories/ServicePageBuilder.js +83 -0
- package/dist/application/factories/ServicePageEmbedLinkBuilder.d.ts +30 -0
- package/dist/application/factories/ServicePageEmbedLinkBuilder.js +83 -0
- package/dist/application/factories/ServicePageEmbedLinkFactory.d.ts +11 -0
- package/dist/application/factories/ServicePageEmbedLinkFactory.js +15 -0
- package/dist/application/factories/ServicePageFactory.d.ts +11 -0
- package/dist/application/factories/ServicePageFactory.js +15 -0
- package/dist/application/factories/ServicePageSnippetLinkBuilder.d.ts +30 -0
- package/dist/application/factories/ServicePageSnippetLinkBuilder.js +83 -0
- package/dist/application/factories/ServicePageSnippetLinkFactory.d.ts +11 -0
- package/dist/application/factories/ServicePageSnippetLinkFactory.js +15 -0
- package/dist/application/factories/ServicePageVersionBuilder.d.ts +34 -0
- package/dist/application/factories/ServicePageVersionBuilder.js +121 -0
- package/dist/application/factories/ServicePageVersionFactory.d.ts +11 -0
- package/dist/application/factories/ServicePageVersionFactory.js +15 -0
- package/dist/application/factories/ServiceSectionBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceSectionBuilder.js +83 -0
- package/dist/application/factories/ServiceSectionFactory.d.ts +11 -0
- package/dist/application/factories/ServiceSectionFactory.js +15 -0
- package/dist/application/factories/ServiceSectionPageLinkBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceSectionPageLinkBuilder.js +83 -0
- package/dist/application/factories/ServiceSectionPageLinkFactory.d.ts +11 -0
- package/dist/application/factories/ServiceSectionPageLinkFactory.js +15 -0
- package/dist/application/factories/ServiceSnippetBuilder.d.ts +30 -0
- package/dist/application/factories/ServiceSnippetBuilder.js +83 -0
- package/dist/application/factories/ServiceSnippetFactory.d.ts +11 -0
- package/dist/application/factories/ServiceSnippetFactory.js +15 -0
- package/dist/application/factories/drizzleDialect.d.ts +16 -0
- package/dist/application/factories/drizzleDialect.js +36 -0
- package/dist/application/factories/index.d.ts +43 -0
- package/dist/application/factories/index.js +44 -0
- package/dist/application/ports/inbound/IAssetServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/IAssetServicePort.js +1 -0
- package/dist/application/ports/inbound/IAssetVersionServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/IAssetVersionServicePort.js +1 -0
- package/dist/application/ports/inbound/IDocumentGroupServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/IDocumentGroupServicePort.js +1 -0
- package/dist/application/ports/inbound/IDocumentSectionLinkServicePort.d.ts +16 -0
- package/dist/application/ports/inbound/IDocumentSectionLinkServicePort.js +1 -0
- package/dist/application/ports/inbound/IDocumentServicePort.d.ts +300 -0
- package/dist/application/ports/inbound/IDocumentServicePort.js +1 -0
- package/dist/application/ports/inbound/IDocumentVersionServicePort.d.ts +106 -0
- package/dist/application/ports/inbound/IDocumentVersionServicePort.js +1 -0
- package/dist/application/ports/inbound/IEmbedServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/IEmbedServicePort.js +1 -0
- package/dist/application/ports/inbound/IPageEmbedLinkServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/IPageEmbedLinkServicePort.js +1 -0
- package/dist/application/ports/inbound/IPageServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/IPageServicePort.js +1 -0
- package/dist/application/ports/inbound/IPageSnippetLinkServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/IPageSnippetLinkServicePort.js +1 -0
- package/dist/application/ports/inbound/IPageVersionServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/IPageVersionServicePort.js +1 -0
- package/dist/application/ports/inbound/ISectionPageLinkServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/ISectionPageLinkServicePort.js +1 -0
- package/dist/application/ports/inbound/ISectionServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/ISectionServicePort.js +1 -0
- package/dist/application/ports/inbound/ISnippetServicePort.d.ts +14 -0
- package/dist/application/ports/inbound/ISnippetServicePort.js +1 -0
- package/dist/application/ports/inbound/index.d.ts +14 -0
- package/dist/application/ports/inbound/index.js +15 -0
- package/dist/application/ports/repository-ports/IRepositoryPortAsset.d.ts +5 -0
- package/dist/application/ports/repository-ports/IRepositoryPortAsset.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortAssetVersion.d.ts +5 -0
- package/dist/application/ports/repository-ports/IRepositoryPortAssetVersion.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocument.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocument.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocumentGroup.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocumentGroup.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocumentIndexEntry.d.ts +5 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocumentIndexEntry.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocumentSectionLink.d.ts +21 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocumentSectionLink.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocumentVersion.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortDocumentVersion.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortEmbed.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortEmbed.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortPage.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortPage.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortPageEmbedLink.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortPageEmbedLink.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortPageSnippetLink.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortPageSnippetLink.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortPageVersion.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortPageVersion.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortSection.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortSection.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortSectionPageLink.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortSectionPageLink.js +1 -0
- package/dist/application/ports/repository-ports/IRepositoryPortSnippet.d.ts +10 -0
- package/dist/application/ports/repository-ports/IRepositoryPortSnippet.js +1 -0
- package/dist/application/ports/repository-ports/index.d.ts +15 -0
- package/dist/application/ports/repository-ports/index.js +16 -0
- package/dist/application/services/documentCascadeDelete.d.ts +47 -0
- package/dist/application/services/documentCascadeDelete.js +202 -0
- package/dist/application/services/documentComposeSupport.d.ts +30 -0
- package/dist/application/services/documentComposeSupport.js +285 -0
- package/dist/application/services/documentIndexSupport.d.ts +7 -0
- package/dist/application/services/documentIndexSupport.js +28 -0
- package/dist/application/services/documentPublishSupport.d.ts +14 -0
- package/dist/application/services/documentPublishSupport.js +39 -0
- package/dist/application/services/documentRetrievalAiSupport.d.ts +21 -0
- package/dist/application/services/documentRetrievalAiSupport.js +114 -0
- package/dist/application/services/index.d.ts +14 -0
- package/dist/application/services/index.js +15 -0
- package/dist/application/services/service.asset.d.ts +25 -0
- package/dist/application/services/service.asset.js +58 -0
- package/dist/application/services/service.assetVersion.d.ts +25 -0
- package/dist/application/services/service.assetVersion.js +58 -0
- package/dist/application/services/service.document.d.ts +167 -0
- package/dist/application/services/service.document.js +2860 -0
- package/dist/application/services/service.documentGroup.d.ts +25 -0
- package/dist/application/services/service.documentGroup.js +58 -0
- package/dist/application/services/service.documentSectionLink.d.ts +27 -0
- package/dist/application/services/service.documentSectionLink.js +69 -0
- package/dist/application/services/service.documentVersion.d.ts +66 -0
- package/dist/application/services/service.documentVersion.js +715 -0
- package/dist/application/services/service.embed.d.ts +25 -0
- package/dist/application/services/service.embed.js +58 -0
- package/dist/application/services/service.page.d.ts +25 -0
- package/dist/application/services/service.page.js +58 -0
- package/dist/application/services/service.pageEmbedLink.d.ts +25 -0
- package/dist/application/services/service.pageEmbedLink.js +58 -0
- package/dist/application/services/service.pageSnippetLink.d.ts +25 -0
- package/dist/application/services/service.pageSnippetLink.js +58 -0
- package/dist/application/services/service.pageVersion.d.ts +31 -0
- package/dist/application/services/service.pageVersion.js +114 -0
- package/dist/application/services/service.section.d.ts +25 -0
- package/dist/application/services/service.section.js +58 -0
- package/dist/application/services/service.sectionPageLink.d.ts +25 -0
- package/dist/application/services/service.sectionPageLink.js +58 -0
- package/dist/application/services/service.snippet.d.ts +25 -0
- package/dist/application/services/service.snippet.js +58 -0
- package/dist/application/services/service.zod-validation.d.ts +11 -0
- package/dist/application/services/service.zod-validation.js +14 -0
- package/dist/domain/domain.d.ts +8 -0
- package/dist/domain/domain.js +9 -0
- package/dist/domain/dto/index.d.ts +1 -0
- package/dist/domain/dto/index.js +1 -0
- package/dist/domain/index.d.ts +4 -0
- package/dist/domain/index.js +4 -0
- package/dist/domain/models/asset/IbmAsset.d.ts +5 -0
- package/dist/domain/models/asset/IbmAsset.js +18 -0
- package/dist/domain/models/asset/index.d.ts +2 -0
- package/dist/domain/models/asset/index.js +2 -0
- package/dist/domain/models/asset/zod.schema.d.ts +39 -0
- package/dist/domain/models/asset/zod.schema.js +22 -0
- package/dist/domain/models/assetVersion/IbmAssetVersion.d.ts +6 -0
- package/dist/domain/models/assetVersion/IbmAssetVersion.js +25 -0
- package/dist/domain/models/assetVersion/index.d.ts +2 -0
- package/dist/domain/models/assetVersion/index.js +2 -0
- package/dist/domain/models/assetVersion/zod.schema.d.ts +71 -0
- package/dist/domain/models/assetVersion/zod.schema.js +37 -0
- package/dist/domain/models/document/IbmDocument.d.ts +8 -0
- package/dist/domain/models/document/IbmDocument.js +30 -0
- package/dist/domain/models/document/index.d.ts +2 -0
- package/dist/domain/models/document/index.js +2 -0
- package/dist/domain/models/document/zod.schema.d.ts +157 -0
- package/dist/domain/models/document/zod.schema.js +31 -0
- package/dist/domain/models/documentGroup/IbmDocumentGroup.d.ts +5 -0
- package/dist/domain/models/documentGroup/IbmDocumentGroup.js +17 -0
- package/dist/domain/models/documentGroup/index.d.ts +2 -0
- package/dist/domain/models/documentGroup/index.js +2 -0
- package/dist/domain/models/documentGroup/zod.schema.d.ts +27 -0
- package/dist/domain/models/documentGroup/zod.schema.js +22 -0
- package/dist/domain/models/documentIndexEntry/IbmDocumentIndexEntry.d.ts +6 -0
- package/dist/domain/models/documentIndexEntry/IbmDocumentIndexEntry.js +50 -0
- package/dist/domain/models/documentIndexEntry/index.d.ts +2 -0
- package/dist/domain/models/documentIndexEntry/index.js +2 -0
- package/dist/domain/models/documentIndexEntry/zod.schema.d.ts +112 -0
- package/dist/domain/models/documentIndexEntry/zod.schema.js +55 -0
- package/dist/domain/models/documentSectionLink/IbmDocumentSectionLink.d.ts +5 -0
- package/dist/domain/models/documentSectionLink/IbmDocumentSectionLink.js +23 -0
- package/dist/domain/models/documentSectionLink/index.d.ts +2 -0
- package/dist/domain/models/documentSectionLink/index.js +2 -0
- package/dist/domain/models/documentSectionLink/zod.schema.d.ts +65 -0
- package/dist/domain/models/documentSectionLink/zod.schema.js +80 -0
- package/dist/domain/models/documentVersion/IbmDocumentVersion.d.ts +8 -0
- package/dist/domain/models/documentVersion/IbmDocumentVersion.js +25 -0
- package/dist/domain/models/documentVersion/index.d.ts +2 -0
- package/dist/domain/models/documentVersion/index.js +2 -0
- package/dist/domain/models/documentVersion/zod.schema.d.ts +75 -0
- package/dist/domain/models/documentVersion/zod.schema.js +26 -0
- package/dist/domain/models/embed/IbmEmbed.d.ts +5 -0
- package/dist/domain/models/embed/IbmEmbed.js +19 -0
- package/dist/domain/models/embed/index.d.ts +2 -0
- package/dist/domain/models/embed/index.js +2 -0
- package/dist/domain/models/embed/zod.schema.d.ts +39 -0
- package/dist/domain/models/embed/zod.schema.js +24 -0
- package/dist/domain/models/index.d.ts +15 -0
- package/dist/domain/models/index.js +16 -0
- package/dist/domain/models/page/IbmPage.d.ts +8 -0
- package/dist/domain/models/page/IbmPage.js +20 -0
- package/dist/domain/models/page/index.d.ts +2 -0
- package/dist/domain/models/page/index.js +2 -0
- package/dist/domain/models/page/zod.schema.d.ts +57 -0
- package/dist/domain/models/page/zod.schema.js +21 -0
- package/dist/domain/models/pageEmbedLink/IbmPageEmbedLink.d.ts +5 -0
- package/dist/domain/models/pageEmbedLink/IbmPageEmbedLink.js +14 -0
- package/dist/domain/models/pageEmbedLink/index.d.ts +2 -0
- package/dist/domain/models/pageEmbedLink/index.js +2 -0
- package/dist/domain/models/pageEmbedLink/zod.schema.d.ts +21 -0
- package/dist/domain/models/pageEmbedLink/zod.schema.js +19 -0
- package/dist/domain/models/pageSnippetLink/IbmPageSnippetLink.d.ts +5 -0
- package/dist/domain/models/pageSnippetLink/IbmPageSnippetLink.js +15 -0
- package/dist/domain/models/pageSnippetLink/index.d.ts +2 -0
- package/dist/domain/models/pageSnippetLink/index.js +2 -0
- package/dist/domain/models/pageSnippetLink/zod.schema.d.ts +23 -0
- package/dist/domain/models/pageSnippetLink/zod.schema.js +20 -0
- package/dist/domain/models/pageVersion/IbmPageVersion.d.ts +8 -0
- package/dist/domain/models/pageVersion/IbmPageVersion.js +23 -0
- package/dist/domain/models/pageVersion/index.d.ts +2 -0
- package/dist/domain/models/pageVersion/index.js +2 -0
- package/dist/domain/models/pageVersion/zod.schema.d.ts +77 -0
- package/dist/domain/models/pageVersion/zod.schema.js +24 -0
- package/dist/domain/models/section/IbmSection.d.ts +8 -0
- package/dist/domain/models/section/IbmSection.js +20 -0
- package/dist/domain/models/section/index.d.ts +2 -0
- package/dist/domain/models/section/index.js +2 -0
- package/dist/domain/models/section/zod.schema.d.ts +57 -0
- package/dist/domain/models/section/zod.schema.js +21 -0
- package/dist/domain/models/sectionPageLink/IbmSectionPageLink.d.ts +5 -0
- package/dist/domain/models/sectionPageLink/IbmSectionPageLink.js +18 -0
- package/dist/domain/models/sectionPageLink/index.d.ts +2 -0
- package/dist/domain/models/sectionPageLink/index.js +2 -0
- package/dist/domain/models/sectionPageLink/zod.schema.d.ts +29 -0
- package/dist/domain/models/sectionPageLink/zod.schema.js +23 -0
- package/dist/domain/models/snippet/IbmSnippet.d.ts +5 -0
- package/dist/domain/models/snippet/IbmSnippet.js +17 -0
- package/dist/domain/models/snippet/index.d.ts +2 -0
- package/dist/domain/models/snippet/index.js +2 -0
- package/dist/domain/models/snippet/zod.schema.d.ts +27 -0
- package/dist/domain/models/snippet/zod.schema.js +22 -0
- package/dist/domain/types.d.ts +1 -0
- package/dist/domain/types.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/infrastructure/db/asset/drizzle/drizzle.mapper.asset.d.ts +31 -0
- package/dist/infrastructure/db/asset/drizzle/drizzle.mapper.asset.js +6 -0
- package/dist/infrastructure/db/asset/drizzle/drizzle.schema.asset.d.ts +250 -0
- package/dist/infrastructure/db/asset/drizzle/drizzle.schema.asset.js +24 -0
- package/dist/infrastructure/db/asset/drizzle/drizzle.schema.asset.sqlite.d.ts +272 -0
- package/dist/infrastructure/db/asset/drizzle/drizzle.schema.asset.sqlite.js +25 -0
- package/dist/infrastructure/db/asset/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/asset/drizzle/index.js +2 -0
- package/dist/infrastructure/db/assetVersion/drizzle/drizzle.mapper.assetVersion.d.ts +45 -0
- package/dist/infrastructure/db/assetVersion/drizzle/drizzle.mapper.assetVersion.js +6 -0
- package/dist/infrastructure/db/assetVersion/drizzle/drizzle.schema.assetVersion.d.ts +371 -0
- package/dist/infrastructure/db/assetVersion/drizzle/drizzle.schema.assetVersion.js +30 -0
- package/dist/infrastructure/db/assetVersion/drizzle/drizzle.schema.assetVersion.sqlite.d.ts +397 -0
- package/dist/infrastructure/db/assetVersion/drizzle/drizzle.schema.assetVersion.sqlite.js +31 -0
- package/dist/infrastructure/db/assetVersion/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/assetVersion/drizzle/index.js +2 -0
- package/dist/infrastructure/db/document/drizzle/drizzle.mapper.document.d.ts +98 -0
- package/dist/infrastructure/db/document/drizzle/drizzle.mapper.document.js +6 -0
- package/dist/infrastructure/db/document/drizzle/drizzle.schema.document.d.ts +394 -0
- package/dist/infrastructure/db/document/drizzle/drizzle.schema.document.js +34 -0
- package/dist/infrastructure/db/document/drizzle/drizzle.schema.document.sqlite.d.ts +424 -0
- package/dist/infrastructure/db/document/drizzle/drizzle.schema.document.sqlite.js +35 -0
- package/dist/infrastructure/db/document/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/document/drizzle/index.js +2 -0
- package/dist/infrastructure/db/documentGroup/drizzle/drizzle.mapper.documentGroup.d.ts +29 -0
- package/dist/infrastructure/db/documentGroup/drizzle/drizzle.mapper.documentGroup.js +6 -0
- package/dist/infrastructure/db/documentGroup/drizzle/drizzle.schema.documentGroup.d.ts +233 -0
- package/dist/infrastructure/db/documentGroup/drizzle/drizzle.schema.documentGroup.js +22 -0
- package/dist/infrastructure/db/documentGroup/drizzle/drizzle.schema.documentGroup.sqlite.d.ts +253 -0
- package/dist/infrastructure/db/documentGroup/drizzle/drizzle.schema.documentGroup.sqlite.js +23 -0
- package/dist/infrastructure/db/documentGroup/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/documentGroup/drizzle/index.js +2 -0
- package/dist/infrastructure/db/documentIndexEntry/drizzle/drizzle.mapper.documentIndexEntry.d.ts +95 -0
- package/dist/infrastructure/db/documentIndexEntry/drizzle/drizzle.mapper.documentIndexEntry.js +12 -0
- package/dist/infrastructure/db/documentIndexEntry/drizzle/drizzle.schema.documentIndexEntry.d.ts +792 -0
- package/dist/infrastructure/db/documentIndexEntry/drizzle/drizzle.schema.documentIndexEntry.js +57 -0
- package/dist/infrastructure/db/documentIndexEntry/drizzle/drizzle.schema.documentIndexEntry.sqlite.d.ts +854 -0
- package/dist/infrastructure/db/documentIndexEntry/drizzle/drizzle.schema.documentIndexEntry.sqlite.js +58 -0
- package/dist/infrastructure/db/documentIndexEntry/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/documentIndexEntry/drizzle/index.js +2 -0
- package/dist/infrastructure/db/documentSectionLink/drizzle/drizzle.mapper.documentSectionLink.d.ts +41 -0
- package/dist/infrastructure/db/documentSectionLink/drizzle/drizzle.mapper.documentSectionLink.js +12 -0
- package/dist/infrastructure/db/documentSectionLink/drizzle/drizzle.schema.documentSectionLink.d.ts +335 -0
- package/dist/infrastructure/db/documentSectionLink/drizzle/drizzle.schema.documentSectionLink.js +29 -0
- package/dist/infrastructure/db/documentSectionLink/drizzle/drizzle.schema.documentSectionLink.sqlite.d.ts +357 -0
- package/dist/infrastructure/db/documentSectionLink/drizzle/drizzle.schema.documentSectionLink.sqlite.js +30 -0
- package/dist/infrastructure/db/documentSectionLink/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/documentSectionLink/drizzle/index.js +2 -0
- package/dist/infrastructure/db/documentVersion/drizzle/drizzle.mapper.documentVersion.d.ts +54 -0
- package/dist/infrastructure/db/documentVersion/drizzle/drizzle.mapper.documentVersion.js +7 -0
- package/dist/infrastructure/db/documentVersion/drizzle/drizzle.schema.documentVersion.d.ts +301 -0
- package/dist/infrastructure/db/documentVersion/drizzle/drizzle.schema.documentVersion.js +30 -0
- package/dist/infrastructure/db/documentVersion/drizzle/drizzle.schema.documentVersion.sqlite.d.ts +323 -0
- package/dist/infrastructure/db/documentVersion/drizzle/drizzle.schema.documentVersion.sqlite.js +27 -0
- package/dist/infrastructure/db/documentVersion/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/documentVersion/drizzle/index.js +2 -0
- package/dist/infrastructure/db/domain-naming.d.ts +2 -0
- package/dist/infrastructure/db/domain-naming.js +57 -0
- package/dist/infrastructure/db/embed/drizzle/drizzle.mapper.embed.d.ts +33 -0
- package/dist/infrastructure/db/embed/drizzle/drizzle.mapper.embed.js +5 -0
- package/dist/infrastructure/db/embed/drizzle/drizzle.schema.embed.d.ts +267 -0
- package/dist/infrastructure/db/embed/drizzle/drizzle.schema.embed.js +24 -0
- package/dist/infrastructure/db/embed/drizzle/drizzle.schema.embed.sqlite.d.ts +291 -0
- package/dist/infrastructure/db/embed/drizzle/drizzle.schema.embed.sqlite.js +25 -0
- package/dist/infrastructure/db/embed/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/embed/drizzle/index.js +2 -0
- package/dist/infrastructure/db/page/drizzle/drizzle.mapper.page.d.ts +44 -0
- package/dist/infrastructure/db/page/drizzle/drizzle.mapper.page.js +5 -0
- package/dist/infrastructure/db/page/drizzle/drizzle.schema.page.d.ts +218 -0
- package/dist/infrastructure/db/page/drizzle/drizzle.schema.page.js +20 -0
- package/dist/infrastructure/db/page/drizzle/drizzle.schema.page.sqlite.d.ts +234 -0
- package/dist/infrastructure/db/page/drizzle/drizzle.schema.page.sqlite.js +21 -0
- package/dist/infrastructure/db/page/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/page/drizzle/index.js +2 -0
- package/dist/infrastructure/db/pageEmbedLink/drizzle/drizzle.mapper.pageEmbedLink.d.ts +23 -0
- package/dist/infrastructure/db/pageEmbedLink/drizzle/drizzle.mapper.pageEmbedLink.js +5 -0
- package/dist/infrastructure/db/pageEmbedLink/drizzle/drizzle.schema.pageEmbedLink.d.ts +180 -0
- package/dist/infrastructure/db/pageEmbedLink/drizzle/drizzle.schema.pageEmbedLink.js +18 -0
- package/dist/infrastructure/db/pageEmbedLink/drizzle/drizzle.schema.pageEmbedLink.sqlite.d.ts +194 -0
- package/dist/infrastructure/db/pageEmbedLink/drizzle/drizzle.schema.pageEmbedLink.sqlite.js +19 -0
- package/dist/infrastructure/db/pageEmbedLink/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/pageEmbedLink/drizzle/index.js +2 -0
- package/dist/infrastructure/db/pageSnippetLink/drizzle/drizzle.mapper.pageSnippetLink.d.ts +25 -0
- package/dist/infrastructure/db/pageSnippetLink/drizzle/drizzle.mapper.pageSnippetLink.js +7 -0
- package/dist/infrastructure/db/pageSnippetLink/drizzle/drizzle.schema.pageSnippetLink.d.ts +197 -0
- package/dist/infrastructure/db/pageSnippetLink/drizzle/drizzle.schema.pageSnippetLink.js +19 -0
- package/dist/infrastructure/db/pageSnippetLink/drizzle/drizzle.schema.pageSnippetLink.sqlite.d.ts +211 -0
- package/dist/infrastructure/db/pageSnippetLink/drizzle/drizzle.schema.pageSnippetLink.sqlite.js +20 -0
- package/dist/infrastructure/db/pageSnippetLink/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/pageSnippetLink/drizzle/index.js +2 -0
- package/dist/infrastructure/db/pageVersion/drizzle/drizzle.mapper.pageVersion.d.ts +50 -0
- package/dist/infrastructure/db/pageVersion/drizzle/drizzle.mapper.pageVersion.js +6 -0
- package/dist/infrastructure/db/pageVersion/drizzle/drizzle.schema.pageVersion.d.ts +271 -0
- package/dist/infrastructure/db/pageVersion/drizzle/drizzle.schema.pageVersion.js +23 -0
- package/dist/infrastructure/db/pageVersion/drizzle/drizzle.schema.pageVersion.sqlite.d.ts +289 -0
- package/dist/infrastructure/db/pageVersion/drizzle/drizzle.schema.pageVersion.sqlite.js +24 -0
- package/dist/infrastructure/db/pageVersion/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/pageVersion/drizzle/index.js +2 -0
- package/dist/infrastructure/db/section/drizzle/drizzle.mapper.section.d.ts +44 -0
- package/dist/infrastructure/db/section/drizzle/drizzle.mapper.section.js +5 -0
- package/dist/infrastructure/db/section/drizzle/drizzle.schema.section.d.ts +216 -0
- package/dist/infrastructure/db/section/drizzle/drizzle.schema.section.js +20 -0
- package/dist/infrastructure/db/section/drizzle/drizzle.schema.section.sqlite.d.ts +234 -0
- package/dist/infrastructure/db/section/drizzle/drizzle.schema.section.sqlite.js +21 -0
- package/dist/infrastructure/db/section/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/section/drizzle/index.js +2 -0
- package/dist/infrastructure/db/sectionPageLink/drizzle/drizzle.mapper.sectionPageLink.d.ts +31 -0
- package/dist/infrastructure/db/sectionPageLink/drizzle/drizzle.mapper.sectionPageLink.js +7 -0
- package/dist/infrastructure/db/sectionPageLink/drizzle/drizzle.schema.sectionPageLink.d.ts +248 -0
- package/dist/infrastructure/db/sectionPageLink/drizzle/drizzle.schema.sectionPageLink.js +22 -0
- package/dist/infrastructure/db/sectionPageLink/drizzle/drizzle.schema.sectionPageLink.sqlite.d.ts +264 -0
- package/dist/infrastructure/db/sectionPageLink/drizzle/drizzle.schema.sectionPageLink.sqlite.js +23 -0
- package/dist/infrastructure/db/sectionPageLink/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/sectionPageLink/drizzle/index.js +2 -0
- package/dist/infrastructure/db/snippet/drizzle/drizzle.mapper.snippet.d.ts +29 -0
- package/dist/infrastructure/db/snippet/drizzle/drizzle.mapper.snippet.js +5 -0
- package/dist/infrastructure/db/snippet/drizzle/drizzle.schema.snippet.d.ts +233 -0
- package/dist/infrastructure/db/snippet/drizzle/drizzle.schema.snippet.js +22 -0
- package/dist/infrastructure/db/snippet/drizzle/drizzle.schema.snippet.sqlite.d.ts +253 -0
- package/dist/infrastructure/db/snippet/drizzle/drizzle.schema.snippet.sqlite.js +23 -0
- package/dist/infrastructure/db/snippet/drizzle/index.d.ts +2 -0
- package/dist/infrastructure/db/snippet/drizzle/index.js +2 -0
- package/dist/infrastructure/repositories/asset/drizzle/AssetDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/asset/drizzle/AssetDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/asset/drizzle/AssetDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/asset/drizzle/AssetDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/assetVersion/drizzle/AssetVersionDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/assetVersion/drizzle/AssetVersionDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/assetVersion/drizzle/AssetVersionDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/assetVersion/drizzle/AssetVersionDrizzleSqliteRepo.js +12 -0
- package/dist/infrastructure/repositories/document/drizzle/DocumentDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/document/drizzle/DocumentDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/document/drizzle/DocumentDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/document/drizzle/DocumentDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/documentGroup/drizzle/DocumentGroupDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/documentGroup/drizzle/DocumentGroupDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/documentGroup/drizzle/DocumentGroupDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/documentGroup/drizzle/DocumentGroupDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/documentIndexEntry/drizzle/DocumentIndexEntryDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/documentIndexEntry/drizzle/DocumentIndexEntryDrizzleRepo.js +12 -0
- package/dist/infrastructure/repositories/documentIndexEntry/drizzle/DocumentIndexEntryDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/documentIndexEntry/drizzle/DocumentIndexEntryDrizzleSqliteRepo.js +12 -0
- package/dist/infrastructure/repositories/documentSectionLink/drizzle/DocumentSectionLinkDrizzleRepo.d.ts +15 -0
- package/dist/infrastructure/repositories/documentSectionLink/drizzle/DocumentSectionLinkDrizzleRepo.js +41 -0
- package/dist/infrastructure/repositories/documentSectionLink/drizzle/DocumentSectionLinkDrizzleSqliteRepo.d.ts +15 -0
- package/dist/infrastructure/repositories/documentSectionLink/drizzle/DocumentSectionLinkDrizzleSqliteRepo.js +40 -0
- package/dist/infrastructure/repositories/documentVersion/drizzle/DocumentVersionDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/documentVersion/drizzle/DocumentVersionDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/documentVersion/drizzle/DocumentVersionDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/documentVersion/drizzle/DocumentVersionDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/embed/drizzle/EmbedDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/embed/drizzle/EmbedDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/embed/drizzle/EmbedDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/embed/drizzle/EmbedDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/index.d.ts +30 -0
- package/dist/infrastructure/repositories/index.js +31 -0
- package/dist/infrastructure/repositories/page/drizzle/PageDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/page/drizzle/PageDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/page/drizzle/PageDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/page/drizzle/PageDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/pageEmbedLink/drizzle/PageEmbedLinkDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/pageEmbedLink/drizzle/PageEmbedLinkDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/pageEmbedLink/drizzle/PageEmbedLinkDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/pageEmbedLink/drizzle/PageEmbedLinkDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/pageSnippetLink/drizzle/PageSnippetLinkDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/pageSnippetLink/drizzle/PageSnippetLinkDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/pageSnippetLink/drizzle/PageSnippetLinkDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/pageSnippetLink/drizzle/PageSnippetLinkDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/pageVersion/drizzle/PageVersionDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/pageVersion/drizzle/PageVersionDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/pageVersion/drizzle/PageVersionDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/pageVersion/drizzle/PageVersionDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/section/drizzle/SectionDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/section/drizzle/SectionDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/section/drizzle/SectionDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/section/drizzle/SectionDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/sectionPageLink/drizzle/SectionPageLinkDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/sectionPageLink/drizzle/SectionPageLinkDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/sectionPageLink/drizzle/SectionPageLinkDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/sectionPageLink/drizzle/SectionPageLinkDrizzleSqliteRepo.js +8 -0
- package/dist/infrastructure/repositories/snippet/drizzle/SnippetDrizzleRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/snippet/drizzle/SnippetDrizzleRepo.js +8 -0
- package/dist/infrastructure/repositories/snippet/drizzle/SnippetDrizzleSqliteRepo.d.ts +12 -0
- package/dist/infrastructure/repositories/snippet/drizzle/SnippetDrizzleSqliteRepo.js +8 -0
- package/dist/public/factories/index.d.ts +2 -0
- package/dist/public/factories/index.js +2 -0
- package/dist/public/index.d.ts +5 -0
- package/dist/public/index.js +5 -0
- package/dist/public/models/index.d.ts +3 -0
- package/dist/public/models/index.js +4 -0
- package/dist/public/ports/index.d.ts +1 -0
- package/dist/public/ports/index.js +2 -0
- package/dist/public/repository-ports/index.d.ts +1 -0
- package/dist/public/repository-ports/index.js +2 -0
- package/dist/public/services/index.d.ts +1 -0
- package/dist/public/services/index.js +2 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { mlgFieldsOf } from '@aopslab/xf-bm';
|
|
2
|
+
export const ibmPageVersionKeys = [
|
|
3
|
+
'id',
|
|
4
|
+
'tenantId',
|
|
5
|
+
'createdAt',
|
|
6
|
+
'updatedAt',
|
|
7
|
+
'pageId',
|
|
8
|
+
'version',
|
|
9
|
+
'title',
|
|
10
|
+
'format',
|
|
11
|
+
'content',
|
|
12
|
+
'contentMl',
|
|
13
|
+
'contentData',
|
|
14
|
+
'directives',
|
|
15
|
+
'status',
|
|
16
|
+
'createdBy',
|
|
17
|
+
'updatedBy',
|
|
18
|
+
];
|
|
19
|
+
const _verifyKeys = true;
|
|
20
|
+
void _verifyKeys;
|
|
21
|
+
export const bmPageVersionMlgFields = mlgFieldsOf()('contentMl', 'contentData', 'directives');
|
|
22
|
+
const _verifyMlgFields = true;
|
|
23
|
+
void _verifyMlgFields;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const pageVersionZodSchema: z.ZodObject<{
|
|
3
|
+
pageId: z.ZodString;
|
|
4
|
+
version: z.ZodNumber;
|
|
5
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6
|
+
format: z.ZodEnum<{
|
|
7
|
+
md: "md";
|
|
8
|
+
mdx: "mdx";
|
|
9
|
+
}>;
|
|
10
|
+
content: z.ZodOptional<z.ZodString>;
|
|
11
|
+
contentMl: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
12
|
+
en: z.ZodOptional<z.ZodString>;
|
|
13
|
+
tr: z.ZodOptional<z.ZodString>;
|
|
14
|
+
de: z.ZodOptional<z.ZodString>;
|
|
15
|
+
fr: z.ZodOptional<z.ZodString>;
|
|
16
|
+
it: z.ZodOptional<z.ZodString>;
|
|
17
|
+
es: z.ZodOptional<z.ZodString>;
|
|
18
|
+
pt: z.ZodOptional<z.ZodString>;
|
|
19
|
+
nl: z.ZodOptional<z.ZodString>;
|
|
20
|
+
pl: z.ZodOptional<z.ZodString>;
|
|
21
|
+
ro: z.ZodOptional<z.ZodString>;
|
|
22
|
+
ru: z.ZodOptional<z.ZodString>;
|
|
23
|
+
sv: z.ZodOptional<z.ZodString>;
|
|
24
|
+
no: z.ZodOptional<z.ZodString>;
|
|
25
|
+
da: z.ZodOptional<z.ZodString>;
|
|
26
|
+
fi: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>]>>;
|
|
28
|
+
contentData: z.ZodOptional<z.ZodUnknown>;
|
|
29
|
+
directives: z.ZodOptional<z.ZodUnknown>;
|
|
30
|
+
status: z.ZodEnum<{
|
|
31
|
+
draft: "draft";
|
|
32
|
+
published: "published";
|
|
33
|
+
archived: "archived";
|
|
34
|
+
}>;
|
|
35
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
36
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
37
|
+
createdAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>>;
|
|
38
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>>;
|
|
39
|
+
id: z.ZodOptional<z.ZodString>;
|
|
40
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const pageVersionZodSchemaInsert: z.ZodObject<{
|
|
43
|
+
title: z.ZodOptional<z.ZodString>;
|
|
44
|
+
status: z.ZodEnum<{
|
|
45
|
+
draft: "draft";
|
|
46
|
+
published: "published";
|
|
47
|
+
archived: "archived";
|
|
48
|
+
}>;
|
|
49
|
+
format: z.ZodEnum<{
|
|
50
|
+
md: "md";
|
|
51
|
+
mdx: "mdx";
|
|
52
|
+
}>;
|
|
53
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
54
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
55
|
+
version: z.ZodNumber;
|
|
56
|
+
pageId: z.ZodString;
|
|
57
|
+
content: z.ZodOptional<z.ZodString>;
|
|
58
|
+
contentMl: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
59
|
+
en: z.ZodOptional<z.ZodString>;
|
|
60
|
+
tr: z.ZodOptional<z.ZodString>;
|
|
61
|
+
de: z.ZodOptional<z.ZodString>;
|
|
62
|
+
fr: z.ZodOptional<z.ZodString>;
|
|
63
|
+
it: z.ZodOptional<z.ZodString>;
|
|
64
|
+
es: z.ZodOptional<z.ZodString>;
|
|
65
|
+
pt: z.ZodOptional<z.ZodString>;
|
|
66
|
+
nl: z.ZodOptional<z.ZodString>;
|
|
67
|
+
pl: z.ZodOptional<z.ZodString>;
|
|
68
|
+
ro: z.ZodOptional<z.ZodString>;
|
|
69
|
+
ru: z.ZodOptional<z.ZodString>;
|
|
70
|
+
sv: z.ZodOptional<z.ZodString>;
|
|
71
|
+
no: z.ZodOptional<z.ZodString>;
|
|
72
|
+
da: z.ZodOptional<z.ZodString>;
|
|
73
|
+
fi: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>]>>;
|
|
75
|
+
contentData: z.ZodOptional<z.ZodUnknown>;
|
|
76
|
+
directives: z.ZodOptional<z.ZodUnknown>;
|
|
77
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IbmZodSchema, mlgZodSchemaUnion } from '@aopslab/xf-bm';
|
|
3
|
+
export const pageVersionZodSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
...IbmZodSchema.shape,
|
|
6
|
+
pageId: z.string(),
|
|
7
|
+
version: z.number().int(),
|
|
8
|
+
title: z.string().optional(),
|
|
9
|
+
format: z.enum(['md', 'mdx']),
|
|
10
|
+
content: z.string().optional(),
|
|
11
|
+
contentMl: mlgZodSchemaUnion.optional(),
|
|
12
|
+
contentData: z.unknown().optional(),
|
|
13
|
+
directives: z.unknown().optional(),
|
|
14
|
+
status: z.enum(['draft', 'published', 'archived']),
|
|
15
|
+
createdBy: z.string().optional(),
|
|
16
|
+
updatedBy: z.string().optional(),
|
|
17
|
+
});
|
|
18
|
+
/* Insert schema */
|
|
19
|
+
export const pageVersionZodSchemaInsert = pageVersionZodSchema.omit({
|
|
20
|
+
id: true,
|
|
21
|
+
createdAt: true,
|
|
22
|
+
updatedAt: true,
|
|
23
|
+
tenantId: true,
|
|
24
|
+
}).strict();
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { DotNestedMlgKeys } from '@aopslab/xf-bm';
|
|
3
|
+
import { sectionZodSchema, sectionZodSchemaInsert } from './zod.schema.js';
|
|
4
|
+
export type IbmSection = z.infer<typeof sectionZodSchema>;
|
|
5
|
+
export type IbmSectionInsert = z.infer<typeof sectionZodSchemaInsert>;
|
|
6
|
+
export declare const ibmSectionKeys: readonly ["id", "tenantId", "createdAt", "updatedAt", "scopeId", "sectionUid", "title", "titleMl", "kind", "slug", "createdBy", "updatedBy"];
|
|
7
|
+
export type BmSectionMlgKeys = DotNestedMlgKeys<IbmSection>;
|
|
8
|
+
export declare const bmSectionMlgFields: "titleMl"[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { mlgFieldsOf } from '@aopslab/xf-bm';
|
|
2
|
+
export const ibmSectionKeys = [
|
|
3
|
+
'id',
|
|
4
|
+
'tenantId',
|
|
5
|
+
'createdAt',
|
|
6
|
+
'updatedAt',
|
|
7
|
+
'scopeId',
|
|
8
|
+
'sectionUid',
|
|
9
|
+
'title',
|
|
10
|
+
'titleMl',
|
|
11
|
+
'kind',
|
|
12
|
+
'slug',
|
|
13
|
+
'createdBy',
|
|
14
|
+
'updatedBy',
|
|
15
|
+
];
|
|
16
|
+
const _verifyKeys = true;
|
|
17
|
+
void _verifyKeys;
|
|
18
|
+
export const bmSectionMlgFields = mlgFieldsOf()('titleMl');
|
|
19
|
+
const _verifyMlgFields = true;
|
|
20
|
+
void _verifyMlgFields;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sectionZodSchema: z.ZodObject<{
|
|
3
|
+
scopeId: z.ZodString;
|
|
4
|
+
sectionUid: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
titleMl: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
7
|
+
en: z.ZodOptional<z.ZodString>;
|
|
8
|
+
tr: z.ZodOptional<z.ZodString>;
|
|
9
|
+
de: z.ZodOptional<z.ZodString>;
|
|
10
|
+
fr: z.ZodOptional<z.ZodString>;
|
|
11
|
+
it: z.ZodOptional<z.ZodString>;
|
|
12
|
+
es: z.ZodOptional<z.ZodString>;
|
|
13
|
+
pt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
nl: z.ZodOptional<z.ZodString>;
|
|
15
|
+
pl: z.ZodOptional<z.ZodString>;
|
|
16
|
+
ro: z.ZodOptional<z.ZodString>;
|
|
17
|
+
ru: z.ZodOptional<z.ZodString>;
|
|
18
|
+
sv: z.ZodOptional<z.ZodString>;
|
|
19
|
+
no: z.ZodOptional<z.ZodString>;
|
|
20
|
+
da: z.ZodOptional<z.ZodString>;
|
|
21
|
+
fi: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>]>>;
|
|
23
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
24
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
25
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
26
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
27
|
+
createdAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>>;
|
|
28
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>>;
|
|
29
|
+
id: z.ZodOptional<z.ZodString>;
|
|
30
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const sectionZodSchemaInsert: z.ZodObject<{
|
|
33
|
+
scopeId: z.ZodString;
|
|
34
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
35
|
+
title: z.ZodString;
|
|
36
|
+
titleMl: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
37
|
+
en: z.ZodOptional<z.ZodString>;
|
|
38
|
+
tr: z.ZodOptional<z.ZodString>;
|
|
39
|
+
de: z.ZodOptional<z.ZodString>;
|
|
40
|
+
fr: z.ZodOptional<z.ZodString>;
|
|
41
|
+
it: z.ZodOptional<z.ZodString>;
|
|
42
|
+
es: z.ZodOptional<z.ZodString>;
|
|
43
|
+
pt: z.ZodOptional<z.ZodString>;
|
|
44
|
+
nl: z.ZodOptional<z.ZodString>;
|
|
45
|
+
pl: z.ZodOptional<z.ZodString>;
|
|
46
|
+
ro: z.ZodOptional<z.ZodString>;
|
|
47
|
+
ru: z.ZodOptional<z.ZodString>;
|
|
48
|
+
sv: z.ZodOptional<z.ZodString>;
|
|
49
|
+
no: z.ZodOptional<z.ZodString>;
|
|
50
|
+
da: z.ZodOptional<z.ZodString>;
|
|
51
|
+
fi: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>]>>;
|
|
53
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
54
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
55
|
+
sectionUid: z.ZodString;
|
|
56
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IbmZodSchema, mlgZodSchemaUnion } from '@aopslab/xf-bm';
|
|
3
|
+
export const sectionZodSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
...IbmZodSchema.shape,
|
|
6
|
+
scopeId: z.string(),
|
|
7
|
+
sectionUid: z.string(),
|
|
8
|
+
title: z.string(),
|
|
9
|
+
titleMl: mlgZodSchemaUnion.optional(),
|
|
10
|
+
kind: z.string().optional(),
|
|
11
|
+
slug: z.string().optional(),
|
|
12
|
+
createdBy: z.string().optional(),
|
|
13
|
+
updatedBy: z.string().optional(),
|
|
14
|
+
});
|
|
15
|
+
/* Insert schema */
|
|
16
|
+
export const sectionZodSchemaInsert = sectionZodSchema.omit({
|
|
17
|
+
id: true,
|
|
18
|
+
createdAt: true,
|
|
19
|
+
updatedAt: true,
|
|
20
|
+
tenantId: true,
|
|
21
|
+
}).strict();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { sectionPageLinkZodSchema, sectionPageLinkZodSchemaInsert } from './zod.schema.js';
|
|
3
|
+
export type IbmSectionPageLink = z.infer<typeof sectionPageLinkZodSchema>;
|
|
4
|
+
export type IbmSectionPageLinkInsert = z.infer<typeof sectionPageLinkZodSchemaInsert>;
|
|
5
|
+
export declare const ibmSectionPageLinkKeys: readonly ["id", "tenantId", "createdAt", "updatedAt", "sectionId", "pageVersionId", "position", "numbering", "titleOverride", "titleVisible", "pageBreakBefore", "pageBreakAfter", "createdBy", "updatedBy"];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const ibmSectionPageLinkKeys = [
|
|
2
|
+
'id',
|
|
3
|
+
'tenantId',
|
|
4
|
+
'createdAt',
|
|
5
|
+
'updatedAt',
|
|
6
|
+
'sectionId',
|
|
7
|
+
'pageVersionId',
|
|
8
|
+
'position',
|
|
9
|
+
'numbering',
|
|
10
|
+
'titleOverride',
|
|
11
|
+
'titleVisible',
|
|
12
|
+
'pageBreakBefore',
|
|
13
|
+
'pageBreakAfter',
|
|
14
|
+
'createdBy',
|
|
15
|
+
'updatedBy',
|
|
16
|
+
];
|
|
17
|
+
const _verifyKeys = true;
|
|
18
|
+
void _verifyKeys;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sectionPageLinkZodSchema: z.ZodObject<{
|
|
3
|
+
sectionId: z.ZodString;
|
|
4
|
+
pageVersionId: z.ZodString;
|
|
5
|
+
position: z.ZodNumber;
|
|
6
|
+
numbering: z.ZodOptional<z.ZodString>;
|
|
7
|
+
titleOverride: z.ZodOptional<z.ZodString>;
|
|
8
|
+
titleVisible: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
12
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>>;
|
|
15
|
+
id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const sectionPageLinkZodSchemaInsert: z.ZodObject<{
|
|
19
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
20
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
21
|
+
position: z.ZodNumber;
|
|
22
|
+
titleVisible: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
sectionId: z.ZodString;
|
|
26
|
+
pageVersionId: z.ZodString;
|
|
27
|
+
titleOverride: z.ZodOptional<z.ZodString>;
|
|
28
|
+
numbering: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IbmZodSchema } from '@aopslab/xf-bm';
|
|
3
|
+
export const sectionPageLinkZodSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
...IbmZodSchema.shape,
|
|
6
|
+
sectionId: z.string(),
|
|
7
|
+
pageVersionId: z.string(),
|
|
8
|
+
position: z.number().int(),
|
|
9
|
+
numbering: z.string().optional(),
|
|
10
|
+
titleOverride: z.string().optional(),
|
|
11
|
+
titleVisible: z.boolean().optional(),
|
|
12
|
+
pageBreakBefore: z.boolean().optional(),
|
|
13
|
+
pageBreakAfter: z.boolean().optional(),
|
|
14
|
+
createdBy: z.string().optional(),
|
|
15
|
+
updatedBy: z.string().optional(),
|
|
16
|
+
});
|
|
17
|
+
/* Insert schema */
|
|
18
|
+
export const sectionPageLinkZodSchemaInsert = sectionPageLinkZodSchema.omit({
|
|
19
|
+
id: true,
|
|
20
|
+
createdAt: true,
|
|
21
|
+
updatedAt: true,
|
|
22
|
+
tenantId: true,
|
|
23
|
+
}).strict();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { snippetZodSchema, snippetZodSchemaInsert } from './zod.schema.js';
|
|
3
|
+
export type IbmSnippet = z.infer<typeof snippetZodSchema>;
|
|
4
|
+
export type IbmSnippetInsert = z.infer<typeof snippetZodSchemaInsert>;
|
|
5
|
+
export declare const ibmSnippetKeys: readonly ["id", "tenantId", "createdAt", "updatedAt", "scopeId", "snippetUid", "title", "language", "code", "description", "meta", "createdBy", "updatedBy"];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const ibmSnippetKeys = [
|
|
2
|
+
'id',
|
|
3
|
+
'tenantId',
|
|
4
|
+
'createdAt',
|
|
5
|
+
'updatedAt',
|
|
6
|
+
'scopeId',
|
|
7
|
+
'snippetUid',
|
|
8
|
+
'title',
|
|
9
|
+
'language',
|
|
10
|
+
'code',
|
|
11
|
+
'description',
|
|
12
|
+
'meta',
|
|
13
|
+
'createdBy',
|
|
14
|
+
'updatedBy',
|
|
15
|
+
];
|
|
16
|
+
const _verifyKeys = true;
|
|
17
|
+
void _verifyKeys;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const snippetZodSchema: z.ZodObject<{
|
|
3
|
+
scopeId: z.ZodString;
|
|
4
|
+
snippetUid: z.ZodString;
|
|
5
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6
|
+
language: z.ZodString;
|
|
7
|
+
code: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
meta: z.ZodOptional<z.ZodUnknown>;
|
|
10
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
11
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
12
|
+
createdAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>>;
|
|
13
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>>;
|
|
14
|
+
id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const snippetZodSchemaInsert: z.ZodObject<{
|
|
18
|
+
scopeId: z.ZodString;
|
|
19
|
+
title: z.ZodOptional<z.ZodString>;
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
meta: z.ZodOptional<z.ZodUnknown>;
|
|
22
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
23
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
24
|
+
code: z.ZodString;
|
|
25
|
+
snippetUid: z.ZodString;
|
|
26
|
+
language: z.ZodString;
|
|
27
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IbmZodSchema } from '@aopslab/xf-bm';
|
|
3
|
+
export const snippetZodSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
...IbmZodSchema.shape,
|
|
6
|
+
scopeId: z.string(),
|
|
7
|
+
snippetUid: z.string(),
|
|
8
|
+
title: z.string().optional(),
|
|
9
|
+
language: z.string(),
|
|
10
|
+
code: z.string(),
|
|
11
|
+
description: z.string().optional(),
|
|
12
|
+
meta: z.unknown().optional(),
|
|
13
|
+
createdBy: z.string().optional(),
|
|
14
|
+
updatedBy: z.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
/* Insert schema */
|
|
17
|
+
export const snippetZodSchemaInsert = snippetZodSchema.omit({
|
|
18
|
+
id: true,
|
|
19
|
+
createdAt: true,
|
|
20
|
+
updatedAt: true,
|
|
21
|
+
tenantId: true,
|
|
22
|
+
}).strict();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const mapperAssetDrizzle: import("@aopslab/xf-db").IBmDbMapper<{
|
|
2
|
+
scopeId: string;
|
|
3
|
+
assetUid: string;
|
|
4
|
+
kind: "file" | "document" | "image" | "attachment";
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
slug?: string | undefined;
|
|
7
|
+
altText?: string | undefined;
|
|
8
|
+
currentVersionId?: string | undefined;
|
|
9
|
+
meta?: unknown;
|
|
10
|
+
createdBy?: string | undefined;
|
|
11
|
+
updatedBy?: string | undefined;
|
|
12
|
+
createdAt?: Date | undefined;
|
|
13
|
+
updatedAt?: Date | undefined;
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
tenantId?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
scopeId: string;
|
|
18
|
+
slug: string | null;
|
|
19
|
+
title: string | null;
|
|
20
|
+
meta: Record<string, unknown> | null;
|
|
21
|
+
createdBy: string | null;
|
|
22
|
+
updatedBy: string | null;
|
|
23
|
+
createdAt: Date | null;
|
|
24
|
+
updatedAt: Date | null;
|
|
25
|
+
id: string;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
kind: string;
|
|
28
|
+
assetUid: string;
|
|
29
|
+
altText: string | null;
|
|
30
|
+
currentVersionId: string | null;
|
|
31
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createBmDbMapper, stringToUuid, uuidToString } from '@aopslab/xf-db';
|
|
2
|
+
const conversions = {
|
|
3
|
+
id: { toDomain: uuidToString, toDb: stringToUuid },
|
|
4
|
+
currentVersionId: { toDomain: uuidToString, toDb: stringToUuid },
|
|
5
|
+
};
|
|
6
|
+
export const mapperAssetDrizzle = createBmDbMapper(conversions);
|