@m5kdev/commons 0.38.13 → 0.38.15
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 +20 -8
- package/dist/src/modules/billing/billing.schema.d.mts +20 -8
- 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/recurrence/recurrence.schema.d.cts +2 -2
- package/dist/src/modules/recurrence/recurrence.schema.d.mts +2 -2
- 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/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,KAAK,CAAC,cAAc,UAAU,CAAC;AAExE,MAAa,gBAAgBA,IAAAA,EAAE,O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A,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
|
-
sandbox: "sandbox";
|
|
62
|
-
production: "production";
|
|
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
|
-
date: "date";
|
|
151
158
|
enum: "enum";
|
|
159
|
+
date: "date";
|
|
152
160
|
jsonArray: "jsonArray";
|
|
153
161
|
}>;
|
|
154
162
|
method: z.ZodEnum<{
|
|
155
|
-
contains: "contains";
|
|
156
|
-
equals: "equals";
|
|
157
163
|
starts_with: "starts_with";
|
|
158
164
|
ends_with: "ends_with";
|
|
165
|
+
contains: "contains";
|
|
166
|
+
equals: "equals";
|
|
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;
|
|
@@ -225,8 +237,8 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
|
|
|
225
237
|
}, z.core.$strip>>;
|
|
226
238
|
total: z.ZodNumber;
|
|
227
239
|
environment: z.ZodEnum<{
|
|
228
|
-
sandbox: "sandbox";
|
|
229
240
|
production: "production";
|
|
241
|
+
sandbox: "sandbox";
|
|
230
242
|
}>;
|
|
231
243
|
}, z.core.$strip>;
|
|
232
244
|
type BillingCoupon = z.infer<typeof billingCouponSchema>;
|
|
@@ -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
|
-
sandbox: "sandbox";
|
|
62
|
-
production: "production";
|
|
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
|
-
date: "date";
|
|
151
158
|
enum: "enum";
|
|
159
|
+
date: "date";
|
|
152
160
|
jsonArray: "jsonArray";
|
|
153
161
|
}>;
|
|
154
162
|
method: z.ZodEnum<{
|
|
155
|
-
contains: "contains";
|
|
156
|
-
equals: "equals";
|
|
157
163
|
starts_with: "starts_with";
|
|
158
164
|
ends_with: "ends_with";
|
|
165
|
+
contains: "contains";
|
|
166
|
+
equals: "equals";
|
|
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;
|
|
@@ -225,8 +237,8 @@ declare const billingAdminListOutputSchema: z.ZodObject<{
|
|
|
225
237
|
}, z.core.$strip>>;
|
|
226
238
|
total: z.ZodNumber;
|
|
227
239
|
environment: z.ZodEnum<{
|
|
228
|
-
sandbox: "sandbox";
|
|
229
240
|
production: "production";
|
|
241
|
+
sandbox: "sandbox";
|
|
230
242
|
}>;
|
|
231
243
|
}, z.core.$strip>;
|
|
232
244
|
type BillingCoupon = z.infer<typeof billingCouponSchema>;
|
|
@@ -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,SAAS;CAC7B,mBAAmB,EAAE,SAAS,CAAC,SAAS;CACxC,UAAU,EAAE,MAAM,CAAC,SAAS;CAC5B,YAAY,EAAE,MAAM,CAAC,SAAS;CAC9B,OAAO,EAAE,QAAQ,CAAC,SAAS;CAC3B,UAAU,EAAE,QAAQ,CAAC,SAAS;CAC9B,YAAY,EAAE,MAAM,CAAC,SAAS;CAC9B,UAAU,EAAE,MAAM,CAAC,SAAS;CAC5B,SAAS,EAAE,QAAQ,CAAC,SAAS;CAC7B,UAAU,EAAE,QAAQ,CAAC,SAAS;CAC9B,eAAe,EAAE,QAAQ,CAAC,SAAS;CACnC,gBAAgB,EAAE,SAAS,CAAC,SAAS;CACrC,YAAY,EAAE,QAAQ,CAAC,SAAS;CAChC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS;CACxC,aAAa,wBAAwB,SAAS;CAC/C,CAAC;AAIF,MAAa,sBAAsB,EAAE,OAAO;CAC1C,IAAI,EAAE,QAAQ;CACd,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,WAAW,EAAE,QAAQ,CAAC,U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BAAkB,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"}
|
|
@@ -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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m5kdev/commons",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.15",
|
|
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.15"
|
|
25
25
|
},
|
|
26
26
|
"exports": {
|
|
27
27
|
"./utils/*": {
|