mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-31 06:29:46 +08:00
59
src/data/schema/uiaf-schema.json
Normal file
59
src/data/schema/uiaf-schema.json
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"info": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"export_app": {
|
||||
"type": "string",
|
||||
"description": "Export application name"
|
||||
},
|
||||
"export_app_version": {
|
||||
"type": "string",
|
||||
"description": "Export application version"
|
||||
},
|
||||
"uiaf_version": {
|
||||
"type": "string",
|
||||
"description": "UIAF version applied; Used to prevent application not working when UIGF have breaking update",
|
||||
"pattern": "v\\d+.\\d+"
|
||||
},
|
||||
"export_timestamp": {
|
||||
"type": "number",
|
||||
"description": "Export time in UNIX timestamp"
|
||||
}
|
||||
},
|
||||
"required": ["export_app", "uiaf_version"],
|
||||
"description": "Include basic information defined by export application"
|
||||
},
|
||||
"list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number",
|
||||
"description": "Achievement ID"
|
||||
},
|
||||
"current": {
|
||||
"type": "number",
|
||||
"description": "Process"
|
||||
},
|
||||
"status": {
|
||||
"type": "number",
|
||||
"description": "Finished status",
|
||||
"enum": [0, 1, 2, 3],
|
||||
"enumDesc": "ACHIEVEMENT_INVALID = 0; ACHIEVEMENT_UNFINISHED = 1; ACHIEVEMENT_FINISHED = 2;ACHIEVEMENT_POINT_TAKEN = 3;"
|
||||
},
|
||||
"timestamp": {
|
||||
"type": "number",
|
||||
"description": "Finished time"
|
||||
}
|
||||
},
|
||||
"required": ["id", "current", "status", "timestamp"],
|
||||
"description": "To represent an achievement"
|
||||
},
|
||||
"description": "Include finished or unfinished achievements"
|
||||
}
|
||||
},
|
||||
"required": ["info", "list"]
|
||||
}
|
||||
96
src/data/schema/uigf-schema.json
Normal file
96
src/data/schema/uigf-schema.json
Normal file
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"info": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uid": {
|
||||
"type": "string",
|
||||
"title": "UID of the export record"
|
||||
},
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"title": "language in the format of languagecode2-country/regioncode2"
|
||||
},
|
||||
"export_timestamp": {
|
||||
"type": "number",
|
||||
"title": "Export UNIX timestamp (accurate to the second)"
|
||||
},
|
||||
"export_time": {
|
||||
"type": "string",
|
||||
"title": "Export time",
|
||||
"description": "yyyy-MM-dd HH:mm:ss"
|
||||
},
|
||||
"export_app": {
|
||||
"type": "string",
|
||||
"title": "Name of the export application"
|
||||
},
|
||||
"export_app_version": {
|
||||
"type": "string",
|
||||
"title": "Version of the export application"
|
||||
},
|
||||
"uigf_version": {
|
||||
"type": "string",
|
||||
"title": "UIGF version; follow the regular expression pattern",
|
||||
"pattern": "v\\d+\\.\\d+"
|
||||
},
|
||||
"region_time_zone": {
|
||||
"type": "number",
|
||||
"title": "Region timezone offset"
|
||||
}
|
||||
},
|
||||
"required": ["uid", "uigf_version"],
|
||||
"title": "UIGF Export Information"
|
||||
},
|
||||
"list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"uigf_gacha_type": {
|
||||
"type": "string",
|
||||
"title": "UIGF gacha type",
|
||||
"description": "Used to differentiate different gacha types with the same pity calculation for items"
|
||||
},
|
||||
"gacha_type": {
|
||||
"type": "string",
|
||||
"title": "Gacha type"
|
||||
},
|
||||
"item_id": {
|
||||
"type": "string",
|
||||
"title": "Internal ID of the item"
|
||||
},
|
||||
"count": {
|
||||
"type": "string",
|
||||
"title": "Count, usually 1"
|
||||
},
|
||||
"time": {
|
||||
"type": "string",
|
||||
"title": "Time when the item was obtained"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"title": "Item name"
|
||||
},
|
||||
"item_type": {
|
||||
"type": "string",
|
||||
"title": "Item type"
|
||||
},
|
||||
"rank_type": {
|
||||
"type": "string",
|
||||
"title": "Item rank"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Internal ID of the record"
|
||||
}
|
||||
},
|
||||
"required": ["uigf_gacha_type", "gacha_type", "id", "item_id", "time"],
|
||||
"title": "UIGF Item"
|
||||
},
|
||||
"title": "Item List"
|
||||
}
|
||||
},
|
||||
"required": ["info", "list"],
|
||||
"title": "UIGF Root Object"
|
||||
}
|
||||
Reference in New Issue
Block a user