@m5kdev/commons 0.38.13 → 0.38.14

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.
@@ -58,8 +58,8 @@ declare const organizationIdInputSchema: z.ZodObject<{
58
58
  }, z.core.$strip>;
59
59
  declare const MAX_TRIAL_DAYS = 730;
60
60
  declare const stripeEnvironmentSchema: z.ZodEnum<{
61
- sandbox: "sandbox";
62
61
  production: "production";
62
+ sandbox: "sandbox";
63
63
  }>;
64
64
  declare const createAdminSubscriptionInputSchema: z.ZodObject<{
65
65
  organizationId: z.ZodString;
@@ -147,15 +147,15 @@ declare const billingAdminListInputSchema: z.ZodObject<{
147
147
  string: "string";
148
148
  number: "number";
149
149
  boolean: "boolean";
150
- date: "date";
151
150
  enum: "enum";
151
+ date: "date";
152
152
  jsonArray: "jsonArray";
153
153
  }>;
154
154
  method: z.ZodEnum<{
155
- contains: "contains";
156
- equals: "equals";
157
155
  starts_with: "starts_with";
158
156
  ends_with: "ends_with";
157
+ contains: "contains";
158
+ equals: "equals";
159
159
  greater_than: "greater_than";
160
160
  less_than: "less_than";
161
161
  on: "on";
@@ -225,8 +225,8 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
225
225
  }, z.core.$strip>>;
226
226
  total: z.ZodNumber;
227
227
  environment: z.ZodEnum<{
228
- sandbox: "sandbox";
229
228
  production: "production";
229
+ sandbox: "sandbox";
230
230
  }>;
231
231
  }, z.core.$strip>;
232
232
  type BillingCoupon = z.infer<typeof billingCouponSchema>;
@@ -58,8 +58,8 @@ declare const organizationIdInputSchema: z.ZodObject<{
58
58
  }, z.core.$strip>;
59
59
  declare const MAX_TRIAL_DAYS = 730;
60
60
  declare const stripeEnvironmentSchema: z.ZodEnum<{
61
- sandbox: "sandbox";
62
61
  production: "production";
62
+ sandbox: "sandbox";
63
63
  }>;
64
64
  declare const createAdminSubscriptionInputSchema: z.ZodObject<{
65
65
  organizationId: z.ZodString;
@@ -147,15 +147,15 @@ declare const billingAdminListInputSchema: z.ZodObject<{
147
147
  string: "string";
148
148
  number: "number";
149
149
  boolean: "boolean";
150
- date: "date";
151
150
  enum: "enum";
151
+ date: "date";
152
152
  jsonArray: "jsonArray";
153
153
  }>;
154
154
  method: z.ZodEnum<{
155
- contains: "contains";
156
- equals: "equals";
157
155
  starts_with: "starts_with";
158
156
  ends_with: "ends_with";
157
+ contains: "contains";
158
+ equals: "equals";
159
159
  greater_than: "greater_than";
160
160
  less_than: "less_than";
161
161
  on: "on";
@@ -225,8 +225,8 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
225
225
  }, z.core.$strip>>;
226
226
  total: z.ZodNumber;
227
227
  environment: z.ZodEnum<{
228
- sandbox: "sandbox";
229
228
  production: "production";
229
+ sandbox: "sandbox";
230
230
  }>;
231
231
  }, z.core.$strip>;
232
232
  type BillingCoupon = z.infer<typeof billingCouponSchema>;
@@ -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";
15
16
  pending: "pending";
16
17
  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<{
@@ -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";
116
117
  pending: "pending";
117
118
  sent: "sent";
118
- failed: "failed";
119
119
  }>;
120
120
  error: z.ZodNullable<z.ZodString>;
121
121
  jobId: z.ZodNullable<z.ZodString>;
@@ -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";
150
151
  pending: "pending";
151
152
  sent: "sent";
152
- failed: "failed";
153
153
  }>;
154
154
  error: z.ZodNullable<z.ZodString>;
155
155
  jobId: z.ZodNullable<z.ZodString>;
@@ -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";
15
16
  pending: "pending";
16
17
  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<{
@@ -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";
116
117
  pending: "pending";
117
118
  sent: "sent";
118
- failed: "failed";
119
119
  }>;
120
120
  error: z.ZodNullable<z.ZodString>;
121
121
  jobId: z.ZodNullable<z.ZodString>;
@@ -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";
150
151
  pending: "pending";
