evo360-types 1.3.784 → 1.3.791

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.
Files changed (31) hide show
  1. package/dist/apps/evo-chat/forward/zod-schemas.d.ts +4 -4
  2. package/dist/apps/evo-finops/zod-schemas.d.ts +467 -32
  3. package/dist/apps/evo-finops/zod-schemas.js +123 -2
  4. package/dist/apps/evo-finops/zod-schemas.ts +131 -0
  5. package/dist/types/evo-finops/common/billing-statement.d.ts +97 -0
  6. package/dist/types/evo-finops/common/billing-statement.js +19 -0
  7. package/dist/types/evo-finops/common/billing-statement.ts +101 -0
  8. package/dist/types/evo-finops/common/billing.d.ts +9 -0
  9. package/dist/types/evo-finops/common/billing.ts +12 -0
  10. package/dist/types/evo-finops/common/contract.d.ts +15 -0
  11. package/dist/types/evo-finops/common/contract.ts +16 -0
  12. package/dist/types/evo-finops/common/proposal.d.ts +25 -0
  13. package/dist/types/evo-finops/common/proposal.ts +28 -0
  14. package/dist/types/evo-finops/index.d.ts +1 -0
  15. package/dist/types/evo-finops/index.js +1 -0
  16. package/dist/types/evo-finops/index.ts +1 -0
  17. package/dist/types/nex-vendas/adhesion.d.ts +253 -0
  18. package/dist/types/nex-vendas/adhesion.js +15 -0
  19. package/dist/types/nex-vendas/adhesion.ts +280 -0
  20. package/dist/types/nex-vendas/index.d.ts +3 -0
  21. package/dist/types/nex-vendas/index.js +3 -0
  22. package/dist/types/nex-vendas/index.ts +3 -0
  23. package/dist/types/nex-vendas/journey.d.ts +82 -4
  24. package/dist/types/nex-vendas/journey.ts +86 -3
  25. package/dist/types/nex-vendas/notifications.d.ts +14 -0
  26. package/dist/types/nex-vendas/notifications.js +21 -0
  27. package/dist/types/nex-vendas/notifications.ts +21 -0
  28. package/dist/types/nex-vendas/offer.d.ts +129 -0
  29. package/dist/types/nex-vendas/offer.js +10 -0
  30. package/dist/types/nex-vendas/offer.ts +154 -0
  31. package/package.json +1 -1
@@ -643,9 +643,9 @@ export declare const zForwardCreateRequestSchema: z.ZodEffects<z.ZodObject<{
643
643
  email_address?: string | undefined;
644
644
  }[];
645
645
  message_ids: string[];
646
+ client_request_id: string;
646
647
  source_thread_id: string;
647
648
  source_ticket_id: string;
648
- client_request_id: string;
649
649
  dry_run?: boolean | undefined;
650
650
  intro_text?: string | null | undefined;
651
651
  email_subject?: string | undefined;
@@ -656,9 +656,9 @@ export declare const zForwardCreateRequestSchema: z.ZodEffects<z.ZodObject<{
656
656
  email_address?: string | undefined;
657
657
  }[];
658
658
  message_ids: string[];
659
+ client_request_id: string;
659
660
  source_thread_id: string;
660
661
  source_ticket_id: string;
661
- client_request_id: string;
662
662
  dry_run?: boolean | undefined;
663
663
  intro_text?: string | null | undefined;
664
664
  email_subject?: string | undefined;
@@ -669,9 +669,9 @@ export declare const zForwardCreateRequestSchema: z.ZodEffects<z.ZodObject<{
669
669
  email_address?: string | undefined;
670
670
  }[];
671
671
  message_ids: string[];
672
+ client_request_id: string;
672
673
  source_thread_id: string;
673
674
  source_ticket_id: string;
674
- client_request_id: string;
675
675
  dry_run?: boolean | undefined;
676
676
  intro_text?: string | null | undefined;
677
677
  email_subject?: string | undefined;
@@ -682,9 +682,9 @@ export declare const zForwardCreateRequestSchema: z.ZodEffects<z.ZodObject<{
682
682
  email_address?: string | undefined;
683
683
  }[];
684
684
  message_ids: string[];
685
+ client_request_id: string;
685
686
  source_thread_id: string;
686
687
  source_ticket_id: string;
687
- client_request_id: string;
688
688
  dry_run?: boolean | undefined;
689
689
  intro_text?: string | null | undefined;
690
690
  email_subject?: string | undefined;
@@ -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
- customer_id?: string | null | undefined;
15802
- customer_ref?: string | null | undefined;
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
- customer_id?: string | null | undefined;
15833
- customer_ref?: string | null | undefined;
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" | "canceled" | "viewed";
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
- customer_id?: string | null | undefined;
15936
- customer_ref?: string | null | undefined;
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" | "canceled" | "viewed";
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
- customer_id?: string | null | undefined;
15970
- customer_ref?: string | null | undefined;
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"]>;
@@ -16014,8 +16190,8 @@ export declare const zNexFinopsContractAsaasInfoSchema: z.ZodObject<{
16014
16190
  env: z.ZodNullable<z.ZodOptional<z.ZodEnum<["sandbox", "production"]>>>;
16015
16191
  }, "strip", z.ZodTypeAny, {
16016
16192
  value?: number | null | undefined;
16017
- customer_id?: string | null | undefined;
16018
16193
  cycle?: string | null | undefined;
16194
+ customer_id?: string | null | undefined;
16019
16195
  subscription_id?: string | null | undefined;
16020
16196
  subscription_status?: "ACTIVE" | "EXPIRED" | "INACTIVE" | null | undefined;
16021
16197
  next_due_date?: string | null | undefined;
@@ -16025,8 +16201,8 @@ export declare const zNexFinopsContractAsaasInfoSchema: z.ZodObject<{
16025
16201
  env?: "sandbox" | "production" | null | undefined;
16026
16202
  }, {
16027
16203
  value?: number | null | undefined;
16028
- customer_id?: string | null | undefined;
16029
16204
  cycle?: string | null | undefined;
16205
+ customer_id?: string | null | undefined;
16030
16206
  subscription_id?: string | null | undefined;
16031
16207
  subscription_status?: "ACTIVE" | "EXPIRED" | "INACTIVE" | null | undefined;
16032
16208
  next_due_date?: string | null | undefined;
@@ -16859,3 +17035,262 @@ export declare const zNfseFeeReimbursementExecuteSchema: z.ZodObject<{
16859
17035
  };
16860
17036
  competencia: string;
16861
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
+ }>;