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
@@ -1,6 +1,17 @@
1
1
  import z from 'zod';
2
- export declare const getGlobalFilterResponse: z.ZodObject<{
3
- active: z.ZodBoolean;
2
+ export declare const getGlobalFilterResponseSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
3
+ id: z.ZodString;
4
+ username: z.ZodString;
5
+ password: z.ZodString;
6
+ role: z.ZodNativeEnum<{
7
+ USER: "USER";
8
+ ADMIN: "ADMIN";
9
+ }>;
10
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
11
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12
+ created_at: z.ZodDate;
13
+ updated_at: z.ZodDate;
14
+ }, "isGlobalFilterActive">, {
4
15
  globalFilter: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
5
16
  id: z.ZodString;
6
17
  name: z.ZodString;
@@ -49,7 +60,8 @@ export declare const getGlobalFilterResponse: z.ZodObject<{
49
60
  isExclusive: boolean;
50
61
  };
51
62
  }>, "many">;
52
- }, "strip", z.ZodTypeAny, {
63
+ }>, "strip", z.ZodTypeAny, {
64
+ isGlobalFilterActive: boolean;
53
65
  globalFilter: {
54
66
  id: string;
55
67
  name: string;
@@ -60,7 +72,6 @@ export declare const getGlobalFilterResponse: z.ZodObject<{
60
72
  isExclusive: boolean;
61
73
  };
62
74
  }[];
63
- active: boolean;
64
75
  }, {
65
76
  globalFilter: {
66
77
  id: string;
@@ -72,31 +83,24 @@ export declare const getGlobalFilterResponse: z.ZodObject<{
72
83
  isExclusive: boolean;
73
84
  };
74
85
  }[];
75
- active: boolean;
86
+ isGlobalFilterActive?: boolean | undefined;
76
87
  }>;
77
88
  declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
78
- active: z.ZodBoolean;
79
- globalFilter: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
89
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
90
+ globalFilter: z.ZodArray<z.ZodObject<{
80
91
  id: z.ZodString;
81
92
  name: z.ZodString;
82
- groupId: z.ZodString;
83
93
  type: z.ZodNativeEnum<{
84
94
  PROFILE: "PROFILE";
85
95
  EVENT: "EVENT";
86
96
  PARTICIPANT: "PARTICIPANT";
87
97
  NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
88
98
  }>;
89
- created_at: z.ZodDate;
90
- updated_at: z.ZodDate;
91
- }, "id" | "name" | "type">, {
92
- group: z.ZodObject<Pick<{
99
+ group: z.ZodObject<{
93
100
  id: z.ZodString;
94
- name: z.ZodString;
95
101
  color: z.ZodString;
96
102
  isExclusive: z.ZodBoolean;
97
- created_at: z.ZodDate;
98
- updated_at: z.ZodDate;
99
- }, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
103
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
100
104
  id: string;
101
105
  color: string;
102
106
  isExclusive: boolean;
@@ -105,7 +109,7 @@ declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").Zod
105
109
  color: string;
106
110
  isExclusive: boolean;
107
111
  }>;
108
- }>, "strip", z.ZodTypeAny, {
112
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
109
113
  id: string;
110
114
  name: string;
111
115
  type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
@@ -124,7 +128,8 @@ declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").Zod
124
128
  isExclusive: boolean;
125
129
  };
126
130
  }>, "many">;
127
- }, "strip", z.ZodTypeAny, {
131
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
132
+ isGlobalFilterActive: boolean;
128
133
  globalFilter: {
129
134
  id: string;
130
135
  name: string;
@@ -135,7 +140,6 @@ declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").Zod
135
140
  isExclusive: boolean;
136
141
  };
137
142
  }[];
138
- active: boolean;
139
143
  }, {
140
144
  globalFilter: {
141
145
  id: string;
@@ -147,7 +151,7 @@ declare const GetGlobalFilterResponseDto_base: import("@anatine/zod-nestjs").Zod
147
151
  isExclusive: boolean;
148
152
  };
149
153
  }[];
150
- active: boolean;
154
+ isGlobalFilterActive?: boolean | undefined;
151
155
  }>>;
152
156
  export declare class GetGlobalFilterResponseDto extends GetGlobalFilterResponseDto_base {
153
157
  }
