@shipstatic/types 2.22.0-beta.1 → 2.22.0-beta.2

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
@@ -622,18 +622,15 @@ export interface Account {
622
622
  readonly name: string | null;
623
623
  /** User profile picture URL, null if not set */
624
624
  readonly picture: string | null;
625
- /** The account's plan: the row it is on. */
626
- readonly plan: AccountPlanType;
627
625
  /**
628
- * The billed tier the account STANDS AT: its plan for a billed or free
629
- * account, and the plan a gift copies for a sponsored one (`sponsored`
630
- * stands at `pro`). Every question of position, which row is "current",
631
- * which rows are above, is asked of this rather than of `plan`, so a
632
- * sponsored account sees exactly what a Pro account sees. Optional on the
633
- * type by the additive-evolution law: published SDK versions may predate
634
- * the field, so consumers read it when present and fall back to `plan`.
626
+ * The tier the account stands at. A sponsored account is Pro that nobody
627
+ * bills, so it reports `pro` here with {@link billed} false; the grant
628
+ * itself is the operator's fact, seen on the operator's surfaces and never
629
+ * here. A console therefore treats a sponsored account exactly as a Pro one
630
+ * everywhere, and the one difference it can see is the one that is real:
631
+ * there is no Subscription.
635
632
  */
636
- readonly tier?: AccountPlanType;
633
+ readonly plan: AccountPlanType;
637
634
  /**
638
635
  * True while the operator has suspended the account: reads and deletes
639
636
  * still work, every write is refused. The plan is unchanged underneath.
@@ -683,9 +680,7 @@ export interface Account {
683
680
  /**
684
681
  * The next plan up the ladder this account could move to, or `null` when
685
682
  * there is none: the top billed tier, a plan sold by conversation, and any
686
- * plan not on the menu answer `null`. Asked from where the account stands
687
- * ({@link tier}), so a sponsored account is offered Team as a Pro account
688
- * is. One server-side fact so that no surface derives "can this account
683
+ * plan not on the menu answer `null`. One server-side fact so that no surface derives "can this account
689
684
  * upgrade, and to what" from the menu — a grandfathered row has no menu
690
685
  * price to compare, and a conversation plan must never be sent to Checkout.
691
686
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "2.22.0-beta.1",
3
+ "version": "2.22.0-beta.2",
4
4
  "description": "Shared TypeScript types for the ShipStatic platform.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -697,18 +697,15 @@ export interface Account {
697
697
  readonly name: string | null;
698
698
  /** User profile picture URL, null if not set */
699
699
  readonly picture: string | null;
700
- /** The account's plan: the row it is on. */
701
- readonly plan: AccountPlanType;
702
700
  /**
703
- * The billed tier the account STANDS AT: its plan for a billed or free
704
- * account, and the plan a gift copies for a sponsored one (`sponsored`
705
- * stands at `pro`). Every question of position, which row is "current",
706
- * which rows are above, is asked of this rather than of `plan`, so a
707
- * sponsored account sees exactly what a Pro account sees. Optional on the
708
- * type by the additive-evolution law: published SDK versions may predate
709
- * the field, so consumers read it when present and fall back to `plan`.
701
+ * The tier the account stands at. A sponsored account is Pro that nobody
702
+ * bills, so it reports `pro` here with {@link billed} false; the grant
703
+ * itself is the operator's fact, seen on the operator's surfaces and never
704
+ * here. A console therefore treats a sponsored account exactly as a Pro one
705
+ * everywhere, and the one difference it can see is the one that is real:
706
+ * there is no Subscription.
710
707
  */
711
- readonly tier?: AccountPlanType;
708
+ readonly plan: AccountPlanType;
712
709
  /**
713
710
  * True while the operator has suspended the account: reads and deletes
714
711
  * still work, every write is refused. The plan is unchanged underneath.
@@ -758,9 +755,7 @@ export interface Account {
758
755
  /**
759
756
  * The next plan up the ladder this account could move to, or `null` when
760
757
  * there is none: the top billed tier, a plan sold by conversation, and any
761
- * plan not on the menu answer `null`. Asked from where the account stands
762
- * ({@link tier}), so a sponsored account is offered Team as a Pro account
763
- * is. One server-side fact so that no surface derives "can this account
758
+ * plan not on the menu answer `null`. One server-side fact so that no surface derives "can this account
764
759
  * upgrade, and to what" from the menu — a grandfathered row has no menu
765
760
  * price to compare, and a conversation plan must never be sent to Checkout.
766
761
  */