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

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
@@ -131,6 +131,28 @@ var adminContract = {
131
131
  })
132
132
  },
133
133
  summary: "List all clients"
134
+ },
135
+ store: {
136
+ method: "POST",
137
+ path: "/clients",
138
+ headers: import_zod3.default.object({
139
+ authorization: authorizationHeader
140
+ }),
141
+ body: import_zod3.default.object({
142
+ name: import_zod3.default.string(),
143
+ email: import_zod3.default.email(),
144
+ password: import_zod3.default.string().min(8).max(128)
145
+ }),
146
+ responses: {
147
+ 201: import_zod3.default.object({
148
+ data: import_zod3.default.object({
149
+ name: import_zod3.default.string(),
150
+ email: import_zod3.default.email(),
151
+ id: import_zod3.default.uuidv4()
152
+ })
153
+ })
154
+ },
155
+ summary: "Create a new client"
134
156
  }
135
157
  })
136
158
  };
package/dist/index.d.cts CHANGED
@@ -115,6 +115,28 @@ declare const adminContract: {
115
115
  }, z__default.core.$strip>;
116
116
  };
117
117
  };
118
+ store: {
119
+ summary: "Create a new client";
120
+ method: "POST";
121
+ body: z__default.ZodObject<{
122
+ name: z__default.ZodString;
123
+ email: z__default.ZodEmail;
124
+ password: z__default.ZodString;
125
+ }, z__default.core.$strip>;
126
+ headers: z__default.ZodObject<{
127
+ authorization: z__default.ZodString;
128
+ }, z__default.core.$strip>;
129
+ path: "/clients";
130
+ responses: {
131
+ 201: z__default.ZodObject<{
132
+ data: z__default.ZodObject<{
133
+ name: z__default.ZodString;
134
+ email: z__default.ZodEmail;
135
+ id: z__default.ZodUUID;
136
+ }, z__default.core.$strip>;
137
+ }, z__default.core.$strip>;
138
+ };
139
+ };
118
140
  };
119
141
  };
120
142
 
@@ -211,6 +233,55 @@ declare const contract: {
211
233
  };
212
234
  strictStatusCodes: true;
213
235
  };
236
+ store: {
237
+ summary: "Create a new client";
238
+ method: "POST";
239
+ body: z.ZodObject<{
240
+ name: z.ZodString;
241
+ email: z.ZodEmail;
242
+ password: z.ZodString;
243
+ }, zod_v4_core.$strip>;
244
+ headers: z.ZodObject<{
245
+ authorization: z.ZodString;
246
+ }, zod_v4_core.$strip>;
247
+ path: "/clients";
248
+ responses: {
249
+ 401: z.ZodObject<{
250
+ error: z.ZodObject<{
251
+ type: z.ZodLiteral<"UNAUTHORIZED">;
252
+ message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
253
+ }, zod_v4_core.$strip>;
254
+ }, zod_v4_core.$strip>;
255
+ 404: z.ZodObject<{
256
+ error: z.ZodObject<{
257
+ type: z.ZodLiteral<"ENTITY_NOT_FOUND">;
258
+ entity: z.ZodString;
259
+ message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
260
+ }, zod_v4_core.$strip>;
261
+ }, zod_v4_core.$strip>;
262
+ 409: z.ZodObject<{
263
+ error: z.ZodObject<{
264
+ type: z.ZodLiteral<"ENTITY_ALREADY_EXISTS">;
265
+ entity: z.ZodString;
266
+ message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
267
+ }, zod_v4_core.$strip>;
268
+ }, zod_v4_core.$strip>;
269
+ 500: z.ZodObject<{
270
+ error: z.ZodObject<{
271
+ type: z.ZodLiteral<"INTERNAL_SERVER_ERROR">;
272
+ message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
273
+ }, zod_v4_core.$strip>;
274
+ }, zod_v4_core.$strip>;
275
+ 201: z.ZodObject<{
276
+ data: z.ZodObject<{
277
+ name: z.ZodString;
278
+ email: z.ZodEmail;
279
+ id: z.ZodUUID;
280
+ }, zod_v4_core.$strip>;
281
+ }, zod_v4_core.$strip>;
282
+ };
283
+ strictStatusCodes: true;
284
+ };
214
285
  };
215
286
  };
216
287
  };
