expo-backend-types 0.4.0-EXPO-248-EB-GrupoEtiqueta.11 → 0.4.0-EXPO-248-EB-GrupoEtiqueta.13
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,19 @@ export interface components {
|
|
228
228
|
backendTokens: {
|
229
229
|
accessToken?: string;
|
230
230
|
refreshToken?: string;
|
231
|
+
expiresIn?: number;
|
231
232
|
};
|
232
233
|
};
|
234
|
+
ErrorDto: {
|
235
|
+
message: string;
|
236
|
+
statusCode: number;
|
237
|
+
error: string;
|
238
|
+
};
|
239
|
+
RefreshResponseDto: {
|
240
|
+
refreshToken: string;
|
241
|
+
accessToken: string;
|
242
|
+
expiresIn: number;
|
243
|
+
};
|
233
244
|
CreateTagDto: {
|
234
245
|
name: string;
|
235
246
|
groupId: string;
|
@@ -506,6 +517,14 @@ export interface operations {
|
|
506
517
|
"application/json": components["schemas"]["LoginResponseDto"];
|
507
518
|
};
|
508
519
|
};
|
520
|
+
401: {
|
521
|
+
headers: {
|
522
|
+
[name: string]: unknown;
|
523
|
+
};
|
524
|
+
content: {
|
525
|
+
"application/json": components["schemas"]["ErrorDto"];
|
526
|
+
};
|
527
|
+
};
|
509
528
|
};
|
510
529
|
};
|
511
530
|
AuthController_refreshToken: {
|
@@ -517,11 +536,13 @@ export interface operations {
|
|
517
536
|
};
|
518
537
|
requestBody?: never;
|
519
538
|
responses: {
|
520
|
-
|
539
|
+
200: {
|
521
540
|
headers: {
|
522
541
|
[name: string]: unknown;
|
523
542
|
};
|
524
|
-
content
|
543
|
+
content: {
|
544
|
+
"application/json": components["schemas"]["RefreshResponseDto"];
|
545
|
+
};
|
525
546
|
};
|
526
547
|
};
|
527
548
|
};
|
@@ -590,7 +611,9 @@ export interface operations {
|
|
590
611
|
headers: {
|
591
612
|
[name: string]: unknown;
|
592
613
|
};
|
593
|
-
content
|
614
|
+
content: {
|
615
|
+
"application/json": components["schemas"]["ErrorDto"];
|
616
|
+
};
|
594
617
|
};
|
595
618
|
};
|
596
619
|
};
|
@@ -617,7 +640,9 @@ export interface operations {
|
|
617
640
|
headers: {
|
618
641
|
[name: string]: unknown;
|
619
642
|
};
|
620
|
-
content
|
643
|
+
content: {
|
644
|
+
"application/json": components["schemas"]["ErrorDto"];
|
645
|
+
};
|
621
646
|
};
|
622
647
|
};
|
623
648
|
};
|
@@ -636,7 +661,9 @@ export interface operations {
|
|
636
661
|
headers: {
|
637
662
|
[name: string]: unknown;
|
638
663
|
};
|
639
|
-
content
|
664
|
+
content: {
|
665
|
+
"application/json": components["schemas"]["ErrorDto"];
|
666
|
+
};
|
640
667
|
};
|
641
668
|
410: {
|
642
669
|
headers: {
|
@@ -675,7 +702,9 @@ export interface operations {
|
|
675
702
|
headers: {
|
676
703
|
[name: string]: unknown;
|
677
704
|
};
|
678
|
-
content
|
705
|
+
content: {
|
706
|
+
"application/json": components["schemas"]["ErrorDto"];
|
707
|
+
};
|
679
708
|
};
|
680
709
|
};
|
681
710
|
};
|
@@ -847,7 +876,9 @@ export interface operations {
|
|
847
876
|
headers: {
|
848
877
|
[name: string]: unknown;
|
849
878
|
};
|
850
|
-
content
|
879
|
+
content: {
|
880
|
+
"application/json": components["schemas"]["ErrorDto"];
|
881
|
+
};
|
851
882
|
};
|
852
883
|
};
|
853
884
|
};
|
@@ -874,7 +905,9 @@ export interface operations {
|
|
874
905
|
headers: {
|
875
906
|
[name: string]: unknown;
|
876
907
|
};
|
877
|
-
content
|
908
|
+
content: {
|
909
|
+
"application/json": components["schemas"]["ErrorDto"];
|
910
|
+
};
|
878
911
|
};
|
879
912
|
};
|
880
913
|
};
|
@@ -905,7 +938,9 @@ export interface operations {
|
|
905
938
|
headers: {
|
906
939
|
[name: string]: unknown;
|
907
940
|
};
|
908
|
-
content
|
941
|
+
content: {
|
942
|
+
"application/json": components["schemas"]["ErrorDto"];
|
943
|
+
};
|
909
944
|
};
|
910
945
|
};
|
911
946
|
};
|