hh-contracts 0.0.65 → 0.0.66

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.
@@ -7,7 +7,7 @@ const translate_api_1 = require("../translate.api");
7
7
  const BatchTranslateContractRequestSchema = zod_1.z.object({
8
8
  text: zod_1.z.string().min(1),
9
9
  fromLang: common_1.LanguageKeysSchema,
10
- toLangs: zod_1.z.array(common_1.LanguageKeysSchema),
10
+ toLangs: zod_1.z.array(common_1.LanguageKeysSchema).min(1),
11
11
  });
12
12
  const TranslationsSchema = zod_1.z
13
13
  .object(Object.fromEntries(common_1.LANGUAGE_KEYS.map(l => [l, zod_1.z.string().min(1).nullable()])))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-contracts",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -5,7 +5,7 @@ import { TRANSLATE_API, TRANSLATE_CONTROLLER } from '../translate.api';
5
5
  const BatchTranslateContractRequestSchema = z.object({
6
6
  text: z.string().min(1),
7
7
  fromLang: LanguageKeysSchema,
8
- toLangs: z.array(LanguageKeysSchema),
8
+ toLangs: z.array(LanguageKeysSchema).min(1),
9
9
  });
10
10
 
11
11
  const TranslationsSchema = z