evo360-types 1.3.811 → 1.3.816

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.
@@ -6,6 +6,7 @@ import type {
6
6
  } from '../evo-finops/common/proposal';
7
7
  import type { INexFinopsContractAllowance } from '../evo-finops/common/contract';
8
8
  import type { NexVendasContractType } from './adhesion';
9
+ import type { INexVendasOfferPackage, INexVendasPackageDisplay } from './offer-package';
9
10
 
10
11
  // ── Atribuição (feat-326 D14) ──
11
12
 
@@ -86,8 +87,16 @@ export interface INexVendasOffer extends IFireGlobalDoc {
86
87
  contract_template_key: string;
87
88
  /** Cópia DERIVADA do modelo (backend grava; valor do cliente HTTP é sobrescrito). */
88
89
  contract_type?: NexVendasContractType | null;
89
- /** D12 — `null` na v1 (sem franquia). */
90
+ /**
91
+ * D12 — `null` na v1 (sem franquia).
92
+ * @deprecated feat-353 — usar `package.allowances`. Sempre null (o backend força).
93
+ */
90
94
  allowances: Record<string, INexFinopsContractAllowance> | null;
95
+ /**
96
+ * feat-353 — pacote comercial (módulos, franquias aplicadas × exibidas, tabela de
97
+ * preço, preço "de"). Ausente/null = oferta v1 (comportamento anterior).
98
+ */
99
+ package?: INexVendasOfferPackage | null;
91
100
  terms?: string | null;
92
101
  /** D13 — `valid_until` da proposta = hoje (SP) + N dias. Padrão 7. */
93
102
  proposal_valid_days: number;
@@ -125,6 +134,11 @@ export interface INexVendasOfferPublic {
125
134
  contract_type: NexVendasContractType;
126
135
  terms: string | null;
127
136
  site: string;
137
+ /**
138
+ * feat-353 — pacote pronto para exibir (`buildPackageDisplay`, calculado no
139
+ * backend). Ausente/null = oferta sem pacote ou backend anterior à feat-353.
140
+ */
141
+ package_display?: INexVendasPackageDisplay | null;
128
142
  }
129
143
 
130
144
  /** Vitrine: `GET /offers?site=…` lista as ofertas `active && listed` do site. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.811",
3
+ "version": "1.3.816",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",