@vitrina/api 11.43.0 → 11.44.0
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/index.d.cts +194 -7
- package/dist/index.d.ts +194 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -19991,6 +19991,15 @@ interface paths {
|
|
|
19991
19991
|
* "trade_in_description": null,
|
|
19992
19992
|
* "offer_amount": null,
|
|
19993
19993
|
* "offer_note": null,
|
|
19994
|
+
* "financing_term_months": [
|
|
19995
|
+
* 24,
|
|
19996
|
+
* 36
|
|
19997
|
+
* ],
|
|
19998
|
+
* "installment_amount": null,
|
|
19999
|
+
* "max_down_payment_amount": null,
|
|
20000
|
+
* "net_income_amount": 1900000,
|
|
20001
|
+
* "employer": "CGE",
|
|
20002
|
+
* "employment_tenure": "15 años",
|
|
19994
20003
|
* "deal_terms_meta": {
|
|
19995
20004
|
* "payment_method": {
|
|
19996
20005
|
* "source": "ai",
|
|
@@ -20070,6 +20079,15 @@ interface paths {
|
|
|
20070
20079
|
* "trade_in_description": null,
|
|
20071
20080
|
* "offer_amount": null,
|
|
20072
20081
|
* "offer_note": null,
|
|
20082
|
+
* "financing_term_months": [
|
|
20083
|
+
* 24,
|
|
20084
|
+
* 36
|
|
20085
|
+
* ],
|
|
20086
|
+
* "installment_amount": null,
|
|
20087
|
+
* "max_down_payment_amount": null,
|
|
20088
|
+
* "net_income_amount": 1900000,
|
|
20089
|
+
* "employer": "CGE",
|
|
20090
|
+
* "employment_tenure": "15 años",
|
|
20073
20091
|
* "deal_terms_meta": {
|
|
20074
20092
|
* "payment_method": {
|
|
20075
20093
|
* "source": "ai",
|
|
@@ -20289,6 +20307,15 @@ interface paths {
|
|
|
20289
20307
|
* "trade_in_description": null,
|
|
20290
20308
|
* "offer_amount": null,
|
|
20291
20309
|
* "offer_note": null,
|
|
20310
|
+
* "financing_term_months": [
|
|
20311
|
+
* 24,
|
|
20312
|
+
* 36
|
|
20313
|
+
* ],
|
|
20314
|
+
* "installment_amount": null,
|
|
20315
|
+
* "max_down_payment_amount": null,
|
|
20316
|
+
* "net_income_amount": 1900000,
|
|
20317
|
+
* "employer": "CGE",
|
|
20318
|
+
* "employment_tenure": "15 años",
|
|
20292
20319
|
* "deal_terms_meta": {
|
|
20293
20320
|
* "payment_method": {
|
|
20294
20321
|
* "source": "ai",
|
|
@@ -20494,6 +20521,15 @@ interface paths {
|
|
|
20494
20521
|
* "trade_in_description": null,
|
|
20495
20522
|
* "offer_amount": null,
|
|
20496
20523
|
* "offer_note": null,
|
|
20524
|
+
* "financing_term_months": [
|
|
20525
|
+
* 24,
|
|
20526
|
+
* 36
|
|
20527
|
+
* ],
|
|
20528
|
+
* "installment_amount": null,
|
|
20529
|
+
* "max_down_payment_amount": null,
|
|
20530
|
+
* "net_income_amount": 1900000,
|
|
20531
|
+
* "employer": "CGE",
|
|
20532
|
+
* "employment_tenure": "15 años",
|
|
20497
20533
|
* "deal_terms_meta": {
|
|
20498
20534
|
* "payment_method": {
|
|
20499
20535
|
* "source": "ai",
|
|
@@ -21209,6 +21245,15 @@ interface paths {
|
|
|
21209
21245
|
* "trade_in_description": null,
|
|
21210
21246
|
* "offer_amount": null,
|
|
21211
21247
|
* "offer_note": null,
|
|
21248
|
+
* "financing_term_months": [
|
|
21249
|
+
* 24,
|
|
21250
|
+
* 36
|
|
21251
|
+
* ],
|
|
21252
|
+
* "installment_amount": null,
|
|
21253
|
+
* "max_down_payment_amount": null,
|
|
21254
|
+
* "net_income_amount": 1900000,
|
|
21255
|
+
* "employer": "CGE",
|
|
21256
|
+
* "employment_tenure": "15 años",
|
|
21212
21257
|
* "deal_terms_meta": {
|
|
21213
21258
|
* "payment_method": {
|
|
21214
21259
|
* "source": "ai",
|
|
@@ -21298,6 +21343,15 @@ interface paths {
|
|
|
21298
21343
|
* "trade_in_description": null,
|
|
21299
21344
|
* "offer_amount": null,
|
|
21300
21345
|
* "offer_note": null,
|
|
21346
|
+
* "financing_term_months": [
|
|
21347
|
+
* 24,
|
|
21348
|
+
* 36
|
|
21349
|
+
* ],
|
|
21350
|
+
* "installment_amount": null,
|
|
21351
|
+
* "max_down_payment_amount": null,
|
|
21352
|
+
* "net_income_amount": 1900000,
|
|
21353
|
+
* "employer": "CGE",
|
|
21354
|
+
* "employment_tenure": "15 años",
|
|
21301
21355
|
* "deal_terms_meta": {
|
|
21302
21356
|
* "payment_method": {
|
|
21303
21357
|
* "source": "ai",
|
|
@@ -21600,6 +21654,15 @@ interface paths {
|
|
|
21600
21654
|
* "trade_in_description": null,
|
|
21601
21655
|
* "offer_amount": null,
|
|
21602
21656
|
* "offer_note": null,
|
|
21657
|
+
* "financing_term_months": [
|
|
21658
|
+
* 24,
|
|
21659
|
+
* 36
|
|
21660
|
+
* ],
|
|
21661
|
+
* "installment_amount": null,
|
|
21662
|
+
* "max_down_payment_amount": null,
|
|
21663
|
+
* "net_income_amount": 1900000,
|
|
21664
|
+
* "employer": "CGE",
|
|
21665
|
+
* "employment_tenure": "15 años",
|
|
21603
21666
|
* "deal_terms_meta": {
|
|
21604
21667
|
* "payment_method": {
|
|
21605
21668
|
* "source": "ai",
|
|
@@ -21797,6 +21860,15 @@ interface paths {
|
|
|
21797
21860
|
* "trade_in_description": null,
|
|
21798
21861
|
* "offer_amount": null,
|
|
21799
21862
|
* "offer_note": null,
|
|
21863
|
+
* "financing_term_months": [
|
|
21864
|
+
* 24,
|
|
21865
|
+
* 36
|
|
21866
|
+
* ],
|
|
21867
|
+
* "installment_amount": null,
|
|
21868
|
+
* "max_down_payment_amount": null,
|
|
21869
|
+
* "net_income_amount": 1900000,
|
|
21870
|
+
* "employer": "CGE",
|
|
21871
|
+
* "employment_tenure": "15 años",
|
|
21800
21872
|
* "deal_terms_meta": {
|
|
21801
21873
|
* "payment_method": {
|
|
21802
21874
|
* "source": "ai",
|
|
@@ -22164,7 +22236,7 @@ interface paths {
|
|
|
22164
22236
|
get?: never;
|
|
22165
22237
|
/**
|
|
22166
22238
|
* Set a lead's deal terms (human)
|
|
22167
|
-
* @description Deal terms are
|
|
22239
|
+
* @description Deal terms are thirteen nullable, vertical-neutral facts: `payment_method` (`cash` | `financing` | `credit_card` | `debit_card` | `mixed`), `down_payment_amount`, `budget_max_amount`, `offer_amount` (in the lead's `value_currency`), `has_trade_in` (null = unknown, false = none), `trade_in_description`, `offer_note`, and the financing ones: `financing_term_months` (plazo(s) = number of cuotas, e.g. `[12, 18, 24]`), `installment_amount` (valor cuota), `max_down_payment_amount` (pie máximo), `net_income_amount` (renta líquida), `employer`, `employment_tenure`. Each carries provenance in `deal_terms_meta` (`ai` | `human`); an AI writer never overwrites a human-owned field — a disagreeing AI reading is kept in `deal_terms_suggestions` instead. Every field in the body becomes human-owned (`source: human`, the caller as actor) and its pending suggestion is removed; `null` clears a value but keeps it human-owned, so the next AI read proposes instead of re-filling it. Accepting a suggestion is this call with the suggested value. `applicant_full_name` / `applicant_rut` are the applicant's identity and are written to the lead's PRIMARY contact (`legal_name`, `tax_id` kind `rut`) — no provenance; 400 when the lead has no contact or the RUT check digit is wrong, 409 when another contact already holds that RUT. Changes land on the lead's timeline as `deal_terms_changed`. Returns the Oportunidad `lead` object. `{id}` accepts the lead uuid or its ID visible (`L-89`) — the label is a lookup shortcut on the path only, never a value to store.
|
|
22168
22240
|
*/
|
|
22169
22241
|
put: {
|
|
22170
22242
|
parameters: {
|
|
@@ -22179,8 +22251,14 @@ interface paths {
|
|
|
22179
22251
|
content: {
|
|
22180
22252
|
/**
|
|
22181
22253
|
* @example {
|
|
22182
|
-
* "payment_method": "
|
|
22183
|
-
* "
|
|
22254
|
+
* "payment_method": "financing",
|
|
22255
|
+
* "financing_term_months": [
|
|
22256
|
+
* 12,
|
|
22257
|
+
* 18,
|
|
22258
|
+
* 24
|
|
22259
|
+
* ],
|
|
22260
|
+
* "net_income_amount": 1900000,
|
|
22261
|
+
* "applicant_rut": "12.345.678-5"
|
|
22184
22262
|
* }
|
|
22185
22263
|
*/
|
|
22186
22264
|
"application/json": {
|
|
@@ -22192,6 +22270,22 @@ interface paths {
|
|
|
22192
22270
|
trade_in_description?: string | null;
|
|
22193
22271
|
offer_amount?: number | null;
|
|
22194
22272
|
offer_note?: string | null;
|
|
22273
|
+
/** @description Plazo(s) in months the customer asked to quote — the number of cuotas. Stored deduped and ascending, e.g. [12, 18, 24]. */
|
|
22274
|
+
financing_term_months?: number[] | null;
|
|
22275
|
+
/** @description Valor de la cuota as quoted by the dealership / financiera. */
|
|
22276
|
+
installment_amount?: number | null;
|
|
22277
|
+
/** @description The most pie the customer could put if needed. */
|
|
22278
|
+
max_down_payment_amount?: number | null;
|
|
22279
|
+
/** @description Renta líquida mensual. */
|
|
22280
|
+
net_income_amount?: number | null;
|
|
22281
|
+
/** @description Where the customer works («CGE»). */
|
|
22282
|
+
employer?: string | null;
|
|
22283
|
+
/** @description Antigüedad laboral («15 años»). */
|
|
22284
|
+
employment_tenure?: string | null;
|
|
22285
|
+
/** @description The applicant's full legal name → the lead's primary contact `legal_name`. null clears. */
|
|
22286
|
+
applicant_full_name?: string | null;
|
|
22287
|
+
/** @description The applicant's RUT in any spelling → the primary contact's `tax_id` (kind `rut`), stored canonical. 400 on a wrong check digit, 409 when another contact of the workspace already holds it. null clears. */
|
|
22288
|
+
applicant_rut?: string | null;
|
|
22195
22289
|
};
|
|
22196
22290
|
};
|
|
22197
22291
|
};
|
|
@@ -22229,7 +22323,17 @@ interface paths {
|
|
|
22229
22323
|
* "has_trade_in": true,
|
|
22230
22324
|
* "trade_in_description": "Chery Tiggo 2 Pro 2023, 32.000 km",
|
|
22231
22325
|
* "offer_amount": 10500000,
|
|
22232
|
-
* "offer_note": "Financiado · pendiente de aprobación"
|
|
22326
|
+
* "offer_note": "Financiado · pendiente de aprobación",
|
|
22327
|
+
* "financing_term_months": [
|
|
22328
|
+
* 12,
|
|
22329
|
+
* 18,
|
|
22330
|
+
* 24
|
|
22331
|
+
* ],
|
|
22332
|
+
* "installment_amount": null,
|
|
22333
|
+
* "max_down_payment_amount": 5000000,
|
|
22334
|
+
* "net_income_amount": 1900000,
|
|
22335
|
+
* "employer": "CGE",
|
|
22336
|
+
* "employment_tenure": "15 años"
|
|
22233
22337
|
* },
|
|
22234
22338
|
* "deal_terms_meta": {
|
|
22235
22339
|
* "payment_method": {
|
|
@@ -22345,7 +22449,7 @@ interface paths {
|
|
|
22345
22449
|
header?: never;
|
|
22346
22450
|
path: {
|
|
22347
22451
|
id: string;
|
|
22348
|
-
field: "payment_method" | "down_payment_amount" | "budget_max_amount" | "has_trade_in" | "trade_in_description" | "offer_amount" | "offer_note";
|
|
22452
|
+
field: "payment_method" | "down_payment_amount" | "budget_max_amount" | "has_trade_in" | "trade_in_description" | "offer_amount" | "offer_note" | "financing_term_months" | "installment_amount" | "max_down_payment_amount" | "net_income_amount" | "employer" | "employment_tenure";
|
|
22349
22453
|
};
|
|
22350
22454
|
cookie?: never;
|
|
22351
22455
|
};
|
|
@@ -22384,7 +22488,17 @@ interface paths {
|
|
|
22384
22488
|
* "has_trade_in": true,
|
|
22385
22489
|
* "trade_in_description": "Chery Tiggo 2 Pro 2023, 32.000 km",
|
|
22386
22490
|
* "offer_amount": 10500000,
|
|
22387
|
-
* "offer_note": "Financiado · pendiente de aprobación"
|
|
22491
|
+
* "offer_note": "Financiado · pendiente de aprobación",
|
|
22492
|
+
* "financing_term_months": [
|
|
22493
|
+
* 12,
|
|
22494
|
+
* 18,
|
|
22495
|
+
* 24
|
|
22496
|
+
* ],
|
|
22497
|
+
* "installment_amount": null,
|
|
22498
|
+
* "max_down_payment_amount": 5000000,
|
|
22499
|
+
* "net_income_amount": 1900000,
|
|
22500
|
+
* "employer": "CGE",
|
|
22501
|
+
* "employment_tenure": "15 años"
|
|
22388
22502
|
* },
|
|
22389
22503
|
* "deal_terms_meta": {
|
|
22390
22504
|
* "payment_method": {
|
|
@@ -22538,7 +22652,17 @@ interface paths {
|
|
|
22538
22652
|
* "has_trade_in": true,
|
|
22539
22653
|
* "trade_in_description": "Chery Tiggo 2 Pro 2023, 32.000 km",
|
|
22540
22654
|
* "offer_amount": 10500000,
|
|
22541
|
-
* "offer_note": "Financiado · pendiente de aprobación"
|
|
22655
|
+
* "offer_note": "Financiado · pendiente de aprobación",
|
|
22656
|
+
* "financing_term_months": [
|
|
22657
|
+
* 12,
|
|
22658
|
+
* 18,
|
|
22659
|
+
* 24
|
|
22660
|
+
* ],
|
|
22661
|
+
* "installment_amount": null,
|
|
22662
|
+
* "max_down_payment_amount": 5000000,
|
|
22663
|
+
* "net_income_amount": 1900000,
|
|
22664
|
+
* "employer": "CGE",
|
|
22665
|
+
* "employment_tenure": "15 años"
|
|
22542
22666
|
* },
|
|
22543
22667
|
* "deal_terms_meta": {
|
|
22544
22668
|
* "payment_method": {
|
|
@@ -22719,6 +22843,15 @@ interface paths {
|
|
|
22719
22843
|
* "trade_in_description": null,
|
|
22720
22844
|
* "offer_amount": null,
|
|
22721
22845
|
* "offer_note": null,
|
|
22846
|
+
* "financing_term_months": [
|
|
22847
|
+
* 24,
|
|
22848
|
+
* 36
|
|
22849
|
+
* ],
|
|
22850
|
+
* "installment_amount": null,
|
|
22851
|
+
* "max_down_payment_amount": null,
|
|
22852
|
+
* "net_income_amount": 1900000,
|
|
22853
|
+
* "employer": "CGE",
|
|
22854
|
+
* "employment_tenure": "15 años",
|
|
22722
22855
|
* "deal_terms_meta": {
|
|
22723
22856
|
* "payment_method": {
|
|
22724
22857
|
* "source": "ai",
|
|
@@ -22916,6 +23049,15 @@ interface paths {
|
|
|
22916
23049
|
* "trade_in_description": null,
|
|
22917
23050
|
* "offer_amount": null,
|
|
22918
23051
|
* "offer_note": null,
|
|
23052
|
+
* "financing_term_months": [
|
|
23053
|
+
* 24,
|
|
23054
|
+
* 36
|
|
23055
|
+
* ],
|
|
23056
|
+
* "installment_amount": null,
|
|
23057
|
+
* "max_down_payment_amount": null,
|
|
23058
|
+
* "net_income_amount": 1900000,
|
|
23059
|
+
* "employer": "CGE",
|
|
23060
|
+
* "employment_tenure": "15 años",
|
|
22919
23061
|
* "deal_terms_meta": {
|
|
22920
23062
|
* "payment_method": {
|
|
22921
23063
|
* "source": "ai",
|
|
@@ -23114,6 +23256,15 @@ interface paths {
|
|
|
23114
23256
|
* "trade_in_description": null,
|
|
23115
23257
|
* "offer_amount": null,
|
|
23116
23258
|
* "offer_note": null,
|
|
23259
|
+
* "financing_term_months": [
|
|
23260
|
+
* 24,
|
|
23261
|
+
* 36
|
|
23262
|
+
* ],
|
|
23263
|
+
* "installment_amount": null,
|
|
23264
|
+
* "max_down_payment_amount": null,
|
|
23265
|
+
* "net_income_amount": 1900000,
|
|
23266
|
+
* "employer": "CGE",
|
|
23267
|
+
* "employment_tenure": "15 años",
|
|
23117
23268
|
* "deal_terms_meta": {
|
|
23118
23269
|
* "payment_method": {
|
|
23119
23270
|
* "source": "ai",
|
|
@@ -23314,6 +23465,15 @@ interface paths {
|
|
|
23314
23465
|
* "trade_in_description": null,
|
|
23315
23466
|
* "offer_amount": null,
|
|
23316
23467
|
* "offer_note": null,
|
|
23468
|
+
* "financing_term_months": [
|
|
23469
|
+
* 24,
|
|
23470
|
+
* 36
|
|
23471
|
+
* ],
|
|
23472
|
+
* "installment_amount": null,
|
|
23473
|
+
* "max_down_payment_amount": null,
|
|
23474
|
+
* "net_income_amount": 1900000,
|
|
23475
|
+
* "employer": "CGE",
|
|
23476
|
+
* "employment_tenure": "15 años",
|
|
23317
23477
|
* "deal_terms_meta": {
|
|
23318
23478
|
* "payment_method": {
|
|
23319
23479
|
* "source": "ai",
|
|
@@ -23512,6 +23672,15 @@ interface paths {
|
|
|
23512
23672
|
* "trade_in_description": null,
|
|
23513
23673
|
* "offer_amount": null,
|
|
23514
23674
|
* "offer_note": null,
|
|
23675
|
+
* "financing_term_months": [
|
|
23676
|
+
* 24,
|
|
23677
|
+
* 36
|
|
23678
|
+
* ],
|
|
23679
|
+
* "installment_amount": null,
|
|
23680
|
+
* "max_down_payment_amount": null,
|
|
23681
|
+
* "net_income_amount": 1900000,
|
|
23682
|
+
* "employer": "CGE",
|
|
23683
|
+
* "employment_tenure": "15 años",
|
|
23515
23684
|
* "deal_terms_meta": {
|
|
23516
23685
|
* "payment_method": {
|
|
23517
23686
|
* "source": "ai",
|
|
@@ -23710,6 +23879,15 @@ interface paths {
|
|
|
23710
23879
|
* "trade_in_description": null,
|
|
23711
23880
|
* "offer_amount": null,
|
|
23712
23881
|
* "offer_note": null,
|
|
23882
|
+
* "financing_term_months": [
|
|
23883
|
+
* 24,
|
|
23884
|
+
* 36
|
|
23885
|
+
* ],
|
|
23886
|
+
* "installment_amount": null,
|
|
23887
|
+
* "max_down_payment_amount": null,
|
|
23888
|
+
* "net_income_amount": 1900000,
|
|
23889
|
+
* "employer": "CGE",
|
|
23890
|
+
* "employment_tenure": "15 años",
|
|
23713
23891
|
* "deal_terms_meta": {
|
|
23714
23892
|
* "payment_method": {
|
|
23715
23893
|
* "source": "ai",
|
|
@@ -23893,6 +24071,15 @@ interface paths {
|
|
|
23893
24071
|
* "trade_in_description": null,
|
|
23894
24072
|
* "offer_amount": null,
|
|
23895
24073
|
* "offer_note": null,
|
|
24074
|
+
* "financing_term_months": [
|
|
24075
|
+
* 24,
|
|
24076
|
+
* 36
|
|
24077
|
+
* ],
|
|
24078
|
+
* "installment_amount": null,
|
|
24079
|
+
* "max_down_payment_amount": null,
|
|
24080
|
+
* "net_income_amount": 1900000,
|
|
24081
|
+
* "employer": "CGE",
|
|
24082
|
+
* "employment_tenure": "15 años",
|
|
23896
24083
|
* "deal_terms_meta": {
|
|
23897
24084
|
* "payment_method": {
|
|
23898
24085
|
* "source": "ai",
|
package/dist/index.d.ts
CHANGED
|
@@ -19991,6 +19991,15 @@ interface paths {
|
|
|
19991
19991
|
* "trade_in_description": null,
|
|
19992
19992
|
* "offer_amount": null,
|
|
19993
19993
|
* "offer_note": null,
|
|
19994
|
+
* "financing_term_months": [
|
|
19995
|
+
* 24,
|
|
19996
|
+
* 36
|
|
19997
|
+
* ],
|
|
19998
|
+
* "installment_amount": null,
|
|
19999
|
+
* "max_down_payment_amount": null,
|
|
20000
|
+
* "net_income_amount": 1900000,
|
|
20001
|
+
* "employer": "CGE",
|
|
20002
|
+
* "employment_tenure": "15 años",
|
|
19994
20003
|
* "deal_terms_meta": {
|
|
19995
20004
|
* "payment_method": {
|
|
19996
20005
|
* "source": "ai",
|
|
@@ -20070,6 +20079,15 @@ interface paths {
|
|
|
20070
20079
|
* "trade_in_description": null,
|
|
20071
20080
|
* "offer_amount": null,
|
|
20072
20081
|
* "offer_note": null,
|
|
20082
|
+
* "financing_term_months": [
|
|
20083
|
+
* 24,
|
|
20084
|
+
* 36
|
|
20085
|
+
* ],
|
|
20086
|
+
* "installment_amount": null,
|
|
20087
|
+
* "max_down_payment_amount": null,
|
|
20088
|
+
* "net_income_amount": 1900000,
|
|
20089
|
+
* "employer": "CGE",
|
|
20090
|
+
* "employment_tenure": "15 años",
|
|
20073
20091
|
* "deal_terms_meta": {
|
|
20074
20092
|
* "payment_method": {
|
|
20075
20093
|
* "source": "ai",
|
|
@@ -20289,6 +20307,15 @@ interface paths {
|
|
|
20289
20307
|
* "trade_in_description": null,
|
|
20290
20308
|
* "offer_amount": null,
|
|
20291
20309
|
* "offer_note": null,
|
|
20310
|
+
* "financing_term_months": [
|
|
20311
|
+
* 24,
|
|
20312
|
+
* 36
|
|
20313
|
+
* ],
|
|
20314
|
+
* "installment_amount": null,
|
|
20315
|
+
* "max_down_payment_amount": null,
|
|
20316
|
+
* "net_income_amount": 1900000,
|
|
20317
|
+
* "employer": "CGE",
|
|
20318
|
+
* "employment_tenure": "15 años",
|
|
20292
20319
|
* "deal_terms_meta": {
|
|
20293
20320
|
* "payment_method": {
|
|
20294
20321
|
* "source": "ai",
|
|
@@ -20494,6 +20521,15 @@ interface paths {
|
|
|
20494
20521
|
* "trade_in_description": null,
|
|
20495
20522
|
* "offer_amount": null,
|
|
20496
20523
|
* "offer_note": null,
|
|
20524
|
+
* "financing_term_months": [
|
|
20525
|
+
* 24,
|
|
20526
|
+
* 36
|
|
20527
|
+
* ],
|
|
20528
|
+
* "installment_amount": null,
|
|
20529
|
+
* "max_down_payment_amount": null,
|
|
20530
|
+
* "net_income_amount": 1900000,
|
|
20531
|
+
* "employer": "CGE",
|
|
20532
|
+
* "employment_tenure": "15 años",
|
|
20497
20533
|
* "deal_terms_meta": {
|
|
20498
20534
|
* "payment_method": {
|
|
20499
20535
|
* "source": "ai",
|
|
@@ -21209,6 +21245,15 @@ interface paths {
|
|
|
21209
21245
|
* "trade_in_description": null,
|
|
21210
21246
|
* "offer_amount": null,
|
|
21211
21247
|
* "offer_note": null,
|
|
21248
|
+
* "financing_term_months": [
|
|
21249
|
+
* 24,
|
|
21250
|
+
* 36
|
|
21251
|
+
* ],
|
|
21252
|
+
* "installment_amount": null,
|
|
21253
|
+
* "max_down_payment_amount": null,
|
|
21254
|
+
* "net_income_amount": 1900000,
|
|
21255
|
+
* "employer": "CGE",
|
|
21256
|
+
* "employment_tenure": "15 años",
|
|
21212
21257
|
* "deal_terms_meta": {
|
|
21213
21258
|
* "payment_method": {
|
|
21214
21259
|
* "source": "ai",
|
|
@@ -21298,6 +21343,15 @@ interface paths {
|
|
|
21298
21343
|
* "trade_in_description": null,
|
|
21299
21344
|
* "offer_amount": null,
|
|
21300
21345
|
* "offer_note": null,
|
|
21346
|
+
* "financing_term_months": [
|
|
21347
|
+
* 24,
|
|
21348
|
+
* 36
|
|
21349
|
+
* ],
|
|
21350
|
+
* "installment_amount": null,
|
|
21351
|
+
* "max_down_payment_amount": null,
|
|
21352
|
+
* "net_income_amount": 1900000,
|
|
21353
|
+
* "employer": "CGE",
|
|
21354
|
+
* "employment_tenure": "15 años",
|
|
21301
21355
|
* "deal_terms_meta": {
|
|
21302
21356
|
* "payment_method": {
|
|
21303
21357
|
* "source": "ai",
|
|
@@ -21600,6 +21654,15 @@ interface paths {
|
|
|
21600
21654
|
* "trade_in_description": null,
|
|
21601
21655
|
* "offer_amount": null,
|
|
21602
21656
|
* "offer_note": null,
|
|
21657
|
+
* "financing_term_months": [
|
|
21658
|
+
* 24,
|
|
21659
|
+
* 36
|
|
21660
|
+
* ],
|
|
21661
|
+
* "installment_amount": null,
|
|
21662
|
+
* "max_down_payment_amount": null,
|
|
21663
|
+
* "net_income_amount": 1900000,
|
|
21664
|
+
* "employer": "CGE",
|
|
21665
|
+
* "employment_tenure": "15 años",
|
|
21603
21666
|
* "deal_terms_meta": {
|
|
21604
21667
|
* "payment_method": {
|
|
21605
21668
|
* "source": "ai",
|
|
@@ -21797,6 +21860,15 @@ interface paths {
|
|
|
21797
21860
|
* "trade_in_description": null,
|
|
21798
21861
|
* "offer_amount": null,
|
|
21799
21862
|
* "offer_note": null,
|
|
21863
|
+
* "financing_term_months": [
|
|
21864
|
+
* 24,
|
|
21865
|
+
* 36
|
|
21866
|
+
* ],
|
|
21867
|
+
* "installment_amount": null,
|
|
21868
|
+
* "max_down_payment_amount": null,
|
|
21869
|
+
* "net_income_amount": 1900000,
|
|
21870
|
+
* "employer": "CGE",
|
|
21871
|
+
* "employment_tenure": "15 años",
|
|
21800
21872
|
* "deal_terms_meta": {
|
|
21801
21873
|
* "payment_method": {
|
|
21802
21874
|
* "source": "ai",
|
|
@@ -22164,7 +22236,7 @@ interface paths {
|
|
|
22164
22236
|
get?: never;
|
|
22165
22237
|
/**
|
|
22166
22238
|
* Set a lead's deal terms (human)
|
|
22167
|
-
* @description Deal terms are
|
|
22239
|
+
* @description Deal terms are thirteen nullable, vertical-neutral facts: `payment_method` (`cash` | `financing` | `credit_card` | `debit_card` | `mixed`), `down_payment_amount`, `budget_max_amount`, `offer_amount` (in the lead's `value_currency`), `has_trade_in` (null = unknown, false = none), `trade_in_description`, `offer_note`, and the financing ones: `financing_term_months` (plazo(s) = number of cuotas, e.g. `[12, 18, 24]`), `installment_amount` (valor cuota), `max_down_payment_amount` (pie máximo), `net_income_amount` (renta líquida), `employer`, `employment_tenure`. Each carries provenance in `deal_terms_meta` (`ai` | `human`); an AI writer never overwrites a human-owned field — a disagreeing AI reading is kept in `deal_terms_suggestions` instead. Every field in the body becomes human-owned (`source: human`, the caller as actor) and its pending suggestion is removed; `null` clears a value but keeps it human-owned, so the next AI read proposes instead of re-filling it. Accepting a suggestion is this call with the suggested value. `applicant_full_name` / `applicant_rut` are the applicant's identity and are written to the lead's PRIMARY contact (`legal_name`, `tax_id` kind `rut`) — no provenance; 400 when the lead has no contact or the RUT check digit is wrong, 409 when another contact already holds that RUT. Changes land on the lead's timeline as `deal_terms_changed`. Returns the Oportunidad `lead` object. `{id}` accepts the lead uuid or its ID visible (`L-89`) — the label is a lookup shortcut on the path only, never a value to store.
|
|
22168
22240
|
*/
|
|
22169
22241
|
put: {
|
|
22170
22242
|
parameters: {
|
|
@@ -22179,8 +22251,14 @@ interface paths {
|
|
|
22179
22251
|
content: {
|
|
22180
22252
|
/**
|
|
22181
22253
|
* @example {
|
|
22182
|
-
* "payment_method": "
|
|
22183
|
-
* "
|
|
22254
|
+
* "payment_method": "financing",
|
|
22255
|
+
* "financing_term_months": [
|
|
22256
|
+
* 12,
|
|
22257
|
+
* 18,
|
|
22258
|
+
* 24
|
|
22259
|
+
* ],
|
|
22260
|
+
* "net_income_amount": 1900000,
|
|
22261
|
+
* "applicant_rut": "12.345.678-5"
|
|
22184
22262
|
* }
|
|
22185
22263
|
*/
|
|
22186
22264
|
"application/json": {
|
|
@@ -22192,6 +22270,22 @@ interface paths {
|
|
|
22192
22270
|
trade_in_description?: string | null;
|
|
22193
22271
|
offer_amount?: number | null;
|
|
22194
22272
|
offer_note?: string | null;
|
|
22273
|
+
/** @description Plazo(s) in months the customer asked to quote — the number of cuotas. Stored deduped and ascending, e.g. [12, 18, 24]. */
|
|
22274
|
+
financing_term_months?: number[] | null;
|
|
22275
|
+
/** @description Valor de la cuota as quoted by the dealership / financiera. */
|
|
22276
|
+
installment_amount?: number | null;
|
|
22277
|
+
/** @description The most pie the customer could put if needed. */
|
|
22278
|
+
max_down_payment_amount?: number | null;
|
|
22279
|
+
/** @description Renta líquida mensual. */
|
|
22280
|
+
net_income_amount?: number | null;
|
|
22281
|
+
/** @description Where the customer works («CGE»). */
|
|
22282
|
+
employer?: string | null;
|
|
22283
|
+
/** @description Antigüedad laboral («15 años»). */
|
|
22284
|
+
employment_tenure?: string | null;
|
|
22285
|
+
/** @description The applicant's full legal name → the lead's primary contact `legal_name`. null clears. */
|
|
22286
|
+
applicant_full_name?: string | null;
|
|
22287
|
+
/** @description The applicant's RUT in any spelling → the primary contact's `tax_id` (kind `rut`), stored canonical. 400 on a wrong check digit, 409 when another contact of the workspace already holds it. null clears. */
|
|
22288
|
+
applicant_rut?: string | null;
|
|
22195
22289
|
};
|
|
22196
22290
|
};
|
|
22197
22291
|
};
|
|
@@ -22229,7 +22323,17 @@ interface paths {
|
|
|
22229
22323
|
* "has_trade_in": true,
|
|
22230
22324
|
* "trade_in_description": "Chery Tiggo 2 Pro 2023, 32.000 km",
|
|
22231
22325
|
* "offer_amount": 10500000,
|
|
22232
|
-
* "offer_note": "Financiado · pendiente de aprobación"
|
|
22326
|
+
* "offer_note": "Financiado · pendiente de aprobación",
|
|
22327
|
+
* "financing_term_months": [
|
|
22328
|
+
* 12,
|
|
22329
|
+
* 18,
|
|
22330
|
+
* 24
|
|
22331
|
+
* ],
|
|
22332
|
+
* "installment_amount": null,
|
|
22333
|
+
* "max_down_payment_amount": 5000000,
|
|
22334
|
+
* "net_income_amount": 1900000,
|
|
22335
|
+
* "employer": "CGE",
|
|
22336
|
+
* "employment_tenure": "15 años"
|
|
22233
22337
|
* },
|
|
22234
22338
|
* "deal_terms_meta": {
|
|
22235
22339
|
* "payment_method": {
|
|
@@ -22345,7 +22449,7 @@ interface paths {
|
|
|
22345
22449
|
header?: never;
|
|
22346
22450
|
path: {
|
|
22347
22451
|
id: string;
|
|
22348
|
-
field: "payment_method" | "down_payment_amount" | "budget_max_amount" | "has_trade_in" | "trade_in_description" | "offer_amount" | "offer_note";
|
|
22452
|
+
field: "payment_method" | "down_payment_amount" | "budget_max_amount" | "has_trade_in" | "trade_in_description" | "offer_amount" | "offer_note" | "financing_term_months" | "installment_amount" | "max_down_payment_amount" | "net_income_amount" | "employer" | "employment_tenure";
|
|
22349
22453
|
};
|
|
22350
22454
|
cookie?: never;
|
|
22351
22455
|
};
|
|
@@ -22384,7 +22488,17 @@ interface paths {
|
|
|
22384
22488
|
* "has_trade_in": true,
|
|
22385
22489
|
* "trade_in_description": "Chery Tiggo 2 Pro 2023, 32.000 km",
|
|
22386
22490
|
* "offer_amount": 10500000,
|
|
22387
|
-
* "offer_note": "Financiado · pendiente de aprobación"
|
|
22491
|
+
* "offer_note": "Financiado · pendiente de aprobación",
|
|
22492
|
+
* "financing_term_months": [
|
|
22493
|
+
* 12,
|
|
22494
|
+
* 18,
|
|
22495
|
+
* 24
|
|
22496
|
+
* ],
|
|
22497
|
+
* "installment_amount": null,
|
|
22498
|
+
* "max_down_payment_amount": 5000000,
|
|
22499
|
+
* "net_income_amount": 1900000,
|
|
22500
|
+
* "employer": "CGE",
|
|
22501
|
+
* "employment_tenure": "15 años"
|
|
22388
22502
|
* },
|
|
22389
22503
|
* "deal_terms_meta": {
|
|
22390
22504
|
* "payment_method": {
|
|
@@ -22538,7 +22652,17 @@ interface paths {
|
|
|
22538
22652
|
* "has_trade_in": true,
|
|
22539
22653
|
* "trade_in_description": "Chery Tiggo 2 Pro 2023, 32.000 km",
|
|
22540
22654
|
* "offer_amount": 10500000,
|
|
22541
|
-
* "offer_note": "Financiado · pendiente de aprobación"
|
|
22655
|
+
* "offer_note": "Financiado · pendiente de aprobación",
|
|
22656
|
+
* "financing_term_months": [
|
|
22657
|
+
* 12,
|
|
22658
|
+
* 18,
|
|
22659
|
+
* 24
|
|
22660
|
+
* ],
|
|
22661
|
+
* "installment_amount": null,
|
|
22662
|
+
* "max_down_payment_amount": 5000000,
|
|
22663
|
+
* "net_income_amount": 1900000,
|
|
22664
|
+
* "employer": "CGE",
|
|
22665
|
+
* "employment_tenure": "15 años"
|
|
22542
22666
|
* },
|
|
22543
22667
|
* "deal_terms_meta": {
|
|
22544
22668
|
* "payment_method": {
|
|
@@ -22719,6 +22843,15 @@ interface paths {
|
|
|
22719
22843
|
* "trade_in_description": null,
|
|
22720
22844
|
* "offer_amount": null,
|
|
22721
22845
|
* "offer_note": null,
|
|
22846
|
+
* "financing_term_months": [
|
|
22847
|
+
* 24,
|
|
22848
|
+
* 36
|
|
22849
|
+
* ],
|
|
22850
|
+
* "installment_amount": null,
|
|
22851
|
+
* "max_down_payment_amount": null,
|
|
22852
|
+
* "net_income_amount": 1900000,
|
|
22853
|
+
* "employer": "CGE",
|
|
22854
|
+
* "employment_tenure": "15 años",
|
|
22722
22855
|
* "deal_terms_meta": {
|
|
22723
22856
|
* "payment_method": {
|
|
22724
22857
|
* "source": "ai",
|
|
@@ -22916,6 +23049,15 @@ interface paths {
|
|
|
22916
23049
|
* "trade_in_description": null,
|
|
22917
23050
|
* "offer_amount": null,
|
|
22918
23051
|
* "offer_note": null,
|
|
23052
|
+
* "financing_term_months": [
|
|
23053
|
+
* 24,
|
|
23054
|
+
* 36
|
|
23055
|
+
* ],
|
|
23056
|
+
* "installment_amount": null,
|
|
23057
|
+
* "max_down_payment_amount": null,
|
|
23058
|
+
* "net_income_amount": 1900000,
|
|
23059
|
+
* "employer": "CGE",
|
|
23060
|
+
* "employment_tenure": "15 años",
|
|
22919
23061
|
* "deal_terms_meta": {
|
|
22920
23062
|
* "payment_method": {
|
|
22921
23063
|
* "source": "ai",
|
|
@@ -23114,6 +23256,15 @@ interface paths {
|
|
|
23114
23256
|
* "trade_in_description": null,
|
|
23115
23257
|
* "offer_amount": null,
|
|
23116
23258
|
* "offer_note": null,
|
|
23259
|
+
* "financing_term_months": [
|
|
23260
|
+
* 24,
|
|
23261
|
+
* 36
|
|
23262
|
+
* ],
|
|
23263
|
+
* "installment_amount": null,
|
|
23264
|
+
* "max_down_payment_amount": null,
|
|
23265
|
+
* "net_income_amount": 1900000,
|
|
23266
|
+
* "employer": "CGE",
|
|
23267
|
+
* "employment_tenure": "15 años",
|
|
23117
23268
|
* "deal_terms_meta": {
|
|
23118
23269
|
* "payment_method": {
|
|
23119
23270
|
* "source": "ai",
|
|
@@ -23314,6 +23465,15 @@ interface paths {
|
|
|
23314
23465
|
* "trade_in_description": null,
|
|
23315
23466
|
* "offer_amount": null,
|
|
23316
23467
|
* "offer_note": null,
|
|
23468
|
+
* "financing_term_months": [
|
|
23469
|
+
* 24,
|
|
23470
|
+
* 36
|
|
23471
|
+
* ],
|
|
23472
|
+
* "installment_amount": null,
|
|
23473
|
+
* "max_down_payment_amount": null,
|
|
23474
|
+
* "net_income_amount": 1900000,
|
|
23475
|
+
* "employer": "CGE",
|
|
23476
|
+
* "employment_tenure": "15 años",
|
|
23317
23477
|
* "deal_terms_meta": {
|
|
23318
23478
|
* "payment_method": {
|
|
23319
23479
|
* "source": "ai",
|
|
@@ -23512,6 +23672,15 @@ interface paths {
|
|
|
23512
23672
|
* "trade_in_description": null,
|
|
23513
23673
|
* "offer_amount": null,
|
|
23514
23674
|
* "offer_note": null,
|
|
23675
|
+
* "financing_term_months": [
|
|
23676
|
+
* 24,
|
|
23677
|
+
* 36
|
|
23678
|
+
* ],
|
|
23679
|
+
* "installment_amount": null,
|
|
23680
|
+
* "max_down_payment_amount": null,
|
|
23681
|
+
* "net_income_amount": 1900000,
|
|
23682
|
+
* "employer": "CGE",
|
|
23683
|
+
* "employment_tenure": "15 años",
|
|
23515
23684
|
* "deal_terms_meta": {
|
|
23516
23685
|
* "payment_method": {
|
|
23517
23686
|
* "source": "ai",
|
|
@@ -23710,6 +23879,15 @@ interface paths {
|
|
|
23710
23879
|
* "trade_in_description": null,
|
|
23711
23880
|
* "offer_amount": null,
|
|
23712
23881
|
* "offer_note": null,
|
|
23882
|
+
* "financing_term_months": [
|
|
23883
|
+
* 24,
|
|
23884
|
+
* 36
|
|
23885
|
+
* ],
|
|
23886
|
+
* "installment_amount": null,
|
|
23887
|
+
* "max_down_payment_amount": null,
|
|
23888
|
+
* "net_income_amount": 1900000,
|
|
23889
|
+
* "employer": "CGE",
|
|
23890
|
+
* "employment_tenure": "15 años",
|
|
23713
23891
|
* "deal_terms_meta": {
|
|
23714
23892
|
* "payment_method": {
|
|
23715
23893
|
* "source": "ai",
|
|
@@ -23893,6 +24071,15 @@ interface paths {
|
|
|
23893
24071
|
* "trade_in_description": null,
|
|
23894
24072
|
* "offer_amount": null,
|
|
23895
24073
|
* "offer_note": null,
|
|
24074
|
+
* "financing_term_months": [
|
|
24075
|
+
* 24,
|
|
24076
|
+
* 36
|
|
24077
|
+
* ],
|
|
24078
|
+
* "installment_amount": null,
|
|
24079
|
+
* "max_down_payment_amount": null,
|
|
24080
|
+
* "net_income_amount": 1900000,
|
|
24081
|
+
* "employer": "CGE",
|
|
24082
|
+
* "employment_tenure": "15 años",
|
|
23896
24083
|
* "deal_terms_meta": {
|
|
23897
24084
|
* "payment_method": {
|
|
23898
24085
|
* "source": "ai",
|
package/package.json
CHANGED