expo-backend-types 0.33.0 → 0.34.0-EXPO-319-ver-eventos-disponibles.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 (95) hide show
  1. package/dist/src/exports.d.ts +3 -0
  2. package/dist/src/exports.js +3 -0
  3. package/dist/src/i18n/es.d.ts +25 -0
  4. package/dist/src/i18n/es.js +25 -0
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/image/constants.d.ts +5 -0
  7. package/dist/src/image/constants.js +9 -0
  8. package/dist/src/location/dto/find-all-location.dto.js +2 -2
  9. package/dist/src/location/exports.d.ts +0 -1
  10. package/dist/src/location/exports.js +0 -1
  11. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  12. package/dist/src/message/dto/non-read-messages.dto.js +2 -2
  13. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  14. package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
  15. package/dist/src/mi-expo/dto/get-me.dto.d.ts +337 -0
  16. package/dist/src/mi-expo/dto/get-me.dto.js +16 -0
  17. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +311 -0
  18. package/dist/src/mi-expo/dto/login-with-phone.dto.js +29 -0
  19. package/dist/src/mi-expo/dto/login.dto.d.ts +327 -0
  20. package/dist/src/mi-expo/dto/login.dto.js +31 -0
  21. package/dist/src/mi-expo/dto/my-events.dto.d.ts +115 -0
  22. package/dist/src/mi-expo/dto/my-events.dto.js +28 -0
  23. package/dist/src/mi-expo/dto/update-me.dto.d.ts +352 -0
  24. package/dist/src/mi-expo/dto/update-me.dto.js +31 -0
  25. package/dist/src/mi-expo/exports.d.ts +5 -0
  26. package/dist/src/mi-expo/exports.js +22 -0
  27. package/dist/src/otp/constants.d.ts +2 -0
  28. package/dist/src/otp/constants.js +6 -0
  29. package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
  30. package/dist/src/otp/dto/send-otp.dto.js +35 -0
  31. package/dist/src/otp/dto/verify-otp.dto.d.ts +455 -0
  32. package/dist/src/otp/dto/verify-otp.dto.js +46 -0
  33. package/dist/src/otp/exports.d.ts +2 -0
  34. package/dist/src/otp/exports.js +19 -0
  35. package/dist/src/prisma/constants.d.ts +1 -0
  36. package/dist/src/prisma/constants.js +5 -0
  37. package/dist/src/profile/dto/create-profile.dto.d.ts +48 -14
  38. package/dist/src/profile/dto/create-profile.dto.js +9 -7
  39. package/dist/src/profile/dto/delete-profile.dto.d.ts +30 -6
  40. package/dist/src/profile/dto/delete-profile.dto.js +2 -2
  41. package/dist/src/profile/dto/find-all-profile.dto.d.ts +47 -7
  42. package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
  43. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +75 -11
  44. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
  45. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +32 -13
  46. package/dist/src/profile/dto/find-by-id-profile.dto.js +7 -5
  47. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +30 -6
  48. package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
  49. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +47 -7
  50. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
  51. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +47 -7
  52. package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
  53. package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
  54. package/dist/src/profile/dto/find-trash.dto.js +2 -2
  55. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +47 -7
  56. package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
  57. package/dist/src/profile/dto/profile.dto.d.ts +44 -30
  58. package/dist/src/profile/dto/profile.dto.js +6 -63
  59. package/dist/src/profile/dto/update-profile.dto.d.ts +54 -12
  60. package/dist/src/profile/dto/update-profile.dto.js +9 -6
  61. package/dist/src/schema/exports.d.ts +2 -0
  62. package/dist/src/schema/exports.js +19 -0
  63. package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
  64. package/dist/src/schema/profile.schema.d.ts +74 -0
  65. package/dist/src/schema/profile.schema.js +133 -0
  66. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -4
  67. package/dist/src/shared/dto-modification/zod-without-dates.js +8 -0
  68. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  69. package/dist/src/tag/dto/massive-allocation.dto.d.ts +47 -7
  70. package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
  71. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +47 -7
  72. package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
  73. package/dist/src/ticket/constants.d.ts +16 -0
  74. package/dist/src/ticket/constants.js +272 -0
  75. package/dist/src/webhook/constants.d.ts +1 -0
  76. package/dist/src/webhook/constants.js +5 -0
  77. package/dist/types/prisma-schema/edge.js +39 -24
  78. package/dist/types/prisma-schema/index-browser.js +19 -9
  79. package/dist/types/prisma-schema/index.d.ts +4672 -611
  80. package/dist/types/prisma-schema/index.js +39 -24
  81. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  82. package/dist/types/prisma-schema/package.json +8 -2
  83. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  84. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  85. package/dist/types/prisma-schema/runtime/index-browser.d.ts +3 -1
  86. package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
  87. package/dist/types/prisma-schema/runtime/library.d.ts +205 -153
  88. package/dist/types/prisma-schema/runtime/library.js +55 -55
  89. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  90. package/dist/types/prisma-schema/runtime/wasm.js +17 -17
  91. package/dist/types/prisma-schema/schema.prisma +29 -3
  92. package/dist/types/prisma-schema/wasm.js +19 -9
  93. package/dist/types/schema.d.ts +553 -2
  94. package/package.json +41 -40
  95. /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
