@mgamadeus/ddd-web 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +29 -2
- package/package.json +39 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 mgamadeus
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mgamadeus/ddd-web
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **Status: placeholder (0.0.x).** This release only reserves the package name. The first usable version is 0.1.0.
|
|
4
|
+
|
|
5
|
+
`@mgamadeus/ddd-web` is the frontend counterpart of [mgamadeus/ddd](https://packagist.org/packages/mgamadeus/ddd),
|
|
6
|
+
a PHP framework for domain-driven applications on top of Symfony and Doctrine, distributed via Composer/Packagist.
|
|
7
|
+
Every mgamadeus/ddd backend publishes an OpenAPI document per API audience (e.g. admin, partner, public, client) with a
|
|
8
|
+
shared set of conventions: entity schemas named after their PHP classes, OData-inspired QueryOptions, translatable
|
|
9
|
+
properties, change history, a uniform error format and JWT login with stateless refresh tokens. This package turns
|
|
10
|
+
those conventions into frontend code:
|
|
11
|
+
|
|
12
|
+
- **codegen**: a CLI that reads the backend's OpenAPI document (including the `x-ddd-*` extensions) and generates a
|
|
13
|
+
typed RTK Query SDK: endpoints, React hooks, models and cache tags
|
|
14
|
+
- **query**: builders for DDD QueryOptions (`filters`, `orderBy`, `expand`, `select`, `top`/`skip`, fulltext),
|
|
15
|
+
matching the backend's validation rules
|
|
16
|
+
- **api**: a base query for RTK Query with bearer auth, token refresh with a single retry, DDD error normalisation and
|
|
17
|
+
file downloads
|
|
18
|
+
- **auth**: token-pair utilities and a pluggable storage adapter
|
|
19
|
+
- **contract**: TypeScript types for the DDD wire format
|
|
20
|
+
|
|
21
|
+
It contains no UI components and no domain logic; apps bring their own design system and business screens.
|
|
22
|
+
Requires a backend on mgamadeus/ddd with OpenAPI contract version ≥ 1 (shipped with the `x-ddd-*` extensions).
|
|
23
|
+
|
|
24
|
+
## Development
|
|
25
|
+
|
|
26
|
+
pnpm only (version pinned in `package.json` → `packageManager`; enable with `corepack enable`).
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgamadeus/ddd-web",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "TypeScript web client for backends built with mgamadeus/ddd, the DDD entity framework for Symfony and Doctrine (Composer/Packagist). Generates a typed RTK Query SDK from the backend's OpenAPI document, builds DDD QueryOptions (filters, orderBy, expand, select, paging) and handles JWT auth with token refresh.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ddd",
|
|
7
|
+
"mgamadeus",
|
|
8
|
+
"symfony",
|
|
9
|
+
"doctrine",
|
|
10
|
+
"openapi",
|
|
11
|
+
"rtk-query",
|
|
12
|
+
"redux-toolkit",
|
|
13
|
+
"codegen",
|
|
14
|
+
"sdk-generator",
|
|
15
|
+
"odata",
|
|
16
|
+
"query-options",
|
|
17
|
+
"jwt"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://github.com/mgamadeus/ddd-web#readme",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/mgamadeus/ddd-web/issues"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/mgamadeus/ddd-web.git"
|
|
26
|
+
},
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"author": "Marius-Eugen Gerdan <marius@gerdan.net>",
|
|
29
|
+
"type": "module",
|
|
30
|
+
"files": [
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
33
|
+
],
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=20"
|
|
36
|
+
},
|
|
37
|
+
"packageManager": "pnpm@11.15.1",
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
}
|
|
41
|
+
}
|