@lingo.dev/_sdk 0.13.6 → 0.14.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/build/index.d.cts +6 -28
- package/build/index.d.ts +6 -28
- package/package.json +3 -3
package/build/index.d.cts
CHANGED
|
@@ -6,37 +6,15 @@ declare const engineParamsSchema: Z.ZodObject<{
|
|
|
6
6
|
apiUrl: Z.ZodDefault<Z.ZodString>;
|
|
7
7
|
batchSize: Z.ZodDefault<Z.ZodNumber>;
|
|
8
8
|
idealBatchItemSize: Z.ZodDefault<Z.ZodNumber>;
|
|
9
|
-
},
|
|
10
|
-
apiKey: Z.ZodString;
|
|
11
|
-
apiUrl: Z.ZodDefault<Z.ZodString>;
|
|
12
|
-
batchSize: Z.ZodDefault<Z.ZodNumber>;
|
|
13
|
-
idealBatchItemSize: Z.ZodDefault<Z.ZodNumber>;
|
|
14
|
-
}, Z.ZodTypeAny, "passthrough">, Z.objectInputType<{
|
|
15
|
-
apiKey: Z.ZodString;
|
|
16
|
-
apiUrl: Z.ZodDefault<Z.ZodString>;
|
|
17
|
-
batchSize: Z.ZodDefault<Z.ZodNumber>;
|
|
18
|
-
idealBatchItemSize: Z.ZodDefault<Z.ZodNumber>;
|
|
19
|
-
}, Z.ZodTypeAny, "passthrough">>;
|
|
9
|
+
}, Z.core.$loose>;
|
|
20
10
|
declare const payloadSchema: Z.ZodRecord<Z.ZodString, Z.ZodAny>;
|
|
21
11
|
declare const localizationParamsSchema: Z.ZodObject<{
|
|
22
|
-
sourceLocale: Z.ZodUnion<[Z.
|
|
23
|
-
targetLocale: Z.
|
|
12
|
+
sourceLocale: Z.ZodUnion<readonly [Z.ZodString, Z.ZodNull]>;
|
|
13
|
+
targetLocale: Z.ZodString;
|
|
24
14
|
fast: Z.ZodOptional<Z.ZodBoolean>;
|
|
25
|
-
reference: Z.ZodOptional<Z.ZodRecord<Z.
|
|
26
|
-
hints: Z.ZodOptional<Z.ZodRecord<Z.ZodString, Z.ZodArray<Z.ZodString
|
|
27
|
-
},
|
|
28
|
-
sourceLocale: string | null;
|
|
29
|
-
targetLocale: string;
|
|
30
|
-
fast?: boolean | undefined;
|
|
31
|
-
reference?: Record<string, Record<string, any>> | undefined;
|
|
32
|
-
hints?: Record<string, string[]> | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
sourceLocale: string | null;
|
|
35
|
-
targetLocale: string;
|
|
36
|
-
fast?: boolean | undefined;
|
|
37
|
-
reference?: Record<string, Record<string, any>> | undefined;
|
|
38
|
-
hints?: Record<string, string[]> | undefined;
|
|
39
|
-
}>;
|
|
15
|
+
reference: Z.ZodOptional<Z.ZodRecord<Z.ZodString, Z.ZodRecord<Z.ZodString, Z.ZodAny>>>;
|
|
16
|
+
hints: Z.ZodOptional<Z.ZodRecord<Z.ZodString, Z.ZodArray<Z.ZodString>>>;
|
|
17
|
+
}, Z.core.$strip>;
|
|
40
18
|
/**
|
|
41
19
|
* LingoDotDevEngine class for interacting with the LingoDotDev API
|
|
42
20
|
* A powerful localization engine that supports various content types including
|
package/build/index.d.ts
CHANGED
|
@@ -6,37 +6,15 @@ declare const engineParamsSchema: Z.ZodObject<{
|
|
|
6
6
|
apiUrl: Z.ZodDefault<Z.ZodString>;
|
|
7
7
|
batchSize: Z.ZodDefault<Z.ZodNumber>;
|
|
8
8
|
idealBatchItemSize: Z.ZodDefault<Z.ZodNumber>;
|
|
9
|
-
},
|
|
10
|
-
apiKey: Z.ZodString;
|
|
11
|
-
apiUrl: Z.ZodDefault<Z.ZodString>;
|
|
12
|
-
batchSize: Z.ZodDefault<Z.ZodNumber>;
|
|
13
|
-
idealBatchItemSize: Z.ZodDefault<Z.ZodNumber>;
|
|
14
|
-
}, Z.ZodTypeAny, "passthrough">, Z.objectInputType<{
|
|
15
|
-
apiKey: Z.ZodString;
|
|
16
|
-
apiUrl: Z.ZodDefault<Z.ZodString>;
|
|
17
|
-
batchSize: Z.ZodDefault<Z.ZodNumber>;
|
|
18
|
-
idealBatchItemSize: Z.ZodDefault<Z.ZodNumber>;
|
|
19
|
-
}, Z.ZodTypeAny, "passthrough">>;
|
|
9
|
+
}, Z.core.$loose>;
|
|
20
10
|
declare const payloadSchema: Z.ZodRecord<Z.ZodString, Z.ZodAny>;
|
|
21
11
|
declare const localizationParamsSchema: Z.ZodObject<{
|
|
22
|
-
sourceLocale: Z.ZodUnion<[Z.
|
|
23
|
-
targetLocale: Z.
|
|
12
|
+
sourceLocale: Z.ZodUnion<readonly [Z.ZodString, Z.ZodNull]>;
|
|
13
|
+
targetLocale: Z.ZodString;
|
|
24
14
|
fast: Z.ZodOptional<Z.ZodBoolean>;
|
|
25
|
-
reference: Z.ZodOptional<Z.ZodRecord<Z.
|
|
26
|
-
hints: Z.ZodOptional<Z.ZodRecord<Z.ZodString, Z.ZodArray<Z.ZodString
|
|
27
|
-
},
|
|
28
|
-
sourceLocale: string | null;
|
|
29
|
-
targetLocale: string;
|
|
30
|
-
fast?: boolean | undefined;
|
|
31
|
-
reference?: Record<string, Record<string, any>> | undefined;
|
|
32
|
-
hints?: Record<string, string[]> | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
sourceLocale: string | null;
|
|
35
|
-
targetLocale: string;
|
|
36
|
-
fast?: boolean | undefined;
|
|
37
|
-
reference?: Record<string, Record<string, any>> | undefined;
|
|
38
|
-
hints?: Record<string, string[]> | undefined;
|
|
39
|
-
}>;
|
|
15
|
+
reference: Z.ZodOptional<Z.ZodRecord<Z.ZodString, Z.ZodRecord<Z.ZodString, Z.ZodAny>>>;
|
|
16
|
+
hints: Z.ZodOptional<Z.ZodRecord<Z.ZodString, Z.ZodArray<Z.ZodString>>>;
|
|
17
|
+
}, Z.core.$strip>;
|
|
40
18
|
/**
|
|
41
19
|
* LingoDotDevEngine class for interacting with the LingoDotDev API
|
|
42
20
|
* A powerful localization engine that supports various content types including
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingo.dev/_sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Lingo.dev JS SDK",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@paralleldrive/cuid2": "2.2.2",
|
|
28
28
|
"jsdom": "25.0.1",
|
|
29
|
-
"zod": "
|
|
30
|
-
"@lingo.dev/_spec": "0.
|
|
29
|
+
"zod": "4.1.12",
|
|
30
|
+
"@lingo.dev/_spec": "0.47.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/jsdom": "21.1.7",
|