expo-backend-types 0.4.0 → 0.5.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 (97) hide show
  1. package/dist/src/account/dto/account.dto.d.ts +11 -201
  2. package/dist/src/account/dto/account.dto.js +4 -21
  3. package/dist/src/account/dto/create-account.dto.d.ts +9 -301
  4. package/dist/src/account/dto/create-account.dto.js +3 -4
  5. package/dist/src/account/dto/get-global-filter.dto.d.ts +24 -20
  6. package/dist/src/account/dto/get-global-filter.dto.js +10 -6
  7. package/dist/src/account/dto/get-me.dto.d.ts +214 -188
  8. package/dist/src/account/dto/get-me.dto.js +27 -4
  9. package/dist/src/account/dto/update-global-filter.dto.d.ts +136 -169
  10. package/dist/src/account/dto/update-global-filter.dto.js +7 -15
  11. package/dist/src/auth/dto/login.dto.d.ts +34 -414
  12. package/dist/src/auth/dto/login.dto.js +5 -4
  13. package/dist/src/auth/dto/refresh.dto.d.ts +30 -0
  14. package/dist/src/auth/dto/refresh.dto.js +17 -0
  15. package/dist/src/comment/dto/comment.dto.d.ts +21 -15
  16. package/dist/src/comment/dto/comment.dto.js +11 -6
  17. package/dist/src/comment/dto/create-comment.dto.d.ts +106 -0
  18. package/dist/src/comment/dto/create-comment.dto.js +18 -0
  19. package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +177 -0
  20. package/dist/src/comment/dto/get-by-profile-comment.dto.js +21 -0
  21. package/dist/src/comment/dto/toggle-solve-comment.dto.d.ts +71 -0
  22. package/dist/src/comment/dto/toggle-solve-comment.dto.js +10 -0
  23. package/dist/src/comment/exports.d.ts +3 -0
  24. package/dist/src/comment/exports.js +3 -0
  25. package/dist/src/event/dto/event.dto.d.ts +10 -16
  26. package/dist/src/event/dto/event.dto.js +6 -10
  27. package/dist/src/event-folder/dto/event-folder.dto.d.ts +6 -0
  28. package/dist/src/event-folder/dto/event-folder.dto.js +2 -0
  29. package/dist/src/event-folder/exports.d.ts +1 -0
  30. package/dist/src/event-folder/exports.js +18 -0
  31. package/dist/src/exports.d.ts +5 -3
  32. package/dist/src/exports.js +5 -3
  33. package/dist/src/i18n/es.d.ts +210 -0
  34. package/dist/src/i18n/es.js +212 -0
  35. package/dist/src/i18n/es.js.map +1 -0
  36. package/dist/src/i18n/translate.d.ts +9 -2
  37. package/dist/src/i18n/translate.js +3 -3
  38. package/dist/src/i18n/translate.js.map +1 -1
  39. package/dist/src/profile/dto/profile.dto.d.ts +68 -0
  40. package/dist/src/profile/dto/profile.dto.js +59 -0
  41. package/dist/src/profile/exports.d.ts +1 -0
  42. package/dist/src/profile/exports.js +18 -0
  43. package/dist/src/shared/dto-modification/create-zod-dto-without-date.d.ts +4 -0
  44. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +10 -0
  45. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -0
  46. package/dist/src/shared/dto-modification/without-dates.d.ts +4 -0
  47. package/dist/src/shared/dto-modification/without-dates.js +6 -0
  48. package/dist/src/shared/dto-modification/without-dates.js.map +1 -0
  49. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +8 -0
  50. package/dist/src/shared/dto-modification/zod-without-dates.js +28 -0
  51. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -0
  52. package/dist/src/tag/dto/create-tag.dto.d.ts +5 -16
  53. package/dist/src/tag/dto/create-tag.dto.js +3 -3
  54. package/dist/src/tag/dto/delete-tag.dto.d.ts +7 -7
  55. package/dist/src/tag/dto/delete-tag.dto.js +2 -2
  56. package/dist/src/tag/dto/find-all-tag.dto.d.ts +34 -35
  57. package/dist/src/tag/dto/find-all-tag.dto.js +2 -2
  58. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +35 -36
  59. package/dist/src/tag/dto/find-by-group-tag.dto.js +5 -5
  60. package/dist/src/tag/dto/find-one-tag.dto.d.ts +23 -24
  61. package/dist/src/tag/dto/find-one-tag.dto.js +2 -2
  62. package/dist/src/tag/dto/massive-allocation.dto.d.ts +260 -0
  63. package/dist/src/tag/dto/massive-allocation.dto.js +24 -0
  64. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +260 -0
  65. package/dist/src/tag/dto/massive-deallocation.dto.js +24 -0
  66. package/dist/src/tag/dto/tag.dto.d.ts +7 -7
  67. package/dist/src/tag/dto/tag.dto.js +3 -3
  68. package/dist/src/tag/dto/update-tag.dto.d.ts +31 -22
  69. package/dist/src/tag/dto/update-tag.dto.js +5 -7
  70. package/dist/src/tag/exports.d.ts +2 -1
  71. package/dist/src/tag/exports.js +2 -1
  72. package/dist/src/tag-group/dto/create-tag-group.dto.d.ts +78 -0
  73. package/dist/src/tag-group/dto/create-tag-group.dto.js +18 -0
  74. package/dist/src/tag-group/dto/delete-tag-group.dto.d.ts +47 -0
  75. package/dist/src/tag-group/dto/delete-tag-group.dto.js +10 -0
  76. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +207 -0
  77. package/dist/src/tag-group/dto/find-all-tag-group.dto.js +19 -0
  78. package/dist/src/{tag/dto/find-all-grouped-tag.dto.d.ts → tag-group/dto/find-all-with-tags.dto.d.ts} +24 -28
  79. package/dist/src/{tag/dto/find-all-grouped-tag.dto.js → tag-group/dto/find-all-with-tags.dto.js} +8 -8
  80. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +135 -0
  81. package/dist/src/tag-group/dto/find-one-tag-group.dto.js +17 -0
  82. package/dist/src/tag-group/dto/tag-group.dto.d.ts +9 -9
  83. package/dist/src/tag-group/dto/tag-group.dto.js +5 -3
  84. package/dist/src/tag-group/dto/update-tag-group.dto.d.ts +78 -0
  85. package/dist/src/tag-group/dto/update-tag-group.dto.js +18 -0
  86. package/dist/src/tag-group/exports.d.ts +6 -0
  87. package/dist/src/tag-group/exports.js +6 -0
  88. package/dist/types/prisma-schema/edge.js +4 -4
  89. package/dist/types/prisma-schema/index-browser.js +1 -1
  90. package/dist/types/prisma-schema/index.d.ts +53 -53
  91. package/dist/types/prisma-schema/index.js +4 -4
  92. package/dist/types/prisma-schema/package.json +1 -1
  93. package/dist/types/prisma-schema/schema.prisma +1 -1
  94. package/dist/types/prisma-schema/wasm.js +1 -1
  95. package/dist/types/schema.d.ts +787 -184
  96. package/package.json +10 -6
  97. package/dist/src/i18n/es.json +0 -125
