@m5kdev/commons 0.38.14 → 0.38.16
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.
- package/dist/src/modules/billing/billing.schema.cjs +3 -2
- package/dist/src/modules/billing/billing.schema.cjs.map +1 -1
- package/dist/src/modules/billing/billing.schema.d.cts +19 -7
- package/dist/src/modules/billing/billing.schema.d.mts +19 -7
- package/dist/src/modules/billing/billing.schema.mjs +3 -2
- package/dist/src/modules/billing/billing.schema.mjs.map +1 -1
- package/dist/src/modules/notification/notification.schema.d.cts +3 -3
- package/dist/src/modules/notification/notification.schema.d.mts +3 -3
- package/dist/src/modules/schemas/query.schema.d.cts +9 -9
- package/dist/src/modules/schemas/query.schema.d.mts +9 -9
- package/dist/src/modules/tag/tag.schema.d.cts +3 -3
- package/dist/src/modules/tag/tag.schema.d.mts +3 -3
- package/dist/src/modules/workflow/workflow.schema.d.cts +4 -4
- package/dist/src/modules/workflow/workflow.schema.d.mts +4 -4
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_src_modules_schemas_query_schema = require("../schemas/query.schema.cjs");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region src/modules/billing/billing.schema.ts
|
|
5
|
+
const stripeEnvironmentSchema = zod.z.enum(["production", "sandbox"]);
|
|
5
6
|
const billingSchema = zod.z.object({
|
|
6
7
|
id: zod.z.string(),
|
|
7
8
|
plan: zod.z.string(),
|
|
@@ -23,7 +24,8 @@ const billingSchema = zod.z.object({
|
|
|
23
24
|
intervalCount: zod.z.number().nullish(),
|
|
24
25
|
intervalPicked: zod.z.boolean().nullish(),
|
|
25
26
|
unitAmount: zod.z.number().nullish(),
|
|
26
|
-
discounts: zod.z.array(zod.z.string()).nullish()
|
|
27
|
+
discounts: zod.z.array(zod.z.string()).nullish(),
|
|
28
|
+
environment: stripeEnvironmentSchema.nullish()
|
|
27
29
|
});
|
|
28
30
|
const billingCouponSchema = zod.z.object({
|
|
29
31
|
id: zod.z.string(),
|
|
@@ -42,7 +44,6 @@ const billingCouponSchema = zod.z.object({
|
|
|
42
44
|
const billingCouponListOutputSchema = zod.z.array(billingCouponSchema);
|
|
43
45
|
const organizationIdInputSchema = zod.z.object({ organizationId: zod.z.string() });
|
|
44
46
|
const MAX_TRIAL_DAYS = 730;
|
|
45
|
-
const stripeEnvironmentSchema = zod.z.enum(["production", "sandbox"]);
|
|
46
47
|
const createAdminSubscriptionInputSchema = zod.z.object({
|
|
47
48
|
organizationId: zod.z.string(),
|
|
48
49
|
priceId: zod.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.schema.cjs","names":["z","querySchema","queryListOutput"],"sources":["../../../../src/modules/billing/billing.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport { queryListOutput, querySchema } from \"../schemas/query.schema\";\r\n\r\nexport const billingSchema = z.object({\r\n id: z.string(),\r\n plan: z.string(),\r\n referenceId: z.string(),\r\n stripeCustomerId: z.string().nullish(),\r\n stripeSubscriptionId: z.string().nullish(),\r\n status: z.string(),\r\n periodStart: z.date().nullish(),\r\n periodEnd: z.date().nullish(),\r\n cancelAtPeriodEnd: z.boolean().nullish(),\r\n cancelAt: z.date().nullish(),\r\n canceledAt: z.date().nullish(),\r\n seats: z.number().nullish(),\r\n memberId: z.string().nullish(),\r\n trialStart: z.date().nullish(),\r\n trialEnd: z.date().nullish(),\r\n priceId: z.string().nullish(),\r\n interval: z.string().nullish(),\r\n intervalCount: z.number().nullish(),\r\n intervalPicked: z.boolean().nullish(),\r\n unitAmount: z.number().nullish(),\r\n discounts: z.array(z.string()).nullish(),\r\n});\r\n\r\nexport type BillingSchema = z.infer<typeof billingSchema>;\r\n\r\nexport const billingCouponSchema = z.object({\r\n id: z.string(),\r\n name: z.string().nullable(),\r\n percentOff: z.number().nullable(),\r\n amountOff: z.number().nullable(),\r\n currency: z.string().nullable(),\r\n duration: z.enum([\"forever\", \"once\", \"repeating\"]).nullable(),\r\n durationInMonths: z.number().nullable(),\r\n valid: z.boolean(),\r\n});\r\n\r\nexport const billingCouponListOutputSchema = z.array(billingCouponSchema);\r\n\r\nexport const organizationIdInputSchema = z.object({\r\n organizationId: z.string(),\r\n});\r\n\r\nexport const MAX_TRIAL_DAYS = 730;\r\n\r\nexport const
|
|
1
|
+
{"version":3,"file":"billing.schema.cjs","names":["z","querySchema","queryListOutput"],"sources":["../../../../src/modules/billing/billing.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport { queryListOutput, querySchema } from \"../schemas/query.schema\";\r\n\r\nexport const stripeEnvironmentSchema = z.enum([\"production\", \"sandbox\"]);\r\n\r\nexport const billingSchema = z.object({\r\n id: z.string(),\r\n plan: z.string(),\r\n referenceId: z.string(),\r\n stripeCustomerId: z.string().nullish(),\r\n stripeSubscriptionId: z.string().nullish(),\r\n status: z.string(),\r\n periodStart: z.date().nullish(),\r\n periodEnd: z.date().nullish(),\r\n cancelAtPeriodEnd: z.boolean().nullish(),\r\n cancelAt: z.date().nullish(),\r\n canceledAt: z.date().nullish(),\r\n seats: z.number().nullish(),\r\n memberId: z.string().nullish(),\r\n trialStart: z.date().nullish(),\r\n trialEnd: z.date().nullish(),\r\n priceId: z.string().nullish(),\r\n interval: z.string().nullish(),\r\n intervalCount: z.number().nullish(),\r\n intervalPicked: z.boolean().nullish(),\r\n unitAmount: z.number().nullish(),\r\n discounts: z.array(z.string()).nullish(),\r\n environment: stripeEnvironmentSchema.nullish(),\r\n});\r\n\r\nexport type BillingSchema = z.infer<typeof billingSchema>;\r\n\r\nexport const billingCouponSchema = z.object({\r\n id: z.string(),\r\n name: z.string().nullable(),\r\n percentOff: z.number().nullable(),\r\n amountOff: z.number().nullable(),\r\n currency: z.string().nullable(),\r\n duration: z.enum([\"forever\", \"once\", \"repeating\"]).nullable(),\r\n durationInMonths: z.number().nullable(),\r\n valid: z.boolean(),\r\n});\r\n\r\nexport const billingCouponListOutputSchema = z.array(billingCouponSchema);\r\n\r\nexport const organizationIdInputSchema = z.object({\r\n organizationId: z.string(),\r\n});\r\n\r\nexport const MAX_TRIAL_DAYS = 730;\r\n\r\nexport const createAdminSubscriptionInputSchema = z.object({\r\n organizationId: z.string(),\r\n priceId: z.string(),\r\n couponId: z.string().optional(),\r\n trialDays: z.number().int().min(1).max(MAX_TRIAL_DAYS).optional(),\r\n});\r\n\r\nexport const applyAdminCouponInputSchema = z.object({\r\n organizationId: z.string(),\r\n couponId: z.string(),\r\n});\r\n\r\nexport const setOrganizationCurrencyInputSchema = z.object({\r\n organizationId: z.string(),\r\n currency: z.string(),\r\n});\r\n\r\nexport const setAdminBillingExemptInputSchema = z.object({\r\n organizationId: z.string(),\r\n billingExempt: z.boolean(),\r\n});\r\n\r\nexport const cancelAdminSubscriptionInputSchema = z.object({\r\n organizationId: z.string(),\r\n when: z.enum([\"immediate\", \"period_end\"]),\r\n});\r\n\r\nexport const adminOrganizationBillingRowSchema = z.object({\r\n id: z.string(),\r\n organizationId: z.string(),\r\n organizationName: z.string(),\r\n currency: z.string().nullable(),\r\n stripeCustomerId: z.string().nullable(),\r\n defaultTrialDays: z.number().nullable(),\r\n billingExempt: z.boolean(),\r\n openSubscription: z.boolean(),\r\n subscription: billingSchema.nullable(),\r\n coupon: billingCouponSchema.nullable(),\r\n});\r\n\r\nexport const billingAdminListInputSchema = querySchema;\r\nexport const billingAdminListOutputSchema = queryListOutput(\r\n adminOrganizationBillingRowSchema\r\n).extend({\r\n environment: stripeEnvironmentSchema,\r\n});\r\n\r\nexport type BillingCoupon = z.infer<typeof billingCouponSchema>;\r\nexport type CreateAdminSubscriptionInput = z.infer<typeof createAdminSubscriptionInputSchema>;\r\nexport type SetAdminBillingExemptInput = z.infer<typeof setAdminBillingExemptInputSchema>;\r\nexport type AdminOrganizationBillingRow = z.infer<typeof adminOrganizationBillingRowSchema>;\r\n"],"mappings":";;;;AAGA,MAAa,0BAA0BA,IAAAA,EAAE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A,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,QAAQ;CACd,gBAAgBA,IAAAA,EAAE,QAAQ;CAC1B,kBAAkBA,IAAAA,EAAE,QAAQ;CAC5B,UAAUA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CAC/B,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACvC,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,UAAU;CACvC,eAAeA,IAAAA,EAAE,SAAS;CAC1B,kBAAkBA,IAAAA,EAAE,SAAS;CAC7B,cAAc,cAAc,UAAU;CACtC,QAAQ,oBAAoB,UAAU;CACvC,CAAC;AAEF,MAAa,8BAA8BC,yCAAAA;AAC3C,MAAa,+BAA+BC,yCAAAA,gBAC1C,kCACD,CAAC,OAAO,EACP,aAAa,yBACd,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/billing/billing.schema.d.ts
|
|
4
|
+
declare const stripeEnvironmentSchema: z.ZodEnum<{
|
|
5
|
+
production: "production";
|
|
6
|
+
sandbox: "sandbox";
|
|
7
|
+
}>;
|
|
4
8
|
declare const billingSchema: z.ZodObject<{
|
|
5
9
|
id: z.ZodString;
|
|
6
10
|
plan: z.ZodString;
|
|
@@ -23,6 +27,10 @@ declare const billingSchema: z.ZodObject<{
|
|
|
23
27
|
intervalPicked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
28
|
unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
29
|
discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
31
|
+
production: "production";
|
|
32
|
+
sandbox: "sandbox";
|
|
33
|
+
}>>>;
|
|
26
34
|
}, z.core.$strip>;
|
|
27
35
|
type BillingSchema = z.infer<typeof billingSchema>;
|
|
28
36
|
declare const billingCouponSchema: z.ZodObject<{
|
|
@@ -57,10 +65,6 @@ declare const organizationIdInputSchema: z.ZodObject<{
|
|
|
57
65
|
organizationId: z.ZodString;
|
|
58
66
|
}, z.core.$strip>;
|
|
59
67
|
declare const MAX_TRIAL_DAYS = 730;
|
|
60
|
-
declare const stripeEnvironmentSchema: z.ZodEnum<{
|
|
61
|
-
production: "production";
|
|
62
|
-
sandbox: "sandbox";
|
|
63
|
-
}>;
|
|
64
68
|
declare const createAdminSubscriptionInputSchema: z.ZodObject<{
|
|
65
69
|
organizationId: z.ZodString;
|
|
66
70
|
priceId: z.ZodString;
|
|
@@ -117,6 +121,10 @@ declare const adminOrganizationBillingRowSchema: z.ZodObject<{
|
|
|
117
121
|
intervalPicked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
118
122
|
unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
119
123
|
discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
124
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
125
|
+
production: "production";
|
|
126
|
+
sandbox: "sandbox";
|
|
127
|
+
}>>>;
|
|
120
128
|
}, z.core.$strip>>;
|
|
121
129
|
coupon: z.ZodNullable<z.ZodObject<{
|
|
122
130
|
id: z.ZodString;
|
|
@@ -147,15 +155,15 @@ declare const billingAdminListInputSchema: z.ZodObject<{
|
|
|
147
155
|
string: "string";
|
|
148
156
|
number: "number";
|
|
149
157
|
boolean: "boolean";
|
|
150
|
-
enum: "enum";
|
|
151
158
|
date: "date";
|
|
159
|
+
enum: "enum";
|
|
152
160
|
jsonArray: "jsonArray";
|
|
153
161
|
}>;
|
|
154
162
|
method: z.ZodEnum<{
|
|
155
|
-
starts_with: "starts_with";
|
|
156
|
-
ends_with: "ends_with";
|
|
157
163
|
contains: "contains";
|
|
158
164
|
equals: "equals";
|
|
165
|
+
starts_with: "starts_with";
|
|
166
|
+
ends_with: "ends_with";
|
|
159
167
|
greater_than: "greater_than";
|
|
160
168
|
less_than: "less_than";
|
|
161
169
|
on: "on";
|
|
@@ -207,6 +215,10 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
|
|
|
207
215
|
intervalPicked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
208
216
|
unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
209
217
|
discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
218
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
219
|
+
production: "production";
|
|
220
|
+
sandbox: "sandbox";
|
|
221
|
+
}>>>;
|
|
210
222
|
}, z.core.$strip>>;
|
|
211
223
|
coupon: z.ZodNullable<z.ZodObject<{
|
|
212
224
|
id: z.ZodString;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/billing/billing.schema.d.ts
|
|
4
|
+
declare const stripeEnvironmentSchema: z.ZodEnum<{
|
|
5
|
+
production: "production";
|
|
6
|
+
sandbox: "sandbox";
|
|
7
|
+
}>;
|
|
4
8
|
declare const billingSchema: z.ZodObject<{
|
|
5
9
|
id: z.ZodString;
|
|
6
10
|
plan: z.ZodString;
|
|
@@ -23,6 +27,10 @@ declare const billingSchema: z.ZodObject<{
|
|
|
23
27
|
intervalPicked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
28
|
unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
29
|
discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
31
|
+
production: "production";
|
|
32
|
+
sandbox: "sandbox";
|
|
33
|
+
}>>>;
|
|
26
34
|
}, z.core.$strip>;
|
|
27
35
|
type BillingSchema = z.infer<typeof billingSchema>;
|
|
28
36
|
declare const billingCouponSchema: z.ZodObject<{
|
|
@@ -57,10 +65,6 @@ declare const organizationIdInputSchema: z.ZodObject<{
|
|
|
57
65
|
organizationId: z.ZodString;
|
|
58
66
|
}, z.core.$strip>;
|
|
59
67
|
declare const MAX_TRIAL_DAYS = 730;
|
|
60
|
-
declare const stripeEnvironmentSchema: z.ZodEnum<{
|
|
61
|
-
production: "production";
|
|
62
|
-
sandbox: "sandbox";
|
|
63
|
-
}>;
|
|
64
68
|
declare const createAdminSubscriptionInputSchema: z.ZodObject<{
|
|
65
69
|
organizationId: z.ZodString;
|
|
66
70
|
priceId: z.ZodString;
|
|
@@ -117,6 +121,10 @@ declare const adminOrganizationBillingRowSchema: z.ZodObject<{
|
|
|
117
121
|
intervalPicked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
118
122
|
unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
119
123
|
discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
124
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
125
|
+
production: "production";
|
|
126
|
+
sandbox: "sandbox";
|
|
127
|
+
}>>>;
|
|
120
128
|
}, z.core.$strip>>;
|
|
121
129
|
coupon: z.ZodNullable<z.ZodObject<{
|
|
122
130
|
id: z.ZodString;
|
|
@@ -147,15 +155,15 @@ declare const billingAdminListInputSchema: z.ZodObject<{
|
|
|
147
155
|
string: "string";
|
|
148
156
|
number: "number";
|
|
149
157
|
boolean: "boolean";
|
|
150
|
-
enum: "enum";
|
|
151
158
|
date: "date";
|
|
159
|
+
enum: "enum";
|
|
152
160
|
jsonArray: "jsonArray";
|
|
153
161
|
}>;
|
|
154
162
|
method: z.ZodEnum<{
|
|
155
|
-
starts_with: "starts_with";
|
|
156
|
-
ends_with: "ends_with";
|
|
157
163
|
contains: "contains";
|
|
158
164
|
equals: "equals";
|
|
165
|
+
starts_with: "starts_with";
|
|
166
|
+
ends_with: "ends_with";
|
|
159
167
|
greater_than: "greater_than";
|
|
160
168
|
less_than: "less_than";
|
|
161
169
|
on: "on";
|
|
@@ -207,6 +215,10 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
|
|
|
207
215
|
intervalPicked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
208
216
|
unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
209
217
|
discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
218
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
219
|
+
production: "production";
|
|
220
|
+
sandbox: "sandbox";
|
|
221
|
+
}>>>;
|
|
210
222
|
}, z.core.$strip>>;
|
|
211
223
|
coupon: z.ZodNullable<z.ZodObject<{
|
|
212
224
|
id: z.ZodString;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { queryListOutput, querySchema } from "../schemas/query.schema.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/modules/billing/billing.schema.ts
|
|
4
|
+
const stripeEnvironmentSchema = z.enum(["production", "sandbox"]);
|
|
4
5
|
const billingSchema = z.object({
|
|
5
6
|
id: z.string(),
|
|
6
7
|
plan: z.string(),
|
|
@@ -22,7 +23,8 @@ const billingSchema = z.object({
|
|
|
22
23
|
intervalCount: z.number().nullish(),
|
|
23
24
|
intervalPicked: z.boolean().nullish(),
|
|
24
25
|
unitAmount: z.number().nullish(),
|
|
25
|
-
discounts: z.array(z.string()).nullish()
|
|
26
|
+
discounts: z.array(z.string()).nullish(),
|
|
27
|
+
environment: stripeEnvironmentSchema.nullish()
|
|
26
28
|
});
|
|
27
29
|
const billingCouponSchema = z.object({
|
|
28
30
|
id: z.string(),
|
|
@@ -41,7 +43,6 @@ const billingCouponSchema = z.object({
|
|
|
41
43
|
const billingCouponListOutputSchema = z.array(billingCouponSchema);
|
|
42
44
|
const organizationIdInputSchema = z.object({ organizationId: z.string() });
|
|
43
45
|
const MAX_TRIAL_DAYS = 730;
|
|
44
|
-
const stripeEnvironmentSchema = z.enum(["production", "sandbox"]);
|
|
45
46
|
const createAdminSubscriptionInputSchema = z.object({
|
|
46
47
|
organizationId: z.string(),
|
|
47
48
|
priceId: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.schema.mjs","names":[],"sources":["../../../../src/modules/billing/billing.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport { queryListOutput, querySchema } from \"../schemas/query.schema\";\r\n\r\nexport const billingSchema = z.object({\r\n id: z.string(),\r\n plan: z.string(),\r\n referenceId: z.string(),\r\n stripeCustomerId: z.string().nullish(),\r\n stripeSubscriptionId: z.string().nullish(),\r\n status: z.string(),\r\n periodStart: z.date().nullish(),\r\n periodEnd: z.date().nullish(),\r\n cancelAtPeriodEnd: z.boolean().nullish(),\r\n cancelAt: z.date().nullish(),\r\n canceledAt: z.date().nullish(),\r\n seats: z.number().nullish(),\r\n memberId: z.string().nullish(),\r\n trialStart: z.date().nullish(),\r\n trialEnd: z.date().nullish(),\r\n priceId: z.string().nullish(),\r\n interval: z.string().nullish(),\r\n intervalCount: z.number().nullish(),\r\n intervalPicked: z.boolean().nullish(),\r\n unitAmount: z.number().nullish(),\r\n discounts: z.array(z.string()).nullish(),\r\n});\r\n\r\nexport type BillingSchema = z.infer<typeof billingSchema>;\r\n\r\nexport const billingCouponSchema = z.object({\r\n id: z.string(),\r\n name: z.string().nullable(),\r\n percentOff: z.number().nullable(),\r\n amountOff: z.number().nullable(),\r\n currency: z.string().nullable(),\r\n duration: z.enum([\"forever\", \"once\", \"repeating\"]).nullable(),\r\n durationInMonths: z.number().nullable(),\r\n valid: z.boolean(),\r\n});\r\n\r\nexport const billingCouponListOutputSchema = z.array(billingCouponSchema);\r\n\r\nexport const organizationIdInputSchema = z.object({\r\n organizationId: z.string(),\r\n});\r\n\r\nexport const MAX_TRIAL_DAYS = 730;\r\n\r\nexport const
|
|
1
|
+
{"version":3,"file":"billing.schema.mjs","names":[],"sources":["../../../../src/modules/billing/billing.schema.ts"],"sourcesContent":["import { z } from \"zod\";\r\nimport { queryListOutput, querySchema } from \"../schemas/query.schema\";\r\n\r\nexport const stripeEnvironmentSchema = z.enum([\"production\", \"sandbox\"]);\r\n\r\nexport const billingSchema = z.object({\r\n id: z.string(),\r\n plan: z.string(),\r\n referenceId: z.string(),\r\n stripeCustomerId: z.string().nullish(),\r\n stripeSubscriptionId: z.string().nullish(),\r\n status: z.string(),\r\n periodStart: z.date().nullish(),\r\n periodEnd: z.date().nullish(),\r\n cancelAtPeriodEnd: z.boolean().nullish(),\r\n cancelAt: z.date().nullish(),\r\n canceledAt: z.date().nullish(),\r\n seats: z.number().nullish(),\r\n memberId: z.string().nullish(),\r\n trialStart: z.date().nullish(),\r\n trialEnd: z.date().nullish(),\r\n priceId: z.string().nullish(),\r\n interval: z.string().nullish(),\r\n intervalCount: z.number().nullish(),\r\n intervalPicked: z.boolean().nullish(),\r\n unitAmount: z.number().nullish(),\r\n discounts: z.array(z.string()).nullish(),\r\n environment: stripeEnvironmentSchema.nullish(),\r\n});\r\n\r\nexport type BillingSchema = z.infer<typeof billingSchema>;\r\n\r\nexport const billingCouponSchema = z.object({\r\n id: z.string(),\r\n name: z.string().nullable(),\r\n percentOff: z.number().nullable(),\r\n amountOff: z.number().nullable(),\r\n currency: z.string().nullable(),\r\n duration: z.enum([\"forever\", \"once\", \"repeating\"]).nullable(),\r\n durationInMonths: z.number().nullable(),\r\n valid: z.boolean(),\r\n});\r\n\r\nexport const billingCouponListOutputSchema = z.array(billingCouponSchema);\r\n\r\nexport const organizationIdInputSchema = z.object({\r\n organizationId: z.string(),\r\n});\r\n\r\nexport const MAX_TRIAL_DAYS = 730;\r\n\r\nexport const createAdminSubscriptionInputSchema = z.object({\r\n organizationId: z.string(),\r\n priceId: z.string(),\r\n couponId: z.string().optional(),\r\n trialDays: z.number().int().min(1).max(MAX_TRIAL_DAYS).optional(),\r\n});\r\n\r\nexport const applyAdminCouponInputSchema = z.object({\r\n organizationId: z.string(),\r\n couponId: z.string(),\r\n});\r\n\r\nexport const setOrganizationCurrencyInputSchema = z.object({\r\n organizationId: z.string(),\r\n currency: z.string(),\r\n});\r\n\r\nexport const setAdminBillingExemptInputSchema = z.object({\r\n organizationId: z.string(),\r\n billingExempt: z.boolean(),\r\n});\r\n\r\nexport const cancelAdminSubscriptionInputSchema = z.object({\r\n organizationId: z.string(),\r\n when: z.enum([\"immediate\", \"period_end\"]),\r\n});\r\n\r\nexport const adminOrganizationBillingRowSchema = z.object({\r\n id: z.string(),\r\n organizationId: z.string(),\r\n organizationName: z.string(),\r\n currency: z.string().nullable(),\r\n stripeCustomerId: z.string().nullable(),\r\n defaultTrialDays: z.number().nullable(),\r\n billingExempt: z.boolean(),\r\n openSubscription: z.boolean(),\r\n subscription: billingSchema.nullable(),\r\n coupon: billingCouponSchema.nullable(),\r\n});\r\n\r\nexport const billingAdminListInputSchema = querySchema;\r\nexport const billingAdminListOutputSchema = queryListOutput(\r\n adminOrganizationBillingRowSchema\r\n).extend({\r\n environment: stripeEnvironmentSchema,\r\n});\r\n\r\nexport type BillingCoupon = z.infer<typeof billingCouponSchema>;\r\nexport type CreateAdminSubscriptionInput = z.infer<typeof createAdminSubscriptionInputSchema>;\r\nexport type SetAdminBillingExemptInput = z.infer<typeof setAdminBillingExemptInputSchema>;\r\nexport type AdminOrganizationBillingRow = z.infer<typeof adminOrganizationBillingRowSchema>;\r\n"],"mappings":";;;AAGA,MAAa,0BAA0B,EAAE,KAAK,CAAC,cAAc,UAAU,CAAC;AAExE,MAAa,gBAAgB,EAAE,OAAO;CACpC,IAAI,EAAE,QAAQ;CACd,MAAM,EAAE,QAAQ;CAChB,aAAa,EAAE,QAAQ;CACvB,kBAAkB,EAAE,QAAQ,CAAC,SAAS;CACtC,sBAAsB,EAAE,QAAQ,CAAC,SAAS;CAC1C,QAAQ,EAAE,QAAQ;CAClB,aAAa,EAAE,MAAM,CAAC,SAAS;CAC/B,WAAW,EAAE,MAAM,CAAC,SAA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AAA,IAAmB,CAAC,UAAU;CAClE,CAAC;AAEF,MAAa,8BAA8B,EAAE,OAAO;CAClD,gBAAgB,EAAE,QAAQ;CAC1B,UAAU,EAAE,QAAQ;CACrB,CAAC;AAEF,MAAa,qCAAqC,EAAE,OAAO;CACzD,gBAAgB,EAAE,QAAQ;CAC1B,UAAU,EAAE,QAAQ;CACrB,CAAC;AAEF,MAAa,mCAAmC,EAAE,OAAO;CACvD,gBAAgB,EAAE,QAAQ;CAC1B,eAAe,EAAE,SAAS;CAC3B,CAAC;AAEF,MAAa,qCAAqC,EAAE,OAAO;CACzD,gBAAgB,EAAE,QAAQ;CAC1B,MAAM,EAAE,KAAK,CAAC,aAAa,aAAa,CAAC;CAC1C,CAAC;AAEF,MAAa,oCAAoC,EAAE,OAAO;CACxD,IAAI,EAAE,QAAQ;CACd,gBAAgB,EAAE,QAAQ;CAC1B,kBAAkB,EAAE,QAAQ;CAC5B,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,kBAAkB,EAAE,QAAQ,CAAC,UAAU;CACvC,kBAAkB,EAAE,QAAQ,CAAC,UAAU;CACvC,eAAe,EAAE,SAAS;CAC1B,kBAAkB,EAAE,SAAS;CAC7B,cAAc,cAAc,UAAU;CACtC,QAAQ,oBAAoB,UAAU;CACvC,CAAC;AAEF,MAAa,8BAA8B;AAC3C,MAAa,+BAA+B,gBAC1C,kCACD,CAAC,OAAO,EACP,aAAa,yBACd,CAAC"}
|
|
@@ -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<{
|
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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<{
|
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -7,15 +7,15 @@ declare const filterSchema: z.ZodObject<{
|
|
|
7
7
|
string: "string";
|
|
8
8
|
number: "number";
|
|
9
9
|
boolean: "boolean";
|
|
10
|
-
enum: "enum";
|
|
11
10
|
date: "date";
|
|
11
|
+
enum: "enum";
|
|
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";
|
|
@@ -39,15 +39,15 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
|
|
|
39
39
|
string: "string";
|
|
40
40
|
number: "number";
|
|
41
41
|
boolean: "boolean";
|
|
42
|
-
enum: "enum";
|
|
43
42
|
date: "date";
|
|
43
|
+
enum: "enum";
|
|
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";
|
|
@@ -79,15 +79,15 @@ declare const querySchema: z.ZodObject<{
|
|
|
79
79
|
string: "string";
|
|
80
80
|
number: "number";
|
|
81
81
|
boolean: "boolean";
|
|
82
|
-
enum: "enum";
|
|
83
82
|
date: "date";
|
|
83
|
+
enum: "enum";
|
|
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";
|
|
@@ -7,15 +7,15 @@ declare const filterSchema: z.ZodObject<{
|
|
|
7
7
|
string: "string";
|
|
8
8
|
number: "number";
|
|
9
9
|
boolean: "boolean";
|
|
10
|
-
enum: "enum";
|
|
11
10
|
date: "date";
|
|
11
|
+
enum: "enum";
|
|
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";
|
|
@@ -39,15 +39,15 @@ declare const filtersSchema: z.ZodArray<z.ZodObject<{
|
|
|
39
39
|
string: "string";
|
|
40
40
|
number: "number";
|
|
41
41
|
boolean: "boolean";
|
|
42
|
-
enum: "enum";
|
|
43
42
|
date: "date";
|
|
43
|
+
enum: "enum";
|
|
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";
|
|
@@ -79,15 +79,15 @@ declare const querySchema: z.ZodObject<{
|
|
|
79
79
|
string: "string";
|
|
80
80
|
number: "number";
|
|
81
81
|
boolean: "boolean";
|
|
82
|
-
enum: "enum";
|
|
83
82
|
date: "date";
|
|
83
|
+
enum: "enum";
|
|
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";
|
|
@@ -37,15 +37,15 @@ declare const tagListInputSchema: z.ZodObject<{
|
|
|
37
37
|
string: "string";
|
|
38
38
|
number: "number";
|
|
39
39
|
boolean: "boolean";
|
|
40
|
-
enum: "enum";
|
|
41
40
|
date: "date";
|
|
41
|
+
enum: "enum";
|
|
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";
|
|
@@ -37,15 +37,15 @@ declare const tagListInputSchema: z.ZodObject<{
|
|
|
37
37
|
string: "string";
|
|
38
38
|
number: "number";
|
|
39
39
|
boolean: "boolean";
|
|
40
|
-
enum: "enum";
|
|
41
40
|
date: "date";
|
|
41
|
+
enum: "enum";
|
|
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.
|
|
3
|
+
"version": "0.38.16",
|
|
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.
|
|
24
|
+
"@m5kdev/config": "0.38.16"
|
|
25
25
|
},
|
|
26
26
|
"exports": {
|
|
27
27
|
"./utils/*": {
|