@marcoturi/fastify-boilerplate 4.0.3 → 4.2.0

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 +16 -8
  2. package/package.json +1 -1
  3. package/rest.d.ts +1 -0
package/graphql.ts CHANGED
@@ -9,21 +9,27 @@ export type Scalars = {
9
9
  Float: { input: number; output: number; }
10
10
  };
11
11
 
12
+ export type CreateUserInput = {
13
+ country: Scalars['String']['input'];
14
+ email: Scalars['String']['input'];
15
+ postalCode: Scalars['String']['input'];
16
+ street: Scalars['String']['input'];
17
+ };
18
+
12
19
  export type Mutation = {
13
20
  __typename?: 'Mutation';
14
- putUser: Scalars['ID']['output'];
21
+ createUser: Scalars['ID']['output'];
22
+ deleteUser: Scalars['Boolean']['output'];
15
23
  };
16
24
 
17
25
 
18
- export type MutationPutUserArgs = {
19
- input: PutUserPayload;
26
+ export type MutationCreateUserArgs = {
27
+ input: CreateUserInput;
20
28
  };
21
29
 
22
- export type PutUserPayload = {
23
- country: Scalars['String']['input'];
24
- email: Scalars['String']['input'];
25
- postalCode: Scalars['String']['input'];
26
- street: Scalars['String']['input'];
30
+
31
+ export type MutationDeleteUserArgs = {
32
+ id: Scalars['ID']['input'];
27
33
  };
28
34
 
29
35
  export type Query = {
@@ -43,11 +49,13 @@ export type QueryFindUsersArgs = {
43
49
  export type User = {
44
50
  __typename?: 'User';
45
51
  country: Scalars['String']['output'];
52
+ createdAt: Scalars['String']['output'];
46
53
  email: Scalars['String']['output'];
47
54
  id: Scalars['ID']['output'];
48
55
  postalCode: Scalars['String']['output'];
49
56
  role: UserRole;
50
57
  street: Scalars['String']['output'];
58
+ updatedAt: Scalars['String']['output'];
51
59
  };
52
60
 
53
61
  export type UserPaginatedResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoturi/fastify-boilerplate",
3
- "version": "4.0.3",
3
+ "version": "4.2.0",
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
@@ -99,6 +99,7 @@ export interface paths {
99
99
  /**
100
100
  * @description User's role
101
101
  * @example guest
102
+ * @enum {unknown}
102
103
  */
103
104
  role: "admin" | "moderator" | "guest";
104
105
  })[];