@@ -7,81 +7,10 @@ export declare const loginSchema: z.ZodObject<Pick<{
7
7
  USER: "USER";
8
8
  ADMIN: "ADMIN";
9
9
  }>;
10
- created_at: z.ZodString;
11
- updated_at: z.ZodString;
12
- globalFilter: z.ZodObject<{
13
- tags: z.ZodObject<z.objectUtil.extendShape<Pick<{
14
- id: z.ZodString;
15
- name: z.ZodString;
16
- groupId: z.ZodString;
17
- type: z.ZodNativeEnum<{
18
- PROFILE: "PROFILE";
19
- EVENT: "EVENT";
20
- PARTICIPANT: "PARTICIPANT";
21
- NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
22
- }>;
23
- created_at: z.ZodDate;
24
- updated_at: z.ZodDate;
25
- }, "id" | "name">, {
26
- group: z.ZodObject<Pick<{
27
- id: z.ZodString;
28
- name: z.ZodString;
29
- color: z.ZodString;
30
- isExclusive: z.ZodBoolean;
31
- created_at: z.ZodDate;
32
- updated_at: z.ZodDate;
33
- }, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
34
- id: string;
35
- color: string;
36
- isExclusive: boolean;
37
- }, {
38
- id: string;
39
- color: string;
40
- isExclusive: boolean;
41
- }>;
42
- }>, "strip", z.ZodTypeAny, {
43
- id: string;
44
- name: string;
45
- group: {
46
- id: string;
47
- color: string;
48
- isExclusive: boolean;
49
- };
50
- }, {
51
- id: string;
52
- name: string;
53
- group: {
54
- id: string;
55
- color: string;
56
- isExclusive: boolean;
57
- };
58
- }>;
59
- active: z.ZodBoolean;
60
- }, "strip", z.ZodTypeAny, {
61
- tags: {
62
- id: string;
63
- name: string;
64
- group: {
65
- id: string;
66
- color: string;
67
- isExclusive: boolean;
68
- };
69
- };
70
- active: boolean;
71
- }, {
72
- tags: {
73
- id: string;
74
- name: string;
75
- group: {
76
- id: string;
77
- color: string;
78
- isExclusive: boolean;
79
- };
80
- };
81
- active: boolean;
82
- }>;
83
10
  isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
