@walde.ai/walde-sdk 0.1.0
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 +21 -0
- package/README.md +47 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/sdk/contracts/frontend-content/v1/content-format-v1.d.ts +8 -0
- package/dist/sdk/contracts/frontend-content/v1/content-format-v1.d.ts.map +1 -0
- package/dist/sdk/contracts/frontend-content/v1/content-format-v1.js +2 -0
- package/dist/sdk/contracts/frontend-content/v1/content-format-v1.js.map +1 -0
- package/dist/sdk/contracts/frontend-content/v1/content-part-v1.d.ts +8 -0
- package/dist/sdk/contracts/frontend-content/v1/content-part-v1.d.ts.map +1 -0
- package/dist/sdk/contracts/frontend-content/v1/content-part-v1.js +2 -0
- package/dist/sdk/contracts/frontend-content/v1/content-part-v1.js.map +1 -0
- package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.d.ts +13 -0
- package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.d.ts.map +1 -0
- package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.js +2 -0
- package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.js.map +1 -0
- package/dist/sdk/contracts/manifest/v1/manifest-content-v1.d.ts +12 -0
- package/dist/sdk/contracts/manifest/v1/manifest-content-v1.d.ts.map +1 -0
- package/dist/sdk/contracts/manifest/v1/manifest-content-v1.js +2 -0
- package/dist/sdk/contracts/manifest/v1/manifest-content-v1.js.map +1 -0
- package/dist/sdk/contracts/manifest/v1/manifest-v1.d.ts +9 -0
- package/dist/sdk/contracts/manifest/v1/manifest-v1.d.ts.map +1 -0
- package/dist/sdk/contracts/manifest/v1/manifest-v1.js +2 -0
- package/dist/sdk/contracts/manifest/v1/manifest-v1.js.map +1 -0
- package/dist/sdk/domain/entities/content-format.d.ts +9 -0
- package/dist/sdk/domain/entities/content-format.d.ts.map +1 -0
- package/dist/sdk/domain/entities/content-format.js +12 -0
- package/dist/sdk/domain/entities/content-format.js.map +1 -0
- package/dist/sdk/domain/entities/content-part.d.ts +26 -0
- package/dist/sdk/domain/entities/content-part.d.ts.map +1 -0
- package/dist/sdk/domain/entities/content-part.js +36 -0
- package/dist/sdk/domain/entities/content-part.js.map +1 -0
- package/dist/sdk/domain/entities/content-state.d.ts +8 -0
- package/dist/sdk/domain/entities/content-state.d.ts.map +1 -0
- package/dist/sdk/domain/entities/content-state.js +9 -0
- package/dist/sdk/domain/entities/content-state.js.map +1 -0
- package/dist/sdk/domain/entities/content-version.d.ts +27 -0
- package/dist/sdk/domain/entities/content-version.d.ts.map +1 -0
- package/dist/sdk/domain/entities/content-version.js +37 -0
- package/dist/sdk/domain/entities/content-version.js.map +1 -0
- package/dist/sdk/domain/entities/content.d.ts +21 -0
- package/dist/sdk/domain/entities/content.d.ts.map +1 -0
- package/dist/sdk/domain/entities/content.js +26 -0
- package/dist/sdk/domain/entities/content.js.map +1 -0
- package/dist/sdk/domain/entities/credentials.d.ts +14 -0
- package/dist/sdk/domain/entities/credentials.d.ts.map +1 -0
- package/dist/sdk/domain/entities/credentials.js +20 -0
- package/dist/sdk/domain/entities/credentials.js.map +1 -0
- package/dist/sdk/domain/entities/dns-entry.d.ts +10 -0
- package/dist/sdk/domain/entities/dns-entry.d.ts.map +1 -0
- package/dist/sdk/domain/entities/dns-entry.js +14 -0
- package/dist/sdk/domain/entities/dns-entry.js.map +1 -0
- package/dist/sdk/domain/entities/file.d.ts +14 -0
- package/dist/sdk/domain/entities/file.d.ts.map +1 -0
- package/dist/sdk/domain/entities/file.js +17 -0
- package/dist/sdk/domain/entities/file.js.map +1 -0
- package/dist/sdk/domain/entities/format-part.d.ts +16 -0
- package/dist/sdk/domain/entities/format-part.d.ts.map +1 -0
- package/dist/sdk/domain/entities/format-part.js +2 -0
- package/dist/sdk/domain/entities/format-part.js.map +1 -0
- package/dist/sdk/domain/entities/format.d.ts +14 -0
- package/dist/sdk/domain/entities/format.d.ts.map +1 -0
- package/dist/sdk/domain/entities/format.js +23 -0
- package/dist/sdk/domain/entities/format.js.map +1 -0
- package/dist/sdk/domain/entities/frontend-content.d.ts +13 -0
- package/dist/sdk/domain/entities/frontend-content.d.ts.map +1 -0
- package/dist/sdk/domain/entities/frontend-content.js +16 -0
- package/dist/sdk/domain/entities/frontend-content.js.map +1 -0
- package/dist/sdk/domain/entities/key-value-part.d.ts +20 -0
- package/dist/sdk/domain/entities/key-value-part.d.ts.map +1 -0
- package/dist/sdk/domain/entities/key-value-part.js +31 -0
- package/dist/sdk/domain/entities/key-value-part.js.map +1 -0
- package/dist/sdk/domain/entities/manifest-content.d.ts +12 -0
- package/dist/sdk/domain/entities/manifest-content.d.ts.map +1 -0
- package/dist/sdk/domain/entities/manifest-content.js +18 -0
- package/dist/sdk/domain/entities/manifest-content.js.map +1 -0
- package/dist/sdk/domain/entities/manifest.d.ts +9 -0
- package/dist/sdk/domain/entities/manifest.d.ts.map +1 -0
- package/dist/sdk/domain/entities/manifest.js +10 -0
- package/dist/sdk/domain/entities/manifest.js.map +1 -0
- package/dist/sdk/domain/entities/markdown-part.d.ts +14 -0
- package/dist/sdk/domain/entities/markdown-part.d.ts.map +1 -0
- package/dist/sdk/domain/entities/markdown-part.js +15 -0
- package/dist/sdk/domain/entities/markdown-part.js.map +1 -0
- package/dist/sdk/domain/entities/site.d.ts +16 -0
- package/dist/sdk/domain/entities/site.d.ts.map +1 -0
- package/dist/sdk/domain/entities/site.js +21 -0
- package/dist/sdk/domain/entities/site.js.map +1 -0
- package/dist/sdk/domain/entities/string-part.d.ts +14 -0
- package/dist/sdk/domain/entities/string-part.d.ts.map +1 -0
- package/dist/sdk/domain/entities/string-part.js +15 -0
- package/dist/sdk/domain/entities/string-part.js.map +1 -0
- package/dist/sdk/domain/entities/ui-upload-credentials.d.ts +22 -0
- package/dist/sdk/domain/entities/ui-upload-credentials.d.ts.map +1 -0
- package/dist/sdk/domain/entities/ui-upload-credentials.js +38 -0
- package/dist/sdk/domain/entities/ui-upload-credentials.js.map +1 -0
- package/dist/sdk/domain/entities/walde-admin-config.d.ts +51 -0
- package/dist/sdk/domain/entities/walde-admin-config.d.ts.map +1 -0
- package/dist/sdk/domain/entities/walde-admin-config.js +69 -0
- package/dist/sdk/domain/entities/walde-admin-config.js.map +1 -0
- package/dist/sdk/domain/entities/workspace-config.d.ts +20 -0
- package/dist/sdk/domain/entities/workspace-config.d.ts.map +1 -0
- package/dist/sdk/domain/entities/workspace-config.js +17 -0
- package/dist/sdk/domain/entities/workspace-config.js.map +1 -0
- package/dist/sdk/domain/errors/index.d.ts +11 -0
- package/dist/sdk/domain/errors/index.d.ts.map +1 -0
- package/dist/sdk/domain/errors/index.js +11 -0
- package/dist/sdk/domain/errors/index.js.map +1 -0
- package/dist/sdk/domain/errors/walde-authentication-error.d.ts +21 -0
- package/dist/sdk/domain/errors/walde-authentication-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-authentication-error.js +23 -0
- package/dist/sdk/domain/errors/walde-authentication-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-configuration-error.d.ts +21 -0
- package/dist/sdk/domain/errors/walde-configuration-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-configuration-error.js +23 -0
- package/dist/sdk/domain/errors/walde-configuration-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-error.d.ts +9 -0
- package/dist/sdk/domain/errors/walde-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-error.js +12 -0
- package/dist/sdk/domain/errors/walde-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-local-error.d.ts +22 -0
- package/dist/sdk/domain/errors/walde-local-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-local-error.js +24 -0
- package/dist/sdk/domain/errors/walde-local-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-network-error.d.ts +21 -0
- package/dist/sdk/domain/errors/walde-network-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-network-error.js +23 -0
- package/dist/sdk/domain/errors/walde-network-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-system-error.d.ts +10 -0
- package/dist/sdk/domain/errors/walde-system-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-system-error.js +13 -0
- package/dist/sdk/domain/errors/walde-system-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-unexpected-error.d.ts +21 -0
- package/dist/sdk/domain/errors/walde-unexpected-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-unexpected-error.js +23 -0
- package/dist/sdk/domain/errors/walde-unexpected-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-usage-error.d.ts +21 -0
- package/dist/sdk/domain/errors/walde-usage-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-usage-error.js +23 -0
- package/dist/sdk/domain/errors/walde-usage-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-user-error.d.ts +9 -0
- package/dist/sdk/domain/errors/walde-user-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-user-error.js +11 -0
- package/dist/sdk/domain/errors/walde-user-error.js.map +1 -0
- package/dist/sdk/domain/errors/walde-validation-error.d.ts +20 -0
- package/dist/sdk/domain/errors/walde-validation-error.d.ts.map +1 -0
- package/dist/sdk/domain/errors/walde-validation-error.js +22 -0
- package/dist/sdk/domain/errors/walde-validation-error.js.map +1 -0
- package/dist/sdk/domain/interactors/api-call.d.ts +19 -0
- package/dist/sdk/domain/interactors/api-call.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/api-call.js +31 -0
- package/dist/sdk/domain/interactors/api-call.js.map +1 -0
- package/dist/sdk/domain/interactors/associate-site-certificates.d.ts +11 -0
- package/dist/sdk/domain/interactors/associate-site-certificates.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/associate-site-certificates.js +20 -0
- package/dist/sdk/domain/interactors/associate-site-certificates.js.map +1 -0
- package/dist/sdk/domain/interactors/content/list-contents.d.ts +16 -0
- package/dist/sdk/domain/interactors/content/list-contents.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/content/list-contents.js +18 -0
- package/dist/sdk/domain/interactors/content/list-contents.js.map +1 -0
- package/dist/sdk/domain/interactors/content/parse-content-file.d.ts +19 -0
- package/dist/sdk/domain/interactors/content/parse-content-file.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/content/parse-content-file.js +68 -0
- package/dist/sdk/domain/interactors/content/parse-content-file.js.map +1 -0
- package/dist/sdk/domain/interactors/content/push-content.d.ts +21 -0
- package/dist/sdk/domain/interactors/content/push-content.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/content/push-content.js +31 -0
- package/dist/sdk/domain/interactors/content/push-content.js.map +1 -0
- package/dist/sdk/domain/interactors/create-site.d.ts +9 -0
- package/dist/sdk/domain/interactors/create-site.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/create-site.js +19 -0
- package/dist/sdk/domain/interactors/create-site.js.map +1 -0
- package/dist/sdk/domain/interactors/get-credentials.d.ts +14 -0
- package/dist/sdk/domain/interactors/get-credentials.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/get-credentials.js +16 -0
- package/dist/sdk/domain/interactors/get-credentials.js.map +1 -0
- package/dist/sdk/domain/interactors/get-token.d.ts +13 -0
- package/dist/sdk/domain/interactors/get-token.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/get-token.js +21 -0
- package/dist/sdk/domain/interactors/get-token.js.map +1 -0
- package/dist/sdk/domain/interactors/list-sites.d.ts +9 -0
- package/dist/sdk/domain/interactors/list-sites.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/list-sites.js +17 -0
- package/dist/sdk/domain/interactors/list-sites.js.map +1 -0
- package/dist/sdk/domain/interactors/refresh-credentials.d.ts +16 -0
- package/dist/sdk/domain/interactors/refresh-credentials.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/refresh-credentials.js +25 -0
- package/dist/sdk/domain/interactors/refresh-credentials.js.map +1 -0
- package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.d.ts +24 -0
- package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.js +58 -0
- package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.js.map +1 -0
- package/dist/sdk/domain/interactors/update-site.d.ts +9 -0
- package/dist/sdk/domain/interactors/update-site.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/update-site.js +19 -0
- package/dist/sdk/domain/interactors/update-site.js.map +1 -0
- package/dist/sdk/domain/interactors/workspace/init-workspace.d.ts +19 -0
- package/dist/sdk/domain/interactors/workspace/init-workspace.d.ts.map +1 -0
- package/dist/sdk/domain/interactors/workspace/init-workspace.js +26 -0
- package/dist/sdk/domain/interactors/workspace/init-workspace.js.map +1 -0
- package/dist/sdk/domain/ports/backend/backend-client.d.ts +7 -0
- package/dist/sdk/domain/ports/backend/backend-client.d.ts.map +1 -0
- package/dist/sdk/domain/ports/backend/backend-client.js +2 -0
- package/dist/sdk/domain/ports/backend/backend-client.js.map +1 -0
- package/dist/sdk/domain/ports/in/content-file-reader.d.ts +15 -0
- package/dist/sdk/domain/ports/in/content-file-reader.d.ts.map +1 -0
- package/dist/sdk/domain/ports/in/content-file-reader.js +2 -0
- package/dist/sdk/domain/ports/in/content-file-reader.js.map +1 -0
- package/dist/sdk/domain/ports/in/token-provider.d.ts +10 -0
- package/dist/sdk/domain/ports/in/token-provider.d.ts.map +1 -0
- package/dist/sdk/domain/ports/in/token-provider.js +2 -0
- package/dist/sdk/domain/ports/in/token-provider.js.map +1 -0
- package/dist/sdk/domain/ports/out/backend-communication.d.ts +22 -0
- package/dist/sdk/domain/ports/out/backend-communication.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/backend-communication.js +2 -0
- package/dist/sdk/domain/ports/out/backend-communication.js.map +1 -0
- package/dist/sdk/domain/ports/out/content-file-writer.d.ts +12 -0
- package/dist/sdk/domain/ports/out/content-file-writer.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/content-file-writer.js +2 -0
- package/dist/sdk/domain/ports/out/content-file-writer.js.map +1 -0
- package/dist/sdk/domain/ports/out/content-repo.d.ts +27 -0
- package/dist/sdk/domain/ports/out/content-repo.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/content-repo.js +2 -0
- package/dist/sdk/domain/ports/out/content-repo.js.map +1 -0
- package/dist/sdk/domain/ports/out/credentials-provider.d.ts +15 -0
- package/dist/sdk/domain/ports/out/credentials-provider.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/credentials-provider.js +2 -0
- package/dist/sdk/domain/ports/out/credentials-provider.js.map +1 -0
- package/dist/sdk/domain/ports/out/file-system-reader.d.ts +13 -0
- package/dist/sdk/domain/ports/out/file-system-reader.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/file-system-reader.js +2 -0
- package/dist/sdk/domain/ports/out/file-system-reader.js.map +1 -0
- package/dist/sdk/domain/ports/out/remote-files-repo.d.ts +20 -0
- package/dist/sdk/domain/ports/out/remote-files-repo.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/remote-files-repo.js +2 -0
- package/dist/sdk/domain/ports/out/remote-files-repo.js.map +1 -0
- package/dist/sdk/domain/ports/out/site-repository.d.ts +35 -0
- package/dist/sdk/domain/ports/out/site-repository.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/site-repository.js +2 -0
- package/dist/sdk/domain/ports/out/site-repository.js.map +1 -0
- package/dist/sdk/domain/ports/out/token-refresh-provider.d.ts +11 -0
- package/dist/sdk/domain/ports/out/token-refresh-provider.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/token-refresh-provider.js +2 -0
- package/dist/sdk/domain/ports/out/token-refresh-provider.js.map +1 -0
- package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.d.ts +11 -0
- package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.js +2 -0
- package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.js.map +1 -0
- package/dist/sdk/domain/ports/out/upload-progress-callback.d.ts +26 -0
- package/dist/sdk/domain/ports/out/upload-progress-callback.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/upload-progress-callback.js +2 -0
- package/dist/sdk/domain/ports/out/upload-progress-callback.js.map +1 -0
- package/dist/sdk/domain/ports/out/workspace-config-repo.d.ts +25 -0
- package/dist/sdk/domain/ports/out/workspace-config-repo.d.ts.map +1 -0
- package/dist/sdk/domain/ports/out/workspace-config-repo.js +2 -0
- package/dist/sdk/domain/ports/out/workspace-config-repo.js.map +1 -0
- package/dist/sdk/index.d.ts +35 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +35 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/infra/adapters/api-client.d.ts +58 -0
- package/dist/sdk/infra/adapters/api-client.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/api-client.js +73 -0
- package/dist/sdk/infra/adapters/api-client.js.map +1 -0
- package/dist/sdk/infra/adapters/base-http-client.d.ts +25 -0
- package/dist/sdk/infra/adapters/base-http-client.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/base-http-client.js +110 -0
- package/dist/sdk/infra/adapters/base-http-client.js.map +1 -0
- package/dist/sdk/infra/adapters/cognito-token-refresh-provider.d.ts +16 -0
- package/dist/sdk/infra/adapters/cognito-token-refresh-provider.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/cognito-token-refresh-provider.js +46 -0
- package/dist/sdk/infra/adapters/cognito-token-refresh-provider.js.map +1 -0
- package/dist/sdk/infra/adapters/default-http-client.d.ts +38 -0
- package/dist/sdk/infra/adapters/default-http-client.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/default-http-client.js +133 -0
- package/dist/sdk/infra/adapters/default-http-client.js.map +1 -0
- package/dist/sdk/infra/adapters/default-token-provider.d.ts +14 -0
- package/dist/sdk/infra/adapters/default-token-provider.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/default-token-provider.js +23 -0
- package/dist/sdk/infra/adapters/default-token-provider.js.map +1 -0
- package/dist/sdk/infra/adapters/filesystem/file-content-reader.d.ts +16 -0
- package/dist/sdk/infra/adapters/filesystem/file-content-reader.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/filesystem/file-content-reader.js +27 -0
- package/dist/sdk/infra/adapters/filesystem/file-content-reader.js.map +1 -0
- package/dist/sdk/infra/adapters/filesystem/file-content-writer.d.ts +13 -0
- package/dist/sdk/infra/adapters/filesystem/file-content-writer.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/filesystem/file-content-writer.js +36 -0
- package/dist/sdk/infra/adapters/filesystem/file-content-writer.js.map +1 -0
- package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.d.ts +21 -0
- package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.js +52 -0
- package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.js.map +1 -0
- package/dist/sdk/infra/adapters/frontend-http-client.d.ts +12 -0
- package/dist/sdk/infra/adapters/frontend-http-client.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/frontend-http-client.js +18 -0
- package/dist/sdk/infra/adapters/frontend-http-client.js.map +1 -0
- package/dist/sdk/infra/adapters/http/http-content-repo.d.ts +33 -0
- package/dist/sdk/infra/adapters/http/http-content-repo.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/http/http-content-repo.js +85 -0
- package/dist/sdk/infra/adapters/http/http-content-repo.js.map +1 -0
- package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.d.ts +22 -0
- package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.js +73 -0
- package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.js.map +1 -0
- package/dist/sdk/infra/adapters/repositories/credentials-file-repo.d.ts +18 -0
- package/dist/sdk/infra/adapters/repositories/credentials-file-repo.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/repositories/credentials-file-repo.js +41 -0
- package/dist/sdk/infra/adapters/repositories/credentials-file-repo.js.map +1 -0
- package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.d.ts +11 -0
- package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.js +20 -0
- package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.js.map +1 -0
- package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.d.ts +11 -0
- package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.js +38 -0
- package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.js.map +1 -0
- package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.d.ts +26 -0
- package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.js +86 -0
- package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.js.map +1 -0
- package/dist/sdk/infra/adapters/repositories/http-site-repo.d.ts +15 -0
- package/dist/sdk/infra/adapters/repositories/http-site-repo.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/repositories/http-site-repo.js +51 -0
- package/dist/sdk/infra/adapters/repositories/http-site-repo.js.map +1 -0
- package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.d.ts +9 -0
- package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.js +13 -0
- package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.js.map +1 -0
- package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.d.ts +15 -0
- package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.d.ts.map +1 -0
- package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.js +25 -0
- package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.js.map +1 -0
- package/dist/sdk/infra/backend/walde-client.d.ts +13 -0
- package/dist/sdk/infra/backend/walde-client.d.ts.map +1 -0
- package/dist/sdk/infra/backend/walde-client.js +29 -0
- package/dist/sdk/infra/backend/walde-client.js.map +1 -0
- package/dist/sdk/infra/factories/s3-files-repo-factory.d.ts +9 -0
- package/dist/sdk/infra/factories/s3-files-repo-factory.d.ts.map +1 -0
- package/dist/sdk/infra/factories/s3-files-repo-factory.js +10 -0
- package/dist/sdk/infra/factories/s3-files-repo-factory.js.map +1 -0
- package/dist/sdk/infra/factories/walde-admin-config-factory.d.ts +24 -0
- package/dist/sdk/infra/factories/walde-admin-config-factory.d.ts.map +1 -0
- package/dist/sdk/infra/factories/walde-admin-config-factory.js +99 -0
- package/dist/sdk/infra/factories/walde-admin-config-factory.js.map +1 -0
- package/dist/sdk/infra/factories/walde-admin-factory.d.ts +17 -0
- package/dist/sdk/infra/factories/walde-admin-factory.d.ts.map +1 -0
- package/dist/sdk/infra/factories/walde-admin-factory.js +42 -0
- package/dist/sdk/infra/factories/walde-admin-factory.js.map +1 -0
- package/dist/sdk/infra/factories/walde-factory.d.ts +13 -0
- package/dist/sdk/infra/factories/walde-factory.d.ts.map +1 -0
- package/dist/sdk/infra/factories/walde-factory.js +19 -0
- package/dist/sdk/infra/factories/walde-factory.js.map +1 -0
- package/dist/sdk/infra/futures/api-future.d.ts +15 -0
- package/dist/sdk/infra/futures/api-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/api-future.js +28 -0
- package/dist/sdk/infra/futures/api-future.js.map +1 -0
- package/dist/sdk/infra/futures/content-future.d.ts +26 -0
- package/dist/sdk/infra/futures/content-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/content-future.js +63 -0
- package/dist/sdk/infra/futures/content-future.js.map +1 -0
- package/dist/sdk/infra/futures/content-item-future.d.ts +25 -0
- package/dist/sdk/infra/futures/content-item-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/content-item-future.js +47 -0
- package/dist/sdk/infra/futures/content-item-future.js.map +1 -0
- package/dist/sdk/infra/futures/content-iterator.d.ts +44 -0
- package/dist/sdk/infra/futures/content-iterator.d.ts.map +1 -0
- package/dist/sdk/infra/futures/content-iterator.js +123 -0
- package/dist/sdk/infra/futures/content-iterator.js.map +1 -0
- package/dist/sdk/infra/futures/content-list-future.d.ts +16 -0
- package/dist/sdk/infra/futures/content-list-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/content-list-future.js +19 -0
- package/dist/sdk/infra/futures/content-list-future.js.map +1 -0
- package/dist/sdk/infra/futures/contents-future.d.ts +23 -0
- package/dist/sdk/infra/futures/contents-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/contents-future.js +33 -0
- package/dist/sdk/infra/futures/contents-future.js.map +1 -0
- package/dist/sdk/infra/futures/credentials-future.d.ts +14 -0
- package/dist/sdk/infra/futures/credentials-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/credentials-future.js +67 -0
- package/dist/sdk/infra/futures/credentials-future.js.map +1 -0
- package/dist/sdk/infra/futures/frontend-contents-future.d.ts +37 -0
- package/dist/sdk/infra/futures/frontend-contents-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/frontend-contents-future.js +62 -0
- package/dist/sdk/infra/futures/frontend-contents-future.js.map +1 -0
- package/dist/sdk/infra/futures/manifest-future.d.ts +18 -0
- package/dist/sdk/infra/futures/manifest-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/manifest-future.js +28 -0
- package/dist/sdk/infra/futures/manifest-future.js.map +1 -0
- package/dist/sdk/infra/futures/site-future.d.ts +41 -0
- package/dist/sdk/infra/futures/site-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/site-future.js +113 -0
- package/dist/sdk/infra/futures/site-future.js.map +1 -0
- package/dist/sdk/infra/futures/sites-future.d.ts +19 -0
- package/dist/sdk/infra/futures/sites-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/sites-future.js +35 -0
- package/dist/sdk/infra/futures/sites-future.js.map +1 -0
- package/dist/sdk/infra/futures/ui-future.d.ts +25 -0
- package/dist/sdk/infra/futures/ui-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/ui-future.js +35 -0
- package/dist/sdk/infra/futures/ui-future.js.map +1 -0
- package/dist/sdk/infra/futures/walde-admin-future.d.ts +41 -0
- package/dist/sdk/infra/futures/walde-admin-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/walde-admin-future.js +50 -0
- package/dist/sdk/infra/futures/walde-admin-future.js.map +1 -0
- package/dist/sdk/infra/futures/walde-future.d.ts +40 -0
- package/dist/sdk/infra/futures/walde-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/walde-future.js +66 -0
- package/dist/sdk/infra/futures/walde-future.js.map +1 -0
- package/dist/sdk/infra/futures/workspace-future.d.ts +38 -0
- package/dist/sdk/infra/futures/workspace-future.d.ts.map +1 -0
- package/dist/sdk/infra/futures/workspace-future.js +45 -0
- package/dist/sdk/infra/futures/workspace-future.js.map +1 -0
- package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.d.ts +20 -0
- package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.d.ts.map +1 -0
- package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.js +54 -0
- package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.js.map +1 -0
- package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.d.ts +24 -0
- package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.d.ts.map +1 -0
- package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.js +49 -0
- package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.js.map +1 -0
- package/dist/sdk/make-walde-admin.d.ts +15 -0
- package/dist/sdk/make-walde-admin.d.ts.map +1 -0
- package/dist/sdk/make-walde-admin.js +8 -0
- package/dist/sdk/make-walde-admin.js.map +1 -0
- package/dist/sdk/make-walde.d.ts +12 -0
- package/dist/sdk/make-walde.d.ts.map +1 -0
- package/dist/sdk/make-walde.js +8 -0
- package/dist/sdk/make-walde.js.map +1 -0
- package/dist/std/domain/entities/future.d.ts +28 -0
- package/dist/std/domain/entities/future.d.ts.map +1 -0
- package/dist/std/domain/entities/future.js +21 -0
- package/dist/std/domain/entities/future.js.map +1 -0
- package/dist/std/domain/entities/option.d.ts +53 -0
- package/dist/std/domain/entities/option.d.ts.map +1 -0
- package/dist/std/domain/entities/option.js +58 -0
- package/dist/std/domain/entities/option.js.map +1 -0
- package/dist/std/domain/entities/result.d.ts +87 -0
- package/dist/std/domain/entities/result.d.ts.map +1 -0
- package/dist/std/domain/entities/result.js +104 -0
- package/dist/std/domain/entities/result.js.map +1 -0
- package/dist/std/index.d.ts +6 -0
- package/dist/std/index.d.ts.map +1 -0
- package/dist/std/index.js +4 -0
- package/dist/std/index.js.map +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Content } from '@/sdk/domain/entities/content';
|
|
2
|
+
import { ContentVersion } from '@/sdk/domain/entities/content-version';
|
|
3
|
+
/**
|
|
4
|
+
* Interactor for parsing markdown files into Content and ContentVersion entities
|
|
5
|
+
*/
|
|
6
|
+
export declare class ParseContentFile {
|
|
7
|
+
/**
|
|
8
|
+
* Parses file content into domain entities
|
|
9
|
+
* @param frontmatter - YAML frontmatter object
|
|
10
|
+
* @param body - Markdown body content
|
|
11
|
+
* @param siteId - Site identifier
|
|
12
|
+
* @returns Object containing Content and ContentVersion entities
|
|
13
|
+
*/
|
|
14
|
+
execute(frontmatter: Record<string, any>, body: string, siteId: string): {
|
|
15
|
+
content: Content;
|
|
16
|
+
contentVersion: ContentVersion;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=parse-content-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-content-file.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/content/parse-content-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AASvE;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;;;;;OAMG;IACI,OAAO,CACZ,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,cAAc,EAAE,cAAc,CAAA;KAAE;CA6DxD"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Content } from '@/sdk/domain/entities/content';
|
|
2
|
+
import { ContentVersion } from '@/sdk/domain/entities/content-version';
|
|
3
|
+
import { ContentState } from '@/sdk/domain/entities/content-state';
|
|
4
|
+
import { Format } from '@/sdk/domain/entities/format';
|
|
5
|
+
import { ContentPart } from '@/sdk/domain/entities/content-part';
|
|
6
|
+
import { KeyValuePart } from '@/sdk/domain/entities/key-value-part';
|
|
7
|
+
import { MarkdownPart } from '@/sdk/domain/entities/markdown-part';
|
|
8
|
+
import { WaldeValidationError } from '@/sdk/domain/errors';
|
|
9
|
+
/**
|
|
10
|
+
* Interactor for parsing markdown files into Content and ContentVersion entities
|
|
11
|
+
*/
|
|
12
|
+
export class ParseContentFile {
|
|
13
|
+
/**
|
|
14
|
+
* Parses file content into domain entities
|
|
15
|
+
* @param frontmatter - YAML frontmatter object
|
|
16
|
+
* @param body - Markdown body content
|
|
17
|
+
* @param siteId - Site identifier
|
|
18
|
+
* @returns Object containing Content and ContentVersion entities
|
|
19
|
+
*/
|
|
20
|
+
execute(frontmatter, body, siteId) {
|
|
21
|
+
// Extract content properties from frontmatter
|
|
22
|
+
const contentId = frontmatter.id;
|
|
23
|
+
if (!frontmatter.name) {
|
|
24
|
+
throw new WaldeValidationError('Content name is required in frontmatter', { field: 'name' });
|
|
25
|
+
}
|
|
26
|
+
if (!frontmatter.key) {
|
|
27
|
+
throw new WaldeValidationError('Content key is required in frontmatter', { field: 'key' });
|
|
28
|
+
}
|
|
29
|
+
if (!frontmatter.format) {
|
|
30
|
+
throw new WaldeValidationError('Content format is required in frontmatter', { field: 'format' });
|
|
31
|
+
}
|
|
32
|
+
const name = frontmatter.name;
|
|
33
|
+
const key = frontmatter.key;
|
|
34
|
+
const state = frontmatter.state === 'DELETED' ? ContentState.DELETED : ContentState.PUBLISHED;
|
|
35
|
+
const formatId = frontmatter.format;
|
|
36
|
+
// Create Content entity
|
|
37
|
+
const content = new Content(contentId, siteId, name, key, state);
|
|
38
|
+
// Create Format with metadata and body parts
|
|
39
|
+
const formatParts = new Map();
|
|
40
|
+
formatParts.set('metadata', new KeyValuePart());
|
|
41
|
+
formatParts.set('body', new MarkdownPart());
|
|
42
|
+
const format = new Format(formatId, formatId, formatParts);
|
|
43
|
+
// Create ContentParts
|
|
44
|
+
const parts = new Map();
|
|
45
|
+
// Use explicit metadata field if present, otherwise extract non-system fields
|
|
46
|
+
let metadataData;
|
|
47
|
+
if (frontmatter.metadata) {
|
|
48
|
+
metadataData = frontmatter.metadata;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
// Extract all frontmatter except system fields
|
|
52
|
+
metadataData = { ...frontmatter };
|
|
53
|
+
delete metadataData.id;
|
|
54
|
+
delete metadataData.name;
|
|
55
|
+
delete metadataData.key;
|
|
56
|
+
delete metadataData.state;
|
|
57
|
+
delete metadataData.format;
|
|
58
|
+
}
|
|
59
|
+
parts.set('metadata', new ContentPart(new KeyValuePart(), metadataData));
|
|
60
|
+
parts.set('body', new ContentPart(new MarkdownPart(), body));
|
|
61
|
+
// Create ContentVersion
|
|
62
|
+
const contentVersion = new ContentVersion(undefined, // version ID will be assigned by backend
|
|
63
|
+
contentId || '', // contentId can be empty for new content creation
|
|
64
|
+
name, key, format, parts);
|
|
65
|
+
return { content, contentVersion };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=parse-content-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-content-file.js","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/content/parse-content-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC3B;;;;;;OAMG;IACI,OAAO,CACZ,WAAgC,EAChC,IAAY,EACZ,MAAc;QAEd,8CAA8C;QAC9C,MAAM,SAAS,GAAG,WAAW,CAAC,EAAE,CAAC;QAEjC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;YACtB,MAAM,IAAI,oBAAoB,CAAC,yCAAyC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;QAC/F,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;YACrB,MAAM,IAAI,oBAAoB,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7F,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,IAAI,oBAAoB,CAAC,2CAA2C,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QACnG,CAAC;QAED,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAC9B,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;QAC5B,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC;QAC9F,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC;QAEpC,wBAAwB;QACxB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QAEjE,6CAA6C;QAC7C,MAAM,WAAW,GAAG,IAAI,GAAG,EAAsB,CAAC;QAClD,WAAW,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,YAAY,EAAE,CAAC,CAAC;QAChD,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,YAAY,EAAE,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;QAE3D,sBAAsB;QACtB,MAAM,KAAK,GAAG,IAAI,GAAG,EAA4B,CAAC;QAElD,8EAA8E;QAC9E,IAAI,YAAiB,CAAC;QACtB,IAAI,WAAW,CAAC,QAAQ,EAAE,CAAC;YACzB,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAC;QACtC,CAAC;aAAM,CAAC;YACN,+CAA+C;YAC/C,YAAY,GAAG,EAAE,GAAG,WAAW,EAAE,CAAC;YAClC,OAAO,YAAY,CAAC,EAAE,CAAC;YACvB,OAAO,YAAY,CAAC,IAAI,CAAC;YACzB,OAAO,YAAY,CAAC,GAAG,CAAC;YACxB,OAAO,YAAY,CAAC,KAAK,CAAC;YAC1B,OAAO,YAAY,CAAC,MAAM,CAAC;QAC7B,CAAC;QAED,KAAK,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,WAAW,CAAC,IAAI,YAAY,EAAE,EAAE,YAAY,CAAC,CAAC,CAAC;QACzE,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,WAAW,CAAC,IAAI,YAAY,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QAE7D,wBAAwB;QACxB,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,SAAS,EAAE,yCAAyC;QACpD,SAAS,IAAI,EAAE,EAAE,kDAAkD;QACnE,IAAI,EACJ,GAAG,EACH,MAAM,EACN,KAAK,CACN,CAAC;QAEF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Content } from '@/sdk/domain/entities/content';
|
|
2
|
+
import { ContentRepo } from '@/sdk/domain/ports/out/content-repo';
|
|
3
|
+
import { ContentFileReader } from '@/sdk/domain/ports/in/content-file-reader';
|
|
4
|
+
import { ContentFileWriter } from '@/sdk/domain/ports/out/content-file-writer';
|
|
5
|
+
/**
|
|
6
|
+
* Pushes content from file to API
|
|
7
|
+
*/
|
|
8
|
+
export declare class PushContent {
|
|
9
|
+
private readonly contentRepo;
|
|
10
|
+
private readonly contentFileReader;
|
|
11
|
+
private readonly contentFileWriter;
|
|
12
|
+
constructor(contentRepo: ContentRepo, contentFileReader: ContentFileReader, contentFileWriter: ContentFileWriter);
|
|
13
|
+
/**
|
|
14
|
+
* Pushes content from file path
|
|
15
|
+
* @param siteId - The site identifier
|
|
16
|
+
* @param filePath - Path to content file
|
|
17
|
+
* @returns The pushed content
|
|
18
|
+
*/
|
|
19
|
+
execute(siteId: string, filePath: string): Promise<Content>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=push-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-content.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/content/push-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAG/E;;GAEG;AACH,qBAAa,WAAW;IAEpB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB;IAGvD;;;;;OAKG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAclE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ParseContentFile } from './parse-content-file';
|
|
2
|
+
/**
|
|
3
|
+
* Pushes content from file to API
|
|
4
|
+
*/
|
|
5
|
+
export class PushContent {
|
|
6
|
+
contentRepo;
|
|
7
|
+
contentFileReader;
|
|
8
|
+
contentFileWriter;
|
|
9
|
+
constructor(contentRepo, contentFileReader, contentFileWriter) {
|
|
10
|
+
this.contentRepo = contentRepo;
|
|
11
|
+
this.contentFileReader = contentFileReader;
|
|
12
|
+
this.contentFileWriter = contentFileWriter;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Pushes content from file path
|
|
16
|
+
* @param siteId - The site identifier
|
|
17
|
+
* @param filePath - Path to content file
|
|
18
|
+
* @returns The pushed content
|
|
19
|
+
*/
|
|
20
|
+
async execute(siteId, filePath) {
|
|
21
|
+
const { frontmatter, body } = await this.contentFileReader.readContentFile(filePath);
|
|
22
|
+
const parseContentFile = new ParseContentFile();
|
|
23
|
+
const { content, contentVersion } = parseContentFile.execute(frontmatter, body, siteId);
|
|
24
|
+
const result = await this.contentRepo.pushContent(content, contentVersion);
|
|
25
|
+
if (!content.id && result.id) {
|
|
26
|
+
await this.contentFileWriter.updateContentFile(filePath, result.id);
|
|
27
|
+
}
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=push-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-content.js","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/content/push-content.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;GAEG;AACH,MAAM,OAAO,WAAW;IAEH;IACA;IACA;IAHnB,YACmB,WAAwB,EACxB,iBAAoC,EACpC,iBAAoC;QAFpC,gBAAW,GAAX,WAAW,CAAa;QACxB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,QAAgB;QAC5C,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QAErF,MAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;QAChD,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,gBAAgB,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAExF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAE3E,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;YAC7B,MAAM,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Result } from '@/std';
|
|
2
|
+
import { Site } from '@/sdk/domain/entities/site';
|
|
3
|
+
import { SiteRepository } from '@/sdk/domain/ports/out/site-repository';
|
|
4
|
+
export declare class CreateSite {
|
|
5
|
+
private readonly siteRepository;
|
|
6
|
+
constructor(siteRepository: SiteRepository);
|
|
7
|
+
execute(domainName: string): Promise<Result<Site, string>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=create-site.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-site.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/create-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAa,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAErD,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;CASjE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ok, err } from '@/std';
|
|
2
|
+
import { Site, SiteState } from '@/sdk/domain/entities/site';
|
|
3
|
+
export class CreateSite {
|
|
4
|
+
siteRepository;
|
|
5
|
+
constructor(siteRepository) {
|
|
6
|
+
this.siteRepository = siteRepository;
|
|
7
|
+
}
|
|
8
|
+
async execute(domainName) {
|
|
9
|
+
try {
|
|
10
|
+
const newSite = new Site('', domainName, {}, SiteState.UPDATE_REQUESTED);
|
|
11
|
+
const savedSite = await this.siteRepository.save(newSite);
|
|
12
|
+
return ok(savedSite);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
return err(error instanceof Error ? error.message : 'Unknown error');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=create-site.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-site.js","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/create-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG7D,MAAM,OAAO,UAAU;IACQ;IAA7B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,KAAK,CAAC,OAAO,CAAC,UAAkB;QAC9B,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;YACzE,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC1D,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,GAAG,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CredentialsProvider } from '@/sdk/domain/ports/out/credentials-provider';
|
|
2
|
+
import { Credentials } from '@/sdk/domain/entities/credentials';
|
|
3
|
+
/**
|
|
4
|
+
* Interactor for retrieving credentials
|
|
5
|
+
*/
|
|
6
|
+
export declare class GetCredentials {
|
|
7
|
+
private readonly credentialsProvider;
|
|
8
|
+
constructor(credentialsProvider: CredentialsProvider);
|
|
9
|
+
/**
|
|
10
|
+
* Execute credential retrieval
|
|
11
|
+
*/
|
|
12
|
+
execute(): Promise<Credentials>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=get-credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-credentials.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/get-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE;;GAEG;AACH,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB;IAErE;;OAEG;IACU,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;CAG7C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interactor for retrieving credentials
|
|
3
|
+
*/
|
|
4
|
+
export class GetCredentials {
|
|
5
|
+
credentialsProvider;
|
|
6
|
+
constructor(credentialsProvider) {
|
|
7
|
+
this.credentialsProvider = credentialsProvider;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Execute credential retrieval
|
|
11
|
+
*/
|
|
12
|
+
async execute() {
|
|
13
|
+
return await this.credentialsProvider.retrieve();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=get-credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-credentials.js","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/get-credentials.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,OAAO,cAAc;IACI;IAA7B,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAEzE;;OAEG;IACI,KAAK,CAAC,OAAO;QAClB,OAAO,MAAM,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC;IACnD,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CredentialsProvider } from '@/sdk/domain/ports/out/credentials-provider';
|
|
2
|
+
/**
|
|
3
|
+
* Interactor for retrieving access token
|
|
4
|
+
*/
|
|
5
|
+
export declare class GetToken {
|
|
6
|
+
private readonly credentialsProvider;
|
|
7
|
+
constructor(credentialsProvider: CredentialsProvider);
|
|
8
|
+
/**
|
|
9
|
+
* Execute token retrieval
|
|
10
|
+
*/
|
|
11
|
+
execute(): Promise<string>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=get-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-token.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/get-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAGlF;;GAEG;AACH,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB;IAErE;;OAEG;IACU,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;CASxC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WaldeAuthenticationError } from '@/sdk/domain/errors';
|
|
2
|
+
/**
|
|
3
|
+
* Interactor for retrieving access token
|
|
4
|
+
*/
|
|
5
|
+
export class GetToken {
|
|
6
|
+
credentialsProvider;
|
|
7
|
+
constructor(credentialsProvider) {
|
|
8
|
+
this.credentialsProvider = credentialsProvider;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Execute token retrieval
|
|
12
|
+
*/
|
|
13
|
+
async execute() {
|
|
14
|
+
const credentials = await this.credentialsProvider.retrieve();
|
|
15
|
+
if (!credentials.isComplete()) {
|
|
16
|
+
throw new WaldeAuthenticationError('No valid credentials available');
|
|
17
|
+
}
|
|
18
|
+
return credentials.accessToken;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=get-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-token.js","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/get-token.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D;;GAEG;AACH,MAAM,OAAO,QAAQ;IACU;IAA7B,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAEzE;;OAEG;IACI,KAAK,CAAC,OAAO;QAClB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC;QAE9D,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,EAAE,CAAC;YAC9B,MAAM,IAAI,wBAAwB,CAAC,gCAAgC,CAAC,CAAC;QACvE,CAAC;QAED,OAAO,WAAW,CAAC,WAAW,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Result } from '@/std';
|
|
2
|
+
import { Site } from '@/sdk/domain/entities/site';
|
|
3
|
+
import { SiteRepository } from '@/sdk/domain/ports/out/site-repository';
|
|
4
|
+
export declare class ListSites {
|
|
5
|
+
private readonly siteRepository;
|
|
6
|
+
constructor(siteRepository: SiteRepository);
|
|
7
|
+
execute(): Promise<Result<Site[], string>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=list-sites.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-sites.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/list-sites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,qBAAa,SAAS;IACR,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAErD,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;CAQjD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ok, err } from '@/std';
|
|
2
|
+
export class ListSites {
|
|
3
|
+
siteRepository;
|
|
4
|
+
constructor(siteRepository) {
|
|
5
|
+
this.siteRepository = siteRepository;
|
|
6
|
+
}
|
|
7
|
+
async execute() {
|
|
8
|
+
try {
|
|
9
|
+
const sites = await this.siteRepository.getAll();
|
|
10
|
+
return ok(sites);
|
|
11
|
+
}
|
|
12
|
+
catch (error) {
|
|
13
|
+
return err(error instanceof Error ? error.message : 'Unknown error');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=list-sites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-sites.js","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/list-sites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIxC,MAAM,OAAO,SAAS;IACS;IAA7B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,KAAK,CAAC,OAAO;QACX,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC;YACjD,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,GAAG,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CredentialsProvider } from '@/sdk/domain/ports/out/credentials-provider';
|
|
2
|
+
import { TokenRefreshProvider } from '@/sdk/domain/ports/out/token-refresh-provider';
|
|
3
|
+
import { Credentials } from '@/sdk/domain/entities/credentials';
|
|
4
|
+
/**
|
|
5
|
+
* Interactor for refreshing authentication credentials
|
|
6
|
+
*/
|
|
7
|
+
export declare class RefreshCredentials {
|
|
8
|
+
private readonly credentialsProvider;
|
|
9
|
+
private readonly tokenRefreshProvider;
|
|
10
|
+
constructor(credentialsProvider: CredentialsProvider, tokenRefreshProvider: TokenRefreshProvider);
|
|
11
|
+
/**
|
|
12
|
+
* Refresh the stored credentials using refresh token
|
|
13
|
+
*/
|
|
14
|
+
execute(): Promise<Credentials>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=refresh-credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-credentials.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/refresh-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGhE;;GAEG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBADpB,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,oBAAoB;IAG7D;;OAEG;IACU,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;CAc7C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { WaldeAuthenticationError } from '@/sdk/domain/errors';
|
|
2
|
+
/**
|
|
3
|
+
* Interactor for refreshing authentication credentials
|
|
4
|
+
*/
|
|
5
|
+
export class RefreshCredentials {
|
|
6
|
+
credentialsProvider;
|
|
7
|
+
tokenRefreshProvider;
|
|
8
|
+
constructor(credentialsProvider, tokenRefreshProvider) {
|
|
9
|
+
this.credentialsProvider = credentialsProvider;
|
|
10
|
+
this.tokenRefreshProvider = tokenRefreshProvider;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Refresh the stored credentials using refresh token
|
|
14
|
+
*/
|
|
15
|
+
async execute() {
|
|
16
|
+
const currentCredentials = await this.credentialsProvider.retrieve();
|
|
17
|
+
if (!currentCredentials.refreshToken) {
|
|
18
|
+
throw new WaldeAuthenticationError('No refresh token available');
|
|
19
|
+
}
|
|
20
|
+
const refreshedCredentials = await this.tokenRefreshProvider.refreshTokens(currentCredentials.refreshToken);
|
|
21
|
+
await this.credentialsProvider.save(refreshedCredentials);
|
|
22
|
+
return refreshedCredentials;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=refresh-credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-credentials.js","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/refresh-credentials.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAEV;IACA;IAFnB,YACmB,mBAAwC,EACxC,oBAA0C;QAD1C,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,yBAAoB,GAApB,oBAAoB,CAAsB;IAC1D,CAAC;IAEJ;;OAEG;IACI,KAAK,CAAC,OAAO;QAClB,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC;QAErE,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC;YACrC,MAAM,IAAI,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;QACnE,CAAC;QAED,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,aAAa,CACxE,kBAAkB,CAAC,YAAY,CAChC,CAAC;QAEF,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAC1D,OAAO,oBAAoB,CAAC;IAC9B,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Result } from '@/std';
|
|
2
|
+
import { File } from '@/sdk/domain/entities/file';
|
|
3
|
+
import { UiUploadCredentialsRepo } from '@/sdk/domain/ports/out/ui-upload-credentials-repo';
|
|
4
|
+
import { RemoteFilesRepo } from '@/sdk/domain/ports/out/remote-files-repo';
|
|
5
|
+
export interface S3FilesRepoFactory {
|
|
6
|
+
create(siteId: string): RemoteFilesRepo;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Interactor for uploading UI files from a folder
|
|
10
|
+
*/
|
|
11
|
+
export declare class UploadUiFromFolder {
|
|
12
|
+
private readonly uiUploadCredentialsRepo;
|
|
13
|
+
private readonly s3FilesRepoFactory;
|
|
14
|
+
constructor(uiUploadCredentialsRepo: UiUploadCredentialsRepo, s3FilesRepoFactory: S3FilesRepoFactory);
|
|
15
|
+
/**
|
|
16
|
+
* Upload UI files to remote storage
|
|
17
|
+
* @param files - Array of files to upload
|
|
18
|
+
* @param siteId - Site identifier for requesting upload credentials
|
|
19
|
+
* @param onProgress - Optional callback for progress updates
|
|
20
|
+
* @returns Result with success/error information
|
|
21
|
+
*/
|
|
22
|
+
execute(files: File[], siteId: string, onProgress?: (current: number, total: number, filePath: string, success: boolean, error?: Error) => void): Promise<Result<void, Error>>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=upload-ui-from-folder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-ui-from-folder.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/ui/upload-ui-from-folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAG3E,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC;CACzC;AAED;;GAEG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ,CAAC,uBAAuB;IACxC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBADlB,uBAAuB,EAAE,uBAAuB,EAChD,kBAAkB,EAAE,kBAAkB;IAGzD;;;;;;OAMG;IACG,OAAO,CACX,KAAK,EAAE,IAAI,EAAE,EACb,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,GACvG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;CAuChC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ok, err } from '@/std';
|
|
2
|
+
import { WaldeUnexpectedError } from '@/sdk/domain/errors';
|
|
3
|
+
/**
|
|
4
|
+
* Interactor for uploading UI files from a folder
|
|
5
|
+
*/
|
|
6
|
+
export class UploadUiFromFolder {
|
|
7
|
+
uiUploadCredentialsRepo;
|
|
8
|
+
s3FilesRepoFactory;
|
|
9
|
+
constructor(uiUploadCredentialsRepo, s3FilesRepoFactory) {
|
|
10
|
+
this.uiUploadCredentialsRepo = uiUploadCredentialsRepo;
|
|
11
|
+
this.s3FilesRepoFactory = s3FilesRepoFactory;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Upload UI files to remote storage
|
|
15
|
+
* @param files - Array of files to upload
|
|
16
|
+
* @param siteId - Site identifier for requesting upload credentials
|
|
17
|
+
* @param onProgress - Optional callback for progress updates
|
|
18
|
+
* @returns Result with success/error information
|
|
19
|
+
*/
|
|
20
|
+
async execute(files, siteId, onProgress) {
|
|
21
|
+
try {
|
|
22
|
+
if (files.length === 0) {
|
|
23
|
+
return ok(undefined);
|
|
24
|
+
}
|
|
25
|
+
// Request upload credentials for the site
|
|
26
|
+
const credentials = await this.uiUploadCredentialsRepo.requestCredentials(siteId);
|
|
27
|
+
if (!credentials.isValid()) {
|
|
28
|
+
return err(new WaldeUnexpectedError('Invalid upload credentials received', new Error('Credentials validation failed')));
|
|
29
|
+
}
|
|
30
|
+
// Create S3 repo with correct bucket name for this site
|
|
31
|
+
const remoteFilesRepo = this.s3FilesRepoFactory.create(siteId);
|
|
32
|
+
// Upload files with progress tracking
|
|
33
|
+
if (onProgress) {
|
|
34
|
+
let current = 0;
|
|
35
|
+
for (const file of files) {
|
|
36
|
+
current++;
|
|
37
|
+
try {
|
|
38
|
+
await remoteFilesRepo.uploadFile(file, credentials);
|
|
39
|
+
onProgress(current, files.length, file.path, true);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
onProgress(current, files.length, file.path, false, error);
|
|
43
|
+
// Continue with other files even if one fails
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
// Upload all files without progress tracking
|
|
49
|
+
await remoteFilesRepo.uploadFiles(files, credentials);
|
|
50
|
+
}
|
|
51
|
+
return ok(undefined);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
return err(error instanceof Error ? error : new WaldeUnexpectedError('Unknown error occurred', error));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=upload-ui-from-folder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-ui-from-folder.js","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/ui/upload-ui-from-folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,oBAAoB,EAAoB,MAAM,qBAAqB,CAAC;AAM7E;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAEV;IACA;IAFnB,YACmB,uBAAgD,EAChD,kBAAsC;QADtC,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,uBAAkB,GAAlB,kBAAkB,CAAoB;IACtD,CAAC;IAEJ;;;;;;OAMG;IACH,KAAK,CAAC,OAAO,CACX,KAAa,EACb,MAAc,EACd,UAAwG;QAExG,IAAI,CAAC;YACH,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACvB,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC;YACvB,CAAC;YAED,0CAA0C;YAC1C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;YAElF,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC;gBAC3B,OAAO,GAAG,CAAC,IAAI,oBAAoB,CAAC,qCAAqC,EAAE,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC;YAC1H,CAAC;YAED,wDAAwD;YACxD,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAE/D,sCAAsC;YACtC,IAAI,UAAU,EAAE,CAAC;gBACf,IAAI,OAAO,GAAG,CAAC,CAAC;gBAChB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;oBACzB,OAAO,EAAE,CAAC;oBACV,IAAI,CAAC;wBACH,MAAM,eAAe,CAAC,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;wBACpD,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;oBACrD,CAAC;oBAAC,OAAO,KAAK,EAAE,CAAC;wBACf,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,KAAc,CAAC,CAAC;wBACpE,8CAA8C;oBAChD,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,6CAA6C;gBAC7C,MAAM,eAAe,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YACxD,CAAC;YAED,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,GAAG,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,oBAAoB,CAAC,wBAAwB,EAAE,KAAc,CAAC,CAAC,CAAC;QAClH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Result } from '@/std';
|
|
2
|
+
import { Site } from '@/sdk/domain/entities/site';
|
|
3
|
+
import { SiteRepository } from '@/sdk/domain/ports/out/site-repository';
|
|
4
|
+
export declare class UpdateSite {
|
|
5
|
+
private readonly siteRepository;
|
|
6
|
+
constructor(siteRepository: SiteRepository);
|
|
7
|
+
execute(siteId: string, domainName: string): Promise<Result<Site, string>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=update-site.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-site.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/update-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAa,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAErD,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;CASjF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ok, err } from '@/std';
|
|
2
|
+
import { Site, SiteState } from '@/sdk/domain/entities/site';
|
|
3
|
+
export class UpdateSite {
|
|
4
|
+
siteRepository;
|
|
5
|
+
constructor(siteRepository) {
|
|
6
|
+
this.siteRepository = siteRepository;
|
|
7
|
+
}
|
|
8
|
+
async execute(siteId, domainName) {
|
|
9
|
+
try {
|
|
10
|
+
const siteToUpdate = new Site(siteId, domainName, {}, SiteState.UPDATE_REQUESTED);
|
|
11
|
+
const savedSite = await this.siteRepository.save(siteToUpdate);
|
|
12
|
+
return ok(savedSite);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
return err(error instanceof Error ? error.message : 'Unknown error');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=update-site.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-site.js","sourceRoot":"","sources":["../../../../src/sdk/domain/interactors/update-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG7D,MAAM,OAAO,UAAU;IACQ;IAA7B,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,UAAkB;QAC9C,IAAI,CAAC;YACH,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;YAClF,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAC/D,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,GAAG,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WorkspaceConfigRepo } from '@/sdk/domain/ports/out/workspace-config-repo';
|
|
2
|
+
import { WorkspaceConfig } from '@/sdk/domain/entities/workspace-config';
|
|
3
|
+
import { Result } from '@/std';
|
|
4
|
+
export interface InitWorkspaceParams {
|
|
5
|
+
targetPath: string;
|
|
6
|
+
siteId: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Use case for initializing a workspace
|
|
10
|
+
*/
|
|
11
|
+
export declare class InitWorkspace {
|
|
12
|
+
private readonly workspaceConfigRepo;
|
|
13
|
+
constructor(workspaceConfigRepo: WorkspaceConfigRepo);
|
|
14
|
+
/**
|
|
15
|
+
* Executes workspace initialization
|
|
16
|
+
*/
|
|
17
|
+
execute(params: InitWorkspaceParams): Promise<Result<WorkspaceConfig, string>>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=init-workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-workspace.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/workspace/init-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAW,MAAM,OAAO,CAAC;AAExC,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,aAAa;IAEtB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB;IAG3D;;OAEG;IACG,OAAO,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;CAWrF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { WorkspaceConfig } from '@/sdk/domain/entities/workspace-config';
|
|
2
|
+
import { ok, err } from '@/std';
|
|
3
|
+
/**
|
|
4
|
+
* Use case for initializing a workspace
|
|
5
|
+
*/
|
|
6
|
+
export class InitWorkspace {
|
|
7
|
+
workspaceConfigRepo;
|
|
8
|
+
constructor(workspaceConfigRepo) {
|
|
9
|
+
this.workspaceConfigRepo = workspaceConfigRepo;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Executes workspace initialization
|
|
13
|
+
*/
|
|
14
|
+
async execute(params) {
|
|
15
|
+
try {
|
|
16
|
+
// Create workspace configuration
|
|
17
|
+
const config = new WorkspaceConfig(params.siteId, { content: 'content', ui: 'ui' });
|
|
18
|
+
await this.workspaceConfigRepo.save(params.targetPath, config);
|
|
19
|
+
return ok(config);
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
return err(error instanceof Error ? error.message : 'Unknown error during workspace initialization');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=init-workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-workspace.js","sourceRoot":"","sources":["../../../../../src/sdk/domain/interactors/workspace/init-workspace.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOxC;;GAEG;AACH,MAAM,OAAO,aAAa;IAEL;IADnB,YACmB,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IACxD,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,MAA2B;QACvC,IAAI,CAAC;YACH,iCAAiC;YACjC,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;YACpF,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;YAE/D,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,GAAG,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,+CAA+C,CAAC,CAAC;QACvG,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface BackendClient {
|
|
2
|
+
get<T>(endpoint: string, headers?: Record<string, string>): Promise<T>;
|
|
3
|
+
post<T>(endpoint: string, data?: any, headers?: Record<string, string>): Promise<T>;
|
|
4
|
+
put<T>(endpoint: string, data?: any, headers?: Record<string, string>): Promise<T>;
|
|
5
|
+
delete<T>(endpoint: string, headers?: Record<string, string>): Promise<T>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=backend-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend-client.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/domain/ports/backend/backend-client.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACvE,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACpF,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACnF,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CAC3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend-client.js","sourceRoot":"","sources":["../../../../../src/sdk/domain/ports/backend/backend-client.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for reading and parsing content files
|
|
3
|
+
*/
|
|
4
|
+
export interface ContentFileReader {
|
|
5
|
+
/**
|
|
6
|
+
* Reads a markdown file and extracts frontmatter and body content
|
|
7
|
+
* @param filePath - Path to the markdown file
|
|
8
|
+
* @returns Object containing frontmatter metadata and body content
|
|
9
|
+
*/
|
|
10
|
+
readContentFile(filePath: string): Promise<{
|
|
11
|
+
frontmatter: Record<string, any>;
|
|
12
|
+
body: string;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=content-file-reader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-file-reader.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/domain/ports/in/content-file-reader.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QACzC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACjC,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-file-reader.js","sourceRoot":"","sources":["../../../../../src/sdk/domain/ports/in/content-file-reader.ts"],"names":[],"mappings":""}
|