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