84
11
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12
+ created_at: z.ZodDate;
13
+ updated_at: z.ZodDate;
85
14
  }, "username" | "password">, "strip", z.ZodTypeAny, {
86
15
  username: string;
87
16
  password: string;
@@ -89,90 +18,10 @@ export declare const loginSchema: z.ZodObject<Pick<{
89
18
  username: string;
90
19
  password: string;
91
20
  }>;
92
- declare const LoginDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<Pick<{
93
- id: z.ZodString;
21
+ declare const LoginDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
94
22
  username: z.ZodString;
95
23
  password: z.ZodString;
96
- role: z.ZodNativeEnum<{
97
- USER: "USER";
98
- ADMIN: "ADMIN";
99
- }>;
100
- created_at: z.ZodString;
101
- updated_at: z.ZodString;
102
- globalFilter: z.ZodObject<{
103
- tags: z.ZodObject<z.objectUtil.extendShape<Pick<{
104
- id: z.ZodString;
105
- name: z.ZodString;
106
- groupId: z.ZodString;
107
- type: z.ZodNativeEnum<{
108
- PROFILE: "PROFILE";
109
- EVENT: "EVENT";
110
- PARTICIPANT: "PARTICIPANT";
111
- NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
112
- }>;
113
- created_at: z.ZodDate;
114
- updated_at: z.ZodDate;
115
- }, "id" | "name">, {
116
- group: z.ZodObject<Pick<{
117
- id: z.ZodString;
118
- name: z.ZodString;
119
- color: z.ZodString;
120
- isExclusive: z.ZodBoolean;
121
- created_at: z.ZodDate;
122
- updated_at: z.ZodDate;
123
- }, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
124
- id: string;
125
- color: string;
126
- isExclusive: boolean;
127
- }, {
128
- id: string;
129
- color: string;
130
- isExclusive: boolean;
131
- }>;
132
- }>, "strip", z.ZodTypeAny, {
133
- id: string;
134
- name: string;
135
- group: {
136
- id: string;
137
- color: string;
138
- isExclusive: boolean;
139
- };
140
- }, {
141
- id: string;
142
- name: string;
143
- group: {
144
- id: string;
145
- color: string;
146
- isExclusive: boolean;
147
- };
148
- }>;
149
- active: z.ZodBoolean;
150
- }, "strip", z.ZodTypeAny, {
151
- tags: {
152
- id: string;
153
- name: string;
154
- group: {
155
- id: string;
156
- color: string;
157
- isExclusive: boolean;
158
- };
159
- };
160
- active: boolean;
161
- }, {
162
- tags: {
163
- id: string;
164
- name: string;
165
- group: {
166
- id: string;
167
- color: string;
168
- isExclusive: boolean;
169
- };
170
- };
171
- active: boolean;
172
- }>;
173
- isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
174
- fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
175
- }, "username" | "password">, "strip", z.ZodTypeAny, {
24
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
176
25
  username: string;
177
26
  password: string;
178
27
  }, {
@@ -190,345 +39,127 @@ export declare const loginResponseSchema: z.ZodObject<{
190
39
  USER: "USER";
191
40
  ADMIN: "ADMIN";
192
41
  }>;
193
- created_at: z.ZodString;
194
- updated_at: z.ZodString;
195
- globalFilter: z.ZodObject<{
196
- tags: z.ZodObject<z.objectUtil.extendShape<Pick<{
197
- id: z.ZodString;
198
- name: z.ZodString;
199
- groupId: z.ZodString;
200
- type: z.ZodNativeEnum<{
201
- PROFILE: "PROFILE";
202
- EVENT: "EVENT";
203
- PARTICIPANT: "PARTICIPANT";
204
- NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
205
- }>;
206
- created_at: z.ZodDate;
207
- updated_at: z.ZodDate;
208
- }, "id" | "name">, {
209
- group: z.ZodObject<Pick<{
210
- id: z.ZodString;
211
- name: z.ZodString;
212
- color: z.ZodString;
213
- isExclusive: z.ZodBoolean;
214
- created_at: z.ZodDate;
215
- updated_at: z.ZodDate;
216
- }, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
217
- id: string;
218
- color: string;
219
- isExclusive: boolean;
220
- }, {
221
- id: string;
222
- color: string;
223
- isExclusive: boolean;
224
- }>;
225
- }>, "strip", z.ZodTypeAny, {
226
- id: string;
227
- name: string;
228
- group: {
229
- id: string;
230
- color: string;
231
- isExclusive: boolean;
232
- };
233
- }, {
234
- id: string;
235
- name: string;
236
- group: {
237
- id: string;
238
- color: string;
239
- isExclusive: boolean;
240
- };
241
- }>;
242
- active: z.ZodBoolean;
243
- }, "strip", z.ZodTypeAny, {
244
- tags: {
245
- id: string;
246
- name: string;
247
- group: {
248
- id: string;
249
- color: string;
250
- isExclusive: boolean;
251
- };
252
- };
253
- active: boolean;
254
- }, {
255
- tags: {
256
- id: string;
257
- name: string;
258
- group: {
259
- id: string;
260
- color: string;
261
- isExclusive: boolean;
262
- };
263
- };
264
- active: boolean;
265
- }>;
266
42
  isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