@@ -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_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.sendOtpSchema = zod_1.default.object({
11
+ phoneNumber: profile_schema_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,455 @@
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<z.objectUtil.extendShape<{
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.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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
+ }, {
51
+ residenceLocation: z.ZodNullable<z.ZodObject<Pick<{
52
+ id: z.ZodString;
53
+ latitude: z.ZodNumber;
54
+ longitude: z.ZodNumber;
55
+ country: z.ZodString;
56
+ state: z.ZodString;
57
+ city: z.ZodString;
58
+ created_at: z.ZodDate;
59
+ updated_at: z.ZodDate;
60
+ }, "latitude" | "longitude" | "country" | "city">, "strip", z.ZodTypeAny, {
61
+ latitude: number;
62
+ longitude: number;
63
+ country: string;
64
+ city: string;
65
+ }, {
66
+ latitude: number;
67
+ longitude: number;
68
+ country: string;
69
+ city: string;
70
+ }>>;
71
+ birthLocation: z.ZodNullable<z.ZodObject<Pick<{
72
+ id: z.ZodString;
73
+ latitude: z.ZodNumber;
74
+ longitude: z.ZodNumber;
75
+ country: z.ZodString;
76
+ state: z.ZodString;
77
+ city: z.ZodString;
78
+ created_at: z.ZodDate;
79
+ updated_at: z.ZodDate;
80
+ }, "latitude" | "longitude" | "country" | "city">, "strip", z.ZodTypeAny, {
81
+ latitude: number;
82
+ longitude: number;
83
+ country: string;
84
+ city: string;
85
+ }, {
86
+ latitude: number;
87
+ longitude: number;
88
+ country: string;
89
+ city: string;
90
+ }>>;
91
+ }>, "strip", z.ZodTypeAny, {
92
+ id: string;
93
+ username: string | null;
94
+ password: string | null;
95
+ phoneNumber: string;
96
+ secondaryPhoneNumber: string | null;
97
+ fullName: string;
98
+ profilePictureUrl: string | null;
99
+ mail: string | null;
100
+ created_at: Date;
101
+ updated_at: Date;
102
+ shortId: number;
103
+ firstTimeMiExpo: boolean;
104
+ isPhoneVerified: boolean;
105
+ firstName: string | null;
106
+ gender: string | null;
107
+ birthDate: Date | null;
108
+ instagram: string | null;
109
+ dni: string | null;
110
+ alternativeNames: string[];
111
+ birthLocationId: string | null;
112
+ residenceLocationId: string | null;
113
+ isInTrash: boolean;
114
+ movedToTrashDate: Date | null;
115
+ birthLocation: {
116
+ latitude: number;
117
+ longitude: number;
118
+ country: string;
119
+ city: string;
120
+ } | null;
121
+ residenceLocation: {
122
+ latitude: number;
123
+ longitude: number;
124
+ country: string;
125
+ city: string;
126
+ } | null;
127
+ }, {
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
+ birthLocation: {
152
+ latitude: number;
153
+ longitude: number;
154
+ country: string;
155
+ city: string;
156
+ } | null;
157
+ residenceLocation: {
158
+ latitude: number;
159
+ longitude: number;
160
+ country: string;
161
+ city: string;
162
+ } | null;
163
+ }>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ profile: {
166
+ id: string;
167
+ username: string | null;
168
+ password: string | null;
169
+ phoneNumber: string;
170
+ secondaryPhoneNumber: string | null;
171
+ fullName: string;
172
+ profilePictureUrl: string | null;
173
+ mail: string | null;
174
+ created_at: Date;
175
+ updated_at: Date;
176
+ shortId: number;
177
+ firstTimeMiExpo: boolean;
178
+ isPhoneVerified: boolean;
179
+ firstName: string | null;
180
+ gender: string | null;
181
+ birthDate: Date | null;
182
+ instagram: string | null;
183
+ dni: string | null;
184
+ alternativeNames: string[];
185
+ birthLocationId: string | null;
186
+ residenceLocationId: string | null;
187
+ isInTrash: boolean;
188
+ movedToTrashDate: Date | null;
189
+ birthLocation: {
190
+ latitude: number;
191
+ longitude: number;
192
+ country: string;
193
+ city: string;
194
+ } | null;
195
+ residenceLocation: {
196
+ latitude: number;
197
+ longitude: number;
198
+ country: string;
199
+ city: string;
200
+ } | null;
201
+ };
202
+ success: boolean;
203
+ }, {
204
+ profile: {
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: Date;
214
+ updated_at: Date;
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: Date | null;
228
+ birthLocation: {
229
+ latitude: number;
230
+ longitude: number;
231
+ country: string;
232
+ city: string;
233
+ } | null;
234
+ residenceLocation: {
235
+ latitude: number;
236
+ longitude: number;
237
+ country: string;
238
+ city: string;
239
+ } | null;
240
+ };
241
+ success: boolean;
242
+ }>;
243
+ declare const VerifyOtpResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
244
+ success: z.ZodBoolean;
245
+ profile: z.ZodObject<{
246
+ id: z.ZodString;
247
+ shortId: z.ZodNumber;
248
+ firstTimeMiExpo: z.ZodBoolean;
249
+ username: z.ZodNullable<z.ZodString>;
250
+ password: z.ZodNullable<z.ZodString>;
251
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
252
+ isPhoneVerified: z.ZodBoolean;
253
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
254
+ fullName: z.ZodString;
255
+ firstName: z.ZodNullable<z.ZodString>;
256
+ gender: z.ZodNullable<z.ZodString>;
257
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
258
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
259
+ instagram: z.ZodNullable<z.ZodString>;
260
+ mail: z.ZodNullable<z.ZodString>;
261
+ dni: z.ZodNullable<z.ZodString>;
262
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
263
+ birthLocationId: z.ZodNullable<z.ZodString>;
264
+ residenceLocationId: z.ZodNullable<z.ZodString>;
265
+ isInTrash: z.ZodBoolean;
266
+ movedToTrashDate: z.ZodNullable<z.ZodString>;
267
+ created_at: z.ZodString;
268
+ updated_at: z.ZodString;
269
+ residenceLocation: z.ZodNullable<z.ZodObject<{
270
+ latitude: z.ZodNumber;
271
+ longitude: z.ZodNumber;
272
+ country: z.ZodString;
273
+ city: z.ZodString;
274
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
275
+ latitude: number;
276
+ longitude: number;
277
+ country: string;
278
+ city: string;
279
+ }, {
280
+ latitude: number;
281
+ longitude: number;
282
+ country: string;
283
+ city: string;
284
+ }>>;
285
+ birthLocation: z.ZodNullable<z.ZodObject<{
286
+ latitude: z.ZodNumber;
287
+ longitude: z.ZodNumber;
288
+ country: z.ZodString;
289
+ city: z.ZodString;
290
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
291
+ latitude: number;
292
+ longitude: number;
293
+ country: string;
294
+ city: string;
295
+ }, {
296
+ latitude: number;
297
+ longitude: number;
298
+ country: string;
299
+ city: string;
300
+ }>>;
301
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
302
+ id: string;
303
+ username: string | null;
304
+ password: string | null;
305
+ phoneNumber: string;
306
+ secondaryPhoneNumber: string | null;
307
+ fullName: string;
308
+ profilePictureUrl: string | null;
309
+ mail: string | null;
310
+ created_at: string;
311
+ updated_at: string;
312
+ shortId: number;
313
+ firstTimeMiExpo: boolean;
314
+ isPhoneVerified: boolean;
315
+ firstName: string | null;
316
+ gender: string | null;
317
+ birthDate: string | null;
318
+ instagram: string | null;
319
+ dni: string | null;
320
+ alternativeNames: string[];
321
+ birthLocationId: string | null;
322
+ residenceLocationId: string | null;
323
+ isInTrash: boolean;
324
+ movedToTrashDate: string | null;
325
+ birthLocation: {
326
+ latitude: number;
327
+ longitude: number;
328
+ country: string;
329
+ city: string;
330
+ } | null;
331
+ residenceLocation: {
332
+ latitude: number;
333
+ longitude: number;
334
+ country: string;
335
+ city: string;
336
+ } | null;
337
+ }, {
338
+ id: string;
339
+ username: string | null;
340
+ password: string | null;
341
+ phoneNumber: string;
342
+ secondaryPhoneNumber: string | null;
343
+ fullName: string;
344
+ profilePictureUrl: string | null;
345
+ mail: string | null;
346
+ created_at: string;
347
+ updated_at: string;
348
+ shortId: number;
349
+ firstTimeMiExpo: boolean;
350
+ isPhoneVerified: boolean;
351
+ firstName: string | null;
352
+ gender: string | null;
353
+ birthDate: string | null;
354
+ instagram: string | null;
355
+ dni: string | null;
356
+ alternativeNames: string[];
357
+ birthLocationId: string | null;
358
+ residenceLocationId: string | null;
359
+ isInTrash: boolean;
360
+ movedToTrashDate: string | null;
361
+ birthLocation: {
362
+ latitude: number;
363
+ longitude: number;
364
+ country: string;
365
+ city: string;
366
+ } | null;
367
+ residenceLocation: {
368
+ latitude: number;
369
+ longitude: number;
370
+ country: string;
371
+ city: string;
372
+ } | null;
373
+ }>;
374
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
375
+ profile: {
376
+ id: string;
377
+ username: string | null;
378
+ password: string | null;
379
+ phoneNumber: string;
380
+ secondaryPhoneNumber: string | null;
381
+ fullName: string;
382
+ profilePictureUrl: string | null;
383
+ mail: string | null;
384
+ created_at: string;
385
+ updated_at: string;
386
+ shortId: number;
387
+ firstTimeMiExpo: boolean;
388
+ isPhoneVerified: boolean;
389
+ firstName: string | null;
390
+ gender: string | null;
391
+ birthDate: string | null;
392
+ instagram: string | null;
393
+ dni: string | null;
394
+ alternativeNames: string[];
395
+ birthLocationId: string | null;
396
+ residenceLocationId: string | null;
397
+ isInTrash: boolean;
398
+ movedToTrashDate: string | null;
399
+ birthLocation: {
400
+ latitude: number;
401
+ longitude: number;
402
+ country: string;
403
+ city: string;
404
+ } | null;
405
+ residenceLocation: {
406
+ latitude: number;
407
+ longitude: number;
408
+ country: string;
409
+ city: string;
410
+ } | null;
411
+ };
412
+ success: boolean;
413
+ }, {
414
+ profile: {
415
+ id: string;
416
+ username: string | null;
417
+ password: string | null;
418
+ phoneNumber: string;
419
+ secondaryPhoneNumber: string | null;
420
+ fullName: string;
421
+ profilePictureUrl: string | null;
422
+ mail: string | null;
423
+ created_at: string;
424
+ updated_at: string;
425
+ shortId: number;
426
+ firstTimeMiExpo: boolean;
427
+ isPhoneVerified: boolean;
428
+ firstName: string | null;
429
+ gender: string | null;
430
+ birthDate: string | null;
431
+ instagram: string | null;
432
+ dni: string | null;
433
+ alternativeNames: string[];
434
+ birthLocationId: string | null;
435
+ residenceLocationId: string | null;
436
+ isInTrash: boolean;
437
+ movedToTrashDate: string | null;
438
+ birthLocation: {
439
+ latitude: number;
440
+ longitude: number;
441
+ country: string;
442
+ city: string;
443
+ } | null;
444
+ residenceLocation: {
445
+ latitude: number;
446
+ longitude: number;
447
+ country: string;
448
+ city: string;
449
+ } | null;
450
+ };
451
+ success: boolean;
452
+ }>>;
453
+ export declare class VerifyOtpResponseDto extends VerifyOtpResponseDto_base {
454
+ }
455
+ export {};
@@ -0,0 +1,46 @@
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 location_schema_1 = require("../../schema/location.schema");
10
+ const profile_schema_1 = require("../../schema/profile.schema");
11
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
12
+ const zod_1 = __importDefault(require("zod"));
13
+ exports.verifyOtpSchema = zod_1.default.object({
14
+ phoneNumber: profile_schema_1.profileSchema.shape.phoneNumber,
15
+ code: zod_1.default.string().length(constants_1.OTP_LENGTH, {
16
+ message: (0, translate_1.translate)('route.otp.verify.error-format'),
17
+ }),
18
+ });
19
+ class VerifyOtpDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.verifyOtpSchema) {
20
+ }
21
+ exports.VerifyOtpDto = VerifyOtpDto;
22
+ exports.verifyOtpResponseSchema = zod_1.default.object({
23
+ success: zod_1.default.boolean(),
24
+ profile: profile_schema_1.profileSchema.extend({
25
+ residenceLocation: location_schema_1.locationSchema
26
+ .pick({
27
+ city: true,
28
+ country: true,
29
+ latitude: true,
30
+ longitude: true,
31
+ })
32
+ .nullable(),
33
+ birthLocation: location_schema_1.locationSchema
34
+ .pick({
35
+ city: true,
36
+ country: true,
37
+ latitude: true,
38
+ longitude: true,
39
+ })
40
+ .nullable(),
41
+ }),
42
+ });
43
+ class VerifyOtpResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.verifyOtpResponseSchema) {
44
+ }
45
+ exports.VerifyOtpResponseDto = VerifyOtpResponseDto;
46
+ //# sourceMappingURL=verify-otp.dto.js.map
@@ -0,0 +1,2 @@
1
+ export * from './dto/send-otp.dto';
2
+ export * from './dto/verify-otp.dto';