evo360-types 1.3.211 → 1.3.212

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.
@@ -9759,6 +9759,233 @@ export declare const zIssuerTaxProfileSchema: z.ZodObject<{
9759
9759
  details?: unknown;
9760
9760
  }>>;
9761
9761
  }, z.ZodTypeAny, "passthrough">>;
9762
+ export declare const zCustomerServiceTaxInfoSchema: z.ZodObject<{
9763
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9764
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9765
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9766
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9767
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9768
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9769
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9770
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9771
+ nbsCode: z.ZodOptional<z.ZodString>;
9772
+ taxSituation: z.ZodOptional<z.ZodString>;
9773
+ taxClassification: z.ZodOptional<z.ZodString>;
9774
+ operationIndicator: z.ZodOptional<z.ZodString>;
9775
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9776
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9777
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9778
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9779
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9780
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9781
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9782
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9783
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9784
+ nbsCode: z.ZodOptional<z.ZodString>;
9785
+ taxSituation: z.ZodOptional<z.ZodString>;
9786
+ taxClassification: z.ZodOptional<z.ZodString>;
9787
+ operationIndicator: z.ZodOptional<z.ZodString>;
9788
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9789
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9790
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9791
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9792
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9793
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9794
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9795
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9796
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9797
+ nbsCode: z.ZodOptional<z.ZodString>;
9798
+ taxSituation: z.ZodOptional<z.ZodString>;
9799
+ taxClassification: z.ZodOptional<z.ZodString>;
9800
+ operationIndicator: z.ZodOptional<z.ZodString>;
9801
+ }, z.ZodTypeAny, "passthrough">>;
9802
+ export declare const zServiceSchema: z.ZodObject<{
9803
+ id: z.ZodString;
9804
+ ref: z.ZodAny;
9805
+ tenant: z.ZodString;
9806
+ model_ver: z.ZodDefault<z.ZodNumber>;
9807
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9808
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9809
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9810
+ } & {
9811
+ municipalServiceCode: z.ZodString;
9812
+ name: z.ZodString;
9813
+ municipalServiceDescription: z.ZodOptional<z.ZodString>;
9814
+ defaultProduct: z.ZodOptional<z.ZodBoolean>;
9815
+ issTax: z.ZodOptional<z.ZodNumber>;
9816
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9817
+ nbsCode: z.ZodOptional<z.ZodString>;
9818
+ municipalServiceExternalId: z.ZodOptional<z.ZodString>;
9819
+ easyTaxInvoiceServiceId: z.ZodOptional<z.ZodString>;
9820
+ customerServiceTaxInfo: z.ZodOptional<z.ZodObject<{
9821
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9822
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9823
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9824
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9825
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9826
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9827
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9828
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9829
+ nbsCode: z.ZodOptional<z.ZodString>;
9830
+ taxSituation: z.ZodOptional<z.ZodString>;
9831
+ taxClassification: z.ZodOptional<z.ZodString>;
9832
+ operationIndicator: z.ZodOptional<z.ZodString>;
9833
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9834
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9835
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9836
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9837
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9838
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9839
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9840
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9841
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9842
+ nbsCode: z.ZodOptional<z.ZodString>;
9843
+ taxSituation: z.ZodOptional<z.ZodString>;
9844
+ taxClassification: z.ZodOptional<z.ZodString>;
9845
+ operationIndicator: z.ZodOptional<z.ZodString>;
9846
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9847
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9848
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9849
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9850
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9851
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9852
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9853
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9854
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9855
+ nbsCode: z.ZodOptional<z.ZodString>;
9856
+ taxSituation: z.ZodOptional<z.ZodString>;
9857
+ taxClassification: z.ZodOptional<z.ZodString>;
9858
+ operationIndicator: z.ZodOptional<z.ZodString>;
9859
+ }, z.ZodTypeAny, "passthrough">>>;
9860
+ customerCity: z.ZodOptional<z.ZodString>;
9861
+ customerState: z.ZodOptional<z.ZodString>;
9862
+ customerId: z.ZodOptional<z.ZodString>;
9863
+ shouldUpdateTaxInfoOnInvoices: z.ZodOptional<z.ZodBoolean>;
9864
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9865
+ id: z.ZodString;
9866
+ ref: z.ZodAny;
9867
+ tenant: z.ZodString;
9868
+ model_ver: z.ZodDefault<z.ZodNumber>;
9869
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9870
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9871
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9872
+ } & {
9873
+ municipalServiceCode: z.ZodString;
9874
+ name: z.ZodString;
9875
+ municipalServiceDescription: z.ZodOptional<z.ZodString>;
9876
+ defaultProduct: z.ZodOptional<z.ZodBoolean>;
9877
+ issTax: z.ZodOptional<z.ZodNumber>;
9878
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9879
+ nbsCode: z.ZodOptional<z.ZodString>;
9880
+ municipalServiceExternalId: z.ZodOptional<z.ZodString>;
9881
+ easyTaxInvoiceServiceId: z.ZodOptional<z.ZodString>;
9882
+ customerServiceTaxInfo: z.ZodOptional<z.ZodObject<{
9883
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9884
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9885
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9886
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9887
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9888
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9889
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9890
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9891
+ nbsCode: z.ZodOptional<z.ZodString>;
9892
+ taxSituation: z.ZodOptional<z.ZodString>;
9893
+ taxClassification: z.ZodOptional<z.ZodString>;
9894
+ operationIndicator: z.ZodOptional<z.ZodString>;
9895
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9896
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9897
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9898
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9899
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9900
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9901
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9902
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9903
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9904
+ nbsCode: z.ZodOptional<z.ZodString>;
9905
+ taxSituation: z.ZodOptional<z.ZodString>;
9906
+ taxClassification: z.ZodOptional<z.ZodString>;
9907
+ operationIndicator: z.ZodOptional<z.ZodString>;
9908
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9909
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9910
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9911
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9912
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9913
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9914
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9915
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9916
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9917
+ nbsCode: z.ZodOptional<z.ZodString>;
9918
+ taxSituation: z.ZodOptional<z.ZodString>;
9919
+ taxClassification: z.ZodOptional<z.ZodString>;
9920
+ operationIndicator: z.ZodOptional<z.ZodString>;
9921
+ }, z.ZodTypeAny, "passthrough">>>;
9922
+ customerCity: z.ZodOptional<z.ZodString>;
9923
+ customerState: z.ZodOptional<z.ZodString>;
9924
+ customerId: z.ZodOptional<z.ZodString>;
9925
+ shouldUpdateTaxInfoOnInvoices: z.ZodOptional<z.ZodBoolean>;
9926
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9927
+ id: z.ZodString;
9928
+ ref: z.ZodAny;
9929
+ tenant: z.ZodString;
9930
+ model_ver: z.ZodDefault<z.ZodNumber>;
9931
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9932
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9933
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9934
+ } & {
9935
+ municipalServiceCode: z.ZodString;
9936
+ name: z.ZodString;
9937
+ municipalServiceDescription: z.ZodOptional<z.ZodString>;
9938
+ defaultProduct: z.ZodOptional<z.ZodBoolean>;
9939
+ issTax: z.ZodOptional<z.ZodNumber>;
9940
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9941
+ nbsCode: z.ZodOptional<z.ZodString>;
9942
+ municipalServiceExternalId: z.ZodOptional<z.ZodString>;
9943
+ easyTaxInvoiceServiceId: z.ZodOptional<z.ZodString>;
9944
+ customerServiceTaxInfo: z.ZodOptional<z.ZodObject<{
9945
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9946
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9947
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9948
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9949
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9950
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9951
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9952
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9953
+ nbsCode: z.ZodOptional<z.ZodString>;
9954
+ taxSituation: z.ZodOptional<z.ZodString>;
9955
+ taxClassification: z.ZodOptional<z.ZodString>;
9956
+ operationIndicator: z.ZodOptional<z.ZodString>;
9957
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9958
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9959
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9960
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9961
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9962
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9963
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9964
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9965
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9966
+ nbsCode: z.ZodOptional<z.ZodString>;
9967
+ taxSituation: z.ZodOptional<z.ZodString>;
9968
+ taxClassification: z.ZodOptional<z.ZodString>;
9969
+ operationIndicator: z.ZodOptional<z.ZodString>;
9970
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9971
+ pisCofinsRetentionType: z.ZodOptional<z.ZodString>;
9972
+ pisCofinsTaxStatus: z.ZodOptional<z.ZodString>;
9973
+ pisPercentage: z.ZodOptional<z.ZodNumber>;
9974
+ cofinsPercentage: z.ZodOptional<z.ZodNumber>;
9975
+ csllPercentage: z.ZodOptional<z.ZodNumber>;
9976
+ inssPercentage: z.ZodOptional<z.ZodNumber>;
9977
+ irPercentage: z.ZodOptional<z.ZodNumber>;
9978
+ federalServiceTaxCode: z.ZodOptional<z.ZodString>;
9979
+ nbsCode: z.ZodOptional<z.ZodString>;
9980
+ taxSituation: z.ZodOptional<z.ZodString>;
9981
+ taxClassification: z.ZodOptional<z.ZodString>;
9982
+ operationIndicator: z.ZodOptional<z.ZodString>;
9983
+ }, z.ZodTypeAny, "passthrough">>>;
9984
+ customerCity: z.ZodOptional<z.ZodString>;
9985
+ customerState: z.ZodOptional<z.ZodString>;
9986
+ customerId: z.ZodOptional<z.ZodString>;
9987
+ shouldUpdateTaxInfoOnInvoices: z.ZodOptional<z.ZodBoolean>;
9988
+ }, z.ZodTypeAny, "passthrough">>;
9762
9989
  export declare const zInvoiceTakerTypeSchema: z.ZodEnum<["PF", "PJ", "unknown"]>;
