evo360-types 1.3.230 → 1.3.231
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.
|
@@ -9814,9 +9814,10 @@ export declare const zServiceSchema: z.ZodObject<{
|
|
|
9814
9814
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9815
9815
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9816
9816
|
} & {
|
|
9817
|
-
municipalServiceCode: z.ZodString;
|
|
9818
9817
|
name: z.ZodString;
|
|
9818
|
+
municipalServiceCode: z.ZodString;
|
|
9819
9819
|
municipalServiceDescription: z.ZodOptional<z.ZodString>;
|
|
9820
|
+
service_description: z.ZodOptional<z.ZodString>;
|
|
9820
9821
|
defaultProduct: z.ZodOptional<z.ZodBoolean>;
|
|
9821
9822
|
issTax: z.ZodOptional<z.ZodNumber>;
|
|
9822
9823
|
federalServiceTaxCode: z.ZodOptional<z.ZodString>;
|
|
@@ -9876,9 +9877,10 @@ export declare const zServiceSchema: z.ZodObject<{
|
|
|
9876
9877
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9877
9878
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9878
9879
|
} & {
|
|
9879
|
-
municipalServiceCode: z.ZodString;
|
|
9880
9880
|
name: z.ZodString;
|
|
9881
|
+
municipalServiceCode: z.ZodString;
|
|
9881
9882
|
municipalServiceDescription: z.ZodOptional<z.ZodString>;
|
|
9883
|
+
service_description: z.ZodOptional<z.ZodString>;
|
|
9882
9884
|
defaultProduct: z.ZodOptional<z.ZodBoolean>;
|
|
9883
9885
|
issTax: z.ZodOptional<z.ZodNumber>;
|
|
9884
9886
|
federalServiceTaxCode: z.ZodOptional<z.ZodString>;
|
|
@@ -9938,9 +9940,10 @@ export declare const zServiceSchema: z.ZodObject<{
|
|
|
9938
9940
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9939
9941
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9940
9942
|
} & {
|
|
9941
|
-
municipalServiceCode: z.ZodString;
|
|
9942
9943
|
name: z.ZodString;
|
|
9944
|
+
municipalServiceCode: z.ZodString;
|
|
9943
9945
|
municipalServiceDescription: z.ZodOptional<z.ZodString>;
|
|
9946
|
+
service_description: z.ZodOptional<z.ZodString>;
|
|
9944
9947
|
defaultProduct: z.ZodOptional<z.ZodBoolean>;
|
|
9945
9948
|
issTax: z.ZodOptional<z.ZodNumber>;
|
|
9946
9949
|
federalServiceTaxCode: z.ZodOptional<z.ZodString>;
|
|
@@ -352,12 +352,13 @@ exports.zCustomerServiceTaxInfoSchema = zod_1.z
|
|
|
352
352
|
.passthrough();
|
|
353
353
|
exports.zServiceSchema = zod_schemas_1.zFireDocSchema
|
|
354
354
|
.extend({
|
|
355
|
+
name: zod_1.z.string().min(1),
|
|
355
356
|
municipalServiceCode: zod_1.z
|
|
356
357
|
.string()
|
|
357
358
|
.min(3, "Código municipal deve ter entre 3 e 20 caracteres")
|
|
358
359
|
.max(20, "Código municipal deve ter entre 3 e 20 caracteres"),
|
|
359
|
-
name: zod_1.z.string().min(1),
|
|
360
360
|
municipalServiceDescription: zod_1.z.string().optional(),
|
|
361
|
+
service_description: zod_1.z.string().optional(),
|
|
361
362
|
defaultProduct: zod_1.z.boolean().optional(),
|
|
362
363
|
issTax: zod_1.z.number().min(0).max(100).optional(),
|
|
363
364
|
federalServiceTaxCode: zod_1.z.string().optional(),
|
|
@@ -575,7 +576,12 @@ exports.zServiceInvoiceSchema = zod_schemas_1.zFireDocSchema
|
|
|
575
576
|
.array(zod_1.z.object({
|
|
576
577
|
at: zod_schemas_1.zFirestoreDateSchema,
|
|
577
578
|
payload: zod_1.z.record(zod_1.z.unknown()),
|
|
578
|
-
result: zod_1.z
|
|
579
|
+
result: zod_1.z
|
|
580
|
+
.object({
|
|
581
|
+
success: zod_1.z.boolean(),
|
|
582
|
+
message_id: zod_1.z.string().optional(),
|
|
583
|
+
})
|
|
584
|
+
.optional(),
|
|
579
585
|
}))
|
|
580
586
|
.optional(),
|
|
581
587
|
})
|
|
@@ -380,12 +380,13 @@ export const zCustomerServiceTaxInfoSchema = z
|
|
|
380
380
|
|
|
381
381
|
export const zServiceSchema = zFireDocSchema
|
|
382
382
|
.extend({
|
|
383
|
+
name: z.string().min(1),
|
|
383
384
|
municipalServiceCode: z
|
|
384
385
|
.string()
|
|
385
386
|
.min(3, "Código municipal deve ter entre 3 e 20 caracteres")
|
|
386
387
|
.max(20, "Código municipal deve ter entre 3 e 20 caracteres"),
|
|
387
|
-
name: z.string().min(1),
|
|
388
388
|
municipalServiceDescription: z.string().optional(),
|
|
389
|
+
service_description: z.string().optional(),
|
|
389
390
|
defaultProduct: z.boolean().optional(),
|
|
390
391
|
issTax: z.number().min(0).max(100).optional(),
|
|
391
392
|
federalServiceTaxCode: z.string().optional(),
|
|
@@ -509,7 +510,10 @@ export const zInvoiceSourceRefSchema = z
|
|
|
509
510
|
.passthrough();
|
|
510
511
|
|
|
511
512
|
// External link schema (shared across modules) - imported from evo-task to avoid duplication
|
|
512
|
-
import {
|
|
513
|
+
import {
|
|
514
|
+
zExternalObjectTypeSchema,
|
|
515
|
+
zExternalLinkSchema,
|
|
516
|
+
} from "../evo-task/zod-schemas";
|
|
513
517
|
export { zExternalObjectTypeSchema, zExternalLinkSchema };
|
|
514
518
|
|
|
515
519
|
export const zProviderServiceInvoiceStatusSchema = z.enum([
|
|
@@ -624,8 +628,13 @@ export const zServiceInvoiceSchema = zFireDocSchema
|
|
|
624
628
|
z.object({
|
|
625
629
|
at: zFirestoreDateSchema,
|
|
626
630
|
payload: z.record(z.unknown()),
|
|
627
|
-
result: z
|
|
628
|
-
|
|
631
|
+
result: z
|
|
632
|
+
.object({
|
|
633
|
+
success: z.boolean(),
|
|
634
|
+
message_id: z.string().optional(),
|
|
635
|
+
})
|
|
636
|
+
.optional(),
|
|
637
|
+
}),
|
|
629
638
|
)
|
|
630
639
|
.optional(),
|
|
631
640
|
})
|
|
@@ -15,8 +15,9 @@ export interface ICustomerServiceTaxInfo {
|
|
|
15
15
|
operationIndicator?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface IService extends IFireDoc {
|
|
18
|
-
municipalServiceCode: string;
|
|
19
18
|
name: string;
|
|
19
|
+
municipalServiceCode: string;
|
|
20
|
+
service_description: string;
|
|
20
21
|
municipalServiceDescription?: string;
|
|
21
22
|
defaultProduct?: boolean;
|
|
22
23
|
issTax?: number;
|
|
@@ -18,8 +18,9 @@ export interface ICustomerServiceTaxInfo {
|
|
|
18
18
|
|
|
19
19
|
export interface IService extends IFireDoc {
|
|
20
20
|
// Campos principais
|
|
21
|
-
municipalServiceCode: string; // Código de serviço municipal (8 dígitos formatados, ex: "01.01.01")
|
|
22
21
|
name: string; // Nome/descrição do serviço
|
|
22
|
+
municipalServiceCode: string; // Código de serviço municipal (8 dígitos formatados, ex: "01.01.01")
|
|
23
|
+
service_description: string; // Descrição do serviço (máximo 255 caracteres)
|
|
23
24
|
municipalServiceDescription?: string; // Descrição detalhada do serviço
|
|
24
25
|
defaultProduct?: boolean; // Serviço padrão (a ser adicionado por padrão na emissão de notas)
|
|
25
26
|
issTax?: number; // Alíquota ISS (percentual)
|