@sevenfold/setto-client 0.18.0 → 0.20.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.
package/dist/types.d.ts CHANGED
@@ -85,9 +85,27 @@ export interface PublishFile {
85
85
  content: string;
86
86
  encoding?: 'utf-8' | 'base64';
87
87
  }
88
+ /**
89
+ * What the other languages did while the customer waited.
90
+ *
91
+ * Absent on a single-language site, which is most of them, and absent when
92
+ * every language was already up to date — there is nothing to report and a row
93
+ * saying so would be noise.
94
+ */
95
+ export interface PublishTranslation {
96
+ /** Per language, how many strings were written and how many a person owns. */
97
+ languages: Array<{
98
+ language: string;
99
+ translated: number;
100
+ keptByHuman: number;
101
+ }>;
102
+ /** Anything that stopped it or cut it short. Already in Norwegian. */
103
+ note: string | null;
104
+ }
88
105
  export interface PublishResult {
89
106
  commitSha: string;
90
107
  deploymentId: string | null;
91
108
  /** Set when GitHub commit succeeded but Supabase tracking row was deferred. */
92
109
  trackingDeferred?: boolean;
110
+ translation?: PublishTranslation;
93
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sevenfold/setto-client",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "packageManager": "bun@1.3.7",