@m5kdev/commons 0.38.18 → 0.38.19

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.
@@ -160,10 +160,10 @@ declare const billingAdminListInputSchema: z.ZodObject<{
160
160
  jsonArray: "jsonArray";
161
161
  }>;
162
162
  method: z.ZodEnum<{
163
- starts_with: "starts_with";
164
- ends_with: "ends_with";
165
163
  contains: "contains";
166
164
  equals: "equals";
165
+ starts_with: "starts_with";
166
+ ends_with: "ends_with";
167
167
  greater_than: "greater_than";
168
168
  less_than: "less_than";
169
169
  on: "on";
@@ -160,10 +160,10 @@ declare const billingAdminListInputSchema: z.ZodObject<{
160
160
  jsonArray: "jsonArray";
161
161
  }>;
162
162
  method: z.ZodEnum<{
163
- starts_with: "starts_with";
164
- ends_with: "ends_with";
165
163
  contains: "contains";
166
164
  equals: "equals";
165
+ starts_with: "starts_with";
166
+ ends_with: "ends_with";
167
167
  greater_than: "greater_than";
168
168
  less_than: "less_than";
169
169
  on: "on";
@@ -12,9 +12,9 @@ declare const notificationProviderSchema: z.ZodEnum<{
12
12
  fcm: "fcm";
13
13
  }>;
14
14
  declare const notificationSendStatusSchema: z.ZodEnum<{
15
- failed: "failed";
16
15
  pending: "pending";
17
16
  sent: "sent";
17
+ failed: "failed";
18
18
  }>;
19
19
  /** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */
20
20
  declare const pushSubscriptionJsonSchema: z.ZodObject<{
@@ -87,10 +87,10 @@ declare const notificationVapidPublicKeyOutputSchema: z.ZodObject<{
87
87
  publicKey: z.ZodString;
88
88
  }, z.core.$strip>;
89
89
  declare const notificationChannelSchema: z.ZodEnum<{
90
- email: "email";
91
90
  "in-app": "in-app";
92
91
  "web-push": "web-push";
93
92
  "mobile-push": "mobile-push";
93
+ email: "email";
94
94
  }>;
95
95
  declare const notificationSendLogSelectSchema: z.ZodObject<{
96
96
  id: z.ZodString;
@@ -99,10 +99,10 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
99
99
  userId: z.ZodString;
100
100
  deviceId: z.ZodNullable<z.ZodString>;
101
101
  channel: z.ZodEnum<{
102
- email: "email";
103
102
  "in-app": "in-app";
104
103
  "web-push": "web-push";
105
104
  "mobile-push": "mobile-push";
105
+ email: "email";
106
106
  }>;
107
107
  provider: z.ZodNullable<z.ZodEnum<{
108
108
  web: "web";
@@ -113,9 +113,9 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
113
113
  body: z.ZodString;
114
114
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
115
  status: z.ZodEnum<{
116
- failed: "failed";
117
116
  pending: "pending";
118
117
  sent: "sent";
118
+ failed: "failed";
119
119
  }>;
120
120
  error: z.ZodNullable<z.ZodString>;
121
121
  jobId: z.ZodNullable<z.ZodString>;
@@ -133,10 +133,10 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
133
133
  userId: z.ZodString;
134
134
  deviceId: z.ZodNullable<z.ZodString>;
135
135
  channel: z.ZodEnum<{
136
- email: "email";
137
136
  "in-app": "in-app";
138
137
  "web-push": "web-push";
139
138
  "mobile-push": "mobile-push";
139
+ email: "email";
140
140
  }>;
141
141
  provider: z.ZodNullable<z.ZodEnum<{
142
142
  web: "web";
@@ -147,9 +147,9 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
147
147
  body: z.ZodString;
148
148
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
149
  status: z.ZodEnum<{
150
- failed: "failed";
151
150
  pending: "pending";
152
151
  sent: "sent";
152
+ failed: "failed";
153
153
  }>;
154
154
  error: z.ZodNullable<z.ZodString>;
155
155
  jobId: z.ZodNullable<z.ZodString>;
@@ -203,10 +203,10 @@ declare const notificationSendTestOutputSchema: z.ZodObject<{
203
203
  }, z.core.$strip>;
204
204
  declare const notificationKindPreferenceChannelSchema: z.ZodObject<{
205
205
  channel: z.ZodEnum<{
206
- email: "email";
207
206
  "in-app": "in-app";
208
207
  "web-push": "web-push";
209
208
  "mobile-push": "mobile-push";
209
+ email: "email";
210
210
  }>;
211
211
  enabled: z.ZodBoolean;
212
212
  }, z.core.$strip>;
@@ -214,10 +214,10 @@ declare const notificationKindPreferenceSchema: z.ZodObject<{
214
214
  kind: z.ZodString;
215
215
  channels: z.ZodArray<z.ZodObject<{
216
216
  channel: z.ZodEnum<{
217
- email: "email";
218
217
  "in-app": "in-app";
219
218
  "web-push": "web-push";
220
219
  "mobile-push": "mobile-push";
220
+ email: "email";
221
221
  }>;
222
222
  enabled: z.ZodBoolean;
223
223
  }, z.core.$strip>>;
@@ -226,10 +226,10 @@ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
226
226
  kind: z.ZodString;
227
227
  channels: z.ZodArray<z.ZodObject<{
228
228
  channel: z.ZodEnum<{
229
- email: "email";
230
229
  "in-app": "in-app";
231
230
  "web-push": "web-push";
232
231
  "mobile-push": "mobile-push";
232
+ email: "email";
233
233
  }>;
234
234
  enabled: z.ZodBoolean;
235
235
  }, z.core.$strip>>;
@@ -237,10 +237,10 @@ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
237
237
  declare const notificationSetPreferenceInputSchema: z.ZodObject<{
238
238
  kind: z.ZodString;
239
239
  channel: z.ZodEnum<{
240
- email: "email";
241
240
  "in-app": "in-app";
242
241
  "web-push": "web-push";
243
242
  "mobile-push": "mobile-push";
243
+ email: "email";
244
244
  }>;
245
245
  enabled: z.ZodBoolean;
246
246
  }, z.core.$strip>;
@@ -248,10 +248,10 @@ declare const notificationSetPreferenceOutputSchema: z.ZodObject<{
248
248
  kind: z.ZodString;
249
249
  channels: z.ZodArray<z.ZodObject<{
250
250
  channel: z.ZodEnum<{
251
- email: "email";
252
251
  "in-app": "in-app";
253
252
  "web-push": "web-push";
254
253
  "mobile-push": "mobile-push";
254
+ email: "email";
255
255
  }>;
256
256
  enabled: z.ZodBoolean;
257
257
  }, z.core.$strip>>;
@@ -12,9 +12,9 @@ declare const notificationProviderSchema: z.ZodEnum<{
12
12
  fcm: "fcm";
13
13
  }>;
14
14
  declare const notificationSendStatusSchema: z.ZodEnum<{
15
- failed: "failed";
16
15
  pending: "pending";
17
16
  sent: "sent";
17
+ failed: "failed";
18
18
  }>;
19
19
  /** Web Push `PushSubscriptionJSON` subset we persist and accept from clients. */
20
20
  declare const pushSubscriptionJsonSchema: z.ZodObject<{
@@ -87,10 +87,10 @@ declare const notificationVapidPublicKeyOutputSchema: z.ZodObject<{
87
87
  publicKey: z.ZodString;
88
88
  }, z.core.$strip>;
89
89
  declare const notificationChannelSchema: z.ZodEnum<{
90
- email: "email";
91
90
  "in-app": "in-app";
92
91
  "web-push": "web-push";
93
92
  "mobile-push": "mobile-push";
93
+ email: "email";
94
94
  }>;
95
95
  declare const notificationSendLogSelectSchema: z.ZodObject<{
96
96
  id: z.ZodString;
@@ -99,10 +99,10 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
99
99
  userId: z.ZodString;
100
100
  deviceId: z.ZodNullable<z.ZodString>;
101
101
  channel: z.ZodEnum<{
102
- email: "email";
103
102
  "in-app": "in-app";
104
103
  "web-push": "web-push";
105
104
  "mobile-push": "mobile-push";
105
+ email: "email";
106
106
  }>;
107
107
  provider: z.ZodNullable<z.ZodEnum<{
108
108
  web: "web";
@@ -113,9 +113,9 @@ declare const notificationSendLogSelectSchema: z.ZodObject<{
113
113
  body: z.ZodString;
114
114
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
115
  status: z.ZodEnum<{
116
- failed: "failed";
117
116
  pending: "pending";
118
117
  sent: "sent";
118
+ failed: "failed";
119
119
  }>;
120
120
  error: z.ZodNullable<z.ZodString>;
121
121
  jobId: z.ZodNullable<z.ZodString>;
@@ -133,10 +133,10 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
133
133
  userId: z.ZodString;
134
134
  deviceId: z.ZodNullable<z.ZodString>;
135
135
  channel: z.ZodEnum<{
136
- email: "email";
137
136
  "in-app": "in-app";
138
137
  "web-push": "web-push";
139
138
  "mobile-push": "mobile-push";
139
+ email: "email";
140
140
  }>;
141
141
  provider: z.ZodNullable<z.ZodEnum<{
142
142
  web: "web";
@@ -147,9 +147,9 @@ declare const notificationListSendLogsOutputSchema: z.ZodArray<z.ZodObject<{
147
147
  body: z.ZodString;
148
148
  data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
149
  status: z.ZodEnum<{
150
- failed: "failed";
151
150
  pending: "pending";
152
151
  sent: "sent";
152
+ failed: "failed";
153
153
  }>;
154
154
  error: z.ZodNullable<z.ZodString>;
155
155
  jobId: z.ZodNullable<z.ZodString>;
@@ -203,10 +203,10 @@ declare const notificationSendTestOutputSchema: z.ZodObject<{
203
203
  }, z.core.$strip>;
204
204
  declare const notificationKindPreferenceChannelSchema: z.ZodObject<{
205
205
  channel: z.ZodEnum<{
206
- email: "email";
207
206
  "in-app": "in-app";
208
207
  "web-push": "web-push";
209
208
  "mobile-push": "mobile-push";
209
+ email: "email";
210
210
  }>;
211
211
  enabled: z.ZodBoolean;
212
212
  }, z.core.$strip>;
@@ -214,10 +214,10 @@ declare const notificationKindPreferenceSchema: z.ZodObject<{
214
214
  kind: z.ZodString;
215
215
  channels: z.ZodArray<z.ZodObject<{
216
216
  channel: z.ZodEnum<{
217
- email: "email";
218
217
  "in-app": "in-app";
219
218
  "web-push": "web-push";
220
219
  "mobile-push": "mobile-push";
220
+ email: "email";
221
221
  }>;
222
222
  enabled: z.ZodBoolean;
223
223
  }, z.core.$strip>>;
@@ -226,10 +226,10 @@ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
226
226
  kind: z.ZodString;
227
227
  channels: z.ZodArray<z.ZodObject<{
228
228
  channel: z.ZodEnum<{
229
- email: "email";
230
229
  "in-app": "in-app";
231
230
  "web-push": "web-push";
232
231
  "mobile-push": "mobile-push";
232
+ email: "email";
233
233
  }>;
234
234
  enabled: z.ZodBoolean;
235
235
  }, z.core.$strip>>;
@@ -237,10 +237,10 @@ declare const notificationListPreferencesOutputSchema: z.ZodArray<z.ZodObject<{
237
237
  declare const notificationSetPreferenceInputSchema: z.ZodObject<{
238
238
  kind: z.ZodString;
239
239
  channel: z.ZodEnum<{
240
- email: "email";
241
240
  "in-app": "in-app";
242
241
  "web-push": "web-push";
243
242
  "mobile-push": "mobile-push";
243
+ email: "email";
244
244
  }>;
245
245
  enabled: z.ZodBoolean;
246
246
  }, z.core.$strip>;
@@ -248,10 +248,10 @@ declare const notificationSetPreferenceOutputSchema: z.ZodObject<{
248
248
  kind: z.ZodString;
249
249
  channels: z.ZodArray<z.ZodObject<{
250
250
  channel: z.ZodEnum<{
251
- email: "email";
252
251
  "in-app": "in-app";
253
252
  "web-push": "web-push";
254
253
  "mobile-push": "mobile-push";
254
+ email: "email";
255
255
  }>;
256
256
  enabled: z.ZodBoolean;
257
257
  }, z.core.$strip>>;
@@ -12,10 +12,10 @@ declare const filterSchema: z.ZodObject<{
12
12
  jsonArray: "jsonArray";
13
13
  }>;
14
14
  method: z.ZodEnum<{
15
- starts_with: "starts_with";
16
- ends_with: "ends_with";
17
15
  contains: "contains";
18
16
  equals: "equals";
17
+ starts_with: "starts_with";
18
+ ends_with: "ends_with";
19
19
  greater_than: "greater_than";
20
20
  less_than: "less_than";
21
21
  on: "on";
@@ -44,10 +44,10 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
44
44
  jsonArray: "jsonArray";
45
45
  }>;
46
46
  method: z.ZodEnum<{
47
- starts_with: "starts_with";
48
- ends_with: "ends_with";
49
47
  contains: "contains";
50
48
  equals: "equals";
49
+ starts_with: "starts_with";
50
+ ends_with: "ends_with";
51
51
  greater_than: "greater_than";
52
52
  less_than: "less_than";
53
53
  on: "on";
@@ -84,10 +84,10 @@ declare const querySchema: z.ZodObject<{
84
84
  jsonArray: "jsonArray";
85
85
  }>;
86
86
  method: z.ZodEnum<{
87
- starts_with: "starts_with";
88
- ends_with: "ends_with";
89
87
  contains: "contains";
90
88
  equals: "equals";
89
+ starts_with: "starts_with";
90
+ ends_with: "ends_with";
91
91
  greater_than: "greater_than";
92
92
  less_than: "less_than";
93
93
  on: "on";
@@ -12,10 +12,10 @@ declare const filterSchema: z.ZodObject<{
12
12
  jsonArray: "jsonArray";
13
13
  }>;
14
14
  method: z.ZodEnum<{
15
- starts_with: "starts_with";
16
- ends_with: "ends_with";
17
15
  contains: "contains";
18
16
  equals: "equals";
17
+ starts_with: "starts_with";
18
+ ends_with: "ends_with";
19
19
  greater_than: "greater_than";
20
20
  less_than: "less_than";
21
21
  on: "on";
@@ -44,10 +44,10 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
44
44
  jsonArray: "jsonArray";
45
45
  }>;
46
46
  method: z.ZodEnum<{
47
- starts_with: "starts_with";
48
- ends_with: "ends_with";
49
47
  contains: "contains";
50
48
  equals: "equals";
49
+ starts_with: "starts_with";
50
+ ends_with: "ends_with";
51
51
  greater_than: "greater_than";
52
52
  less_than: "less_than";
53
53
  on: "on";
@@ -84,10 +84,10 @@ declare const querySchema: z.ZodObject<{
84
84
  jsonArray: "jsonArray";
85
85
  }>;
86
86
  method: z.ZodEnum<{
87
- starts_with: "starts_with";
88
- ends_with: "ends_with";
89
87
  contains: "contains";
90
88
  equals: "equals";
89
+ starts_with: "starts_with";
90
+ ends_with: "ends_with";
91
91
  greater_than: "greater_than";
92
92
  less_than: "less_than";
93
93
  on: "on";
@@ -42,10 +42,10 @@ declare const tagListInputSchema: z.ZodObject<{
42
42
  jsonArray: "jsonArray";
43
43
  }>;
44
44
  method: z.ZodEnum<{
45
- starts_with: "starts_with";
46
- ends_with: "ends_with";
47
45
  contains: "contains";
48
46
  equals: "equals";
47
+ starts_with: "starts_with";
48
+ ends_with: "ends_with";
49
49
  greater_than: "greater_than";
50
50
  less_than: "less_than";
51
51
  on: "on";
@@ -42,10 +42,10 @@ declare const tagListInputSchema: z.ZodObject<{
42
42
  jsonArray: "jsonArray";
43
43
  }>;
44
44
  method: z.ZodEnum<{
45
- starts_with: "starts_with";
46
- ends_with: "ends_with";
47
45
  contains: "contains";
48
46
  equals: "equals";
47
+ starts_with: "starts_with";
48
+ ends_with: "ends_with";
49
49
  greater_than: "greater_than";
50
50
  less_than: "less_than";
51
51
  on: "on";
@@ -11,10 +11,10 @@ declare const workflowSelectSchema: z.ZodObject<{
11
11
  input: z.ZodUnknown;
12
12
  output: z.ZodUnknown;
13
13
  status: z.ZodEnum<{
14
+ failed: "failed";
14
15
  queued: "queued";
15
16
  running: "running";
16
17
  completed: "completed";
17
- failed: "failed";
18
18
  }>;
19
19
  error: z.ZodNullable<z.ZodString>;
20
20
  retries: z.ZodNumber;
@@ -28,10 +28,10 @@ declare const workflowReadInputSchema: z.ZodObject<{
28
28
  }, z.core.$strip>;
29
29
  declare const workflowListInputSchema: z.ZodObject<{
30
30
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
31
+ failed: "failed";
31
32
  queued: "queued";
32
33
  running: "running";
33
34
  completed: "completed";
34
- failed: "failed";
35
35
  }>>>;
36
36
  jobName: z.ZodOptional<z.ZodString>;
37
37
  }, z.core.$strip>;
@@ -51,10 +51,10 @@ declare const workflowReadOutputSchema: z.ZodObject<{
51
51
  input: z.ZodUnknown;
52
52
  output: z.ZodUnknown;
53
53
  status: z.ZodEnum<{
54
+ failed: "failed";
54
55
  queued: "queued";
55
56
  running: "running";
56
57
  completed: "completed";
57
- failed: "failed";
58
58
  }>;
59
59
  error: z.ZodNullable<z.ZodString>;
60
60
  retries: z.ZodNumber;
@@ -73,10 +73,10 @@ declare const workflowListOutputSchema: z.ZodArray<z.ZodObject<{
73
73
  input: z.ZodUnknown;
74
74
  output: z.ZodUnknown;
75
75
  status: z.ZodEnum<{
76
+ failed: "failed";
76
77
  queued: "queued";
77
78
  running: "running";
78
79
  completed: "completed";
79
- failed: "failed";
80
80
  }>;
81
81
  error: z.ZodNullable<z.ZodString>;
82
82
  retries: z.ZodNumber;
@@ -11,10 +11,10 @@ declare const workflowSelectSchema: z.ZodObject<{
11
11
  input: z.ZodUnknown;
12
12
  output: z.ZodUnknown;
13
13
  status: z.ZodEnum<{
14
+ failed: "failed";
14
15
  queued: "queued";
15
16
  running: "running";
16
17
  completed: "completed";
17
- failed: "failed";
18
18
  }>;
19
19
  error: z.ZodNullable<z.ZodString>;
20
20
  retries: z.ZodNumber;
@@ -28,10 +28,10 @@ declare const workflowReadInputSchema: z.ZodObject<{
28
28
  }, z.core.$strip>;
29
29
  declare const workflowListInputSchema: z.ZodObject<{
30
30
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
31
+ failed: "failed";
31
32
  queued: "queued";
32
33
  running: "running";
33
34
  completed: "completed";
34
- failed: "failed";
35
35
  }>>>;
36
36
  jobName: z.ZodOptional<z.ZodString>;
37
37
  }, z.core.$strip>;
@@ -51,10 +51,10 @@ declare const workflowReadOutputSchema: z.ZodObject<{
51
51
  input: z.ZodUnknown;
52
52
  output: z.ZodUnknown;
53
53
  status: z.ZodEnum<{
54
+ failed: "failed";
54
55
  queued: "queued";
55
56
  running: "running";
56
57
  completed: "completed";
57
- failed: "failed";
58
58
  }>;
59
59
  error: z.ZodNullable<z.ZodString>;
60
60
  retries: z.ZodNumber;
@@ -73,10 +73,10 @@ declare const workflowListOutputSchema: z.ZodArray<z.ZodObject<{
73
73
  input: z.ZodUnknown;
74
74
  output: z.ZodUnknown;
75
75
  status: z.ZodEnum<{
76
+ failed: "failed";
76
77
  queued: "queued";
77
78
  running: "running";
78
79
  completed: "completed";
79
- failed: "failed";
80
80
  }>;
81
81
  error: z.ZodNullable<z.ZodString>;
82
82
  retries: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m5kdev/commons",
3
- "version": "0.38.18",
3
+ "version": "0.38.19",
4
4
  "license": "GPL-3.0-only",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "tsdown": "0.21.7",
22
22
  "typescript": "6.0.3",
23
23
  "zod": "4.4.3",
24
- "@m5kdev/config": "0.38.18"
24
+ "@m5kdev/config": "0.38.19"
25
25
  },
26
26
  "exports": {
27
27
  "./utils/*": {