@greatapps/common 1.1.771 → 1.1.773
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/modules/auth/services/auth.service.mjs +8 -5
- package/dist/modules/auth/services/auth.service.mjs.map +1 -1
- package/dist/modules/subscriptions/types/subscription.type.mjs +7 -1
- package/dist/modules/subscriptions/types/subscription.type.mjs.map +1 -1
- package/package.json +1 -1
- package/src/modules/auth/services/auth.service.ts +707 -693
- package/src/modules/subscriptions/types/subscription.type.ts +8 -2
|
@@ -53,7 +53,13 @@ export const SubscriptionSchema = z.object({
|
|
|
53
53
|
card_name: z.string().nullable().optional(),
|
|
54
54
|
card_brand: z.string().nullable().optional(),
|
|
55
55
|
card_number: z.string().nullable().optional(),
|
|
56
|
-
card: z.
|
|
56
|
+
card: z.object({
|
|
57
|
+
id_card: z.union([z.number(), z.string()]).nullable().optional(),
|
|
58
|
+
brand: z.string().nullable().optional(),
|
|
59
|
+
expires_at: z.string().nullable().optional(),
|
|
60
|
+
last4: z.string().nullable().optional(),
|
|
61
|
+
name: z.string().nullable().optional(),
|
|
62
|
+
}).nullable().optional(),
|
|
57
63
|
/* payment_retry: tentativas de cobrança no cartão (Stripe Smart Retries / dunning),
|
|
58
64
|
* lidas ao vivo do latest_invoice. null para boleto/pix (sem retries). Ver gapps-r3-api #229. */
|
|
59
65
|
payment_retry: z.object({
|
|
@@ -85,7 +91,7 @@ export const SubscriptionSchema = z.object({
|
|
|
85
91
|
is_plan_base: z.boolean(),
|
|
86
92
|
is_ai_credit: z.boolean(),
|
|
87
93
|
})),
|
|
88
|
-
new_limits: z.record(z.string(), z.number()).nullable().optional(),
|
|
94
|
+
new_limits: z.record(z.string(), z.number()).nullable().optional(),
|
|
89
95
|
new_discounts: z.array(z.unknown()),
|
|
90
96
|
changes: z.array(z.object({
|
|
91
97
|
type: z.string(),
|