@lokalise/translation-storage-api-schemas 1.0.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/README.md +3 -0
- package/package.json +40 -0
- package/src/apiContracts.d.ts +6 -0
- package/src/constants.ts +11 -0
- package/src/feature-flags.ts +3 -0
- package/src/index.ts +10 -0
- package/src/schemas/api/content-manager.ts +688 -0
- package/src/schemas/api/content.ts +316 -0
- package/src/schemas/api/context.ts +398 -0
- package/src/schemas/api/editor.ts +599 -0
- package/src/schemas/api/translation-process.ts +134 -0
- package/src/schemas/objects.ts +609 -0
package/README.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lokalise/translation-storage-api-schemas",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"src"
|
|
6
|
+
],
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./dist/index.js",
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "rimraf dist && tsc --project tsconfig.build.json",
|
|
15
|
+
"clean": "rimraf dist",
|
|
16
|
+
"lint": "biome check . && tsc",
|
|
17
|
+
"lint:fix": "biome check --write",
|
|
18
|
+
"package-version": "echo $npm_package_version",
|
|
19
|
+
"postversion": "biome check --write package.json"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@lokalise/api-common": "^6.1.0",
|
|
23
|
+
"@lokalise/api-contracts": "^5.4.0",
|
|
24
|
+
"@lokalise/common-api-schemas": "^1.5.2",
|
|
25
|
+
"@lokalise/supported-languages": "^3.1.0",
|
|
26
|
+
"@lokalise/universal-ts-utils": "^4.8.0",
|
|
27
|
+
"@lokalise/zod-extras": "^3.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@biomejs/biome": "^2.0.0",
|
|
31
|
+
"@lokalise/biome-config": "^3.0.0",
|
|
32
|
+
"@lokalise/tsconfig": "^1.3.0",
|
|
33
|
+
"@lokalise/zod-extras": "^3.0.0",
|
|
34
|
+
"rimraf": "^6.0.1",
|
|
35
|
+
"typescript": "5.8.2"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"zod": "^4.1.12"
|
|
39
|
+
}
|
|
40
|
+
}
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Value used to divide the item name into multiple parts.
|
|
3
|
+
* Example: string "Snowboard color\uFFFDred" represents an item name consisting of "Snowboard color" and "red" parts.
|
|
4
|
+
*/
|
|
5
|
+
export const ITEM_NAME_NON_CHARACTER_DIVIDER = '\uFFFD'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Service name for backend-translation-storage.
|
|
9
|
+
* Used across various packages to maintain consistency.
|
|
10
|
+
*/
|
|
11
|
+
export const TRANSLATION_STORAGE_SERVICE = 'backend-translation-storage'
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type * from './apiContracts.d.ts'
|
|
2
|
+
export * from './constants.ts'
|
|
3
|
+
export * from './feature-flags.ts'
|
|
4
|
+
export * from './schemas/api/content.ts'
|
|
5
|
+
export * from './schemas/api/content-manager.ts'
|
|
6
|
+
export * from './schemas/api/context.ts'
|
|
7
|
+
export * from './schemas/api/editor.ts'
|
|
8
|
+
export * from './schemas/api/editor.ts'
|
|
9
|
+
export * from './schemas/api/translation-process.ts'
|
|
10
|
+
export * from './schemas/objects.ts'
|