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
@@ -12,7 +12,7 @@ export declare const updateGlobalFilterSchema: z.ZodObject<{
12
12
  declare const UpdateGlobalFilterDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
13
13
  active: z.ZodDefault<z.ZodBoolean>;
14
14
  tagsIds: z.ZodArray<z.ZodString, "many">;
15
- }, "strip", z.ZodTypeAny, {
15
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
16
16
  active: boolean;
17
17
  tagsIds: string[];
18
18
  }, {
@@ -21,187 +21,154 @@ declare const UpdateGlobalFilterDto_base: import("@anatine/zod-nestjs").ZodDtoSt
21
21
  }>>;
22
22
  export declare class UpdateGlobalFilterDto extends UpdateGlobalFilterDto_base {
23
23
  }
24
- export declare const updateGlobalFilterResponseSchema: z.ZodObject<{
24
+ export declare const updateGlobalFilterResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
25
25
  id: z.ZodString;
26
- nombreUsuario: z.ZodString;
27
- esAdmin: z.ZodBoolean;
28
- fcmToken: z.ZodNullable<z.ZodString>;
29
- filtroBaseActivo: z.ZodBoolean;
30
- filtroBase: z.ZodObject<{
31
- active: z.ZodBoolean;
32
- etiquetas: z.ZodArray<z.ZodObject<{
33
- id: z.ZodString;
34
- name: z.ZodString;
35
- groupId: z.ZodString;
36
- type: z.ZodNativeEnum<{
37
- PROFILE: "PROFILE";
38
- EVENT: "EVENT";
39
- PARTICIPANT: "PARTICIPANT";
40
- NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
41
- }>;
42
- created_at: z.ZodDate;
43
- updated_at: z.ZodDate;
44
- }, "strip", z.ZodTypeAny, {
45
- id: string;
46
- name: string;
47
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
48
- created_at: Date;
49
- updated_at: Date;
50
- groupId: string;
51
- }, {
52
- id: string;
53
- name: string;
54
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
55
- created_at: Date;
56
- updated_at: Date;
57
- groupId: string;
58
- }>, "many">;
26
+ username: z.ZodString;
27
+ password: z.ZodString;
28
+ role: z.ZodNativeEnum<{
29
+ USER: "USER";
30
+ ADMIN: "ADMIN";
31
+ }>;
32
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
33
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
34
+ created_at: z.ZodDate;
35
+ updated_at: z.ZodDate;
36
+ }, {
37
+ globalFilter: z.ZodArray<z.ZodObject<{
38
+ id: z.ZodString;
39
+ name: z.ZodString;
40
+ groupId: z.ZodString;
41
+ type: z.ZodNativeEnum<{
42
+ PROFILE: "PROFILE";
43
+ EVENT: "EVENT";
44
+ PARTICIPANT: "PARTICIPANT";
45
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
46
+ }>;
47
+ created_at: z.ZodDate;
48
+ updated_at: z.ZodDate;
59
49
  }, "strip", z.ZodTypeAny, {
60
- active: boolean;
61
- etiquetas: {
62
- id: string;
63
- name: string;
64
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
65
- created_at: Date;
66
- updated_at: Date;
67
- groupId: string;
68
- }[];
50
+ id: string;
51
+ name: string;
52
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
53
+ created_at: Date;
54
+ updated_at: Date;
55
+ groupId: string;
69
56
  }, {
70
- active: boolean;
71
- etiquetas: {
72
- id: string;
73
- name: string;
74
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
75
- created_at: Date;
76
- updated_at: Date;
77
- groupId: string;
78
- }[];
79
- }>;
80
- }, "strip", z.ZodTypeAny, {
57
+ id: string;
58
+ name: string;
59
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
60
+ created_at: Date;
61
+ updated_at: Date;
62
+ groupId: string;
63
+ }>, "many">;
64
+ }>, "strip", z.ZodTypeAny, {
81
65
  id: string;
82
- fcmToken: string | null;
83
- nombreUsuario: string;
84
- esAdmin: boolean;
85
- filtroBaseActivo: boolean;
86
- filtroBase: {
87
- active: boolean;
88
- etiquetas: {
89
- id: string;
90
- name: string;
91
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
92
- created_at: Date;
93
- updated_at: Date;
94
- groupId: string;
95
- }[];
96
- };
66
+ username: string;
67
+ password: string;
68
+ role: "USER" | "ADMIN";
69
+ isGlobalFilterActive: boolean;
70
+ fcmToken: string[];
71
+ created_at: Date;
72
+ updated_at: Date;
73
+ globalFilter: {
74
+ id: string;
75
+ name: string;
76
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
77
+ created_at: Date;
78
+ updated_at: Date;
79
+ groupId: string;
80
+ }[];
97
81
  }, {
98
82
  id: string;
99
- fcmToken: string | null;
100
- nombreUsuario: string;
101
- esAdmin: boolean;
102
- filtroBaseActivo: boolean;
103
- filtroBase: {
104
- active: boolean;
105
- etiquetas: {
106
- id: string;
107
- name: string;
108
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
109
- created_at: Date;
110
- updated_at: Date;
111
- groupId: string;
112
- }[];
113
- };
83
+ username: string;
84
+ password: string;
85
+ role: "USER" | "ADMIN";
86
+ created_at: Date;
87
+ updated_at: Date;
88
+ globalFilter: {
89
+ id: string;
90
+ name: string;
91
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
92
+ created_at: Date;
93
+ updated_at: Date;
94
+ groupId: string;
95
+ }[];
96
+ isGlobalFilterActive?: boolean | undefined;
97
+ fcmToken?: string[] | undefined;
114
98
  }>;
