expo-backend-types 0.30.0-EXPO-308-auth.10 → 0.30.0-EXPO-309-Migrar-Configuracion.2

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.
Files changed (55) hide show
  1. package/dist/src/exports.d.ts +0 -1
  2. package/dist/src/exports.js +0 -1
  3. package/dist/src/i18n/es.d.ts +0 -19
  4. package/dist/src/i18n/es.js +0 -19
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  7. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  8. package/dist/src/profile/dto/create-profile.dto.d.ts +10 -26
  9. package/dist/src/profile/dto/delete-profile.dto.d.ts +4 -28
  10. package/dist/src/profile/dto/find-all-profile.dto.d.ts +4 -44
  11. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +8 -72
  12. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +4 -28
  13. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +4 -28
  14. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +4 -44
  15. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +4 -44
  16. package/dist/src/profile/dto/find-trash.dto.d.ts +3 -7
  17. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +4 -44
  18. package/dist/src/profile/dto/profile.dto.d.ts +2 -90
  19. package/dist/src/profile/dto/profile.dto.js +4 -75
  20. package/dist/src/profile/dto/update-profile.dto.d.ts +8 -32
  21. package/dist/src/tag/dto/massive-allocation.dto.d.ts +4 -44
  22. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +4 -44
  23. package/dist/types/prisma-schema/edge.js +24 -38
  24. package/dist/types/prisma-schema/index-browser.js +9 -18
  25. package/dist/types/prisma-schema/index.d.ts +553 -3904
  26. package/dist/types/prisma-schema/index.js +24 -38
  27. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  28. package/dist/types/prisma-schema/package.json +2 -2
  29. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  30. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  31. package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -1
  32. package/dist/types/prisma-schema/runtime/library.d.ts +133 -177
  33. package/dist/types/prisma-schema/runtime/library.js +51 -51
  34. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  35. package/dist/types/prisma-schema/runtime/wasm.js +19 -19
  36. package/dist/types/prisma-schema/schema.prisma +1 -22
  37. package/dist/types/prisma-schema/wasm.js +9 -18
  38. package/dist/types/schema.d.ts +2 -277
  39. package/package.json +4 -5
  40. package/dist/src/auth/dto/login-mi-expo.dto.d.ts +0 -327
  41. package/dist/src/auth/dto/login-mi-expo.dto.js +0 -31
  42. package/dist/src/image/constants.d.ts +0 -5
  43. package/dist/src/image/constants.js +0 -9
  44. package/dist/src/otp/constants.d.ts +0 -2
  45. package/dist/src/otp/constants.js +0 -6
  46. package/dist/src/otp/dto/send-otp.dto.d.ts +0 -158
  47. package/dist/src/otp/dto/send-otp.dto.js +0 -35
  48. package/dist/src/otp/dto/verify-otp.dto.d.ts +0 -286
  49. package/dist/src/otp/dto/verify-otp.dto.js +0 -28
  50. package/dist/src/otp/exports.d.ts +0 -2
  51. package/dist/src/otp/exports.js +0 -19
  52. package/dist/src/prisma/constants.d.ts +0 -1
  53. package/dist/src/prisma/constants.js +0 -5
  54. package/dist/src/webhook/constants.d.ts +0 -1
  55. package/dist/src/webhook/constants.js +0 -5
