expo-backend-types 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -3,52 +3,57 @@ export declare const commentSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  content: z.ZodString;
5
5
  createdBy: z.ZodString;
6
+ profileId: z.ZodString;
6
7
  isSolvable: z.ZodDefault<z.ZodBoolean>;
7
8
  isSolved: z.ZodDefault<z.ZodBoolean>;
8
- solvedAt: z.ZodOptional<z.ZodString>;
9
+ solvedAt: z.ZodNullable<z.ZodDate>;
9
10
  solvedBy: z.ZodOptional<z.ZodString>;
10
- created_at: z.ZodString;
11
- updated_at: z.ZodString;
11
+ created_at: z.ZodDate;
12
+ updated_at: z.ZodDate;
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  id: string;
14
15
  content: string;
15
- created_at: string;
16
- updated_at: string;
17
- createdBy: string;
18
16
  isSolvable: boolean;
17
+ created_at: Date;
18
+ updated_at: Date;
19
+ createdBy: string;
20
+ profileId: string;
19
21
  isSolved: boolean;
20
- solvedAt?: string | undefined;
22
+ solvedAt: Date | null;
21
23
  solvedBy?: string | undefined;
22
24
  }, {
23
25
  id: string;
24
26
  content: string;
25
- created_at: string;
26
- updated_at: string;
27
+ created_at: Date;
28
+ updated_at: Date;
27
29
  createdBy: string;
30
+ profileId: string;
31
+ solvedAt: Date | null;
28
32
  isSolvable?: boolean | undefined;
29
33
  isSolved?: boolean | undefined;
30
- solvedAt?: string | undefined;
31
34
  solvedBy?: string | undefined;
32
35
  }>;
33
36
  declare const CommentDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
34
37
  id: z.ZodString;
35
38
  content: z.ZodString;
36
39
  createdBy: z.ZodString;
40
+ profileId: z.ZodString;
37
41
  isSolvable: z.ZodDefault<z.ZodBoolean>;
38
42
  isSolved: z.ZodDefault<z.ZodBoolean>;
39
- solvedAt: z.ZodOptional<z.ZodString>;
43
+ solvedAt: z.ZodNullable<z.ZodDate>;
40
44
  solvedBy: z.ZodOptional<z.ZodString>;
41
45
  created_at: z.ZodString;
42
46
  updated_at: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
47
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
44
48
  id: string;
45
49
  content: string;
50
+ isSolvable: boolean;
46
51
  created_at: string;
47
52
  updated_at: string;
48
53
  createdBy: string;
49
- isSolvable: boolean;
54
+ profileId: string;
50
55
  isSolved: boolean;
51
- solvedAt?: string | undefined;
56
+ solvedAt: Date | null;
52
57
  solvedBy?: string | undefined;
53
58
  }, {
54
59
  id: string;
@@ -56,9 +61,10 @@ declare const CommentDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodO
56
61
  created_at: string;
57
62
  updated_at: string;
58
63
  createdBy: string;
64
+ profileId: string;
65
+ solvedAt: Date | null;
59
66
  isSolvable?: boolean | undefined;
60
67
  isSolved?: boolean | undefined;
61
- solvedAt?: string | undefined;
62
68
  solvedBy?: string | undefined;
63
69
  }>>;