9763
9990
  export declare const zTakerAddressSchema: z.ZodObject<{
9764
9991
  postalCode: z.ZodOptional<z.ZodString>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zProviderPayloadSnapshotSchema = exports.zProviderTraceSchema = exports.zProviderInvoiceErrorSchema = exports.zProviderInvoiceIdentifiersSchema = exports.zProviderInvoiceLinksSchema = exports.zServiceTaxInfoSchema = exports.zServiceLineItemSchema = exports.zServiceInvoiceStateSchema = exports.zProviderServiceInvoiceStatusSchema = exports.zInvoiceSourceRefSchema = exports.zInvoiceSourceTypeSchema = exports.zInvoiceTakerRefSchema = exports.zInvoiceTakerSnapshotSchema = exports.zInvoiceTakerSnapshotAddressSchema = exports.zTakerDocumentSchema = exports.zTakerTaxProfileSchema = exports.zTakerProviderRefsSchema = exports.zTakerAddressSchema = exports.zInvoiceTakerTypeSchema = exports.zIssuerTaxProfileSchema = exports.zIssuerNfseConfigSchema = exports.zIssuerMunicipalCredentialsRefSchema = exports.zIssuerTaxRegimeSchema = exports.zIssuerCompanyIdentitySchema = exports.zIssuerCompanyAddressSchema = exports.zTaxProfileSyncStateSchema = exports.zAsaasProviderSchema = exports.zAsaasProviderAsaasBlockSchema = exports.zAsaasProviderCapabilitiesSchema = exports.zAsaasPaymentsCapabilitiesSchema = exports.zAsaasNfseCapabilitiesSchema = exports.zAsaasEnvAuthConfigSchema = exports.zAsaasSubaccountInputSchema = exports.zAsaasAccountScopeSchema = exports.zAsaasWebhookConfigSchema = exports.zRetryPolicySchema = exports.zAsaasWebhookEventSchema = exports.zAsaasAccountScopeModeSchema = exports.zProviderRemoteRefsSchema = exports.zProviderFiscalInfoPayloadSchema = exports.zProviderCredentialsInputSchema = exports.zProviderCredentialsSecretRefsSchema = exports.zProviderMunicipalOptionsSnapshotSchema = exports.zProviderOptionItemSchema = exports.zProviderMunicipalAuthTypeSchema = exports.zFinopsProviderBaseSchema = exports.zProviderStatusSchema = exports.zFinopsActionSchema = exports.zFinopsProviderTypeSchema = exports.zProviderEnvSchema = void 0;
4
- exports.zServiceInvoiceSchema = void 0;
3
+ exports.zProviderInvoiceErrorSchema = exports.zProviderInvoiceIdentifiersSchema = exports.zProviderInvoiceLinksSchema = exports.zServiceTaxInfoSchema = exports.zServiceLineItemSchema = exports.zServiceInvoiceStateSchema = exports.zProviderServiceInvoiceStatusSchema = exports.zInvoiceSourceRefSchema = exports.zInvoiceSourceTypeSchema = exports.zInvoiceTakerRefSchema = exports.zInvoiceTakerSnapshotSchema = exports.zInvoiceTakerSnapshotAddressSchema = exports.zTakerDocumentSchema = exports.zTakerTaxProfileSchema = exports.zTakerProviderRefsSchema = exports.zTakerAddressSchema = exports.zInvoiceTakerTypeSchema = exports.zServiceSchema = exports.zCustomerServiceTaxInfoSchema = exports.zIssuerTaxProfileSchema = exports.zIssuerNfseConfigSchema = exports.zIssuerMunicipalCredentialsRefSchema = exports.zIssuerTaxRegimeSchema = exports.zIssuerCompanyIdentitySchema = exports.zIssuerCompanyAddressSchema = exports.zTaxProfileSyncStateSchema = exports.zAsaasProviderSchema = exports.zAsaasProviderAsaasBlockSchema = exports.zAsaasProviderCapabilitiesSchema = exports.zAsaasPaymentsCapabilitiesSchema = exports.zAsaasNfseCapabilitiesSchema = exports.zAsaasEnvAuthConfigSchema = exports.zAsaasSubaccountInputSchema = exports.zAsaasAccountScopeSchema = exports.zAsaasWebhookConfigSchema = exports.zRetryPolicySchema = exports.zAsaasWebhookEventSchema = exports.zAsaasAccountScopeModeSchema = exports.zProviderRemoteRefsSchema = exports.zProviderFiscalInfoPayloadSchema = exports.zProviderCredentialsInputSchema = exports.zProviderCredentialsSecretRefsSchema = exports.zProviderMunicipalOptionsSnapshotSchema = exports.zProviderOptionItemSchema = exports.zProviderMunicipalAuthTypeSchema = exports.zFinopsProviderBaseSchema = exports.zProviderStatusSchema = exports.zFinopsActionSchema = exports.zFinopsProviderTypeSchema = exports.zProviderEnvSchema = void 0;
4
+ exports.zServiceInvoiceSchema = exports.zProviderPayloadSnapshotSchema = exports.zProviderTraceSchema = void 0;
5
5
  const zod_1 = require("zod");
6
6
  const zod_schemas_1 = require("../shared/zod-schemas");
7
7
  // ---- Provider enums and base ----
@@ -332,6 +332,44 @@ exports.zIssuerTaxProfileSchema = zod_schemas_1.zFireDocSchema
332
332
  .optional(),
333
333
  })
