Skip to content

Commit

Permalink
✨ Update new-frontend client (fastapi#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
alejsdev authored Mar 1, 2024
1 parent 8468976 commit dfe55f4
Show file tree
Hide file tree
Showing 25 changed files with 181 additions and 40 deletions.
4 changes: 4 additions & 0 deletions src/new-frontend/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type { Body_login_login_access_token } from './models/Body_login_login_ac
export type { HTTPValidationError } from './models/HTTPValidationError';
export type { ItemCreate } from './models/ItemCreate';
export type { ItemOut } from './models/ItemOut';
export type { ItemsOut } from './models/ItemsOut';
export type { ItemUpdate } from './models/ItemUpdate';
export type { Message } from './models/Message';
export type { NewPassword } from './models/NewPassword';
Expand All @@ -19,6 +20,7 @@ export type { UpdatePassword } from './models/UpdatePassword';
export type { UserCreate } from './models/UserCreate';
export type { UserCreateOpen } from './models/UserCreateOpen';
export type { UserOut } from './models/UserOut';
export type { UsersOut } from './models/UsersOut';
export type { UserUpdate } from './models/UserUpdate';
export type { UserUpdateMe } from './models/UserUpdateMe';
export type { ValidationError } from './models/ValidationError';
Expand All @@ -27,6 +29,7 @@ export { $Body_login_login_access_token } from './schemas/$Body_login_login_acce
export { $HTTPValidationError } from './schemas/$HTTPValidationError';
export { $ItemCreate } from './schemas/$ItemCreate';
export { $ItemOut } from './schemas/$ItemOut';
export { $ItemsOut } from './schemas/$ItemsOut';
export { $ItemUpdate } from './schemas/$ItemUpdate';
export { $Message } from './schemas/$Message';
export { $NewPassword } from './schemas/$NewPassword';
Expand All @@ -35,6 +38,7 @@ export { $UpdatePassword } from './schemas/$UpdatePassword';
export { $UserCreate } from './schemas/$UserCreate';
export { $UserCreateOpen } from './schemas/$UserCreateOpen';
export { $UserOut } from './schemas/$UserOut';
export { $UsersOut } from './schemas/$UsersOut';
export { $UserUpdate } from './schemas/$UserUpdate';
export { $UserUpdateMe } from './schemas/$UserUpdateMe';
export { $ValidationError } from './schemas/$ValidationError';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/* eslint-disable */

export type Body_login_login_access_token = {
grant_type?: string;
grant_type?: (string | null);
username: string;
password: string;
scope?: string;
client_id?: string;
client_secret?: string;
client_id?: (string | null);
client_secret?: (string | null);
};
2 changes: 1 addition & 1 deletion src/new-frontend/src/client/models/ItemCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

export type ItemCreate = {
title: string;
description?: string;
description?: (string | null);
};
3 changes: 2 additions & 1 deletion src/new-frontend/src/client/models/ItemOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

export type ItemOut = {
title: string;
description?: string;
description?: (string | null);
id: number;
owner_id: number;
};
4 changes: 2 additions & 2 deletions src/new-frontend/src/client/models/ItemUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
/* eslint-disable */

export type ItemUpdate = {
title?: string;
description?: string;
title?: (string | null);
description?: (string | null);
};
11 changes: 11 additions & 0 deletions src/new-frontend/src/client/models/ItemsOut.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { ItemOut } from './ItemOut';

export type ItemsOut = {
data: Array<ItemOut>;
count: number;
};
2 changes: 1 addition & 1 deletion src/new-frontend/src/client/models/UserCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export type UserCreate = {
email: string;
is_active?: boolean;
is_superuser?: boolean;
full_name?: string;
full_name?: (string | null);
password: string;
};
2 changes: 1 addition & 1 deletion src/new-frontend/src/client/models/UserCreateOpen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
export type UserCreateOpen = {
email: string;
password: string;
full_name?: string;
full_name?: (string | null);
};
2 changes: 1 addition & 1 deletion src/new-frontend/src/client/models/UserOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export type UserOut = {
email: string;
is_active?: boolean;
is_superuser?: boolean;
full_name?: string;
full_name?: (string | null);
id: number;
};
6 changes: 3 additions & 3 deletions src/new-frontend/src/client/models/UserUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/* eslint-disable */

export type UserUpdate = {
email?: string;
email?: (string | null);
is_active?: boolean;
is_superuser?: boolean;
full_name?: string;
password?: string;
full_name?: (string | null);
password?: (string | null);
};
4 changes: 2 additions & 2 deletions src/new-frontend/src/client/models/UserUpdateMe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
/* eslint-disable */

export type UserUpdateMe = {
full_name?: string;
email?: string;
full_name?: (string | null);
email?: (string | null);
};
11 changes: 11 additions & 0 deletions src/new-frontend/src/client/models/UsersOut.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { UserOut } from './UserOut';

export type UsersOut = {
data: Array<UserOut>;
count: number;
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
export const $Body_login_login_access_token = {
properties: {
grant_type: {
type: 'any-of',
contains: [{
type: 'string',
pattern: 'password',
}, {
type: 'null',
}],
},
username: {
type: 'string',
Expand All @@ -20,10 +25,20 @@ export const $Body_login_login_access_token = {
type: 'string',
},
client_id: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
client_secret: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
},
} as const;
5 changes: 5 additions & 0 deletions src/new-frontend/src/client/schemas/$ItemCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ export const $ItemCreate = {
isRequired: true,
},
description: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
},
} as const;
9 changes: 9 additions & 0 deletions src/new-frontend/src/client/schemas/$ItemOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,20 @@ export const $ItemOut = {
isRequired: true,
},
description: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
id: {
type: 'number',
isRequired: true,
},
owner_id: {
type: 'number',
isRequired: true,
},
},
} as const;
10 changes: 10 additions & 0 deletions src/new-frontend/src/client/schemas/$ItemUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@
export const $ItemUpdate = {
properties: {
title: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
description: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
},
} as const;
19 changes: 19 additions & 0 deletions src/new-frontend/src/client/schemas/$ItemsOut.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ItemsOut = {
properties: {
data: {
type: 'array',
contains: {
type: 'ItemOut',
},
isRequired: true,
},
count: {
type: 'number',
isRequired: true,
},
},
} as const;
6 changes: 5 additions & 1 deletion src/new-frontend/src/client/schemas/$UserCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const $UserCreate = {
email: {
type: 'string',
isRequired: true,
format: 'email',
},
is_active: {
type: 'boolean',
Expand All @@ -16,7 +15,12 @@ export const $UserCreate = {
type: 'boolean',
},
full_name: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
password: {
type: 'string',
Expand Down
6 changes: 5 additions & 1 deletion src/new-frontend/src/client/schemas/$UserCreateOpen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ export const $UserCreateOpen = {
email: {
type: 'string',
isRequired: true,
format: 'email',
},
password: {
type: 'string',
isRequired: true,
},
full_name: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
},
} as const;
6 changes: 5 additions & 1 deletion src/new-frontend/src/client/schemas/$UserOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const $UserOut = {
email: {
type: 'string',
isRequired: true,
format: 'email',
},
is_active: {
type: 'boolean',
Expand All @@ -16,7 +15,12 @@ export const $UserOut = {
type: 'boolean',
},
full_name: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
id: {
type: 'number',
Expand Down
16 changes: 15 additions & 1 deletion src/new-frontend/src/client/schemas/$UserUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
export const $UserUpdate = {
properties: {
email: {
type: 'any-of',
contains: [{
type: 'string',
format: 'email',
}, {
type: 'null',
}],
},
is_active: {
type: 'boolean',
Expand All @@ -15,10 +19,20 @@ export const $UserUpdate = {
type: 'boolean',
},
full_name: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
password: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
},
} as const;
11 changes: 10 additions & 1 deletion src/new-frontend/src/client/schemas/$UserUpdateMe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@
export const $UserUpdateMe = {
properties: {
full_name: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'null',
}],
},
email: {
type: 'any-of',
contains: [{
type: 'string',
format: 'email',
}, {
type: 'null',
}],
},
},
} as const;
19 changes: 19 additions & 0 deletions src/new-frontend/src/client/schemas/$UsersOut.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $UsersOut = {
properties: {
data: {
type: 'array',
contains: {
type: 'UserOut',
},
isRequired: true,
},
count: {
type: 'number',
isRequired: true,
},
},
} as const;
Loading

0 comments on commit dfe55f4

Please sign in to comment.