267
43
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
44
+ created_at: z.ZodDate;
45
+ updated_at: z.ZodDate;
268
46
  }, "password">, "strip", z.ZodTypeAny, {
269
47
  id: string;
270
48
  username: string;
271
49
  role: "USER" | "ADMIN";
272
- created_at: string;
273
- updated_at: string;
274
- globalFilter: {
275
- tags: {
276
- id: string;
277
- name: string;
278
- group: {
279
- id: string;
280
- color: string;
281
- isExclusive: boolean;
282
- };
283
- };
284
- active: boolean;
285
- };
286
50
  isGlobalFilterActive: boolean;
287
51
  fcmToken: string[];
52
+ created_at: Date;
53
+ updated_at: Date;
288
54
  }, {
289
55
  id: string;
290
56
  username: string;
291
57
  role: "USER" | "ADMIN";
292
- created_at: string;
293
- updated_at: string;
294
- globalFilter: {
295
- tags: {
296
- id: string;
297
- name: string;
298
- group: {
299
- id: string;
300
- color: string;
301
- isExclusive: boolean;
302
- };
303
- };
304
- active: boolean;
305
- };
58
+ created_at: Date;
59
+ updated_at: Date;
306
60
  isGlobalFilterActive?: boolean | undefined;
307
61
  fcmToken?: string[] | undefined;
308
62
  }>;
309
63
  backendTokens: z.ZodObject<{
310
64
  accessToken: z.ZodString;
311
65
  refreshToken: z.ZodString;
66
+ expiresIn: z.ZodNumber;
312
67
  }, "strip", z.ZodTypeAny, {
313
68
  accessToken: string;
314
69
  refreshToken: string;
70
+ expiresIn: number;
315
71
  }, {
316
72
  accessToken: string;
317
73
  refreshToken: string;
74
+ expiresIn: number;
318
75
  }>;
319
76
  }, "strip", z.ZodTypeAny, {
320
77
  user: {
321
78
  id: string;
322
79
  username: string;
323
80
  role: "USER" | "ADMIN";
324
- created_at: string;
325
- updated_at: string;
326
- globalFilter: {
327
- tags: {
328
- id: string;
329
- name: string;
330
- group: {
331
- id: string;
332
- color: string;
333
- isExclusive: boolean;
334
- };
335
- };
336
- active: boolean;
337
- };
338
81
  isGlobalFilterActive: boolean;
339
82
  fcmToken: string[];
83
+ created_at: Date;
84
+ updated_at: Date;
340
85
  };
341
86
  backendTokens: {
342
87
  accessToken: string;
343
88
  refreshToken: string;
89
+ expiresIn: number;
344
90
  };
345
91
  }, {
346
92
  user: {
347
93
  id: string;
348
94
  username: string;
349
95
  role: "USER" | "ADMIN";
350
- created_at: string;
351
- updated_at: string;
352
- globalFilter: {
353
- tags: {
354
- id: string;
355
- name: string;
356
- group: {
357
- id: string;
358
- color: string;
359
- isExclusive: boolean;
360
- };
361
- };
362
- active: boolean;
363
- };
96
+ created_at: Date;
97
+ updated_at: Date;
364
98
  isGlobalFilterActive?: boolean | undefined;
365
99
  fcmToken?: string[] | undefined;
366
100
  };
367
101
  backendTokens: {
368
102
  accessToken: string;
369
103
  refreshToken: string;
104
+ expiresIn: number;
370
105
  };
371
106
  }>;
