evo360-types 1.3.288 → 1.3.292
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/apps/evo-crm/dic/zod-schemas.d.ts +3 -0
- package/dist/apps/evo-crm/dic/zod-schemas.js +1 -0
- package/dist/apps/evo-crm/dic/zod-schemas.ts +1 -0
- package/dist/types/evo-crm/dic/index.d.ts +1 -0
- package/dist/types/evo-crm/dic/index.ts +1 -0
- package/dist/types/evo-finops/common/billing.d.ts +17 -0
- package/dist/types/evo-finops/common/billing.ts +28 -2
- package/package.json +1 -1
|
@@ -203,6 +203,7 @@ export declare const zQualificationSchema: z.ZodObject<{
|
|
|
203
203
|
code: z.ZodString;
|
|
204
204
|
name: z.ZodString;
|
|
205
205
|
funnelLevel: z.ZodEnum<["invalid", "new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
|
|
206
|
+
hide: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
206
207
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
207
208
|
name: z.ZodString;
|
|
208
209
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -234,6 +235,7 @@ export declare const zQualificationSchema: z.ZodObject<{
|
|
|
234
235
|
code: z.ZodString;
|
|
235
236
|
name: z.ZodString;
|
|
236
237
|
funnelLevel: z.ZodEnum<["invalid", "new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
|
|
238
|
+
hide: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
237
239
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
238
240
|
name: z.ZodString;
|
|
239
241
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -265,6 +267,7 @@ export declare const zQualificationSchema: z.ZodObject<{
|
|
|
265
267
|
code: z.ZodString;
|
|
266
268
|
name: z.ZodString;
|
|
267
269
|
funnelLevel: z.ZodEnum<["invalid", "new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
|
|
270
|
+
hide: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
268
271
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
269
272
|
name: z.ZodString;
|
|
270
273
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -41,6 +41,7 @@ exports.zQualificationSchema = zod_schemas_1.zFireDocSchema
|
|
|
41
41
|
code: zod_1.z.string().min(1).max(20),
|
|
42
42
|
name: zod_1.z.string().min(1).max(255),
|
|
43
43
|
funnelLevel: exports.zQualificationFunnelLevelSchema,
|
|
44
|
+
hide: zod_1.z.boolean().optional().default(false),
|
|
44
45
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
45
46
|
})
|
|
46
47
|
.passthrough();
|
|
@@ -42,6 +42,7 @@ export const zQualificationSchema = zFireDocSchema
|
|
|
42
42
|
code: z.string().min(1).max(20),
|
|
43
43
|
name: z.string().min(1).max(255),
|
|
44
44
|
funnelLevel: zQualificationFunnelLevelSchema,
|
|
45
|
+
hide: z.boolean().optional().default(false),
|
|
45
46
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
46
47
|
})
|
|
47
48
|
.passthrough();
|
|
@@ -20,23 +20,40 @@ export interface INexFinopsBillingCompetency {
|
|
|
20
20
|
month: number;
|
|
21
21
|
key: string;
|
|
22
22
|
}
|
|
23
|
+
export interface INexFinopsBillingAttachment {
|
|
24
|
+
/** Nome original do arquivo. */
|
|
25
|
+
filename: string;
|
|
26
|
+
/** Content-type (e.g. application/pdf). */
|
|
27
|
+
content_type: string;
|
|
28
|
+
/** Path no GCS bucket. */
|
|
29
|
+
storage_path: string;
|
|
30
|
+
/** URL pública ou signed URL (quando disponível). */
|
|
31
|
+
url?: string | null;
|
|
32
|
+
/** Timestamp de upload. */
|
|
33
|
+
uploaded_at: string;
|
|
34
|
+
}
|
|
23
35
|
export interface INexFinopsBilling extends IFireGlobalDoc {
|
|
24
36
|
customer_id: string;
|
|
25
37
|
customer_ref?: string | null;
|
|
26
38
|
contract_id: string;
|
|
27
39
|
contract_ref?: string | null;
|
|
28
40
|
status: NexFinopsBillingStatus;
|
|
41
|
+
contact_email?: string | null;
|
|
42
|
+
contact_phone?: string | null;
|
|
29
43
|
services: INexFinopsBillingServiceItem[];
|
|
30
44
|
amount: number;
|
|
31
45
|
discount: number;
|
|
32
46
|
total: number;
|
|
33
47
|
currency: 'BRL';
|
|
34
48
|
due_at: string;
|
|
49
|
+
pix?: string | null;
|
|
35
50
|
paid_at?: string | null;
|
|
36
51
|
payment_method?: string | null;
|
|
37
52
|
payment_options?: INexFinopsBillingPaymentOption[];
|
|
53
|
+
attachments?: INexFinopsBillingAttachment[];
|
|
38
54
|
competency?: INexFinopsBillingCompetency | null;
|
|
39
55
|
contract_snapshot?: Record<string, unknown> | null;
|
|
56
|
+
customer_snapshot?: Record<string, unknown> | null;
|
|
40
57
|
notes?: string | null;
|
|
41
58
|
}
|
|
42
59
|
export declare const NEX_FINOPS_BILLING_STATUS_TRANSITIONS: Record<NexFinopsBillingStatus, NexFinopsBillingStatus[]>;
|
|
@@ -34,6 +34,19 @@ export interface INexFinopsBillingCompetency {
|
|
|
34
34
|
key: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
export interface INexFinopsBillingAttachment {
|
|
38
|
+
/** Nome original do arquivo. */
|
|
39
|
+
filename: string;
|
|
40
|
+
/** Content-type (e.g. application/pdf). */
|
|
41
|
+
content_type: string;
|
|
42
|
+
/** Path no GCS bucket. */
|
|
43
|
+
storage_path: string;
|
|
44
|
+
/** URL pública ou signed URL (quando disponível). */
|
|
45
|
+
url?: string | null;
|
|
46
|
+
/** Timestamp de upload. */
|
|
47
|
+
uploaded_at: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
37
50
|
// ── Main Document ──
|
|
38
51
|
|
|
39
52
|
export interface INexFinopsBilling extends IFireGlobalDoc {
|
|
@@ -46,7 +59,11 @@ export interface INexFinopsBilling extends IFireGlobalDoc {
|
|
|
46
59
|
// Status
|
|
47
60
|
status: NexFinopsBillingStatus;
|
|
48
61
|
|
|
49
|
-
//
|
|
62
|
+
// Contato (copiado do cliente na geração, editável)
|
|
63
|
+
contact_email?: string | null;
|
|
64
|
+
contact_phone?: string | null;
|
|
65
|
+
|
|
66
|
+
// Serviços (snapshot do contrato, editável na cobrança)
|
|
50
67
|
services: INexFinopsBillingServiceItem[];
|
|
51
68
|
|
|
52
69
|
// Valores
|
|
@@ -58,6 +75,9 @@ export interface INexFinopsBilling extends IFireGlobalDoc {
|
|
|
58
75
|
// Vencimento
|
|
59
76
|
due_at: string;
|
|
60
77
|
|
|
78
|
+
// PIX copia e cola
|
|
79
|
+
pix?: string | null;
|
|
80
|
+
|
|
61
81
|
// Pagamento
|
|
62
82
|
paid_at?: string | null;
|
|
63
83
|
payment_method?: string | null;
|
|
@@ -65,12 +85,18 @@ export interface INexFinopsBilling extends IFireGlobalDoc {
|
|
|
65
85
|
// Formas de pagamento emitidas
|
|
66
86
|
payment_options?: INexFinopsBillingPaymentOption[];
|
|
67
87
|
|
|
88
|
+
// Anexos (boleto PDF, etc.)
|
|
89
|
+
attachments?: INexFinopsBillingAttachment[];
|
|
90
|
+
|
|
68
91
|
// Competência
|
|
69
92
|
competency?: INexFinopsBillingCompetency | null;
|
|
70
93
|
|
|
71
|
-
// Snapshot do contrato
|
|
94
|
+
// Snapshot do contrato no momento da geração
|
|
72
95
|
contract_snapshot?: Record<string, unknown> | null;
|
|
73
96
|
|
|
97
|
+
// Snapshot do cliente no momento da geração (dados para NF)
|
|
98
|
+
customer_snapshot?: Record<string, unknown> | null;
|
|
99
|
+
|
|
74
100
|
// Observações
|
|
75
101
|
notes?: string | null;
|
|
76
102
|
}
|