@shipstatic/types 2.17.0-beta.7 → 2.17.0-beta.9

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.ts CHANGED
@@ -1853,6 +1853,20 @@ export interface Plan {
1853
1853
  * nothing (a plan sold by conversation publishes no numbers).
1854
1854
  */
1855
1855
  readonly caps: Caps | null;
1856
+ /**
1857
+ * Why this row cannot be ordered right now — the closed door's own sentence,
1858
+ * verbatim — or absent when the way is open. A menu lists what can be
1859
+ * ordered, and a row that is sold but not yet orderable (its door is closed:
1860
+ * checkout unbuilt, a feature unfinished) SAYS SO on the menu instead of
1861
+ * only at the order.
1862
+ *
1863
+ * Clients branch on PRESENCE and render the sentence unchanged — they know
1864
+ * *that* the row is closed, never *which* door or *when it lifts*; the
1865
+ * vocabulary of doors stays server-side. The same rule the refusal follows:
1866
+ * `POST /billing/change` onto a closed row answers 400 with
1867
+ * `details.closed`, and its `message` is this sentence.
1868
+ */
1869
+ readonly closed?: string;
1856
1870
  }
1857
1871
  /**
1858
1872
  * Response for `GET /plans` — the whole public menu, in display order.
@@ -1945,11 +1959,11 @@ export interface BillingSyncResponse {
1945
1959
  * account (deletion removes them). Only the personal payload is
1946
1960
  * time-bounded: past 90 days each row sheds its IP.
1947
1961
  */
1948
- export type ActivityEvent = 'account.create' | 'account.update' | 'account.delete' | 'account.key.generate' | 'account.plan.transition' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'deployment.flagged' | 'deployment.open' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'token.delete' | 'admin.account.plan.update' | 'admin.account.suspended.update' | 'admin.account.ref.update' | 'admin.account.labels.update' | 'admin.deployment.delete' | 'admin.domain.delete' | 'admin.impersonate';
1962
+ export type ActivityEvent = 'account.create' | 'account.delete' | 'account.key.generate' | 'account.plan.transition' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'deployment.flagged' | 'deployment.open' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'token.delete' | 'admin.account.plan.update' | 'admin.account.suspended.update' | 'admin.account.ref.update' | 'admin.account.labels.update' | 'admin.deployment.delete' | 'admin.domain.delete' | 'admin.impersonate';
1949
1963
  /**
1950
1964
  * Activity events visible to users in the dashboard
1951
1965
  */
1952
- export type UserVisibleActivityEvent = 'account.create' | 'account.update' | 'account.delete' | 'account.key.generate' | 'account.plan.transition' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'token.delete';
1966
+ export type UserVisibleActivityEvent = 'account.create' | 'account.delete' | 'account.key.generate' | 'account.plan.transition' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'token.delete';
1953
1967
  /**
1954
1968
  * Activity record returned from the API
1955
1969
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "2.17.0-beta.7",
3
+ "version": "2.17.0-beta.9",
4
4
  "description": "Shared types for ShipStatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -2714,6 +2714,20 @@ export interface Plan {
2714
2714
  * nothing (a plan sold by conversation publishes no numbers).
2715
2715
  */
2716
2716
  readonly caps: Caps | null;
2717
+ /**
2718
+ * Why this row cannot be ordered right now — the closed door's own sentence,
2719
+ * verbatim — or absent when the way is open. A menu lists what can be
2720
+ * ordered, and a row that is sold but not yet orderable (its door is closed:
2721
+ * checkout unbuilt, a feature unfinished) SAYS SO on the menu instead of
2722
+ * only at the order.
2723
+ *
2724
+ * Clients branch on PRESENCE and render the sentence unchanged — they know
2725
+ * *that* the row is closed, never *which* door or *when it lifts*; the
2726
+ * vocabulary of doors stays server-side. The same rule the refusal follows:
2727
+ * `POST /billing/change` onto a closed row answers 400 with
2728
+ * `details.closed`, and its `message` is this sentence.
2729
+ */
2730
+ readonly closed?: string;
2717
2731
  }
2718
2732
 
2719
2733
  /**
@@ -2814,7 +2828,6 @@ export interface BillingSyncResponse {
2814
2828
  export type ActivityEvent =
2815
2829
  // Account events
2816
2830
  | 'account.create'
2817
- | 'account.update'
2818
2831
  | 'account.delete'
2819
2832
  | 'account.key.generate'
2820
2833
  | 'account.plan.transition'
@@ -2853,7 +2866,6 @@ export type ActivityEvent =
2853
2866
  */
2854
2867
  export type UserVisibleActivityEvent =
2855
2868
  | 'account.create'
2856
- | 'account.update'
2857
2869
  | 'account.delete'
2858
2870
  | 'account.key.generate'
2859
2871
  | 'account.plan.transition'