151
152
  sent: "sent";
152
- failed: "failed";
153
153
  }>;
154
154
  error: z.ZodNullable<z.ZodString>;
155
155
  jobId: z.ZodNullable<z.ZodString>;
@@ -38,6 +38,7 @@ declare const recurrenceRulesSchema: z.ZodObject<{
38
38
  }, z.core.$strip>;
39
39
  declare const updateRecurrenceRulesSchema: z.ZodObject<{
40
40
  id: z.ZodString;
41
+ interval: z.ZodNumber;
41
42
  bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
42
43
  bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
43
44
  bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
@@ -49,7 +50,6 @@ declare const updateRecurrenceRulesSchema: z.ZodObject<{
49
50
  bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
50
51
  freq: z.ZodNumber;
51
52
  dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
52
- interval: z.ZodNumber;
53
53
  wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
54
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
55
  until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -61,6 +61,7 @@ declare const createRecurrenceSchema: z.ZodObject<{
61
61
  enabled: z.ZodBoolean;
62
62
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
63
  recurrenceRules: z.ZodArray<z.ZodObject<{
64
+ interval: z.ZodNumber;
64
65
  bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
65
66
  bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
66
67
  bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
@@ -72,7 +73,6 @@ declare const createRecurrenceSchema: z.ZodObject<{
72
73
  bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
73
74
  freq: z.ZodNumber;
74
75
  dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
75
- interval: z.ZodNumber;
76
76
  wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
77
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
78
  until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -38,6 +38,7 @@ declare const recurrenceRulesSchema: z.ZodObject<{
38
38
  }, z.core.$strip>;
39
39
  declare const updateRecurrenceRulesSchema: z.ZodObject<{
40
40
  id: z.ZodString;
41
+ interval: z.ZodNumber;
41
42
  bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
42
43
  bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
43
44
  bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
@@ -49,7 +50,6 @@ declare const updateRecurrenceRulesSchema: z.ZodObject<{
49
50
  bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
50
51
  freq: z.ZodNumber;
51
52
  dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
52
- interval: z.ZodNumber;
53
53
  wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
54
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
55
  until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -61,6 +61,7 @@ declare const createRecurrenceSchema: z.ZodObject<{
61
61
  enabled: z.ZodBoolean;
62
62
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
63
  recurrenceRules: z.ZodArray<z.ZodObject<{
64
+ interval: z.ZodNumber;
64
65
  bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
65
66
  bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
66
67
  bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
@@ -72,7 +73,6 @@ declare const createRecurrenceSchema: z.ZodObject<{
72
73
  bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
73
74
  freq: z.ZodNumber;
74
75
  dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
75
- interval: z.ZodNumber;
76
76
  wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
77
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
78
  until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -7,15 +7,15 @@ declare const filterSchema: z.ZodObject<{
7
7
  string: "string";
8
8
  number: "number";
9
9
  boolean: "boolean";
10
- date: "date";
11
10
  enum: "enum";
11
+ date: "date";
12
12
  jsonArray: "jsonArray";
13
13
  }>;
14
14
  method: z.ZodEnum<{
15
- contains: "contains";
16
- equals: "equals";
17
15
  starts_with: "starts_with";
18
16
  ends_with: "ends_with";
17
+ contains: "contains";
18
+ equals: "equals";
19
19
  greater_than: "greater_than";
20
20
  less_than: "less_than";
21
21
  on: "on";
@@ -39,15 +39,15 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
39
39
  string: "string";
40
40
  number: "number";
41
41
  boolean: "boolean";
42
- date: "date";
43
42
  enum: "enum";
43
+ date: "date";
44
44
  jsonArray: "jsonArray";
45
45
  }>;
46
46
  method: z.ZodEnum<{
47
- contains: "contains";
48
- equals: "equals";
49
47
  starts_with: "starts_with";
50
48
  ends_with: "ends_with";
49
+ contains: "contains";
50
+ equals: "equals";
51
51
  greater_than: "greater_than";
52
52
  less_than: "less_than";
53
53
  on: "on";
@@ -79,15 +79,15 @@ declare const querySchema: z.ZodObject<{
79
79
  string: "string";
80
80
  number: "number";
81
81
  boolean: "boolean";
82
- date: "date";
83
82
  enum: "enum";
83
+ date: "date";
84
84
  jsonArray: "jsonArray";
85
85
  }>;
86
86
  method: z.ZodEnum<{
87
- contains: "contains";
88
- equals: "equals";
89
87
  starts_with: "starts_with";
90
88
  ends_with: "ends_with";
89
+ contains: "contains";
90
+ equals: "equals";
91
91
  greater_than: "greater_than";
92
92
  less_than: "less_than";
93
93
  on: "on";
@@ -7,15 +7,15 @@ declare const filterSchema: z.ZodObject<{
7
7
  string: "string";
8
8
  number: "number";
9
9
  boolean: "boolean";
10
- date: "date";
11
10
  enum: "enum";
11
+ date: "date";
12
12
  jsonArray: "jsonArray";
13
13
  }>;
14
14
  method: z.ZodEnum<{
15
- contains: "contains";
16
- equals: "equals";
17
15
  starts_with: "starts_with";
18
16
  ends_with: "ends_with";
17
+ contains: "contains";
18
+ equals: "equals";
19
19
  greater_than: "greater_than";
20
20
  less_than: "less_than";
21
21
  on: "on";
@@ -39,15 +39,15 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
39
39
  string: "string";
40
40
  number: "number";
41
41
  boolean: "boolean";
42
- date: "date";
43
42
  enum: "enum";
43
+ date: "date";
44
44
  jsonArray: "jsonArray";
45
45
  }>;
46
46
  method: z.ZodEnum<{
47
- contains: "contains";
48
- equals: "equals";
49
47
  starts_with: "starts_with";
50
48
  ends_with: "ends_with";
49
+ contains: "contains";
50
+ equals: "equals";
51
51
  greater_than: "greater_than";
52
52
  less_than: "less_than";
53
53
  on: "on";
@@ -79,15 +79,15 @@ declare const querySchema: z.ZodObject<{
79
79
  string: "string";
80
80
  number: "number";
81
81
  boolean: "boolean";
82
- date: "date";
83
82
  enum: "enum";
83
+ date: "date";
84
84
  jsonArray: "jsonArray";
85
85
  }>;
86
86
  method: z.ZodEnum<{
87
- contains: "contains";
88
- equals: "equals";
89
87
  starts_with: "starts_with";
90
88
  ends_with: "ends_with";
89
+ contains: "contains";
90
+ equals: "equals";
91
91
  greater_than: "greater_than";
92
92
  less_than: "less_than";
93
93
  on: "on";
@@ -37,15 +37,15 @@ declare const tagListInputSchema: z.ZodObject<{
37
37
  string: "string";
38
38
  number: "number";
39
39
  boolean: "boolean";
40
- date: "date";
41
40
  enum: "enum";
41
+ date: "date";
42
42
  jsonArray: "jsonArray";
43
43
  }>;
44
44
  method: z.ZodEnum<{
45
- contains: "contains";
46
- equals: "equals";
47
45
  starts_with: "starts_with";
48
46
  ends_with: "ends_with";
47
+ contains: "contains";
48
+ equals: "equals";
49
49
  greater_than: "greater_than";
50
50
  less_than: "less_than";
51
51
  on: "on";
@@ -37,15 +37,15 @@ declare const tagListInputSchema: z.ZodObject<{
37
37
  string: "string";
38
38
  number: "number";
39
39
  boolean: "boolean";
40
- date: "date";
41
40
  enum: "enum";
41
+ date: "date";
42
42
  jsonArray: "jsonArray";
43
43
  }>;
44
44
  method: z.ZodEnum<{
45
- contains: "contains";
46
- equals: "equals";
47
45
  starts_with: "starts_with";
48
46
  ends_with: "ends_with";
47
+ contains: "contains";
48
+ equals: "equals";
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";
15
14
  queued: "queued";
16
15
  running: "running";
17
16
  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";
32
31
  queued: "queued";
33
32
  running: "running";
34
33
  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";
55
54
  queued: "queued";
56
55
  running: "running";
57
56
  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";
77
76
  queued: "queued";
78
77
  running: "running";
79
78
  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";
15
14
  queued: "queued";
16
15
  running: "running";
17
16
  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";
32
31
  queued: "queued";
33
32
  running: "running";
34
33
  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";
55
54
  queued: "queued";
56
55
  running: "running";
57
56
  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";
77
76
  queued: "queued";
78
77
  running: "running";
79
78
  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.13",
3
+ "version": "0.38.14",
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.13"
24
+ "@m5kdev/config": "0.38.14"
25
25
  },
26
26
  "exports": {
27
27
  "./utils/*": {