expo-backend-types 0.32.0 → 0.33.0-EXPO-308-auth.1

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