@abella-bilhalba-engenharia/api-client 0.0.19 → 0.0.20

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/dist/index.cjs CHANGED
@@ -113,9 +113,9 @@ var adminContract = {
113
113
  list: {
114
114
  method: "GET",
115
115
  path: "/clients",
116
- headers: {
117
- token: authorizationHeader
118
- },
116
+ headers: import_zod3.default.object({
117
+ authorization: authorizationHeader
118
+ }),
119
119
  query: import_zod3.default.object({
120
120
  page: import_zod3.default.number().positive().optional(),
121
121
  perPage: import_zod3.default.number().positive().optional()
@@ -124,7 +124,8 @@ var adminContract = {
124
124
  200: import_zod3.default.object({
125
125
  data: import_zod3.default.array(
126
126
  import_zod3.default.object({
127
- name: import_zod3.default.string()
127
+ name: import_zod3.default.string(),
128
+ id: import_zod3.default.uuidv4()
128
129
  })
129
130
  )
130
131
  })
package/dist/index.d.cts CHANGED
@@ -102,14 +102,15 @@ declare const adminContract: {
102
102
  }, z__default.core.$strip>;
103
103
  summary: "List all clients";
104
104
  method: "GET";
105
- headers: {
106
- token: z__default.ZodString;
107
- };
105
+ headers: z__default.ZodObject<{
106
+ authorization: z__default.ZodString;
107
+ }, z__default.core.$strip>;
108
108
  path: "/clients";
109
109
  responses: {
110
110
  200: z__default.ZodObject<{
111
111
  data: z__default.ZodArray<z__default.ZodObject<{
112
112
  name: z__default.ZodString;
113
+ id: z__default.ZodUUID;
113
114
  }, z__default.core.$strip>>;
114
115
  }, z__default.core.$strip>;
115
116
  };
@@ -170,9 +171,9 @@ declare const contract: {
170
171
  }, zod_v4_core.$strip>;
171
172
  summary: "List all clients";
172
173
  method: "GET";
173
- headers: {
174
- token: z.ZodString;
175
- };
174
+ headers: z.ZodObject<{
175
+ authorization: z.ZodString;
176
+ }, zod_v4_core.$strip>;
176
177
  path: "/clients";
177
178
  responses: {
178
179
  401: z.ZodObject<{
@@ -204,6 +205,7 @@ declare const contract: {
204
205
  200: z.ZodObject<{
205
206
  data: z.ZodArray<z.ZodObject<{
206
207
  name: z.ZodString;
208
+ id: z.ZodUUID;
207
209
  }, zod_v4_core.$strip>>;
208
210
  }, zod_v4_core.$strip>;
209
211
  };
package/dist/index.d.ts CHANGED
@@ -102,14 +102,15 @@ declare const adminContract: {
102
102
  }, z__default.core.$strip>;
103
103
  summary: "List all clients";
104
104
  method: "GET";
105
- headers: {
106
- token: z__default.ZodString;
107
- };
105
+ headers: z__default.ZodObject<{
106
+ authorization: z__default.ZodString;
107
+ }, z__default.core.$strip>;
108
108
  path: "/clients";
109
109
  responses: {
110
110
  200: z__default.ZodObject<{
111
111
  data: z__default.ZodArray<z__default.ZodObject<{
112
112
  name: z__default.ZodString;
113
+ id: z__default.ZodUUID;
113
114
  }, z__default.core.$strip>>;
114
115
  }, z__default.core.$strip>;
115
116
  };
@@ -170,9 +171,9 @@ declare const contract: {
170
171
  }, zod_v4_core.$strip>;
171
172
  summary: "List all clients";
172
173
  method: "GET";
173
- headers: {
174
- token: z.ZodString;
175
- };
174
+ headers: z.ZodObject<{
175
+ authorization: z.ZodString;
176
+ }, zod_v4_core.$strip>;
176
177
  path: "/clients";
177
178
  responses: {
178
179
  401: z.ZodObject<{
@@ -204,6 +205,7 @@ declare const contract: {
204
205
  200: z.ZodObject<{
205
206
  data: z.ZodArray<z.ZodObject<{
206
207
  name: z.ZodString;
208
+ id: z.ZodUUID;
207
209
  }, zod_v4_core.$strip>>;
208
210
  }, zod_v4_core.$strip>;
209
211
  };
package/dist/index.js CHANGED
@@ -72,9 +72,9 @@ var adminContract = {
72
72
  list: {
73
73
  method: "GET",
74
74
  path: "/clients",
75
- headers: {
76
- token: authorizationHeader
77
- },
75
+ headers: z3.object({
76
+ authorization: authorizationHeader
77
+ }),
78
78
  query: z3.object({
79
79
  page: z3.number().positive().optional(),
80
80
  perPage: z3.number().positive().optional()
@@ -83,7 +83,8 @@ var adminContract = {
83
83
  200: z3.object({
84
84
  data: z3.array(
85
85
  z3.object({
86
- name: z3.string()
86
+ name: z3.string(),
87
+ id: z3.uuidv4()
87
88
  })
88
89
  )
89
90
  })
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@abella-bilhalba-engenharia/api-client",
3
3
  "description": "Type-safe Client for Abella Bilhalba Engenharia API.",
4
4
  "author": "TheDevick",
5
- "version": "0.0.19",
5
+ "version": "0.0.20",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "types": "./dist/index.d.ts",