@vharapuendava/psst-tasks-sdk 1.0.6 → 1.0.7

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.
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ export declare const zNewTask: z.ZodObject<{
3
+ title: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export declare const zItem: z.ZodObject<{
6
+ id: z.ZodString;
7
+ name: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export declare const zListItemsData: z.ZodObject<{
10
+ body: z.ZodOptional<z.ZodNever>;
11
+ path: z.ZodOptional<z.ZodNever>;
12
+ query: z.ZodOptional<z.ZodNever>;
13
+ }, z.core.$strip>;
14
+ /**
15
+ * Successful response
16
+ */
17
+ export declare const zListItemsResponse: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodString;
19
+ name: z.ZodString;
20
+ }, z.core.$strip>>;
21
+ export declare const zCreateTaskData: z.ZodObject<{
22
+ body: z.ZodObject<{
23
+ title: z.ZodString;
24
+ }, z.core.$strip>;
25
+ path: z.ZodOptional<z.ZodNever>;
26
+ query: z.ZodOptional<z.ZodNever>;
27
+ }, z.core.$strip>;
28
+ /**
29
+ * Item created
30
+ */
31
+ export declare const zCreateTaskResponse: z.ZodObject<{
32
+ id: z.ZodString;
33
+ name: z.ZodString;
34
+ }, z.core.$strip>;
@@ -0,0 +1,27 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { z } from 'zod';
3
+ export const zNewTask = z.object({
4
+ title: z.string()
5
+ });
6
+ export const zItem = z.object({
7
+ id: z.string(),
8
+ name: z.string()
9
+ });
10
+ export const zListItemsData = z.object({
11
+ body: z.optional(z.never()),
12
+ path: z.optional(z.never()),
13
+ query: z.optional(z.never())
14
+ });
15
+ /**
16
+ * Successful response
17
+ */
18
+ export const zListItemsResponse = z.array(zItem);
19
+ export const zCreateTaskData = z.object({
20
+ body: zNewTask,
21
+ path: z.optional(z.never()),
22
+ query: z.optional(z.never())
23
+ });
24
+ /**
25
+ * Item created
26
+ */
27
+ export const zCreateTaskResponse = zItem;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "@hey-api/openapi-ts": "0.91.0",
4
- "typescript": "^5.9.3"
4
+ "typescript": "^5.9.3",
5
+ "zod": "^4.3.6"
5
6
  },
6
7
  "name": "@vharapuendava/psst-tasks-sdk",
7
- "version": "1.0.6",
8
+ "version": "1.0.7",
8
9
  "files": [
9
10
  "dist/**"
10
11
  ],
@@ -24,6 +25,10 @@
24
25
  "./client": {
25
26
  "types": "./dist/client.gen.d.ts",
26
27
  "default": "./dist/client.gen.js"
28
+ },
29
+ "./zod": {
30
+ "types": "./dist/zodSchemas/zod.gen.d.ts",
31
+ "default": "./dist/zodSchemas/zod.gen.js"
27
32
  }
28
33
  },
29
34
  "publishConfig": {
@@ -36,7 +41,7 @@
36
41
  "type": "module",
37
42
  "scripts": {
38
43
  "gen": "openapi-ts",
39
- "build": "tsc -p tsconfig.json",
44
+ "build": "rm -rf dist && tsc -p tsconfig.json && tsc -p tsconfig.zod.json",
40
45
  "prepublish": "pnpm gen && pnpm build"
41
46
  }
42
47
  }