@marcoturi/fastify-boilerplate 4.2.0 → 4.3.1

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.
Files changed (3) hide show
  1. package/graphql.ts +4 -5
  2. package/package.json +1 -1
  3. package/rest.d.ts +2 -2
package/graphql.ts CHANGED
@@ -66,8 +66,7 @@ export type UserPaginatedResponse = {
66
66
  page: Scalars['Int']['output'];
67
67
  };
68
68
 
69
- export enum UserRole {
70
- Admin = 'admin',
71
- Guest = 'guest',
72
- Moderator = 'moderator'
73
- }
69
+ export type UserRole =
70
+ | 'admin'
71
+ | 'guest'
72
+ | 'moderator';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoturi/fastify-boilerplate",
3
- "version": "4.2.0",
3
+ "version": "4.3.1",
4
4
  "description": "Auto-generated REST (OpenAPI) and GraphQL client types for fastify-boilerplate",
5
5
  "type": "module",
6
6
  "exports": {
package/rest.d.ts CHANGED
@@ -54,8 +54,6 @@ export interface paths {
54
54
  * @example 0
55
55
  */
56
56
  page: number;
57
- data: unknown[];
58
- } & {
59
57
  data: (({
60
58
  /**
61
59
  * Format: uuid
@@ -397,6 +395,8 @@ export interface components {
397
395
  error: string;
398
396
  /** @example YevPQs */
399
397
  correlationId: string;
398
+ /** @example USER_ALREADY_EXISTS */
399
+ reason?: string;
400
400
  /** @description List of field-level validation errors */
401
401
  subErrors?: {
402
402
  /** @example /email */