@allisall/sdk 0.4.0 → 0.5.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.
@@ -1143,10 +1143,10 @@ export interface components {
1143
1143
  */
1144
1144
  UndefinedReason: "no_value_model" | "zero_cost" | "no_counted_clients";
1145
1145
  /**
1146
- * @description A coverage finding on a report. Each kind appears at most once per report. `facts` per kind: `empty` `{}`; `unpriced` `{outcome_types: [{outcome_type, quantity}], outcome_types_omitted}`, at most 100 outcome types by quantity, largest first, with `outcome_types_omitted` counting the rest, which a report composed before the count existed lacks; `key_unset` `{}`; `unmatched` `{keys}`; `unattributable` `{events}`; `precedes` `{}`; `unpriceable` `{models}`; `uncosted` `{events}`; `token_valued` `{events}`; `unattributed` `{line_items}`; `partial` `{line_items}`; `truncated` `{prorated_through}`.
1146
+ * @description A coverage finding on a report. Each kind appears at most once per report. `no_value_model` means the client had no value model for the period. It replaces every other finding about value, so `empty`, `unpriced`, `key_unset`, `unmatched`, `unattributable` and `precedes` never appear beside it. `facts` per kind: `no_value_model` `{}`; `empty` `{}`; `unpriced` `{outcome_types: [{outcome_type, quantity}], outcome_types_omitted}`, at most 100 outcome types by quantity, largest first, with `outcome_types_omitted` counting the rest, which a report composed before the count existed lacks; `key_unset` `{}`; `unmatched` `{keys}`; `unattributable` `{events}`; `precedes` `{}`; `unpriceable` `{models}`; `uncosted` `{events}`; `token_valued` `{events}`; `unattributed` `{line_items}`; `partial` `{line_items}`; `truncated` `{prorated_through}`.
1147
1147
  * @enum {string}
1148
1148
  */
1149
- DisclosureKind: "empty" | "unpriced" | "key_unset" | "unmatched" | "unattributable" | "precedes" | "unpriceable" | "uncosted" | "token_valued" | "unattributed" | "partial" | "truncated";
1149
+ DisclosureKind: "no_value_model" | "empty" | "unpriced" | "key_unset" | "unmatched" | "unattributable" | "precedes" | "unpriceable" | "uncosted" | "token_valued" | "unattributed" | "partial" | "truncated";
1150
1150
  /**
1151
1151
  * @description Why a client is not counted in the dashboard totals. `not_published_this_period`: it has published, but not for this month. `never_published`: no published calculation for any period. `published_off_grid`: a published calculation overlaps the month without equalling it. `no_value_model` and `zero_cost`: the published figure has no ratio.
1152
1152
  * @enum {string}
@@ -1565,20 +1565,20 @@ export interface components {
1565
1565
  total: components["schemas"]["Money"];
1566
1566
  provenance_note: string;
1567
1567
  };
1568
- /** @description Every way value could be missing from the total. */
1568
+ /** @description Every way value could be missing from the total. When `value_model` is `null` there is no total: `unpriced_outcome_types` and `unmatched_client_keys` are empty, with their `_omitted` counts `0`; `unattributable_outcome_events` is `0`; `line_items_empty` and `period_precedes_model` are `false`; and `client_key_unset` is reported as usual. A calculation snapshot taken earlier may still carry unpriced outcome types, unmatched client keys and unattributable outcome events here, so read `value_model` first. */
1569
1569
  ValueCoverage: {
1570
- /** @description Outcome types attributed to the client that no line item prices, by quantity, largest first, then by outcome type compared by Unicode code point. At most 100: `unpriced_outcome_types_omitted` counts the rest. */
1570
+ /** @description Outcome types attributed to the client that no line item prices, by quantity, largest first, then by outcome type compared by Unicode code point. At most 100: `unpriced_outcome_types_omitted` counts the rest. Empty when `value_model` is `null`: with no model nothing is priced, so no type is listed as unpriced. */
1571
1571
  unpriced_outcome_types: components["schemas"]["OutcomeTypeUsage"][];
1572
1572
  /** @description How many unpriced outcome types `unpriced_outcome_types` leaves out, `0` when it lists every one. The totals and counts in the response cover every one. */
1573
1573
  unpriced_outcome_types_omitted: number;
1574
- /** @description Event client keys that match no client in the workspace, by event count, largest first, then by client key compared by Unicode code point. At most 100: `unmatched_client_keys_omitted` counts the rest. */
1574
+ /** @description Event client keys that match no client in the workspace, by event count, largest first, then by client key compared by Unicode code point. At most 100: `unmatched_client_keys_omitted` counts the rest. Reported only when `value_model` is not `null`; otherwise empty. */
1575
1575
  unmatched_client_keys: {
1576
1576
  client_key: string;
1577
1577
  events: number;
1578
1578
  }[];
1579
1579
  /** @description How many unmatched client keys `unmatched_client_keys` leaves out, `0` when it lists every one. */
1580
1580
  unmatched_client_keys_omitted: number;
1581
- /** @description Outcome events in the workspace that attribute to no client. */
1581
+ /** @description Outcome events in the workspace that attribute to no client. Reported only when `value_model` is not `null`; otherwise `0`. */
1582
1582
  unattributable_outcome_events: number;
1583
1583
  /** @description Whether the client has no `client_key`, so only solo-agent attribution reaches it. */
1584
1584
  client_key_unset: boolean;
@@ -1590,7 +1590,7 @@ export interface components {
1590
1590
  /** @description A value computation. */
1591
1591
  ValueResult: {
1592
1592
  value_model: components["schemas"]["ValueModelRef"] | null;
1593
- /** @description One line for each line item of the model, in line-item order, so at most 50. An outcome type no line item prices is never a line; it is listed in `coverage.unpriced_outcome_types`. */
1593
+ /** @description One line for each line item of the model, in line-item order, so at most 50. An outcome type no line item prices is never a line; when the client has a value model, it is listed in `coverage.unpriced_outcome_types`. */
1594
1594
  lines: components["schemas"]["ValueLine"][];
1595
1595
  /** @description `null` together with `value_model` when the client has no active model: not priced, which differs from zero. */
1596
1596
  total: components["schemas"]["Money"] | null;
@@ -1912,7 +1912,7 @@ export interface components {
1912
1912
  published_at: components["schemas"]["Instant"] | null;
1913
1913
  /** @description Whether this is the figure for its period: the latest publication covering it. `null` when the calculation is not published. */
1914
1914
  is_current: boolean | null;
1915
- /** @description How many coverage findings the calculation's frozen figures hold: the disclosures a report on it would list, including those a report leaves out of the shared copy by default. */
1915
+ /** @description How many coverage findings the calculation's frozen figures hold: the disclosures a report composed from it would list, including those a report leaves out of the shared copy by default. When the client had no value model for the period, the findings about value count as one, `no_value_model`. A report keeps the disclosures it was composed with, so a report composed earlier can list a different set, more or fewer than this count. */
1916
1916
  coverage_findings: number;
1917
1917
  };
1918
1918
  CalculationCreate: {
@@ -1953,7 +1953,7 @@ export interface components {
1953
1953
  letterhead_workspace_name: string;
1954
1954
  /** @description Free text, `""` when empty. */
1955
1955
  note: string;
1956
- /** @description In the order the calculation's coverage produced them. At most 12: each kind appears at most once. */
1956
+ /** @description In the order the calculation's coverage produced them. At most 12: each kind appears at most once, and `no_value_model` never appears beside the six findings about value it replaces. */
1957
1957
  disclosures: components["schemas"]["Disclosure"][];
1958
1958
  /** @description The link token, once shared. `null` before the report is shared. */
1959
1959
  share_token: string | null;
@@ -2010,7 +2010,7 @@ export interface components {
2010
2010
  workspace_name: string;
2011
2011
  /** @description Free text, `""` when empty. */
2012
2012
  note: string;
2013
- /** @description The included findings only, in report order. At most 12: each kind appears at most once. */
2013
+ /** @description The included findings only, in report order. At most 12: each kind appears at most once, and `no_value_model` never appears beside the six findings about value it replaces. */
2014
2014
  disclosures: components["schemas"]["Disclosure"][];
2015
2015
  period: components["schemas"]["Period"];
2016
2016
  currency: components["schemas"]["Currency"];
@@ -2093,9 +2093,9 @@ export interface components {
2093
2093
  value_by_outcome_omitted: number;
2094
2094
  /** @description The value of the outcome types `value_by_outcome` leaves out, `0` when it lists every one. The `total` of every listed entry plus this equals `value_total` exactly, as decimals, for figures of up to 15 significant digits, so a chart can show the rest as one share without adding money itself. */
2095
2095
  value_by_outcome_omitted_total: components["schemas"]["Money"];
2096
- /** @description The five agents with the highest cost, by `total`, largest first, then by `agent_id`. */
2096
+ /** @description The five agents with the highest cost across the counted clients' figures, by `total`, largest first, then by `agent_id`. An agent serving several clients is one entry, with its cost summed across them. Only a figure that records cost per agent contributes: `agent_costs_recorded` says how many do. Fewer than five when fewer agents appear in those figures. */
2097
2097
  agent_costs: components["schemas"]["AgentCostLine"][];
2098
- /** @description Agents with recorded cost in the month. */
2098
+ /** @description How many counted clients have a figure that records cost per agent. A figure records cost per agent even when no agent has any cost. Compare it with `counted`. When it is lower, some figures were published before the API recorded cost per agent, and they never gain it, so `agent_costs` ranks agents over only part of `cost_total`. */
2099
2099
  agent_costs_recorded: number;
2100
2100
  /** @description Unpriced outcome types across the counted clients' figures, by event count, largest first, then by outcome type compared by Unicode code point. An outcome type is grouped ignoring case and surrounding spaces, with its events summed across spellings. At most 100: `unpriced_outcome_types_omitted` counts the rest. */
2101
2101
  unpriced_outcome_types: {
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** The SDK's version. The release tooling updates it; never edit it by hand. */
2
- export declare const VERSION = "0.4.0";
2
+ export declare const VERSION = "0.5.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /** The SDK's version. The release tooling updates it; never edit it by hand. */
2
- export const VERSION = "0.4.0"; // x-release-please-version
2
+ export const VERSION = "0.5.0"; // x-release-please-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allisall/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "The allisall SDK for TypeScript and JavaScript: a typed client for the allisall API, from sending events to publishing reports.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {