feat: add rest of todos for types to define

This commit is contained in:
RobWalt 2023-08-26 14:16:41 +02:00
parent fd3d10af89
commit d37540d8a2
No known key found for this signature in database
GPG key ID: 333C6AC0CEF0CE68
30 changed files with 283 additions and 27 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -1,27 +0,0 @@
FilesResponse
GitignoreTemplateInfo
IssueConfig
IssueConfigContactLink
IssueConfigValidation
IssueDeadline
IssueMeta
LabelTemplate
LicenseTemplateInfo
LicensesTemplateListEntry
MarkdownOption
MarkupOption
NewIssuePinsAllowed
NodeInfo
NodeInfoServices
NodeInfoSoftware
NodeInfoUsage
NodeInfoUsageUsers
NotificationCount
NotificationSubject
NotificationThread
NotifySubjectType
RenameUserOption
ServerVersion
TimeStamp
TopicResponse
WikiPageMetaData

View file

@ -0,0 +1,10 @@
//FilesResponse{
//description:
//FilesResponse contains information about multiple files from a repo
//
//commit FileCommitResponse contains information generated from a Git commit for a repo's file.{...}
//files [
//x-go-name: Files
//ContentsResponse{...}]
//verification PayloadCommitVerification{...}
//}

View file

@ -0,0 +1,7 @@
//GitignoreTemplateInfo{
//description:
//GitignoreTemplateInfo name and text of a gitignore template
//
//name string
//source string
//}

View file

@ -0,0 +1,6 @@
//IssueConfig{
//blank_issues_enabled boolean
//contact_links [
//x-go-name: ContactLinks
//IssueConfigContactLink{...}]
//}

View file

@ -0,0 +1,5 @@
//IssueConfigContactLink{
//about string
//name string
//url string
//}

View file

@ -0,0 +1,4 @@
//IssueConfigValidation{
//message string
//valid boolean
//}

View file

@ -0,0 +1,6 @@
//IssueDeadline{
//description:
//IssueDeadline represents an issue deadline
//
//due_date string($date-time)
//}

View file

@ -0,0 +1,8 @@
//IssueMeta{
//description:
//IssueMeta basic issue information
//
//index integer($int64)
//owner string
//repo string
//}

View file

@ -0,0 +1,11 @@
//LabelTemplate{
//description:
//LabelTemplate info of a Label template
//
//color string
//example: 00aabb
//description string
//exclusive boolean
//example: false
//name string
//}

View file

@ -0,0 +1,10 @@
//LicenseTemplateInfo{
//description:
//LicensesInfo contains information about a License
//
//body string
//implementation string
//key string
//name string
//url string
//}

View file

@ -0,0 +1,8 @@
//LicensesTemplateListEntry{
//description:
//LicensesListEntry is used for the API
//
//key string
//name string
//url string
//}

View file

@ -0,0 +1,25 @@
//MarkdownOption{
//description:
//MarkdownOption markdown options
//
//Context string
//Context to render
//
//in: body
//
//Mode string
//Mode to render (comment, gfm, markdown)
//
//in: body
//
//Text string
//Text markdown to render
//
//in: body
//
//Wiki boolean
//Is it a wiki page ?
//
//in: body
//
//}

View file

@ -0,0 +1,30 @@
//MarkupOption{
//description:
//MarkupOption markup options
//
//Context string
//Context to render
//
//in: body
//
//FilePath string
//File path for detecting extension in file mode
//
//in: body
//
//Mode string
//Mode to render (comment, gfm, markdown, file)
//
//in: body
//
//Text string
//Text markup to render
//
//in: body
//
//Wiki boolean
//Is it a wiki page ?
//
//in: body
//
//}

View file