372
107
  declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
373
- user: z.ZodObject<Omit<{
108
+ user: z.ZodObject<{
374
109
  id: z.ZodString;
375
110
  username: z.ZodString;
376
- password: z.ZodString;
377
111
  role: z.ZodNativeEnum<{
378
112
  USER: "USER";
379
113
  ADMIN: "ADMIN";
380
114
  }>;
381
- created_at: z.ZodString;
382
- updated_at: z.ZodString;
383
- globalFilter: z.ZodObject<{
384
- tags: z.ZodObject<z.objectUtil.extendShape<Pick<{
385
- id: z.ZodString;
386
- name: z.ZodString;
387
- groupId: z.ZodString;
388
- type: z.ZodNativeEnum<{
389
- PROFILE: "PROFILE";
390
- EVENT: "EVENT";
391
- PARTICIPANT: "PARTICIPANT";
392
- NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
393
- }>;
394
- created_at: z.ZodDate;
395
- updated_at: z.ZodDate;
396
- }, "id" | "name">, {
397
- group: z.ZodObject<Pick<{
398
- id: z.ZodString;
399
- name: z.ZodString;
400
- color: z.ZodString;
401
- isExclusive: z.ZodBoolean;
402
- created_at: z.ZodDate;
403
- updated_at: z.ZodDate;
404
- }, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
405
- id: string;
406
- color: string;
407
- isExclusive: boolean;
408
- }, {
409
- id: string;
410
- color: string;
411
- isExclusive: boolean;
412
- }>;
413
- }>, "strip", z.ZodTypeAny, {
414
- id: string;
415
- name: string;
416
- group: {
417
- id: string;
418
- color: string;
419
- isExclusive: boolean;
420
- };
421
- }, {
422
- id: string;
423
- name: string;
424
- group: {
425
- id: string;
426
- color: string;
427
- isExclusive: boolean;
428
- };
429
- }>;
430
- active: z.ZodBoolean;
431
- }, "strip", z.ZodTypeAny, {
432
- tags: {
433
- id: string;
434
- name: string;
435
- group: {
436
- id: string;
437
- color: string;
438
- isExclusive: boolean;
439
- };
440
- };
441
- active: boolean;
442
- }, {
443
- tags: {
444
- id: string;
445
- name: string;
446
- group: {
447
- id: string;
448
- color: string;
449
- isExclusive: boolean;
450
- };
451
- };
452
- active: boolean;
453
- }>;
454
115
  isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
455
116
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
456
- }, "password">, "strip", z.ZodTypeAny, {
117
+ created_at: z.ZodString;
118
+ updated_at: z.ZodString;
119
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
457
120
  id: string;
458
121
  username: string;
459
122
  role: "USER" | "ADMIN";
460
- created_at: string;
461
- updated_at: string;
462
- globalFilter: {
463
- tags: {
464
- id: string;
465
- name: string;
466
- group: {
467
- id: string;
468
- color: string;
469
- isExclusive: boolean;
470
- };
471
- };
472
- active: boolean;
473
- };
474
123
  isGlobalFilterActive: boolean;
475
124
  fcmToken: string[];
125
+ created_at: string;
126
+ updated_at: string;
476
127
  }, {
477
128
  id: string;
478
129
  username: string;
479
130
  role: "USER" | "ADMIN";
480
131
  created_at: string;
481
132
  updated_at: string;
482
- globalFilter: {
483
- tags: {
484
- id: string;
485
- name: string;
486
- group: {
487
- id: string;
488
- color: string;
489
- isExclusive: boolean;
490
- };
491
- };
492
- active: boolean;
493
- };
494
133
  isGlobalFilterActive?: boolean | undefined;
495
134
  fcmToken?: string[] | undefined;
496
135
  }>;
497
136
  backendTokens: z.ZodObject<{
498
137
  accessToken: z.ZodString;
499
138
  refreshToken: z.ZodString;
500
- }, "strip", z.ZodTypeAny, {
139
+ expiresIn: z.ZodNumber;
140
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
501
141
  accessToken: string;
502
142
  refreshToken: string;
143
+ expiresIn: number;
503
144
  }, {
504
145
  accessToken: string;
505
146
  refreshToken: string;
147
+ expiresIn: number;
506
148
  }>;
