@shipstatic/ship 2.6.0-beta.3 → 2.6.0-beta.4
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/THIRD-PARTY-LICENSES.md +1 -1
- package/dist/browser.d.ts +13 -6
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -6
- package/dist/index.d.ts +13 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/THIRD-PARTY-LICENSES.md
CHANGED
|
@@ -5,7 +5,7 @@ Their copyright notices travel with that copy, and are reproduced here in
|
|
|
5
5
|
full. This file is GENERATED from the build's own metafile — edit the
|
|
6
6
|
bundle, not this list.
|
|
7
7
|
|
|
8
|
-
## @shipstatic/types 2.17.0-beta.
|
|
8
|
+
## @shipstatic/types 2.17.0-beta.2
|
|
9
9
|
|
|
10
10
|
License: MIT
|
|
11
11
|
|
package/dist/browser.d.ts
CHANGED
|
@@ -1885,19 +1885,26 @@ interface ScheduledChange {
|
|
|
1885
1885
|
readonly at: number;
|
|
1886
1886
|
}
|
|
1887
1887
|
/**
|
|
1888
|
-
* The answer of `POST /billing/change` — exactly one field is set
|
|
1888
|
+
* The answer of `POST /billing/change` — exactly one field is set, and the
|
|
1889
|
+
* UNION is what holds that: an answer carrying both, or neither, does not
|
|
1890
|
+
* compile, so "which door was taken" is structural rather than prose.
|
|
1889
1891
|
*
|
|
1890
1892
|
* `url` means GO: a Stripe page (Checkout, or the Portal's confirmation page)
|
|
1891
1893
|
* finishes the change and the browser must be redirected to it. `scheduled`
|
|
1892
1894
|
* means DONE: the downgrade is booked for period end, nothing to visit, and
|
|
1893
1895
|
* the account's `scheduled` field now carries it.
|
|
1894
1896
|
*/
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
readonly scheduled?:
|
|
1897
|
+
type PlanChangeResponse =
|
|
1898
|
+
/** GO: a Stripe page finishes the change. Absolute URL, single use, short-lived. */
|
|
1899
|
+
{
|
|
1900
|
+
readonly url: string;
|
|
1901
|
+
readonly scheduled?: never;
|
|
1900
1902
|
}
|
|
1903
|
+
/** DONE: the downgrade is booked for period end; nothing to visit. */
|
|
1904
|
+
| {
|
|
1905
|
+
readonly url?: never;
|
|
1906
|
+
readonly scheduled: ScheduledChange;
|
|
1907
|
+
};
|
|
1901
1908
|
/**
|
|
1902
1909
|
* The answer of `POST /billing/portal` — Stripe's `BillingPortal.Session`,
|
|
1903
1910
|
* projected to the one field a client needs. The Portal home: cards,
|