evo360-types 1.3.782 → 1.3.787
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-chat/forward/zod-schemas.d.ts +4 -4
- package/dist/apps/evo-chat/thread-message/zod-schemas.d.ts +36 -0
- package/dist/apps/evo-chat/thread-message/zod-schemas.js +3 -0
- package/dist/apps/evo-chat/thread-message/zod-schemas.ts +3 -0
- package/dist/apps/evo-finops/zod-schemas.d.ts +794 -32
- package/dist/apps/evo-finops/zod-schemas.js +187 -2
- package/dist/apps/evo-finops/zod-schemas.ts +205 -0
- package/dist/types/evo-chat/thread-message/index.d.ts +8 -0
- package/dist/types/evo-chat/thread-message/index.ts +8 -0
- package/dist/types/evo-finops/common/contract.d.ts +29 -1
- package/dist/types/evo-finops/common/contract.js +7 -0
- package/dist/types/evo-finops/common/contract.ts +31 -1
- package/dist/types/evo-finops/common/price-table.d.ts +89 -0
- package/dist/types/evo-finops/common/price-table.js +88 -0
- package/dist/types/evo-finops/common/price-table.ts +183 -0
- package/dist/types/evo-finops/common/proposal.d.ts +25 -0
- package/dist/types/evo-finops/common/proposal.ts +28 -0
- package/dist/types/evo-finops/index.d.ts +1 -0
- package/dist/types/evo-finops/index.js +1 -0
- package/dist/types/evo-finops/index.ts +1 -0
- package/dist/types/evo-reports/index.d.ts +9 -0
- package/dist/types/evo-reports/index.ts +9 -0
- package/dist/types/nex-vendas/adhesion.d.ts +253 -0
- package/dist/types/nex-vendas/adhesion.js +15 -0
- package/dist/types/nex-vendas/adhesion.ts +280 -0
- package/dist/types/nex-vendas/index.d.ts +3 -0
- package/dist/types/nex-vendas/index.js +3 -0
- package/dist/types/nex-vendas/index.ts +3 -0
- package/dist/types/nex-vendas/journey.d.ts +82 -4
- package/dist/types/nex-vendas/journey.ts +86 -3
- package/dist/types/nex-vendas/notifications.d.ts +14 -0
- package/dist/types/nex-vendas/notifications.js +21 -0
- package/dist/types/nex-vendas/notifications.ts +21 -0
- package/dist/types/nex-vendas/offer.d.ts +129 -0
- package/dist/types/nex-vendas/offer.js +10 -0
- package/dist/types/nex-vendas/offer.ts +154 -0
- package/package.json +1 -1
|
@@ -15673,6 +15673,40 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
15673
15673
|
}>, "many">>;
|
|
15674
15674
|
}, z.ZodTypeAny, "passthrough">>;
|
|
15675
15675
|
export declare const zNexFinopsProposalStatusSchema: z.ZodEnum<["draft", "sent", "viewed", "accepted", "expired", "canceled"]>;
|
|
15676
|
+
/** feat-326 — atribuição de marketing do `start` (`INexVendasAttribution`). */
|
|
15677
|
+
export declare const zNexVendasAttributionSchema: z.ZodObject<{
|
|
15678
|
+
utm_source: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15679
|
+
utm_medium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15680
|
+
utm_campaign: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15681
|
+
utm_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15682
|
+
utm_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15683
|
+
gclid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15684
|
+
referrer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15685
|
+
site: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15686
|
+
landing_path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15687
|
+
}, "strip", z.ZodTypeAny, {
|
|
15688
|
+
site?: string | null | undefined;
|
|
15689
|
+
utm_source?: string | null | undefined;
|
|
15690
|
+
utm_medium?: string | null | undefined;
|
|
15691
|
+
utm_campaign?: string | null | undefined;
|
|
15692
|
+
utm_term?: string | null | undefined;
|
|
15693
|
+
utm_content?: string | null | undefined;
|
|
15694
|
+
gclid?: string | null | undefined;
|
|
15695
|
+
referrer?: string | null | undefined;
|
|
15696
|
+
landing_path?: string | null | undefined;
|
|
15697
|
+
}, {
|
|
15698
|
+
site?: string | null | undefined;
|
|
15699
|
+
utm_source?: string | null | undefined;
|
|
15700
|
+
utm_medium?: string | null | undefined;
|
|
15701
|
+
utm_campaign?: string | null | undefined;
|
|
15702
|
+
utm_term?: string | null | undefined;
|
|
15703
|
+
utm_content?: string | null | undefined;
|
|
15704
|
+
gclid?: string | null | undefined;
|
|
15705
|
+
referrer?: string | null | undefined;
|
|
15706
|
+
landing_path?: string | null | undefined;
|
|
15707
|
+
}>;
|
|
15708
|
+
/** feat-325 — tipo de formalização do contrato (`NexVendasContractType`). */
|
|
15709
|
+
export declare const zNexVendasContractTypeSchema: z.ZodEnum<["assinatura_eletronica", "adesao"]>;
|
|
15676
15710
|
export declare const zNexFinopsProposalPaymentMethodSchema: z.ZodEnum<["boleto", "card_subscription", "payment_link"]>;
|
|
15677
15711
|
export declare const zNexFinopsProposalLoyaltyPeriodSchema: z.ZodEnum<["none", "3m", "6m", "1y", "2y"]>;
|
|
15678
15712
|
export declare const zNexFinopsProposalPrefillSchema: z.ZodObject<{
|
|
@@ -15792,17 +15826,65 @@ export declare const zNexFinopsProposalWriteSchema: z.ZodObject<{
|
|
|
15792
15826
|
loyalty_period: z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "3m", "6m", "1y", "2y"]>>>;
|
|
15793
15827
|
/** Chave do modelo, nunca o id do template no provider — id não entra por HTTP. */
|
|
15794
15828
|
contract_template_key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15829
|
+
/**
|
|
15830
|
+
* feat-325 — derivado no backend do modelo escolhido (o valor do cliente HTTP é
|
|
15831
|
+
* sobrescrito). Está no schema para o backend não perder o campo no `.strip()`.
|
|
15832
|
+
*/
|
|
15833
|
+
contract_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["assinatura_eletronica", "adesao"]>>>;
|
|
15834
|
+
/** feat-326 — preenchidos pelo `start` da oferta; no CRUD do vendedor ficam ausentes. */
|
|
15835
|
+
offer_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15836
|
+
attribution: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
15837
|
+
utm_source: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15838
|
+
utm_medium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15839
|
+
utm_campaign: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15840
|
+
utm_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15841
|
+
utm_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15842
|
+
gclid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15843
|
+
referrer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15844
|
+
site: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15845
|
+
landing_path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15846
|
+
}, "strip", z.ZodTypeAny, {
|
|
15847
|
+
site?: string | null | undefined;
|
|
15848
|
+
utm_source?: string | null | undefined;
|
|
15849
|
+
utm_medium?: string | null | undefined;
|
|
15850
|
+
utm_campaign?: string | null | undefined;
|
|
15851
|
+
utm_term?: string | null | undefined;
|
|
15852
|
+
utm_content?: string | null | undefined;
|
|
15853
|
+
gclid?: string | null | undefined;
|
|
15854
|
+
referrer?: string | null | undefined;
|
|
15855
|
+
landing_path?: string | null | undefined;
|
|
15856
|
+
}, {
|
|
15857
|
+
site?: string | null | undefined;
|
|
15858
|
+
utm_source?: string | null | undefined;
|
|
15859
|
+
utm_medium?: string | null | undefined;
|
|
15860
|
+
utm_campaign?: string | null | undefined;
|
|
15861
|
+
utm_term?: string | null | undefined;
|
|
15862
|
+
utm_content?: string | null | undefined;
|
|
15863
|
+
gclid?: string | null | undefined;
|
|
15864
|
+
referrer?: string | null | undefined;
|
|
15865
|
+
landing_path?: string | null | undefined;
|
|
15866
|
+
}>>>;
|
|
15867
|
+
client_request_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15868
|
+
/** Resolvido no servidor (uid do token ou `system:offer`); o valor do cliente é sobrescrito. */
|
|
15869
|
+
created_by: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15795
15870
|
terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15796
15871
|
valid_until: z.ZodOptional<z.ZodString>;
|
|
15797
15872
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15798
15873
|
}, "strip", z.ZodTypeAny, {
|
|
15799
15874
|
name?: string | null | undefined;
|
|
15875
|
+
created_by?: string | null | undefined;
|
|
15800
15876
|
notes?: string | null | undefined;
|
|
15801
|
-
|
|
15802
|
-
|
|
15877
|
+
html_content?: string | undefined;
|
|
15878
|
+
base_amount?: number | undefined;
|
|
15803
15879
|
due_day?: number | undefined;
|
|
15804
15880
|
accepted_payment_methods?: ("payment_link" | "boleto" | "card_subscription")[] | undefined;
|
|
15881
|
+
loyalty_period?: "none" | "3m" | "6m" | "1y" | "2y" | null | undefined;
|
|
15882
|
+
contract_template_key?: string | null | undefined;
|
|
15883
|
+
contract_type?: "assinatura_eletronica" | "adesao" | null | undefined;
|
|
15884
|
+
terms?: string | null | undefined;
|
|
15805
15885
|
origem?: string | undefined;
|
|
15886
|
+
customer_id?: string | null | undefined;
|
|
15887
|
+
customer_ref?: string | null | undefined;
|
|
15806
15888
|
prefill?: z.objectOutputType<{
|
|
15807
15889
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15808
15890
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -15820,20 +15902,35 @@ export declare const zNexFinopsProposalWriteSchema: z.ZodObject<{
|
|
|
15820
15902
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15821
15903
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15822
15904
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
15823
|
-
html_content?: string | undefined;
|
|
15824
|
-
base_amount?: number | undefined;
|
|
15825
|
-
terms?: string | null | undefined;
|
|
15826
|
-
loyalty_period?: "none" | "3m" | "6m" | "1y" | "2y" | null | undefined;
|
|
15827
|
-
contract_template_key?: string | null | undefined;
|
|
15828
15905
|
valid_until?: string | undefined;
|
|
15906
|
+
offer_slug?: string | null | undefined;
|
|
15907
|
+
attribution?: {
|
|
15908
|
+
site?: string | null | undefined;
|
|
15909
|
+
utm_source?: string | null | undefined;
|
|
15910
|
+
utm_medium?: string | null | undefined;
|
|
15911
|
+
utm_campaign?: string | null | undefined;
|
|
15912
|
+
utm_term?: string | null | undefined;
|
|
15913
|
+
utm_content?: string | null | undefined;
|
|
15914
|
+
gclid?: string | null | undefined;
|
|
15915
|
+
referrer?: string | null | undefined;
|
|
15916
|
+
landing_path?: string | null | undefined;
|
|
15917
|
+
} | null | undefined;
|
|
15918
|
+
client_request_id?: string | null | undefined;
|
|
15829
15919
|
}, {
|
|
15830
15920
|
name?: string | null | undefined;
|
|
15921
|
+
created_by?: string | null | undefined;
|
|
15831
15922
|
notes?: string | null | undefined;
|
|
15832
|
-
|
|
15833
|
-
|
|
15923
|
+
html_content?: string | undefined;
|
|
15924
|
+
base_amount?: number | undefined;
|
|
15834
15925
|
due_day?: number | undefined;
|
|
15835
15926
|
accepted_payment_methods?: ("payment_link" | "boleto" | "card_subscription")[] | undefined;
|
|
15927
|
+
loyalty_period?: "none" | "3m" | "6m" | "1y" | "2y" | null | undefined;
|
|
15928
|
+
contract_template_key?: string | null | undefined;
|
|
15929
|
+
contract_type?: "assinatura_eletronica" | "adesao" | null | undefined;
|
|
15930
|
+
terms?: string | null | undefined;
|
|
15836
15931
|
origem?: string | undefined;
|
|
15932
|
+
customer_id?: string | null | undefined;
|
|
15933
|
+
customer_ref?: string | null | undefined;
|
|
15837
15934
|
prefill?: z.objectInputType<{
|
|
15838
15935
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15839
15936
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -15851,12 +15948,20 @@ export declare const zNexFinopsProposalWriteSchema: z.ZodObject<{
|
|
|
15851
15948
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15852
15949
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15853
15950
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
15854
|
-
html_content?: string | undefined;
|
|
15855
|
-
base_amount?: number | undefined;
|
|
15856
|
-
terms?: string | null | undefined;
|
|
15857
|
-
loyalty_period?: "none" | "3m" | "6m" | "1y" | "2y" | null | undefined;
|
|
15858
|
-
contract_template_key?: string | null | undefined;
|
|
15859
15951
|
valid_until?: string | undefined;
|
|
15952
|
+
offer_slug?: string | null | undefined;
|
|
15953
|
+
attribution?: {
|
|
15954
|
+
site?: string | null | undefined;
|
|
15955
|
+
utm_source?: string | null | undefined;
|
|
15956
|
+
utm_medium?: string | null | undefined;
|
|
15957
|
+
utm_campaign?: string | null | undefined;
|
|
15958
|
+
utm_term?: string | null | undefined;
|
|
15959
|
+
utm_content?: string | null | undefined;
|
|
15960
|
+
gclid?: string | null | undefined;
|
|
15961
|
+
referrer?: string | null | undefined;
|
|
15962
|
+
landing_path?: string | null | undefined;
|
|
15963
|
+
} | null | undefined;
|
|
15964
|
+
client_request_id?: string | null | undefined;
|
|
15860
15965
|
}>;
|
|
15861
15966
|
export declare const zNexFinopsProposalSchema: z.ZodObject<{
|
|
15862
15967
|
origem: z.ZodOptional<z.ZodString>;
|
|
@@ -15919,6 +16024,47 @@ export declare const zNexFinopsProposalSchema: z.ZodObject<{
|
|
|
15919
16024
|
loyalty_period: z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "3m", "6m", "1y", "2y"]>>>;
|
|
15920
16025
|
/** Chave do modelo, nunca o id do template no provider — id não entra por HTTP. */
|
|
15921
16026
|
contract_template_key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16027
|
+
/**
|
|
16028
|
+
* feat-325 — derivado no backend do modelo escolhido (o valor do cliente HTTP é
|
|
16029
|
+
* sobrescrito). Está no schema para o backend não perder o campo no `.strip()`.
|
|
16030
|
+
*/
|
|
16031
|
+
contract_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["assinatura_eletronica", "adesao"]>>>;
|
|
16032
|
+
/** feat-326 — preenchidos pelo `start` da oferta; no CRUD do vendedor ficam ausentes. */
|
|
16033
|
+
offer_slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16034
|
+
attribution: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
16035
|
+
utm_source: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16036
|
+
utm_medium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16037
|
+
utm_campaign: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16038
|
+
utm_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16039
|
+
utm_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16040
|
+
gclid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16041
|
+
referrer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16042
|
+
site: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16043
|
+
landing_path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16044
|
+
}, "strip", z.ZodTypeAny, {
|
|
16045
|
+
site?: string | null | undefined;
|
|
16046
|
+
utm_source?: string | null | undefined;
|
|
16047
|
+
utm_medium?: string | null | undefined;
|
|
16048
|
+
utm_campaign?: string | null | undefined;
|
|
16049
|
+
utm_term?: string | null | undefined;
|
|
16050
|
+
utm_content?: string | null | undefined;
|
|
16051
|
+
gclid?: string | null | undefined;
|
|
16052
|
+
referrer?: string | null | undefined;
|
|
16053
|
+
landing_path?: string | null | undefined;
|
|
16054
|
+
}, {
|
|
16055
|
+
site?: string | null | undefined;
|
|
16056
|
+
utm_source?: string | null | undefined;
|
|
16057
|
+
utm_medium?: string | null | undefined;
|
|
16058
|
+
utm_campaign?: string | null | undefined;
|
|
16059
|
+
utm_term?: string | null | undefined;
|
|
16060
|
+
utm_content?: string | null | undefined;
|
|
16061
|
+
gclid?: string | null | undefined;
|
|
16062
|
+
referrer?: string | null | undefined;
|
|
16063
|
+
landing_path?: string | null | undefined;
|
|
16064
|
+
}>>>;
|
|
16065
|
+
client_request_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16066
|
+
/** Resolvido no servidor (uid do token ou `system:offer`); o valor do cliente é sobrescrito. */
|
|
16067
|
+
created_by: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15922
16068
|
terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15923
16069
|
valid_until: z.ZodOptional<z.ZodString>;
|
|
15924
16070
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -15928,15 +16074,22 @@ export declare const zNexFinopsProposalSchema: z.ZodObject<{
|
|
|
15928
16074
|
currency: z.ZodLiteral<"BRL">;
|
|
15929
16075
|
}, "strip", z.ZodTypeAny, {
|
|
15930
16076
|
currency: "BRL";
|
|
15931
|
-
status: "draft" | "expired" | "accepted" | "sent" | "
|
|
16077
|
+
status: "draft" | "expired" | "accepted" | "sent" | "viewed" | "canceled";
|
|
15932
16078
|
short_code: string;
|
|
15933
16079
|
name?: string | null | undefined;
|
|
16080
|
+
created_by?: string | null | undefined;
|
|
15934
16081
|
notes?: string | null | undefined;
|
|
15935
|
-
|
|
15936
|
-
|
|
16082
|
+
html_content?: string | undefined;
|
|
16083
|
+
base_amount?: number | undefined;
|
|
15937
16084
|
due_day?: number | undefined;
|
|
15938
16085
|
accepted_payment_methods?: ("payment_link" | "boleto" | "card_subscription")[] | undefined;
|
|
16086
|
+
loyalty_period?: "none" | "3m" | "6m" | "1y" | "2y" | null | undefined;
|
|
16087
|
+
contract_template_key?: string | null | undefined;
|
|
16088
|
+
contract_type?: "assinatura_eletronica" | "adesao" | null | undefined;
|
|
16089
|
+
terms?: string | null | undefined;
|
|
15939
16090
|
origem?: string | undefined;
|
|
16091
|
+
customer_id?: string | null | undefined;
|
|
16092
|
+
customer_ref?: string | null | undefined;
|
|
15940
16093
|
prefill?: z.objectOutputType<{
|
|
15941
16094
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15942
16095
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -15954,23 +16107,38 @@ export declare const zNexFinopsProposalSchema: z.ZodObject<{
|
|
|
15954
16107
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15955
16108
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15956
16109
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
15957
|
-
html_content?: string | undefined;
|
|
15958
|
-
base_amount?: number | undefined;
|
|
15959
|
-
terms?: string | null | undefined;
|
|
15960
|
-
loyalty_period?: "none" | "3m" | "6m" | "1y" | "2y" | null | undefined;
|
|
15961
|
-
contract_template_key?: string | null | undefined;
|
|
15962
16110
|
valid_until?: string | undefined;
|
|
16111
|
+
offer_slug?: string | null | undefined;
|
|
16112
|
+
attribution?: {
|
|
16113
|
+
site?: string | null | undefined;
|
|
16114
|
+
utm_source?: string | null | undefined;
|
|
16115
|
+
utm_medium?: string | null | undefined;
|
|
16116
|
+
utm_campaign?: string | null | undefined;
|
|
16117
|
+
utm_term?: string | null | undefined;
|
|
16118
|
+
utm_content?: string | null | undefined;
|
|
16119
|
+
gclid?: string | null | undefined;
|
|
16120
|
+
referrer?: string | null | undefined;
|
|
16121
|
+
landing_path?: string | null | undefined;
|
|
16122
|
+
} | null | undefined;
|
|
16123
|
+
client_request_id?: string | null | undefined;
|
|
15963
16124
|
}, {
|
|
15964
16125
|
currency: "BRL";
|
|
15965
|
-
status: "draft" | "expired" | "accepted" | "sent" | "
|
|
16126
|
+
status: "draft" | "expired" | "accepted" | "sent" | "viewed" | "canceled";
|
|
15966
16127
|
short_code: string;
|
|
15967
16128
|
name?: string | null | undefined;
|
|
16129
|
+
created_by?: string | null | undefined;
|
|
15968
16130
|
notes?: string | null | undefined;
|
|
15969
|
-
|
|
15970
|
-
|
|
16131
|
+
html_content?: string | undefined;
|
|
16132
|
+
base_amount?: number | undefined;
|
|
15971
16133
|
due_day?: number | undefined;
|
|
15972
16134
|
accepted_payment_methods?: ("payment_link" | "boleto" | "card_subscription")[] | undefined;
|
|
16135
|
+
loyalty_period?: "none" | "3m" | "6m" | "1y" | "2y" | null | undefined;
|
|
16136
|
+
contract_template_key?: string | null | undefined;
|
|
16137
|
+
contract_type?: "assinatura_eletronica" | "adesao" | null | undefined;
|
|
16138
|
+
terms?: string | null | undefined;
|
|
15973
16139
|
origem?: string | undefined;
|
|
16140
|
+
customer_id?: string | null | undefined;
|
|
16141
|
+
customer_ref?: string | null | undefined;
|
|
15974
16142
|
prefill?: z.objectInputType<{
|
|
15975
16143
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15976
16144
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -15988,12 +16156,20 @@ export declare const zNexFinopsProposalSchema: z.ZodObject<{
|
|
|
15988
16156
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15989
16157
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15990
16158
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
15991
|
-
html_content?: string | undefined;
|
|
15992
|
-
base_amount?: number | undefined;
|
|
15993
|
-
terms?: string | null | undefined;
|
|
15994
|
-
loyalty_period?: "none" | "3m" | "6m" | "1y" | "2y" | null | undefined;
|
|
15995
|
-
contract_template_key?: string | null | undefined;
|
|
15996
16159
|
valid_until?: string | undefined;
|
|
16160
|
+
offer_slug?: string | null | undefined;
|
|
16161
|
+
attribution?: {
|
|
16162
|
+
site?: string | null | undefined;
|
|
16163
|
+
utm_source?: string | null | undefined;
|
|
16164
|
+
utm_medium?: string | null | undefined;
|
|
16165
|
+
utm_campaign?: string | null | undefined;
|
|
16166
|
+
utm_term?: string | null | undefined;
|
|
16167
|
+
utm_content?: string | null | undefined;
|
|
16168
|
+
gclid?: string | null | undefined;
|
|
16169
|
+
referrer?: string | null | undefined;
|
|
16170
|
+
landing_path?: string | null | undefined;
|
|
16171
|
+
} | null | undefined;
|
|
16172
|
+
client_request_id?: string | null | undefined;
|
|
15997
16173
|
}>;
|
|
15998
16174
|
export declare const zNexFinopsPaymentMethodSchema: z.ZodEnum<["pix", "boleto", "payment_link", "card_subscription"]>;
|
|
15999
16175
|
export declare const zNexFinopsAsaasSubscriptionStatusSchema: z.ZodEnum<["ACTIVE", "EXPIRED", "INACTIVE"]>;
|
|
@@ -16015,9 +16191,9 @@ export declare const zNexFinopsContractAsaasInfoSchema: z.ZodObject<{
|
|
|
16015
16191
|
}, "strip", z.ZodTypeAny, {
|
|
16016
16192
|
value?: number | null | undefined;
|
|
16017
16193
|
customer_id?: string | null | undefined;
|
|
16194
|
+
cycle?: string | null | undefined;
|
|
16018
16195
|
subscription_id?: string | null | undefined;
|
|
16019
16196
|
subscription_status?: "ACTIVE" | "EXPIRED" | "INACTIVE" | null | undefined;
|
|
16020
|
-
cycle?: string | null | undefined;
|
|
16021
16197
|
next_due_date?: string | null | undefined;
|
|
16022
16198
|
card_last4?: string | null | undefined;
|
|
16023
16199
|
card_brand?: string | null | undefined;
|
|
@@ -16026,9 +16202,9 @@ export declare const zNexFinopsContractAsaasInfoSchema: z.ZodObject<{
|
|
|
16026
16202
|
}, {
|
|
16027
16203
|
value?: number | null | undefined;
|
|
16028
16204
|
customer_id?: string | null | undefined;
|
|
16205
|
+
cycle?: string | null | undefined;
|
|
16029
16206
|
subscription_id?: string | null | undefined;
|
|
16030
16207
|
subscription_status?: "ACTIVE" | "EXPIRED" | "INACTIVE" | null | undefined;
|
|
16031
|
-
cycle?: string | null | undefined;
|
|
16032
16208
|
next_due_date?: string | null | undefined;
|
|
16033
16209
|
card_last4?: string | null | undefined;
|
|
16034
16210
|
card_brand?: string | null | undefined;
|
|
@@ -16349,6 +16525,8 @@ export declare const zNexFinopsContractAllowancesWriteSchema: z.ZodObject<{
|
|
|
16349
16525
|
alert_thresholds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
16350
16526
|
/** feat-264 D4 — ausente/null = TRUE (reembolsa). */
|
|
16351
16527
|
nfse_fee_reimbursement: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
16528
|
+
/** feat-328 — tabela de preço do contrato. Ausente/null = tabela padrão. */
|
|
16529
|
+
price_table_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16352
16530
|
}, "strip", z.ZodTypeAny, {
|
|
16353
16531
|
allowances?: Record<string, {
|
|
16354
16532
|
included: number;
|
|
@@ -16357,6 +16535,7 @@ export declare const zNexFinopsContractAllowancesWriteSchema: z.ZodObject<{
|
|
|
16357
16535
|
alerts_enabled?: boolean | null | undefined;
|
|
16358
16536
|
alert_thresholds?: number[] | null | undefined;
|
|
16359
16537
|
nfse_fee_reimbursement?: boolean | null | undefined;
|
|
16538
|
+
price_table_id?: string | null | undefined;
|
|
16360
16539
|
}, {
|
|
16361
16540
|
allowances?: Record<string, {
|
|
16362
16541
|
included: number;
|
|
@@ -16365,6 +16544,330 @@ export declare const zNexFinopsContractAllowancesWriteSchema: z.ZodObject<{
|
|
|
16365
16544
|
alerts_enabled?: boolean | null | undefined;
|
|
16366
16545
|
alert_thresholds?: number[] | null | undefined;
|
|
16367
16546
|
nfse_fee_reimbursement?: boolean | null | undefined;
|
|
16547
|
+
price_table_id?: string | null | undefined;
|
|
16548
|
+
}>;
|
|
16549
|
+
export declare const zNexFinopsPriceCapTierSchema: z.ZodObject<{
|
|
16550
|
+
up_to: z.ZodNumber;
|
|
16551
|
+
total: z.ZodNumber;
|
|
16552
|
+
}, "strip", z.ZodTypeAny, {
|
|
16553
|
+
total: number;
|
|
16554
|
+
up_to: number;
|
|
16555
|
+
}, {
|
|
16556
|
+
total: number;
|
|
16557
|
+
up_to: number;
|
|
16558
|
+
}>;
|
|
16559
|
+
export declare const zNexFinopsPriceCapSchema: z.ZodObject<{
|
|
16560
|
+
mode: z.ZodLiteral<"tiered_total">;
|
|
16561
|
+
tiers: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
16562
|
+
up_to: z.ZodNumber;
|
|
16563
|
+
total: z.ZodNumber;
|
|
16564
|
+
}, "strip", z.ZodTypeAny, {
|
|
16565
|
+
total: number;
|
|
16566
|
+
up_to: number;
|
|
16567
|
+
}, {
|
|
16568
|
+
total: number;
|
|
16569
|
+
up_to: number;
|
|
16570
|
+
}>, "many">, {
|
|
16571
|
+
total: number;
|
|
16572
|
+
up_to: number;
|
|
16573
|
+
}[], {
|
|
16574
|
+
total: number;
|
|
16575
|
+
up_to: number;
|
|
16576
|
+
}[]>;
|
|
16577
|
+
}, "strip", z.ZodTypeAny, {
|
|
16578
|
+
mode: "tiered_total";
|
|
16579
|
+
tiers: {
|
|
16580
|
+
total: number;
|
|
16581
|
+
up_to: number;
|
|
16582
|
+
}[];
|
|
16583
|
+
}, {
|
|
16584
|
+
mode: "tiered_total";
|
|
16585
|
+
tiers: {
|
|
16586
|
+
total: number;
|
|
16587
|
+
up_to: number;
|
|
16588
|
+
}[];
|
|
16589
|
+
}>;
|
|
16590
|
+
export declare const zNexFinopsPriceLineSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
16591
|
+
kind: z.ZodLiteral<"usage">;
|
|
16592
|
+
unit_price: z.ZodNumber;
|
|
16593
|
+
service_category: z.ZodString;
|
|
16594
|
+
cap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16595
|
+
mode: z.ZodLiteral<"tiered_total">;
|
|
16596
|
+
tiers: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
16597
|
+
up_to: z.ZodNumber;
|
|
16598
|
+
total: z.ZodNumber;
|
|
16599
|
+
}, "strip", z.ZodTypeAny, {
|
|
16600
|
+
total: number;
|
|
16601
|
+
up_to: number;
|
|
16602
|
+
}, {
|
|
16603
|
+
total: number;
|
|
16604
|
+
up_to: number;
|
|
16605
|
+
}>, "many">, {
|
|
16606
|
+
total: number;
|
|
16607
|
+
up_to: number;
|
|
16608
|
+
}[], {
|
|
16609
|
+
total: number;
|
|
16610
|
+
up_to: number;
|
|
16611
|
+
}[]>;
|
|
16612
|
+
}, "strip", z.ZodTypeAny, {
|
|
16613
|
+
mode: "tiered_total";
|
|
16614
|
+
tiers: {
|
|
16615
|
+
total: number;
|
|
16616
|
+
up_to: number;
|
|
16617
|
+
}[];
|
|
16618
|
+
}, {
|
|
16619
|
+
mode: "tiered_total";
|
|
16620
|
+
tiers: {
|
|
16621
|
+
total: number;
|
|
16622
|
+
up_to: number;
|
|
16623
|
+
}[];
|
|
16624
|
+
}>>>;
|
|
16625
|
+
}, "strip", z.ZodTypeAny, {
|
|
16626
|
+
kind: "usage";
|
|
16627
|
+
unit_price: number;
|
|
16628
|
+
service_category: string;
|
|
16629
|
+
cap?: {
|
|
16630
|
+
mode: "tiered_total";
|
|
16631
|
+
tiers: {
|
|
16632
|
+
total: number;
|
|
16633
|
+
up_to: number;
|
|
16634
|
+
}[];
|
|
16635
|
+
} | null | undefined;
|
|
16636
|
+
}, {
|
|
16637
|
+
kind: "usage";
|
|
16638
|
+
unit_price: number;
|
|
16639
|
+
service_category: string;
|
|
16640
|
+
cap?: {
|
|
16641
|
+
mode: "tiered_total";
|
|
16642
|
+
tiers: {
|
|
16643
|
+
total: number;
|
|
16644
|
+
up_to: number;
|
|
16645
|
+
}[];
|
|
16646
|
+
} | null | undefined;
|
|
16647
|
+
}>, z.ZodObject<{
|
|
16648
|
+
kind: z.ZodLiteral<"recurring">;
|
|
16649
|
+
amount: z.ZodNumber;
|
|
16650
|
+
service_category: z.ZodString;
|
|
16651
|
+
}, "strip", z.ZodTypeAny, {
|
|
16652
|
+
kind: "recurring";
|
|
16653
|
+
amount: number;
|
|
16654
|
+
service_category: string;
|
|
16655
|
+
}, {
|
|
16656
|
+
kind: "recurring";
|
|
16657
|
+
amount: number;
|
|
16658
|
+
service_category: string;
|
|
16659
|
+
}>, z.ZodObject<{
|
|
16660
|
+
kind: z.ZodLiteral<"disabled">;
|
|
16661
|
+
}, "strip", z.ZodTypeAny, {
|
|
16662
|
+
kind: "disabled";
|
|
16663
|
+
}, {
|
|
16664
|
+
kind: "disabled";
|
|
16665
|
+
}>]>;
|
|
16666
|
+
/** Chave = métrica (usage) ou módulo (recurring); mesmo limite das chaves de `allowances`. */
|
|
16667
|
+
export declare const zNexFinopsPriceLinesSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
16668
|
+
kind: z.ZodLiteral<"usage">;
|
|
16669
|
+
unit_price: z.ZodNumber;
|
|
16670
|
+
service_category: z.ZodString;
|
|
16671
|
+
cap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16672
|
+
mode: z.ZodLiteral<"tiered_total">;
|
|
16673
|
+
tiers: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
16674
|
+
up_to: z.ZodNumber;
|
|
16675
|
+
total: z.ZodNumber;
|
|
16676
|
+
}, "strip", z.ZodTypeAny, {
|
|
16677
|
+
total: number;
|
|
16678
|
+
up_to: number;
|
|
16679
|
+
}, {
|
|
16680
|
+
total: number;
|
|
16681
|
+
up_to: number;
|
|
16682
|
+
}>, "many">, {
|
|
16683
|
+
total: number;
|
|
16684
|
+
up_to: number;
|
|
16685
|
+
}[], {
|
|
16686
|
+
total: number;
|
|
16687
|
+
up_to: number;
|
|
16688
|
+
}[]>;
|
|
16689
|
+
}, "strip", z.ZodTypeAny, {
|
|
16690
|
+
mode: "tiered_total";
|
|
16691
|
+
tiers: {
|
|
16692
|
+
total: number;
|
|
16693
|
+
up_to: number;
|
|
16694
|
+
}[];
|
|
16695
|
+
}, {
|
|
16696
|
+
mode: "tiered_total";
|
|
16697
|
+
tiers: {
|
|
16698
|
+
total: number;
|
|
16699
|
+
up_to: number;
|
|
16700
|
+
}[];
|
|
16701
|
+
}>>>;
|
|
16702
|
+
}, "strip", z.ZodTypeAny, {
|
|
16703
|
+
kind: "usage";
|
|
16704
|
+
unit_price: number;
|
|
16705
|
+
service_category: string;
|
|
16706
|
+
cap?: {
|
|
16707
|
+
mode: "tiered_total";
|
|
16708
|
+
tiers: {
|
|
16709
|
+
total: number;
|
|
16710
|
+
up_to: number;
|
|
16711
|
+
}[];
|
|
16712
|
+
} | null | undefined;
|
|
16713
|
+
}, {
|
|
16714
|
+
kind: "usage";
|
|
16715
|
+
unit_price: number;
|
|
16716
|
+
service_category: string;
|
|
16717
|
+
cap?: {
|
|
16718
|
+
mode: "tiered_total";
|
|
16719
|
+
tiers: {
|
|
16720
|
+
total: number;
|
|
16721
|
+
up_to: number;
|
|
16722
|
+
}[];
|
|
16723
|
+
} | null | undefined;
|
|
16724
|
+
}>, z.ZodObject<{
|
|
16725
|
+
kind: z.ZodLiteral<"recurring">;
|
|
16726
|
+
amount: z.ZodNumber;
|
|
16727
|
+
service_category: z.ZodString;
|
|
16728
|
+
}, "strip", z.ZodTypeAny, {
|
|
16729
|
+
kind: "recurring";
|
|
16730
|
+
amount: number;
|
|
16731
|
+
service_category: string;
|
|
16732
|
+
}, {
|
|
16733
|
+
kind: "recurring";
|
|
16734
|
+
amount: number;
|
|
16735
|
+
service_category: string;
|
|
16736
|
+
}>, z.ZodObject<{
|
|
16737
|
+
kind: z.ZodLiteral<"disabled">;
|
|
16738
|
+
}, "strip", z.ZodTypeAny, {
|
|
16739
|
+
kind: "disabled";
|
|
16740
|
+
}, {
|
|
16741
|
+
kind: "disabled";
|
|
16742
|
+
}>]>>;
|
|
16743
|
+
/** Create/update de tabela de preço. `lines` substitui o mapa inteiro (como `allowances`). */
|
|
16744
|
+
export declare const zNexFinopsPriceTableWriteSchema: z.ZodObject<{
|
|
16745
|
+
name: z.ZodString;
|
|
16746
|
+
is_default: z.ZodBoolean;
|
|
16747
|
+
inherits_from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16748
|
+
lines: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
16749
|
+
kind: z.ZodLiteral<"usage">;
|
|
16750
|
+
unit_price: z.ZodNumber;
|
|
16751
|
+
service_category: z.ZodString;
|
|
16752
|
+
cap: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16753
|
+
mode: z.ZodLiteral<"tiered_total">;
|
|
16754
|
+
tiers: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
16755
|
+
up_to: z.ZodNumber;
|
|
16756
|
+
total: z.ZodNumber;
|
|
16757
|
+
}, "strip", z.ZodTypeAny, {
|
|
16758
|
+
total: number;
|
|
16759
|
+
up_to: number;
|
|
16760
|
+
}, {
|
|
16761
|
+
total: number;
|
|
16762
|
+
up_to: number;
|
|
16763
|
+
}>, "many">, {
|
|
16764
|
+
total: number;
|
|
16765
|
+
up_to: number;
|
|
16766
|
+
}[], {
|
|
16767
|
+
total: number;
|
|
16768
|
+
up_to: number;
|
|
16769
|
+
}[]>;
|
|
16770
|
+
}, "strip", z.ZodTypeAny, {
|
|
16771
|
+
mode: "tiered_total";
|
|
16772
|
+
tiers: {
|
|
16773
|
+
total: number;
|
|
16774
|
+
up_to: number;
|
|
16775
|
+
}[];
|
|
16776
|
+
}, {
|
|
16777
|
+
mode: "tiered_total";
|
|
16778
|
+
tiers: {
|
|
16779
|
+
total: number;
|
|
16780
|
+
up_to: number;
|
|
16781
|
+
}[];
|
|
16782
|
+
}>>>;
|
|
16783
|
+
}, "strip", z.ZodTypeAny, {
|
|
16784
|
+
kind: "usage";
|
|
16785
|
+
unit_price: number;
|
|
16786
|
+
service_category: string;
|
|
16787
|
+
cap?: {
|
|
16788
|
+
mode: "tiered_total";
|
|
16789
|
+
tiers: {
|
|
16790
|
+
total: number;
|
|
16791
|
+
up_to: number;
|
|
16792
|
+
}[];
|
|
16793
|
+
} | null | undefined;
|
|
16794
|
+
}, {
|
|
16795
|
+
kind: "usage";
|
|
16796
|
+
unit_price: number;
|
|
16797
|
+
service_category: string;
|
|
16798
|
+
cap?: {
|
|
16799
|
+
mode: "tiered_total";
|
|
16800
|
+
tiers: {
|
|
16801
|
+
total: number;
|
|
16802
|
+
up_to: number;
|
|
16803
|
+
}[];
|
|
16804
|
+
} | null | undefined;
|
|
16805
|
+
}>, z.ZodObject<{
|
|
16806
|
+
kind: z.ZodLiteral<"recurring">;
|
|
16807
|
+
amount: z.ZodNumber;
|
|
16808
|
+
service_category: z.ZodString;
|
|
16809
|
+
}, "strip", z.ZodTypeAny, {
|
|
16810
|
+
kind: "recurring";
|
|
16811
|
+
amount: number;
|
|
16812
|
+
service_category: string;
|
|
16813
|
+
}, {
|
|
16814
|
+
kind: "recurring";
|
|
16815
|
+
amount: number;
|
|
16816
|
+
service_category: string;
|
|
16817
|
+
}>, z.ZodObject<{
|
|
16818
|
+
kind: z.ZodLiteral<"disabled">;
|
|
16819
|
+
}, "strip", z.ZodTypeAny, {
|
|
16820
|
+
kind: "disabled";
|
|
16821
|
+
}, {
|
|
16822
|
+
kind: "disabled";
|
|
16823
|
+
}>]>>;
|
|
16824
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16825
|
+
}, "strip", z.ZodTypeAny, {
|
|
16826
|
+
name: string;
|
|
16827
|
+
is_default: boolean;
|
|
16828
|
+
lines: Record<string, {
|
|
16829
|
+
kind: "usage";
|
|
16830
|
+
unit_price: number;
|
|
16831
|
+
service_category: string;
|
|
16832
|
+
cap?: {
|
|
16833
|
+
mode: "tiered_total";
|
|
16834
|
+
tiers: {
|
|
16835
|
+
total: number;
|
|
16836
|
+
up_to: number;
|
|
16837
|
+
}[];
|
|
16838
|
+
} | null | undefined;
|
|
16839
|
+
} | {
|
|
16840
|
+
kind: "recurring";
|
|
16841
|
+
amount: number;
|
|
16842
|
+
service_category: string;
|
|
16843
|
+
} | {
|
|
16844
|
+
kind: "disabled";
|
|
16845
|
+
}>;
|
|
16846
|
+
notes?: string | null | undefined;
|
|
16847
|
+
inherits_from?: string | null | undefined;
|
|
16848
|
+
}, {
|
|
16849
|
+
name: string;
|
|
16850
|
+
is_default: boolean;
|
|
16851
|
+
lines: Record<string, {
|
|
16852
|
+
kind: "usage";
|
|
16853
|
+
unit_price: number;
|
|
16854
|
+
service_category: string;
|
|
16855
|
+
cap?: {
|
|
16856
|
+
mode: "tiered_total";
|
|
16857
|
+
tiers: {
|
|
16858
|
+
total: number;
|
|
16859
|
+
up_to: number;
|
|
16860
|
+
}[];
|
|
16861
|
+
} | null | undefined;
|
|
16862
|
+
} | {
|
|
16863
|
+
kind: "recurring";
|
|
16864
|
+
amount: number;
|
|
16865
|
+
service_category: string;
|
|
16866
|
+
} | {
|
|
16867
|
+
kind: "disabled";
|
|
16868
|
+
}>;
|
|
16869
|
+
notes?: string | null | undefined;
|
|
16870
|
+
inherits_from?: string | null | undefined;
|
|
16368
16871
|
}>;
|
|
16369
16872
|
export declare const zNexFinopsPaymentMethodKindSchema: z.ZodEnum<["asaas_subscription", "asaas_card_token"]>;
|
|
16370
16873
|
export declare const zNexFinopsPaymentMethodStatusSchema: z.ZodEnum<["active", "failing", "inactive", "revoked"]>;
|
|
@@ -16532,3 +17035,262 @@ export declare const zNfseFeeReimbursementExecuteSchema: z.ZodObject<{
|
|
|
16532
17035
|
};
|
|
16533
17036
|
competencia: string;
|
|
16534
17037
|
}>;
|
|
17038
|
+
/**
|
|
17039
|
+
* Corpo de `POST /journeys/:short_code/contract/accept` (público). IP, user-agent,
|
|
17040
|
+
* idioma e trace vêm da requisição, nunca do corpo.
|
|
17041
|
+
*/
|
|
17042
|
+
export declare const zNexVendasAcceptanceRequestSchema: z.ZodObject<{
|
|
17043
|
+
cg_sha256: z.ZodString;
|
|
17044
|
+
summary_sha256: z.ZodString;
|
|
17045
|
+
declaration_version: z.ZodString;
|
|
17046
|
+
viewed_to_end: z.ZodBoolean;
|
|
17047
|
+
client_request_id: z.ZodString;
|
|
17048
|
+
}, "strip", z.ZodTypeAny, {
|
|
17049
|
+
client_request_id: string;
|
|
17050
|
+
cg_sha256: string;
|
|
17051
|
+
summary_sha256: string;
|
|
17052
|
+
declaration_version: string;
|
|
17053
|
+
viewed_to_end: boolean;
|
|
17054
|
+
}, {
|
|
17055
|
+
client_request_id: string;
|
|
17056
|
+
cg_sha256: string;
|
|
17057
|
+
summary_sha256: string;
|
|
17058
|
+
declaration_version: string;
|
|
17059
|
+
viewed_to_end: boolean;
|
|
17060
|
+
}>;
|
|
17061
|
+
/** Bloco `adhesion` do modelo de contrato (metadados das CG gravados pelo backend no upload). */
|
|
17062
|
+
export declare const zNexVendasContractTemplateAdhesionSchema: z.ZodObject<{
|
|
17063
|
+
cg: z.ZodObject<{
|
|
17064
|
+
version: z.ZodString;
|
|
17065
|
+
sha256: z.ZodString;
|
|
17066
|
+
storage_path: z.ZodString;
|
|
17067
|
+
effective_from: z.ZodString;
|
|
17068
|
+
filename: z.ZodString;
|
|
17069
|
+
}, "strip", z.ZodTypeAny, {
|
|
17070
|
+
version: string;
|
|
17071
|
+
filename: string;
|
|
17072
|
+
sha256: string;
|
|
17073
|
+
storage_path: string;
|
|
17074
|
+
effective_from: string;
|
|
17075
|
+
}, {
|
|
17076
|
+
version: string;
|
|
17077
|
+
filename: string;
|
|
17078
|
+
sha256: string;
|
|
17079
|
+
storage_path: string;
|
|
17080
|
+
effective_from: string;
|
|
17081
|
+
}>;
|
|
17082
|
+
require_email_otp: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
17083
|
+
}, "strip", z.ZodTypeAny, {
|
|
17084
|
+
cg: {
|
|
17085
|
+
version: string;
|
|
17086
|
+
filename: string;
|
|
17087
|
+
sha256: string;
|
|
17088
|
+
storage_path: string;
|
|
17089
|
+
effective_from: string;
|
|
17090
|
+
};
|
|
17091
|
+
require_email_otp?: boolean | null | undefined;
|
|
17092
|
+
}, {
|
|
17093
|
+
cg: {
|
|
17094
|
+
version: string;
|
|
17095
|
+
filename: string;
|
|
17096
|
+
sha256: string;
|
|
17097
|
+
storage_path: string;
|
|
17098
|
+
effective_from: string;
|
|
17099
|
+
};
|
|
17100
|
+
require_email_otp?: boolean | null | undefined;
|
|
17101
|
+
}>;
|
|
17102
|
+
/** Doc `core/nexus/apps/nex-vendas/config/adhesion` (escrita pelo Nexus). */
|
|
17103
|
+
export declare const zNexVendasAdhesionConfigWriteSchema: z.ZodObject<{
|
|
17104
|
+
declaration: z.ZodObject<{
|
|
17105
|
+
version: z.ZodString;
|
|
17106
|
+
text: z.ZodString;
|
|
17107
|
+
}, "strip", z.ZodTypeAny, {
|
|
17108
|
+
text: string;
|
|
17109
|
+
version: string;
|
|
17110
|
+
}, {
|
|
17111
|
+
text: string;
|
|
17112
|
+
version: string;
|
|
17113
|
+
}>;
|
|
17114
|
+
document_access_days: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
17115
|
+
corrections_per_hour: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
17116
|
+
}, "strip", z.ZodTypeAny, {
|
|
17117
|
+
declaration: {
|
|
17118
|
+
text: string;
|
|
17119
|
+
version: string;
|
|
17120
|
+
};
|
|
17121
|
+
document_access_days?: number | null | undefined;
|
|
17122
|
+
corrections_per_hour?: number | null | undefined;
|
|
17123
|
+
}, {
|
|
17124
|
+
declaration: {
|
|
17125
|
+
text: string;
|
|
17126
|
+
version: string;
|
|
17127
|
+
};
|
|
17128
|
+
document_access_days?: number | null | undefined;
|
|
17129
|
+
corrections_per_hour?: number | null | undefined;
|
|
17130
|
+
}>;
|
|
17131
|
+
/**
|
|
17132
|
+
* Escrita da oferta `core/nexus/apps/nex-vendas/offers/{slug}` (Nexus → `nex_finops`).
|
|
17133
|
+
* Cobre TODOS os campos de `INexVendasOffer`: o que fica fora do `.strip()` some em
|
|
17134
|
+
* silêncio. `contract_type`, `created_by` e `start_count` são resolvidos no servidor
|
|
17135
|
+
* (o valor do cliente é sobrescrito) e estão aqui para o backend não perdê-los.
|
|
17136
|
+
* Regras de negócio (v1 só `card_subscription`, modelo ativo) ficam no use case.
|
|
17137
|
+
*/
|
|
17138
|
+
export declare const zNexVendasOfferWriteSchema: z.ZodObject<{
|
|
17139
|
+
slug: z.ZodString;
|
|
17140
|
+
name: z.ZodString;
|
|
17141
|
+
headline: z.ZodString;
|
|
17142
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17143
|
+
html_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17144
|
+
base_amount: z.ZodNumber;
|
|
17145
|
+
due_day: z.ZodNumber;
|
|
17146
|
+
accepted_payment_methods: z.ZodArray<z.ZodEnum<["boleto", "card_subscription", "payment_link"]>, "many">;
|
|
17147
|
+
loyalty_period: z.ZodEnum<["none", "3m", "6m", "1y", "2y"]>;
|
|
17148
|
+
contract_template_key: z.ZodString;
|
|
17149
|
+
contract_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["assinatura_eletronica", "adesao"]>>>;
|
|
17150
|
+
allowances: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
17151
|
+
included: z.ZodNumber;
|
|
17152
|
+
/** Reservado para a feat-150 cheia (preço do excedente). Não usar ainda. */
|
|
17153
|
+
unit_price_excess: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
17154
|
+
}, "strip", z.ZodTypeAny, {
|
|
17155
|
+
included: number;
|
|
17156
|
+
unit_price_excess?: number | null | undefined;
|
|
17157
|
+
}, {
|
|
17158
|
+
included: number;
|
|
17159
|
+
unit_price_excess?: number | null | undefined;
|
|
17160
|
+
}>>>;
|
|
17161
|
+
terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17162
|
+
proposal_valid_days: z.ZodNumber;
|
|
17163
|
+
site: z.ZodString;
|
|
17164
|
+
origem: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17165
|
+
active: z.ZodBoolean;
|
|
17166
|
+
listed: z.ZodBoolean;
|
|
17167
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
17168
|
+
start_count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
17169
|
+
last_start_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
17170
|
+
}, "strip", z.ZodTypeAny, {
|
|
17171
|
+
name: string;
|
|
17172
|
+
active: boolean;
|
|
17173
|
+
site: string;
|
|
17174
|
+
slug: string;
|
|
17175
|
+
headline: string;
|
|
17176
|
+
base_amount: number;
|
|
17177
|
+
due_day: number;
|
|
17178
|
+
accepted_payment_methods: ("payment_link" | "boleto" | "card_subscription")[];
|
|
17179
|
+
loyalty_period: "none" | "3m" | "6m" | "1y" | "2y";
|
|
17180
|
+
contract_template_key: string;
|
|
17181
|
+
allowances: Record<string, {
|
|
17182
|
+
included: number;
|
|
17183
|
+
unit_price_excess?: number | null | undefined;
|
|
17184
|
+
}> | null;
|
|
17185
|
+
proposal_valid_days: number;
|
|
17186
|
+
listed: boolean;
|
|
17187
|
+
created_by?: string | undefined;
|
|
17188
|
+
description?: string | null | undefined;
|
|
17189
|
+
html_content?: string | null | undefined;
|
|
17190
|
+
contract_type?: "assinatura_eletronica" | "adesao" | null | undefined;
|
|
17191
|
+
terms?: string | null | undefined;
|
|
17192
|
+
origem?: string | null | undefined;
|
|
17193
|
+
start_count?: number | null | undefined;
|
|
17194
|
+
last_start_at?: Date | null | undefined;
|
|
17195
|
+
}, {
|
|
17196
|
+
name: string;
|
|
17197
|
+
active: boolean;
|
|
17198
|
+
site: string;
|
|
17199
|
+
slug: string;
|
|
17200
|
+
headline: string;
|
|
17201
|
+
base_amount: number;
|
|
17202
|
+
due_day: number;
|
|
17203
|
+
accepted_payment_methods: ("payment_link" | "boleto" | "card_subscription")[];
|
|
17204
|
+
loyalty_period: "none" | "3m" | "6m" | "1y" | "2y";
|
|
17205
|
+
contract_template_key: string;
|
|
17206
|
+
allowances: Record<string, {
|
|
17207
|
+
included: number;
|
|
17208
|
+
unit_price_excess?: number | null | undefined;
|
|
17209
|
+
}> | null;
|
|
17210
|
+
proposal_valid_days: number;
|
|
17211
|
+
listed: boolean;
|
|
17212
|
+
created_by?: string | undefined;
|
|
17213
|
+
description?: string | null | undefined;
|
|
17214
|
+
html_content?: string | null | undefined;
|
|
17215
|
+
contract_type?: "assinatura_eletronica" | "adesao" | null | undefined;
|
|
17216
|
+
terms?: string | null | undefined;
|
|
17217
|
+
origem?: string | null | undefined;
|
|
17218
|
+
start_count?: number | null | undefined;
|
|
17219
|
+
last_start_at?: unknown;
|
|
17220
|
+
}>;
|
|
17221
|
+
/** Corpo de `POST /offers/:slug/start` (público). */
|
|
17222
|
+
export declare const zNexVendasOfferStartRequestSchema: z.ZodObject<{
|
|
17223
|
+
name: z.ZodString;
|
|
17224
|
+
email: z.ZodString;
|
|
17225
|
+
phone: z.ZodString;
|
|
17226
|
+
client_request_id: z.ZodString;
|
|
17227
|
+
turnstile_token: z.ZodString;
|
|
17228
|
+
attribution: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
17229
|
+
utm_source: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17230
|
+
utm_medium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17231
|
+
utm_campaign: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17232
|
+
utm_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17233
|
+
utm_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17234
|
+
gclid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17235
|
+
referrer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17236
|
+
site: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17237
|
+
landing_path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17238
|
+
}, "strip", z.ZodTypeAny, {
|
|
17239
|
+
site?: string | null | undefined;
|
|
17240
|
+
utm_source?: string | null | undefined;
|
|
17241
|
+
utm_medium?: string | null | undefined;
|
|
17242
|
+
utm_campaign?: string | null | undefined;
|
|
17243
|
+
utm_term?: string | null | undefined;
|
|
17244
|
+
utm_content?: string | null | undefined;
|
|
17245
|
+
gclid?: string | null | undefined;
|
|
17246
|
+
referrer?: string | null | undefined;
|
|
17247
|
+
landing_path?: string | null | undefined;
|
|
17248
|
+
}, {
|
|
17249
|
+
site?: string | null | undefined;
|
|
17250
|
+
utm_source?: string | null | undefined;
|
|
17251
|
+
utm_medium?: string | null | undefined;
|
|
17252
|
+
utm_campaign?: string | null | undefined;
|
|
17253
|
+
utm_term?: string | null | undefined;
|
|
17254
|
+
utm_content?: string | null | undefined;
|
|
17255
|
+
gclid?: string | null | undefined;
|
|
17256
|
+
referrer?: string | null | undefined;
|
|
17257
|
+
landing_path?: string | null | undefined;
|
|
17258
|
+
}>>>;
|
|
17259
|
+
privacy_accepted: z.ZodLiteral<true>;
|
|
17260
|
+
}, "strip", z.ZodTypeAny, {
|
|
17261
|
+
name: string;
|
|
17262
|
+
email: string;
|
|
17263
|
+
phone: string;
|
|
17264
|
+
client_request_id: string;
|
|
17265
|
+
turnstile_token: string;
|
|
17266
|
+
privacy_accepted: true;
|
|
17267
|
+
attribution?: {
|
|
17268
|
+
site?: string | null | undefined;
|
|
17269
|
+
utm_source?: string | null | undefined;
|
|
17270
|
+
utm_medium?: string | null | undefined;
|
|
17271
|
+
utm_campaign?: string | null | undefined;
|
|
17272
|
+
utm_term?: string | null | undefined;
|
|
17273
|
+
utm_content?: string | null | undefined;
|
|
17274
|
+
gclid?: string | null | undefined;
|
|
17275
|
+
referrer?: string | null | undefined;
|
|
17276
|
+
landing_path?: string | null | undefined;
|
|
17277
|
+
} | null | undefined;
|
|
17278
|
+
}, {
|
|
17279
|
+
name: string;
|
|
17280
|
+
email: string;
|
|
17281
|
+
phone: string;
|
|
17282
|
+
client_request_id: string;
|
|
17283
|
+
turnstile_token: string;
|
|
17284
|
+
privacy_accepted: true;
|
|
17285
|
+
attribution?: {
|
|
17286
|
+
site?: string | null | undefined;
|
|
17287
|
+
utm_source?: string | null | undefined;
|
|
17288
|
+
utm_medium?: string | null | undefined;
|
|
17289
|
+
utm_campaign?: string | null | undefined;
|
|
17290
|
+
utm_term?: string | null | undefined;
|
|
17291
|
+
utm_content?: string | null | undefined;
|
|
17292
|
+
gclid?: string | null | undefined;
|
|
17293
|
+
referrer?: string | null | undefined;
|
|
17294
|
+
landing_path?: string | null | undefined;
|
|
17295
|
+
} | null | undefined;
|
|
17296
|
+
}>;
|