Commit Graph

148 Commits

Author SHA1 Message Date
2db6e95b1c feat: enhance DTO generation and organization by tag 2026-03-27 14:34:30 +01:00
603feda26d feat: enhance name formatting functions to include PascalCase conversion 2026-03-27 14:09:30 +01:00
ddca01e4e9 chore: bump to version v1.3.10 2026-03-27 08:37:33 +00:00
59ff941fda Merge pull request 'chore: update installation instructions and add mock files to README' (#65) from feat/update-docu into main
Reviewed-on: #65
Reviewed-by: blas <me@blassanto.me>
2026-03-27 08:33:50 +00:00
8881e9494c chore: update installation instructions and add mock files to README
All checks were successful
Lint / lint (pull_request) Successful in 13s
Publish / publish (push) Successful in 2m48s
v1.3.10
2026-03-27 09:28:51 +01:00
720748b73d chore: bump to version v1.3.9 2026-03-27 08:03:10 +00:00
7063796e28 Merge pull request 'chore: update installation instructions for npm registry in release body' (#64) from chore/change-registry-to-npm into main
All checks were successful
Publish / publish (push) Successful in 2m21s
Reviewed-on: #64
v1.3.9
2026-03-27 08:02:13 +00:00
f349b7b2a3 chore: update installation instructions for npm registry in release body
All checks were successful
Lint / lint (pull_request) Successful in 19s
2026-03-27 08:59:28 +01:00
b59084dec6 chore: bump to version v1.3.8 2026-03-26 20:39:57 +00:00
5c83520f01 Merge pull request 'refactor: streamline npm registry authentication setup in publish workflow' (#63) from chore/update-publish into main
Some checks failed
Publish / publish (push) Failing after 32s
Reviewed-on: #63
v1.3.8
2026-03-26 20:38:41 +00:00
cc0439e26e refactor: streamline npm registry authentication setup in publish workflow
All checks were successful
Lint / lint (pull_request) Successful in 14s
2026-03-26 21:32:24 +01:00
b5b3632f5b chore: bump to version v1.3.7 2026-03-26 20:24:26 +00:00
d78bc303fa Merge pull request 'chore: update-publish' (#62) from chore/update-publish into main
Some checks failed
Publish / publish (push) Failing after 5m32s
Reviewed-on: #62
Reviewed-by: blas <me@blassanto.me>
v1.3.7
2026-03-26 20:23:35 +00:00
df9283556b Merge branch 'main' into chore/update-publish
All checks were successful
Lint / lint (pull_request) Successful in 14s
2026-03-26 21:21:07 +01:00
909f709659 fix: update environment variable for npm registry publishing 2026-03-26 21:20:50 +01:00
5878331abf chore: bump to version v1.3.6 2026-03-26 20:14:26 +00:00
7e8e6d7058 Merge pull request 'fix: update package name and installation instructions in publish workflow' (#61) from chore/update-publish into main
Some checks failed
Publish / publish (push) Failing after 5m30s
Reviewed-on: #61
Reviewed-by: blas <me@blassanto.me>
v1.3.6
2026-03-26 20:12:32 +00:00
469697f636 fix: update package name and installation instructions in publish workflow
All checks were successful
Lint / lint (pull_request) Successful in 23s
2026-03-26 20:51:50 +01:00
2257e2141e Merge pull request 'feat/add-config-file' (#60) from feat/add-config-file into main
Reviewed-on: #60
2026-03-26 18:09:18 +00:00
0f64b51b63 Merge remote-tracking branch 'origin/main'
All checks were successful
Lint / lint (pull_request) Successful in 20s
# Conflicts:
#	main.ts
2026-03-26 19:02:16 +01:00
9c385191e2 feat: add configuration file strategy 2026-03-26 18:52:34 +01:00
d2f9eaa933 chore: bump to version v1.3.5 2026-03-26 16:08:21 +00:00
a600a60678 Merge pull request 'chore: update npm registry configuration in publish workflow' (#59) from chore/change-registry-to-npm into main
Some checks failed
Publish / publish (push) Failing after 5m27s
Reviewed-on: #59
v1.3.5
2026-03-26 16:07:47 +00:00
a42063c1d9 chore: update npm registry configuration in publish workflow
All checks were successful
Lint / lint (pull_request) Successful in 14s
2026-03-26 17:05:10 +01:00
7f6feda81d chore: bump to version v1.3.4 2026-03-26 15:55:38 +00:00
12b2dd6b51 Merge pull request 'chore: update npm registry configuration in Bun settings' (#58) from chore/change-registry-to-npm into main
Some checks failed
Publish / publish (push) Has been cancelled
Reviewed-on: #58
v1.3.4
2026-03-26 15:55:08 +00:00
84486e816a chore: update npm registry configuration in Bun settings
All checks were successful
Lint / lint (pull_request) Successful in 14s
2026-03-26 16:54:33 +01:00
942cf7f092 chore: bump to version v1.3.3 2026-03-26 15:52:35 +00:00
e0fb12a6c6 Merge pull request 'chore: add npm registry configuration to Bun settings' (#57) from chore/change-registry-to-npm into main
Some checks failed
Publish / publish (push) Failing after 27s
Reviewed-on: #57
v1.3.3
2026-03-26 15:51:57 +00:00
2402b40059 chore: add npm registry configuration to Bun settings
All checks were successful
Lint / lint (pull_request) Successful in 14s
2026-03-26 16:48:15 +01:00
04962e32f5 chore: bump to version v1.3.2 2026-03-26 15:36:08 +00:00
144629bed6 chore: bump to version v1.3.2 2026-03-26 15:34:44 +00:00
0c58a63d01 chore: bump to version v1.3.2
Some checks failed
Publish / publish (push) Failing after 5m31s
v1.3.2
2026-03-26 15:31:47 +00:00
74ac1c26a1 Merge pull request 'chore: update registry configuration from Gitea to npm' (#56) from chore/change-registry-to-npm into main
Reviewed-on: #56
2026-03-26 15:30:50 +00:00
db70f47bb7 chore: update registry configuration from Gitea to npm
All checks were successful
Lint / lint (pull_request) Successful in 18s
2026-03-26 16:29:34 +01:00
91e608415f chore: bump to version v1.3.1
Some checks failed
Publish / publish (push) Has been cancelled
2026-03-26 12:23:55 +00:00
058abf59c4 Merge pull request 'fix: assert repository call with specific parameters in observable completion' (#55) from fix/spec-without-expect into main
Reviewed-on: #55
Reviewed-by: blas <me@blassanto.me>
2026-03-26 12:22:55 +00:00
1d52da3805 test: assert repository call with specific parameters in observable completion
All checks were successful
Lint / lint (pull_request) Successful in 14s
2026-03-26 13:16:41 +01:00
32cb3d476f Merge pull request 'feat: enhance logging and linting functionality with detailed reports' (#54) from feat/move-logs into main
All checks were successful
Publish / publish (push) Successful in 2m5s
Reviewed-on: #54
Reviewed-by: blas <me@blassanto.me>
v1.3.1
2026-03-26 12:06:46 +00:00
79ea7dfc7e feat: enhance logging and linting functionality with detailed reports
All checks were successful
Lint / lint (pull_request) Successful in 16s
2026-03-26 13:03:10 +01:00
b54a94c6d3 chore: bump to version v1.3.0 2026-03-26 10:59:19 +00:00
77e3cbc0e9 Merge pull request 'chore: fix publish workflow' (#52) from fix/fix-publish into main
All checks were successful
Publish / publish (push) Successful in 2m23s
Reviewed-on: #52
v1.3.0
2026-03-26 10:58:15 +00:00
16d4c8e0bb chore: fix publish workflow
All checks were successful
Lint / lint (pull_request) Successful in 15s
2026-03-26 11:57:43 +01:00
e28443ce45 chore: bump to version v1.2.0 2026-03-26 10:51:33 +00:00
5707abf6bb Merge pull request 'feat: add specs generator & fix body params' (#49) from feat/add-specs into main
Some checks failed
Publish / publish (push) Failing after 30s
Reviewed-on: #49
Reviewed-by: blas <me@blassanto.me>
v1.2.0
2026-03-26 10:33:07 +00:00
didavila
d47afb6ff1 fix: body param and 2xx response codes in repository generation
All checks were successful
Lint / lint (pull_request) Successful in 31s
Bug 1 - Body as positional argument (api.repository.impl.mustache):
MRepository HTTP methods accept a single RequestOptions object as second
argument. The template was incorrectly passing body as a separate positional
argument (e.g. this.post('/url', body)), causing:
  'Type X has no properties in common with type RequestOptions'
Fix: merge body into the options object using ES6 shorthand { body }, and
introduce hasOptions / hasBothParamsAndBody flags to build a single unified
options literal covering all scenarios:
  - no options    → this.post('/url')
  - params only   → this.get('/url', { params: { search } })
  - body only     → this.post('/url', { body })
  - params + body → this.post('/url', { params: { search }, body })

Bug 2 - Only 200 responses read (clean-arch.generator.ts):
The generator was hardcoded to read op.responses['200'], silently ignoring
201 Created, 202 Accepted, etc. POST endpoints returning 201 were generated
as Observable<void> instead of their actual return type.
Fix: resolve the first available success code from [200, 201, 202, 203].

New fields added to TagOperation type:
  - uppercaseHttpMethod: string
  - hasOptions: boolean
  - hasBothParamsAndBody: boolean

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-26 11:17:37 +01:00
didavila
463626da0c feat: add .spec.ts generation for models, mappers, repositories and use-cases
Add 4 new Mustache templates for generating unit test specs:
- model-entity.spec.mustache: tests instantiation, property setting, mock builder
- mapper.spec.mustache: tests per-property DTO→Entity mapping, instanceof, all fields
- api.repository.impl.spec.mustache: tests HTTP method, response mapping, error propagation
- api.use-cases.impl.spec.mustache: tests repository delegation, observable forwarding

Generator changes:
- Add uppercaseHttpMethod to TagOperation for spec HTTP assertions
- Add testValue to TagOperationParam for auto-generated test arguments
- Add resolveTestParamValue utility for primitive/complex type test literals
- Add specs counter to GeneratedCount and GenerationReport
- Wire 4 new renderTemplate calls in schema and tag loops
- Update report generator to count .spec.ts files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-26 10:52:58 +01:00
05a58c4254 chore: bump to version v1.1.0 2026-03-25 10:52:48 +00:00
d4d6148b25 Merge pull request 'feat: add mocks-generator' (#47) from feat/mocks-generator into main
Some checks failed
Publish / publish (push) Failing after 57s
Reviewed-on: #47
Reviewed-by: blas <me@blassanto.me>
v1.1.0
2026-03-25 10:49:34 +00:00
didavila
cc650f9635 Merge branch 'main' into feat/mocks-generator
All checks were successful
Lint / lint (pull_request) Successful in 15s
2026-03-25 11:15:53 +01:00