@vitrina/api 17.76.0 → 17.77.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 +19 -0
- package/dist/index.d.ts +19 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -321410,6 +321410,8 @@ interface components {
|
|
|
321410
321410
|
};
|
|
321411
321411
|
/** @description Workspace display name. */
|
|
321412
321412
|
name?: string;
|
|
321413
|
+
/** @description The workspace country, ISO 3166-1 alpha-2 (e.g. `CL`, `MX`, `CO`, `AR`). It supplies the defaults for time zone, currency, phone parsing, national holidays, form of address and patient document whenever those are not set explicitly. Absent until set; `locale_resolved` gives what applies. */
|
|
321414
|
+
country?: string;
|
|
321413
321415
|
/** @description IANA time zone, e.g. `America/Santiago`. */
|
|
321414
321416
|
timezone?: string;
|
|
321415
321417
|
/** @description Default language, e.g. `es`. */
|
|
@@ -321509,6 +321511,21 @@ interface components {
|
|
|
321509
321511
|
/** @enum {string} */
|
|
321510
321512
|
register_source: "stored" | "vertical_default";
|
|
321511
321513
|
};
|
|
321514
|
+
/** @description Read-only: the country, time zone and currency the workspace runs on (stored value, the country default, or the legacy guess), with where each came from. Ignored on write. */
|
|
321515
|
+
locale_resolved?: {
|
|
321516
|
+
/** @description ISO 3166-1 alpha-2. */
|
|
321517
|
+
country: string;
|
|
321518
|
+
/** @description IANA time zone. */
|
|
321519
|
+
timezone: string;
|
|
321520
|
+
/** @description ISO 4217 currency. */
|
|
321521
|
+
currency: string;
|
|
321522
|
+
/** @enum {string} */
|
|
321523
|
+
country_source: "stored" | "country_default" | "legacy_guess";
|
|
321524
|
+
/** @enum {string} */
|
|
321525
|
+
timezone_source: "stored" | "country_default" | "legacy_guess";
|
|
321526
|
+
/** @enum {string} */
|
|
321527
|
+
currency_source: "stored" | "country_default" | "legacy_guess";
|
|
321528
|
+
};
|
|
321512
321529
|
/**
|
|
321513
321530
|
* @description Write-only secret: the Slack incoming-webhook URL is never returned. `••••` when one is configured; absent otherwise. Read `slack_webhook_configured` instead.
|
|
321514
321531
|
* @enum {string}
|
|
@@ -321530,6 +321547,8 @@ interface components {
|
|
|
321530
321547
|
};
|
|
321531
321548
|
};
|
|
321532
321549
|
TenantSettingsPublicWrite: {
|
|
321550
|
+
/** @description The workspace country, ISO 3166-1 alpha-2 (e.g. `CL`, `MX`). Supplies the defaults for time zone, currency, phone parsing, national holidays, form of address and patient document; an explicit `timezone`/`currency` is never rewritten by it. `null` removes it. */
|
|
321551
|
+
country?: string | null;
|
|
321533
321552
|
/** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?, low_battery_factor?, direct_purchase?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value; `min_battery_pct` = a known battery under it is not bought; `low_battery_factor` (0–1) = a known battery under `perfect_battery_pct` caps the price at `used × low_battery_factor` instead of `used`; `direct_purchase: false` = the model is taken only as part of the payment for another item, never bought outright — absent = true), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `perfect_floor_factor` (0–1, default 0.85: the low end for a flawless unit is `used × perfect_floor_factor`, its high end is `top`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool (a wide range of what the customer would still pay) and the `quote_buyback` tool (the most paid for one device sold outright, or the discount for a `direct_purchase: false` model); the business’s own site reads it at `GET /storefront/trade-in`. Replaced whole on write; `null` clears it. */
|
|
321534
321553
|
trade_in?: {
|
|
321535
321554
|
price_table: {
|
package/dist/index.d.ts
CHANGED
|
@@ -321410,6 +321410,8 @@ interface components {
|
|
|
321410
321410
|
};
|
|
321411
321411
|
/** @description Workspace display name. */
|
|
321412
321412
|
name?: string;
|
|
321413
|
+
/** @description The workspace country, ISO 3166-1 alpha-2 (e.g. `CL`, `MX`, `CO`, `AR`). It supplies the defaults for time zone, currency, phone parsing, national holidays, form of address and patient document whenever those are not set explicitly. Absent until set; `locale_resolved` gives what applies. */
|
|
321414
|
+
country?: string;
|
|
321413
321415
|
/** @description IANA time zone, e.g. `America/Santiago`. */
|
|
321414
321416
|
timezone?: string;
|
|
321415
321417
|
/** @description Default language, e.g. `es`. */
|
|
@@ -321509,6 +321511,21 @@ interface components {
|
|
|
321509
321511
|
/** @enum {string} */
|
|
321510
321512
|
register_source: "stored" | "vertical_default";
|
|
321511
321513
|
};
|
|
321514
|
+
/** @description Read-only: the country, time zone and currency the workspace runs on (stored value, the country default, or the legacy guess), with where each came from. Ignored on write. */
|
|
321515
|
+
locale_resolved?: {
|
|
321516
|
+
/** @description ISO 3166-1 alpha-2. */
|
|
321517
|
+
country: string;
|
|
321518
|
+
/** @description IANA time zone. */
|
|
321519
|
+
timezone: string;
|
|
321520
|
+
/** @description ISO 4217 currency. */
|
|
321521
|
+
currency: string;
|
|
321522
|
+
/** @enum {string} */
|
|
321523
|
+
country_source: "stored" | "country_default" | "legacy_guess";
|
|
321524
|
+
/** @enum {string} */
|
|
321525
|
+
timezone_source: "stored" | "country_default" | "legacy_guess";
|
|
321526
|
+
/** @enum {string} */
|
|
321527
|
+
currency_source: "stored" | "country_default" | "legacy_guess";
|
|
321528
|
+
};
|
|
321512
321529
|
/**
|
|
321513
321530
|
* @description Write-only secret: the Slack incoming-webhook URL is never returned. `••••` when one is configured; absent otherwise. Read `slack_webhook_configured` instead.
|
|
321514
321531
|
* @enum {string}
|
|
@@ -321530,6 +321547,8 @@ interface components {
|
|
|
321530
321547
|
};
|
|
321531
321548
|
};
|
|
321532
321549
|
TenantSettingsPublicWrite: {
|
|
321550
|
+
/** @description The workspace country, ISO 3166-1 alpha-2 (e.g. `CL`, `MX`). Supplies the defaults for time zone, currency, phone parsing, national holidays, form of address and patient document; an explicit `timezone`/`currency` is never rewritten by it. `null` removes it. */
|
|
321551
|
+
country?: string | null;
|
|
321533
321552
|
/** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?, low_battery_factor?, direct_purchase?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value; `min_battery_pct` = a known battery under it is not bought; `low_battery_factor` (0–1) = a known battery under `perfect_battery_pct` caps the price at `used × low_battery_factor` instead of `used`; `direct_purchase: false` = the model is taken only as part of the payment for another item, never bought outright — absent = true), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `perfect_floor_factor` (0–1, default 0.85: the low end for a flawless unit is `used × perfect_floor_factor`, its high end is `top`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool (a wide range of what the customer would still pay) and the `quote_buyback` tool (the most paid for one device sold outright, or the discount for a `direct_purchase: false` model); the business’s own site reads it at `GET /storefront/trade-in`. Replaced whole on write; `null` clears it. */
|
|
321534
321553
|
trade_in?: {
|
|
321535
321554
|
price_table: {
|
package/package.json
CHANGED