@marcoturi/fastify-boilerplate 4.1.0 → 4.3.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.
- package/graphql.ts +20 -13
- package/package.json +1 -1
- package/rest.d.ts +3 -2
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
|
-
|
|
21
|
+
createUser: Scalars['ID']['output'];
|
|
22
|
+
deleteUser: Scalars['Boolean']['output'];
|
|
15
23
|
};
|
|
16
24
|
|
|
17
25
|
|
|
18
|
-
export type
|
|
19
|
-
input:
|
|
26
|
+
export type MutationCreateUserArgs = {
|
|
27
|
+
input: CreateUserInput;
|
|
20
28
|
};
|
|
21
29
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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 = {
|
|
@@ -58,8 +66,7 @@ export type UserPaginatedResponse = {
|
|
|
58
66
|
page: Scalars['Int']['output'];
|
|
59
67
|
};
|
|
60
68
|
|
|
61
|
-
export
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
69
|
+
export type UserRole =
|
|
70
|
+
| 'admin'
|
|
71
|
+
| 'guest'
|
|
72
|
+
| 'moderator';
|
package/package.json
CHANGED
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
|
|
@@ -99,6 +97,7 @@ export interface paths {
|
|
|
99
97
|
/**
|
|
100
98
|
* @description User's role
|
|
101
99
|
* @example guest
|
|
100
|
+
* @enum {unknown}
|
|
102
101
|
*/
|
|
103
102
|
role: "admin" | "moderator" | "guest";
|
|
104
103
|
})[];
|
|
@@ -396,6 +395,8 @@ export interface components {
|
|
|
396
395
|
error: string;
|
|
397
396
|
/** @example YevPQs */
|
|
398
397
|
correlationId: string;
|
|
398
|
+
/** @example USER_ALREADY_EXISTS */
|
|
399
|
+
reason?: string;
|
|
399
400
|
/** @description List of field-level validation errors */
|
|
400
401
|
subErrors?: {
|
|
401
402
|
/** @example /email */
|