@walde.ai/walde-sdk 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -6
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/sdk/contracts/frontend-content/v1/content-format-v1.js +2 -1
- package/dist/sdk/contracts/frontend-content/v1/content-part-v1.js +2 -1
- package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.js +2 -1
- package/dist/sdk/contracts/manifest/v1/manifest-content-v1.js +2 -1
- package/dist/sdk/contracts/manifest/v1/manifest-v1.js +2 -1
- package/dist/sdk/domain/entities/content-format.js +5 -1
- package/dist/sdk/domain/entities/content-format.js.map +1 -1
- package/dist/sdk/domain/entities/content-part.js +5 -1
- package/dist/sdk/domain/entities/content-part.js.map +1 -1
- package/dist/sdk/domain/entities/content-state.js +5 -2
- package/dist/sdk/domain/entities/content-state.js.map +1 -1
- package/dist/sdk/domain/entities/content-version.js +5 -1
- package/dist/sdk/domain/entities/content-version.js.map +1 -1
- package/dist/sdk/domain/entities/content.js +5 -1
- package/dist/sdk/domain/entities/content.js.map +1 -1
- package/dist/sdk/domain/entities/credentials.js +5 -1
- package/dist/sdk/domain/entities/credentials.js.map +1 -1
- package/dist/sdk/domain/entities/dns-entry.js +5 -1
- package/dist/sdk/domain/entities/dns-entry.js.map +1 -1
- package/dist/sdk/domain/entities/file.js +5 -1
- package/dist/sdk/domain/entities/file.js.map +1 -1
- package/dist/sdk/domain/entities/format-part.js +2 -1
- package/dist/sdk/domain/entities/format.js +5 -1
- package/dist/sdk/domain/entities/format.js.map +1 -1
- package/dist/sdk/domain/entities/frontend-content.js +5 -1
- package/dist/sdk/domain/entities/frontend-content.js.map +1 -1
- package/dist/sdk/domain/entities/key-value-part.js +5 -1
- package/dist/sdk/domain/entities/key-value-part.js.map +1 -1
- package/dist/sdk/domain/entities/manifest-content.js +5 -1
- package/dist/sdk/domain/entities/manifest-content.js.map +1 -1
- package/dist/sdk/domain/entities/manifest.js +5 -1
- package/dist/sdk/domain/entities/manifest.js.map +1 -1
- package/dist/sdk/domain/entities/markdown-part.js +5 -1
- package/dist/sdk/domain/entities/markdown-part.js.map +1 -1
- package/dist/sdk/domain/entities/site.js +7 -3
- package/dist/sdk/domain/entities/site.js.map +1 -1
- package/dist/sdk/domain/entities/string-part.js +5 -1
- package/dist/sdk/domain/entities/string-part.js.map +1 -1
- package/dist/sdk/domain/entities/ui-upload-credentials.js +5 -1
- package/dist/sdk/domain/entities/ui-upload-credentials.js.map +1 -1
- package/dist/sdk/domain/entities/walde-admin-config.d.ts +1 -1
- package/dist/sdk/domain/entities/walde-admin-config.js +8 -4
- package/dist/sdk/domain/entities/walde-admin-config.js.map +1 -1
- package/dist/sdk/domain/entities/workspace-config.js +5 -1
- package/dist/sdk/domain/entities/workspace-config.js.map +1 -1
- package/dist/sdk/domain/errors/index.js +23 -10
- package/dist/sdk/domain/errors/index.js.map +1 -1
- package/dist/sdk/domain/errors/walde-authentication-error.js +6 -2
- package/dist/sdk/domain/errors/walde-authentication-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-configuration-error.js +6 -2
- package/dist/sdk/domain/errors/walde-configuration-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-error.js +5 -1
- package/dist/sdk/domain/errors/walde-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-local-error.js +6 -2
- package/dist/sdk/domain/errors/walde-local-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-network-error.js +6 -2
- package/dist/sdk/domain/errors/walde-network-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-system-error.js +6 -2
- package/dist/sdk/domain/errors/walde-system-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-unexpected-error.js +6 -2
- package/dist/sdk/domain/errors/walde-unexpected-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-usage-error.js +6 -2
- package/dist/sdk/domain/errors/walde-usage-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-user-error.js +6 -2
- package/dist/sdk/domain/errors/walde-user-error.js.map +1 -1
- package/dist/sdk/domain/errors/walde-validation-error.js +6 -2
- package/dist/sdk/domain/errors/walde-validation-error.js.map +1 -1
- package/dist/sdk/domain/interactors/api-call.d.ts +1 -1
- package/dist/sdk/domain/interactors/api-call.js +7 -3
- package/dist/sdk/domain/interactors/api-call.js.map +1 -1
- package/dist/sdk/domain/interactors/associate-site-certificates.d.ts +2 -2
- package/dist/sdk/domain/interactors/associate-site-certificates.js +8 -4
- package/dist/sdk/domain/interactors/associate-site-certificates.js.map +1 -1
- package/dist/sdk/domain/interactors/content/list-contents.d.ts +2 -2
- package/dist/sdk/domain/interactors/content/list-contents.js +5 -1
- package/dist/sdk/domain/interactors/content/list-contents.js.map +1 -1
- package/dist/sdk/domain/interactors/content/parse-content-file.d.ts +2 -2
- package/dist/sdk/domain/interactors/content/parse-content-file.js +24 -20
- package/dist/sdk/domain/interactors/content/parse-content-file.js.map +1 -1
- package/dist/sdk/domain/interactors/content/push-content.d.ts +4 -4
- package/dist/sdk/domain/interactors/content/push-content.js +7 -3
- package/dist/sdk/domain/interactors/content/push-content.js.map +1 -1
- package/dist/sdk/domain/interactors/create-site.d.ts +3 -3
- package/dist/sdk/domain/interactors/create-site.js +10 -6
- package/dist/sdk/domain/interactors/create-site.js.map +1 -1
- package/dist/sdk/domain/interactors/get-credentials.d.ts +2 -2
- package/dist/sdk/domain/interactors/get-credentials.js +5 -1
- package/dist/sdk/domain/interactors/get-credentials.js.map +1 -1
- package/dist/sdk/domain/interactors/get-token.d.ts +1 -1
- package/dist/sdk/domain/interactors/get-token.js +7 -3
- package/dist/sdk/domain/interactors/get-token.js.map +1 -1
- package/dist/sdk/domain/interactors/list-sites.d.ts +3 -3
- package/dist/sdk/domain/interactors/list-sites.js +8 -4
- package/dist/sdk/domain/interactors/list-sites.js.map +1 -1
- package/dist/sdk/domain/interactors/refresh-credentials.d.ts +3 -3
- package/dist/sdk/domain/interactors/refresh-credentials.js +7 -3
- package/dist/sdk/domain/interactors/refresh-credentials.js.map +1 -1
- package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.d.ts +4 -4
- package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.js +11 -7
- package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.js.map +1 -1
- package/dist/sdk/domain/interactors/update-site.d.ts +3 -3
- package/dist/sdk/domain/interactors/update-site.js +10 -6
- package/dist/sdk/domain/interactors/update-site.js.map +1 -1
- package/dist/sdk/domain/interactors/workspace/init-workspace.d.ts +3 -3
- package/dist/sdk/domain/interactors/workspace/init-workspace.js +10 -6
- package/dist/sdk/domain/interactors/workspace/init-workspace.js.map +1 -1
- package/dist/sdk/domain/ports/backend/backend-client.js +2 -1
- package/dist/sdk/domain/ports/in/content-file-reader.js +2 -1
- package/dist/sdk/domain/ports/in/token-provider.js +2 -1
- package/dist/sdk/domain/ports/out/backend-communication.js +2 -1
- package/dist/sdk/domain/ports/out/content-file-writer.js +2 -1
- package/dist/sdk/domain/ports/out/content-repo.d.ts +2 -2
- package/dist/sdk/domain/ports/out/content-repo.js +2 -1
- package/dist/sdk/domain/ports/out/credentials-provider.d.ts +1 -1
- package/dist/sdk/domain/ports/out/credentials-provider.js +2 -1
- package/dist/sdk/domain/ports/out/file-system-reader.d.ts +1 -1
- package/dist/sdk/domain/ports/out/file-system-reader.js +2 -1
- package/dist/sdk/domain/ports/out/remote-files-repo.d.ts +2 -2
- package/dist/sdk/domain/ports/out/remote-files-repo.js +2 -1
- package/dist/sdk/domain/ports/out/site-repository.d.ts +1 -1
- package/dist/sdk/domain/ports/out/site-repository.js +2 -1
- package/dist/sdk/domain/ports/out/token-refresh-provider.d.ts +1 -1
- package/dist/sdk/domain/ports/out/token-refresh-provider.js +2 -1
- package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.d.ts +1 -1
- package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.js +2 -1
- package/dist/sdk/domain/ports/out/upload-progress-callback.js +2 -1
- package/dist/sdk/domain/ports/out/workspace-config-repo.d.ts +1 -1
- package/dist/sdk/domain/ports/out/workspace-config-repo.js +2 -1
- package/dist/sdk/index.js +62 -29
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/infra/adapters/api-client.d.ts +1 -1
- package/dist/sdk/infra/adapters/api-client.js +5 -1
- package/dist/sdk/infra/adapters/api-client.js.map +1 -1
- package/dist/sdk/infra/adapters/base-http-client.js +15 -11
- package/dist/sdk/infra/adapters/base-http-client.js.map +1 -1
- package/dist/sdk/infra/adapters/cognito-token-refresh-provider.d.ts +2 -2
- package/dist/sdk/infra/adapters/cognito-token-refresh-provider.js +15 -11
- package/dist/sdk/infra/adapters/cognito-token-refresh-provider.js.map +1 -1
- package/dist/sdk/infra/adapters/default-http-client.js +51 -14
- package/dist/sdk/infra/adapters/default-http-client.js.map +1 -1
- package/dist/sdk/infra/adapters/default-token-provider.d.ts +1 -1
- package/dist/sdk/infra/adapters/default-token-provider.js +7 -3
- package/dist/sdk/infra/adapters/default-token-provider.js.map +1 -1
- package/dist/sdk/infra/adapters/filesystem/file-content-reader.d.ts +1 -1
- package/dist/sdk/infra/adapters/filesystem/file-content-reader.js +14 -7
- package/dist/sdk/infra/adapters/filesystem/file-content-reader.js.map +1 -1
- package/dist/sdk/infra/adapters/filesystem/file-content-writer.d.ts +1 -1
- package/dist/sdk/infra/adapters/filesystem/file-content-writer.js +16 -9
- package/dist/sdk/infra/adapters/filesystem/file-content-writer.js.map +1 -1
- package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.d.ts +2 -2
- package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.js +16 -12
- package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.js.map +1 -1
- package/dist/sdk/infra/adapters/frontend-http-client.js +6 -2
- package/dist/sdk/infra/adapters/frontend-http-client.js.map +1 -1
- package/dist/sdk/infra/adapters/http/http-content-repo.d.ts +4 -4
- package/dist/sdk/infra/adapters/http/http-content-repo.js +10 -6
- package/dist/sdk/infra/adapters/http/http-content-repo.js.map +1 -1
- package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.d.ts +3 -3
- package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.js +10 -6
- package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.js.map +1 -1
- package/dist/sdk/infra/adapters/repositories/credentials-file-repo.d.ts +2 -2
- package/dist/sdk/infra/adapters/repositories/credentials-file-repo.js +43 -6
- package/dist/sdk/infra/adapters/repositories/credentials-file-repo.js.map +1 -1
- package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.js +7 -3
- package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.js.map +1 -1
- package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.d.ts +1 -1
- package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.js +40 -3
- package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.js.map +1 -1
- package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.d.ts +2 -2
- package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.js +23 -16
- package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.js.map +1 -1
- package/dist/sdk/infra/adapters/repositories/http-site-repo.d.ts +3 -3
- package/dist/sdk/infra/adapters/repositories/http-site-repo.js +13 -9
- package/dist/sdk/infra/adapters/repositories/http-site-repo.js.map +1 -1
- package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.d.ts +1 -1
- package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.js +6 -2
- package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.js.map +1 -1
- package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.d.ts +3 -3
- package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.js +9 -5
- package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.js.map +1 -1
- package/dist/sdk/infra/backend/walde-client.d.ts +2 -2
- package/dist/sdk/infra/backend/walde-client.js +5 -1
- package/dist/sdk/infra/backend/walde-client.js.map +1 -1
- package/dist/sdk/infra/factories/s3-files-repo-factory.d.ts +2 -2
- package/dist/sdk/infra/factories/s3-files-repo-factory.js +7 -3
- package/dist/sdk/infra/factories/s3-files-repo-factory.js.map +1 -1
- package/dist/sdk/infra/factories/walde-admin-config-factory.d.ts +1 -1
- package/dist/sdk/infra/factories/walde-admin-config-factory.js +52 -15
- package/dist/sdk/infra/factories/walde-admin-config-factory.js.map +1 -1
- package/dist/sdk/infra/factories/walde-admin-factory.d.ts +2 -2
- package/dist/sdk/infra/factories/walde-admin-factory.js +25 -21
- package/dist/sdk/infra/factories/walde-admin-factory.js.map +1 -1
- package/dist/sdk/infra/factories/walde-factory.d.ts +1 -1
- package/dist/sdk/infra/factories/walde-factory.js +13 -9
- package/dist/sdk/infra/factories/walde-factory.js.map +1 -1
- package/dist/sdk/infra/futures/api-future.d.ts +3 -3
- package/dist/sdk/infra/futures/api-future.js +11 -7
- package/dist/sdk/infra/futures/api-future.js.map +1 -1
- package/dist/sdk/infra/futures/content-future.d.ts +3 -3
- package/dist/sdk/infra/futures/content-future.js +22 -18
- package/dist/sdk/infra/futures/content-future.js.map +1 -1
- package/dist/sdk/infra/futures/content-item-future.d.ts +6 -6
- package/dist/sdk/infra/futures/content-item-future.js +12 -8
- package/dist/sdk/infra/futures/content-item-future.js.map +1 -1
- package/dist/sdk/infra/futures/content-iterator.d.ts +3 -3
- package/dist/sdk/infra/futures/content-iterator.js +27 -23
- package/dist/sdk/infra/futures/content-iterator.js.map +1 -1
- package/dist/sdk/infra/futures/content-list-future.d.ts +4 -4
- package/dist/sdk/infra/futures/content-list-future.js +8 -4
- package/dist/sdk/infra/futures/content-list-future.js.map +1 -1
- package/dist/sdk/infra/futures/contents-future.d.ts +3 -3
- package/dist/sdk/infra/futures/contents-future.js +10 -6
- package/dist/sdk/infra/futures/contents-future.js.map +1 -1
- package/dist/sdk/infra/futures/credentials-future.d.ts +2 -2
- package/dist/sdk/infra/futures/credentials-future.js +23 -19
- package/dist/sdk/infra/futures/credentials-future.js.map +1 -1
- package/dist/sdk/infra/futures/frontend-contents-future.d.ts +5 -5
- package/dist/sdk/infra/futures/frontend-contents-future.js +18 -14
- package/dist/sdk/infra/futures/frontend-contents-future.js.map +1 -1
- package/dist/sdk/infra/futures/manifest-future.d.ts +5 -5
- package/dist/sdk/infra/futures/manifest-future.js +9 -5
- package/dist/sdk/infra/futures/manifest-future.js.map +1 -1
- package/dist/sdk/infra/futures/site-future.d.ts +3 -3
- package/dist/sdk/infra/futures/site-future.js +35 -31
- package/dist/sdk/infra/futures/site-future.js.map +1 -1
- package/dist/sdk/infra/futures/sites-future.d.ts +3 -3
- package/dist/sdk/infra/futures/sites-future.js +12 -8
- package/dist/sdk/infra/futures/sites-future.js.map +1 -1
- package/dist/sdk/infra/futures/ui-future.d.ts +4 -4
- package/dist/sdk/infra/futures/ui-future.js +13 -9
- package/dist/sdk/infra/futures/ui-future.js.map +1 -1
- package/dist/sdk/infra/futures/walde-admin-future.d.ts +9 -9
- package/dist/sdk/infra/futures/walde-admin-future.js +22 -18
- package/dist/sdk/infra/futures/walde-admin-future.js.map +1 -1
- package/dist/sdk/infra/futures/walde-future.d.ts +5 -5
- package/dist/sdk/infra/futures/walde-future.js +16 -12
- package/dist/sdk/infra/futures/walde-future.js.map +1 -1
- package/dist/sdk/infra/futures/workspace-future.d.ts +4 -4
- package/dist/sdk/infra/futures/workspace-future.js +10 -5
- package/dist/sdk/infra/futures/workspace-future.js.map +1 -1
- package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.d.ts +2 -2
- package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.js +13 -9
- package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.js.map +1 -1
- package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.d.ts +2 -2
- package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.js +11 -7
- package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.js.map +1 -1
- package/dist/sdk/make-walde-admin.js +6 -3
- package/dist/sdk/make-walde-admin.js.map +1 -1
- package/dist/sdk/make-walde.js +6 -3
- package/dist/sdk/make-walde.js.map +1 -1
- package/dist/std/domain/entities/future.js +5 -1
- package/dist/std/domain/entities/future.js.map +1 -1
- package/dist/std/domain/entities/option.js +11 -4
- package/dist/std/domain/entities/option.js.map +1 -1
- package/dist/std/domain/entities/result.js +11 -4
- package/dist/std/domain/entities/result.js.map +1 -1
- package/dist/std/index.js +15 -3
- package/dist/std/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-future.js","sourceRoot":"","sources":["../../../../src/sdk/infra/futures/workspace-future.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"workspace-future.js","sourceRoot":"","sources":["../../../../src/sdk/infra/futures/workspace-future.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAI/B,gDAAsD;AAOtD;;GAEG;AACH,MAAa,eAAgB,SAAQ,YAA8C;IACzE,aAAa,CAAgB;IAErC,YAAY,MAA6B;QACvC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAA+C;QAClD,OAAO,IAAI,mBAAmB,CAAC;YAC7B,MAAM,EAAE,IAAI;YACZ,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,UAAU,EAAE;gBACV,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,EAAE;gBAC9C,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO;QACX,oFAAoF;QACpF,MAAM,IAAI,wBAAe,CAAC,gFAAgF,CAAC,CAAC;IAC9G,CAAC;CACF;AA1BD,0CA0BC;AAQD;;GAEG;AACH,MAAa,mBAAoB,SAAQ,YAAkD;IACjF,aAAa,CAAgB;IAC7B,UAAU,CAAsB;IAExC,YAAY,MAAiC;QAC3C,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC1C,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,OAAO;QACX,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3D,CAAC;CACF;AAbD,kDAaC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FrontendContent } from '
|
|
2
|
-
import { FrontendContentV1 } from '
|
|
1
|
+
import { FrontendContent } from '../../../../sdk/domain/entities/frontend-content';
|
|
2
|
+
import { FrontendContentV1 } from '../../../../sdk/contracts/frontend-content/v1/frontend-content-v1';
|
|
3
3
|
/**
|
|
4
4
|
* DTO mapper for frontend content data with version routing
|
|
5
5
|
*/
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FrontendContentDtoMapper = void 0;
|
|
4
|
+
const frontend_content_1 = require("../../../../sdk/domain/entities/frontend-content");
|
|
5
|
+
const content_format_1 = require("../../../../sdk/domain/entities/content-format");
|
|
6
|
+
const content_part_1 = require("../../../../sdk/domain/entities/content-part");
|
|
7
|
+
const errors_1 = require("../../../../sdk/domain/errors");
|
|
5
8
|
/**
|
|
6
9
|
* DTO mapper for frontend content data with version routing
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
class FrontendContentDtoMapper {
|
|
9
12
|
/**
|
|
10
13
|
* Convert contract to domain entity based on apiVersion
|
|
11
14
|
*/
|
|
@@ -14,7 +17,7 @@ export class FrontendContentDtoMapper {
|
|
|
14
17
|
case "2025-11-15":
|
|
15
18
|
return this.v1ToDomain(contract);
|
|
16
19
|
default:
|
|
17
|
-
throw new WaldeUnexpectedError(`Unsupported frontend content API version: ${contract.apiVersion}`, new Error('Unsupported API version'));
|
|
20
|
+
throw new errors_1.WaldeUnexpectedError(`Unsupported frontend content API version: ${contract.apiVersion}`, new Error('Unsupported API version'));
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
@@ -43,12 +46,13 @@ export class FrontendContentDtoMapper {
|
|
|
43
46
|
* Convert V1 contract to domain entity
|
|
44
47
|
*/
|
|
45
48
|
v1ToDomain(contract) {
|
|
46
|
-
const format = new ContentFormat(contract.format.id, contract.format.name);
|
|
49
|
+
const format = new content_format_1.ContentFormat(contract.format.id, contract.format.name);
|
|
47
50
|
const parts = {};
|
|
48
51
|
for (const [key, partContract] of Object.entries(contract.parts)) {
|
|
49
|
-
parts[key] = new ContentPart(partContract.data, partContract.format);
|
|
52
|
+
parts[key] = new content_part_1.ContentPart(partContract.data, partContract.format);
|
|
50
53
|
}
|
|
51
|
-
return new FrontendContent(contract.name, contract.key, format, parts);
|
|
54
|
+
return new frontend_content_1.FrontendContent(contract.name, contract.key, format, parts);
|
|
52
55
|
}
|
|
53
56
|
}
|
|
57
|
+
exports.FrontendContentDtoMapper = FrontendContentDtoMapper;
|
|
54
58
|
//# sourceMappingURL=frontend-content-dto-mapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontend-content-dto-mapper.js","sourceRoot":"","sources":["../../../../../src/sdk/infra/mappers/dto/frontend-content-dto-mapper.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"frontend-content-dto-mapper.js","sourceRoot":"","sources":["../../../../../src/sdk/infra/mappers/dto/frontend-content-dto-mapper.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AACzE,yEAAqE;AACrE,qEAAiE;AAIjE,gDAA2D;AAE3D;;GAEG;AACH,MAAa,wBAAwB;IACnC;;OAEG;IACH,QAAQ,CAAC,QAAa;QACpB,QAAQ,QAAQ,CAAC,UAAU,EAAE,CAAC;YAC5B,KAAK,YAAY;gBACf,OAAO,IAAI,CAAC,UAAU,CAAC,QAA6B,CAAC,CAAC;YACxD;gBACE,MAAM,IAAI,6BAAoB,CAAC,6CAA6C,QAAQ,CAAC,UAAU,EAAE,EAAE,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;QAC7I,CAAC;IACH,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,OAAwB;QACjC,MAAM,OAAO,GAAkC,EAAE,CAAC;QAClD,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACxD,OAAO,CAAC,GAAG,CAAC,GAAG;gBACb,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,MAAM,EAAE;gBACN,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE;gBACrB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI;aAC1B;YACD,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,UAAU,CAAC,QAA2B;QAC5C,MAAM,MAAM,GAAG,IAAI,8BAAa,CAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,EAClB,QAAQ,CAAC,MAAM,CAAC,IAAI,CACrB,CAAC;QAEF,MAAM,KAAK,GAAgC,EAAE,CAAC;QAC9C,KAAK,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACjE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,0BAAW,CAC1B,YAAY,CAAC,IAAI,EACjB,YAAY,CAAC,MAAM,CACpB,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,kCAAe,CACxB,QAAQ,CAAC,IAAI,EACb,QAAQ,CAAC,GAAG,EACZ,MAAM,EACN,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AA7DD,4DA6DC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Manifest } from '
|
|
2
|
-
import { ManifestV1 } from '
|
|
1
|
+
import { Manifest } from '../../../../sdk/domain/entities/manifest';
|
|
2
|
+
import { ManifestV1 } from '../../../../sdk/contracts/manifest/v1/manifest-v1';
|
|
3
3
|
/**
|
|
4
4
|
* DTO mapper for manifest data with version routing
|
|
5
5
|
*/
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ManifestDtoMapper = void 0;
|
|
4
|
+
const manifest_1 = require("../../../../sdk/domain/entities/manifest");
|
|
5
|
+
const manifest_content_1 = require("../../../../sdk/domain/entities/manifest-content");
|
|
6
|
+
const errors_1 = require("../../../../sdk/domain/errors");
|
|
4
7
|
/**
|
|
5
8
|
* DTO mapper for manifest data with version routing
|
|
6
9
|
*/
|
|
7
|
-
|
|
10
|
+
class ManifestDtoMapper {
|
|
8
11
|
/**
|
|
9
12
|
* Convert contract to domain entity based on apiVersion
|
|
10
13
|
*/
|
|
@@ -13,7 +16,7 @@ export class ManifestDtoMapper {
|
|
|
13
16
|
case "2025-11-15":
|
|
14
17
|
return this.v1ToDomain(contract);
|
|
15
18
|
default:
|
|
16
|
-
throw new WaldeUnexpectedError(`Unsupported manifest API version: ${contract.apiVersion}`, new Error('Unsupported API version'));
|
|
19
|
+
throw new errors_1.WaldeUnexpectedError(`Unsupported manifest API version: ${contract.apiVersion}`, new Error('Unsupported API version'));
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
@@ -29,8 +32,8 @@ export class ManifestDtoMapper {
|
|
|
29
32
|
* Convert V1 contract to domain entity
|
|
30
33
|
*/
|
|
31
34
|
v1ToDomain(contract) {
|
|
32
|
-
const contents = contract.contents.map(contentContract => new ManifestContent(contentContract.id, contentContract.name, contentContract.key, contentContract.format, contentContract.locales));
|
|
33
|
-
return new Manifest(contents);
|
|
35
|
+
const contents = contract.contents.map(contentContract => new manifest_content_1.ManifestContent(contentContract.id, contentContract.name, contentContract.key, contentContract.format, contentContract.locales));
|
|
36
|
+
return new manifest_1.Manifest(contents);
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
36
39
|
* Convert ManifestContent domain entity to V1 contract
|
|
@@ -46,4 +49,5 @@ export class ManifestDtoMapper {
|
|
|
46
49
|
};
|
|
47
50
|
}
|
|
48
51
|
}
|
|
52
|
+
exports.ManifestDtoMapper = ManifestDtoMapper;
|
|
49
53
|
//# sourceMappingURL=manifest-dto-mapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-dto-mapper.js","sourceRoot":"","sources":["../../../../../src/sdk/infra/mappers/dto/manifest-dto-mapper.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"manifest-dto-mapper.js","sourceRoot":"","sources":["../../../../../src/sdk/infra/mappers/dto/manifest-dto-mapper.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAC1D,6EAAyE;AAGzE,gDAA2D;AAE3D;;GAEG;AACH,MAAa,iBAAiB;IAC5B;;OAEG;IACH,QAAQ,CAAC,QAAa;QACpB,QAAQ,QAAQ,CAAC,UAAU,EAAE,CAAC;YAC5B,KAAK,YAAY;gBACf,OAAO,IAAI,CAAC,UAAU,CAAC,QAAsB,CAAC,CAAC;YACjD;gBACE,MAAM,IAAI,6BAAoB,CAAC,qCAAqC,QAAQ,CAAC,UAAU,EAAE,EAAE,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;QACrI,CAAC;IACH,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,QAAkB;QAC3B,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;SAC9E,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,UAAU,CAAC,QAAoB;QACrC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,CACvD,IAAI,kCAAe,CACjB,eAAe,CAAC,EAAE,EAClB,eAAe,CAAC,IAAI,EACpB,eAAe,CAAC,GAAG,EACnB,eAAe,CAAC,MAAM,EACtB,eAAe,CAAC,OAAO,CACxB,CACF,CAAC;QAEF,OAAO,IAAI,mBAAQ,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACK,mBAAmB,CAAC,OAAwB;QAClD,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC;IACJ,CAAC;CACF;AArDD,8CAqDC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MakeWaldeAdmin = MakeWaldeAdmin;
|
|
4
|
+
const walde_admin_factory_1 = require("./infra/factories/walde-admin-factory");
|
|
2
5
|
/**
|
|
3
6
|
* Customer-facing factory function for creating WaldeAdmin instances
|
|
4
7
|
*/
|
|
5
|
-
|
|
6
|
-
return WaldeAdminFactory.createAdmin(config);
|
|
8
|
+
function MakeWaldeAdmin(config) {
|
|
9
|
+
return walde_admin_factory_1.WaldeAdminFactory.createAdmin(config);
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=make-walde-admin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-walde-admin.js","sourceRoot":"","sources":["../../src/sdk/make-walde-admin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-walde-admin.js","sourceRoot":"","sources":["../../src/sdk/make-walde-admin.ts"],"names":[],"mappings":";;AAeA,wCAEC;AAjBD,+EAA0E;AAY1E;;GAEG;AACH,SAAgB,cAAc,CAAC,MAA4B;IACzD,OAAO,uCAAiB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC"}
|
package/dist/sdk/make-walde.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MakeWalde = MakeWalde;
|
|
4
|
+
const walde_factory_1 = require("./infra/factories/walde-factory");
|
|
2
5
|
/**
|
|
3
6
|
* Create a Walde instance for frontend operations
|
|
4
7
|
*/
|
|
5
|
-
|
|
6
|
-
return WaldeFactory.create(config);
|
|
8
|
+
function MakeWalde(config) {
|
|
9
|
+
return walde_factory_1.WaldeFactory.create(config);
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=make-walde.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-walde.js","sourceRoot":"","sources":["../../src/sdk/make-walde.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-walde.js","sourceRoot":"","sources":["../../src/sdk/make-walde.ts"],"names":[],"mappings":";;AAaA,8BAEC;AAfD,mEAA+D;AAU/D;;GAEG;AACH,SAAgB,SAAS,CAAC,MAAmB;IAC3C,OAAO,4BAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Future = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Abstract base class for lazy method chaining that resolves to a Promise.
|
|
3
6
|
* Enables fluent API patterns where each step contributes parameters to a final operation.
|
|
@@ -5,7 +8,7 @@
|
|
|
5
8
|
* @template T The result type when resolved
|
|
6
9
|
* @template P The parent type that provides parameters for this operation
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
class Future {
|
|
9
12
|
/**
|
|
10
13
|
* Creates a new Future with parent reference.
|
|
11
14
|
* @param parent The parent object that provides parameters for this operation
|
|
@@ -18,4 +21,5 @@ export class Future {
|
|
|
18
21
|
*/
|
|
19
22
|
parent;
|
|
20
23
|
}
|
|
24
|
+
exports.Future = Future;
|
|
21
25
|
//# sourceMappingURL=future.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"future.js","sourceRoot":"","sources":["../../../../src/std/domain/entities/future.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,
|
|
1
|
+
{"version":3,"file":"future.js","sourceRoot":"","sources":["../../../../src/std/domain/entities/future.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,MAAsB,MAAM;IAC1B;;;OAGG;IACH,YAAY,EAAE,MAAM,EAAiB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACgB,MAAM,CAAI;CAQ9B;AApBD,wBAoBC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.none = exports.some = exports.None = exports.Some = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Represents an option that contains a value.
|
|
3
6
|
*/
|
|
4
|
-
|
|
7
|
+
class Some {
|
|
5
8
|
value;
|
|
6
9
|
/**
|
|
7
10
|
* Creates an option containing the given value.
|
|
@@ -25,10 +28,11 @@ export class Some {
|
|
|
25
28
|
return false;
|
|
26
29
|
}
|
|
27
30
|
}
|
|
31
|
+
exports.Some = Some;
|
|
28
32
|
/**
|
|
29
33
|
* Represents an empty option containing no value.
|
|
30
34
|
*/
|
|
31
|
-
|
|
35
|
+
class None {
|
|
32
36
|
/**
|
|
33
37
|
* Type guard to check if this option contains a value.
|
|
34
38
|
* @returns false, as this is always a None variant
|
|
@@ -44,15 +48,18 @@ export class None {
|
|
|
44
48
|
return true;
|
|
45
49
|
}
|
|
46
50
|
}
|
|
51
|
+
exports.None = None;
|
|
47
52
|
/**
|
|
48
53
|
* Creates an option containing the given value.
|
|
49
54
|
* @param value The value to wrap (must not be null or undefined)
|
|
50
55
|
* @returns Some instance containing the value
|
|
51
56
|
*/
|
|
52
|
-
|
|
57
|
+
const some = (value) => new Some(value);
|
|
58
|
+
exports.some = some;
|
|
53
59
|
/**
|
|
54
60
|
* Creates an empty option containing no value.
|
|
55
61
|
* @returns None instance
|
|
56
62
|
*/
|
|
57
|
-
|
|
63
|
+
const none = () => new None();
|
|
64
|
+
exports.none = none;
|
|
58
65
|
//# sourceMappingURL=option.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.js","sourceRoot":"","sources":["../../../../src/std/domain/entities/option.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"option.js","sourceRoot":"","sources":["../../../../src/std/domain/entities/option.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACH,MAAa,IAAI;IAKa;IAJ5B;;;OAGG;IACH,YAA4B,KAAqB;QAArB,UAAK,GAAL,KAAK,CAAgB;IAAG,CAAC;IAErD;;;OAGG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAtBD,oBAsBC;AAED;;GAEG;AACH,MAAa,IAAI;IACf;;;OAGG;IACH,MAAM;QACJ,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAhBD,oBAgBC;AAED;;;;GAIG;AACI,MAAM,IAAI,GAAG,CAAI,KAAqB,EAAW,EAAE,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;AAA9D,QAAA,IAAI,QAA0D;AAE3E;;;GAGG;AACI,MAAM,IAAI,GAAG,GAAS,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC;AAA9B,QAAA,IAAI,QAA0B"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.err = exports.ok = exports.Err = exports.Ok = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Represents a successful result containing a value.
|
|
3
6
|
*/
|
|
4
|
-
|
|
7
|
+
class Ok {
|
|
5
8
|
value;
|
|
6
9
|
/**
|
|
7
10
|
* Creates a successful result with the given value.
|
|
@@ -40,10 +43,11 @@ export class Ok {
|
|
|
40
43
|
return this.value;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
46
|
+
exports.Ok = Ok;
|
|
43
47
|
/**
|
|
44
48
|
* Represents a failed result containing an error.
|
|
45
49
|
*/
|
|
46
|
-
|
|
50
|
+
class Err {
|
|
47
51
|
error;
|
|
48
52
|
/**
|
|
49
53
|
* Creates a failed result with the given error.
|
|
@@ -89,16 +93,19 @@ export class Err {
|
|
|
89
93
|
throw new Error(message);
|
|
90
94
|
}
|
|
91
95
|
}
|
|
96
|
+
exports.Err = Err;
|
|
92
97
|
/**
|
|
93
98
|
* Creates a successful result containing the given value.
|
|
94
99
|
* @param value The success value
|
|
95
100
|
* @returns Ok instance containing the value
|
|
96
101
|
*/
|
|
97
|
-
|
|
102
|
+
const ok = (value) => new Ok(value);
|
|
103
|
+
exports.ok = ok;
|
|
98
104
|
/**
|
|
99
105
|
* Creates a failed result containing the given error.
|
|
100
106
|
* @param error The error value
|
|
101
107
|
* @returns Err instance containing the error
|
|
102
108
|
*/
|
|
103
|
-
|
|
109
|
+
const err = (error) => new Err(error);
|
|
110
|
+
exports.err = err;
|
|
104
111
|
//# sourceMappingURL=result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.js","sourceRoot":"","sources":["../../../../src/std/domain/entities/result.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"result.js","sourceRoot":"","sources":["../../../../src/std/domain/entities/result.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACH,MAAa,EAAE;IAKe;IAJ5B;;;OAGG;IACH,YAA4B,KAAQ;QAAR,UAAK,GAAL,KAAK,CAAG;IAAG,CAAC;IAExC;;;OAGG;IACH,IAAI;QACF,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,KAAK;QACH,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,OAAe;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAvCD,gBAuCC;AAED;;GAEG;AACH,MAAa,GAAG;IAKc;IAJ5B;;;OAGG;IACH,YAA4B,KAAQ;QAAR,UAAK,GAAL,KAAK,CAAG;IAAG,CAAC;IAExC;;;OAGG;IACH,IAAI;QACF,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;OAGG;IACH,KAAK;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,kCAAkC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,OAAe;QACpB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;CACF;AA/CD,kBA+CC;AAED;;;;GAIG;AACI,MAAM,EAAE,GAAG,CAAI,KAAQ,EAAS,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;AAA3C,QAAA,EAAE,MAAyC;AAExD;;;;GAIG;AACI,MAAM,GAAG,GAAG,CAAI,KAAQ,EAAU,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AAA9C,QAAA,GAAG,OAA2C"}
|
package/dist/std/index.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Future = exports.none = exports.some = exports.None = exports.Some = exports.err = exports.ok = exports.Err = exports.Ok = void 0;
|
|
4
|
+
var result_1 = require("./domain/entities/result");
|
|
5
|
+
Object.defineProperty(exports, "Ok", { enumerable: true, get: function () { return result_1.Ok; } });
|
|
6
|
+
Object.defineProperty(exports, "Err", { enumerable: true, get: function () { return result_1.Err; } });
|
|
7
|
+
Object.defineProperty(exports, "ok", { enumerable: true, get: function () { return result_1.ok; } });
|
|
8
|
+
Object.defineProperty(exports, "err", { enumerable: true, get: function () { return result_1.err; } });
|
|
9
|
+
var option_1 = require("./domain/entities/option");
|
|
10
|
+
Object.defineProperty(exports, "Some", { enumerable: true, get: function () { return option_1.Some; } });
|
|
11
|
+
Object.defineProperty(exports, "None", { enumerable: true, get: function () { return option_1.None; } });
|
|
12
|
+
Object.defineProperty(exports, "some", { enumerable: true, get: function () { return option_1.some; } });
|
|
13
|
+
Object.defineProperty(exports, "none", { enumerable: true, get: function () { return option_1.none; } });
|
|
14
|
+
var future_1 = require("./domain/entities/future");
|
|
15
|
+
Object.defineProperty(exports, "Future", { enumerable: true, get: function () { return future_1.Future; } });
|
|
4
16
|
//# sourceMappingURL=index.js.map
|
package/dist/std/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/std/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/std/index.ts"],"names":[],"mappings":";;;AAAA,mDAA4D;AAAnD,4FAAA,EAAE,OAAA;AAAE,6FAAA,GAAG,OAAA;AAAE,4FAAA,EAAE,OAAA;AAAE,6FAAA,GAAG,OAAA;AAEzB,mDAAkE;AAAzD,8FAAA,IAAI,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,8FAAA,IAAI,OAAA;AAE/B,mDAAkD;AAAzC,gGAAA,MAAM,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walde.ai/walde-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "TypeScript SDK for Walde platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
11
|
+
"build": "tsc && tsc-alias",
|
|
12
12
|
"dev": "tsc --watch",
|
|
13
13
|
"clean": "rm -rf dist"
|
|
14
14
|
},
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"author": "",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"@types/node": "^20.0.0",
|
|
24
|
+
"tsc-alias": "^1.8.16",
|
|
25
|
+
"typescript": "^5.0.0"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"amazon-cognito-identity-js": "^6.3.12",
|
|
28
|
-
"aws-sdk": "^2.1691.0",
|
|
29
|
-
"@aws-sdk/client-s3": "^3.0.0",
|
|
30
28
|
"@aws-sdk/client-cognito-identity-provider": "^3.0.0",
|
|
29
|
+
"@aws-sdk/client-s3": "^3.0.0",
|
|
30
|
+
"amazon-cognito-identity-js": "^6.3.12",
|
|
31
31
|
"gray-matter": "^4.0.3"
|
|
32
32
|
}
|
|
33
33
|
}
|