334
334
  .passthrough();
335
+ // ---- Service ----
336
+ exports.zCustomerServiceTaxInfoSchema = zod_1.z
337
+ .object({
338
+ pisCofinsRetentionType: zod_1.z.string().optional(),
339
+ pisCofinsTaxStatus: zod_1.z.string().optional(),
340
+ pisPercentage: zod_1.z.number().min(0).max(100).optional(),
341
+ cofinsPercentage: zod_1.z.number().min(0).max(100).optional(),
342
+ csllPercentage: zod_1.z.number().min(0).max(100).optional(),
343
+ inssPercentage: zod_1.z.number().min(0).max(100).optional(),
344
+ irPercentage: zod_1.z.number().min(0).max(100).optional(),
345
+ federalServiceTaxCode: zod_1.z.string().optional(),
346
+ nbsCode: zod_1.z.string().optional(),
347
+ taxSituation: zod_1.z.string().optional(), // CST - Código de Situação Tributária
348
+ taxClassification: zod_1.z.string().optional(), // cClassTrib - Classificação tributária
349
+ operationIndicator: zod_1.z.string().optional(), // Indicador da operação
350
+ })
351
+ .passthrough();
352
+ exports.zServiceSchema = zod_schemas_1.zFireDocSchema
353
+ .extend({
354
+ municipalServiceCode: zod_1.z
355
+ .string()
356
+ .min(1)
357
+ .regex(/^\d{2}\.\d{2}\.\d{2}$/, "Código municipal deve estar no formato XX.XX.XX (ex: 01.01.01)"),
358
+ name: zod_1.z.string().min(1),
359
+ municipalServiceDescription: zod_1.z.string().optional(),
360
+ defaultProduct: zod_1.z.boolean().optional(),
361
+ issTax: zod_1.z.number().min(0).max(100).optional(),
362
+ federalServiceTaxCode: zod_1.z.string().optional(),
363
+ nbsCode: zod_1.z.string().optional(),
364
+ municipalServiceExternalId: zod_1.z.string().optional(),
365
+ easyTaxInvoiceServiceId: zod_1.z.string().optional(),
366
+ customerServiceTaxInfo: exports.zCustomerServiceTaxInfoSchema.optional(),
367
+ customerCity: zod_1.z.string().optional(),
368
+ customerState: zod_1.z.string().optional(),
369
+ customerId: zod_1.z.string().optional(),
370
+ shouldUpdateTaxInfoOnInvoices: zod_1.z.boolean().optional(),
371
+ })
372
+ .passthrough();
335
373
  // ---- Taker ----
