expo-backend-types 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +5 -2
  2. package/types/schema.d.ts +57 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -31,6 +31,8 @@
31
31
  "prepublishOnly": "npm run ci"
32
32
  },
33
33
  "dependencies": {
34
+ "@anatine/zod-nestjs": "^2.0.9",
35
+ "@anatine/zod-openapi": "^2.2.6",
34
36
  "@nestjs/common": "^10.0.0",
35
37
  "@nestjs/config": "^3.2.3",
36
38
  "@nestjs/core": "^10.0.0",
@@ -40,6 +42,7 @@
40
42
  "@prisma/client": "^5.14.0",
41
43
  "bcrypt": "^5.1.1",
42
44
  "json-to-pretty-yaml": "^1.2.2",
45
+ "openapi3-ts": "^4.4.0",
43
46
  "reflect-metadata": "^0.2.0",
44
47
  "rxjs": "^7.8.1",
45
48
  "zod": "^3.23.8"
@@ -107,4 +110,4 @@
107
110
  "git add"
108
111
  ]
109
112
  }
110
- }
113
+ }
package/types/schema.d.ts CHANGED
@@ -55,7 +55,44 @@ export interface paths {
55
55
  }
56
56
  export type webhooks = Record<string, never>;
57
57
  export interface components {
58
- schemas: never;
58
+ schemas: {
59
+ RegisterDto: {
60
+ username: string;
61
+ password: string;
62
+ /** @default false */
63
+ isAdmin: boolean;
64
+ };
65
+ RegisterResponseDto: {
66
+ username: string;
67
+ /** @default false */
68
+ isAdmin: boolean;
69
+ };
70
+ LoginDto: {
71
+ username: string;
72
+ password: string;
73
+ };
74
+ LoginResponseDto: {
75
+ user: {
76
+ /** Format: uuid */
77
+ id?: string;
78
+ username?: string;
79
+ /** @default false */
80
+ isAdmin: boolean;
81
+ /** Format: date-time */
82
+ created_at?: string;
83
+ /** Format: date-time */
84
+ updated_at?: string;
85
+ /** @default false */
86
+ filtroBaseActivo: boolean;
87
+ /** @default [] */
88
+ fcmToken: string[];
89
+ };
90
+ backendTokens: {
91
+ accessToken?: string;
92
+ refreshToken?: string;
93
+ };
94
+ };
95
+ };
59
96
  responses: never;
60
97
  parameters: never;
61
98
  requestBodies: never;
@@ -71,13 +108,20 @@ export interface operations {
71
108
  path?: never;
72
109
  cookie?: never;
73
110
  };
74
- requestBody?: never;
111
+ requestBody: {
112
+ content: {
113
+ "application/json": components["schemas"]["RegisterDto"];
114
+ };
115
+ };
75
116
  responses: {
117
+ /** @description Cuenta creada */
76
118
  201: {
77
119
  headers: {
78
120
  [name: string]: unknown;
79
121
  };
80
- content?: never;
122
+ content: {
123
+ "application/json": components["schemas"]["RegisterResponseDto"];
124
+ };
81
125
  };
82
126
  };
83
127
  };
@@ -88,13 +132,20 @@ export interface operations {
88
132
  path?: never;
89
133
  cookie?: never;
90
134
  };
91
- requestBody?: never;
135
+ requestBody: {
136
+ content: {
137
+ "application/json": components["schemas"]["LoginDto"];
138
+ };
139
+ };
92
140
  responses: {
93
- 201: {
141
+ /** @description Cuenta creada */
142
+ 200: {
94
143
  headers: {
95
144
  [name: string]: unknown;
96
145
  };
97
- content?: never;
146
+ content: {
147
+ "application/json": components["schemas"]["LoginResponseDto"];
148
+ };
98
149
  };
99
150
  };
100
151
  };