mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 22:09:07 +02:00
update api
This commit is contained in:
@@ -1647,7 +1647,7 @@
|
||||
"admins": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/OptimizedPersonNode"
|
||||
"$ref": "#/components/schemas/Admin"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1739,7 +1739,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Admin"
|
||||
"$ref": "#/components/schemas/AdminRelationship"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1826,7 +1826,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Admin"
|
||||
"$ref": "#/components/schemas/AdminRelationship"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1996,7 +1996,7 @@
|
||||
"admins": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/OptimizedPersonNode"
|
||||
"$ref": "#/components/schemas/Admin"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2539,6 +2539,17 @@
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"biological_sex": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"male",
|
||||
"female",
|
||||
"intersex",
|
||||
"unknown",
|
||||
"other"
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"born": {
|
||||
"type": "string",
|
||||
"format": "date",
|
||||
@@ -2871,6 +2882,16 @@
|
||||
"limit": {
|
||||
"type": "integer"
|
||||
},
|
||||
"biological_sex": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"male",
|
||||
"female",
|
||||
"intersex",
|
||||
"unknown",
|
||||
"other"
|
||||
]
|
||||
},
|
||||
"born": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
@@ -2967,7 +2988,7 @@
|
||||
"StartId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"StartElementId":{
|
||||
"StartElementId": {
|
||||
"type": "string"
|
||||
},
|
||||
"EndId": {
|
||||
@@ -3019,6 +3040,17 @@
|
||||
"format": "date",
|
||||
"nullable": true
|
||||
},
|
||||
"biological_sex": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"male",
|
||||
"female",
|
||||
"intersex",
|
||||
"unknown",
|
||||
"other"
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"profile_picture": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
@@ -3186,6 +3218,37 @@
|
||||
}
|
||||
},
|
||||
"Admin": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"first_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminSince": {
|
||||
"type": "integer"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"EndId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"EndElementId": {
|
||||
"type": "string"
|
||||
},
|
||||
"Props": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"added": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AdminRelationship": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"Id": {
|
||||
@@ -3216,7 +3279,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Comment":{
|
||||
"Comment": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
@@ -3261,16 +3324,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Messages":{
|
||||
"Messages": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"people":{
|
||||
"people": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/OptimizedPersonNode"
|
||||
}
|
||||
},
|
||||
"comments":{
|
||||
"comments": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Comment"
|
||||
|
@@ -339,6 +339,8 @@ export interface components {
|
||||
aliases?: string[] | null;
|
||||
mothers_first_name?: string | null;
|
||||
mothers_last_name?: string | null;
|
||||
/** @enum {string|null} */
|
||||
biological_sex?: "male" | "female" | "intersex" | "unknown" | "other" | null;
|
||||
/** Format: date */
|
||||
born?: string | null;
|
||||
place_of_birth?: string | null;
|
||||
@@ -429,6 +431,8 @@ export interface components {
|
||||
/** Format: email */
|
||||
email?: string | null;
|
||||
limit: number;
|
||||
/** @enum {string} */
|
||||
biological_sex?: "male" | "female" | "intersex" | "unknown" | "other";
|
||||
/** Format: date */
|
||||
born: string;
|
||||
mothers_first_name: string;
|
||||
@@ -477,6 +481,8 @@ export interface components {
|
||||
born?: string;
|
||||
/** Format: date */
|
||||
died?: string | null;
|
||||
/** @enum {string|null} */
|
||||
biological_sex?: "male" | "female" | "intersex" | "unknown" | "other" | null;
|
||||
profile_picture?: string | null;
|
||||
};
|
||||
FamilyTree: {
|
||||
|
@@ -1,3 +1,4 @@
|
||||
import * as runtime from '$lib/paraglide/runtime';
|
||||
import { createI18n } from '@inlang/paraglide-sveltekit';
|
||||
|
||||
export const i18n = createI18n(runtime);
|
||||
|
@@ -13,6 +13,33 @@ import (
|
||||
openapi_types "github.com/oapi-codegen/runtime/types"
|
||||
)
|
||||
|
||||
// Defines values for OptimizedPersonNodeBiologicalSex.
|
||||
const (
|
||||
OptimizedPersonNodeBiologicalSexFemale OptimizedPersonNodeBiologicalSex = "female"
|
||||
OptimizedPersonNodeBiologicalSexIntersex OptimizedPersonNodeBiologicalSex = "intersex"
|
||||
OptimizedPersonNodeBiologicalSexMale OptimizedPersonNodeBiologicalSex = "male"
|
||||
OptimizedPersonNodeBiologicalSexOther OptimizedPersonNodeBiologicalSex = "other"
|
||||
OptimizedPersonNodeBiologicalSexUnknown OptimizedPersonNodeBiologicalSex = "unknown"
|
||||
)
|
||||
|
||||
// Defines values for PersonPropertiesBiologicalSex.
|
||||
const (
|
||||
PersonPropertiesBiologicalSexFemale PersonPropertiesBiologicalSex = "female"
|
||||
PersonPropertiesBiologicalSexIntersex PersonPropertiesBiologicalSex = "intersex"
|
||||
PersonPropertiesBiologicalSexMale PersonPropertiesBiologicalSex = "male"
|
||||
PersonPropertiesBiologicalSexOther PersonPropertiesBiologicalSex = "other"
|
||||
PersonPropertiesBiologicalSexUnknown PersonPropertiesBiologicalSex = "unknown"
|
||||
)
|
||||
|
||||
// Defines values for PersonRegistrationBiologicalSex.
|
||||
const (
|
||||
Female PersonRegistrationBiologicalSex = "female"
|
||||
Intersex PersonRegistrationBiologicalSex = "intersex"
|
||||
Male PersonRegistrationBiologicalSex = "male"
|
||||
Other PersonRegistrationBiologicalSex = "other"
|
||||
Unknown PersonRegistrationBiologicalSex = "unknown"
|
||||
)
|
||||
|
||||
// Defines values for CreatePersonAndRelationshipJSONBodyType.
|
||||
const (
|
||||
CreatePersonAndRelationshipJSONBodyTypeChild CreatePersonAndRelationshipJSONBodyType = "child"
|
||||
@@ -31,6 +58,19 @@ const (
|
||||
|
||||
// Admin defines model for Admin.
|
||||
type Admin struct {
|
||||
EndElementId *string `json:"EndElementId,omitempty"`
|
||||
EndId *int `json:"EndId,omitempty"`
|
||||
Props *struct {
|
||||
Added *int `json:"added,omitempty"`
|
||||
} `json:"Props,omitempty"`
|
||||
AdminSince *int `json:"adminSince,omitempty"`
|
||||
FirstName *string `json:"first_name,omitempty"`
|
||||
Id *int `json:"id,omitempty"`
|
||||
LastName *string `json:"last_name,omitempty"`
|
||||
}
|
||||
|
||||
// AdminRelationship defines model for AdminRelationship.
|
||||
type AdminRelationship struct {
|
||||
EndElementId *string `json:"EndElementId,omitempty"`
|
||||
EndId *int `json:"EndId,omitempty"`
|
||||
Id *int `json:"Id,omitempty"`
|
||||
@@ -99,17 +139,21 @@ type Messages struct {
|
||||
|
||||
// OptimizedPersonNode defines model for OptimizedPersonNode.
|
||||
type OptimizedPersonNode struct {
|
||||
Born *openapi_types.Date `json:"born,omitempty"`
|
||||
Died *openapi_types.Date `json:"died"`
|
||||
FirstName *string `json:"first_name,omitempty"`
|
||||
Id *int `json:"id,omitempty"`
|
||||
Labels *[]string `json:"labels,omitempty"`
|
||||
LastName *string `json:"last_name,omitempty"`
|
||||
MiddleName *string `json:"middle_name,omitempty"`
|
||||
ProfilePicture *string `json:"profile_picture"`
|
||||
Type *string `json:"type"`
|
||||
BiologicalSex *OptimizedPersonNodeBiologicalSex `json:"biological_sex"`
|
||||
Born *openapi_types.Date `json:"born,omitempty"`
|
||||
Died *openapi_types.Date `json:"died"`
|
||||
FirstName *string `json:"first_name,omitempty"`
|
||||
Id *int `json:"id,omitempty"`
|
||||
Labels *[]string `json:"labels,omitempty"`
|
||||
LastName *string `json:"last_name,omitempty"`
|
||||
MiddleName *string `json:"middle_name,omitempty"`
|
||||
ProfilePicture *string `json:"profile_picture"`
|
||||
Type *string `json:"type"`
|
||||
}
|
||||
|
||||
// OptimizedPersonNodeBiologicalSex defines model for OptimizedPersonNode.BiologicalSex.
|
||||
type OptimizedPersonNodeBiologicalSex string
|
||||
|
||||
// Person defines model for Person.
|
||||
type Person struct {
|
||||
ElementId *string `json:"ElementId,omitempty"`
|
||||
@@ -128,22 +172,23 @@ type PersonProperties struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Url *string `json:"url,omitempty"`
|
||||
} `json:"audios"`
|
||||
Baptized *string `json:"baptized"`
|
||||
BloodType *string `json:"blood_type"`
|
||||
Born *openapi_types.Date `json:"born"`
|
||||
Died *openapi_types.Date `json:"died"`
|
||||
Email *string `json:"email"`
|
||||
ExtraNames *[]string `json:"extra_names"`
|
||||
EyeColour *string `json:"eye_colour"`
|
||||
FirstName *string `json:"first_name"`
|
||||
GoogleId *string `json:"google_id"`
|
||||
HairColour *string `json:"hair_colour"`
|
||||
Height *float32 `json:"height"`
|
||||
Hobbies *[]string `json:"hobbies"`
|
||||
Ideologies *[]string `json:"ideologies"`
|
||||
Interests *[]string `json:"interests"`
|
||||
InviteCode *string `json:"invite_code"`
|
||||
Languages *[]struct {
|
||||
Baptized *string `json:"baptized"`
|
||||
BiologicalSex *PersonPropertiesBiologicalSex `json:"biological_sex"`
|
||||
BloodType *string `json:"blood_type"`
|
||||
Born *openapi_types.Date `json:"born"`
|
||||
Died *openapi_types.Date `json:"died"`
|
||||
Email *string `json:"email"`
|
||||
ExtraNames *[]string `json:"extra_names"`
|
||||
EyeColour *string `json:"eye_colour"`
|
||||
FirstName *string `json:"first_name"`
|
||||
GoogleId *string `json:"google_id"`
|
||||
HairColour *string `json:"hair_colour"`
|
||||
Height *float32 `json:"height"`
|
||||
Hobbies *[]string `json:"hobbies"`
|
||||
Ideologies *[]string `json:"ideologies"`
|
||||
Interests *[]string `json:"interests"`
|
||||
InviteCode *string `json:"invite_code"`
|
||||
Languages *[]struct {
|
||||
Language *string `json:"language,omitempty"`
|
||||
Level *string `json:"level"`
|
||||
} `json:"languages"`
|
||||
@@ -206,17 +251,24 @@ type PersonProperties struct {
|
||||
Weight *float32 `json:"weight"`
|
||||
}
|
||||
|
||||
// PersonPropertiesBiologicalSex defines model for PersonProperties.BiologicalSex.
|
||||
type PersonPropertiesBiologicalSex string
|
||||
|
||||
// PersonRegistration defines model for PersonRegistration.
|
||||
type PersonRegistration struct {
|
||||
Born openapi_types.Date `json:"born"`
|
||||
Email *openapi_types.Email `json:"email"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
Limit int `json:"limit"`
|
||||
MothersFirstName string `json:"mothers_first_name"`
|
||||
MothersLastName string `json:"mothers_last_name"`
|
||||
BiologicalSex *PersonRegistrationBiologicalSex `json:"biological_sex,omitempty"`
|
||||
Born openapi_types.Date `json:"born"`
|
||||
Email *openapi_types.Email `json:"email"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
Limit int `json:"limit"`
|
||||
MothersFirstName string `json:"mothers_first_name"`
|
||||
MothersLastName string `json:"mothers_last_name"`
|
||||
}
|
||||
|
||||
// PersonRegistrationBiologicalSex defines model for PersonRegistration.BiologicalSex.
|
||||
type PersonRegistrationBiologicalSex string
|
||||
|
||||
// Recipe defines model for Recipe.
|
||||
type Recipe struct {
|
||||
ElementId *string `json:"ElementId,omitempty"`
|
||||
|
Reference in New Issue
Block a user