507
- }, "strip", z.ZodTypeAny, {
149
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
508
150
  user: {
509
151
  id: string;
510
152
  username: string;
511
153
  role: "USER" | "ADMIN";
512
- created_at: string;
513
- updated_at: string;
514
- globalFilter: {
515
- tags: {
516
- id: string;
517
- name: string;
518
- group: {
519
- id: string;
520
- color: string;
521
- isExclusive: boolean;
522
- };
523
- };
524
- active: boolean;
525
- };
526
154
  isGlobalFilterActive: boolean;
527
155
  fcmToken: string[];
156
+ created_at: string;
157
+ updated_at: string;
528
158
  };
529
159
  backendTokens: {
530
160
  accessToken: string;
531
161
  refreshToken: string;
162
+ expiresIn: number;
532
163
  };
533
164
  }, {
534
165
  user: {
@@ -537,24 +168,13 @@ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
537
168
  role: "USER" | "ADMIN";
538
169
  created_at: string;
539
170
  updated_at: string;
540
- globalFilter: {
541
- tags: {
542
- id: string;
543
- name: string;
544
- group: {
545
- id: string;
546
- color: string;
547
- isExclusive: boolean;
548
- };
549
- };
550
- active: boolean;
551
- };
552
171
  isGlobalFilterActive?: boolean | undefined;
553
172
  fcmToken?: string[] | undefined;
554
173
  };
555
174
  backendTokens: {
556
175
  accessToken: string;
557
176
  refreshToken: string;
177
+ expiresIn: number;
558
178
  };
559
179
  }>>;
560
180
  export declare class LoginResponseDto extends LoginResponseDto_base {
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.LoginResponseDto = exports.loginResponseSchema = exports.LoginDto = exports.loginSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
9
7
  const account_dto_1 = require("../../account/dto/account.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
10
  exports.loginSchema = account_dto_1.accountSchema.pick({
11
11
  username: true,
12
12
  password: true,
13
13
  });
14
- class LoginDto extends (0, zod_nestjs_1.createZodDto)(exports.loginSchema) {
14
+ class LoginDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.loginSchema) {
15
15
  }
16
16
  exports.LoginDto = LoginDto;
17
17
  exports.loginResponseSchema = zod_1.default.object({
@@ -21,9 +21,10 @@ exports.loginResponseSchema = zod_1.default.object({
21
21
  backendTokens: zod_1.default.object({
22
22
  accessToken: zod_1.default.string(),
23
23
  refreshToken: zod_1.default.string(),
24
+ expiresIn: zod_1.default.number(),
24
25
  }),
25
26
  });
26
- class LoginResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.loginResponseSchema) {
27
+ class LoginResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.loginResponseSchema) {
27
28
  }
28
29
  exports.LoginResponseDto = LoginResponseDto;
29
30
  //# sourceMappingURL=login.dto.js.map
@@ -0,0 +1,30 @@
1
+ import z from 'zod';
2
+ export declare const refreshResponseSchema: z.ZodObject<{
3
+ refreshToken: z.ZodString;
4
+ accessToken: z.ZodString;
5
+ expiresIn: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ accessToken: string;
8
+ refreshToken: string;
9
+ expiresIn: number;
10
+ }, {
11
+ accessToken: string;
12
+ refreshToken: string;
13
+ expiresIn: number;
14
+ }>;
15
+ declare const RefreshResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
16
+ refreshToken: z.ZodString;
17
+ accessToken: z.ZodString;
18
+ expiresIn: z.ZodNumber;
19
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
20
+ accessToken: string;
21
+ refreshToken: string;
22
+ expiresIn: number;
23
+ }, {
24
+ accessToken: string;
25
+ refreshToken: string;
26
+ expiresIn: number;
27
+ }>>;
28
+ export declare class RefreshResponseDto extends RefreshResponseDto_base {
29
+ }
30
+ export {};
@@ -0,0 +1,17 @@
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.RefreshResponseDto = exports.refreshResponseSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ exports.refreshResponseSchema = zod_1.default.object({
10
+ refreshToken: zod_1.default.string(),
11
+ accessToken: zod_1.default.string(),
12
+ expiresIn: zod_1.default.number(),
13
+ });
14
+ class RefreshResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.refreshResponseSchema) {
15
+ }
16
+ exports.RefreshResponseDto = RefreshResponseDto;
17
+ //# sourceMappingURL=refresh.dto.js.map