64
70
  export declare class CommentDto extends CommentDto_base {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CommentDto = exports.commentSchema = void 0;
4
4
  const account_dto_1 = require("../../account/dto/account.dto");
5
5
  const translate_1 = require("../../i18n/translate");
6
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
7
7
  const zod_1 = require("zod");
8
8
  exports.commentSchema = zod_1.z.object({
9
9
  id: zod_1.z.string().uuid({
@@ -13,14 +13,19 @@ exports.commentSchema = zod_1.z.object({
13
13
  message: (0, translate_1.translate)('model.comment.content.min'),
14
14
  }),
15
15
  createdBy: account_dto_1.accountSchema.shape.id,
16
- isSolvable: zod_1.z.boolean().default(false),
16
+ profileId: account_dto_1.accountSchema.shape.id,
17
+ isSolvable: zod_1.z
18
+ .boolean({
19
+ required_error: (0, translate_1.translate)('model.comment.isSolvable.required'),
20
+ })
21
+ .default(false),
17
22
  isSolved: zod_1.z.boolean().default(false),
18
- solvedAt: zod_1.z.string().datetime().optional(),
23
+ solvedAt: zod_1.z.date().nullable(),
19
24
  solvedBy: account_dto_1.accountSchema.shape.id.optional(),
20
- created_at: zod_1.z.string().datetime(),
21
- updated_at: zod_1.z.string().datetime(),
25
+ created_at: zod_1.z.date(),
26
+ updated_at: zod_1.z.date(),
22
27
  });
23
- class CommentDto extends (0, zod_nestjs_1.createZodDto)(exports.commentSchema) {
28
+ class CommentDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.commentSchema) {
24
29
  }
25
30
  exports.CommentDto = CommentDto;
26
31
  //# sourceMappingURL=comment.dto.js.map
@@ -0,0 +1,106 @@
1
+ export declare const createCommentSchema: import("zod").ZodObject<Pick<{
2
+ id: import("zod").ZodString;
3
+ content: import("zod").ZodString;
4
+ createdBy: import("zod").ZodString;
5
+ profileId: import("zod").ZodString;
6
+ isSolvable: import("zod").ZodDefault<import("zod").ZodBoolean>;
7
+ isSolved: import("zod").ZodDefault<import("zod").ZodBoolean>;
8
+ solvedAt: import("zod").ZodNullable<import("zod").ZodDate>;
9
+ solvedBy: import("zod").ZodOptional<import("zod").ZodString>;
10
+ created_at: import("zod").ZodDate;
11
+ updated_at: import("zod").ZodDate;
12
+ }, "content" | "isSolvable" | "profileId">, "strip", import("zod").ZodTypeAny, {
13
+ content: string;
14
+ isSolvable: boolean;
15
+ profileId: string;
16
+ }, {
17
+ content: string;
18
+ profileId: string;
19
+ isSolvable?: boolean | undefined;
20
+ }>;
21
+ declare const CreateCommentDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
22
+ content: import("zod").ZodString;
23
+ isSolvable: import("zod").ZodDefault<import("zod").ZodBoolean>;
24
+ profileId: import("zod").ZodString;
25
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
26
+ content: string;
27
+ isSolvable: boolean;
28
+ profileId: string;
29
+ }, {
30
+ content: string;
31
+ profileId: string;
32
+ isSolvable?: boolean | undefined;
33
+ }>>;
34
+ export declare class CreateCommentDto extends CreateCommentDto_base {
35
+ }
36
+ export declare const createCommentResponseSchema: import("zod").ZodObject<{
37
+ id: import("zod").ZodString;
38
+ content: import("zod").ZodString;
39
+ createdBy: import("zod").ZodString;
40
+ profileId: import("zod").ZodString;
41
+ isSolvable: import("zod").ZodDefault<import("zod").ZodBoolean>;
42
+ isSolved: import("zod").ZodDefault<import("zod").ZodBoolean>;
43
+ solvedAt: import("zod").ZodNullable<import("zod").ZodDate>;
44
+ solvedBy: import("zod").ZodOptional<import("zod").ZodString>;
45
+ created_at: import("zod").ZodDate;
46
+ updated_at: import("zod").ZodDate;
47
+ }, "strip", import("zod").ZodTypeAny, {
48
+ id: string;
49
+ content: string;
50
+ isSolvable: boolean;
51
+ created_at: Date;
52
+ updated_at: Date;
53
+ createdBy: string;
54
+ profileId: string;
55
+ isSolved: boolean;
56
+ solvedAt: Date | null;
57
+ solvedBy?: string | undefined;
58
+ }, {
59
+ id: string;
60
+ content: string;
61
+ created_at: Date;
62
+ updated_at: Date;
63
+ createdBy: string;
64
+ profileId: string;
65
+ solvedAt: Date | null;
66
+ isSolvable?: boolean | undefined;
67
+ isSolved?: boolean | undefined;
68
+ solvedBy?: string | undefined;
69
+ }>;
70
+ declare const CreateCommentResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
71
+ id: import("zod").ZodString;
72
+ content: import("zod").ZodString;
73
+ createdBy: import("zod").ZodString;
74
+ profileId: import("zod").ZodString;
75
+ isSolvable: import("zod").ZodDefault<import("zod").ZodBoolean>;
76
+ isSolved: import("zod").ZodDefault<import("zod").ZodBoolean>;
77
+ solvedAt: import("zod").ZodNullable<import("zod").ZodDate>;
78
+ solvedBy: import("zod").ZodOptional<import("zod").ZodString>;
79
+ created_at: import("zod").ZodString;
80
+ updated_at: import("zod").ZodString;
81
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
82
+ id: string;
83
+ content: string;
84
+ isSolvable: boolean;
85
+ created_at: string;
86
+ updated_at: string;
87
+ createdBy: string;
88
+ profileId: string;
89
+ isSolved: boolean;
90
+ solvedAt: Date | null;
91
+ solvedBy?: string | undefined;
92
+ }, {
93
+ id: string;
94
+ content: string;
95
+ created_at: string;
96
+ updated_at: string;
97
+ createdBy: string;
98
+ profileId: string;
99
+ solvedAt: Date | null;
100
+ isSolvable?: boolean | undefined;
101
+ isSolved?: boolean | undefined;
102
+ solvedBy?: string | undefined;
103
+ }>>;
104
+ export declare class CreateCommentResponseDto extends CreateCommentResponseDto_base {
105
+ }
106
+ export {};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateCommentResponseDto = exports.createCommentResponseSchema = exports.CreateCommentDto = exports.createCommentSchema = void 0;
4
+ const comment_dto_1 = require("./comment.dto");
5
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
+ exports.createCommentSchema = comment_dto_1.commentSchema.pick({
7
+ content: true,
8
+ profileId: true,
9
+ isSolvable: true,
10
+ });
11
+ class CreateCommentDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createCommentSchema) {
12
+ }
13
+ exports.CreateCommentDto = CreateCommentDto;
14
+ exports.createCommentResponseSchema = comment_dto_1.commentSchema;
15
+ class CreateCommentResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createCommentResponseSchema) {
16
+ }
17
+ exports.CreateCommentResponseDto = CreateCommentResponseDto;
18
+ //# sourceMappingURL=create-comment.dto.js.map
@@ -0,0 +1,177 @@
1
+ import z from 'zod';
2
+ export declare const getByProfileCommentResponseSchema: z.ZodObject<{
3
+ comments: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
+ id: z.ZodString;
5
+ content: z.ZodString;
6
+ createdBy: z.ZodString;
7
+ profileId: z.ZodString;
8
+ isSolvable: z.ZodDefault<z.ZodBoolean>;
9
+ isSolved: z.ZodDefault<z.ZodBoolean>;
10
+ solvedAt: z.ZodNullable<z.ZodDate>;
11
+ solvedBy: z.ZodOptional<z.ZodString>;
12
+ created_at: z.ZodDate;
13
+ updated_at: z.ZodDate;
14
+ }, {
15
+ account: z.ZodObject<Pick<{
16
+ id: z.ZodString;
17
+ username: z.ZodString;
18
+ password: z.ZodString;
19
+ role: z.ZodNativeEnum<{
20
+ USER: "USER";
21
+ ADMIN: "ADMIN";
22
+ }>;
23
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
24
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
25
+ created_at: z.ZodDate;
26
+ updated_at: z.ZodDate;
27
+ }, "username">, "strip", z.ZodTypeAny, {
28
+ username: string;
29
+ }, {
30
+ username: string;
31
+ }>;
32
+ }>, "strip", z.ZodTypeAny, {
33
+ account: {
34
+ username: string;
35
+ };
36
+ id: string;
37
+ content: string;
38
+ isSolvable: boolean;
39
+ created_at: Date;
40
+ updated_at: Date;
41
+ createdBy: string;
42
+ profileId: string;
43
+ isSolved: boolean;
44
+ solvedAt: Date | null;
45
+ solvedBy?: string | undefined;
46
+ }, {
47
+ account: {
48
+ username: string;
49
+ };
50
+ id: string;
51
+ content: string;
52
+ created_at: Date;
53
+ updated_at: Date;
54
+ createdBy: string;
55
+ profileId: string;
56
+ solvedAt: Date | null;
57
+ isSolvable?: boolean | undefined;
58
+ isSolved?: boolean | undefined;
59
+ solvedBy?: string | undefined;
60
+ }>, "many">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ comments: {
63
+ account: {
64
+ username: string;
65
+ };
66
+ id: string;
67
+ content: string;
68
+ isSolvable: boolean;
69
+ created_at: Date;
70
+ updated_at: Date;
71
+ createdBy: string;
72
+ profileId: string;
73
+ isSolved: boolean;
74
+ solvedAt: Date | null;
75
+ solvedBy?: string | undefined;
76
+ }[];
77
+ }, {
78
+ comments: {
79
+ account: {
80
+ username: string;
81
+ };
82
+ id: string;
83
+ content: string;
84
+ created_at: Date;
85
+ updated_at: Date;
86
+ createdBy: string;
87
+ profileId: string;
88
+ solvedAt: Date | null;
89
+ isSolvable?: boolean | undefined;
90
+ isSolved?: boolean | undefined;
91
+ solvedBy?: string | undefined;
92
+ }[];
93
+ }>;
94
+ declare const GetByProfileCommentResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
95
+ comments: z.ZodArray<z.ZodObject<{
96
+ id: z.ZodString;
97
+ content: z.ZodString;
98
+ createdBy: z.ZodString;
99
+ profileId: z.ZodString;
100
+ isSolvable: z.ZodDefault<z.ZodBoolean>;
101
+ isSolved: z.ZodDefault<z.ZodBoolean>;
102
+ solvedAt: z.ZodNullable<z.ZodDate>;
103
+ solvedBy: z.ZodOptional<z.ZodString>;
104
+ created_at: z.ZodString;
105
+ updated_at: z.ZodString;
106
+ account: z.ZodObject<{
107
+ username: z.ZodString;
108
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
109
+ username: string;
110
+ }, {
111
+ username: string;
112
+ }>;
113
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
114
+ account: {
115
+ username: string;
116
+ };
117
+ id: string;
118
+ content: string;
119
+ isSolvable: boolean;
120
+ created_at: string;
121
+ updated_at: string;
122
+ createdBy: string;
123
+ profileId: string;
124
+ isSolved: boolean;
125
+ solvedAt: Date | null;
126
+ solvedBy?: string | undefined;
127
+ }, {
128
+ account: {
129
+ username: string;
130
+ };
131
+ id: string;
132
+ content: string;
133
+ created_at: string;
134
+ updated_at: string;
135
+ createdBy: string;
136
+ profileId: string;
137
+ solvedAt: Date | null;
138
+ isSolvable?: boolean | undefined;
139
+ isSolved?: boolean | undefined;
140
+ solvedBy?: string | undefined;
141
+ }>, "many">;
142
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
143
+ comments: {
144
+ account: {
145
+ username: string;
146
+ };
147
+ id: string;
148
+ content: string;
149
+ isSolvable: boolean;
150
+ created_at: string;
151
+ updated_at: string;
152
+ createdBy: string;
153
+ profileId: string;
154
+ isSolved: boolean;
155
+ solvedAt: Date | null;
156
+ solvedBy?: string | undefined;
157
+ }[];
158
+ }, {
159
+ comments: {
160
+ account: {
161
+ username: string;
162
+ };
163
+ id: string;
164
+ content: string;
165
+ created_at: string;
166
+ updated_at: string;
167
+ createdBy: string;
168
+ profileId: string;
169
+ solvedAt: Date | null;
170
+ isSolvable?: boolean | undefined;
171
+ isSolved?: boolean | undefined;
172
+ solvedBy?: string | undefined;
173
+ }[];
174
+ }>>;
175
+ export declare class GetByProfileCommentResponseDto extends GetByProfileCommentResponseDto_base {
176
+ }
177
+ export {};
@@ -0,0 +1,21 @@
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.GetByProfileCommentResponseDto = exports.getByProfileCommentResponseSchema = void 0;
7
+ const account_dto_1 = require("../../account/dto/account.dto");
8
+ const comment_dto_1 = require("./comment.dto");
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.getByProfileCommentResponseSchema = zod_1.default.object({
12
+ comments: zod_1.default.array(comment_dto_1.commentSchema.merge(zod_1.default.object({
13
+ account: account_dto_1.accountSchema.pick({
14
+ username: true,
15
+ }),
16
+ }))),
17
+ });
18
+ class GetByProfileCommentResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getByProfileCommentResponseSchema) {
19
+ }
20
+ exports.GetByProfileCommentResponseDto = GetByProfileCommentResponseDto;
21
+ //# sourceMappingURL=get-by-profile-comment.dto.js.map
@@ -0,0 +1,71 @@
1
+ export declare const toggleSolveCommentResponseSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ content: import("zod").ZodString;
4
+ createdBy: import("zod").ZodString;
5
+ profileId: import("zod").ZodString;
6
+ isSolvable: import("zod").ZodDefault<import("zod").ZodBoolean>;
7
+ isSolved: import("zod").ZodDefault<import("zod").ZodBoolean>;
8
+ solvedAt: import("zod").ZodNullable<import("zod").ZodDate>;
9
+ solvedBy: import("zod").ZodOptional<import("zod").ZodString>;
10
+ created_at: import("zod").ZodDate;
11
+ updated_at: import("zod").ZodDate;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ id: string;
14
+ content: string;
15
+ isSolvable: boolean;
16
+ created_at: Date;
17
+ updated_at: Date;
18
+ createdBy: string;
19
+ profileId: string;
20
+ isSolved: boolean;
21
+ solvedAt: Date | null;
22
+ solvedBy?: string | undefined;
23
+ }, {
24
+ id: string;
25
+ content: string;
26
+ created_at: Date;
27
+ updated_at: Date;
28
+ createdBy: string;
29
+ profileId: string;
30
+ solvedAt: Date | null;
31
+ isSolvable?: boolean | undefined;
32
+ isSolved?: boolean | undefined;
33
+ solvedBy?: string | undefined;
34
+ }>;
35
+ declare const ToggleSolveCommentResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
36
+ id: import("zod").ZodString;
37
+ content: import("zod").ZodString;
38
+ createdBy: import("zod").ZodString;
39
+ profileId: import("zod").ZodString;
40
+ isSolvable: import("zod").ZodDefault<import("zod").ZodBoolean>;
41
+ isSolved: import("zod").ZodDefault<import("zod").ZodBoolean>;
42
+ solvedAt: import("zod").ZodNullable<import("zod").ZodDate>;
43
+ solvedBy: import("zod").ZodOptional<import("zod").ZodString>;
44
+ created_at: import("zod").ZodString;
45
+ updated_at: import("zod").ZodString;
46
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
47
+ id: string;
48
+ content: string;
49
+ isSolvable: boolean;
50
+ created_at: string;
51
+ updated_at: string;
52
+ createdBy: string;
53
+ profileId: string;
54
+ isSolved: boolean;
55
+ solvedAt: Date | null;
56
+ solvedBy?: string | undefined;
57
+ }, {
58
+ id: string;
59
+ content: string;
60
+ created_at: string;
61
+ updated_at: string;
62
+ createdBy: string;
63
+ profileId: string;
64
+ solvedAt: Date | null;
65
+ isSolvable?: boolean | undefined;
66
+ isSolved?: boolean | undefined;
67
+ solvedBy?: string | undefined;
68
+ }>>;
69
+ export declare class ToggleSolveCommentResponseDto extends ToggleSolveCommentResponseDto_base {
70
+ }
71
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ToggleSolveCommentResponseDto = exports.toggleSolveCommentResponseSchema = void 0;
4
+ const comment_dto_1 = require("./comment.dto");
5
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
+ exports.toggleSolveCommentResponseSchema = comment_dto_1.commentSchema;
7
+ class ToggleSolveCommentResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.toggleSolveCommentResponseSchema) {
8
+ }
9
+ exports.ToggleSolveCommentResponseDto = ToggleSolveCommentResponseDto;
10
+ //# sourceMappingURL=toggle-solve-comment.dto.js.map
@@ -1 +1,4 @@
1
1
  export * from './dto/comment.dto';
