expo-backend-types 0.30.0-EXPO-311-EB-Modificar-DB-schema.1 → 0.30.0-EXPO-308-auth.11

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/auth/dto/login-mi-expo.dto.d.ts +327 -0
  2. package/dist/src/auth/dto/login-mi-expo.dto.js +31 -0
  3. package/dist/src/exports.d.ts +1 -0
  4. package/dist/src/exports.js +1 -0
  5. package/dist/src/i18n/es.d.ts +19 -0
  6. package/dist/src/i18n/es.js +19 -0
  7. package/dist/src/i18n/es.js.map +1 -1
  8. package/dist/src/image/constants.d.ts +5 -0
  9. package/dist/src/image/constants.js +9 -0
  10. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  11. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  12. package/dist/src/otp/constants.d.ts +2 -0
  13. package/dist/src/otp/constants.js +6 -0
  14. package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
  15. package/dist/src/otp/dto/send-otp.dto.js +35 -0
  16. package/dist/src/otp/dto/verify-otp.dto.d.ts +286 -0
  17. package/dist/src/otp/dto/verify-otp.dto.js +28 -0
  18. package/dist/src/otp/exports.d.ts +2 -0
  19. package/dist/src/otp/exports.js +19 -0
  20. package/dist/src/prisma/constants.d.ts +1 -0
  21. package/dist/src/prisma/constants.js +5 -0
  22. package/dist/src/profile/dto/create-profile.dto.d.ts +26 -10
  23. package/dist/src/profile/dto/delete-profile.dto.d.ts +28 -4
  24. package/dist/src/profile/dto/find-all-profile.dto.d.ts +44 -4
  25. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +72 -8
  26. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +28 -4
  27. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +28 -4
  28. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +44 -4
  29. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +44 -4
  30. package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
  31. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +44 -4
  32. package/dist/src/profile/dto/profile.dto.d.ts +90 -2
  33. package/dist/src/profile/dto/profile.dto.js +75 -4
  34. package/dist/src/profile/dto/update-profile.dto.d.ts +32 -8
  35. package/dist/src/tag/dto/massive-allocation.dto.d.ts +44 -4
  36. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +44 -4
  37. package/dist/src/webhook/constants.d.ts +1 -0
  38. package/dist/src/webhook/constants.js +5 -0
  39. package/dist/types/prisma-schema/edge.js +38 -24
  40. package/dist/types/prisma-schema/index-browser.js +18 -9
  41. package/dist/types/prisma-schema/index.d.ts +3862 -511
  42. package/dist/types/prisma-schema/index.js +38 -24
  43. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  44. package/dist/types/prisma-schema/package.json +2 -2
  45. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  46. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  47. package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -1
  48. package/dist/types/prisma-schema/runtime/library.d.ts +177 -133
  49. package/dist/types/prisma-schema/runtime/library.js +51 -51
  50. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  51. package/dist/types/prisma-schema/runtime/wasm.js +19 -19
  52. package/dist/types/prisma-schema/schema.prisma +22 -1
  53. package/dist/types/prisma-schema/wasm.js +18 -9
  54. package/dist/types/schema.d.ts +277 -2
  55. package/package.json +15 -14
