mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
update gen
This commit is contained in:
@@ -110,7 +110,7 @@ export interface paths {
|
||||
patch: operations["createPersonByGoogleIdAndInviteCode"];
|
||||
trace?: never;
|
||||
};
|
||||
"/person/{id}/family-tree": {
|
||||
"/family-tree": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
@@ -127,6 +127,23 @@ export interface paths {
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/family-tree-with-spouses": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
/** Get family tree by person ID with spouses included */
|
||||
get: operations["getFamilyTreeWithSpousesById"];
|
||||
put?: never;
|
||||
post?: never;
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/person/{id}/recipes": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
@@ -176,7 +193,8 @@ export interface paths {
|
||||
delete: operations["deleteRelationship"];
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
/** Update a relationship between two persons */
|
||||
patch: operations["updateRelationship"];
|
||||
trace?: never;
|
||||
};
|
||||
"/admin/{id1}": {
|
||||
@@ -439,13 +457,8 @@ export interface components {
|
||||
profile_picture?: string | null;
|
||||
};
|
||||
FamilyTree: {
|
||||
ancestors?: components["schemas"]["OptimizedPersonNode"][];
|
||||
prel1?: components["schemas"]["Relationship"];
|
||||
children?: components["schemas"]["OptimizedPersonNode"][];
|
||||
prel2?: components["schemas"]["Relationship"];
|
||||
spouses?: string;
|
||||
srel?: components["schemas"]["Relationship"];
|
||||
user?: string;
|
||||
people?: components["schemas"]["OptimizedPersonNode"][];
|
||||
relationships?: components["schemas"]["Relationship"][];
|
||||
};
|
||||
RecipeProperties: {
|
||||
name?: string | null;
|
||||
@@ -973,10 +986,54 @@ export interface operations {
|
||||
getFamilyTreeById: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path: {
|
||||
id: number;
|
||||
header: {
|
||||
"X-User-ID": number;
|
||||
};
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody?: never;
|
||||
responses: {
|
||||
/** @description Family tree retrieved */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["FamilyTree"];
|
||||
};
|
||||
};
|
||||
/** @description Bad request */
|
||||
400: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": {
|
||||
msg?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
/** @description Internal server error */
|
||||
500: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": {
|
||||
msg?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
getFamilyTreeWithSpousesById: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header: {
|
||||
"X-User-ID": number;
|
||||
};
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody?: never;
|
||||
@@ -1086,8 +1143,8 @@ export interface operations {
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": {
|
||||
id1?: string;
|
||||
id2?: string;
|
||||
id1?: number;
|
||||
id2?: number;
|
||||
/** @enum {string} */
|
||||
type?: "child" | "parent" | "spouse" | "sibling";
|
||||
relationship?: components["schemas"]["FamilyRelationship"];
|
||||
@@ -1246,6 +1303,61 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
updateRelationship: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header: {
|
||||
"X-User-ID": number;
|
||||
};
|
||||
path: {
|
||||
id1: number;
|
||||
id2: number;
|
||||
};
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": {
|
||||
id1?: number;
|
||||
id2?: number;
|
||||
relationship?: components["schemas"]["FamilyRelationship"];
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description Relationship created */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["Relationship"];
|
||||
};
|
||||
};
|
||||
/** @description Unauthorized */
|
||||
401: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": {
|
||||
msg?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
/** @description Internal server error */
|
||||
500: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": {
|
||||
msg?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
getProfileAdmins: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
|
@@ -28,14 +28,6 @@ const (
|
||||
CreateRelationshipJSONBodyTypeSpouse CreateRelationshipJSONBodyType = "spouse"
|
||||
)
|
||||
|
||||
// Defines values for UpdateRelationshipJSONBodyType.
|
||||
const (
|
||||
Child UpdateRelationshipJSONBodyType = "child"
|
||||
Parent UpdateRelationshipJSONBodyType = "parent"
|
||||
Sibling UpdateRelationshipJSONBodyType = "sibling"
|
||||
Spouse UpdateRelationshipJSONBodyType = "spouse"
|
||||
)
|
||||
|
||||
// Admin defines model for Admin.
|
||||
type Admin struct {
|
||||
End *string `json:"end,omitempty"`
|
||||
@@ -392,10 +384,9 @@ type GetRelationshipParams struct {
|
||||
|
||||
// UpdateRelationshipJSONBody defines parameters for UpdateRelationship.
|
||||
type UpdateRelationshipJSONBody struct {
|
||||
Id1 *int `json:"id1,omitempty"`
|
||||
Id2 *int `json:"id2,omitempty"`
|
||||
Relationship *FamilyRelationship `json:"relationship,omitempty"`
|
||||
Type *UpdateRelationshipJSONBodyType `json:"type,omitempty"`
|
||||
Id1 *int `json:"id1,omitempty"`
|
||||
Id2 *int `json:"id2,omitempty"`
|
||||
Relationship *FamilyRelationship `json:"relationship,omitempty"`
|
||||
}
|
||||
|
||||
// UpdateRelationshipParams defines parameters for UpdateRelationship.
|
||||
@@ -403,9 +394,6 @@ type UpdateRelationshipParams struct {
|
||||
XUserID int `json:"X-User-ID"`
|
||||
}
|
||||
|
||||
// UpdateRelationshipJSONBodyType defines parameters for UpdateRelationship.
|
||||
type UpdateRelationshipJSONBodyType string
|
||||
|
||||
// CreatePersonJSONRequestBody defines body for CreatePerson for application/json ContentType.
|
||||
type CreatePersonJSONRequestBody = PersonRegistration
|
||||
|
||||
|
Reference in New Issue
Block a user