@vitrina/api 17.88.0 → 17.90.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 +32 -7
- package/dist/index.d.ts +32 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -18772,6 +18772,8 @@ interface paths {
|
|
|
18772
18772
|
*
|
|
18773
18773
|
* **Costo de compra in the same call (`purchase_cost_clp`).** Optional (vitrina-app#7719). The amount the dealership paid, recorded as the car’s Costo de compra exactly as `POST /vehicle-acquisitions` with `kind: "compra"` would; `invoice_includes_iva: true` says it includes IVA («Compra con factura»). Needs `dealership_economics:write`: without it the call is a **403 and nothing is saved**. The response then carries `acquisition` (the recorded row, the same shape `POST /vehicle-acquisitions` returns, shown only to callers holding `dealership_economics:read`); `acquisition: null` means the car was saved but its cost was not, and it can be typed on the car’s page. Both fields are create-only.
|
|
18774
18774
|
*
|
|
18775
|
+
* **Creating a car by its plate alone.** Every field is optional: a form that creates the car from inside another document (the nota de compra, the «Auto en parte de pago» of a sale) sends `registration_number` plus whatever marca, modelo and año the dealer has (`GET /pricing/decode-plate` fills them when it knows the plate; its 404 means it does not). Without `publish_to` the car is on no portal. A plate another active car of the workspace already has is a **409 `CONFLICT`** whose `error.details` names that car: `vehicle_id` (the one to offer instead), `vehicle_ids` (every holder, newest first) and `vehicle_status` (its Estado comercial; `vendido` is a sold car still holding the plate, not one a document can take). A hidden car (`active: false`, not sold, not deleted) holding the plate answers the same 409 with `reason: "plate_inactive_holder"` and the same three fields: offer that car (it is made public again with `PUT /vehicles/{id} { active: true }`) instead of creating a second one. A sold car never blocks: a returning plate is a new car. Nothing is created on a 409.
|
|
18776
|
+
*
|
|
18775
18777
|
* **Sanity range.** A price fans out to every connected portal, so a typo is stopped here. `price_amount` must be between 100.000 and 2.000.000.000 CLP (a UF price is bounded at the day's UF; other currencies are not bounded) and `odometer_value` between 0 and 2.000.000; `null` clears either and is always accepted. Outside the range: **422 `VEHICLE_VALUE_OUT_OF_RANGE`**, with a Spanish `message`, `field_errors.<field>` and `details.violations[]` (`field`, `reason` = `price_out_of_range` | `km_out_of_range`, `value`, `min`, `max`, `currency`). A price change beyond 10x up or down from the current price answers **422 `PRICE_CHANGE_CONFIRMATION_REQUIRED`** (`details.reason` = `large_price_change`, `current_price`, `requested_price`, `currency`, `factor`, `confirm_flag`) unless the body carries `confirm_large_price_change: true`; ask the user, then resend the same body with it. Nothing is written on either 422.
|
|
18776
18778
|
*
|
|
18777
18779
|
* **Normalization and `catalog_match`.** On create and update, `make` and `model` that equal an entry of GET /vehicles/catalog/brands and /catalog/models up to case, accents, spaces and hyphens are stored in the catalog's spelling ("toyota" → "Toyota", "mercedes benz" → "Mercedes-Benz", "rav 4" → "RAV4"); `fuel_type`, `gear_type` and `body_style` are stored as vocabulary codes ("Bencina" → `gasolina`, "Automática" → `automatica`, "Station Wagon" → `wagon`; codes: fuel `gasolina|diesel|hibrido|electrico|gnc|glp|otro`, gear `mecanica|automatica|otro`, body `sedan|hatchback|suv|camioneta|coupe|wagon|furgon|convertible|minivan|otro`; for `vehicle_type: moto` body_style is the «Tipo de moto» instead: `moto_calle|moto_deportiva|moto_touring|moto_trail|moto_enduro|moto_scooter|moto_custom|moto_cuatrimoto|moto_otro`, and "Trail" / "BODY.MOTORCYCLE.TRAIL" snap to `moto_trail`). Nothing is invented: a value with no match is stored exactly as sent. The response (and GET /vehicles/{id}) carries `catalog_match`: `make` / `model` are `matched` | `unmatched` | `missing` (`not_applicable` for a non-`auto` vehicle_type); `version` adds `approximate` (word overlap with a catalog version, same displacement) and `catalog_version` names the catalog version it matched or most resembles; `fuel_type` / `gear_type` / `body_style` are `matched` | `unmatched` | `missing`; `warnings[]` lists `{ field, code, message }` for everything not matched, with a Spanish `message` ready to show (codes: `make_missing`, `make_not_in_catalog`, `model_missing`, `model_not_in_catalog`, `version_approximate`, `version_not_in_catalog`, `fuel_type_not_recognized`, `gear_type_not_recognized`, `body_style_not_recognized`). A make or model that is not matched still saves, but Chileautos publishes it without a technical sheet (ficha). `catalog_match` is null only when the catalog could not be loaded. Example of an unmatched push: {"make":"matched","model":"unmatched","version":"unmatched","catalog_version":null,"fuel_type":"unmatched","gear_type":"matched","body_style":"missing","warnings":[{"field":"model","code":"model_not_in_catalog","message":"Modelo 'Rav-4 xx' no está en el catálogo de Toyota (GET /vehicles/catalog/models); Chileautos lo publicará sin ficha."},{"field":"fuel_type","code":"fuel_type_not_recognized","message":"Combustible 'Hidrógeno' no se reconoce; valores aceptados: gasolina, diesel, hibrido, electrico, gnc, glp, otro."}]}
|
|
@@ -156284,10 +156286,10 @@ interface paths {
|
|
|
156284
156286
|
direccion?: string | null;
|
|
156285
156287
|
ocupacion?: string | null;
|
|
156286
156288
|
/**
|
|
156287
|
-
* @description What `rut` holds. `
|
|
156289
|
+
* @description What `rut` holds (the column name is historical). `rut` (Chile), `curp` (Mexico), `cedula_co` (Colombia), `dni_ar` (Argentina), `dni_pe` (Peru) or `passport`. Default: the workspace country's own document when a document is given (`rut` in Chile; `GET /tenant/settings` → `locale_resolved.patient_document`). A country's own document must have its shape (400 `invalid_document`) and is compared by its digits (DNI, cédula) or letters and digits (CURP); a passport as typed.
|
|
156288
156290
|
* @enum {string|null}
|
|
156289
156291
|
*/
|
|
156290
|
-
document_kind?: "rut" | "passport" | null;
|
|
156292
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
156291
156293
|
emergency_contact_name?: string | null;
|
|
156292
156294
|
emergency_contact_phone?: string | null;
|
|
156293
156295
|
phone_secondary?: string | null;
|
|
@@ -312872,10 +312874,10 @@ interface paths {
|
|
|
312872
312874
|
direccion?: string | null;
|
|
312873
312875
|
ocupacion?: string | null;
|
|
312874
312876
|
/**
|
|
312875
|
-
* @description What `rut` holds. `
|
|
312877
|
+
* @description What `rut` holds (the column name is historical). `rut` (Chile), `curp` (Mexico), `cedula_co` (Colombia), `dni_ar` (Argentina), `dni_pe` (Peru) or `passport`. Default: the workspace country's own document when a document is given (`rut` in Chile; `GET /tenant/settings` → `locale_resolved.patient_document`). A country's own document must have its shape (400 `invalid_document`) and is compared by its digits (DNI, cédula) or letters and digits (CURP); a passport as typed.
|
|
312876
312878
|
* @enum {string|null}
|
|
312877
312879
|
*/
|
|
312878
|
-
document_kind?: "rut" | "passport" | null;
|
|
312880
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
312879
312881
|
emergency_contact_name?: string | null;
|
|
312880
312882
|
emergency_contact_phone?: string | null;
|
|
312881
312883
|
phone_secondary?: string | null;
|
|
@@ -312901,7 +312903,13 @@ interface paths {
|
|
|
312901
312903
|
name?: string | null;
|
|
312902
312904
|
phone?: string | null;
|
|
312903
312905
|
email?: string | null;
|
|
312906
|
+
/** @description The apoderado’s document (the field name is historical): the workspace country’s own document, or a passport with `document_kind: passport`. */
|
|
312904
312907
|
rut?: string | null;
|
|
312908
|
+
/**
|
|
312909
|
+
* @description What `rut` holds: the workspace country’s own document (the default) or `passport`.
|
|
312910
|
+
* @enum {string|null}
|
|
312911
|
+
*/
|
|
312912
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
312905
312913
|
phone_whatsapp?: boolean | null;
|
|
312906
312914
|
relation?: string | null;
|
|
312907
312915
|
} | null;
|
|
@@ -313031,6 +313039,7 @@ interface paths {
|
|
|
313031
313039
|
parameters: {
|
|
313032
313040
|
query: {
|
|
313033
313041
|
document: string;
|
|
313042
|
+
kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport";
|
|
313034
313043
|
passport?: "true" | "false";
|
|
313035
313044
|
};
|
|
313036
313045
|
header?: never;
|
|
@@ -313604,10 +313613,10 @@ interface paths {
|
|
|
313604
313613
|
direccion?: string | null;
|
|
313605
313614
|
ocupacion?: string | null;
|
|
313606
313615
|
/**
|
|
313607
|
-
* @description What `rut` holds. `
|
|
313616
|
+
* @description What `rut` holds (the column name is historical). `rut` (Chile), `curp` (Mexico), `cedula_co` (Colombia), `dni_ar` (Argentina), `dni_pe` (Peru) or `passport`. Default: the workspace country's own document when a document is given (`rut` in Chile; `GET /tenant/settings` → `locale_resolved.patient_document`). A country's own document must have its shape (400 `invalid_document`) and is compared by its digits (DNI, cédula) or letters and digits (CURP); a passport as typed.
|
|
313608
313617
|
* @enum {string|null}
|
|
313609
313618
|
*/
|
|
313610
|
-
document_kind?: "rut" | "passport" | null;
|
|
313619
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
313611
313620
|
emergency_contact_name?: string | null;
|
|
313612
313621
|
emergency_contact_phone?: string | null;
|
|
313613
313622
|
phone_secondary?: string | null;
|
|
@@ -313633,7 +313642,13 @@ interface paths {
|
|
|
313633
313642
|
name?: string | null;
|
|
313634
313643
|
phone?: string | null;
|
|
313635
313644
|
email?: string | null;
|
|
313645
|
+
/** @description The apoderado’s document (the field name is historical): the workspace country’s own document, or a passport with `document_kind: passport`. */
|
|
313636
313646
|
rut?: string | null;
|
|
313647
|
+
/**
|
|
313648
|
+
* @description What `rut` holds: the workspace country’s own document (the default) or `passport`.
|
|
313649
|
+
* @enum {string|null}
|
|
313650
|
+
*/
|
|
313651
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
313637
313652
|
phone_whatsapp?: boolean | null;
|
|
313638
313653
|
relation?: string | null;
|
|
313639
313654
|
} | null;
|
|
@@ -322696,6 +322711,16 @@ interface components {
|
|
|
322696
322711
|
timezone_source: "stored" | "country_default" | "legacy_guess";
|
|
322697
322712
|
/** @enum {string} */
|
|
322698
322713
|
currency_source: "stored" | "country_default" | "legacy_guess";
|
|
322714
|
+
/** @description The workspace country's main patient document (vitrina-app#7475); null where the country has none (patients give a passport). Every patient form reads this one spec. */
|
|
322715
|
+
patient_document?: {
|
|
322716
|
+
/** @enum {string} */
|
|
322717
|
+
kind: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe";
|
|
322718
|
+
/** @description What a person calls it: «RUT», «DNI»… */
|
|
322719
|
+
label: string;
|
|
322720
|
+
placeholder: string;
|
|
322721
|
+
/** @description The accepted shape (an HTML/Meta `pattern`). */
|
|
322722
|
+
pattern: string | null;
|
|
322723
|
+
} | null;
|
|
322699
322724
|
};
|
|
322700
322725
|
/**
|
|
322701
322726
|
* @description Write-only secret: the Slack incoming-webhook URL is never returned. `••••` when one is configured; absent otherwise. Read `slack_webhook_configured` instead.
|
|
@@ -341091,7 +341116,7 @@ interface components {
|
|
|
341091
341116
|
min_chars?: number;
|
|
341092
341117
|
max_chars?: number;
|
|
341093
341118
|
/** @enum {string} */
|
|
341094
|
-
preset?: "email" | "phone" | "rut" | "cpf" | "dni_ar" | "dni_pe" | "patente";
|
|
341119
|
+
preset?: "email" | "phone" | "rut" | "cpf" | "dni_ar" | "dni_pe" | "curp" | "cedula_co" | "patente";
|
|
341095
341120
|
visible_when?: components["schemas"]["WhatsappFlowCondition"];
|
|
341096
341121
|
required_when?: components["schemas"]["WhatsappFlowCondition"];
|
|
341097
341122
|
sensitive?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -18772,6 +18772,8 @@ interface paths {
|
|
|
18772
18772
|
*
|
|
18773
18773
|
* **Costo de compra in the same call (`purchase_cost_clp`).** Optional (vitrina-app#7719). The amount the dealership paid, recorded as the car’s Costo de compra exactly as `POST /vehicle-acquisitions` with `kind: "compra"` would; `invoice_includes_iva: true` says it includes IVA («Compra con factura»). Needs `dealership_economics:write`: without it the call is a **403 and nothing is saved**. The response then carries `acquisition` (the recorded row, the same shape `POST /vehicle-acquisitions` returns, shown only to callers holding `dealership_economics:read`); `acquisition: null` means the car was saved but its cost was not, and it can be typed on the car’s page. Both fields are create-only.
|
|
18774
18774
|
*
|
|
18775
|
+
* **Creating a car by its plate alone.** Every field is optional: a form that creates the car from inside another document (the nota de compra, the «Auto en parte de pago» of a sale) sends `registration_number` plus whatever marca, modelo and año the dealer has (`GET /pricing/decode-plate` fills them when it knows the plate; its 404 means it does not). Without `publish_to` the car is on no portal. A plate another active car of the workspace already has is a **409 `CONFLICT`** whose `error.details` names that car: `vehicle_id` (the one to offer instead), `vehicle_ids` (every holder, newest first) and `vehicle_status` (its Estado comercial; `vendido` is a sold car still holding the plate, not one a document can take). A hidden car (`active: false`, not sold, not deleted) holding the plate answers the same 409 with `reason: "plate_inactive_holder"` and the same three fields: offer that car (it is made public again with `PUT /vehicles/{id} { active: true }`) instead of creating a second one. A sold car never blocks: a returning plate is a new car. Nothing is created on a 409.
|
|
18776
|
+
*
|
|
18775
18777
|
* **Sanity range.** A price fans out to every connected portal, so a typo is stopped here. `price_amount` must be between 100.000 and 2.000.000.000 CLP (a UF price is bounded at the day's UF; other currencies are not bounded) and `odometer_value` between 0 and 2.000.000; `null` clears either and is always accepted. Outside the range: **422 `VEHICLE_VALUE_OUT_OF_RANGE`**, with a Spanish `message`, `field_errors.<field>` and `details.violations[]` (`field`, `reason` = `price_out_of_range` | `km_out_of_range`, `value`, `min`, `max`, `currency`). A price change beyond 10x up or down from the current price answers **422 `PRICE_CHANGE_CONFIRMATION_REQUIRED`** (`details.reason` = `large_price_change`, `current_price`, `requested_price`, `currency`, `factor`, `confirm_flag`) unless the body carries `confirm_large_price_change: true`; ask the user, then resend the same body with it. Nothing is written on either 422.
|
|
18776
18778
|
*
|
|
18777
18779
|
* **Normalization and `catalog_match`.** On create and update, `make` and `model` that equal an entry of GET /vehicles/catalog/brands and /catalog/models up to case, accents, spaces and hyphens are stored in the catalog's spelling ("toyota" → "Toyota", "mercedes benz" → "Mercedes-Benz", "rav 4" → "RAV4"); `fuel_type`, `gear_type` and `body_style` are stored as vocabulary codes ("Bencina" → `gasolina`, "Automática" → `automatica`, "Station Wagon" → `wagon`; codes: fuel `gasolina|diesel|hibrido|electrico|gnc|glp|otro`, gear `mecanica|automatica|otro`, body `sedan|hatchback|suv|camioneta|coupe|wagon|furgon|convertible|minivan|otro`; for `vehicle_type: moto` body_style is the «Tipo de moto» instead: `moto_calle|moto_deportiva|moto_touring|moto_trail|moto_enduro|moto_scooter|moto_custom|moto_cuatrimoto|moto_otro`, and "Trail" / "BODY.MOTORCYCLE.TRAIL" snap to `moto_trail`). Nothing is invented: a value with no match is stored exactly as sent. The response (and GET /vehicles/{id}) carries `catalog_match`: `make` / `model` are `matched` | `unmatched` | `missing` (`not_applicable` for a non-`auto` vehicle_type); `version` adds `approximate` (word overlap with a catalog version, same displacement) and `catalog_version` names the catalog version it matched or most resembles; `fuel_type` / `gear_type` / `body_style` are `matched` | `unmatched` | `missing`; `warnings[]` lists `{ field, code, message }` for everything not matched, with a Spanish `message` ready to show (codes: `make_missing`, `make_not_in_catalog`, `model_missing`, `model_not_in_catalog`, `version_approximate`, `version_not_in_catalog`, `fuel_type_not_recognized`, `gear_type_not_recognized`, `body_style_not_recognized`). A make or model that is not matched still saves, but Chileautos publishes it without a technical sheet (ficha). `catalog_match` is null only when the catalog could not be loaded. Example of an unmatched push: {"make":"matched","model":"unmatched","version":"unmatched","catalog_version":null,"fuel_type":"unmatched","gear_type":"matched","body_style":"missing","warnings":[{"field":"model","code":"model_not_in_catalog","message":"Modelo 'Rav-4 xx' no está en el catálogo de Toyota (GET /vehicles/catalog/models); Chileautos lo publicará sin ficha."},{"field":"fuel_type","code":"fuel_type_not_recognized","message":"Combustible 'Hidrógeno' no se reconoce; valores aceptados: gasolina, diesel, hibrido, electrico, gnc, glp, otro."}]}
|
|
@@ -156284,10 +156286,10 @@ interface paths {
|
|
|
156284
156286
|
direccion?: string | null;
|
|
156285
156287
|
ocupacion?: string | null;
|
|
156286
156288
|
/**
|
|
156287
|
-
* @description What `rut` holds. `
|
|
156289
|
+
* @description What `rut` holds (the column name is historical). `rut` (Chile), `curp` (Mexico), `cedula_co` (Colombia), `dni_ar` (Argentina), `dni_pe` (Peru) or `passport`. Default: the workspace country's own document when a document is given (`rut` in Chile; `GET /tenant/settings` → `locale_resolved.patient_document`). A country's own document must have its shape (400 `invalid_document`) and is compared by its digits (DNI, cédula) or letters and digits (CURP); a passport as typed.
|
|
156288
156290
|
* @enum {string|null}
|
|
156289
156291
|
*/
|
|
156290
|
-
document_kind?: "rut" | "passport" | null;
|
|
156292
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
156291
156293
|
emergency_contact_name?: string | null;
|
|
156292
156294
|
emergency_contact_phone?: string | null;
|
|
156293
156295
|
phone_secondary?: string | null;
|
|
@@ -312872,10 +312874,10 @@ interface paths {
|
|
|
312872
312874
|
direccion?: string | null;
|
|
312873
312875
|
ocupacion?: string | null;
|
|
312874
312876
|
/**
|
|
312875
|
-
* @description What `rut` holds. `
|
|
312877
|
+
* @description What `rut` holds (the column name is historical). `rut` (Chile), `curp` (Mexico), `cedula_co` (Colombia), `dni_ar` (Argentina), `dni_pe` (Peru) or `passport`. Default: the workspace country's own document when a document is given (`rut` in Chile; `GET /tenant/settings` → `locale_resolved.patient_document`). A country's own document must have its shape (400 `invalid_document`) and is compared by its digits (DNI, cédula) or letters and digits (CURP); a passport as typed.
|
|
312876
312878
|
* @enum {string|null}
|
|
312877
312879
|
*/
|
|
312878
|
-
document_kind?: "rut" | "passport" | null;
|
|
312880
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
312879
312881
|
emergency_contact_name?: string | null;
|
|
312880
312882
|
emergency_contact_phone?: string | null;
|
|
312881
312883
|
phone_secondary?: string | null;
|
|
@@ -312901,7 +312903,13 @@ interface paths {
|
|
|
312901
312903
|
name?: string | null;
|
|
312902
312904
|
phone?: string | null;
|
|
312903
312905
|
email?: string | null;
|
|
312906
|
+
/** @description The apoderado’s document (the field name is historical): the workspace country’s own document, or a passport with `document_kind: passport`. */
|
|
312904
312907
|
rut?: string | null;
|
|
312908
|
+
/**
|
|
312909
|
+
* @description What `rut` holds: the workspace country’s own document (the default) or `passport`.
|
|
312910
|
+
* @enum {string|null}
|
|
312911
|
+
*/
|
|
312912
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
312905
312913
|
phone_whatsapp?: boolean | null;
|
|
312906
312914
|
relation?: string | null;
|
|
312907
312915
|
} | null;
|
|
@@ -313031,6 +313039,7 @@ interface paths {
|
|
|
313031
313039
|
parameters: {
|
|
313032
313040
|
query: {
|
|
313033
313041
|
document: string;
|
|
313042
|
+
kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport";
|
|
313034
313043
|
passport?: "true" | "false";
|
|
313035
313044
|
};
|
|
313036
313045
|
header?: never;
|
|
@@ -313604,10 +313613,10 @@ interface paths {
|
|
|
313604
313613
|
direccion?: string | null;
|
|
313605
313614
|
ocupacion?: string | null;
|
|
313606
313615
|
/**
|
|
313607
|
-
* @description What `rut` holds. `
|
|
313616
|
+
* @description What `rut` holds (the column name is historical). `rut` (Chile), `curp` (Mexico), `cedula_co` (Colombia), `dni_ar` (Argentina), `dni_pe` (Peru) or `passport`. Default: the workspace country's own document when a document is given (`rut` in Chile; `GET /tenant/settings` → `locale_resolved.patient_document`). A country's own document must have its shape (400 `invalid_document`) and is compared by its digits (DNI, cédula) or letters and digits (CURP); a passport as typed.
|
|
313608
313617
|
* @enum {string|null}
|
|
313609
313618
|
*/
|
|
313610
|
-
document_kind?: "rut" | "passport" | null;
|
|
313619
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
313611
313620
|
emergency_contact_name?: string | null;
|
|
313612
313621
|
emergency_contact_phone?: string | null;
|
|
313613
313622
|
phone_secondary?: string | null;
|
|
@@ -313633,7 +313642,13 @@ interface paths {
|
|
|
313633
313642
|
name?: string | null;
|
|
313634
313643
|
phone?: string | null;
|
|
313635
313644
|
email?: string | null;
|
|
313645
|
+
/** @description The apoderado’s document (the field name is historical): the workspace country’s own document, or a passport with `document_kind: passport`. */
|
|
313636
313646
|
rut?: string | null;
|
|
313647
|
+
/**
|
|
313648
|
+
* @description What `rut` holds: the workspace country’s own document (the default) or `passport`.
|
|
313649
|
+
* @enum {string|null}
|
|
313650
|
+
*/
|
|
313651
|
+
document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
|
|
313637
313652
|
phone_whatsapp?: boolean | null;
|
|
313638
313653
|
relation?: string | null;
|
|
313639
313654
|
} | null;
|
|
@@ -322696,6 +322711,16 @@ interface components {
|
|
|
322696
322711
|
timezone_source: "stored" | "country_default" | "legacy_guess";
|
|
322697
322712
|
/** @enum {string} */
|
|
322698
322713
|
currency_source: "stored" | "country_default" | "legacy_guess";
|
|
322714
|
+
/** @description The workspace country's main patient document (vitrina-app#7475); null where the country has none (patients give a passport). Every patient form reads this one spec. */
|
|
322715
|
+
patient_document?: {
|
|
322716
|
+
/** @enum {string} */
|
|
322717
|
+
kind: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe";
|
|
322718
|
+
/** @description What a person calls it: «RUT», «DNI»… */
|
|
322719
|
+
label: string;
|
|
322720
|
+
placeholder: string;
|
|
322721
|
+
/** @description The accepted shape (an HTML/Meta `pattern`). */
|
|
322722
|
+
pattern: string | null;
|
|
322723
|
+
} | null;
|
|
322699
322724
|
};
|
|
322700
322725
|
/**
|
|
322701
322726
|
* @description Write-only secret: the Slack incoming-webhook URL is never returned. `••••` when one is configured; absent otherwise. Read `slack_webhook_configured` instead.
|
|
@@ -341091,7 +341116,7 @@ interface components {
|
|
|
341091
341116
|
min_chars?: number;
|
|
341092
341117
|
max_chars?: number;
|
|
341093
341118
|
/** @enum {string} */
|
|
341094
|
-
preset?: "email" | "phone" | "rut" | "cpf" | "dni_ar" | "dni_pe" | "patente";
|
|
341119
|
+
preset?: "email" | "phone" | "rut" | "cpf" | "dni_ar" | "dni_pe" | "curp" | "cedula_co" | "patente";
|
|
341095
341120
|
visible_when?: components["schemas"]["WhatsappFlowCondition"];
|
|
341096
341121
|
required_when?: components["schemas"]["WhatsappFlowCondition"];
|
|
341097
341122
|
sensitive?: boolean;
|
package/package.json
CHANGED