Skip to content

Commit 9ff28dc

Browse files
committed
feat: begin integrating zod scheam gen
1 parent 2a12359 commit 9ff28dc

File tree

11 files changed

+38
-102
lines changed

11 files changed

+38
-102
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ dist-ssr
152152
tsconfig.tsbuildinfo
153153

154154
# Editor directories and files
155-
.vscode/*
156-
!.vscode/extensions.json
155+
.vscode
157156
.idea
158157
.DS_Store
159158
*.suo

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ strict-imports = false
284284

285285
[tool.codespell]
286286
ignore-words-list = "alog,selectin,selectinload"
287-
skip = 'uv.lock, package-lock.json'
287+
skip = 'uv.lock, package-lock.json, src/ui/lib/api/zod.gen.ts'
288288

289289
[tool.mypy]
290290
disallow_any_generics = false
@@ -339,66 +339,3 @@ module = ["app.db.migrations.*", "app.lib.dto.*"]
339339
[tool.pyright]
340340
exclude = ["scripts", "docs"]
341341
include = ["src/app", "tests"]
342-
343-
[tool.git-cliff.changelog]
344-
body = """
345-
{% if version %}\
346-
`Release [v{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} <https://github.com/litestar-org/litestar-fullstack/releases/tag/v{{ version | trim_start_matches(pat="v") }}>`_
347-
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
348-
* `See All commits in v{{ version | trim_start_matches(pat="v") }} <https://github.com/litestar-org/litestar-fullstack/commits/v{{ version | trim_start_matches(pat="v") }}>`_
349-
{% else %}\
350-
[unreleased]
351-
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
352-
{% endif %}\
353-
{% if previous %}\
354-
{% if previous.commit_id %}
355-
`{{ previous.commit_id | truncate(length=7, end="") }} <https://github.com/litestar-org/litestar-fullstack/commit/{{ previous.commit_id }}>`_ ... \
356-
`{{ previous.commit_id | truncate(length=7, end="") }} <https://github.com/litestar-org/litestar-fullstack/commit/{{ commit_id }}>`_ \
357-
| `See diff for {{ version }} <https://github.com/litestar-org/litestar-fullstack/compare/{{ previous.commit_id }}...{{ commit_id }}>`_
358-
{% endif %}\
359-
{% endif %}\
360-
{% for group, commits in commits | group_by(attribute="group") %}
361-
{{ group | upper_first }}
362-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
363-
{% for commit in commits %}
364-
* (`{{ commit.id | truncate(length=7, end="") }} <https://github.com/litestar-org/litestar-fullstack/commit/{{ commit.id }}>`_) {% if commit.breaking %}[**breaking**] {% endif %} - {{ commit.message | upper_first }} ({{ commit.author.name }})\
365-
{% for footer in commit.footers -%}
366-
, {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
367-
{% endfor %}\
368-
{% endfor %}
369-
{% endfor %}\n
370-
"""
371-
footer = """
372-
Litestar Fullstack Changelog
373-
"""
374-
header = """
375-
=========
376-
Changelog
377-
=========\n
378-
All commits to this project will be documented in this file.\n
379-
"""
380-
trim = true
381-
382-
[tool.git-cliff.git]
383-
commit_parsers = [
384-
{ message = "^feat", group = "Features" },
385-
{ message = "^fix", group = "Bug Fixes" },
386-
{ message = "^doc", group = "Documentation" },
387-
{ message = "^perf", group = "Performance" },
388-
{ message = "^refactor", group = "Refactor" },
389-
{ message = "^style", group = "Styling" },
390-
{ message = "^test", group = "Testing" },
391-
{ message = "^chore\\(release\\): prepare for", skip = true },
392-
{ message = "^chore", group = "Miscellaneous Tasks" },
393-
{ body = ".*security", group = "Security" },
394-
]
395-
conventional_commits = true
396-
filter_commits = false
397-
filter_unconventional = true
398-
ignore_tags = ""
399-
protect_breaking_commits = false
400-
skip_tags = "v0.1.0-beta.1"
401-
sort_commits = "oldest"
402-
split_commits = false
403-
tag_pattern = "v[0-9]*"
404-
topo_order = false

src/ui/lib/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22
export * from './types.gen';
3-
export * from './sdk.gen';
3+
export * from './sdk.gen';

src/ui/lib/api/sdk.gen.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class SystemService {
2626
...options
2727
});
2828
}
29-
29+
3030
}
3131

3232
export class AccessService {
@@ -55,7 +55,7 @@ export class AccessService {
5555
}
5656
});
5757
}
58-
58+
5959
/**
6060
* Logout
6161
* Account Logout
@@ -76,7 +76,7 @@ export class AccessService {
7676
...options
7777
});
7878
}
79-
79+
8080
/**
8181
* Profile
8282
* User Profile.
@@ -97,7 +97,7 @@ export class AccessService {
9797
...options
9898
});
9999
}
100-
100+
101101
/**
102102
* Signup
103103
* User Signup.
@@ -122,7 +122,7 @@ export class AccessService {
122122
}
123123
});
124124
}
125-
125+
126126
}
127127

128128
export class UserAccountsService {
@@ -146,7 +146,7 @@ export class UserAccountsService {
146146
...options
147147
});
148148
}
149-
149+
150150
/**
151151
* CreateUser
152152
* Create a new user.
@@ -171,7 +171,7 @@ export class UserAccountsService {
171171
}
172172
});
173173
}
174-
174+
175175
/**
176176
* DeleteUser
177177
* Delete a user from the system.
@@ -192,7 +192,7 @@ export class UserAccountsService {
192192
...options
193193
});
194194
}
195-
195+
196196
/**
197197
* GetUser
198198
* Get a user.
@@ -213,7 +213,7 @@ export class UserAccountsService {
213213
...options
214214
});
215215
}
216-
216+
217217
/**
218218
* UpdateUser
219219
* Create a new user.
@@ -238,7 +238,7 @@ export class UserAccountsService {
238238
}
239239
});
240240
}
241-
241+
242242
}
243243

244244
export class TeamsService {
@@ -262,7 +262,7 @@ export class TeamsService {
262262
...options
263263
});
264264
}
265-
265+
266266
/**
267267
* CreateTeam
268268
* Create a new team.
@@ -287,7 +287,7 @@ export class TeamsService {
287287
}
288288
});
289289
}
290-
290+
291291
/**
292292
* DeleteTeam
293293
* Delete a team.
@@ -308,7 +308,7 @@ export class TeamsService {
308308
...options
309309
});
310310
}
311-
311+
312312
/**
313313
* GetTeam
314314
* Get details about a team.
@@ -329,7 +329,7 @@ export class TeamsService {
329329
...options
330330
});
331331
}
332-
332+
333333
/**
334334
* UpdateTeam
335335
* Update a migration team.
@@ -354,7 +354,7 @@ export class TeamsService {
354354
}
355355
});
356356
}
357-
357+
358358
}
359359

360360
export class UserAccountRolesService {
@@ -382,7 +382,7 @@ export class UserAccountRolesService {
382382
}
383383
});
384384
}
385-
385+
386386
/**
387387
* RevokeRole
388388
* Delete a role from the system.
@@ -407,7 +407,7 @@ export class UserAccountRolesService {
407407
}
408408
});
409409
}
410-
410+
411411
}
412412

413413
export class TeamMembersService {
@@ -435,7 +435,7 @@ export class TeamMembersService {
435435
}
436436
});
437437
}
438-
438+
439439
/**
440440
* RemoveMemberFromTeam
441441
* Revoke a members access to a team.
@@ -460,7 +460,7 @@ export class TeamMembersService {
460460
}
461461
});
462462
}
463-
463+
464464
}
465465

466466
export class TagsService {
@@ -484,7 +484,7 @@ export class TagsService {
484484
...options
485485
});
486486
}
487-
487+
488488
/**
489489
* CreateTag
490490
* Create a new tag.
@@ -509,7 +509,7 @@ export class TagsService {
509509
}
510510
});
511511
}
512-
512+
513513
/**
514514
* DeleteTag
515515
* Delete a tag.
@@ -530,7 +530,7 @@ export class TagsService {
530530
...options
531531
});
532532
}
533-
533+
534534
/**
535535
* GetTag
536536
* Get a tag.
@@ -551,7 +551,7 @@ export class TagsService {
551551
...options
552552
});
553553
}
554-
554+
555555
/**
556556
* UpdateTag
557557
* Update a tag.
@@ -576,5 +576,5 @@ export class TagsService {
576576
}
577577
});
578578
}
579-
580-
}
579+
580+
}

src/ui/lib/api/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,4 +970,4 @@ export type UpdateTagResponses = {
970970
200: UpdateTagTagResponseBody;
971971
};
972972

973-
export type UpdateTagResponse = UpdateTagResponses[keyof UpdateTagResponses];
973+
export type UpdateTagResponse = UpdateTagResponses[keyof UpdateTagResponses];

src/ui/lib/api/zod.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,4 +362,4 @@ export const zDeleteTagResponse = z.void();
362362

363363
export const zGetTagResponse = zGetTagTagResponseBody;
364364

365-
export const zUpdateTagResponse = zUpdateTagTagResponseBody;
365+
export const zUpdateTagResponse = zUpdateTagTagResponseBody;

src/ui/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3005,4 +3005,4 @@
30053005
"BearerToken": []
30063006
}
30073007
]
3008-
}
3008+
}

tailwind.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
darkMode: ["class"],
66
content: [
77
"src/app/domain/web/{resources,templates}/**/*.{js,jsx,ts,cjs,mjs,tsx,vue,j2,html,htm}",
8-
"{src/ui}/**/*.{js,cjs,mjs,jsx,ts,tsx,vue,j2,html,htm}",
8+
"src/ui/**/*.{js,cjs,mjs,jsx,ts,tsx,vue,j2,html,htm}",
99
],
1010
theme: {
1111
container: {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"noUnusedLocals": true,
2020
"noUnusedParameters": true,
2121
"noFallthroughCasesInSwitch": true,
22-
"baseUrl": "resources",
22+
"baseUrl": "src/ui",
2323
"paths": {
2424
"@/*": ["./*"]
2525
},

0 commit comments

Comments
 (0)