@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,14 @@
|
|
|
1
|
+
import { FormatPart } from './format-part';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a format definition with named parts
|
|
4
|
+
*/
|
|
5
|
+
export declare class Format {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
private readonly parts;
|
|
9
|
+
constructor(id: string, name: string, parts: Map<string, FormatPart>);
|
|
10
|
+
getName(): string;
|
|
11
|
+
getParts(): Map<string, FormatPart>;
|
|
12
|
+
getPart(key: string): FormatPart | undefined;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;GAEG;AACH,qBAAa,MAAM;aAEC,EAAE,EAAE,MAAM;aACV,IAAI,EAAE,MAAM;IAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAFN,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;IAG1C,OAAO,IAAI,MAAM;IAIjB,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;IAInC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;CAGpD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a format definition with named parts
|
|
3
|
+
*/
|
|
4
|
+
export class Format {
|
|
5
|
+
id;
|
|
6
|
+
name;
|
|
7
|
+
parts;
|
|
8
|
+
constructor(id, name, parts) {
|
|
9
|
+
this.id = id;
|
|
10
|
+
this.name = name;
|
|
11
|
+
this.parts = parts;
|
|
12
|
+
}
|
|
13
|
+
getName() {
|
|
14
|
+
return this.name;
|
|
15
|
+
}
|
|
16
|
+
getParts() {
|
|
17
|
+
return new Map(this.parts);
|
|
18
|
+
}
|
|
19
|
+
getPart(key) {
|
|
20
|
+
return this.parts.get(key);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/format.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,MAAM;IAEC;IACA;IACC;IAHnB,YACkB,EAAU,EACV,IAAY,EACX,KAA8B;QAF/B,OAAE,GAAF,EAAE,CAAQ;QACV,SAAI,GAAJ,IAAI,CAAQ;QACX,UAAK,GAAL,KAAK,CAAyB;IAC9C,CAAC;IAEG,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAEM,OAAO,CAAC,GAAW;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ContentFormat } from './content-format';
|
|
2
|
+
import { ContentPart } from './content-part';
|
|
3
|
+
/**
|
|
4
|
+
* Version-agnostic frontend content representation
|
|
5
|
+
*/
|
|
6
|
+
export declare class FrontendContent {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly key: string;
|
|
9
|
+
readonly format: ContentFormat;
|
|
10
|
+
readonly parts: Record<string, ContentPart>;
|
|
11
|
+
constructor(name: string, key: string, format: ContentFormat, parts: Record<string, ContentPart>);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=frontend-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-content.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/frontend-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,qBAAa,eAAe;aAER,IAAI,EAAE,MAAM;aACZ,GAAG,EAAE,MAAM;aACX,MAAM,EAAE,aAAa;aACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;gBAHlC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;CAErD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Version-agnostic frontend content representation
|
|
3
|
+
*/
|
|
4
|
+
export class FrontendContent {
|
|
5
|
+
name;
|
|
6
|
+
key;
|
|
7
|
+
format;
|
|
8
|
+
parts;
|
|
9
|
+
constructor(name, key, format, parts) {
|
|
10
|
+
this.name = name;
|
|
11
|
+
this.key = key;
|
|
12
|
+
this.format = format;
|
|
13
|
+
this.parts = parts;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=frontend-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-content.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/frontend-content.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,OAAO,eAAe;IAER;IACA;IACA;IACA;IAJlB,YACkB,IAAY,EACZ,GAAW,EACX,MAAqB,EACrB,KAAkC;QAHlC,SAAI,GAAJ,IAAI,CAAQ;QACZ,QAAG,GAAH,GAAG,CAAQ;QACX,WAAM,GAAN,MAAM,CAAe;QACrB,UAAK,GAAL,KAAK,CAA6B;IACjD,CAAC;CACL"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FormatPart } from './format-part';
|
|
2
|
+
/**
|
|
3
|
+
* Format part that validates key-value pair objects
|
|
4
|
+
*/
|
|
5
|
+
export declare class KeyValuePart implements FormatPart {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/**
|
|
8
|
+
* Validates if the given value is a key-value object with primitive values
|
|
9
|
+
* @param value - The value to validate
|
|
10
|
+
* @returns true if the value is a plain object with string keys and primitive values
|
|
11
|
+
*/
|
|
12
|
+
validate(value: unknown): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Checks if a value is a primitive type
|
|
15
|
+
* @param value - The value to check
|
|
16
|
+
* @returns true if the value is a primitive (string, number, boolean, null, undefined)
|
|
17
|
+
*/
|
|
18
|
+
private isPrimitive;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=key-value-part.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-value-part.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/key-value-part.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;GAEG;AACH,qBAAa,YAAa,YAAW,UAAU;IAC7C,SAAgB,IAAI,EAAE,MAAM,CAAc;IAE1C;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAWxC;;;;OAIG;IACH,OAAO,CAAC,WAAW;CAOpB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format part that validates key-value pair objects
|
|
3
|
+
*/
|
|
4
|
+
export class KeyValuePart {
|
|
5
|
+
name = 'keyvalue';
|
|
6
|
+
/**
|
|
7
|
+
* Validates if the given value is a key-value object with primitive values
|
|
8
|
+
* @param value - The value to validate
|
|
9
|
+
* @returns true if the value is a plain object with string keys and primitive values
|
|
10
|
+
*/
|
|
11
|
+
validate(value) {
|
|
12
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value)) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
const obj = value;
|
|
16
|
+
return Object.entries(obj).every(([key, val]) => typeof key === 'string' && this.isPrimitive(val));
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Checks if a value is a primitive type
|
|
20
|
+
* @param value - The value to check
|
|
21
|
+
* @returns true if the value is a primitive (string, number, boolean, null, undefined)
|
|
22
|
+
*/
|
|
23
|
+
isPrimitive(value) {
|
|
24
|
+
return value === null ||
|
|
25
|
+
value === undefined ||
|
|
26
|
+
typeof value === 'string' ||
|
|
27
|
+
typeof value === 'number' ||
|
|
28
|
+
typeof value === 'boolean';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=key-value-part.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-value-part.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/key-value-part.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,YAAY;IACP,IAAI,GAAW,UAAU,CAAC;IAE1C;;;;OAIG;IACI,QAAQ,CAAC,KAAc;QAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACxE,OAAO,KAAK,CAAC;QACf,CAAC;QAED,MAAM,GAAG,GAAG,KAAgC,CAAC;QAC7C,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,CAC9C,OAAO,GAAG,KAAK,QAAQ,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CACjD,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,WAAW,CAAC,KAAc;QAChC,OAAO,KAAK,KAAK,IAAI;YACd,KAAK,KAAK,SAAS;YACnB,OAAO,KAAK,KAAK,QAAQ;YACzB,OAAO,KAAK,KAAK,QAAQ;YACzB,OAAO,KAAK,KAAK,SAAS,CAAC;IACpC,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content metadata within manifest
|
|
3
|
+
*/
|
|
4
|
+
export declare class ManifestContent {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly key: string;
|
|
8
|
+
readonly format: string;
|
|
9
|
+
readonly locales: string[];
|
|
10
|
+
constructor(id: string, name: string, key: string, format: string, locales: string[]);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=manifest-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-content.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/manifest-content.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,eAAe;aAER,EAAE,EAAE,MAAM;aACV,IAAI,EAAE,MAAM;aACZ,GAAG,EAAE,MAAM;aACX,MAAM,EAAE,MAAM;aACd,OAAO,EAAE,MAAM,EAAE;gBAJjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EAAE;CAEpC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content metadata within manifest
|
|
3
|
+
*/
|
|
4
|
+
export class ManifestContent {
|
|
5
|
+
id;
|
|
6
|
+
name;
|
|
7
|
+
key;
|
|
8
|
+
format;
|
|
9
|
+
locales;
|
|
10
|
+
constructor(id, name, key, format, locales) {
|
|
11
|
+
this.id = id;
|
|
12
|
+
this.name = name;
|
|
13
|
+
this.key = key;
|
|
14
|
+
this.format = format;
|
|
15
|
+
this.locales = locales;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=manifest-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-content.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/manifest-content.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,eAAe;IAER;IACA;IACA;IACA;IACA;IALlB,YACkB,EAAU,EACV,IAAY,EACZ,GAAW,EACX,MAAc,EACd,OAAiB;QAJjB,OAAE,GAAF,EAAE,CAAQ;QACV,SAAI,GAAJ,IAAI,CAAQ;QACZ,QAAG,GAAH,GAAG,CAAQ;QACX,WAAM,GAAN,MAAM,CAAQ;QACd,YAAO,GAAP,OAAO,CAAU;IAChC,CAAC;CACL"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ManifestContent } from './manifest-content';
|
|
2
|
+
/**
|
|
3
|
+
* Version-agnostic manifest representation containing content metadata
|
|
4
|
+
*/
|
|
5
|
+
export declare class Manifest {
|
|
6
|
+
readonly contents: ManifestContent[];
|
|
7
|
+
constructor(contents: ManifestContent[]);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;GAEG;AACH,qBAAa,QAAQ;aAED,QAAQ,EAAE,eAAe,EAAE;gBAA3B,QAAQ,EAAE,eAAe,EAAE;CAE9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/manifest.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,QAAQ;IAED;IADlB,YACkB,QAA2B;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAC1C,CAAC;CACL"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormatPart } from './format-part';
|
|
2
|
+
/**
|
|
3
|
+
* Format part that validates markdown content (string values)
|
|
4
|
+
*/
|
|
5
|
+
export declare class MarkdownPart implements FormatPart {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/**
|
|
8
|
+
* Validates if the given value is valid markdown (string)
|
|
9
|
+
* @param value - The value to validate
|
|
10
|
+
* @returns true if the value is a string (valid markdown)
|
|
11
|
+
*/
|
|
12
|
+
validate(value: unknown): boolean;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=markdown-part.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-part.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/markdown-part.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;GAEG;AACH,qBAAa,YAAa,YAAW,UAAU;IAC7C,SAAgB,IAAI,EAAE,MAAM,CAAc;IAE1C;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAGzC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format part that validates markdown content (string values)
|
|
3
|
+
*/
|
|
4
|
+
export class MarkdownPart {
|
|
5
|
+
name = 'markdown';
|
|
6
|
+
/**
|
|
7
|
+
* Validates if the given value is valid markdown (string)
|
|
8
|
+
* @param value - The value to validate
|
|
9
|
+
* @returns true if the value is a string (valid markdown)
|
|
10
|
+
*/
|
|
11
|
+
validate(value) {
|
|
12
|
+
return typeof value === 'string';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=markdown-part.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-part.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/markdown-part.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,YAAY;IACP,IAAI,GAAW,UAAU,CAAC;IAE1C;;;;OAIG;IACI,QAAQ,CAAC,KAAc;QAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DnsEntry } from './dns-entry';
|
|
2
|
+
export declare enum SiteState {
|
|
3
|
+
UPDATED = "UPDATED",
|
|
4
|
+
UPDATE_REQUESTED = "UPDATE_REQUESTED"
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Represents a website with its configuration and DNS settings
|
|
8
|
+
*/
|
|
9
|
+
export declare class Site {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly domainName: string;
|
|
12
|
+
readonly dnsEntries: Record<string, DnsEntry>;
|
|
13
|
+
readonly state: SiteState;
|
|
14
|
+
constructor(id: string, domainName: string, dnsEntries: Record<string, DnsEntry>, state: SiteState);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=site.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;CACtC;AAED;;GAEG;AACH,qBAAa,IAAI;aAEG,EAAE,EAAE,MAAM;aACV,UAAU,EAAE,MAAM;aAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;aACpC,KAAK,EAAE,SAAS;gBAHhB,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EACpC,KAAK,EAAE,SAAS;CAEnC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export var SiteState;
|
|
2
|
+
(function (SiteState) {
|
|
3
|
+
SiteState["UPDATED"] = "UPDATED";
|
|
4
|
+
SiteState["UPDATE_REQUESTED"] = "UPDATE_REQUESTED";
|
|
5
|
+
})(SiteState || (SiteState = {}));
|
|
6
|
+
/**
|
|
7
|
+
* Represents a website with its configuration and DNS settings
|
|
8
|
+
*/
|
|
9
|
+
export class Site {
|
|
10
|
+
id;
|
|
11
|
+
domainName;
|
|
12
|
+
dnsEntries;
|
|
13
|
+
state;
|
|
14
|
+
constructor(id, domainName, dnsEntries, state) {
|
|
15
|
+
this.id = id;
|
|
16
|
+
this.domainName = domainName;
|
|
17
|
+
this.dnsEntries = dnsEntries;
|
|
18
|
+
this.state = state;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=site.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/site.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,kDAAqC,CAAA;AACvC,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED;;GAEG;AACH,MAAM,OAAO,IAAI;IAEG;IACA;IACA;IACA;IAJlB,YACkB,EAAU,EACV,UAAkB,EAClB,UAAoC,EACpC,KAAgB;QAHhB,OAAE,GAAF,EAAE,CAAQ;QACV,eAAU,GAAV,UAAU,CAAQ;QAClB,eAAU,GAAV,UAAU,CAA0B;QACpC,UAAK,GAAL,KAAK,CAAW;IAC/B,CAAC;CACL"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormatPart } from './format-part';
|
|
2
|
+
/**
|
|
3
|
+
* Format part that validates string values
|
|
4
|
+
*/
|
|
5
|
+
export declare class StringPart implements FormatPart {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/**
|
|
8
|
+
* Validates if the given value is a string
|
|
9
|
+
* @param value - The value to validate
|
|
10
|
+
* @returns true if the value is a string
|
|
11
|
+
*/
|
|
12
|
+
validate(value: unknown): boolean;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=string-part.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-part.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/string-part.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;GAEG;AACH,qBAAa,UAAW,YAAW,UAAU;IAC3C,SAAgB,IAAI,EAAE,MAAM,CAAY;IAExC;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAGzC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format part that validates string values
|
|
3
|
+
*/
|
|
4
|
+
export class StringPart {
|
|
5
|
+
name = 'string';
|
|
6
|
+
/**
|
|
7
|
+
* Validates if the given value is a string
|
|
8
|
+
* @param value - The value to validate
|
|
9
|
+
* @returns true if the value is a string
|
|
10
|
+
*/
|
|
11
|
+
validate(value) {
|
|
12
|
+
return typeof value === 'string';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=string-part.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-part.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/string-part.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,UAAU;IACL,IAAI,GAAW,QAAQ,CAAC;IAExC;;;;OAIG;IACI,QAAQ,CAAC,KAAc;QAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Upload credentials for UI file operations
|
|
3
|
+
* Framework-agnostic representation of temporary upload credentials
|
|
4
|
+
*/
|
|
5
|
+
export declare class UiUploadCredentials {
|
|
6
|
+
readonly accessKey: string;
|
|
7
|
+
readonly secretKey: string;
|
|
8
|
+
readonly sessionToken: string;
|
|
9
|
+
readonly expiration: Date;
|
|
10
|
+
readonly region: string;
|
|
11
|
+
readonly bucketName: string;
|
|
12
|
+
constructor(accessKey: string, secretKey: string, sessionToken: string, expiration: Date, region: string, bucketName: string);
|
|
13
|
+
/**
|
|
14
|
+
* Check if credentials have expired
|
|
15
|
+
*/
|
|
16
|
+
isExpired(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Check if credentials are valid (not expired and have required fields)
|
|
19
|
+
*/
|
|
20
|
+
isValid(): boolean;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ui-upload-credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-upload-credentials.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/ui-upload-credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,mBAAmB;aAEZ,SAAS,EAAE,MAAM;aACjB,SAAS,EAAE,MAAM;aACjB,YAAY,EAAE,MAAM;aACpB,UAAU,EAAE,IAAI;aAChB,MAAM,EAAE,MAAM;aACd,UAAU,EAAE,MAAM;gBALlB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,IAAI,EAChB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM;IAGpC;;OAEG;IACI,SAAS,IAAI,OAAO;IAI3B;;OAEG;IACI,OAAO,IAAI,OAAO;CAQ1B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Upload credentials for UI file operations
|
|
3
|
+
* Framework-agnostic representation of temporary upload credentials
|
|
4
|
+
*/
|
|
5
|
+
export class UiUploadCredentials {
|
|
6
|
+
accessKey;
|
|
7
|
+
secretKey;
|
|
8
|
+
sessionToken;
|
|
9
|
+
expiration;
|
|
10
|
+
region;
|
|
11
|
+
bucketName;
|
|
12
|
+
constructor(accessKey, secretKey, sessionToken, expiration, region, bucketName) {
|
|
13
|
+
this.accessKey = accessKey;
|
|
14
|
+
this.secretKey = secretKey;
|
|
15
|
+
this.sessionToken = sessionToken;
|
|
16
|
+
this.expiration = expiration;
|
|
17
|
+
this.region = region;
|
|
18
|
+
this.bucketName = bucketName;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Check if credentials have expired
|
|
22
|
+
*/
|
|
23
|
+
isExpired() {
|
|
24
|
+
return new Date() > this.expiration;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if credentials are valid (not expired and have required fields)
|
|
28
|
+
*/
|
|
29
|
+
isValid() {
|
|
30
|
+
return !this.isExpired() &&
|
|
31
|
+
!!this.accessKey &&
|
|
32
|
+
!!this.secretKey &&
|
|
33
|
+
!!this.sessionToken &&
|
|
34
|
+
!!this.region &&
|
|
35
|
+
!!this.bucketName;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=ui-upload-credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-upload-credentials.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/ui-upload-credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,mBAAmB;IAEZ;IACA;IACA;IACA;IACA;IACA;IANlB,YACkB,SAAiB,EACjB,SAAiB,EACjB,YAAoB,EACpB,UAAgB,EAChB,MAAc,EACd,UAAkB;QALlB,cAAS,GAAT,SAAS,CAAQ;QACjB,cAAS,GAAT,SAAS,CAAQ;QACjB,iBAAY,GAAZ,YAAY,CAAQ;QACpB,eAAU,GAAV,UAAU,CAAM;QAChB,WAAM,GAAN,MAAM,CAAQ;QACd,eAAU,GAAV,UAAU,CAAQ;IACjC,CAAC;IAEJ;;OAEG;IACI,SAAS;QACd,OAAO,IAAI,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,OAAO;QACZ,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE;YACjB,CAAC,CAAC,IAAI,CAAC,SAAS;YAChB,CAAC,CAAC,IAAI,CAAC,SAAS;YAChB,CAAC,CAAC,IAAI,CAAC,YAAY;YACnB,CAAC,CAAC,IAAI,CAAC,MAAM;YACb,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Result } from '@/std';
|
|
2
|
+
/**
|
|
3
|
+
* Partial configuration data for Walde SDK (all optional)
|
|
4
|
+
*/
|
|
5
|
+
export interface PartialWaldeAdminConfigData {
|
|
6
|
+
endpoint?: string;
|
|
7
|
+
clientId?: string;
|
|
8
|
+
region?: string;
|
|
9
|
+
userPoolId?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Complete configuration data for Walde SDK (all required)
|
|
13
|
+
*/
|
|
14
|
+
export interface WaldeAdminConfigData {
|
|
15
|
+
endpoint: string;
|
|
16
|
+
clientId: string;
|
|
17
|
+
region: string;
|
|
18
|
+
userPoolId: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Abstract base class for Walde configuration
|
|
22
|
+
*/
|
|
23
|
+
export declare abstract class WaldeAdminConfig {
|
|
24
|
+
protected data: PartialWaldeAdminConfigData;
|
|
25
|
+
constructor(data?: PartialWaldeAdminConfigData);
|
|
26
|
+
/**
|
|
27
|
+
* Get configuration value
|
|
28
|
+
*/
|
|
29
|
+
get endpoint(): string | undefined;
|
|
30
|
+
get clientId(): string | undefined;
|
|
31
|
+
get region(): string | undefined;
|
|
32
|
+
get userPoolId(): string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Merge with another config, current values override merged ones when set
|
|
35
|
+
*/
|
|
36
|
+
merge(other: WaldeAdminConfig): WaldeAdminConfig;
|
|
37
|
+
/**
|
|
38
|
+
* Create new instance of the same type with given data
|
|
39
|
+
* Must be implemented by subclasses
|
|
40
|
+
*/
|
|
41
|
+
protected abstract createInstance(data: PartialWaldeAdminConfigData): WaldeAdminConfig;
|
|
42
|
+
/**
|
|
43
|
+
* Get all configuration data
|
|
44
|
+
*/
|
|
45
|
+
getData(): PartialWaldeAdminConfigData;
|
|
46
|
+
/**
|
|
47
|
+
* Promote to complete configuration if all required fields are set
|
|
48
|
+
*/
|
|
49
|
+
promote(): Result<WaldeAdminConfigData, string>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=walde-admin-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walde-admin-config.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/walde-admin-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,OAAO,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,8BAAsB,gBAAgB;IACpC,SAAS,CAAC,IAAI,EAAE,2BAA2B,CAAC;gBAEhC,IAAI,GAAE,2BAAgC;IAIlD;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,GAAG,SAAS,CAEjC;IAED,IAAI,QAAQ,IAAI,MAAM,GAAG,SAAS,CAEjC;IAED,IAAI,MAAM,IAAI,MAAM,GAAG,SAAS,CAE/B;IAED,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB;IAahD;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,2BAA2B,GAAG,gBAAgB;IAEtF;;OAEG;IACH,OAAO,IAAI,2BAA2B;IAItC;;OAEG;IACH,OAAO,IAAI,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC;CAmBhD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ok, err } from '@/std';
|
|
2
|
+
/**
|
|
3
|
+
* Abstract base class for Walde configuration
|
|
4
|
+
*/
|
|
5
|
+
export class WaldeAdminConfig {
|
|
6
|
+
data;
|
|
7
|
+
constructor(data = {}) {
|
|
8
|
+
this.data = { ...data };
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get configuration value
|
|
12
|
+
*/
|
|
13
|
+
get endpoint() {
|
|
14
|
+
return this.data.endpoint;
|
|
15
|
+
}
|
|
16
|
+
get clientId() {
|
|
17
|
+
return this.data.clientId;
|
|
18
|
+
}
|
|
19
|
+
get region() {
|
|
20
|
+
return this.data.region;
|
|
21
|
+
}
|
|
22
|
+
get userPoolId() {
|
|
23
|
+
return this.data.userPoolId;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Merge with another config, current values override merged ones when set
|
|
27
|
+
*/
|
|
28
|
+
merge(other) {
|
|
29
|
+
const otherData = other.getData();
|
|
30
|
+
const mergedData = {
|
|
31
|
+
endpoint: this.data.endpoint ?? otherData.endpoint,
|
|
32
|
+
clientId: this.data.clientId ?? otherData.clientId,
|
|
33
|
+
region: this.data.region ?? otherData.region,
|
|
34
|
+
userPoolId: this.data.userPoolId ?? otherData.userPoolId
|
|
35
|
+
};
|
|
36
|
+
// Create new instance of same type with merged data
|
|
37
|
+
return this.createInstance(mergedData);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get all configuration data
|
|
41
|
+
*/
|
|
42
|
+
getData() {
|
|
43
|
+
return { ...this.data };
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Promote to complete configuration if all required fields are set
|
|
47
|
+
*/
|
|
48
|
+
promote() {
|
|
49
|
+
const missing = [];
|
|
50
|
+
if (!this.data.endpoint)
|
|
51
|
+
missing.push('endpoint');
|
|
52
|
+
if (!this.data.clientId)
|
|
53
|
+
missing.push('clientId');
|
|
54
|
+
if (!this.data.region)
|
|
55
|
+
missing.push('region');
|
|
56
|
+
if (!this.data.userPoolId)
|
|
57
|
+
missing.push('userPoolId');
|
|
58
|
+
if (missing.length > 0) {
|
|
59
|
+
return err(`Missing required configuration: ${missing.join(', ')}`);
|
|
60
|
+
}
|
|
61
|
+
return ok({
|
|
62
|
+
endpoint: this.data.endpoint,
|
|
63
|
+
clientId: this.data.clientId,
|
|
64
|
+
region: this.data.region,
|
|
65
|
+
userPoolId: this.data.userPoolId
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=walde-admin-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walde-admin-config.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/walde-admin-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAsBxC;;GAEG;AACH,MAAM,OAAgB,gBAAgB;IAC1B,IAAI,CAA8B;IAE5C,YAAY,OAAoC,EAAE;QAChD,IAAI,CAAC,IAAI,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC5B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC5B,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAuB;QAC3B,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;QAClC,MAAM,UAAU,GAAgC;YAC9C,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ;YAClD,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ;YAClD,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM;YAC5C,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,SAAS,CAAC,UAAU;SACzD,CAAC;QAEF,oDAAoD;QACpD,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAQD;;OAEG;IACH,OAAO;QACL,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,OAAO;QACL,MAAM,OAAO,GAAa,EAAE,CAAC;QAE7B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU;YAAE,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEtD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvB,OAAO,GAAG,CAAC,mCAAmC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,OAAO,EAAE,CAAC;YACR,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,QAAS;YAC7B,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,QAAS;YAC7B,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,MAAO;YACzB,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,UAAW;SAClC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents workspace configuration stored in walde.json
|
|
3
|
+
*/
|
|
4
|
+
export declare class WorkspaceConfig {
|
|
5
|
+
readonly siteId: string;
|
|
6
|
+
readonly paths: {
|
|
7
|
+
content: string;
|
|
8
|
+
ui: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new WorkspaceConfig instance
|
|
12
|
+
* @param siteId - The site identifier this workspace belongs to
|
|
13
|
+
* @param paths - The paths configuration for content and ui directories
|
|
14
|
+
*/
|
|
15
|
+
constructor(siteId: string, paths: {
|
|
16
|
+
content: string;
|
|
17
|
+
ui: string;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=workspace-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-config.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/workspace-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,eAAe;aAOR,MAAM,EAAE,MAAM;aACd,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE;IAPxD;;;;OAIG;gBAEe,MAAM,EAAE,MAAM,EACd,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE;CAEzD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents workspace configuration stored in walde.json
|
|
3
|
+
*/
|
|
4
|
+
export class WorkspaceConfig {
|
|
5
|
+
siteId;
|
|
6
|
+
paths;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new WorkspaceConfig instance
|
|
9
|
+
* @param siteId - The site identifier this workspace belongs to
|
|
10
|
+
* @param paths - The paths configuration for content and ui directories
|
|
11
|
+
*/
|
|
12
|
+
constructor(siteId, paths) {
|
|
13
|
+
this.siteId = siteId;
|
|
14
|
+
this.paths = paths;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=workspace-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-config.js","sourceRoot":"","sources":["../../../../src/sdk/domain/entities/workspace-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,eAAe;IAOR;IACA;IAPlB;;;;OAIG;IACH,YACkB,MAAc,EACd,KAAsC;QADtC,WAAM,GAAN,MAAM,CAAQ;QACd,UAAK,GAAL,KAAK,CAAiC;IACrD,CAAC;CACL"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { WaldeError } from './walde-error';
|
|
2
|
+
export { WaldeUserError } from './walde-user-error';
|
|
3
|
+
export { WaldeSystemError } from './walde-system-error';
|
|
4
|
+
export { WaldeValidationError } from './walde-validation-error';
|
|
5
|
+
export { WaldeAuthenticationError } from './walde-authentication-error';
|
|
6
|
+
export { WaldeConfigurationError } from './walde-configuration-error';
|
|
7
|
+
export { WaldeUsageError } from './walde-usage-error';
|
|
8
|
+
export { WaldeNetworkError } from './walde-network-error';
|
|
9
|
+
export { WaldeLocalError } from './walde-local-error';
|
|
10
|
+
export { WaldeUnexpectedError } from './walde-unexpected-error';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { WaldeError } from './walde-error';
|
|
2
|
+
export { WaldeUserError } from './walde-user-error';
|
|
3
|
+
export { WaldeSystemError } from './walde-system-error';
|
|
4
|
+
export { WaldeValidationError } from './walde-validation-error';
|
|
5
|
+
export { WaldeAuthenticationError } from './walde-authentication-error';
|
|
6
|
+
export { WaldeConfigurationError } from './walde-configuration-error';
|
|
7
|
+
export { WaldeUsageError } from './walde-usage-error';
|
|
8
|
+
export { WaldeNetworkError } from './walde-network-error';
|
|
9
|
+
export { WaldeLocalError } from './walde-local-error';
|
|
10
|
+
export { WaldeUnexpectedError } from './walde-unexpected-error';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/domain/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC"}
|