package/dist/index.d.ts CHANGED
@@ -115,6 +115,28 @@ declare const adminContract: {
115
115
  }, z__default.core.$strip>;
116
116
  };
117
117
  };
118
+ store: {
119
+ summary: "Create a new client";
120
+ method: "POST";
121
+ body: z__default.ZodObject<{
122
+ name: z__default.ZodString;
123
+ email: z__default.ZodEmail;
124
+ password: z__default.ZodString;
125
+ }, z__default.core.$strip>;
126
+ headers: z__default.ZodObject<{
127
+ authorization: z__default.ZodString;
128
+ }, z__default.core.$strip>;
129
+ path: "/clients";
130
+ responses: {
131
+ 201: z__default.ZodObject<{
132
+ data: z__default.ZodObject<{
133
+ name: z__default.ZodString;
134
+ email: z__default.ZodEmail;
135
+ id: z__default.ZodUUID;
136
+ }, z__default.core.$strip>;
137
+ }, z__default.core.$strip>;
138
+ };
139
+ };
118
140
  };
119
141
  };
120
142
 
@@ -211,6 +233,55 @@ declare const contract: {
211
233
  };
212
234
  strictStatusCodes: true;
213
235
  };
236
+ store: {
237
+ summary: "Create a new client";
238
+ method: "POST";
239
+ body: z.ZodObject<{
240
+ name: z.ZodString;
241
+ email: z.ZodEmail;
242
+ password: z.ZodString;
243
+ }, zod_v4_core.$strip>;
244
+ headers: z.ZodObject<{
245
+ authorization: z.ZodString;
246
+ }, zod_v4_core.$strip>;
247
+ path: "/clients";
248
+ responses: {
249
+ 401: z.ZodObject<{
250
+ error: z.ZodObject<{
251
+ type: z.ZodLiteral<"UNAUTHORIZED">;
252
+ message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
253
+ }, zod_v4_core.$strip>;
254
+ }, zod_v4_core.$strip>;
255
+ 404: z.ZodObject<{
256
+ error: z.ZodObject<{
257
+ type: z.ZodLiteral<"ENTITY_NOT_FOUND">;
258
+ entity: z.ZodString;
259
+ message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
260
+ }, zod_v4_core.$strip>;
261
+ }, zod_v4_core.$strip>;
262
+ 409: z.ZodObject<{
263
+ error: z.ZodObject<{
264
+ type: z.ZodLiteral<"ENTITY_ALREADY_EXISTS">;
265
+ entity: z.ZodString;
266
+ message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
267
+ }, zod_v4_core.$strip>;
268
+ }, zod_v4_core.$strip>;
269
+ 500: z.ZodObject<{
270
+ error: z.ZodObject<{
271
+ type: z.ZodLiteral<"INTERNAL_SERVER_ERROR">;
272
+ message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
273
+ }, zod_v4_core.$strip>;
274
+ }, zod_v4_core.$strip>;
275
+ 201: z.ZodObject<{
276
+ data: z.ZodObject<{
277
+ name: z.ZodString;
278
+ email: z.ZodEmail;
279
+ id: z.ZodUUID;
280
+ }, zod_v4_core.$strip>;
281
+ }, zod_v4_core.$strip>;
282
+ };
283
+ strictStatusCodes: true;
284
+ };
214
285
  };
215
286
  };
216
287
  };
package/dist/index.js CHANGED
@@ -90,6 +90,28 @@ var adminContract = {
90
90
  })
91
91
  },
92
92
  summary: "List all clients"
93
+ },
94
+ store: {
95
+ method: "POST",
96
+ path: "/clients",
97
+ headers: z3.object({
98
+ authorization: authorizationHeader
99
+ }),
100
+ body: z3.object({
101
+ name: z3.string(),
102
+ email: z3.email(),
103
+ password: z3.string().min(8).max(128)
104
+ }),
105
+ responses: {
106
+ 201: z3.object({
107
+ data: z3.object({
108
+ name: z3.string(),
109
+ email: z3.email(),
110
+ id: z3.uuidv4()
111
+ })
112
+ })
113
+ },
114
+ summary: "Create a new client"
93
115
  }
94
116
  })
95
117
  };
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.20",
5
+ "version": "0.0.23",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "types": "./dist/index.d.ts",