@vivocha/public-entities
Advanced tools
Comparing version 8.4.4 to 8.4.6
@@ -6,2 +6,21 @@ # Change Log | ||
## [8.4.6](https://github.com/vivocha/vivocha/compare/@vivocha/public-entities@8.4.5...@vivocha/public-entities@8.4.6) (2024-06-19) | ||
**Note:** Version bump only for package @vivocha/public-entities | ||
## [8.4.5](https://github.com/vivocha/vivocha/compare/@vivocha/public-entities@8.4.4...@vivocha/public-entities@8.4.5) (2024-06-11) | ||
### Bug Fixes | ||
* **public-types:** fix schema cp path in package.json ([0f5ccbd](https://github.com/vivocha/vivocha/commit/0f5ccbdc99b572ac27ab4075c10a63d2d3bd034c)) | ||
## [8.4.4](https://github.com/vivocha/vivocha/compare/@vivocha/public-entities@8.4.3...@vivocha/public-entities@8.4.4) (2024-06-07) | ||
@@ -8,0 +27,0 @@ |
{ | ||
"name": "@vivocha/public-entities", | ||
"version": "8.4.4", | ||
"version": "8.4.6", | ||
"description": "Vivocha public entities and types", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
"prebuild": "npx rimraf dist", | ||
"postbuild": "cp -a node_modules/@vivocha/public-types/schemas schemas", | ||
"postbuild": "cp -a node_modules/@vivocha/public-types/schemas/ schemas", | ||
"precommit": "npm run build && npm run cover && npm run check-coverage", | ||
@@ -33,4 +33,4 @@ "test": "npm run build && npm run build:tests && mocha --exit --no-timeouts --recursive --reporter mochawesome --reporter-options reportDir=test-results dist/test/**/*.test.js", | ||
"dependencies": { | ||
"@vivocha/public-types": "1.1.4", | ||
"@vivocha/public-wrappers": "1.0.2" | ||
"@vivocha/public-types": "1.2.0", | ||
"@vivocha/public-wrappers": "1.0.3" | ||
}, | ||
@@ -46,3 +46,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "bdb829212faba7f1c10118b7149442d5c40b7c00" | ||
"gitHead": "b489e1b953eaaa0740e04ae946ef6b3debee1a3e" | ||
} |
@@ -511,4 +511,78 @@ { | ||
} | ||
}, | ||
"translationManagerAPI": { | ||
"definitions": { | ||
"language": { | ||
"type": "object", | ||
"properties": { | ||
"code": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"occurrences": { "type": "integer" }, | ||
"selected": { "type": "boolean" }, | ||
"score": { "type": "number" } | ||
}, | ||
"required": ["code", "name"], | ||
"additionalProperties": false | ||
}, | ||
"direction": { | ||
"type": "object", | ||
"properties": { | ||
"from": { "type": "string" }, | ||
"to": { "type": "string" }, | ||
"valid": { "type": "boolean" } | ||
}, | ||
"required": ["from", "to"] | ||
}, | ||
"source": { | ||
"type": "object", | ||
"properties": { | ||
"direction": { "$ref": "#/definitions/translationManagerAPI/definitions/direction"}, | ||
"text": { "type": "string" }, | ||
"translatedText": { "type": "string" } | ||
}, | ||
"required": ["text"] | ||
}, | ||
"detectRequest": { | ||
"type": "object", | ||
"allOf": [{ "$ref": "#/definitions/request" }], | ||
"required": ["sources"], | ||
"properties": { | ||
"sources": { | ||
"type": "array", | ||
"items": {"$ref": "#/definitions/translationManagerAPI/definitions/source"} | ||
} | ||
} | ||
}, | ||
"detectResponse": { | ||
"allOf": [{ "$ref": "#/definitions/response" }], | ||
"type": "array", | ||
"items": { "$ref": "#/definitions/translationManagerAPI/definitions/language" } | ||
}, | ||
"translationRequest": { | ||
"type": "object", | ||
"allOf": [{ "$ref": "#/definitions/request" }], | ||
"required": ["sources", "direction"], | ||
"properties": { | ||
"direction": { "$ref": "#/definitions/translationManagerAPI/definitions/direction" }, | ||
"sources": { | ||
"type": "array", | ||
"items": { "$ref": "#/definitions/translationManagerAPI/definitions/source" } | ||
} | ||
} | ||
}, | ||
"translationResponse": { | ||
"type": "array", | ||
"items": { "$ref": "#/definitions/translationManagerAPI/definitions/source" } | ||
}, | ||
"languagesResponse": { | ||
"type": "object", | ||
"allOf": [{ "$ref": "#/definitions/response" }], | ||
"items": { | ||
"from": { "type": "array", "items": { "$ref": "#/definitions/translationManagerAPI/definitions/language" } }, | ||
"to": { "type": "array", "items": { "$ref": "#/definitions/translationManagerAPI/definitions/language" } } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
@@ -511,4 +511,78 @@ { | ||
} | ||
}, | ||
"translationManagerAPI": { | ||
"definitions": { | ||
"language": { | ||
"type": "object", | ||
"properties": { | ||
"code": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"occurrences": { "type": "integer" }, | ||
"selected": { "type": "boolean" }, | ||
"score": { "type": "number" } | ||
}, | ||
"required": ["code", "name"], | ||
"additionalProperties": false | ||
}, | ||
"direction": { | ||
"type": "object", | ||
"properties": { | ||
"from": { "type": "string" }, | ||
"to": { "type": "string" }, | ||
"valid": { "type": "boolean" } | ||
}, | ||
"required": ["from", "to"] | ||
}, | ||
"source": { | ||
"type": "object", | ||
"properties": { | ||
"direction": { "$ref": "#/definitions/translationManagerAPI/definitions/direction"}, | ||
"text": { "type": "string" }, | ||
"translatedText": { "type": "string" } | ||
}, | ||
"required": ["text"] | ||
}, | ||
"detectRequest": { | ||
"type": "object", | ||
"allOf": [{ "$ref": "#/definitions/request" }], | ||
"required": ["sources"], | ||
"properties": { | ||
"sources": { | ||
"type": "array", | ||
"items": {"$ref": "#/definitions/translationManagerAPI/definitions/source"} | ||
} | ||
} | ||
}, | ||
"detectResponse": { | ||
"allOf": [{ "$ref": "#/definitions/response" }], | ||
"type": "array", | ||
"items": { "$ref": "#/definitions/translationManagerAPI/definitions/language" } | ||
}, | ||
"translationRequest": { | ||
"type": "object", | ||
"allOf": [{ "$ref": "#/definitions/request" }], | ||
"required": ["sources", "direction"], | ||
"properties": { | ||
"direction": { "$ref": "#/definitions/translationManagerAPI/definitions/direction" }, | ||
"sources": { | ||
"type": "array", | ||
"items": { "$ref": "#/definitions/translationManagerAPI/definitions/source" } | ||
} | ||
} | ||
}, | ||
"translationResponse": { | ||
"type": "array", | ||
"items": { "$ref": "#/definitions/translationManagerAPI/definitions/source" } | ||
}, | ||
"languagesResponse": { | ||
"type": "object", | ||
"allOf": [{ "$ref": "#/definitions/response" }], | ||
"items": { | ||
"from": { "type": "array", "items": { "$ref": "#/definitions/translationManagerAPI/definitions/language" } }, | ||
"to": { "type": "array", "items": { "$ref": "#/definitions/translationManagerAPI/definitions/language" } } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
90735
2798
+ Added@vivocha/public-types@1.2.0(transitive)
+ Added@vivocha/public-wrappers@1.0.3(transitive)
- Removed@vivocha/public-types@1.1.4(transitive)
- Removed@vivocha/public-wrappers@1.0.2(transitive)
Updated@vivocha/public-types@1.2.0