@rexeus/typeweaver 0.0.4 → 0.1.0
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 +5 -5
- package/dist/{acorn-rXlN7gk4.js → acorn-CJ4HNU11.js} +952 -853
- package/dist/angular-wXs0C_R2.js +2626 -0
- package/dist/{babel-DZgCLJ3w.js → babel-DNmSIBHM.js} +3300 -3055
- package/dist/{cli-Cz6q9I7F.js → cli-Cin8VieP.js} +2098 -5180
- package/dist/{estree-B92etQ3n.js → estree-BfVT8G2n.js} +1726 -1743
- package/dist/flow-DgzFy9Js.js +27138 -0
- package/dist/{glimmer-wgjvri6H.js → glimmer-DiXjs4DB.js} +424 -457
- package/dist/{graphql-Cl6ZUrDI.js → graphql-DLJHmbDb.js} +216 -212
- package/dist/{html-D3ugDhTt.js → html-BwjSBi_v.js} +682 -642
- package/dist/index.js +3 -5
- package/dist/{markdown-Nz6Lc3gB.js → markdown-DWIPYE8e.js} +1706 -1665
- package/dist/meriyah-CbAY3E55.js +2603 -0
- package/dist/{postcss-yEOijaXJ.js → postcss-DUOVol6C.js} +1344 -1324
- package/dist/run-cli-with-tsx.js +3 -5
- package/dist/{typescript-Cv79a1Qz.js → typescript-DDNbhgng.js} +6047 -5963
- package/dist/{yaml-DT3qlFoE.js → yaml-Bd8DkW_K.js} +934 -948
- package/package.json +18 -18
- package/dist/angular-D_XFD5k4.js +0 -2531
- package/dist/flow-q2wMXrDa.js +0 -26826
- package/dist/meriyah-DkEqawD_.js +0 -2456
package/README.md
CHANGED
|
@@ -173,7 +173,7 @@ api/definition/
|
|
|
173
173
|
|
|
174
174
|
```typescript
|
|
175
175
|
// api/definition/user/userSchema.ts
|
|
176
|
-
import { z } from "zod
|
|
176
|
+
import { z } from "zod";
|
|
177
177
|
|
|
178
178
|
// General schema for user status
|
|
179
179
|
export const userStatusSchema = z.enum(["ACTIVE", "INACTIVE", "SUSPENDED"]);
|
|
@@ -192,7 +192,7 @@ export const userSchema = z.object({
|
|
|
192
192
|
```typescript
|
|
193
193
|
// api/definition/user/GetUserDefinition.ts
|
|
194
194
|
import { HttpOperationDefinition, HttpMethod, HttpStatusCode } from "@rexeus/typeweaver-core";
|
|
195
|
-
import { z } from "zod
|
|
195
|
+
import { z } from "zod";
|
|
196
196
|
import { sharedResponses } from "../shared/sharedResponses";
|
|
197
197
|
import { userSchema } from "./userSchema";
|
|
198
198
|
import UserNotFoundErrorDefinition from "./errors/UserNotFoundErrorDefinition";
|
|
@@ -228,7 +228,7 @@ export default new HttpOperationDefinition({
|
|
|
228
228
|
```typescript
|
|
229
229
|
// api/definition/user/UpdateUserDefinition.ts
|
|
230
230
|
import { HttpOperationDefinition, HttpMethod, HttpStatusCode } from "@rexeus/typeweaver-core";
|
|
231
|
-
import { z } from "zod
|
|
231
|
+
import { z } from "zod";
|
|
232
232
|
import { sharedResponses } from "../shared/sharedResponses";
|
|
233
233
|
import { userSchema } from "./userSchema";
|
|
234
234
|
import UserNotFoundErrorDefinition from "./errors/UserNotFoundErrorDefinition";
|
|
@@ -270,7 +270,7 @@ export default new HttpOperationDefinition({
|
|
|
270
270
|
|
|
271
271
|
```typescript
|
|
272
272
|
// api/definition/user/errors/UserNotFoundErrorDefinition.ts
|
|
273
|
-
import { z } from "zod
|
|
273
|
+
import { z } from "zod";
|
|
274
274
|
import { NotFoundErrorDefinition } from "../../shared";
|
|
275
275
|
|
|
276
276
|
// - uses the shared NotFoundErrorDefinition as "base" and extends it
|
|
@@ -291,7 +291,7 @@ export default NotFoundErrorDefinition.extend({
|
|
|
291
291
|
```typescript
|
|
292
292
|
// api/definition/user/errors/UserStatusTransitionInvalidErrorDefinition.ts
|
|
293
293
|
import { HttpResponseDefinition, HttpStatusCode } from "@rexeus/typeweaver-core";
|
|
294
|
-
import { z } from "zod
|
|
294
|
+
import { z } from "zod";
|
|
295
295
|
import { userStatusSchema } from "../userSchema";
|
|
296
296
|
|
|
297
297
|
// could also extend the shared ConflictErrorDefinition:
|