shared: use one LocalizedText type everywhere

auth, user, userbranch and org/branches each declared their own identical
{en, ru, tm} struct; they now use shared.LocalizedText. No JSON change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 14:19:59 +05:00
parent 75b551e281
commit 90e160bdb2
8 changed files with 92 additions and 139 deletions

View File

@@ -8154,7 +8154,7 @@ const docTemplate = `{
"type": "boolean"
},
"address": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"billingPassword": {
"type": "string"
@@ -8181,7 +8181,7 @@ const docTemplate = `{
"type": "string"
},
"name": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"phoneNumbers": {
"type": "string"
@@ -8197,20 +8197,6 @@ const docTemplate = `{
}
}
},
"branches.LocalizedText": {
"type": "object",
"properties": {
"en": {
"type": "string"
},
"ru": {
"type": "string"
},
"tm": {
"type": "string"
}
}
},
"branches.UpdateBranchDTO": {
"type": "object",
"required": [
@@ -8223,7 +8209,7 @@ const docTemplate = `{
"type": "boolean"
},
"address": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"billingPassword": {
"type": "string"
@@ -8250,7 +8236,7 @@ const docTemplate = `{
"type": "string"
},
"name": {
"$ref": "#/definitions/branches.LocalizedText"
"$ref": "#/definitions/shared.LocalizedText"
},
"phoneNumbers": {
"type": "string"