expo-backend-types 0.4.0-EXPO-248-EB-GrupoEtiqueta.11 → 0.4.0-EXPO-248-EB-GrupoEtiqueta.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -63,12 +63,15 @@ export declare const loginResponseSchema: z.ZodObject<{
|
|
63
63
|
backendTokens: z.ZodObject<{
|
64
64
|
accessToken: z.ZodString;
|
65
65
|
refreshToken: z.ZodString;
|
66
|
+
expiresIn: z.ZodNumber;
|
66
67
|
}, "strip", z.ZodTypeAny, {
|
67
68
|
accessToken: string;
|
68
69
|
refreshToken: string;
|
70
|
+
expiresIn: number;
|
69
71
|
}, {
|
70
72
|
accessToken: string;
|
71
73
|
refreshToken: string;
|
74
|
+
expiresIn: number;
|
72
75
|
}>;
|
73
76
|
}, "strip", z.ZodTypeAny, {
|
74
77
|
user: {
|
@@ -83,6 +86,7 @@ export declare const loginResponseSchema: z.ZodObject<{
|
|
83
86
|
backendTokens: {
|
84
87
|
accessToken: string;
|
85
88
|
refreshToken: string;
|
89
|
+
expiresIn: number;
|
86
90
|
};
|
87
91
|
}, {
|
88
92
|
user: {
|
@@ -97,6 +101,7 @@ export declare const loginResponseSchema: z.ZodObject<{
|
|
97
101
|
backendTokens: {
|
98
102
|
accessToken: string;
|
99
103
|
refreshToken: string;
|
104
|
+
expiresIn: number;
|
100
105
|
};
|
101
106
|
}>;
|
102
107
|
declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
@@ -131,12 +136,15 @@ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
131
136
|
backendTokens: z.ZodObject<{
|
132
137
|
accessToken: z.ZodString;
|
133
138
|
refreshToken: z.ZodString;
|
139
|
+
expiresIn: z.ZodNumber;
|
134
140
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
135
141
|
accessToken: string;
|
136
142
|
refreshToken: string;
|
143
|
+
expiresIn: number;
|
137
144
|
}, {
|
138
145
|
accessToken: string;
|
139
146
|
refreshToken: string;
|
147
|
+
expiresIn: number;
|
140
148
|
}>;
|
141
149
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
142
150
|
user: {
|
@@ -151,6 +159,7 @@ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
151
159
|
backendTokens: {
|
152
160
|
accessToken: string;
|
153
161
|
refreshToken: string;
|
162
|
+
expiresIn: number;
|
154
163
|
};
|
155
164
|
}, {
|
156
165
|
user: {
|
@@ -165,6 +174,7 @@ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
165
174
|
backendTokens: {
|
166
175
|
accessToken: string;
|
167
176
|
refreshToken: string;
|
177
|
+
expiresIn: number;
|
168
178
|
};
|
169
179
|
}>>;
|
170
180
|
export declare class LoginResponseDto extends LoginResponseDto_base {
|
@@ -21,6 +21,7 @@ exports.loginResponseSchema = zod_1.default.object({
|
|
21
21
|
backendTokens: zod_1.default.object({
|
22
22
|
accessToken: zod_1.default.string(),
|
23
23
|
refreshToken: zod_1.default.string(),
|
24
|
+
expiresIn: zod_1.default.number(),
|
24
25
|
}),
|
25
26
|
});
|
26
27
|
class LoginResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.loginResponseSchema) {
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const refreshResponseSchema: z.ZodObject<{
|
3
|
+
refreshToken: z.ZodString;
|
4
|
+
accessToken: z.ZodString;
|
5
|
+
expiresIn: z.ZodNumber;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
accessToken: string;
|
8
|
+
refreshToken: string;
|
9
|
+
expiresIn: number;
|
10
|
+
}, {
|
11
|
+
accessToken: string;
|
12
|
+
refreshToken: string;
|
13
|
+
expiresIn: number;
|
14
|
+
}>;
|
15
|
+
declare const RefreshResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
16
|
+
refreshToken: z.ZodString;
|
17
|
+
accessToken: z.ZodString;
|
18
|
+
expiresIn: z.ZodNumber;
|
19
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
20
|
+
accessToken: string;
|
21
|
+
refreshToken: string;
|
22
|
+
expiresIn: number;
|
23
|
+
}, {
|
24
|
+
accessToken: string;
|
25
|
+
refreshToken: string;
|
26
|
+
expiresIn: number;
|
27
|
+
}>>;
|
28
|
+
export declare class RefreshResponseDto extends RefreshResponseDto_base {
|
29
|
+
}
|
30
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.RefreshResponseDto = exports.refreshResponseSchema = void 0;
|
7
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
exports.refreshResponseSchema = zod_1.default.object({
|
10
|
+
refreshToken: zod_1.default.string(),
|
11
|
+
accessToken: zod_1.default.string(),
|
12
|
+
expiresIn: zod_1.default.number(),
|
13
|
+
});
|
14
|
+
class RefreshResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.refreshResponseSchema) {
|
15
|
+
}
|
16
|
+
exports.RefreshResponseDto = RefreshResponseDto;
|
17
|
+
//# sourceMappingURL=refresh.dto.js.map
|
package/dist/types/schema.d.ts
CHANGED
@@ -228,8 +228,14 @@ export interface components {
|
|
228
228
|
backendTokens: {
|
229
229
|
accessToken?: string;
|
230
230
|
refreshToken?: string;
|
231
|
+
expiresIn?: number;
|
231
232
|
};
|
232
233
|
};
|
234
|
+
RefreshResponseDto: {
|
235
|
+
refreshToken: string;
|
236
|
+
accessToken: string;
|
237
|
+
expiresIn: number;
|
238
|
+
};
|
233
239
|
CreateTagDto: {
|
234
240
|
name: string;
|
235
241
|
groupId: string;
|
@@ -517,11 +523,13 @@ export interface operations {
|
|
517
523
|
};
|
518
524
|
requestBody?: never;
|
519
525
|
responses: {
|
520
|
-
|
526
|
+
200: {
|
521
527
|
headers: {
|
522
528
|
[name: string]: unknown;
|
523
529
|
};
|
524
|
-
content
|
530
|
+
content: {
|
531
|
+
"application/json": components["schemas"]["RefreshResponseDto"];
|
532
|
+
};
|
525
533
|
};
|
526
534
|
};
|
527
535
|
};
|