@@ -3,13 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GetGlobalFilterResponseDto = exports.getGlobalFilterResponse = void 0;
6
+ exports.GetGlobalFilterResponseDto = exports.getGlobalFilterResponseSchema = void 0;
7
+ const account_dto_1 = require("./account.dto");
8
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
7
9
  const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
8
10
  const tag_dto_1 = require("../../tag/dto/tag.dto");
9
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
10
11
  const zod_1 = __importDefault(require("zod"));
11
- exports.getGlobalFilterResponse = zod_1.default.object({
12
- active: zod_1.default.boolean(),
12
+ exports.getGlobalFilterResponseSchema = account_dto_1.accountSchema
13
+ .pick({
14
+ isGlobalFilterActive: true,
15
+ })
16
+ .merge(zod_1.default.object({
13
17
  globalFilter: zod_1.default.array(tag_dto_1.tagSchema
14
18
  .pick({
15
19
  id: true,
@@ -23,8 +27,8 @@ exports.getGlobalFilterResponse = zod_1.default.object({
23
27
  isExclusive: true,
24
28
  }),
25
29
  }))),
26
- });
27
- class GetGlobalFilterResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.getGlobalFilterResponse) {
30
+ }));
31
+ class GetGlobalFilterResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getGlobalFilterResponseSchema) {
28
32
  }
29
33
  exports.GetGlobalFilterResponseDto = GetGlobalFilterResponseDto;
30
34
  //# sourceMappingURL=get-global-filter.dto.js.map
