@abella-bilhalba-engenharia/api-client 0.0.13 → 0.0.14

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
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ adminContract: () => adminContract,
33
34
  authContract: () => authContract,
34
35
  authorizationHeader: () => authorizationHeader,
35
36
  commonResponses: () => commonResponses,
@@ -145,6 +146,7 @@ var contract = c3.router(
145
146
  );
146
147
  // Annotate the CommonJS export names for ESM import in node:
147
148
  0 && (module.exports = {
149
+ adminContract,
148
150
  authContract,
149
151
  authorizationHeader,
150
152
  commonResponses,
package/dist/index.d.cts CHANGED
@@ -93,6 +93,29 @@ declare const authContract: {
93
93
  };
94
94
  };
95
95
 
96
+ declare const adminContract: {
97
+ login: {
98
+ query: z__default.ZodObject<{
99
+ page: z__default.ZodOptional<z__default.ZodNumber>;
100
+ perPage: z__default.ZodOptional<z__default.ZodNumber>;
101
+ }, z__default.core.$strip>;
102
+ summary: "List all clients";
103
+ method: "GET";
104
+ headers: z__default.ZodString;
105
+ path: "/admin/clients";
106
+ responses: {
107
+ 200: z__default.ZodArray<z__default.ZodObject<{
108
+ name: z__default.ZodString;
109
+ email: z__default.ZodString;
110
+ roles: z__default.ZodArray<z__default.ZodEnum<{
111
+ ROLE_USER: "ROLE_USER";
112
+ ROLE_ADMIN: "ROLE_ADMIN";
113
+ }>>;
114
+ }, z__default.core.$strip>>;
115
+ };
116
+ };
117
+ };
118
+
96
119
  declare const contract: {
97
120
  auth: {
98
121
  login: {
@@ -188,4 +211,4 @@ declare const contract: {
188
211
  };
189
212
  };
190
213
 
191
- export { type CommonResponseType, type CommonResponsesType, authContract, authorizationHeader, commonResponses, commonResponsesBodySchema, contract };
214
+ export { type CommonResponseType, type CommonResponsesType, adminContract, authContract, authorizationHeader, commonResponses, commonResponsesBodySchema, contract };
package/dist/index.d.ts CHANGED
@@ -93,6 +93,29 @@ declare const authContract: {
93
93
  };
94
94
  };
95
95
 
96
+ declare const adminContract: {
97
+ login: {
98
+ query: z__default.ZodObject<{
99
+ page: z__default.ZodOptional<z__default.ZodNumber>;
100
+ perPage: z__default.ZodOptional<z__default.ZodNumber>;
101
+ }, z__default.core.$strip>;
102
+ summary: "List all clients";
103
+ method: "GET";
104
+ headers: z__default.ZodString;
105
+ path: "/admin/clients";
106
+ responses: {
107
+ 200: z__default.ZodArray<z__default.ZodObject<{
108
+ name: z__default.ZodString;
109
+ email: z__default.ZodString;
110
+ roles: z__default.ZodArray<z__default.ZodEnum<{
111
+ ROLE_USER: "ROLE_USER";
112
+ ROLE_ADMIN: "ROLE_ADMIN";
113
+ }>>;
114
+ }, z__default.core.$strip>>;
115
+ };
116
+ };
117
+ };
118
+
96
119
  declare const contract: {
97
120
  auth: {
98
121
  login: {
@@ -188,4 +211,4 @@ declare const contract: {
188
211
  };
189
212
  };
190
213
 
191
- export { type CommonResponseType, type CommonResponsesType, authContract, authorizationHeader, commonResponses, commonResponsesBodySchema, contract };
214
+ export { type CommonResponseType, type CommonResponsesType, adminContract, authContract, authorizationHeader, commonResponses, commonResponsesBodySchema, contract };
package/dist/index.js CHANGED
@@ -104,6 +104,7 @@ var contract = c3.router(
104
104
  }
105
105
  );
106
106
  export {
107
+ adminContract,
107
108
  authContract,
108
109
  authorizationHeader,
109
110
  commonResponses,
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.13",
5
+ "version": "0.0.14",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "types": "./dist/index.d.ts",