@rytass/wms-module-graphql 0.1.2 → 0.1.4

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 CHANGED
@@ -72,6 +72,21 @@ Custom context factories from `gqlOptions.useFactory` are merged with the loader
72
72
 
73
73
  The schema is generated at boot via `autoSchemaFile` (above). Commit the resulting `schema.gql` to your repo if you want downstream codegen (e.g. for `@rytass/wms-module-react`) to consume a stable schema snapshot.
74
74
 
75
+ ## Documentation
76
+
77
+ Full documentation is shipped inside this package under the `docs/` directory (available after `npm install`):
78
+
79
+ | Document | Description |
80
+ |---|---|
81
+ | [`docs/integration-guide.md`](./docs/integration-guide.md) | Step-by-step wiring guide for NestJS + Next.js consumers |
82
+ | [`docs/api-reference.md`](./docs/api-reference.md) | Complete export catalog with signatures and usage examples |
83
+
84
+ GitHub hosted links (always up-to-date):
85
+
86
+ - [Integration Guide — §4 Backend setup](https://github.com/Rytass/WMS-Module/blob/main/docs/integration-guide.md#4-backend-setup-nestjs--graphql--typeorm)
87
+ - [Integration Guide — §13.1 Existing GraphQLModule co-existence](https://github.com/Rytass/WMS-Module/blob/main/docs/integration-guide.md#13-integrating-into-an-existing-nestjs--nextjs-project)
88
+ - [API Reference — @rytass/wms-module-graphql](https://github.com/Rytass/WMS-Module/blob/main/docs/api-reference.md#rytasswms-module-graphql)
89
+
75
90
  ## License
76
91
 
77
92
  MIT
package/docs/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Documentation
2
+
3
+ Reference material for consumers of `@rytass/wms-module-{core,graphql,react}`.
4
+
5
+ ## Contents
6
+
7
+ | Document | Description |
8
+ |------------------------------------------------|---------------------------------------------------------------------------------------------------|
9
+ | [Integration Guide](./integration-guide.md) | Step-by-step instructions for wiring the three packages into a new consumer project (NestJS + Next.js + PostgreSQL). Includes ready-to-paste `_app.tsx`, `app.module.ts`, `next.config.ts`, the 19 Pages Router shell pattern, AuthGuard stub, seed script template, deployment notes, and known issues. |
10
+ | [API Reference](./api-reference.md) | Complete export catalog for all three packages — every NestJS module, TypeORM entity, GraphQL resolver, DTO, React component, hook, and utility, organized by role with source paths and usage examples. Mirrors the actual `src/index.ts` barrel exports of v0.1.2. |
11
+
12
+ ## Quick links
13
+
14
+ - Reference implementation: the maintainers' standalone consumer demo at `~/Downloads/wms-standalone`.
15
+ - This monorepo's `apps/api` (NestJS backend) and `apps/client` (Next.js frontend) are the dogfooded equivalents.
16
+ - Release process: see [`RELEASING.md`](../RELEASING.md).
17
+
18
+ ## Audience
19
+
20
+ | If you want to... | Start at... |
21
+ |---------------------------------------------------------|------------------------------------------------------------------------|
22
+ | Stand up a new WMS consumer from scratch | [Integration Guide section 3](./integration-guide.md#3-quick-start-60-seconds) |
23
+ | Look up a specific export's signature | [API Reference](./api-reference.md) |
24
+ | Understand why the lib needs `transpilePackages` | [Integration Guide section 5.3](./integration-guide.md#53-appsclientnextconfigts) |
25
+ | Replace the `AuthGuard` stub with real auth | [Integration Guide section 8.4](./integration-guide.md#84-real-auth-integration) |
26
+ | Decide between PostgreSQL and SQLite | [Integration Guide section 9](./integration-guide.md#9-database-support-matrix) |
27
+ | Build a custom UI on top of the lib's GraphQL operations| [Integration Guide section 7.3](./integration-guide.md#73-graphql-operations--typed-hooks) |
28
+
29
+ ## Versioning
30
+
31
+ These documents track the **latest published `0.1.x` release**. Anything in `main` that has not yet been released is marked clearly inline; otherwise assume the documented signature matches the current npm-published library.
32
+
33
+ When you upgrade the lib, check each package's `CHANGELOG.md` for breaking changes that may affect the snippets here.