@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.
Files changed (262) hide show
  1. package/README.md +28 -6
  2. package/dist/index.js +18 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/sdk/contracts/frontend-content/v1/content-format-v1.js +2 -1
  5. package/dist/sdk/contracts/frontend-content/v1/content-part-v1.js +2 -1
  6. package/dist/sdk/contracts/frontend-content/v1/frontend-content-v1.js +2 -1
  7. package/dist/sdk/contracts/manifest/v1/manifest-content-v1.js +2 -1
  8. package/dist/sdk/contracts/manifest/v1/manifest-v1.js +2 -1
  9. package/dist/sdk/domain/entities/content-format.js +5 -1
  10. package/dist/sdk/domain/entities/content-format.js.map +1 -1
  11. package/dist/sdk/domain/entities/content-part.js +5 -1
  12. package/dist/sdk/domain/entities/content-part.js.map +1 -1
  13. package/dist/sdk/domain/entities/content-state.js +5 -2
  14. package/dist/sdk/domain/entities/content-state.js.map +1 -1
  15. package/dist/sdk/domain/entities/content-version.js +5 -1
  16. package/dist/sdk/domain/entities/content-version.js.map +1 -1
  17. package/dist/sdk/domain/entities/content.js +5 -1
  18. package/dist/sdk/domain/entities/content.js.map +1 -1
  19. package/dist/sdk/domain/entities/credentials.js +5 -1
  20. package/dist/sdk/domain/entities/credentials.js.map +1 -1
  21. package/dist/sdk/domain/entities/dns-entry.js +5 -1
  22. package/dist/sdk/domain/entities/dns-entry.js.map +1 -1
  23. package/dist/sdk/domain/entities/file.js +5 -1
  24. package/dist/sdk/domain/entities/file.js.map +1 -1
  25. package/dist/sdk/domain/entities/format-part.js +2 -1
  26. package/dist/sdk/domain/entities/format.js +5 -1
  27. package/dist/sdk/domain/entities/format.js.map +1 -1
  28. package/dist/sdk/domain/entities/frontend-content.js +5 -1
  29. package/dist/sdk/domain/entities/frontend-content.js.map +1 -1
  30. package/dist/sdk/domain/entities/key-value-part.js +5 -1
  31. package/dist/sdk/domain/entities/key-value-part.js.map +1 -1
  32. package/dist/sdk/domain/entities/manifest-content.js +5 -1
  33. package/dist/sdk/domain/entities/manifest-content.js.map +1 -1
  34. package/dist/sdk/domain/entities/manifest.js +5 -1
  35. package/dist/sdk/domain/entities/manifest.js.map +1 -1
  36. package/dist/sdk/domain/entities/markdown-part.js +5 -1
  37. package/dist/sdk/domain/entities/markdown-part.js.map +1 -1
  38. package/dist/sdk/domain/entities/site.js +7 -3
  39. package/dist/sdk/domain/entities/site.js.map +1 -1
  40. package/dist/sdk/domain/entities/string-part.js +5 -1
  41. package/dist/sdk/domain/entities/string-part.js.map +1 -1
  42. package/dist/sdk/domain/entities/ui-upload-credentials.js +5 -1
  43. package/dist/sdk/domain/entities/ui-upload-credentials.js.map +1 -1
  44. package/dist/sdk/domain/entities/walde-admin-config.d.ts +1 -1
  45. package/dist/sdk/domain/entities/walde-admin-config.js +8 -4
  46. package/dist/sdk/domain/entities/walde-admin-config.js.map +1 -1
  47. package/dist/sdk/domain/entities/workspace-config.js +5 -1
  48. package/dist/sdk/domain/entities/workspace-config.js.map +1 -1
  49. package/dist/sdk/domain/errors/index.js +23 -10
  50. package/dist/sdk/domain/errors/index.js.map +1 -1
  51. package/dist/sdk/domain/errors/walde-authentication-error.js +6 -2
  52. package/dist/sdk/domain/errors/walde-authentication-error.js.map +1 -1
  53. package/dist/sdk/domain/errors/walde-configuration-error.js +6 -2
  54. package/dist/sdk/domain/errors/walde-configuration-error.js.map +1 -1
  55. package/dist/sdk/domain/errors/walde-error.js +5 -1
  56. package/dist/sdk/domain/errors/walde-error.js.map +1 -1
  57. package/dist/sdk/domain/errors/walde-local-error.js +6 -2
  58. package/dist/sdk/domain/errors/walde-local-error.js.map +1 -1
  59. package/dist/sdk/domain/errors/walde-network-error.js +6 -2
  60. package/dist/sdk/domain/errors/walde-network-error.js.map +1 -1
  61. package/dist/sdk/domain/errors/walde-system-error.js +6 -2
  62. package/dist/sdk/domain/errors/walde-system-error.js.map +1 -1
  63. package/dist/sdk/domain/errors/walde-unexpected-error.js +6 -2
  64. package/dist/sdk/domain/errors/walde-unexpected-error.js.map +1 -1
  65. package/dist/sdk/domain/errors/walde-usage-error.js +6 -2
  66. package/dist/sdk/domain/errors/walde-usage-error.js.map +1 -1
  67. package/dist/sdk/domain/errors/walde-user-error.js +6 -2
  68. package/dist/sdk/domain/errors/walde-user-error.js.map +1 -1
  69. package/dist/sdk/domain/errors/walde-validation-error.js +6 -2
  70. package/dist/sdk/domain/errors/walde-validation-error.js.map +1 -1
  71. package/dist/sdk/domain/interactors/api-call.d.ts +1 -1
  72. package/dist/sdk/domain/interactors/api-call.js +7 -3
  73. package/dist/sdk/domain/interactors/api-call.js.map +1 -1
  74. package/dist/sdk/domain/interactors/associate-site-certificates.d.ts +2 -2
  75. package/dist/sdk/domain/interactors/associate-site-certificates.js +8 -4
  76. package/dist/sdk/domain/interactors/associate-site-certificates.js.map +1 -1
  77. package/dist/sdk/domain/interactors/content/list-contents.d.ts +2 -2
  78. package/dist/sdk/domain/interactors/content/list-contents.js +5 -1
  79. package/dist/sdk/domain/interactors/content/list-contents.js.map +1 -1
  80. package/dist/sdk/domain/interactors/content/parse-content-file.d.ts +2 -2
  81. package/dist/sdk/domain/interactors/content/parse-content-file.js +24 -20
  82. package/dist/sdk/domain/interactors/content/parse-content-file.js.map +1 -1
  83. package/dist/sdk/domain/interactors/content/push-content.d.ts +4 -4
  84. package/dist/sdk/domain/interactors/content/push-content.js +7 -3
  85. package/dist/sdk/domain/interactors/content/push-content.js.map +1 -1
  86. package/dist/sdk/domain/interactors/create-site.d.ts +3 -3
  87. package/dist/sdk/domain/interactors/create-site.js +10 -6
  88. package/dist/sdk/domain/interactors/create-site.js.map +1 -1
  89. package/dist/sdk/domain/interactors/get-credentials.d.ts +2 -2
  90. package/dist/sdk/domain/interactors/get-credentials.js +5 -1
  91. package/dist/sdk/domain/interactors/get-credentials.js.map +1 -1
  92. package/dist/sdk/domain/interactors/get-token.d.ts +1 -1
  93. package/dist/sdk/domain/interactors/get-token.js +7 -3
  94. package/dist/sdk/domain/interactors/get-token.js.map +1 -1
  95. package/dist/sdk/domain/interactors/list-sites.d.ts +3 -3
  96. package/dist/sdk/domain/interactors/list-sites.js +8 -4
  97. package/dist/sdk/domain/interactors/list-sites.js.map +1 -1
  98. package/dist/sdk/domain/interactors/refresh-credentials.d.ts +3 -3
  99. package/dist/sdk/domain/interactors/refresh-credentials.js +7 -3
  100. package/dist/sdk/domain/interactors/refresh-credentials.js.map +1 -1
  101. package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.d.ts +4 -4
  102. package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.js +11 -7
  103. package/dist/sdk/domain/interactors/ui/upload-ui-from-folder.js.map +1 -1
  104. package/dist/sdk/domain/interactors/update-site.d.ts +3 -3
  105. package/dist/sdk/domain/interactors/update-site.js +10 -6
  106. package/dist/sdk/domain/interactors/update-site.js.map +1 -1
  107. package/dist/sdk/domain/interactors/workspace/init-workspace.d.ts +3 -3
  108. package/dist/sdk/domain/interactors/workspace/init-workspace.js +10 -6
  109. package/dist/sdk/domain/interactors/workspace/init-workspace.js.map +1 -1
  110. package/dist/sdk/domain/ports/backend/backend-client.js +2 -1
  111. package/dist/sdk/domain/ports/in/content-file-reader.js +2 -1
  112. package/dist/sdk/domain/ports/in/token-provider.js +2 -1
  113. package/dist/sdk/domain/ports/out/backend-communication.js +2 -1
  114. package/dist/sdk/domain/ports/out/content-file-writer.js +2 -1
  115. package/dist/sdk/domain/ports/out/content-repo.d.ts +2 -2
  116. package/dist/sdk/domain/ports/out/content-repo.js +2 -1
  117. package/dist/sdk/domain/ports/out/credentials-provider.d.ts +1 -1
  118. package/dist/sdk/domain/ports/out/credentials-provider.js +2 -1
  119. package/dist/sdk/domain/ports/out/file-system-reader.d.ts +1 -1
  120. package/dist/sdk/domain/ports/out/file-system-reader.js +2 -1
  121. package/dist/sdk/domain/ports/out/remote-files-repo.d.ts +2 -2
  122. package/dist/sdk/domain/ports/out/remote-files-repo.js +2 -1
  123. package/dist/sdk/domain/ports/out/site-repository.d.ts +1 -1
  124. package/dist/sdk/domain/ports/out/site-repository.js +2 -1
  125. package/dist/sdk/domain/ports/out/token-refresh-provider.d.ts +1 -1
  126. package/dist/sdk/domain/ports/out/token-refresh-provider.js +2 -1
  127. package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.d.ts +1 -1
  128. package/dist/sdk/domain/ports/out/ui-upload-credentials-repo.js +2 -1
  129. package/dist/sdk/domain/ports/out/upload-progress-callback.js +2 -1
  130. package/dist/sdk/domain/ports/out/workspace-config-repo.d.ts +1 -1
  131. package/dist/sdk/domain/ports/out/workspace-config-repo.js +2 -1
  132. package/dist/sdk/index.js +62 -29
  133. package/dist/sdk/index.js.map +1 -1
  134. package/dist/sdk/infra/adapters/api-client.d.ts +1 -1
  135. package/dist/sdk/infra/adapters/api-client.js +5 -1
  136. package/dist/sdk/infra/adapters/api-client.js.map +1 -1
  137. package/dist/sdk/infra/adapters/base-http-client.js +15 -11
  138. package/dist/sdk/infra/adapters/base-http-client.js.map +1 -1
  139. package/dist/sdk/infra/adapters/cognito-token-refresh-provider.d.ts +2 -2
  140. package/dist/sdk/infra/adapters/cognito-token-refresh-provider.js +15 -11
  141. package/dist/sdk/infra/adapters/cognito-token-refresh-provider.js.map +1 -1
  142. package/dist/sdk/infra/adapters/default-http-client.js +51 -14
  143. package/dist/sdk/infra/adapters/default-http-client.js.map +1 -1
  144. package/dist/sdk/infra/adapters/default-token-provider.d.ts +1 -1
  145. package/dist/sdk/infra/adapters/default-token-provider.js +7 -3
  146. package/dist/sdk/infra/adapters/default-token-provider.js.map +1 -1
  147. package/dist/sdk/infra/adapters/filesystem/file-content-reader.d.ts +1 -1
  148. package/dist/sdk/infra/adapters/filesystem/file-content-reader.js +14 -7
  149. package/dist/sdk/infra/adapters/filesystem/file-content-reader.js.map +1 -1
  150. package/dist/sdk/infra/adapters/filesystem/file-content-writer.d.ts +1 -1
  151. package/dist/sdk/infra/adapters/filesystem/file-content-writer.js +16 -9
  152. package/dist/sdk/infra/adapters/filesystem/file-content-writer.js.map +1 -1
  153. package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.d.ts +2 -2
  154. package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.js +16 -12
  155. package/dist/sdk/infra/adapters/filesystem/file-system-local-files-reader.js.map +1 -1
  156. package/dist/sdk/infra/adapters/frontend-http-client.js +6 -2
  157. package/dist/sdk/infra/adapters/frontend-http-client.js.map +1 -1
  158. package/dist/sdk/infra/adapters/http/http-content-repo.d.ts +4 -4
  159. package/dist/sdk/infra/adapters/http/http-content-repo.js +10 -6
  160. package/dist/sdk/infra/adapters/http/http-content-repo.js.map +1 -1
  161. package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.d.ts +3 -3
  162. package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.js +10 -6
  163. package/dist/sdk/infra/adapters/repositories/aws-s3-files-repo.js.map +1 -1
  164. package/dist/sdk/infra/adapters/repositories/credentials-file-repo.d.ts +2 -2
  165. package/dist/sdk/infra/adapters/repositories/credentials-file-repo.js +43 -6
  166. package/dist/sdk/infra/adapters/repositories/credentials-file-repo.js.map +1 -1
  167. package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.js +7 -3
  168. package/dist/sdk/infra/adapters/repositories/default-walde-admin-config.js.map +1 -1
  169. package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.d.ts +1 -1
  170. package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.js +40 -3
  171. package/dist/sdk/infra/adapters/repositories/file-walde-admin-config.js.map +1 -1
  172. package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.d.ts +2 -2
  173. package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.js +23 -16
  174. package/dist/sdk/infra/adapters/repositories/file-workspace-config-repo.js.map +1 -1
  175. package/dist/sdk/infra/adapters/repositories/http-site-repo.d.ts +3 -3
  176. package/dist/sdk/infra/adapters/repositories/http-site-repo.js +13 -9
  177. package/dist/sdk/infra/adapters/repositories/http-site-repo.js.map +1 -1
  178. package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.d.ts +1 -1
  179. package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.js +6 -2
  180. package/dist/sdk/infra/adapters/repositories/static-walde-admin-config.js.map +1 -1
  181. package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.d.ts +3 -3
  182. package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.js +9 -5
  183. package/dist/sdk/infra/adapters/repositories/writer-api-aws-ui-upload-credentials-repo.js.map +1 -1
  184. package/dist/sdk/infra/backend/walde-client.d.ts +2 -2
  185. package/dist/sdk/infra/backend/walde-client.js +5 -1
  186. package/dist/sdk/infra/backend/walde-client.js.map +1 -1
  187. package/dist/sdk/infra/factories/s3-files-repo-factory.d.ts +2 -2
  188. package/dist/sdk/infra/factories/s3-files-repo-factory.js +7 -3
  189. package/dist/sdk/infra/factories/s3-files-repo-factory.js.map +1 -1
  190. package/dist/sdk/infra/factories/walde-admin-config-factory.d.ts +1 -1
  191. package/dist/sdk/infra/factories/walde-admin-config-factory.js +52 -15
  192. package/dist/sdk/infra/factories/walde-admin-config-factory.js.map +1 -1
  193. package/dist/sdk/infra/factories/walde-admin-factory.d.ts +2 -2
  194. package/dist/sdk/infra/factories/walde-admin-factory.js +25 -21
  195. package/dist/sdk/infra/factories/walde-admin-factory.js.map +1 -1
  196. package/dist/sdk/infra/factories/walde-factory.d.ts +1 -1
  197. package/dist/sdk/infra/factories/walde-factory.js +13 -9
  198. package/dist/sdk/infra/factories/walde-factory.js.map +1 -1
  199. package/dist/sdk/infra/futures/api-future.d.ts +3 -3
  200. package/dist/sdk/infra/futures/api-future.js +11 -7
  201. package/dist/sdk/infra/futures/api-future.js.map +1 -1
  202. package/dist/sdk/infra/futures/content-future.d.ts +3 -3
  203. package/dist/sdk/infra/futures/content-future.js +22 -18
  204. package/dist/sdk/infra/futures/content-future.js.map +1 -1
  205. package/dist/sdk/infra/futures/content-item-future.d.ts +6 -6
  206. package/dist/sdk/infra/futures/content-item-future.js +12 -8
  207. package/dist/sdk/infra/futures/content-item-future.js.map +1 -1
  208. package/dist/sdk/infra/futures/content-iterator.d.ts +3 -3
  209. package/dist/sdk/infra/futures/content-iterator.js +27 -23
  210. package/dist/sdk/infra/futures/content-iterator.js.map +1 -1
  211. package/dist/sdk/infra/futures/content-list-future.d.ts +4 -4
  212. package/dist/sdk/infra/futures/content-list-future.js +8 -4
  213. package/dist/sdk/infra/futures/content-list-future.js.map +1 -1
  214. package/dist/sdk/infra/futures/contents-future.d.ts +3 -3
  215. package/dist/sdk/infra/futures/contents-future.js +10 -6
  216. package/dist/sdk/infra/futures/contents-future.js.map +1 -1
  217. package/dist/sdk/infra/futures/credentials-future.d.ts +2 -2
  218. package/dist/sdk/infra/futures/credentials-future.js +23 -19
  219. package/dist/sdk/infra/futures/credentials-future.js.map +1 -1
  220. package/dist/sdk/infra/futures/frontend-contents-future.d.ts +5 -5
  221. package/dist/sdk/infra/futures/frontend-contents-future.js +18 -14
  222. package/dist/sdk/infra/futures/frontend-contents-future.js.map +1 -1
  223. package/dist/sdk/infra/futures/manifest-future.d.ts +5 -5
  224. package/dist/sdk/infra/futures/manifest-future.js +9 -5
  225. package/dist/sdk/infra/futures/manifest-future.js.map +1 -1
  226. package/dist/sdk/infra/futures/site-future.d.ts +3 -3
  227. package/dist/sdk/infra/futures/site-future.js +35 -31
  228. package/dist/sdk/infra/futures/site-future.js.map +1 -1
  229. package/dist/sdk/infra/futures/sites-future.d.ts +3 -3
  230. package/dist/sdk/infra/futures/sites-future.js +12 -8
  231. package/dist/sdk/infra/futures/sites-future.js.map +1 -1
  232. package/dist/sdk/infra/futures/ui-future.d.ts +4 -4
  233. package/dist/sdk/infra/futures/ui-future.js +13 -9
  234. package/dist/sdk/infra/futures/ui-future.js.map +1 -1
  235. package/dist/sdk/infra/futures/walde-admin-future.d.ts +9 -9
  236. package/dist/sdk/infra/futures/walde-admin-future.js +22 -18
  237. package/dist/sdk/infra/futures/walde-admin-future.js.map +1 -1
  238. package/dist/sdk/infra/futures/walde-future.d.ts +5 -5
  239. package/dist/sdk/infra/futures/walde-future.js +16 -12
  240. package/dist/sdk/infra/futures/walde-future.js.map +1 -1
  241. package/dist/sdk/infra/futures/workspace-future.d.ts +4 -4
  242. package/dist/sdk/infra/futures/workspace-future.js +10 -5
  243. package/dist/sdk/infra/futures/workspace-future.js.map +1 -1
  244. package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.d.ts +2 -2
  245. package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.js +13 -9
  246. package/dist/sdk/infra/mappers/dto/frontend-content-dto-mapper.js.map +1 -1
  247. package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.d.ts +2 -2
  248. package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.js +11 -7
  249. package/dist/sdk/infra/mappers/dto/manifest-dto-mapper.js.map +1 -1
  250. package/dist/sdk/make-walde-admin.js +6 -3
  251. package/dist/sdk/make-walde-admin.js.map +1 -1
  252. package/dist/sdk/make-walde.js +6 -3
  253. package/dist/sdk/make-walde.js.map +1 -1
  254. package/dist/std/domain/entities/future.js +5 -1
  255. package/dist/std/domain/entities/future.js.map +1 -1
  256. package/dist/std/domain/entities/option.js +11 -4
  257. package/dist/std/domain/entities/option.js.map +1 -1
  258. package/dist/std/domain/entities/result.js +11 -4
  259. package/dist/std/domain/entities/result.js.map +1 -1
  260. package/dist/std/index.js +15 -3
  261. package/dist/std/index.js.map +1 -1
  262. 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,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAOtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAA8C;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,eAAe,CAAC,gFAAgF,CAAC,CAAC;IAC9G,CAAC;CACF;AAQD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,MAAkD;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"}
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 '@/sdk/domain/entities/frontend-content';
2
- import { FrontendContentV1 } from '@/sdk/contracts/frontend-content/v1/frontend-content-v1';
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
- import { FrontendContent } from '@/sdk/domain/entities/frontend-content';
2
- import { ContentFormat } from '@/sdk/domain/entities/content-format';
3
- import { ContentPart } from '@/sdk/domain/entities/content-part';
4
- import { WaldeUnexpectedError } from '@/sdk/domain/errors';
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
- export class FrontendContentDtoMapper {
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,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAIjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;GAEG;AACH,MAAM,OAAO,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,oBAAoB,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,aAAa,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,WAAW,CAC1B,YAAY,CAAC,IAAI,EACjB,YAAY,CAAC,MAAM,CACpB,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,eAAe,CACxB,QAAQ,CAAC,IAAI,EACb,QAAQ,CAAC,GAAG,EACZ,MAAM,EACN,KAAK,CACN,CAAC;IACJ,CAAC;CACF"}
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 '@/sdk/domain/entities/manifest';
2
- import { ManifestV1 } from '@/sdk/contracts/manifest/v1/manifest-v1';
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
- import { Manifest } from '@/sdk/domain/entities/manifest';
2
- import { ManifestContent } from '@/sdk/domain/entities/manifest-content';
3
- import { WaldeUnexpectedError } from '@/sdk/domain/errors';
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
- export class ManifestDtoMapper {
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,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAGzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;GAEG;AACH,MAAM,OAAO,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,oBAAoB,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,eAAe,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,QAAQ,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"}
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
- import { WaldeAdminFactory } from './infra/factories/walde-admin-factory';
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
- export function MakeWaldeAdmin(config) {
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":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAY1E;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,MAA4B;IACzD,OAAO,iBAAiB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC"}
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"}
@@ -1,8 +1,11 @@
1
- import { WaldeFactory } from './infra/factories/walde-factory';
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
- export function MakeWalde(config) {
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":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAU/D;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,MAAmB;IAC3C,OAAO,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"}
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
- export class Future {
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,MAAM,OAAgB,MAAM;IAC1B;;;OAGG;IACH,YAAY,EAAE,MAAM,EAAiB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACgB,MAAM,CAAI;CAQ9B"}
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
- export class Some {
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
- export class None {
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
- export const some = (value) => new Some(value);
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
- export const none = () => new None();
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,MAAM,OAAO,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;AAED;;GAEG;AACH,MAAM,OAAO,IAAI;IACf;;;OAGG;IACH,MAAM;QACJ,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAI,KAAqB,EAAW,EAAE,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,GAAS,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC"}
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
- export class Ok {
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
- export class Err {
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
- export const ok = (value) => new Ok(value);
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
- export const err = (error) => new Err(error);
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,MAAM,OAAO,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;AAED;;GAEG;AACH,MAAM,OAAO,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;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAI,KAAQ,EAAS,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAI,KAAQ,EAAU,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC"}
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
- export { Ok, Err, ok, err } from './domain/entities/result';
2
- export { Some, None, some, none } from './domain/entities/option';
3
- export { Future } from './domain/entities/future';
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/std/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC"}
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.0",
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
- "typescript": "^5.0.0",
24
- "@types/node": "^20.0.0"
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
  }