115
99
  declare const UpdateGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
116
100
  id: z.ZodString;
117
- nombreUsuario: z.ZodString;
118
- esAdmin: z.ZodBoolean;
119
- fcmToken: z.ZodNullable<z.ZodString>;
120
- filtroBaseActivo: z.ZodBoolean;
121
- filtroBase: z.ZodObject<{
122
- active: z.ZodBoolean;
123
- etiquetas: z.ZodArray<z.ZodObject<{
124
- id: z.ZodString;
125
- name: z.ZodString;
126
- groupId: z.ZodString;
127
- type: z.ZodNativeEnum<{
128
- PROFILE: "PROFILE";
129
- EVENT: "EVENT";
130
- PARTICIPANT: "PARTICIPANT";
131
- NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
132
- }>;
133
- created_at: z.ZodDate;
134
- updated_at: z.ZodDate;
135
- }, "strip", z.ZodTypeAny, {
136
- id: string;
137
- name: string;
138
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
139
- created_at: Date;
140
- updated_at: Date;
141
- groupId: string;
142
- }, {
143
- id: string;
144
- name: string;
145
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
146
- created_at: Date;
147
- updated_at: Date;
148
- groupId: string;
149
- }>, "many">;
150
- }, "strip", z.ZodTypeAny, {
151
- active: boolean;
152
- etiquetas: {
153
- id: string;
154
- name: string;
155
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
156
- created_at: Date;
157
- updated_at: Date;
158
- groupId: string;
159
- }[];
160
- }, {
161
- active: boolean;
162
- etiquetas: {
163
- id: string;
164
- name: string;
165
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
166
- created_at: Date;
167
- updated_at: Date;
168
- groupId: string;
169
- }[];
101
+ username: z.ZodString;
102
+ password: z.ZodString;
103
+ role: z.ZodNativeEnum<{
104
+ USER: "USER";
105
+ ADMIN: "ADMIN";
170
106
  }>;
171
- }, "strip", z.ZodTypeAny, {
107
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
108
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
109
+ created_at: z.ZodString;
110
+ updated_at: z.ZodString;
111
+ globalFilter: z.ZodArray<z.ZodObject<{
112
+ id: z.ZodString;
113
+ name: z.ZodString;
114
+ groupId: z.ZodString;
115
+ type: z.ZodNativeEnum<{
116
+ PROFILE: "PROFILE";
117
+ EVENT: "EVENT";
118
+ PARTICIPANT: "PARTICIPANT";
119
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
120
+ }>;
121
+ created_at: z.ZodString;
122
+ updated_at: z.ZodString;
123
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
124
+ id: string;
125
+ name: string;
126
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
127
+ created_at: string;
128
+ updated_at: string;
129
+ groupId: string;
130
+ }, {
131
+ id: string;
132
+ name: string;
133
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
134
+ created_at: string;
135
+ updated_at: string;
136
+ groupId: string;
137
+ }>, "many">;
138
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
172
139
  id: string;
173
- fcmToken: string | null;
174
- nombreUsuario: string;
175
- esAdmin: boolean;
176
- filtroBaseActivo: boolean;
177
- filtroBase: {
178
- active: boolean;
179
- etiquetas: {
180
- id: string;
181
- name: string;
182
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
183
- created_at: Date;
184
- updated_at: Date;
185
- groupId: string;
186
- }[];
187
- };
140
+ username: string;
141
+ password: string;
142
+ role: "USER" | "ADMIN";
143
+ isGlobalFilterActive: boolean;
144
+ fcmToken: string[];
145
+ created_at: string;
146
+ updated_at: string;
147
+ globalFilter: {
148
+ id: string;
149
+ name: string;
150
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
151
+ created_at: string;
152
+ updated_at: string;
153
+ groupId: string;
154
+ }[];
188
155
  }, {
189
156
  id: string;
190
- fcmToken: string | null;
191
- nombreUsuario: string;
192
- esAdmin: boolean;
193
- filtroBaseActivo: boolean;
194
- filtroBase: {
195
- active: boolean;
196
- etiquetas: {
197
- id: string;
198
- name: string;
199
- type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
200
- created_at: Date;
201
- updated_at: Date;
202
- groupId: string;
203
- }[];
204
- };
157
+ username: string;
158
+ password: string;
159
+ role: "USER" | "ADMIN";
160
+ created_at: string;
161
+ updated_at: string;
162
+ globalFilter: {
163
+ id: string;
164
+ name: string;
165
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
166
+ created_at: string;
167
+ updated_at: string;
168
+ groupId: string;
169
+ }[];
170
+ isGlobalFilterActive?: boolean | undefined;
171
+ fcmToken?: string[] | undefined;
205
172
  }>>;