@@ -1,230 +1,250 @@
1
- export declare const getMeResponseSchema: import("zod").ZodObject<Omit<{
2
- id: import("zod").ZodString;
3
- username: import("zod").ZodString;
4
- password: import("zod").ZodString;
5
- role: import("zod").ZodNativeEnum<{
1
+ import z from 'zod';
2
+ export declare const getMeResponseSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
3
+ id: z.ZodString;
4
+ username: z.ZodString;
5
+ password: z.ZodString;
6
+ role: z.ZodNativeEnum<{
6
7
  USER: "USER";
7
8
  ADMIN: "ADMIN";
8
9
  }>;
9
- created_at: import("zod").ZodString;
10
- updated_at: import("zod").ZodString;
11
- globalFilter: import("zod").ZodObject<{
12
- tags: import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
13
- id: import("zod").ZodString;
14
- name: import("zod").ZodString;
15
- groupId: import("zod").ZodString;
16
- type: import("zod").ZodNativeEnum<{
17
- PROFILE: "PROFILE";
18
- EVENT: "EVENT";
19
- PARTICIPANT: "PARTICIPANT";
20
- NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
21
- }>;
22
- created_at: import("zod").ZodDate;
23
- updated_at: import("zod").ZodDate;
24
- }, "id" | "name">, {
25
- group: import("zod").ZodObject<Pick<{
26
- id: import("zod").ZodString;
27
- name: import("zod").ZodString;
28
- color: import("zod").ZodString;
29
- isExclusive: import("zod").ZodBoolean;
30
- created_at: import("zod").ZodDate;
31
- updated_at: import("zod").ZodDate;
32
- }, "id" | "color" | "isExclusive">, "strip", import("zod").ZodTypeAny, {
33
- id: string;
34
- color: string;
35
- isExclusive: boolean;
36
- }, {
37
- id: string;
38
- color: string;
39
- isExclusive: boolean;
40
- }>;
41
- }>, "strip", import("zod").ZodTypeAny, {
10
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
11
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12
+ created_at: z.ZodDate;
13
+ updated_at: z.ZodDate;
14
+ }, "password">, {
15
+ globalFilter: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
16
+ id: z.ZodString;
17
+ name: z.ZodString;
18
+ groupId: z.ZodString;
19
+ type: z.ZodNativeEnum<{
20
+ PROFILE: "PROFILE";
21
+ EVENT: "EVENT";
22
+ PARTICIPANT: "PARTICIPANT";
23
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
24
+ }>;
25
+ created_at: z.ZodDate;
26
+ updated_at: z.ZodDate;
27
+ }, "id" | "name" | "type">, {
28
+ group: z.ZodObject<Pick<{
29
+ id: z.ZodString;
30
+ name: z.ZodString;
31
+ color: z.ZodString;
32
+ isExclusive: z.ZodBoolean;
33
+ created_at: z.ZodDate;
34
+ updated_at: z.ZodDate;
35
+ }, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
42
36
  id: string;
43
- name: string;
44
- group: {
45
- id: string;
46
- color: string;
47
- isExclusive: boolean;
48
- };
37
+ color: string;
38
+ isExclusive: boolean;
49
39
  }, {
50
40
  id: string;
51
- name: string;
52
- group: {
53
- id: string;
54
- color: string;
55
- isExclusive: boolean;
56
- };
41
+ color: string;
42
+ isExclusive: boolean;
57
43
  }>;
58
- active: import("zod").ZodBoolean;
59
- }, "strip", import("zod").ZodTypeAny, {
60
- tags: {
44
+ }>, "strip", z.ZodTypeAny, {
45
+ id: string;
46
+ name: string;
47
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
48
+ group: {
61
49
  id: string;
62
- name: string;
63
- group: {
64
- id: string;
65
- color: string;
66
- isExclusive: boolean;
67
- };
50
+ color: string;
51
+ isExclusive: boolean;
68
52
  };
69
- active: boolean;
70
53
  }, {
71
- tags: {
54
+ id: string;
55
+ name: string;
56
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
57
+ group: {
72
58
  id: string;
73
- name: string;
74
- group: {
75
- id: string;
76
- color: string;
77
- isExclusive: boolean;
78
- };
59
+ color: string;
60
+ isExclusive: boolean;
79
61
  };
80
- active: boolean;
81
- }>;
82
- isGlobalFilterActive: import("zod").ZodDefault<import("zod").ZodBoolean>;
83
- fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
84
- }, "password">, "strip", import("zod").ZodTypeAny, {
62
+ }>, "many">;
63
+ tags: z.ZodArray<z.ZodObject<{
64
+ id: z.ZodString;
65
+ name: z.ZodString;
66
+ groupId: z.ZodString;
67
+ type: z.ZodNativeEnum<{
68
+ PROFILE: "PROFILE";
69
+ EVENT: "EVENT";
70
+ PARTICIPANT: "PARTICIPANT";
71
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
72
+ }>;
73
+ created_at: z.ZodDate;
74
+ updated_at: z.ZodDate;
75
+ }, "strip", z.ZodTypeAny, {
76
+ id: string;
77
+ name: string;
78
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
79
+ created_at: Date;
80
+ updated_at: Date;
81
+ groupId: string;
82
+ }, {
83
+ id: string;
84
+ name: string;
85
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
86
+ created_at: Date;
87
+ updated_at: Date;
88
+ groupId: string;
89
+ }>, "many">;
90
+ }>, "strip", z.ZodTypeAny, {
85
91
  id: string;
86
92
  username: string;
87
93
  role: "USER" | "ADMIN";
88
- created_at: string;
89
- updated_at: string;
94
+ isGlobalFilterActive: boolean;
95
+ fcmToken: string[];
96
+ created_at: Date;
97
+ updated_at: Date;
90
98
  globalFilter: {
91
- tags: {
99
+ id: string;
100
+ name: string;
101
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
102
+ group: {
92
103
  id: string;
93
- name: string;
94
- group: {
95
- id: string;
96
- color: string;
97
- isExclusive: boolean;
98
- };
104
+ color: string;
105
+ isExclusive: boolean;
99
106
  };
100
- active: boolean;
101
- };
102
- isGlobalFilterActive: boolean;
103
- fcmToken: string[];
107
+ }[];
108
+ tags: {
109
+ id: string;
110
+ name: string;
111
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
112
+ created_at: Date;
113
+ updated_at: Date;
114
+ groupId: string;
115
+ }[];
104
116
  }, {
105
117
  id: string;
106
118
  username: string;
107
119
  role: "USER" | "ADMIN";
108
- created_at: string;
109
- updated_at: string;
120
+ created_at: Date;
121
+ updated_at: Date;
110
122
  globalFilter: {
111
- tags: {
123
+ id: string;
124
+ name: string;
125
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
126
+ group: {
112
127
  id: string;
113
- name: string;
114
- group: {
115
- id: string;
116
- color: string;
117
- isExclusive: boolean;
118
- };
128
+ color: string;
129
+ isExclusive: boolean;
119
130
  };
120
- active: boolean;
121
- };
131
+ }[];
132
+ tags: {
133
+ id: string;
134
+ name: string;
135
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
136
+ created_at: Date;
137
+ updated_at: Date;
138
+ groupId: string;
139
+ }[];
122
140
  isGlobalFilterActive?: boolean | undefined;
123
141
  fcmToken?: string[] | undefined;
124
142
  }>;
125
- declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Omit<{
126
- id: import("zod").ZodString;
127
- username: import("zod").ZodString;
128
- password: import("zod").ZodString;
129
- role: import("zod").ZodNativeEnum<{
143
+ declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
144
+ id: z.ZodString;
145
+ username: z.ZodString;
146
+ role: z.ZodNativeEnum<{
130
147
  USER: "USER";
131
148
  ADMIN: "ADMIN";
132
149
  }>;
133
- created_at: import("zod").ZodString;
134
- updated_at: import("zod").ZodString;
135
- globalFilter: import("zod").ZodObject<{
136
- tags: import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
137
- id: import("zod").ZodString;
138
- name: import("zod").ZodString;
139
- groupId: import("zod").ZodString;
140
- type: import("zod").ZodNativeEnum<{
141
- PROFILE: "PROFILE";
142
- EVENT: "EVENT";
143
- PARTICIPANT: "PARTICIPANT";
144
- NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
145
- }>;
146
- created_at: import("zod").ZodDate;
147
- updated_at: import("zod").ZodDate;
148
- }, "id" | "name">, {
149
- group: import("zod").ZodObject<Pick<{
150
- id: import("zod").ZodString;
151
- name: import("zod").ZodString;
152
- color: import("zod").ZodString;
153
- isExclusive: import("zod").ZodBoolean;
154
- created_at: import("zod").ZodDate;
155
- updated_at: import("zod").ZodDate;
156
- }, "id" | "color" | "isExclusive">, "strip", import("zod").ZodTypeAny, {
157
- id: string;
158
- color: string;
159
- isExclusive: boolean;
160
- }, {
161
- id: string;
162
- color: string;
163
- isExclusive: boolean;
164
- }>;
165
- }>, "strip", import("zod").ZodTypeAny, {
150
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
151
+ fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
152
+ created_at: z.ZodString;
153
+ updated_at: z.ZodString;
154
+ globalFilter: z.ZodArray<z.ZodObject<{
155
+ id: z.ZodString;
156
+ name: z.ZodString;
157
+ type: z.ZodNativeEnum<{
158
+ PROFILE: "PROFILE";
159
+ EVENT: "EVENT";
160
+ PARTICIPANT: "PARTICIPANT";
161
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
162
+ }>;
163
+ group: z.ZodObject<{
164
+ id: z.ZodString;
165
+ color: z.ZodString;
166
+ isExclusive: z.ZodBoolean;
167
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
166
168
  id: string;
167
- name: string;
168
- group: {
169
- id: string;
170
- color: string;
171
- isExclusive: boolean;
172
- };
169
+ color: string;
170
+ isExclusive: boolean;
173
171
  }, {
174
172
  id: string;
175
- name: string;
176
- group: {
177
- id: string;
178
- color: string;
179
- isExclusive: boolean;
180
- };
173
+ color: string;
174
+ isExclusive: boolean;
181
175
  }>;
182
- active: import("zod").ZodBoolean;
183
- }, "strip", import("zod").ZodTypeAny, {
184
- tags: {
176
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
177
+ id: string;
178
+ name: string;
179
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
180
+ group: {
185
181
  id: string;
186
- name: string;
187
- group: {
188
- id: string;
189
- color: string;
190
- isExclusive: boolean;
191
- };
182
+ color: string;
183
+ isExclusive: boolean;
192
184
  };
193
- active: boolean;
194
185
  }, {
195
- tags: {
186
+ id: string;
187
+ name: string;
188
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
189
+ group: {
196
190
  id: string;
197
- name: string;
198
- group: {
199
- id: string;
200
- color: string;
201
- isExclusive: boolean;
202
- };
191
+ color: string;
192
+ isExclusive: boolean;
203
193
  };
204
- active: boolean;
205
- }>;
206
- isGlobalFilterActive: import("zod").ZodDefault<import("zod").ZodBoolean>;
207
- fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
208
- }, "password">, "strip", import("zod").ZodTypeAny, {
194
+ }>, "many">;
195
+ tags: z.ZodArray<z.ZodObject<{
196
+ id: z.ZodString;
197
+ name: z.ZodString;
198
+ groupId: z.ZodString;
199
+ type: z.ZodNativeEnum<{
200
+ PROFILE: "PROFILE";
201
+ EVENT: "EVENT";
202
+ PARTICIPANT: "PARTICIPANT";
203
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
204
+ }>;
205
+ created_at: z.ZodString;
206
+ updated_at: z.ZodString;
207
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
208
+ id: string;
209
+ name: string;
210
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
211
+ created_at: string;
212
+ updated_at: string;
213
+ groupId: string;
214
+ }, {
215
+ id: string;
216
+ name: string;
217
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
218
+ created_at: string;
219
+ updated_at: string;
220
+ groupId: string;
221
+ }>, "many">;
222
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
209
223
  id: string;
210
224
  username: string;
211
225
  role: "USER" | "ADMIN";
226
+ isGlobalFilterActive: boolean;
227
+ fcmToken: string[];
212
228
  created_at: string;
213
229
  updated_at: string;
214
230
  globalFilter: {
215
- tags: {
231
+ id: string;
232
+ name: string;
233
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
234
+ group: {
216
235
  id: string;
217
- name: string;
218
- group: {
219
- id: string;
220
- color: string;
221
- isExclusive: boolean;
222
- };
236
+ color: string;
237
+ isExclusive: boolean;
223
238
  };
224
- active: boolean;
225
- };
226
- isGlobalFilterActive: boolean;
227
- fcmToken: string[];
239
+ }[];
240
+ tags: {
241
+ id: string;
242
+ name: string;
243
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
244
+ created_at: string;
245
+ updated_at: string;
246
+ groupId: string;
247
+ }[];
228
248
  }, {
229
249
  id: string;
230
250
  username: string;
@@ -232,17 +252,23 @@ declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
232
252
  created_at: string;
233
253
  updated_at: string;
234
254
  globalFilter: {
235
- tags: {
255
+ id: string;
256
+ name: string;
257
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
258
+ group: {
236
259
  id: string;
237
- name: string;
238
- group: {
239
- id: string;
240
- color: string;
241
- isExclusive: boolean;
242
- };
260
+ color: string;
261
+ isExclusive: boolean;
243
262
  };
244
- active: boolean;
245
- };
263
+ }[];
264
+ tags: {
265
+ id: string;
266
+ name: string;
267
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
268
+ created_at: string;
269
+ updated_at: string;
270
+ groupId: string;
271
+ }[];
246
272
  isGlobalFilterActive?: boolean | undefined;
247
273
  fcmToken?: string[] | undefined;
248
274
  }>>;
@@ -1,12 +1,35 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.GetMeResponseDto = exports.getMeResponseSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
9
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
10
+ const zod_1 = __importDefault(require("zod"));
4
11
  const account_dto_1 = require("./account.dto");
5
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
- exports.getMeResponseSchema = account_dto_1.accountSchema.omit({
12
+ exports.getMeResponseSchema = account_dto_1.accountSchema
13
+ .omit({
7
14
  password: true,
8
- });
9
- class GetMeResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.getMeResponseSchema) {
15
+ })
16
+ .merge(zod_1.default.object({
17
+ globalFilter: zod_1.default.array(tag_dto_1.tagSchema
18
+ .pick({
19
+ id: true,
20
+ name: true,
21
+ type: true,
22
+ })
23
+ .merge(zod_1.default.object({
24
+ group: tag_group_dto_1.tagGroupSchema.pick({
25
+ id: true,
26
+ color: true,
27
+ isExclusive: true,
28
+ }),
29
+ }))),
30
+ tags: zod_1.default.array(tag_dto_1.tagSchema),
31
+ }));
32
+ class GetMeResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.getMeResponseSchema) {
10
33
  }
11
34
  exports.GetMeResponseDto = GetMeResponseDto;
12
35
  //# sourceMappingURL=get-me.dto.js.map