@tmlmobilidade/types 20251002.1010.55 → 20251002.1043.36-rc.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.
@@ -9,7 +9,6 @@ export declare const UserSchema: z.ZodObject<{
9
9
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
10
10
  updated_by: z.ZodOptional<z.ZodString>;
11
11
  } & {
12
- active_notifications: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
12
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
13
  bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
14
  email: z.ZodString;
@@ -35,7 +34,6 @@ export declare const UserSchema: z.ZodObject<{
35
34
  preferences: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>>>;
36
35
  role_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
37
36
  session_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
38
- subscribed_topics: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
39
37
  theme_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
38
  verification_token_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
41
39
  }, "strict", z.ZodTypeAny, {
@@ -52,12 +50,10 @@ export declare const UserSchema: z.ZodObject<{
52
50
  scope: string;
53
51
  resource?: Record<string, any> | null | undefined;
54
52
  }[];
55
- active_notifications: string[];
56
53
  first_name: string;
57
54
  last_name: string;
58
55
  role_ids: string[];
59
56
  session_ids: string[];
60
- subscribed_topics: string[];
61
57
  verification_token_ids: string[];
62
58
  created_by?: string | undefined;
63
59
  updated_by?: string | undefined;
@@ -84,7 +80,6 @@ export declare const UserSchema: z.ZodObject<{
84
80
  created_by?: string | undefined;
85
81
  updated_by?: string | undefined;
86
82
  phone?: string | null | undefined;
87
- active_notifications?: string[] | undefined;
88
83
  avatar?: string | null | undefined;
89
84
  bio?: string | null | undefined;
90
85
  email_verified?: number | null | undefined;
@@ -93,7 +88,6 @@ export declare const UserSchema: z.ZodObject<{
93
88
  preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
94
89
  role_ids?: string[] | undefined;
95
90
  session_ids?: string[] | undefined;
96
- subscribed_topics?: string[] | undefined;
97
91
  theme_id?: string | null | undefined;
98
92
  verification_token_ids?: string[] | undefined;
99
93
  }>;
@@ -104,7 +98,6 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
104
98
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
105
99
  updated_by: z.ZodOptional<z.ZodString>;
106
100
  } & {
107
- active_notifications: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
108
101
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
102
  bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
103
  email: z.ZodString;
@@ -130,7 +123,6 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
130
123
  preferences: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>>>;
131
124
  role_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
132
125
  session_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
133
- subscribed_topics: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
134
126
  theme_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
127
  verification_token_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
136
128
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
@@ -140,12 +132,10 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
140
132
  scope: string;
141
133
  resource?: Record<string, any> | null | undefined;
142
134
  }[];
143
- active_notifications: string[];
144
135
  first_name: string;
145
136
  last_name: string;
146
137
  role_ids: string[];
147
138
  session_ids: string[];
148
- subscribed_topics: string[];
149
139
  verification_token_ids: string[];
150
140
  created_by?: string | undefined;
151
141
  updated_by?: string | undefined;
@@ -169,7 +159,6 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
169
159
  created_by?: string | undefined;
170
160
  updated_by?: string | undefined;
171
161
  phone?: string | null | undefined;
172
- active_notifications?: string[] | undefined;
173
162
  avatar?: string | null | undefined;
174
163
  bio?: string | null | undefined;
175
164
  email_verified?: number | null | undefined;
@@ -178,7 +167,6 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
178
167
  preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
179
168
  role_ids?: string[] | undefined;
180
169
  session_ids?: string[] | undefined;
181
- subscribed_topics?: string[] | undefined;
182
170
  theme_id?: string | null | undefined;
183
171
  verification_token_ids?: string[] | undefined;
184
172
  }>;
@@ -199,7 +187,6 @@ export declare const UpdateUserSchema: z.ZodObject<{
199
187
  scope: string;
200
188
  resource?: Record<string, any> | null | undefined;
201
189
  }>, "many">>;
202
- active_notifications: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
203
190
  avatar: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
204
191
  bio: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
205
192
  email_verified: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>>;
@@ -210,7 +197,6 @@ export declare const UpdateUserSchema: z.ZodObject<{
210
197
  preferences: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>>>>;
211
198
  role_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
212
199
  session_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
213
- subscribed_topics: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
214
200
  theme_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
215
201
  verification_token_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
216
202
  }, "strict", z.ZodTypeAny, {
@@ -222,7 +208,6 @@ export declare const UpdateUserSchema: z.ZodObject<{
222
208
  scope: string;
223
209
  resource?: Record<string, any> | null | undefined;
224
210
  }[] | undefined;
225
- active_notifications?: string[] | undefined;
226
211
  avatar?: string | null | undefined;
227
212
  bio?: string | null | undefined;
228
213
  email_verified?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
@@ -233,7 +218,6 @@ export declare const UpdateUserSchema: z.ZodObject<{
233
218
  preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
234
219
  role_ids?: string[] | undefined;
235
220
  session_ids?: string[] | undefined;
236
- subscribed_topics?: string[] | undefined;
237
221
  theme_id?: string | null | undefined;
238
222
  verification_token_ids?: string[] | undefined;
239
223
  }, {
@@ -245,7 +229,6 @@ export declare const UpdateUserSchema: z.ZodObject<{
245
229
  scope: string;
246
230
  resource?: Record<string, any> | null | undefined;
247
231
  }[] | undefined;
248
- active_notifications?: string[] | undefined;
249
232
  avatar?: string | null | undefined;
250
233
  bio?: string | null | undefined;
251
234
  email_verified?: number | null | undefined;
@@ -256,7 +239,6 @@ export declare const UpdateUserSchema: z.ZodObject<{
256
239
  preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
257
240
  role_ids?: string[] | undefined;
258
241
  session_ids?: string[] | undefined;
259
- subscribed_topics?: string[] | undefined;
260
242
  theme_id?: string | null | undefined;
261
243
  verification_token_ids?: string[] | undefined;
262
244
  }>;
@@ -13,7 +13,6 @@ export const UserPreferenceValueSchema = z.union([
13
13
  ]);
14
14
  /* * */
15
15
  export const UserSchema = DocumentSchema.extend({
16
- active_notifications: z.array(z.string()).default([]),
17
16
  avatar: z.string().nullish(),
18
17
  bio: z.string().nullish(),
19
18
  email: z.string().email(),
@@ -27,7 +26,6 @@ export const UserSchema = DocumentSchema.extend({
27
26
  preferences: z.record(z.record(UserPreferenceValueSchema)).nullish(),
28
27
  role_ids: z.array(z.string()).default([]),
29
28
  session_ids: z.array(z.string()).default([]),
30
- subscribed_topics: z.array(z.string()).default([]),
31
29
  theme_id: z.string().nullish(),
32
30
  verification_token_ids: z.array(z.string()).default([]),
33
31
  }).strict();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20251002.1010.55",
3
+ "version": "20251002.1043.36-rc.0",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",