@@ -0,0 +1,158 @@
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 {};
@@ -0,0 +1,35 @@
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
@@ -0,0 +1,286 @@
1
+ import z from 'zod';
2
+ export declare const verifyOtpSchema: z.ZodObject<{
3
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
+ code: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ phoneNumber: string;
7
+ code: string;
8
+ }, {
9
+ phoneNumber: string;
10
+ code: string;
11
+ }>;
12
+ declare const VerifyOtpDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
13
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
14
+ code: z.ZodString;
15
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
16
+ phoneNumber: string;
17
+ code: string;
18
+ }, {
19
+ phoneNumber: string;
20
+ code: string;
21
+ }>>;
22
+ export declare class VerifyOtpDto extends VerifyOtpDto_base {
23
+ }
24
+ export declare const verifyOtpResponseSchema: z.ZodObject<{
25
+ success: z.ZodBoolean;
26
+ profile: z.ZodObject<{
27
+ id: z.ZodString;
28
+ shortId: z.ZodNumber;
29
+ firstTimeMiExpo: z.ZodBoolean;
30
+ username: z.ZodNullable<z.ZodString>;
31
+ password: z.ZodNullable<z.ZodString>;
32
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
33
+ isPhoneVerified: z.ZodBoolean;
34
+ secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
35
+ fullName: z.ZodString;
36
+ firstName: z.ZodNullable<z.ZodString>;
37
+ gender: z.ZodNullable<z.ZodString>;
38
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
39
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
40
+ instagram: z.ZodNullable<z.ZodString>;
41
+ mail: z.ZodNullable<z.ZodString>;
42
+ dni: z.ZodNullable<z.ZodString>;
43
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
44
+ birthLocationId: z.ZodNullable<z.ZodString>;
45
+ residenceLocationId: z.ZodNullable<z.ZodString>;
46
+ isInTrash: z.ZodBoolean;
47
+ movedToTrashDate: z.ZodNullable<z.ZodDate>;
48
+ created_at: z.ZodDate;
49
+ updated_at: z.ZodDate;
50
+ }, "strip", z.ZodTypeAny, {
51
+ id: string;
52
+ username: string | null;
53
+ password: string | null;
54
+ phoneNumber: string;
55
+ secondaryPhoneNumber: string | null;
56
+ fullName: string;
57
+ profilePictureUrl: string | null;
58
+ mail: string | null;
59
+ created_at: Date;
60
+ updated_at: Date;
61
+ shortId: number;
62
+ firstTimeMiExpo: boolean;
63
+ isPhoneVerified: boolean;
64
+ firstName: string | null;
65
+ gender: string | null;
66
+ birthDate: Date | null;
67
+ instagram: string | null;
68
+ dni: string | null;
69
+ alternativeNames: string[];
70
+ birthLocationId: string | null;
71
+ residenceLocationId: string | null;
72
+ isInTrash: boolean;
73
+ movedToTrashDate: Date | null;
74
+ }, {
75
+ id: string;
76
+ username: string | null;
77
+ password: string | null;
78
+ phoneNumber: string;
79
+ secondaryPhoneNumber: string | null;
80
+ fullName: string;
81
+ profilePictureUrl: string | null;
82
+ mail: string | null;
83
+ created_at: Date;
84
+ updated_at: Date;
85
+ shortId: number;
86
+ firstTimeMiExpo: boolean;
87
+ isPhoneVerified: boolean;
88
+ firstName: string | null;
89
+ gender: string | null;
90
+ birthDate: string | null;
91
+ instagram: string | null;
92
+ dni: string | null;
93
+ alternativeNames: string[];
94
+ birthLocationId: string | null;
95
+ residenceLocationId: string | null;
96
+ isInTrash: boolean;
97
+ movedToTrashDate: Date | null;
98
+ }>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ profile: {
101
+ id: string;
102
+ username: string | null;
103
+ password: string | null;
104
+ phoneNumber: string;
105
+ secondaryPhoneNumber: string | null;
106
+ fullName: string;
107
+ profilePictureUrl: string | null;
108
+ mail: string | null;
109
+ created_at: Date;
110
+ updated_at: Date;
111
+ shortId: number;
112
+ firstTimeMiExpo: boolean;
113
+ isPhoneVerified: boolean;
114
+ firstName: string | null;
115
+ gender: string | null;
116
+ birthDate: Date | null;
117
+ instagram: string | null;
118
+ dni: string | null;
119
+ alternativeNames: string[];
120
+ birthLocationId: string | null;
121
+ residenceLocationId: string | null;
122
+ isInTrash: boolean;
123
+ movedToTrashDate: Date | null;
124
+ };
125
+ success: boolean;
126
+ }, {
127
+ profile: {
128
+ id: string;
129
+ username: string | null;
130
+ password: string | null;
131
+ phoneNumber: string;
132
+ secondaryPhoneNumber: string | null;
133
+ fullName: string;
134
+ profilePictureUrl: string | null;
135
+ mail: string | null;
136
+ created_at: Date;
137
+ updated_at: Date;
138
+ shortId: number;
139
+ firstTimeMiExpo: boolean;
140
+ isPhoneVerified: boolean;
141
+ firstName: string | null;
142
+ gender: string | null;
143
+ birthDate: string | null;
144
+ instagram: string | null;
145
+ dni: string | null;
146
+ alternativeNames: string[];
147
+ birthLocationId: string | null;
148
+ residenceLocationId: string | null;
149
+ isInTrash: boolean;
150
+ movedToTrashDate: Date | null;
151
+ };
152
+ success: boolean;
153
+ }>;
154
+ declare const VerifyOtpResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
155
+ success: z.ZodBoolean;
156
+ profile: z.ZodObject<{
157
+ id: z.ZodString;
158
+ shortId: z.ZodNumber;
159
+ firstTimeMiExpo: z.ZodBoolean;
160
+ username: z.ZodNullable<z.ZodString>;
161
+ password: z.ZodNullable<z.ZodString>;
162
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
163
+ isPhoneVerified: z.ZodBoolean;
164
+ secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
165
+ fullName: z.ZodString;
166
+ firstName: z.ZodNullable<z.ZodString>;
167
+ gender: z.ZodNullable<z.ZodString>;
168
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
169
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
170
+ instagram: z.ZodNullable<z.ZodString>;
171
+ mail: z.ZodNullable<z.ZodString>;
172
+ dni: z.ZodNullable<z.ZodString>;
173
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
174
+ birthLocationId: z.ZodNullable<z.ZodString>;
175
+ residenceLocationId: z.ZodNullable<z.ZodString>;
176
+ isInTrash: z.ZodBoolean;
177
+ movedToTrashDate: z.ZodNullable<z.ZodString>;
178
+ created_at: z.ZodString;
179
+ updated_at: z.ZodString;
180
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
181
+ id: string;
182
+ username: string | null;
183
+ password: string | null;
184
+ phoneNumber: string;
185
+ secondaryPhoneNumber: string | null;
186
+ fullName: string;
187
+ profilePictureUrl: string | null;
188
+ mail: string | null;
189
+ created_at: string;
190
+ updated_at: string;
191
+ shortId: number;
192
+ firstTimeMiExpo: boolean;
193
+ isPhoneVerified: boolean;
194
+ firstName: string | null;
195
+ gender: string | null;
196
+ birthDate: Date | null;
197
+ instagram: string | null;
198
+ dni: string | null;
199
+ alternativeNames: string[];
200
+ birthLocationId: string | null;
201
+ residenceLocationId: string | null;
202
+ isInTrash: boolean;
203
+ movedToTrashDate: string | null;
204
+ }, {
205
+ id: string;
206
+ username: string | null;
207
+ password: string | null;
208
+ phoneNumber: string;
209
+ secondaryPhoneNumber: string | null;
210
+ fullName: string;
211
+ profilePictureUrl: string | null;
212
+ mail: string | null;
213
+ created_at: string;
214
+ updated_at: string;
215
+ shortId: number;
216
+ firstTimeMiExpo: boolean;
217
+ isPhoneVerified: boolean;
218
+ firstName: string | null;
219
+ gender: string | null;
220
+ birthDate: string | null;
221
+ instagram: string | null;
222
+ dni: string | null;
223
+ alternativeNames: string[];
224
+ birthLocationId: string | null;
225
+ residenceLocationId: string | null;
226
+ isInTrash: boolean;
227
+ movedToTrashDate: string | null;
228
+ }>;
229
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
230
+ profile: {
231
+ id: string;
232
+ username: string | null;
233
+ password: string | null;
234
+ phoneNumber: string;
235
+ secondaryPhoneNumber: string | null;
236
+ fullName: string;
237
+ profilePictureUrl: string | null;
238
+ mail: string | null;
239
+ created_at: string;
240
+ updated_at: string;
241
+ shortId: number;
242
+ firstTimeMiExpo: boolean;
243
+ isPhoneVerified: boolean;
244
+ firstName: string | null;
245
+ gender: string | null;
246
+ birthDate: Date | null;
247
+ instagram: string | null;
248
+ dni: string | null;
249
+ alternativeNames: string[];
250
+ birthLocationId: string | null;
251
+ residenceLocationId: string | null;
252
+ isInTrash: boolean;
253
+ movedToTrashDate: string | null;
254
+ };
255
+ success: boolean;
256
+ }, {
257
+ profile: {
258
+ id: string;
259
+ username: string | null;
260
+ password: string | null;
261
+ phoneNumber: string;
262
+ secondaryPhoneNumber: string | null;
263
+ fullName: string;
264
+ profilePictureUrl: string | null;
265
+ mail: string | null;
266
+ created_at: string;
267
+ updated_at: string;
268
+ shortId: number;
269
+ firstTimeMiExpo: boolean;
270
+ isPhoneVerified: boolean;
271
+ firstName: string | null;
272
+ gender: string | null;
273
+ birthDate: string | null;
274
+ instagram: string | null;
275
+ dni: string | null;
276
+ alternativeNames: string[];
277
+ birthLocationId: string | null;
278
+ residenceLocationId: string | null;
279
+ isInTrash: boolean;
280
+ movedToTrashDate: string | null;
281
+ };
282
+ success: boolean;
283
+ }>>;
284
+ export declare class VerifyOtpResponseDto extends VerifyOtpResponseDto_base {
285
+ }
286
+ export {};
@@ -0,0 +1,28 @@
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.VerifyOtpResponseDto = exports.verifyOtpResponseSchema = exports.VerifyOtpDto = exports.verifyOtpSchema = void 0;
7
+ const translate_1 = require("../../i18n/translate");
8
+ const constants_1 = require("../constants");
9
+ const profile_dto_1 = require("../../profile/dto/profile.dto");
10
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
11
+ const zod_1 = __importDefault(require("zod"));
12
+ exports.verifyOtpSchema = zod_1.default.object({
13
+ phoneNumber: profile_dto_1.profileSchema.shape.phoneNumber,
14
+ code: zod_1.default.string().length(constants_1.OTP_LENGTH, {
15
+ message: (0, translate_1.translate)('route.otp.verify.error-format'),
16
+ }),
17
+ });
18
+ class VerifyOtpDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.verifyOtpSchema) {
19
+ }
20
+ exports.VerifyOtpDto = VerifyOtpDto;
21
+ exports.verifyOtpResponseSchema = zod_1.default.object({
22
+ success: zod_1.default.boolean(),
23
+ profile: profile_dto_1.profileSchema,
24
+ });
25
+ class VerifyOtpResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.verifyOtpResponseSchema) {
26
+ }
27
+ exports.VerifyOtpResponseDto = VerifyOtpResponseDto;
28
+ //# sourceMappingURL=verify-otp.dto.js.map
@@ -0,0 +1,2 @@
1
+ export * from './dto/send-otp.dto';
2
+ export * from './dto/verify-otp.dto';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/send-otp.dto"), exports);
18
+ __exportStar(require("./dto/verify-otp.dto"), exports);
19
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ export declare const PRISMA_SERVICE: unique symbol;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRISMA_SERVICE = void 0;
4
+ exports.PRISMA_SERVICE = Symbol('PrismaService');
5
+ //# sourceMappingURL=constants.js.map
@@ -3,8 +3,12 @@ export declare const createProfileSchema: z.ZodObject<{
3
3
  profile: z.ZodObject<z.objectUtil.extendShape<Pick<{
4
4
  id: z.ZodString;
5
5
  shortId: z.ZodNumber;
6
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
7
- secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
6
+ firstTimeMiExpo: z.ZodBoolean;
7
+ username: z.ZodNullable<z.ZodString>;
8
+ password: z.ZodNullable<z.ZodString>;
9
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
+ isPhoneVerified: z.ZodBoolean;
11
+ secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
8
12
  fullName: z.ZodString;
9
13
  firstName: z.ZodNullable<z.ZodString>;
10
14
  gender: z.ZodNullable<z.ZodString>;
@@ -215,8 +219,8 @@ export declare const createProfileSchema: z.ZodObject<{
215
219
  }>;
216
220
  declare const CreateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
217
221
  profile: z.ZodObject<{
218
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
219
- secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
222
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
223
+ secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
220
224
  fullName: z.ZodString;
221
225
  profilePictureUrl: z.ZodNullable<z.ZodString>;
222
226
  mail: z.ZodNullable<z.ZodString>;
@@ -409,8 +413,12 @@ declare const similarProfileSchema: z.ZodObject<{
409
413
  profile: z.ZodObject<Pick<{
410
414
  id: z.ZodString;
411
415
  shortId: z.ZodNumber;
412
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
413
- secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
416
+ firstTimeMiExpo: z.ZodBoolean;
417
+ username: z.ZodNullable<z.ZodString>;
418
+ password: z.ZodNullable<z.ZodString>;
419
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
420
+ isPhoneVerified: z.ZodBoolean;
421
+ secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
414
422
  fullName: z.ZodString;
415
423
  firstName: z.ZodNullable<z.ZodString>;
416
424
  gender: z.ZodNullable<z.ZodString>;
@@ -460,8 +468,12 @@ export declare const createProfileResponseSchema: z.ZodObject<{
460
468
  profile: z.ZodObject<Pick<{
461
469
  id: z.ZodString;
462
470
  shortId: z.ZodNumber;
463
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
464
- secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
471
+ firstTimeMiExpo: z.ZodBoolean;
472
+ username: z.ZodNullable<z.ZodString>;
473
+ password: z.ZodNullable<z.ZodString>;
474
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
475
+ isPhoneVerified: z.ZodBoolean;
476
+ secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
465
477
  fullName: z.ZodString;
466
478
  firstName: z.ZodNullable<z.ZodString>;
467
479
  gender: z.ZodNullable<z.ZodString>;
@@ -579,8 +591,12 @@ declare const CreateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
579
591
  profile: z.ZodObject<Pick<{
580
592
  id: z.ZodString;
581
593
  shortId: z.ZodNumber;
582
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
583
- secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
594
+ firstTimeMiExpo: z.ZodBoolean;
595
+ username: z.ZodNullable<z.ZodString>;
596
+ password: z.ZodNullable<z.ZodString>;
597
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
598
+ isPhoneVerified: z.ZodBoolean;
599
+ secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
584
600
  fullName: z.ZodString;
585
601
  firstName: z.ZodNullable<z.ZodString>;
586
602
  gender: z.ZodNullable<z.ZodString>;