expo-backend-types 0.33.0 → 0.34.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/dist/src/exports.d.ts +3 -0
- package/dist/src/exports.js +3 -0
- package/dist/src/i18n/es.d.ts +20 -0
- package/dist/src/i18n/es.js +20 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/image/constants.d.ts +5 -0
- package/dist/src/image/constants.js +9 -0
- package/dist/src/location/dto/find-all-location.dto.js +2 -2
- package/dist/src/location/exports.d.ts +0 -1
- package/dist/src/location/exports.js +0 -1
- package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
- package/dist/src/message/dto/non-read-messages.dto.js +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
- package/dist/src/mi-expo/dto/get-me.dto.d.ts +337 -0
- package/dist/src/mi-expo/dto/get-me.dto.js +16 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +311 -0
- package/dist/src/mi-expo/dto/login-with-phone.dto.js +29 -0
- package/dist/src/mi-expo/dto/login.dto.d.ts +327 -0
- package/dist/src/mi-expo/dto/login.dto.js +31 -0
- package/dist/src/mi-expo/dto/update-me.dto.d.ts +352 -0
- package/dist/src/mi-expo/dto/update-me.dto.js +31 -0
- package/dist/src/mi-expo/exports.d.ts +4 -0
- package/dist/src/mi-expo/exports.js +21 -0
- package/dist/src/otp/constants.d.ts +2 -0
- package/dist/src/otp/constants.js +6 -0
- package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
- package/dist/src/otp/dto/send-otp.dto.js +35 -0
- package/dist/src/otp/dto/verify-otp.dto.d.ts +455 -0
- package/dist/src/otp/dto/verify-otp.dto.js +46 -0
- package/dist/src/otp/exports.d.ts +2 -0
- package/dist/src/otp/exports.js +19 -0
- package/dist/src/prisma/constants.d.ts +1 -0
- package/dist/src/prisma/constants.js +5 -0
- package/dist/src/profile/dto/create-profile.dto.d.ts +48 -14
- package/dist/src/profile/dto/create-profile.dto.js +9 -7
- package/dist/src/profile/dto/delete-profile.dto.d.ts +30 -6
- package/dist/src/profile/dto/delete-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +75 -11
- package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +32 -13
- package/dist/src/profile/dto/find-by-id-profile.dto.js +7 -5
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +30 -6
- package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
- package/dist/src/profile/dto/find-trash.dto.js +2 -2
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +47 -7
- package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
- package/dist/src/profile/dto/profile.dto.d.ts +44 -30
- package/dist/src/profile/dto/profile.dto.js +6 -63
- package/dist/src/profile/dto/update-profile.dto.d.ts +54 -12
- package/dist/src/profile/dto/update-profile.dto.js +9 -6
- package/dist/src/schema/exports.d.ts +2 -0
- package/dist/src/schema/exports.js +19 -0
- package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
- package/dist/src/schema/profile.schema.d.ts +74 -0
- package/dist/src/schema/profile.schema.js +133 -0
- package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -4
- package/dist/src/shared/dto-modification/zod-without-dates.js +8 -0
- package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +47 -7
- package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +47 -7
- package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
- package/dist/src/ticket/constants.d.ts +16 -0
- package/dist/src/ticket/constants.js +272 -0
- package/dist/src/webhook/constants.d.ts +1 -0
- package/dist/src/webhook/constants.js +5 -0
- package/dist/types/prisma-schema/edge.js +38 -24
- package/dist/types/prisma-schema/index-browser.js +18 -9
- package/dist/types/prisma-schema/index.d.ts +4093 -456
- package/dist/types/prisma-schema/index.js +38 -24
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +8 -2
- package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
- package/dist/types/prisma-schema/runtime/edge.js +18 -18
- package/dist/types/prisma-schema/runtime/index-browser.d.ts +3 -1
- package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
- package/dist/types/prisma-schema/runtime/library.d.ts +205 -153
- package/dist/types/prisma-schema/runtime/library.js +55 -55
- package/dist/types/prisma-schema/runtime/react-native.js +26 -26
- package/dist/types/prisma-schema/runtime/wasm.js +17 -17
- package/dist/types/prisma-schema/schema.prisma +22 -1
- package/dist/types/prisma-schema/wasm.js +18 -9
- package/dist/types/schema.d.ts +506 -2
- package/package.json +41 -40
- /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
@@ -0,0 +1,311 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const loginWithPhoneSchema: z.ZodObject<{
|
3
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
phoneNumber: string;
|
6
|
+
}, {
|
7
|
+
phoneNumber: string;
|
8
|
+
}>;
|
9
|
+
declare const LoginWithPhoneDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
11
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
+
phoneNumber: string;
|
13
|
+
}, {
|
14
|
+
phoneNumber: string;
|
15
|
+
}>>;
|
16
|
+
export declare class LoginWithPhoneDto extends LoginWithPhoneDto_base {
|
17
|
+
}
|
18
|
+
export declare const loginWithPhoneResponseSchema: z.ZodObject<{
|
19
|
+
tokens: z.ZodObject<{
|
20
|
+
accessToken: z.ZodString;
|
21
|
+
refreshToken: z.ZodString;
|
22
|
+
expiresIn: z.ZodNumber;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
accessToken: string;
|
25
|
+
refreshToken: string;
|
26
|
+
expiresIn: number;
|
27
|
+
}, {
|
28
|
+
accessToken: string;
|
29
|
+
refreshToken: string;
|
30
|
+
expiresIn: number;
|
31
|
+
}>;
|
32
|
+
profile: z.ZodObject<Omit<{
|
33
|
+
id: z.ZodString;
|
34
|
+
shortId: z.ZodNumber;
|
35
|
+
firstTimeMiExpo: z.ZodBoolean;
|
36
|
+
username: z.ZodNullable<z.ZodString>;
|
37
|
+
password: z.ZodNullable<z.ZodString>;
|
38
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
39
|
+
isPhoneVerified: z.ZodBoolean;
|
40
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
41
|
+
fullName: z.ZodString;
|
42
|
+
firstName: z.ZodNullable<z.ZodString>;
|
43
|
+
gender: z.ZodNullable<z.ZodString>;
|
44
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
45
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
46
|
+
instagram: z.ZodNullable<z.ZodString>;
|
47
|
+
mail: z.ZodNullable<z.ZodString>;
|
48
|
+
dni: z.ZodNullable<z.ZodString>;
|
49
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
50
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
51
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
52
|
+
isInTrash: z.ZodBoolean;
|
53
|
+
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
54
|
+
created_at: z.ZodDate;
|
55
|
+
updated_at: z.ZodDate;
|
56
|
+
}, "password">, "strip", z.ZodTypeAny, {
|
57
|
+
id: string;
|
58
|
+
username: string | null;
|
59
|
+
phoneNumber: string;
|
60
|
+
secondaryPhoneNumber: string | null;
|
61
|
+
fullName: string;
|
62
|
+
profilePictureUrl: string | null;
|
63
|
+
mail: string | null;
|
64
|
+
created_at: Date;
|
65
|
+
updated_at: Date;
|
66
|
+
shortId: number;
|
67
|
+
firstTimeMiExpo: boolean;
|
68
|
+
isPhoneVerified: boolean;
|
69
|
+
firstName: string | null;
|
70
|
+
gender: string | null;
|
71
|
+
birthDate: Date | null;
|
72
|
+
instagram: string | null;
|
73
|
+
dni: string | null;
|
74
|
+
alternativeNames: string[];
|
75
|
+
birthLocationId: string | null;
|
76
|
+
residenceLocationId: string | null;
|
77
|
+
isInTrash: boolean;
|
78
|
+
movedToTrashDate: Date | null;
|
79
|
+
}, {
|
80
|
+
id: string;
|
81
|
+
username: string | null;
|
82
|
+
phoneNumber: string;
|
83
|
+
secondaryPhoneNumber: string | null;
|
84
|
+
fullName: string;
|
85
|
+
profilePictureUrl: string | null;
|
86
|
+
mail: string | null;
|
87
|
+
created_at: Date;
|
88
|
+
updated_at: Date;
|
89
|
+
shortId: number;
|
90
|
+
firstTimeMiExpo: boolean;
|
91
|
+
isPhoneVerified: boolean;
|
92
|
+
firstName: string | null;
|
93
|
+
gender: string | null;
|
94
|
+
birthDate: string | null;
|
95
|
+
instagram: string | null;
|
96
|
+
dni: string | null;
|
97
|
+
alternativeNames: string[];
|
98
|
+
birthLocationId: string | null;
|
99
|
+
residenceLocationId: string | null;
|
100
|
+
isInTrash: boolean;
|
101
|
+
movedToTrashDate: Date | null;
|
102
|
+
}>;
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
104
|
+
profile: {
|
105
|
+
id: string;
|
106
|
+
username: string | null;
|
107
|
+
phoneNumber: string;
|
108
|
+
secondaryPhoneNumber: string | null;
|
109
|
+
fullName: string;
|
110
|
+
profilePictureUrl: string | null;
|
111
|
+
mail: string | null;
|
112
|
+
created_at: Date;
|
113
|
+
updated_at: Date;
|
114
|
+
shortId: number;
|
115
|
+
firstTimeMiExpo: boolean;
|
116
|
+
isPhoneVerified: boolean;
|
117
|
+
firstName: string | null;
|
118
|
+
gender: string | null;
|
119
|
+
birthDate: Date | null;
|
120
|
+
instagram: string | null;
|
121
|
+
dni: string | null;
|
122
|
+
alternativeNames: string[];
|
123
|
+
birthLocationId: string | null;
|
124
|
+
residenceLocationId: string | null;
|
125
|
+
isInTrash: boolean;
|
126
|
+
movedToTrashDate: Date | null;
|
127
|
+
};
|
128
|
+
tokens: {
|
129
|
+
accessToken: string;
|
130
|
+
refreshToken: string;
|
131
|
+
expiresIn: number;
|
132
|
+
};
|
133
|
+
}, {
|
134
|
+
profile: {
|
135
|
+
id: string;
|
136
|
+
username: string | null;
|
137
|
+
phoneNumber: string;
|
138
|
+
secondaryPhoneNumber: string | null;
|
139
|
+
fullName: string;
|
140
|
+
profilePictureUrl: string | null;
|
141
|
+
mail: string | null;
|
142
|
+
created_at: Date;
|
143
|
+
updated_at: Date;
|
144
|
+
shortId: number;
|
145
|
+
firstTimeMiExpo: boolean;
|
146
|
+
isPhoneVerified: boolean;
|
147
|
+
firstName: string | null;
|
148
|
+
gender: string | null;
|
149
|
+
birthDate: string | null;
|
150
|
+
instagram: string | null;
|
151
|
+
dni: string | null;
|
152
|
+
alternativeNames: string[];
|
153
|
+
birthLocationId: string | null;
|
154
|
+
residenceLocationId: string | null;
|
155
|
+
isInTrash: boolean;
|
156
|
+
movedToTrashDate: Date | null;
|
157
|
+
};
|
158
|
+
tokens: {
|
159
|
+
accessToken: string;
|
160
|
+
refreshToken: string;
|
161
|
+
expiresIn: number;
|
162
|
+
};
|
163
|
+
}>;
|
164
|
+
declare const LoginWithPhoneResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
165
|
+
tokens: z.ZodObject<{
|
166
|
+
accessToken: z.ZodString;
|
167
|
+
refreshToken: z.ZodString;
|
168
|
+
expiresIn: z.ZodNumber;
|
169
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
170
|
+
accessToken: string;
|
171
|
+
refreshToken: string;
|
172
|
+
expiresIn: number;
|
173
|
+
}, {
|
174
|
+
accessToken: string;
|
175
|
+
refreshToken: string;
|
176
|
+
expiresIn: number;
|
177
|
+
}>;
|
178
|
+
profile: z.ZodObject<{
|
179
|
+
id: z.ZodString;
|
180
|
+
username: z.ZodNullable<z.ZodString>;
|
181
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
182
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
183
|
+
fullName: z.ZodString;
|
184
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
185
|
+
mail: z.ZodNullable<z.ZodString>;
|
186
|
+
created_at: z.ZodString;
|
187
|
+
updated_at: z.ZodString;
|
188
|
+
shortId: z.ZodNumber;
|
189
|
+
firstTimeMiExpo: z.ZodBoolean;
|
190
|
+
isPhoneVerified: z.ZodBoolean;
|
191
|
+
firstName: z.ZodNullable<z.ZodString>;
|
192
|
+
gender: z.ZodNullable<z.ZodString>;
|
193
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
|
194
|
+
instagram: z.ZodNullable<z.ZodString>;
|
195
|
+
dni: z.ZodNullable<z.ZodString>;
|
196
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
197
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
198
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
199
|
+
isInTrash: z.ZodBoolean;
|
200
|
+
movedToTrashDate: z.ZodNullable<z.ZodString>;
|
201
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
202
|
+
id: string;
|
203
|
+
username: string | null;
|
204
|
+
phoneNumber: string;
|
205
|
+
secondaryPhoneNumber: string | null;
|
206
|
+
fullName: string;
|
207
|
+
profilePictureUrl: string | null;
|
208
|
+
mail: string | null;
|
209
|
+
created_at: string;
|
210
|
+
updated_at: string;
|
211
|
+
shortId: number;
|
212
|
+
firstTimeMiExpo: boolean;
|
213
|
+
isPhoneVerified: boolean;
|
214
|
+
firstName: string | null;
|
215
|
+
gender: string | null;
|
216
|
+
birthDate: string | null;
|
217
|
+
instagram: string | null;
|
218
|
+
dni: string | null;
|
219
|
+
alternativeNames: string[];
|
220
|
+
birthLocationId: string | null;
|
221
|
+
residenceLocationId: string | null;
|
222
|
+
isInTrash: boolean;
|
223
|
+
movedToTrashDate: string | null;
|
224
|
+
}, {
|
225
|
+
id: string;
|
226
|
+
username: string | null;
|
227
|
+
phoneNumber: string;
|
228
|
+
secondaryPhoneNumber: string | null;
|
229
|
+
fullName: string;
|
230
|
+
profilePictureUrl: string | null;
|
231
|
+
mail: string | null;
|
232
|
+
created_at: string;
|
233
|
+
updated_at: string;
|
234
|
+
shortId: number;
|
235
|
+
firstTimeMiExpo: boolean;
|
236
|
+
isPhoneVerified: boolean;
|
237
|
+
firstName: string | null;
|
238
|
+
gender: string | null;
|
239
|
+
birthDate: string | null;
|
240
|
+
instagram: string | null;
|
241
|
+
dni: string | null;
|
242
|
+
alternativeNames: string[];
|
243
|
+
birthLocationId: string | null;
|
244
|
+
residenceLocationId: string | null;
|
245
|
+
isInTrash: boolean;
|
246
|
+
movedToTrashDate: string | null;
|
247
|
+
}>;
|
248
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
249
|
+
profile: {
|
250
|
+
id: string;
|
251
|
+
username: string | null;
|
252
|
+
phoneNumber: string;
|
253
|
+
secondaryPhoneNumber: string | null;
|
254
|
+
fullName: string;
|
255
|
+
profilePictureUrl: string | null;
|
256
|
+
mail: string | null;
|
257
|
+
created_at: string;
|
258
|
+
updated_at: string;
|
259
|
+
shortId: number;
|
260
|
+
firstTimeMiExpo: boolean;
|
261
|
+
isPhoneVerified: boolean;
|
262
|
+
firstName: string | null;
|
263
|
+
gender: string | null;
|
264
|
+
birthDate: string | null;
|
265
|
+
instagram: string | null;
|
266
|
+
dni: string | null;
|
267
|
+
alternativeNames: string[];
|
268
|
+
birthLocationId: string | null;
|
269
|
+
residenceLocationId: string | null;
|
270
|
+
isInTrash: boolean;
|
271
|
+
movedToTrashDate: string | null;
|
272
|
+
};
|
273
|
+
tokens: {
|
274
|
+
accessToken: string;
|
275
|
+
refreshToken: string;
|
276
|
+
expiresIn: number;
|
277
|
+
};
|
278
|
+
}, {
|
279
|
+
profile: {
|
280
|
+
id: string;
|
281
|
+
username: string | null;
|
282
|
+
phoneNumber: string;
|
283
|
+
secondaryPhoneNumber: string | null;
|
284
|
+
fullName: string;
|
285
|
+
profilePictureUrl: string | null;
|
286
|
+
mail: string | null;
|
287
|
+
created_at: string;
|
288
|
+
updated_at: string;
|
289
|
+
shortId: number;
|
290
|
+
firstTimeMiExpo: boolean;
|
291
|
+
isPhoneVerified: boolean;
|
292
|
+
firstName: string | null;
|
293
|
+
gender: string | null;
|
294
|
+
birthDate: string | null;
|
295
|
+
instagram: string | null;
|
296
|
+
dni: string | null;
|
297
|
+
alternativeNames: string[];
|
298
|
+
birthLocationId: string | null;
|
299
|
+
residenceLocationId: string | null;
|
300
|
+
isInTrash: boolean;
|
301
|
+
movedToTrashDate: string | null;
|
302
|
+
};
|
303
|
+
tokens: {
|
304
|
+
accessToken: string;
|
305
|
+
refreshToken: string;
|
306
|
+
expiresIn: number;
|
307
|
+
};
|
308
|
+
}>>;
|
309
|
+
export declare class LoginWithPhoneResponseDto extends LoginWithPhoneResponseDto_base {
|
310
|
+
}
|
311
|
+
export {};
|
@@ -0,0 +1,29 @@
|
|
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.LoginWithPhoneResponseDto = exports.loginWithPhoneResponseSchema = exports.LoginWithPhoneDto = exports.loginWithPhoneSchema = void 0;
|
7
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
8
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
|
+
const zod_1 = __importDefault(require("zod"));
|
10
|
+
exports.loginWithPhoneSchema = zod_1.default.object({
|
11
|
+
phoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
|
12
|
+
});
|
13
|
+
class LoginWithPhoneDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.loginWithPhoneSchema) {
|
14
|
+
}
|
15
|
+
exports.LoginWithPhoneDto = LoginWithPhoneDto;
|
16
|
+
exports.loginWithPhoneResponseSchema = zod_1.default.object({
|
17
|
+
tokens: zod_1.default.object({
|
18
|
+
accessToken: zod_1.default.string(),
|
19
|
+
refreshToken: zod_1.default.string(),
|
20
|
+
expiresIn: zod_1.default.number(),
|
21
|
+
}),
|
22
|
+
profile: profile_schema_1.profileSchema.omit({
|
23
|
+
password: true,
|
24
|
+
}),
|
25
|
+
});
|
26
|
+
class LoginWithPhoneResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.loginWithPhoneResponseSchema) {
|
27
|
+
}
|
28
|
+
exports.LoginWithPhoneResponseDto = LoginWithPhoneResponseDto;
|
29
|
+
//# sourceMappingURL=login-with-phone.dto.js.map
|
@@ -0,0 +1,327 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const loginMiExpoSchema: z.ZodObject<Pick<{
|
3
|
+
id: z.ZodString;
|
4
|
+
username: z.ZodString;
|
5
|
+
password: z.ZodString;
|
6
|
+
role: z.ZodNativeEnum<{
|
7
|
+
USER: "USER";
|
8
|
+
ADMIN: "ADMIN";
|
9
|
+
FORM: "FORM";
|
10
|
+
}>;
|
11
|
+
isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
|
12
|
+
fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
13
|
+
created_at: z.ZodDate;
|
14
|
+
updated_at: z.ZodDate;
|
15
|
+
}, "username" | "password">, "strip", z.ZodTypeAny, {
|
16
|
+
username: string;
|
17
|
+
password: string;
|
18
|
+
}, {
|
19
|
+
username: string;
|
20
|
+
password: string;
|
21
|
+
}>;
|
22
|
+
declare const LoginMiExpoDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
23
|
+
username: z.ZodString;
|
24
|
+
password: z.ZodString;
|
25
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
26
|
+
username: string;
|
27
|
+
password: string;
|
28
|
+
}, {
|
29
|
+
username: string;
|
30
|
+
password: string;
|
31
|
+
}>>;
|
32
|
+
export declare class LoginMiExpoDto extends LoginMiExpoDto_base {
|
33
|
+
}
|
34
|
+
export declare const loginMiExpoResponseSchema: z.ZodObject<{
|
35
|
+
user: z.ZodObject<Omit<{
|
36
|
+
id: z.ZodString;
|
37
|
+
shortId: z.ZodNumber;
|
38
|
+
firstTimeMiExpo: z.ZodBoolean;
|
39
|
+
username: z.ZodNullable<z.ZodString>;
|
40
|
+
password: z.ZodNullable<z.ZodString>;
|
41
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
42
|
+
isPhoneVerified: z.ZodBoolean;
|
43
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
44
|
+
fullName: z.ZodString;
|
45
|
+
firstName: z.ZodNullable<z.ZodString>;
|
46
|
+
gender: z.ZodNullable<z.ZodString>;
|
47
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
48
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
49
|
+
instagram: z.ZodNullable<z.ZodString>;
|
50
|
+
mail: z.ZodNullable<z.ZodString>;
|
51
|
+
dni: z.ZodNullable<z.ZodString>;
|
52
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
53
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
54
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
55
|
+
isInTrash: z.ZodBoolean;
|
56
|
+
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
57
|
+
created_at: z.ZodDate;
|
58
|
+
updated_at: z.ZodDate;
|
59
|
+
}, "password">, "strip", z.ZodTypeAny, {
|
60
|
+
id: string;
|
61
|
+
username: string | null;
|
62
|
+
phoneNumber: string;
|
63
|
+
secondaryPhoneNumber: string | null;
|
64
|
+
fullName: string;
|
65
|
+
profilePictureUrl: string | null;
|
66
|
+
mail: string | null;
|
67
|
+
created_at: Date;
|
68
|
+
updated_at: Date;
|
69
|
+
shortId: number;
|
70
|
+
firstTimeMiExpo: boolean;
|
71
|
+
isPhoneVerified: boolean;
|
72
|
+
firstName: string | null;
|
73
|
+
gender: string | null;
|
74
|
+
birthDate: Date | null;
|
75
|
+
instagram: string | null;
|
76
|
+
dni: string | null;
|
77
|
+
alternativeNames: string[];
|
78
|
+
birthLocationId: string | null;
|
79
|
+
residenceLocationId: string | null;
|
80
|
+
isInTrash: boolean;
|
81
|
+
movedToTrashDate: Date | null;
|
82
|
+
}, {
|
83
|
+
id: string;
|
84
|
+
username: string | null;
|
85
|
+
phoneNumber: string;
|
86
|
+
secondaryPhoneNumber: string | null;
|
87
|
+
fullName: string;
|
88
|
+
profilePictureUrl: string | null;
|
89
|
+
mail: string | null;
|
90
|
+
created_at: Date;
|
91
|
+
updated_at: Date;
|
92
|
+
shortId: number;
|
93
|
+
firstTimeMiExpo: boolean;
|
94
|
+
isPhoneVerified: boolean;
|
95
|
+
firstName: string | null;
|
96
|
+
gender: string | null;
|
97
|
+
birthDate: string | null;
|
98
|
+
instagram: string | null;
|
99
|
+
dni: string | null;
|
100
|
+
alternativeNames: string[];
|
101
|
+
birthLocationId: string | null;
|
102
|
+
residenceLocationId: string | null;
|
103
|
+
isInTrash: boolean;
|
104
|
+
movedToTrashDate: Date | null;
|
105
|
+
}>;
|
106
|
+
backendTokens: z.ZodObject<{
|
107
|
+
accessToken: z.ZodString;
|
108
|
+
refreshToken: z.ZodString;
|
109
|
+
expiresIn: z.ZodNumber;
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
111
|
+
accessToken: string;
|
112
|
+
refreshToken: string;
|
113
|
+
expiresIn: number;
|
114
|
+
}, {
|
115
|
+
accessToken: string;
|
116
|
+
refreshToken: string;
|
117
|
+
expiresIn: number;
|
118
|
+
}>;
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
120
|
+
user: {
|
121
|
+
id: string;
|
122
|
+
username: string | null;
|
123
|
+
phoneNumber: string;
|
124
|
+
secondaryPhoneNumber: string | null;
|
125
|
+
fullName: string;
|
126
|
+
profilePictureUrl: string | null;
|
127
|
+
mail: string | null;
|
128
|
+
created_at: Date;
|
129
|
+
updated_at: Date;
|
130
|
+
shortId: number;
|
131
|
+
firstTimeMiExpo: boolean;
|
132
|
+
isPhoneVerified: boolean;
|
133
|
+
firstName: string | null;
|
134
|
+
gender: string | null;
|
135
|
+
birthDate: Date | null;
|
136
|
+
instagram: string | null;
|
137
|
+
dni: string | null;
|
138
|
+
alternativeNames: string[];
|
139
|
+
birthLocationId: string | null;
|
140
|
+
residenceLocationId: string | null;
|
141
|
+
isInTrash: boolean;
|
142
|
+
movedToTrashDate: Date | null;
|
143
|
+
};
|
144
|
+
backendTokens: {
|
145
|
+
accessToken: string;
|
146
|
+
refreshToken: string;
|
147
|
+
expiresIn: number;
|
148
|
+
};
|
149
|
+
}, {
|
150
|
+
user: {
|
151
|
+
id: string;
|
152
|
+
username: string | null;
|
153
|
+
phoneNumber: string;
|
154
|
+
secondaryPhoneNumber: string | null;
|
155
|
+
fullName: string;
|
156
|
+
profilePictureUrl: string | null;
|
157
|
+
mail: string | null;
|
158
|
+
created_at: Date;
|
159
|
+
updated_at: Date;
|
160
|
+
shortId: number;
|
161
|
+
firstTimeMiExpo: boolean;
|
162
|
+
isPhoneVerified: boolean;
|
163
|
+
firstName: string | null;
|
164
|
+
gender: string | null;
|
165
|
+
birthDate: string | null;
|
166
|
+
instagram: string | null;
|
167
|
+
dni: string | null;
|
168
|
+
alternativeNames: string[];
|
169
|
+
birthLocationId: string | null;
|
170
|
+
residenceLocationId: string | null;
|
171
|
+
isInTrash: boolean;
|
172
|
+
movedToTrashDate: Date | null;
|
173
|
+
};
|
174
|
+
backendTokens: {
|
175
|
+
accessToken: string;
|
176
|
+
refreshToken: string;
|
177
|
+
expiresIn: number;
|
178
|
+
};
|
179
|
+
}>;
|
180
|
+
declare const LoginMiExpoResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
181
|
+
user: z.ZodObject<{
|
182
|
+
id: z.ZodString;
|
183
|
+
username: z.ZodNullable<z.ZodString>;
|
184
|
+
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
185
|
+
secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
186
|
+
fullName: z.ZodString;
|
187
|
+
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
188
|
+
mail: z.ZodNullable<z.ZodString>;
|
189
|
+
created_at: z.ZodString;
|
190
|
+
updated_at: z.ZodString;
|
191
|
+
shortId: z.ZodNumber;
|
192
|
+
firstTimeMiExpo: z.ZodBoolean;
|
193
|
+
isPhoneVerified: z.ZodBoolean;
|
194
|
+
firstName: z.ZodNullable<z.ZodString>;
|
195
|
+
gender: z.ZodNullable<z.ZodString>;
|
196
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
|
197
|
+
instagram: z.ZodNullable<z.ZodString>;
|
198
|
+
dni: z.ZodNullable<z.ZodString>;
|
199
|
+
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
200
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
201
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
202
|
+
isInTrash: z.ZodBoolean;
|
203
|
+
movedToTrashDate: z.ZodNullable<z.ZodString>;
|
204
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
205
|
+
id: string;
|
206
|
+
username: string | null;
|
207
|
+
phoneNumber: string;
|
208
|
+
secondaryPhoneNumber: string | null;
|
209
|
+
fullName: string;
|
210
|
+
profilePictureUrl: string | null;
|
211
|
+
mail: string | null;
|
212
|
+
created_at: string;
|
213
|
+
updated_at: string;
|
214
|
+
shortId: number;
|
215
|
+
firstTimeMiExpo: boolean;
|
216
|
+
isPhoneVerified: boolean;
|
217
|
+
firstName: string | null;
|
218
|
+
gender: string | null;
|
219
|
+
birthDate: string | null;
|
220
|
+
instagram: string | null;
|
221
|
+
dni: string | null;
|
222
|
+
alternativeNames: string[];
|
223
|
+
birthLocationId: string | null;
|
224
|
+
residenceLocationId: string | null;
|
225
|
+
isInTrash: boolean;
|
226
|
+
movedToTrashDate: string | null;
|
227
|
+
}, {
|
228
|
+
id: string;
|
229
|
+
username: string | null;
|
230
|
+
phoneNumber: string;
|
231
|
+
secondaryPhoneNumber: string | null;
|
232
|
+
fullName: string;
|
233
|
+
profilePictureUrl: string | null;
|
234
|
+
mail: string | null;
|
235
|
+
created_at: string;
|
236
|
+
updated_at: string;
|
237
|
+
shortId: number;
|
238
|
+
firstTimeMiExpo: boolean;
|
239
|
+
isPhoneVerified: boolean;
|
240
|
+
firstName: string | null;
|
241
|
+
gender: string | null;
|
242
|
+
birthDate: string | null;
|
243
|
+
instagram: string | null;
|
244
|
+
dni: string | null;
|
245
|
+
alternativeNames: string[];
|
246
|
+
birthLocationId: string | null;
|
247
|
+
residenceLocationId: string | null;
|
248
|
+
isInTrash: boolean;
|
249
|
+
movedToTrashDate: string | null;
|
250
|
+
}>;
|
251
|
+
backendTokens: z.ZodObject<{
|
252
|
+
accessToken: z.ZodString;
|
253
|
+
refreshToken: z.ZodString;
|
254
|
+
expiresIn: z.ZodNumber;
|
255
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
256
|
+
accessToken: string;
|
257
|
+
refreshToken: string;
|
258
|
+
expiresIn: number;
|
259
|
+
}, {
|
260
|
+
accessToken: string;
|
261
|
+
refreshToken: string;
|
262
|
+
expiresIn: number;
|
263
|
+
}>;
|
264
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
265
|
+
user: {
|
266
|
+
id: string;
|
267
|
+
username: string | null;
|
268
|
+
phoneNumber: string;
|
269
|
+
secondaryPhoneNumber: string | null;
|
270
|
+
fullName: string;
|
271
|
+
profilePictureUrl: string | null;
|
272
|
+
mail: string | null;
|
273
|
+
created_at: string;
|
274
|
+
updated_at: string;
|
275
|
+
shortId: number;
|
276
|
+
firstTimeMiExpo: boolean;
|
277
|
+
isPhoneVerified: boolean;
|
278
|
+
firstName: string | null;
|
279
|
+
gender: string | null;
|
280
|
+
birthDate: string | null;
|
281
|
+
instagram: string | null;
|
282
|
+
dni: string | null;
|
283
|
+
alternativeNames: string[];
|
284
|
+
birthLocationId: string | null;
|
285
|
+
residenceLocationId: string | null;
|
286
|
+
isInTrash: boolean;
|
287
|
+
movedToTrashDate: string | null;
|
288
|
+
};
|
289
|
+
backendTokens: {
|
290
|
+
accessToken: string;
|
291
|
+
refreshToken: string;
|
292
|
+
expiresIn: number;
|
293
|
+
};
|
294
|
+
}, {
|
295
|
+
user: {
|
296
|
+
id: string;
|
297
|
+
username: string | null;
|
298
|
+
phoneNumber: string;
|
299
|
+
secondaryPhoneNumber: string | null;
|
300
|
+
fullName: string;
|
301
|
+
profilePictureUrl: string | null;
|
302
|
+
mail: string | null;
|
303
|
+
created_at: string;
|
304
|
+
updated_at: string;
|
305
|
+
shortId: number;
|
306
|
+
firstTimeMiExpo: boolean;
|
307
|
+
isPhoneVerified: boolean;
|
308
|
+
firstName: string | null;
|
309
|
+
gender: string | null;
|
310
|
+
birthDate: string | null;
|
311
|
+
instagram: string | null;
|
312
|
+
dni: string | null;
|
313
|
+
alternativeNames: string[];
|
314
|
+
birthLocationId: string | null;
|
315
|
+
residenceLocationId: string | null;
|
316
|
+
isInTrash: boolean;
|
317
|
+
movedToTrashDate: string | null;
|
318
|
+
};
|
319
|
+
backendTokens: {
|
320
|
+
accessToken: string;
|
321
|
+
refreshToken: string;
|
322
|
+
expiresIn: number;
|
323
|
+
};
|
324
|
+
}>>;
|
325
|
+
export declare class LoginMiExpoResponseDto extends LoginMiExpoResponseDto_base {
|
326
|
+
}
|
327
|
+
export {};
|
@@ -0,0 +1,31 @@
|
|
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.LoginMiExpoResponseDto = exports.loginMiExpoResponseSchema = exports.LoginMiExpoDto = exports.loginMiExpoSchema = void 0;
|
7
|
+
const account_dto_1 = require("../../account/dto/account.dto");
|
8
|
+
const profile_schema_1 = require("../../schema/profile.schema");
|
9
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
10
|
+
const zod_1 = __importDefault(require("zod"));
|
11
|
+
exports.loginMiExpoSchema = account_dto_1.accountSchema.pick({
|
12
|
+
username: true,
|
13
|
+
password: true,
|
14
|
+
});
|
15
|
+
class LoginMiExpoDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.loginMiExpoSchema) {
|
16
|
+
}
|
17
|
+
exports.LoginMiExpoDto = LoginMiExpoDto;
|
18
|
+
exports.loginMiExpoResponseSchema = zod_1.default.object({
|
19
|
+
user: profile_schema_1.profileSchema.omit({
|
20
|
+
password: true,
|
21
|
+
}),
|
22
|
+
backendTokens: zod_1.default.object({
|
23
|
+
accessToken: zod_1.default.string(),
|
24
|
+
refreshToken: zod_1.default.string(),
|
25
|
+
expiresIn: zod_1.default.number(),
|
26
|
+
}),
|
27
|
+
});
|
28
|
+
class LoginMiExpoResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.loginMiExpoResponseSchema) {
|
29
|
+
}
|
30
|
+
exports.LoginMiExpoResponseDto = LoginMiExpoResponseDto;
|
31
|
+
//# sourceMappingURL=login.dto.js.map
|