@vitrina/api 17.88.0 → 17.89.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 CHANGED
@@ -156284,10 +156284,10 @@ interface paths {
156284
156284
  direccion?: string | null;
156285
156285
  ocupacion?: string | null;
156286
156286
  /**
156287
- * @description What `rut` holds. `passport`: a foreign document, compared as typed by the one-ficha rule. Default `rut` when a document is given.
156287
+ * @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
156288
  * @enum {string|null}
156289
156289
  */
156290
- document_kind?: "rut" | "passport" | null;
156290
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
156291
156291
  emergency_contact_name?: string | null;
156292
156292
  emergency_contact_phone?: string | null;
156293
156293
  phone_secondary?: string | null;
@@ -312872,10 +312872,10 @@ interface paths {
312872
312872
  direccion?: string | null;
312873
312873
  ocupacion?: string | null;
312874
312874
  /**
312875
- * @description What `rut` holds. `passport`: a foreign document, compared as typed by the one-ficha rule. Default `rut` when a document is given.
312875
+ * @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
312876
  * @enum {string|null}
312877
312877
  */
312878
- document_kind?: "rut" | "passport" | null;
312878
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
312879
312879
  emergency_contact_name?: string | null;
312880
312880
  emergency_contact_phone?: string | null;
312881
312881
  phone_secondary?: string | null;
@@ -312901,7 +312901,13 @@ interface paths {
312901
312901
  name?: string | null;
312902
312902
  phone?: string | null;
312903
312903
  email?: string | null;
312904
+ /** @description The apoderado’s document (the field name is historical): the workspace country’s own document, or a passport with `document_kind: passport`. */
312904
312905
  rut?: string | null;
312906
+ /**
312907
+ * @description What `rut` holds: the workspace country’s own document (the default) or `passport`.
312908
+ * @enum {string|null}
312909
+ */
312910
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
312905
312911
  phone_whatsapp?: boolean | null;
312906
312912
  relation?: string | null;
312907
312913
  } | null;
@@ -313031,6 +313037,7 @@ interface paths {
313031
313037
  parameters: {
313032
313038
  query: {
313033
313039
  document: string;
313040
+ kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport";
313034
313041
  passport?: "true" | "false";
313035
313042
  };
313036
313043
  header?: never;
@@ -313604,10 +313611,10 @@ interface paths {
313604
313611
  direccion?: string | null;
313605
313612
  ocupacion?: string | null;
313606
313613
  /**
313607
- * @description What `rut` holds. `passport`: a foreign document, compared as typed by the one-ficha rule. Default `rut` when a document is given.
313614
+ * @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
313615
  * @enum {string|null}
313609
313616
  */
313610
- document_kind?: "rut" | "passport" | null;
313617
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
313611
313618
  emergency_contact_name?: string | null;
313612
313619
  emergency_contact_phone?: string | null;
313613
313620
  phone_secondary?: string | null;
@@ -313633,7 +313640,13 @@ interface paths {
313633
313640
  name?: string | null;
313634
313641
  phone?: string | null;
313635
313642
  email?: string | null;
313643
+ /** @description The apoderado’s document (the field name is historical): the workspace country’s own document, or a passport with `document_kind: passport`. */
313636
313644
  rut?: string | null;
313645
+ /**
313646
+ * @description What `rut` holds: the workspace country’s own document (the default) or `passport`.
313647
+ * @enum {string|null}
313648
+ */
313649
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
313637
313650
  phone_whatsapp?: boolean | null;
313638
313651
  relation?: string | null;
313639
313652
  } | null;
@@ -322696,6 +322709,16 @@ interface components {
322696
322709
  timezone_source: "stored" | "country_default" | "legacy_guess";
322697
322710
  /** @enum {string} */
322698
322711
  currency_source: "stored" | "country_default" | "legacy_guess";
322712
+ /** @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. */
322713
+ patient_document?: {
322714
+ /** @enum {string} */
322715
+ kind: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe";
322716
+ /** @description What a person calls it: «RUT», «DNI»… */
322717
+ label: string;
322718
+ placeholder: string;
322719
+ /** @description The accepted shape (an HTML/Meta `pattern`). */
322720
+ pattern: string | null;
322721
+ } | null;
322699
322722
  };
322700
322723
  /**
322701
322724
  * @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 +341114,7 @@ interface components {
341091
341114
  min_chars?: number;
341092
341115
  max_chars?: number;
341093
341116
  /** @enum {string} */
341094
- preset?: "email" | "phone" | "rut" | "cpf" | "dni_ar" | "dni_pe" | "patente";
341117
+ preset?: "email" | "phone" | "rut" | "cpf" | "dni_ar" | "dni_pe" | "curp" | "cedula_co" | "patente";
341095
341118
  visible_when?: components["schemas"]["WhatsappFlowCondition"];
341096
341119
  required_when?: components["schemas"]["WhatsappFlowCondition"];
341097
341120
  sensitive?: boolean;
package/dist/index.d.ts CHANGED
@@ -156284,10 +156284,10 @@ interface paths {
156284
156284
  direccion?: string | null;
156285
156285
  ocupacion?: string | null;
156286
156286
  /**
156287
- * @description What `rut` holds. `passport`: a foreign document, compared as typed by the one-ficha rule. Default `rut` when a document is given.
156287
+ * @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
156288
  * @enum {string|null}
156289
156289
  */
156290
- document_kind?: "rut" | "passport" | null;
156290
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
156291
156291
  emergency_contact_name?: string | null;
156292
156292
  emergency_contact_phone?: string | null;
156293
156293
  phone_secondary?: string | null;
@@ -312872,10 +312872,10 @@ interface paths {
312872
312872
  direccion?: string | null;
312873
312873
  ocupacion?: string | null;
312874
312874
  /**
312875
- * @description What `rut` holds. `passport`: a foreign document, compared as typed by the one-ficha rule. Default `rut` when a document is given.
312875
+ * @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
312876
  * @enum {string|null}
312877
312877
  */
312878
- document_kind?: "rut" | "passport" | null;
312878
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
312879
312879
  emergency_contact_name?: string | null;
312880
312880
  emergency_contact_phone?: string | null;
312881
312881
  phone_secondary?: string | null;
@@ -312901,7 +312901,13 @@ interface paths {
312901
312901
  name?: string | null;
312902
312902
  phone?: string | null;
312903
312903
  email?: string | null;
312904
+ /** @description The apoderado’s document (the field name is historical): the workspace country’s own document, or a passport with `document_kind: passport`. */
312904
312905
  rut?: string | null;
312906
+ /**
312907
+ * @description What `rut` holds: the workspace country’s own document (the default) or `passport`.
312908
+ * @enum {string|null}
312909
+ */
312910
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
312905
312911
  phone_whatsapp?: boolean | null;
312906
312912
  relation?: string | null;
312907
312913
  } | null;
@@ -313031,6 +313037,7 @@ interface paths {
313031
313037
  parameters: {
313032
313038
  query: {
313033
313039
  document: string;
313040
+ kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport";
313034
313041
  passport?: "true" | "false";
313035
313042
  };
313036
313043
  header?: never;
@@ -313604,10 +313611,10 @@ interface paths {
313604
313611
  direccion?: string | null;
313605
313612
  ocupacion?: string | null;
313606
313613
  /**
313607
- * @description What `rut` holds. `passport`: a foreign document, compared as typed by the one-ficha rule. Default `rut` when a document is given.
313614
+ * @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
313615
  * @enum {string|null}
313609
313616
  */
313610
- document_kind?: "rut" | "passport" | null;
313617
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
313611
313618
  emergency_contact_name?: string | null;
313612
313619
  emergency_contact_phone?: string | null;
313613
313620
  phone_secondary?: string | null;
@@ -313633,7 +313640,13 @@ interface paths {
313633
313640
  name?: string | null;
313634
313641
  phone?: string | null;
313635
313642
  email?: string | null;
313643
+ /** @description The apoderado’s document (the field name is historical): the workspace country’s own document, or a passport with `document_kind: passport`. */
313636
313644
  rut?: string | null;
313645
+ /**
313646
+ * @description What `rut` holds: the workspace country’s own document (the default) or `passport`.
313647
+ * @enum {string|null}
313648
+ */
313649
+ document_kind?: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe" | "passport" | null;
313637
313650
  phone_whatsapp?: boolean | null;
313638
313651
  relation?: string | null;
313639
313652
  } | null;
@@ -322696,6 +322709,16 @@ interface components {
322696
322709
  timezone_source: "stored" | "country_default" | "legacy_guess";
322697
322710
  /** @enum {string} */
322698
322711
  currency_source: "stored" | "country_default" | "legacy_guess";
322712
+ /** @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. */
322713
+ patient_document?: {
322714
+ /** @enum {string} */
322715
+ kind: "rut" | "curp" | "cedula_co" | "dni_ar" | "dni_pe";
322716
+ /** @description What a person calls it: «RUT», «DNI»… */
322717
+ label: string;
322718
+ placeholder: string;
322719
+ /** @description The accepted shape (an HTML/Meta `pattern`). */
322720
+ pattern: string | null;
322721
+ } | null;
322699
322722
  };
322700
322723
  /**
322701
322724
  * @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 +341114,7 @@ interface components {
341091
341114
  min_chars?: number;
341092
341115
  max_chars?: number;
341093
341116
  /** @enum {string} */
341094
- preset?: "email" | "phone" | "rut" | "cpf" | "dni_ar" | "dni_pe" | "patente";
341117
+ preset?: "email" | "phone" | "rut" | "cpf" | "dni_ar" | "dni_pe" | "curp" | "cedula_co" | "patente";
341095
341118
  visible_when?: components["schemas"]["WhatsappFlowCondition"];
341096
341119
  required_when?: components["schemas"]["WhatsappFlowCondition"];
341097
341120
  sensitive?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.88.0",
3
+ "version": "17.89.0",
4
4
  "description": "Typed TypeScript SDK for the Vitrina API pública — generated from the committed openapi.public.json (ADR 0106).",
5
5
  "type": "module",
6
6
  "license": "MIT",