206
173
  export declare class UpdateGlobalFilterResponseDto extends UpdateGlobalFilterResponseDto_base {
207
174
  }
@@ -1,29 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateGlobalFilterResponseDto = exports.updateGlobalFilterResponseSchema = exports.UpdateGlobalFilterDto = exports.updateGlobalFilterSchema = void 0;
4
- const tag_dto_1 = require("../../tag/dto/tag.dto");
5
4
  const account_dto_1 = require("./account.dto");
6
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
7
7
  const zod_1 = require("zod");
8
8
  exports.updateGlobalFilterSchema = zod_1.z.object({
9
9
  active: account_dto_1.accountSchema.shape.isGlobalFilterActive,
10
10
  tagsIds: zod_1.z.array(tag_dto_1.tagSchema.shape.id),
11
11
  });
12
- class UpdateGlobalFilterDto extends (0, zod_nestjs_1.createZodDto)(exports.updateGlobalFilterSchema) {
12
+ class UpdateGlobalFilterDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateGlobalFilterSchema) {
13
13
  }
14
14
  exports.UpdateGlobalFilterDto = UpdateGlobalFilterDto;
15
- exports.updateGlobalFilterResponseSchema = zod_1.z.object({
16
- id: zod_1.z.string(),
17
- nombreUsuario: zod_1.z.string(),
18
- esAdmin: zod_1.z.boolean(),
19
- fcmToken: zod_1.z.string().nullable(),
20
- filtroBaseActivo: zod_1.z.boolean(),
21
- filtroBase: zod_1.z.object({
22
- active: zod_1.z.boolean(),
23
- etiquetas: zod_1.z.array(tag_dto_1.tagSchema),
24
- }),
25
- });
26
- class UpdateGlobalFilterResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.updateGlobalFilterResponseSchema) {
15
+ exports.updateGlobalFilterResponseSchema = account_dto_1.accountSchema.merge(zod_1.z.object({
16
+ globalFilter: zod_1.z.array(tag_dto_1.tagSchema),
17
+ }));
18
+ class UpdateGlobalFilterResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateGlobalFilterResponseSchema) {
27
19
  }
28
20
  exports.UpdateGlobalFilterResponseDto = UpdateGlobalFilterResponseDto;
29
21
  //# sourceMappingURL=update-global-filter.dto.js.map