@vitrina/api 15.14.0 → 15.14.1

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
@@ -215592,7 +215592,7 @@ interface paths {
215592
215592
  put?: never;
215593
215593
  /**
215594
215594
  * Estimate a delivery to where a buyer said
215595
- * @description Prices a Chilexpress delivery from the store’s connection (its origin, the services it offers, its default box times `quantity`) to a destination as a buyer wrote it: a commune («Ñuñoa», «Stgo centro»), an address («Av. Alemania 0450, Temuco») and/or a region. Stores nothing: there is no quote id, and a checkout still needs `POST /orders/checkout/shipping-quotes`. Never creates a shipment. `status`: `quoted` (destination + options), `needs_commune` (`reason` missing / ambiguous / region_mismatch / not_found, with `candidates` to ask about; send the chosen `coverage_code` back), `not_covered` (no offered service reaches it), `unknown_item`. The same answer the AI agent’s `quote_shipping` tool gives. 409 `shipping_not_connected` without a courier. Requires `orders:read`.
215595
+ * @description Prices a Chilexpress delivery from the store’s connection (its origin, the services it offers, its default box times `quantity`) to a destination as a buyer wrote it: a commune («Ñuñoa», «Stgo centro»), an address («Av. Alemania 0450, Temuco») and/or a region. Stores nothing: there is no quote id, and a checkout still needs `POST /orders/checkout/shipping-quotes`. Never creates a shipment. Without an `item` (or one with no price) the declared value, which changes Chilexpress’s price, is the median price of the store’s active catalog × `quantity` (`declared.basis`). `status`: `quoted` (destination + options), `needs_commune` (`reason` missing / ambiguous / region_mismatch / not_found, with `candidates` to ask about; send the chosen `coverage_code` back), `not_covered` (no offered service reaches it), `unknown_item`. The same answer the AI agent’s `quote_shipping` tool gives. 409 `shipping_not_connected` without a courier. Requires `orders:read`.
215596
215596
  */
215597
215597
  post: {
215598
215598
  parameters: {
@@ -215653,6 +215653,10 @@ interface paths {
215653
215653
  * }
215654
215654
  * ],
215655
215655
  * "item": null,
215656
+ * "declared": {
215657
+ * "value_clp": 580000,
215658
+ * "basis": "catalog_median"
215659
+ * },
215656
215660
  * "package": {
215657
215661
  * "weight_kg": 0.6,
215658
215662
  * "height_cm": 8,
@@ -248619,6 +248623,12 @@ interface components {
248619
248623
  quantity: number;
248620
248624
  declared_value_clp: number | null;
248621
248625
  } | null;
248626
+ /** @description `quoted`: the value declared to Chilexpress (it changes the price): the item’s catalog price × quantity, else the median price of the store’s active catalog × quantity, else $1. */
248627
+ declared?: {
248628
+ value_clp: number;
248629
+ /** @enum {string} */
248630
+ basis: "item" | "catalog_median" | "minimum";
248631
+ };
248622
248632
  package?: {
248623
248633
  weight_kg: number;
248624
248634
  height_cm: number;
package/dist/index.d.ts CHANGED
@@ -215592,7 +215592,7 @@ interface paths {
215592
215592
  put?: never;
215593
215593
  /**
215594
215594
  * Estimate a delivery to where a buyer said
215595
- * @description Prices a Chilexpress delivery from the store’s connection (its origin, the services it offers, its default box times `quantity`) to a destination as a buyer wrote it: a commune («Ñuñoa», «Stgo centro»), an address («Av. Alemania 0450, Temuco») and/or a region. Stores nothing: there is no quote id, and a checkout still needs `POST /orders/checkout/shipping-quotes`. Never creates a shipment. `status`: `quoted` (destination + options), `needs_commune` (`reason` missing / ambiguous / region_mismatch / not_found, with `candidates` to ask about; send the chosen `coverage_code` back), `not_covered` (no offered service reaches it), `unknown_item`. The same answer the AI agent’s `quote_shipping` tool gives. 409 `shipping_not_connected` without a courier. Requires `orders:read`.
215595
+ * @description Prices a Chilexpress delivery from the store’s connection (its origin, the services it offers, its default box times `quantity`) to a destination as a buyer wrote it: a commune («Ñuñoa», «Stgo centro»), an address («Av. Alemania 0450, Temuco») and/or a region. Stores nothing: there is no quote id, and a checkout still needs `POST /orders/checkout/shipping-quotes`. Never creates a shipment. Without an `item` (or one with no price) the declared value, which changes Chilexpress’s price, is the median price of the store’s active catalog × `quantity` (`declared.basis`). `status`: `quoted` (destination + options), `needs_commune` (`reason` missing / ambiguous / region_mismatch / not_found, with `candidates` to ask about; send the chosen `coverage_code` back), `not_covered` (no offered service reaches it), `unknown_item`. The same answer the AI agent’s `quote_shipping` tool gives. 409 `shipping_not_connected` without a courier. Requires `orders:read`.
215596
215596
  */
215597
215597
  post: {
215598
215598
  parameters: {
@@ -215653,6 +215653,10 @@ interface paths {
215653
215653
  * }
215654
215654
  * ],
215655
215655
  * "item": null,
215656
+ * "declared": {
215657
+ * "value_clp": 580000,
215658
+ * "basis": "catalog_median"
215659
+ * },
215656
215660
  * "package": {
215657
215661
  * "weight_kg": 0.6,
215658
215662
  * "height_cm": 8,
@@ -248619,6 +248623,12 @@ interface components {
248619
248623
  quantity: number;
248620
248624
  declared_value_clp: number | null;
248621
248625
  } | null;
248626
+ /** @description `quoted`: the value declared to Chilexpress (it changes the price): the item’s catalog price × quantity, else the median price of the store’s active catalog × quantity, else $1. */
248627
+ declared?: {
248628
+ value_clp: number;
248629
+ /** @enum {string} */
248630
+ basis: "item" | "catalog_median" | "minimum";
248631
+ };
248622
248632
  package?: {
248623
248633
  weight_kg: number;
248624
248634
  height_cm: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "15.14.0",
3
+ "version": "15.14.1",
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",