@ -51,6 +51,7 @@ pub mod access_token;
/* to-todo */ pub mod file_delete_response;
/* to-todo */ pub mod file_link_response;
/* to-todo */ pub mod file_response;
/* to-todo */ pub mod files_response;
/* to-todo */ pub mod general_api_settings;
/* to-todo */ pub mod git_blob;
/* to-todo */ pub mod git_entry;
@ -58,19 +59,40 @@ pub mod access_token;
/* to-todo */ pub mod git_object;
/* to-todo */ pub mod git_ref;
/* to-todo */ pub mod git_tree;
/* to-todo */ pub mod gitignore_tempalte_info;
/* to-todo */ pub mod gpg_key;
/* to-todo */ pub mod gpg_key_email;
/* to-todo */ pub mod heat_map;
/* to-todo */ pub mod identity;
/* to-todo */ pub mod issue;
/* to-todo */ pub mod issue_config;
/* to-todo */ pub mod issue_config_contact_link;
/* to-todo */ pub mod issue_config_validation;
/* to-todo */ pub mod issue_deadline;
/* to-todo */ pub mod issue_form_field;
/* to-todo */ pub mod issue_form_field_type;
/* to-todo */ pub mod issue_meta;
/* to-todo */ pub mod issue_template;
/* to-todo */ pub mod issue_template_labels;
/* to-todo */ pub mod label_template;
/* to-todo */ pub mod license_template_info;
/* to-todo */ pub mod licenses_template_list_entry;
/* to-todo */ pub mod markdown_option;
/* to-todo */ pub mod markup_option;
/* to-todo */ pub mod merge;
/* to-todo */ pub mod migration;
/* to-todo */ pub mod milestone;
/* to-todo */ pub mod new_issue_pins_allowed;
/* to-todo */ pub mod node_info;
/* to-todo */ pub mod node_info_services;
/* to-todo */ pub mod node_info_software;
/* to-todo */ pub mod node_info_usage;
/* to-todo */ pub mod node_info_usage_users;
/* to-todo */ pub mod note;
/* to-todo */ pub mod notification_count;
/* to-todo */ pub mod notification_subject;
/* to-todo */ pub mod notification_thread;
/* to-todo */ pub mod notify_subject_type;
/* to-todo */ pub mod oath_application;
/* to-todo */ pub mod package;
/* to-todo */ pub mod package_file;
@ -86,18 +108,22 @@ pub mod access_token;
/* to-todo */ pub mod push_mirror;
/* to-todo */ pub mod reaction;
/* to-todo */ pub mod release;
/* to-todo */ pub mod rename_user_option;
/* to-todo */ pub mod replace;
/* to-todo */ pub mod repo_collaborator_permission;
/* to-todo */ pub mod repo_commit;
/* to-todo */ pub mod repo_meta;
/* to-todo */ pub mod repository_settings;
/* to-todo */ pub mod review_state;
/* to-todo */ pub mod server_verion;
/* to-todo */ pub mod state_type;
/* to-todo */ pub mod stop_watch;
/* to-todo */ pub mod submit_pull_review;
/* to-todo */ pub mod tag;
/* to-todo */ pub mod time_stamp;
/* to-todo */ pub mod timeline_comment;
/* to-todo */ pub mod topic;
/* to-todo */ pub mod topic_response;
/* to-todo */ pub mod tracked_time;
/* to-todo */ pub mod transfer;
/* to-todo */ pub mod ui_settings;
@ -106,3 +132,4 @@ pub mod access_token;
/* to-todo */ pub mod wiki_commit;
/* to-todo */ pub mod wiki_commit_list;
/* to-todo */ pub mod wiki_page;
/* to-todo */ pub mod wiki_page_meta_data;

View file

@ -0,0 +1,7 @@
//NewIssuePinsAllowed{
//description:
//NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed
//
//issues boolean
//pull_requests boolean
//}

View file

@ -0,0 +1,15 @@
//NodeInfo{
//description:
//NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks
//
//metadata {
//}
//openRegistrations boolean
//protocols [
//x-go-name: Protocols
//string]
//services NodeInfoServices{...}
//software NodeInfoSoftware{...}
//usage NodeInfoUsage{...}
//version string
//}

View file

@ -0,0 +1,11 @@
//NodeInfoServices{
//description:
//NodeInfoServices contains the third party sites this server can connect to via their application API
//
//inbound [
//x-go-name: Inbound
//string]
//outbound [
//x-go-name: Outbound
//string]
//}

View file

@ -0,0 +1,9 @@
//NodeInfoSoftware{
//description:
//NodeInfoSoftware contains Metadata about server software in use
//
//homepage string
//name string
//repository string
//version string
//}

View file

@ -0,0 +1,8 @@
//NodeInfoUsage{
//description:
//NodeInfoUsage contains usage statistics for this server
//
//localComments integer($int64)
//localPosts integer($int64)
//users NodeInfoUsageUsers{...}
//}

View file

@ -0,0 +1,8 @@
//NodeInfoUsageUsers{
//description:
//NodeInfoUsageUsers contains statistics about the users of this server
//
//activeHalfyear integer($int64)
//activeMonth integer($int64)
//total integer($int64)
//}

View file

@ -0,0 +1,6 @@
//NotificationCount{
//description:
//NotificationCount number of unread notifications
//
//new integer($int64)
//}

View file

@ -0,0 +1,12 @@
//NotificationSubject{
//description:
//NotificationSubject contains the notification subject (Issue/Pull/Commit)
//
//html_url string
//latest_comment_html_url string
//latest_comment_url string
//state StateType[...]
//title string
//type NotifySubjectType[...]
//url string
//}

View file

@ -0,0 +1,12 @@
//NotificationThread{
//description:
//NotificationThread expose Notification on API
//
//id integer($int64)
//pinned boolean
//repository Repository{...}
//subject NotificationSubject{...}
//unread boolean
//updated_at string($date-time)
//url string
//}

View file

@ -0,0 +1,2 @@
//NotifySubjectTypestring
//NotifySubjectType represent type of notification subject

View file

@ -0,0 +1,9 @@
//RenameUserOption{
//description:
//RenameUserOption options when renaming a user
//
//new_username* string
//uniqueItems: true
//New username for this user. This name cannot be in use yet by any other user.
//
//}

View file

@ -0,0 +1,6 @@
//ServerVersion{
//description:
//ServerVersion wraps the version of the server
//
//version string
//}

View file

@ -0,0 +1,2 @@
//TimeStampinteger($int64)
//TimeStamp defines a timestamp

View file

@ -0,0 +1,10 @@
//TopicResponse{
//description:
//TopicResponse for returning topics
//
//created string($date-time)
//id integer($int64)
//repo_count integer($int64)
//topic_name string
//updated string($date-time)
//}

View file

@ -0,0 +1,9 @@
//WikiPageMetaData{
//description:
//WikiPageMetaData wiki page meta information
//
//html_url string
//last_commit WikiCommit{...}
//sub_url string
//title string
//}