@sevenfold/setto-client 0.7.0 → 0.8.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.ts +1 -0
- package/dist/preview-bar.d.ts +29 -0
- package/dist/setto-client.js +175 -1
- package/dist/setto-client.js.map +1 -1
- package/dist/types.d.ts +16 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export interface BrandColor {
|
|
|
8
8
|
export interface SettoConfig {
|
|
9
9
|
/** Stable slug identifying the site, e.g. 'carryon-no'. */
|
|
10
10
|
siteId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The trading name, shipped in `setto.config.json`.
|
|
13
|
+
*
|
|
14
|
+
* Used where a customer reads it — the preview bar said `nordvik-ror-f14c3a27`
|
|
15
|
+
* to anyone who opened the site, which is a database key, not a business.
|
|
16
|
+
*/
|
|
17
|
+
displayName?: string;
|
|
11
18
|
/** Base URL of setto-server, e.g. 'https://api.setto.no'. */
|
|
12
19
|
apiUrl: string;
|
|
13
20
|
/** Supabase project credentials. */
|
|
@@ -44,6 +51,15 @@ export interface DeploymentRow {
|
|
|
44
51
|
export interface SiteRow {
|
|
45
52
|
id: string;
|
|
46
53
|
display_name: string;
|
|
54
|
+
/**
|
|
55
|
+
* `live` once it has been paid for.
|
|
56
|
+
*
|
|
57
|
+
* The row already carries it — `useSiteAccess` selects `*` — and only the
|
|
58
|
+
* type hid it. The preview bar needs it because a paid site stays on
|
|
59
|
+
* `*.site.setto.no` until a custom domain is attached, so the host alone
|
|
60
|
+
* cannot say whether it has been bought.
|
|
61
|
+
*/
|
|
62
|
+
status?: string;
|
|
47
63
|
repo_owner: string;
|
|
48
64
|
repo_name: string;
|
|
49
65
|
branch: string;
|