336
374
  exports.zInvoiceTakerTypeSchema = zod_1.z.enum(["PF", "PJ", "unknown"]);
337
375
  exports.zTakerAddressSchema = zod_1.z
@@ -359,6 +359,46 @@ export const zIssuerTaxProfileSchema = zFireDocSchema
359
359
  })
360
360
  .passthrough();
361
361
 
362
+ // ---- Service ----
363
+ export const zCustomerServiceTaxInfoSchema = z
364
+ .object({
365
+ pisCofinsRetentionType: z.string().optional(),
366
+ pisCofinsTaxStatus: z.string().optional(),
367
+ pisPercentage: z.number().min(0).max(100).optional(),
368
+ cofinsPercentage: z.number().min(0).max(100).optional(),
369
+ csllPercentage: z.number().min(0).max(100).optional(),
370
+ inssPercentage: z.number().min(0).max(100).optional(),
371
+ irPercentage: z.number().min(0).max(100).optional(),
372
+ federalServiceTaxCode: z.string().optional(),
373
+ nbsCode: z.string().optional(),
374
+ taxSituation: z.string().optional(), // CST - Código de Situação Tributária
375
+ taxClassification: z.string().optional(), // cClassTrib - Classificação tributária
376
+ operationIndicator: z.string().optional(), // Indicador da operação
377
+ })
378
+ .passthrough();
379
+
380
+ export const zServiceSchema = zFireDocSchema
381
+ .extend({
382
+ municipalServiceCode: z
383
+ .string()
384
+ .min(1)
385
+ .regex(/^\d{2}\.\d{2}\.\d{2}$/, "Código municipal deve estar no formato XX.XX.XX (ex: 01.01.01)"),
386
+ name: z.string().min(1),
387
+ municipalServiceDescription: z.string().optional(),
388
+ defaultProduct: z.boolean().optional(),
389
+ issTax: z.number().min(0).max(100).optional(),
390
+ federalServiceTaxCode: z.string().optional(),
391
+ nbsCode: z.string().optional(),
392
+ municipalServiceExternalId: z.string().optional(),
393
+ easyTaxInvoiceServiceId: z.string().optional(),
394
+ customerServiceTaxInfo: zCustomerServiceTaxInfoSchema.optional(),
395
+ customerCity: z.string().optional(),
396
+ customerState: z.string().optional(),
397
+ customerId: z.string().optional(),
398
+ shouldUpdateTaxInfoOnInvoices: z.boolean().optional(),
399
+ })
400
+ .passthrough();
401
+
362
402
  // ---- Taker ----
