Skip to content

Commit

Permalink
fix codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
longshuicy committed Jul 22, 2024
1 parent 437aeb2 commit 7e569f2
Show file tree
Hide file tree
Showing 20 changed files with 2,002 additions and 1,841 deletions.
3 changes: 0 additions & 3 deletions frontend/src/openapi/v2/models/AuthorizationOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ export type AuthorizationOut = {
user_ids?: Array<string>;
role: RoleType;
group_ids?: Array<string>;
/**
* MongoDB document ObjectID
*/
id?: string;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/DatasetFreezeOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import type { UserOut } from './UserOut';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type DatasetFreezeOut = {
name?: string;
Expand All @@ -25,9 +30,6 @@ export type DatasetFreezeOut = {
origin_id?: string;
standard_license?: boolean;
license_id?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
frozen?: boolean;
frozen_version_num: number;
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/DatasetOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import type { UserOut } from './UserOut';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type DatasetOut = {
name?: string;
Expand All @@ -25,9 +30,6 @@ export type DatasetOut = {
origin_id?: string;
standard_license?: boolean;
license_id?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
frozen?: boolean;
frozen_version_num?: number;
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/openapi/v2/models/EventListenerJobDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ export type EventListenerJobDB = {
duration?: number;
latest_message?: string;
status?: string;
/**
* MongoDB document ObjectID
*/
_id?: string;
}
3 changes: 0 additions & 3 deletions frontend/src/openapi/v2/models/EventListenerJobOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ export type EventListenerJobOut = {
duration?: number;
latest_message?: string;
status?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/EventListenerJobUpdateOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type EventListenerJobUpdateOut = {
job_id: string;
timestamp?: string;
status: string;
/**
* MongoDB document ObjectID
*/
id?: string;
}
3 changes: 0 additions & 3 deletions frontend/src/openapi/v2/models/EventListenerOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export type EventListenerOut = {
name: string;
version?: string;
description?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
creator?: UserOut;
created?: string;
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/FeedOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ import type { SearchObject } from './SearchObject';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type FeedOut = {
name: string;
description?: string;
search: SearchObject;
listeners?: Array<FeedListener>;
/**
* MongoDB document ObjectID
*/
id?: string;
creator?: string;
created?: string;
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/FileOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import type { UserOut } from './UserOut';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type FileOut = {
name?: string;
Expand All @@ -32,9 +37,6 @@ export type FileOut = {
storage_path?: string;
object_type?: string;
origin_id?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
frozen?: boolean;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/FolderOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import type { UserOut } from './UserOut';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type FolderOut = {
name?: string;
Expand All @@ -21,9 +26,6 @@ export type FolderOut = {
modified?: string;
object_type?: string;
origin_id?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
frozen?: boolean;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/GroupOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import type { Member } from './Member';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type GroupOut = {
creator: string;
Expand All @@ -19,9 +24,6 @@ export type GroupOut = {
name: string;
description?: string;
users?: Array<Member>;
/**
* MongoDB document ObjectID
*/
id?: string;
views?: number;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/LicenseOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type LicenseOut = {
creator: string;
Expand All @@ -20,8 +25,5 @@ export type LicenseOut = {
version?: string;
holders?: string;
expiration_date?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/MetadataDefinitionOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import type { UserOut } from './UserOut';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type MetadataDefinitionOut = {
name: string;
Expand All @@ -23,9 +28,6 @@ export type MetadataDefinitionOut = {
context_url?: string;
fields: Array<MetadataField>;
modified?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
creator: UserOut;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/MetadataOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import type { MongoDBRef } from './MongoDBRef';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type MetadataOut = {
'@context'?: Array<string>;
Expand All @@ -23,9 +28,6 @@ export type MetadataOut = {
agent: MetadataAgent;
created?: string;
origin_id?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
frozen?: boolean;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/ThumbnailOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import type { UserOut } from './UserOut';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type ThumbnailOut = {
creator: UserOut;
Expand All @@ -21,9 +26,6 @@ export type ThumbnailOut = {
content_type?: ContentType;
downloads?: number;
origin_id?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
frozen?: boolean;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/UserAPIKeyOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type UserAPIKeyOut = {
name: string;
key: string;
user: string;
created?: string;
expires?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
}
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/UserOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type UserOut = {
email: string;
first_name: string;
last_name: string;
/**
* MongoDB document ObjectID
*/
id?: string;
admin?: boolean;
admin_mode?: boolean;
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/VisualizationConfigOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import type { VisualizationDataOut } from './VisualizationDataOut';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type VisualizationConfigOut = {
resource: MongoDBRef;
Expand All @@ -24,9 +29,6 @@ export type VisualizationConfigOut = {
visualization_component_id: string;
visualization_mimetype: string;
origin_id?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
frozen?: boolean;
visualization_data?: Array<VisualizationDataOut>;
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/openapi/v2/models/VisualizationDataOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import type { UserOut } from './UserOut';
*
* - `id` - MongoDB document ObjectID "_id" field.
* Mapped to the PydanticObjectId class
*
* Inherited from:
*
* - Pydantic BaseModel
* - [UpdateMethods](https://roman-right.github.io/beanie/api/interfaces/#aggregatemethods)
*/
export type VisualizationDataOut = {
name?: string;
Expand All @@ -23,9 +28,6 @@ export type VisualizationDataOut = {
content_type?: ContentType;
visualization_config_id: string;
origin_id?: string;
/**
* MongoDB document ObjectID
*/
id?: string;
frozen?: boolean;
}
Loading

0 comments on commit 7e569f2

Please sign in to comment.