evo360-types 1.3.211 → 1.3.213
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-finops/zod-schemas.d.ts +231 -4
- package/dist/apps/evo-finops/zod-schemas.js +41 -2
- package/dist/apps/evo-finops/zod-schemas.ts +41 -0
- package/dist/types/evo-finops/dic/index.d.ts +1 -0
- package/dist/types/evo-finops/dic/index.js +1 -0
- package/dist/types/evo-finops/dic/index.ts +1 -0
- package/dist/types/evo-finops/dic/service.d.ts +34 -0
- package/dist/types/evo-finops/dic/service.js +2 -0
- package/dist/types/evo-finops/dic/service.ts +44 -0
- package/dist/types/evo-finops/fb_collections.d.ts +4 -0
- package/dist/types/evo-finops/fb_collections.js +5 -1
- package/dist/types/evo-finops/fb_collections.ts +4 -0
- package/dist/types/evo-finops/invoices/index.d.ts +1 -0
- package/dist/types/evo-finops/invoices/index.js +2 -1
- package/dist/types/evo-finops/invoices/index.ts +2 -1
- package/dist/types/shared/index.d.ts +9 -0
- package/dist/types/shared/index.ts +11 -0
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -10318,7 +10545,7 @@ export declare const zInvoiceSourceRefSchema: z.ZodObject<{
|
|
|
10318
10545
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10319
10546
|
}, z.ZodTypeAny, "passthrough">>;
|
|
10320
10547
|
export declare const zProviderServiceInvoiceStatusSchema: z.ZodEnum<["SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
10321
|
-
export declare const zServiceInvoiceStateSchema: z.ZodEnum<["DRAFT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
10548
|
+
export declare const zServiceInvoiceStateSchema: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
10322
10549
|
export declare const zServiceLineItemSchema: z.ZodObject<{
|
|
10323
10550
|
description: z.ZodString;
|
|
10324
10551
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -10461,7 +10688,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10461
10688
|
provider: z.ZodString;
|
|
10462
10689
|
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
10463
10690
|
provider_invoice_id: z.ZodOptional<z.ZodString>;
|
|
10464
|
-
state: z.ZodEnum<["DRAFT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
10691
|
+
state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
10465
10692
|
provider_status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>>;
|
|
10466
10693
|
issuer_tax_profile_id: z.ZodOptional<z.ZodString>;
|
|
10467
10694
|
issuer_snapshot: z.ZodOptional<z.ZodObject<{
|
|
@@ -10768,7 +10995,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10768
10995
|
provider: z.ZodString;
|
|
10769
10996
|
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
10770
10997
|
provider_invoice_id: z.ZodOptional<z.ZodString>;
|
|
10771
|
-
state: z.ZodEnum<["DRAFT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
10998
|
+
state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
10772
10999
|
provider_status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>>;
|
|
10773
11000
|
issuer_tax_profile_id: z.ZodOptional<z.ZodString>;
|
|
10774
11001
|
issuer_snapshot: z.ZodOptional<z.ZodObject<{
|
|
@@ -11075,7 +11302,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11075
11302
|
provider: z.ZodString;
|
|
11076
11303
|
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
11077
11304
|
provider_invoice_id: z.ZodOptional<z.ZodString>;
|
|
11078
|
-
state: z.ZodEnum<["DRAFT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
11305
|
+
state: z.ZodEnum<["DRAFT", "SENT", "SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>;
|
|
11079
11306
|
provider_status: z.ZodOptional<z.ZodEnum<["SCHEDULED", "SYNCHRONIZED", "AUTHORIZED", "PROCESSING_CANCELLATION", "CANCELED", "CANCELLATION_DENIED", "ERROR"]>>;
|
|
11080
11307
|
issuer_tax_profile_id: z.ZodOptional<z.ZodString>;
|
|
11081
11308
|
issuer_snapshot: z.ZodOptional<z.ZodObject<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
|
|
@@ -440,6 +478,7 @@ exports.zProviderServiceInvoiceStatusSchema = zod_1.z.enum([
|
|
|
440
478
|
]);
|
|
441
479
|
exports.zServiceInvoiceStateSchema = zod_1.z.enum([
|
|
442
480
|
"DRAFT",
|
|
481
|
+
"SENT",
|
|
443
482
|
"SCHEDULED",
|
|
444
483
|
"SYNCHRONIZED",
|
|
445
484
|
"AUTHORIZED",
|
|
@@ -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
|
|
|
@@ -478,6 +518,7 @@ export const zProviderServiceInvoiceStatusSchema = z.enum([
|
|
|
478
518
|
|
|
479
519
|
export const zServiceInvoiceStateSchema = z.enum([
|
|
480
520
|
"DRAFT",
|
|
521
|
+
"SENT",
|
|
481
522
|
"SCHEDULED",
|
|
482
523
|
"SYNCHRONIZED",
|
|
483
524
|
"AUTHORIZED",
|
|
@@ -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,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
|
|
|
@@ -52,6 +52,7 @@ export declare enum ProviderServiceInvoiceStatusEnum {
|
|
|
52
52
|
export type ProviderServiceInvoiceStatus = `${ProviderServiceInvoiceStatusEnum}`;
|
|
53
53
|
export declare enum ServiceInvoiceStateEnum {
|
|
54
54
|
DRAFT = "DRAFT",// internal only (not sent)
|
|
55
|
+
SENT = "SENT",// sent to provider, awaiting webhook confirmation (e.g. INVOICE_CREATED → SCHEDULED)
|
|
55
56
|
SCHEDULED = "SCHEDULED",
|
|
56
57
|
SYNCHRONIZED = "SYNCHRONIZED",// sent to city hall (Asaas INVOICE_SYNCHRONIZED)
|
|
57
58
|
AUTHORIZED = "AUTHORIZED",
|
|
@@ -24,10 +24,11 @@ var ProviderServiceInvoiceStatusEnum;
|
|
|
24
24
|
ProviderServiceInvoiceStatusEnum["CANCELLATION_DENIED"] = "CANCELLATION_DENIED";
|
|
25
25
|
ProviderServiceInvoiceStatusEnum["ERROR"] = "ERROR";
|
|
26
26
|
})(ProviderServiceInvoiceStatusEnum || (exports.ProviderServiceInvoiceStatusEnum = ProviderServiceInvoiceStatusEnum = {}));
|
|
27
|
-
// Internal status (Provider status + DRAFT; aligned with Asaas invoice lifecycle)
|
|
27
|
+
// Internal status (Provider status + DRAFT + SENT; aligned with Asaas invoice lifecycle)
|
|
28
28
|
var ServiceInvoiceStateEnum;
|
|
29
29
|
(function (ServiceInvoiceStateEnum) {
|
|
30
30
|
ServiceInvoiceStateEnum["DRAFT"] = "DRAFT";
|
|
31
|
+
ServiceInvoiceStateEnum["SENT"] = "SENT";
|
|
31
32
|
ServiceInvoiceStateEnum["SCHEDULED"] = "SCHEDULED";
|
|
32
33
|
ServiceInvoiceStateEnum["SYNCHRONIZED"] = "SYNCHRONIZED";
|
|
33
34
|
ServiceInvoiceStateEnum["AUTHORIZED"] = "AUTHORIZED";
|
|
@@ -69,9 +69,10 @@ export enum ProviderServiceInvoiceStatusEnum {
|
|
|
69
69
|
export type ProviderServiceInvoiceStatus =
|
|
70
70
|
`${ProviderServiceInvoiceStatusEnum}`;
|
|
71
71
|
|
|
72
|
-
// Internal status (Provider status + DRAFT; aligned with Asaas invoice lifecycle)
|
|
72
|
+
// Internal status (Provider status + DRAFT + SENT; aligned with Asaas invoice lifecycle)
|
|
73
73
|
export enum ServiceInvoiceStateEnum {
|
|
74
74
|
DRAFT = "DRAFT", // internal only (not sent)
|
|
75
|
+
SENT = "SENT", // sent to provider, awaiting webhook confirmation (e.g. INVOICE_CREATED → SCHEDULED)
|
|
75
76
|
SCHEDULED = "SCHEDULED",
|
|
76
77
|
SYNCHRONIZED = "SYNCHRONIZED", // sent to city hall (Asaas INVOICE_SYNCHRONIZED)
|
|
77
78
|
AUTHORIZED = "AUTHORIZED",
|
|
@@ -41,6 +41,15 @@ export interface IAddress {
|
|
|
41
41
|
country?: string;
|
|
42
42
|
geo?: IGeoPoint;
|
|
43
43
|
}
|
|
44
|
+
export interface IFireGlobalDoc extends Record<string, unknown> {
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly ref?: FirestoreDocumentReference;
|
|
47
|
+
model_ver?: number;
|
|
48
|
+
version?: number;
|
|
49
|
+
created_at?: Date | null;
|
|
50
|
+
updated_at?: Date | null;
|
|
51
|
+
deleted_at?: Date | null;
|
|
52
|
+
}
|
|
44
53
|
export type EvoApp = "evo-activity" | "evo-core" | "evo-crm" | "evo-people" | "evo-med" | "evo-messages" | "evo-survey" | "evo-tags" | "evo-task" | "evo-tenant";
|
|
45
54
|
export declare enum IEvoApp {
|
|
46
55
|
EvoActivity = "evo-activity",
|
|
@@ -52,6 +52,17 @@ export interface IAddress {
|
|
|
52
52
|
geo?: IGeoPoint;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
//fsTypes
|
|
56
|
+
export interface IFireGlobalDoc extends Record<string, unknown> {
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly ref?: FirestoreDocumentReference;
|
|
59
|
+
model_ver?: number;
|
|
60
|
+
version?: number;
|
|
61
|
+
created_at?: Date | null;
|
|
62
|
+
updated_at?: Date | null;
|
|
63
|
+
deleted_at?: Date | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
55
66
|
// ----- Apps
|
|
56
67
|
|
|
57
68
|
export type EvoApp =
|