@@ -1,327 +0,0 @@
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.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
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.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
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.ZodDate>>;
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: Date | 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: Date | 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 {};
@@ -1,31 +0,0 @@
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_dto_1 = require("../../profile/dto/profile.dto");
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_dto_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-mi-expo.dto.js.map
@@ -1,5 +0,0 @@
1
- export declare const IMAGE_EXTENSIONS: {
2
- 'image/jpeg': string;
3
- 'image/png': string;
4
- 'image/webp': string;
5
- };
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IMAGE_EXTENSIONS = void 0;
4
- exports.IMAGE_EXTENSIONS = {
5
- 'image/jpeg': 'jpg',
6
- 'image/png': 'png',
7
- 'image/webp': 'webp',
8
- };
9
- //# sourceMappingURL=constants.js.map
@@ -1,2 +0,0 @@
1
- export declare const OTP_LENGTH = 6;
2
- export declare const OTP_EXPIRES_IN: number;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OTP_EXPIRES_IN = exports.OTP_LENGTH = void 0;
4
- exports.OTP_LENGTH = 6;
5
- exports.OTP_EXPIRES_IN = 60 * 5;
6
- //# sourceMappingURL=constants.js.map
@@ -1,158 +0,0 @@
1
- import z from 'zod';
2
- export declare const sendOtpSchema: 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 SendOtpDto_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 SendOtpDto extends SendOtpDto_base {
17
- }
18
- export declare const discriminatedResponseSchema: z.ZodDiscriminatedUnion<"success", [z.ZodObject<z.objectUtil.extendShape<{
19
- hasVerified: z.ZodBoolean;
20
- hasUsername: z.ZodBoolean;
21
- }, {
22
- success: z.ZodLiteral<true>;
23
- }>, "strip", z.ZodTypeAny, {
24
- success: true;
25
- hasVerified: boolean;
26
- hasUsername: boolean;
27
- }, {
28
- success: true;
29
- hasVerified: boolean;
30
- hasUsername: boolean;
31
- }>, z.ZodObject<z.objectUtil.extendShape<{
32
- hasVerified: z.ZodBoolean;
33
- hasUsername: z.ZodBoolean;
34
- }, {
35
- success: z.ZodLiteral<false>;
36
- message: z.ZodString;
37
- }>, "strip", z.ZodTypeAny, {
38
- message: string;
39
- success: false;
40
- hasVerified: boolean;
41
- hasUsername: boolean;
42
- }, {
43
- message: string;
44
- success: false;
45
- hasVerified: boolean;
46
- hasUsername: boolean;
47
- }>]>;
48
- export declare const sendOtpResponseSchema: z.ZodObject<{
49
- response: z.ZodDiscriminatedUnion<"success", [z.ZodObject<z.objectUtil.extendShape<{
50
- hasVerified: z.ZodBoolean;
51
- hasUsername: z.ZodBoolean;
52
- }, {
53
- success: z.ZodLiteral<true>;
54
- }>, "strip", z.ZodTypeAny, {
55
- success: true;
56
- hasVerified: boolean;
57
- hasUsername: boolean;
58
- }, {
59
- success: true;
60
- hasVerified: boolean;
61
- hasUsername: boolean;
62
- }>, z.ZodObject<z.objectUtil.extendShape<{
63
- hasVerified: z.ZodBoolean;
64
- hasUsername: z.ZodBoolean;
65
- }, {
66
- success: z.ZodLiteral<false>;
67
- message: z.ZodString;
68
- }>, "strip", z.ZodTypeAny, {
69
- message: string;
70
- success: false;
71
- hasVerified: boolean;
72
- hasUsername: boolean;
73
- }, {
74
- message: string;
75
- success: false;
76
- hasVerified: boolean;
77
- hasUsername: boolean;
78
- }>]>;
79
- }, "strip", z.ZodTypeAny, {
80
- response: {
81
- success: true;
82
- hasVerified: boolean;
83
- hasUsername: boolean;
84
- } | {
85
- message: string;
86
- success: false;
87
- hasVerified: boolean;
88
- hasUsername: boolean;
89
- };
90
- }, {
91
- response: {
92
- success: true;
93
- hasVerified: boolean;
94
- hasUsername: boolean;
95
- } | {
96
- message: string;
97
- success: false;
98
- hasVerified: boolean;
99
- hasUsername: boolean;
100
- };
101
- }>;
102
- declare const SendOtpResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
103
- response: z.ZodDiscriminatedUnion<"success", [z.ZodObject<z.objectUtil.extendShape<{
104
- hasVerified: z.ZodBoolean;
105
- hasUsername: z.ZodBoolean;
106
- }, {
107
- success: z.ZodLiteral<true>;
108
- }>, "strip", z.ZodTypeAny, {
109
- success: true;
110
- hasVerified: boolean;
111
- hasUsername: boolean;
112
- }, {
113
- success: true;
114
- hasVerified: boolean;
115
- hasUsername: boolean;
116
- }>, z.ZodObject<z.objectUtil.extendShape<{
117
- hasVerified: z.ZodBoolean;
118
- hasUsername: z.ZodBoolean;
119
- }, {
120
- success: z.ZodLiteral<false>;
121
- message: z.ZodString;
122
- }>, "strip", z.ZodTypeAny, {
123
- message: string;
124
- success: false;
125
- hasVerified: boolean;
126
- hasUsername: boolean;
127
- }, {
128
- message: string;
129
- success: false;
130
- hasVerified: boolean;
131
- hasUsername: boolean;
132
- }>]>;
133
- }, z.UnknownKeysParam, z.ZodTypeAny, {
134
- response: {
135
- success: true;
136
- hasVerified: boolean;
137
- hasUsername: boolean;
138
- } | {
139
- message: string;
140
- success: false;
141
- hasVerified: boolean;
142
- hasUsername: boolean;
143
- };
144
- }, {
145
- response: {
146
- success: true;
147
- hasVerified: boolean;
148
- hasUsername: boolean;
149
- } | {
150
- message: string;
151
- success: false;
152
- hasVerified: boolean;
153
- hasUsername: boolean;
154
- };
155
- }>>;
156
- export declare class SendOtpResponseDto extends SendOtpResponseDto_base {
157
- }
158
- export {};
@@ -1,35 +0,0 @@
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.SendOtpResponseDto = exports.sendOtpResponseSchema = exports.discriminatedResponseSchema = exports.SendOtpDto = exports.sendOtpSchema = void 0;
7
- const profile_dto_1 = require("../../profile/dto/profile.dto");
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.sendOtpSchema = zod_1.default.object({
11
- phoneNumber: profile_dto_1.profileSchema.shape.phoneNumber,
12
- });
13
- class SendOtpDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendOtpSchema) {
14
- }
15
- exports.SendOtpDto = SendOtpDto;
16
- const baseResponseSchema = zod_1.default.object({
17
- hasVerified: zod_1.default.boolean(),
18
- hasUsername: zod_1.default.boolean(),
19
- });
20
- exports.discriminatedResponseSchema = zod_1.default.discriminatedUnion('success', [
21
- baseResponseSchema.merge(zod_1.default.object({
22
- success: zod_1.default.literal(true),
23
- })),
24
- baseResponseSchema.merge(zod_1.default.object({
25
- success: zod_1.default.literal(false),
26
- message: zod_1.default.string(),
27
- })),
28
- ]);
29
- exports.sendOtpResponseSchema = zod_1.default.object({
30
- response: exports.discriminatedResponseSchema,
31
- });
32
- class SendOtpResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.sendOtpResponseSchema) {
33
- }
34
- exports.SendOtpResponseDto = SendOtpResponseDto;
35
- //# sourceMappingURL=send-otp.dto.js.map