2
+ export * from './dto/create-comment.dto';
3
+ export * from './dto/get-by-profile-comment.dto';
4
+ export * from './dto/toggle-solve-comment.dto';
@@ -15,4 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto/comment.dto"), exports);
18
+ __exportStar(require("./dto/create-comment.dto"), exports);
19
+ __exportStar(require("./dto/get-by-profile-comment.dto"), exports);
20
+ __exportStar(require("./dto/toggle-solve-comment.dto"), exports);
18
21
  //# sourceMappingURL=exports.js.map
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- declare const eventSchemaBase: z.ZodObject<{
2
+ export declare const eventSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  date: z.ZodString;
@@ -7,35 +7,29 @@ declare const eventSchemaBase: z.ZodObject<{
7
7
  folderId: z.ZodString;
8
8
  tagAssistedId: z.ZodString;
9
9
  tagConfirmedId: z.ZodString;
10
- eventoPadreId: z.ZodOptional<z.ZodString>;
11
- created_at: z.ZodString;
12
- updated_at: z.ZodString;
10
+ supraEventId: z.ZodOptional<z.ZodString>;
11
+ created_at: z.ZodDate;
12
+ updated_at: z.ZodDate;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  location: string;
15
15
  id: string;
16
16
  name: string;
17
17
  date: string;
18
- created_at: string;
19
- updated_at: string;
18
+ created_at: Date;
19
+ updated_at: Date;
20
20
  folderId: string;
21
21
  tagAssistedId: string;
22
22
  tagConfirmedId: string;
23
- eventoPadreId?: string | undefined;
23
+ supraEventId?: string | undefined;
24
24
  }, {
25
25
  location: string;
26
26
  id: string;
27
27
  name: string;
28
28
  date: string;
29
- created_at: string;
30
- updated_at: string;
29
+ created_at: Date;
30
+ updated_at: Date;
31
31
  folderId: string;
32
32
  tagAssistedId: string;
33
33
  tagConfirmedId: string;
34
- eventoPadreId?: string | undefined;
34
+ supraEventId?: string | undefined;
35
35
  }>;
36
- type Event = z.infer<typeof eventSchemaBase> & {
37
- supraEvent: z.infer<typeof eventSchemaBase>;
38
- subEvents: Array<z.infer<typeof eventSchemaBase>>;
39
- };
40
- export declare const eventSchema: z.ZodType<Event>;
41
- export {};
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.eventSchema = void 0;
4
- const tag_dto_1 = require("../../tag/dto/tag.dto");
4
+ const event_folder_dto_1 = require("../../event-folder/dto/event-folder.dto");
5
5
  const translate_1 = require("../../i18n/translate");
6
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
6
7
  const zod_1 = require("zod");
7
- const event_folder_dto_1 = require("../../event-folder/dto/event-folder.dto");
8
- const eventSchemaBase = zod_1.z.object({
8
+ exports.eventSchema = zod_1.z.object({
9
9
  id: zod_1.z.string().uuid({ message: (0, translate_1.translate)('model.event.id.uuid') }),
10
10
  name: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.name.required')),
11
11
  date: zod_1.z
@@ -17,17 +17,13 @@ const eventSchemaBase = zod_1.z.object({
17
17
  folderId: event_folder_dto_1.eventFolderSchema.shape.id,
18
18
  tagAssistedId: tag_dto_1.tagSchema.shape.id,
19
19
  tagConfirmedId: tag_dto_1.tagSchema.shape.id,
20
- eventoPadreId: zod_1.z
20
+ supraEventId: zod_1.z
21
21
  .string()
22
22
  .uuid({
23
23
  message: (0, translate_1.translate)('model.event.id.uuid'),
24
24
  })
25
25
  .optional(),
26
- created_at: zod_1.z.string().datetime(),
27
- updated_at: zod_1.z.string().datetime(),
28
- });
29
- exports.eventSchema = eventSchemaBase.extend({
30
- supraEvent: zod_1.z.lazy(() => exports.eventSchema),
31
- subEvents: zod_1.z.array(zod_1.z.lazy(() => eventSchemaBase)),
26
+ created_at: zod_1.z.date(),
27
+ updated_at: zod_1.z.date(),
32
28
  });
33
29
  //# sourceMappingURL=event.dto.js.map
@@ -3,12 +3,18 @@ export declare const eventFolderSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  color: z.ZodString;
6
+ created_at: z.ZodDate;
7
+ updated_at: z.ZodDate;
6
8
  }, "strip", z.ZodTypeAny, {
7
9
  id: string;
8
10
  name: string;
9
11
  color: string;
12
+ created_at: Date;
13
+ updated_at: Date;
10
14
  }, {
11
15
  id: string;
12
16
  name: string;
13
17
  color: string;
18
+ created_at: Date;
19
+ updated_at: Date;
14
20
  }>;
@@ -18,5 +18,7 @@ exports.eventFolderSchema = zod_1.default.object({
18
18
  message: (0, translate_1.translate)('model.eventFolder.color.invalid'),
19
19
  })
20
20
  .toLowerCase(),
21
+ created_at: zod_1.default.date(),
22
+ updated_at: zod_1.default.date(),
21
23
  });
22
24
  //# sourceMappingURL=event-folder.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/event-folder.dto';