363
403
  export const zInvoiceTakerTypeSchema = z.enum(["PF", "PJ", "unknown"]);
364
404
 
@@ -7,3 +7,4 @@ export declare const EvoFinopsDicPermissions: {
7
7
  };
8
8
  export type EvoFinopsDicPermissions = (typeof EvoFinopsDicPermissions)[keyof typeof EvoFinopsDicPermissions];
9
9
  export * from "./issuer-tax-profile";
10
+ export * from "./service";
@@ -24,3 +24,4 @@ exports.EvoFinopsDicPermissions = {
24
24
  Delete: "evo_finops_dic_write",
25
25
  };
26
26
  __exportStar(require("./issuer-tax-profile"), exports);
27
+ __exportStar(require("./service"), exports);
@@ -11,3 +11,4 @@ export type EvoFinopsDicPermissions =
11
11
  (typeof EvoFinopsDicPermissions)[keyof typeof EvoFinopsDicPermissions];
12
12
 
13
13
  export * from "./issuer-tax-profile";
14
+ export * from "./service";
@@ -0,0 +1,34 @@
1
+ import { IFireDoc } from "../../shared";
2
+ import { FirestoreDocumentReference } from "../../shared";
3
+ export interface ICustomerServiceTaxInfo {
4
+ pisCofinsRetentionType?: string;
5
+ pisCofinsTaxStatus?: string;
6
+ pisPercentage?: number;
7
+ cofinsPercentage?: number;
8
+ csllPercentage?: number;
9
+ inssPercentage?: number;
10
+ irPercentage?: number;
11
+ federalServiceTaxCode?: string;
12
+ nbsCode?: string;
13
+ taxSituation?: string;
14
+ taxClassification?: string;
15
+ operationIndicator?: string;
16
+ }
17
+ export interface IService extends IFireDoc {
18
+ municipalServiceCode: string;
19
+ name: string;
20
+ municipalServiceDescription?: string;
21
+ defaultProduct?: boolean;
22
+ issTax?: number;
23
+ federalServiceTaxCode?: string;
24
+ nbsCode?: string;
25
+ municipalServiceExternalId?: string;
26
+ easyTaxInvoiceServiceId?: string;
27
+ customerServiceTaxInfo?: ICustomerServiceTaxInfo;
28
+ customerCity?: string;
29
+ customerState?: string;
30
+ customerId?: string;
31
+ customerRef?: FirestoreDocumentReference;
32
+ shouldUpdateTaxInfoOnInvoices?: boolean;
33
+ [key: string]: unknown;
34
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,44 @@
1
+ import { IFireDoc } from "../../shared";
2
+ import { FirestoreDocumentReference } from "../../shared";
3
+
4
+ export interface ICustomerServiceTaxInfo {
5
+ pisCofinsRetentionType?: string;
6
+ pisCofinsTaxStatus?: string;
7
+ pisPercentage?: number;
8
+ cofinsPercentage?: number;
9
+ csllPercentage?: number;
10
+ inssPercentage?: number;
11
+ irPercentage?: number;
12
+ federalServiceTaxCode?: string;
13
+ nbsCode?: string;
14
+ taxSituation?: string; // CST - Código de Situação Tributária
15
+ taxClassification?: string; // cClassTrib - Classificação tributária
16
+ operationIndicator?: string; // Indicador da operação
17
+ }
18
+
19
+ export interface IService extends IFireDoc {
20
+ // Campos principais
21
+ municipalServiceCode: string; // Código de serviço municipal (8 dígitos formatados, ex: "01.01.01")
22
+ name: string; // Nome/descrição do serviço
23
+ municipalServiceDescription?: string; // Descrição detalhada do serviço
24
+ defaultProduct?: boolean; // Serviço padrão (a ser adicionado por padrão na emissão de notas)
25
+ issTax?: number; // Alíquota ISS (percentual)
26
+
27
+ // Campos opcionais de códigos
28
+ federalServiceTaxCode?: string; // Código de tributação nacional
29
+ nbsCode?: string; // Código NBS (Nomenclatura Brasileira de Serviços)
30
+ municipalServiceExternalId?: string; // ID externo do serviço municipal
31
+ easyTaxInvoiceServiceId?: string; // ID do serviço no EasyTax
32
+
33
+ // Informações de tributação do cliente
34
+ customerServiceTaxInfo?: ICustomerServiceTaxInfo;
35
+
36
+ // Campos de contexto
37
+ customerCity?: string; // Cidade do cliente
38
+ customerState?: string; // Estado do cliente
39
+ customerId?: string; // ID do cliente (referência)
40
+ customerRef?: FirestoreDocumentReference; // Referência ao documento do cliente
41
+ shouldUpdateTaxInfoOnInvoices?: boolean; // Flag para atualizar informações fiscais nas notas
42
+
43
+ [key: string]: unknown; // index signature para extensibilidade
44
+ }
@@ -5,5 +5,9 @@ export declare const FINOPS_PROVIDERS_COLLECTION = "providers";
5
5
  export declare const FINOPS_DICS_ISSUERS_ID = "issuers";
6
6
  /** Collection of issuer tax profiles under dics/issuers */
7
7
  export declare const FINOPS_ISSUER_PROFILES_COLLECTION = "profiles";
8
+ /** Doc id under dics (path: dics/services/{id}) */
9
+ export declare const FINOPS_DICS_SERVICES_ID = "services";
10
+ /** Collection of services under dics/services */
11
+ export declare const FINOPS_SERVICES_COLLECTION = "services";
8
12
  export declare const FINOPS_TAKERS_COLLECTION = "takers";
9
13
  export declare const FINOPS_INVOICES_COLLECTION = "invoices";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FINOPS_INVOICES_COLLECTION = exports.FINOPS_TAKERS_COLLECTION = exports.FINOPS_ISSUER_PROFILES_COLLECTION = exports.FINOPS_DICS_ISSUERS_ID = exports.FINOPS_PROVIDERS_COLLECTION = exports.FINOPS_DICS_COLLECTION = exports.EVO_FINOPS_APP = void 0;
3
+ exports.FINOPS_INVOICES_COLLECTION = exports.FINOPS_TAKERS_COLLECTION = exports.FINOPS_SERVICES_COLLECTION = exports.FINOPS_DICS_SERVICES_ID = exports.FINOPS_ISSUER_PROFILES_COLLECTION = exports.FINOPS_DICS_ISSUERS_ID = exports.FINOPS_PROVIDERS_COLLECTION = exports.FINOPS_DICS_COLLECTION = exports.EVO_FINOPS_APP = void 0;
4
4
  // evo-finops app identifier for Firestore paths
5
5
  exports.EVO_FINOPS_APP = "evo-finops";
6
6
  // Collection names for evo-finops
@@ -10,5 +10,9 @@ exports.FINOPS_PROVIDERS_COLLECTION = "providers";
10
10
  exports.FINOPS_DICS_ISSUERS_ID = "issuers";
11
11
  /** Collection of issuer tax profiles under dics/issuers */
12
12
  exports.FINOPS_ISSUER_PROFILES_COLLECTION = "profiles";
13
+ /** Doc id under dics (path: dics/services/{id}) */
14
+ exports.FINOPS_DICS_SERVICES_ID = "services";
15
+ /** Collection of services under dics/services */
16
+ exports.FINOPS_SERVICES_COLLECTION = "services";
13
17
  exports.FINOPS_TAKERS_COLLECTION = "takers";
14
18
  exports.FINOPS_INVOICES_COLLECTION = "invoices";
@@ -8,6 +8,10 @@ export const FINOPS_PROVIDERS_COLLECTION = "providers";
8
8
  export const FINOPS_DICS_ISSUERS_ID = "issuers";
9
9
  /** Collection of issuer tax profiles under dics/issuers */
10
10
  export const FINOPS_ISSUER_PROFILES_COLLECTION = "profiles";
11
+ /** Doc id under dics (path: dics/services/{id}) */
12
+ export const FINOPS_DICS_SERVICES_ID = "services";
13
+ /** Collection of services under dics/services */
14
+ export const FINOPS_SERVICES_COLLECTION = "services";
11
15
  export const FINOPS_TAKERS_COLLECTION = "takers";
12
16
  export const FINOPS_INVOICES_COLLECTION = "invoices";
13
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.211",
3
+ "version": "1.3.212",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",