From 1d61fbcecb8d5b286bb1c2e727bdf7d233c566da Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Thu, 20 Oct 2022 10:46:10 +0300 Subject: [PATCH] OAS Improvements (#4708) * OAS Improvements * Update docs --- .changeset/large-dingos-sit.md | 8 + .../tests/__snapshots__/orbit.test.js.snap | 1036 +++++++++-------- packages/loaders/openapi/src/utils.ts | 4 + .../tests/__snapshots__/calendly.test.ts.snap | 22 +- .../tests/__snapshots__/schemas.test.ts.snap | 108 +- .../utils/src/sanitize-name-for-graphql.ts | 2 +- website/src/pages/docs/handlers/openapi.mdx | 2 +- 7 files changed, 633 insertions(+), 549 deletions(-) create mode 100644 .changeset/large-dingos-sit.md diff --git a/.changeset/large-dingos-sit.md b/.changeset/large-dingos-sit.md new file mode 100644 index 0000000000000..df9b22e855082 --- /dev/null +++ b/.changeset/large-dingos-sit.md @@ -0,0 +1,8 @@ +--- +'@omnigraph/openapi': minor +'@graphql-mesh/utils': minor +--- + +BREAKING: +- ":" character is now sanitized as "_" instead of "\_COLON_" +- If a path starts with a variable like "{" in an OAS operation, "by_" prefix is no longer added. diff --git a/examples/openapi-orbit/tests/__snapshots__/orbit.test.js.snap b/examples/openapi-orbit/tests/__snapshots__/orbit.test.js.snap index d54c021d48698..7d556d98be5e1 100644 --- a/examples/openapi-orbit/tests/__snapshots__/orbit.test.js.snap +++ b/examples/openapi-orbit/tests/__snapshots__/orbit.test.js.snap @@ -12,21 +12,96 @@ type Query { "Get info about the current user" user: user_200_response "List activities for a workspace" - by_workspace_slug_activities(workspace_slug: String!, activity_tags: String, affiliation: queryInput_by_workspace_slug_activities_affiliation, member_tags: String, orbit_level: queryInput_by_workspace_slug_activities_orbit_level, activity_type: queryInput_by_workspace_slug_activities_activity_type, weight: String, identity: queryInput_by_workspace_slug_activities_identity, location: String, company: String, start_date: String, end_date: String, page: String, direction: queryInput_by_workspace_slug_activities_direction, items: queryInput_by_workspace_slug_activities_items, sort: queryInput_by_workspace_slug_activities_sort, type: String): by_workspace_slug_activities_200_response + workspace_slug_activities( + workspace_slug: String! + affiliation: queryInput_workspace_slug_activities_affiliation + "The list of tags to filter against. Separate tags with \`,\` to do an intersection (AND), or with \`|\` to do a union (OR)" + member_tags: String + "The list of orbit levels to filter against. Accepted values are 1, 2, 3, 4, n. In the request, a format like \`23\` would include levels 2 and 3. \`n\` is for members with no orbit level." + orbit: String + activity_type: queryInput_workspace_slug_activities_activity_type + identity: queryInput_workspace_slug_activities_identity + "Comma separated list of companies. The union (OR) of companies is applied." + company_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Comma separated list of job titles. The union (OR) of job titles is applied." + title_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Comma separated list of regions. The union (OR) of regions is applied." + regions_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Comma separated list of countries. The union (OR) of countries is applied." + countries_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Comma separated list of cities. The union (OR) of cities is applied." + cities_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Filter activities after this date. Format: YYYY-MM-DD." + start_date: String + "Filter activities before this date. Format: YYYY-MM-DD." + end_date: String + "Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days." + relative: String + page: String + direction: queryInput_workspace_slug_activities_direction + items: queryInput_workspace_slug_activities_items + sort: queryInput_workspace_slug_activities_sort + "Deprecated in favor of the activity_type parameter." + type: String + ): workspace_slug_activities_200_response "Get an activity in the workspace" - by_workspace_slug_activities_by_id(workspace_slug: String!, id: String!): by_workspace_slug_activities_by_id_200_response + workspace_slug_activities_by_id(workspace_slug: String!, id: String!): workspace_slug_activities_by_id_200_response "List all activity types for a workspace" - by_workspace_slug_activity_types(workspace_slug: String!): by_workspace_slug_activity_types_200_response + workspace_slug_activity_types(workspace_slug: String!): workspace_slug_activity_types_200_response "List activities for a member" - by_workspace_slug_members_by_member_slug_activities(workspace_slug: String!, member_slug: String!, page: String, direction: queryInput_by_workspace_slug_members_by_member_slug_activities_direction, items: queryInput_by_workspace_slug_members_by_member_slug_activities_items, sort: queryInput_by_workspace_slug_members_by_member_slug_activities_sort, activity_type: String, type: String): by_workspace_slug_members_by_member_slug_activities_200_response + workspace_slug_members_by_member_slug_activities( + workspace_slug: String! + member_slug: String! + page: String + direction: queryInput_workspace_slug_members_by_member_slug_activities_direction + items: queryInput_workspace_slug_members_by_member_slug_activities_items + sort: queryInput_workspace_slug_members_by_member_slug_activities_sort + activity_type: String + "Deprecated in favor of the activity_type parameter." + type: String + ): workspace_slug_members_by_member_slug_activities_200_response "Get the member's notes" - by_workspace_slug_members_by_member_slug_notes(workspace_slug: String!, member_slug: String!, page: String): by_workspace_slug_members_by_member_slug_notes_200_response + workspace_slug_members_by_member_slug_notes(workspace_slug: String!, member_slug: String!, page: String): workspace_slug_members_by_member_slug_notes_200_response "List members in a workspace" - by_workspace_slug_members(workspace_slug: String!, activity_tags: String, affiliation: queryInput_by_workspace_slug_members_affiliation, member_tags: String, orbit_level: queryInput_by_workspace_slug_members_orbit_level, activity_type: queryInput_by_workspace_slug_members_activity_type, weight: String, identity: queryInput_by_workspace_slug_members_identity, location: String, company: String, start_date: String, end_date: String, query: String, page: String, direction: queryInput_by_workspace_slug_members_direction, items: queryInput_by_workspace_slug_members_items, activities_count_min: String, activities_count_max: String, sort: queryInput_by_workspace_slug_members_sort, type: String): by_workspace_slug_members_200_response + workspace_slug_members( + workspace_slug: String! + affiliation: queryInput_workspace_slug_members_affiliation + "The list of tags to filter against. Separate tags with \`,\` to do an intersection (AND), or with \`|\` to do a union (OR)" + member_tags: String + "The list of orbit levels to filter against. Accepted values are 1, 2, 3, 4, n. In the request, a format like \`23\` would include levels 2 and 3. \`n\` is for members with no orbit level." + orbit: String + activity_type: queryInput_workspace_slug_members_activity_type + identity: queryInput_workspace_slug_members_identity + "Comma separated list of companies. The union (OR) of companies is applied." + company_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Comma separated list of job titles. The union (OR) of job titles is applied." + title_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Comma separated list of regions. The union (OR) of regions is applied." + regions_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Comma separated list of countries. The union (OR) of countries is applied." + countries_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Comma separated list of cities. The union (OR) of cities is applied." + cities_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + "Filter activities after this date. Format: YYYY-MM-DD." + start_date: String + "Filter activities before this date. Format: YYYY-MM-DD." + end_date: String + "Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days." + relative: String + query: String + page: String + direction: queryInput_workspace_slug_members_direction + items: queryInput_workspace_slug_members_items + activities_count_min: String + activities_count_max: String + sort: queryInput_workspace_slug_members_sort + "Deprecated in favor of the activity_type parameter." + type: String + ): workspace_slug_members_200_response "Get a member" - by_workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!): by_workspace_slug_members_by_member_slug_200_response + workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!): workspace_slug_members_by_member_slug_200_response "Provide a source and one of username/uid/email params to return a member with that identity, if one exists. Common values for source include github, twitter, and email." - by_workspace_slug_members_find( + workspace_slug_members_find( workspace_slug: String! source: String source_host: String @@ -35,21 +110,33 @@ type Query { email: String "Deprecated, please use source=github and username= instead" github: String - ): by_workspace_slug_members_find_response + ): workspace_slug_members_find_response "List member activities in an organization" - by_workspace_slug_organizations_by_organization_id_activities(workspace_slug: String!, organization_id: String!, page: String, direction: queryInput_by_workspace_slug_organizations_by_organization_id_activities_direction, items: queryInput_by_workspace_slug_organizations_by_organization_id_activities_items, sort: queryInput_by_workspace_slug_organizations_by_organization_id_activities_sort, activity_type: queryInput_by_workspace_slug_organizations_by_organization_id_activities_activity_type): by_workspace_slug_organizations_by_organization_id_activities_200_response + workspace_slug_organizations_by_organization_id_activities(workspace_slug: String!, organization_id: String!, page: String, direction: queryInput_workspace_slug_organizations_by_organization_id_activities_direction, items: queryInput_workspace_slug_organizations_by_organization_id_activities_items, sort: queryInput_workspace_slug_organizations_by_organization_id_activities_sort, activity_type: queryInput_workspace_slug_organizations_by_organization_id_activities_activity_type): workspace_slug_organizations_by_organization_id_activities_200_response "List members in an organization" - by_workspace_slug_organizations_by_organization_id_members(workspace_slug: String!, organization_id: String!, page: String, items: queryInput_by_workspace_slug_organizations_by_organization_id_members_items): by_workspace_slug_organizations_by_organization_id_members_200_response + workspace_slug_organizations_by_organization_id_members(workspace_slug: String!, organization_id: String!, page: String, items: queryInput_workspace_slug_organizations_by_organization_id_members_items): workspace_slug_organizations_by_organization_id_members_200_response "List organizations in a workspace" - by_workspace_slug_organizations(workspace_slug: String!, query: String, page: String, direction: queryInput_by_workspace_slug_organizations_direction, items: queryInput_by_workspace_slug_organizations_items, sort: queryInput_by_workspace_slug_organizations_sort): by_workspace_slug_organizations_200_response + workspace_slug_organizations(workspace_slug: String!, query: String, page: String, direction: queryInput_workspace_slug_organizations_direction, items: queryInput_workspace_slug_organizations_items, sort: queryInput_workspace_slug_organizations_sort): workspace_slug_organizations_200_response "Get an organization" - by_workspace_slug_organizations_by_organization_id(workspace_slug: String!, organization_id: String!): by_workspace_slug_organizations_by_organization_id_200_response + workspace_slug_organizations_by_organization_id(workspace_slug: String!, organization_id: String!): workspace_slug_organizations_by_organization_id_200_response "Get a workspace stats" - by_workspace_slug_reports(workspace_slug: String!, start_date: String, end_date: String, properties: String, activity_type: String, type: String): by_workspace_slug_reports_200_response + workspace_slug_reports( + workspace_slug: String! + "Filter activities after this date. Format: YYYY-MM-DD." + start_date: String + "Filter activities before this date. Format: YYYY-MM-DD." + end_date: String + "Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days." + relative: String + properties: String + activity_type: String + "Deprecated in favor of the activity_type parameter." + type: String + ): workspace_slug_reports_200_response "List destinations in a workspace" - by_workspace_slug_webhooks(workspace_slug: String!): by_workspace_slug_webhooks_200_response + workspace_slug_webhooks(workspace_slug: String!): workspace_slug_webhooks_200_response "Get a destination" - by_workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!): by_workspace_slug_webhooks_by_id_200_response + workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!): workspace_slug_webhooks_by_id_200_response "Get all workspaces for the current user" workspaces: workspaces_200_response "Get a workspace" @@ -79,27 +166,27 @@ scalar DateTime "A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/." scalar EmailAddress @specifiedBy(url: "https://www.w3.org/Protocols/rfc822/") -type by_workspace_slug_activities_200_response { - data: [query_by_workspace_slug_activities_data_items] - included: [query_by_workspace_slug_activities_included_items] - links: query_by_workspace_slug_activities_links +type workspace_slug_activities_200_response { + data: [query_workspace_slug_activities_data_items] + included: [query_workspace_slug_activities_included_items] + links: query_workspace_slug_activities_links } -type query_by_workspace_slug_activities_data_items { +type query_workspace_slug_activities_data_items { id: String type: String - attributes: query_by_workspace_slug_activities_data_items_attributes - relationships: query_by_workspace_slug_activities_data_items_relationships + attributes: query_workspace_slug_activities_data_items_attributes + relationships: query_workspace_slug_activities_data_items_relationships } -type query_by_workspace_slug_activities_data_items_attributes { +type query_workspace_slug_activities_data_items_attributes { action: String created_at: DateTime key: String occurred_at: DateTime updated_at: DateTime type: String - properties: query_by_workspace_slug_activities_data_items_attributes2 + properties: query_workspace_slug_activities_data_items_attributes2 tags: [URL] orbit_url: URL weight: String @@ -111,7 +198,7 @@ type query_by_workspace_slug_activities_data_items_attributes { is_pull_request: Void } -type query_by_workspace_slug_activities_data_items_attributes2 { +type query_workspace_slug_activities_data_items_attributes2 { github_issue: String github_repository: String github_organization: String @@ -123,46 +210,46 @@ scalar URL "Represents empty values" scalar Void -type query_by_workspace_slug_activities_data_items_relationships { - activity_type: query_by_workspace_slug_activities_data_items_relationships_activity_type - member: query_by_workspace_slug_activities_data_items_relationships_member - repository: query_by_workspace_slug_activities_data_items_relationships_repository +type query_workspace_slug_activities_data_items_relationships { + activity_type: query_workspace_slug_activities_data_items_relationships_activity_type + member: query_workspace_slug_activities_data_items_relationships_member + repository: query_workspace_slug_activities_data_items_relationships_repository } -type query_by_workspace_slug_activities_data_items_relationships_activity_type { - data: query_by_workspace_slug_activities_data_items_relationships_activity_type_data +type query_workspace_slug_activities_data_items_relationships_activity_type { + data: query_workspace_slug_activities_data_items_relationships_activity_type_data } -type query_by_workspace_slug_activities_data_items_relationships_activity_type_data { +type query_workspace_slug_activities_data_items_relationships_activity_type_data { id: String type: String } -type query_by_workspace_slug_activities_data_items_relationships_member { - data: query_by_workspace_slug_activities_data_items_relationships_member_data +type query_workspace_slug_activities_data_items_relationships_member { + data: query_workspace_slug_activities_data_items_relationships_member_data } -type query_by_workspace_slug_activities_data_items_relationships_member_data { +type query_workspace_slug_activities_data_items_relationships_member_data { id: String type: String } -type query_by_workspace_slug_activities_data_items_relationships_repository { - data: query_by_workspace_slug_activities_data_items_relationships_repository_data +type query_workspace_slug_activities_data_items_relationships_repository { + data: query_workspace_slug_activities_data_items_relationships_repository_data } -type query_by_workspace_slug_activities_data_items_relationships_repository_data { +type query_workspace_slug_activities_data_items_relationships_repository_data { id: String type: String } -type query_by_workspace_slug_activities_included_items { +type query_workspace_slug_activities_included_items { id: String type: String - attributes: query_by_workspace_slug_activities_included_items_attributes + attributes: query_workspace_slug_activities_included_items_attributes } -type query_by_workspace_slug_activities_included_items_attributes { +type query_workspace_slug_activities_included_items_attributes { name: String short_name: String key: URL @@ -171,54 +258,47 @@ type query_by_workspace_slug_activities_included_items_attributes { weight: String } -type query_by_workspace_slug_activities_links { +type query_workspace_slug_activities_links { first: URL prev: Void next: Void } -enum queryInput_by_workspace_slug_activities_affiliation { +enum queryInput_workspace_slug_activities_affiliation { member teammate } -enum queryInput_by_workspace_slug_activities_orbit_level { - _1 - _2 - _3 - _4 - n -} - -enum queryInput_by_workspace_slug_activities_activity_type { - twitter_COLON_followed - discord_COLON_thread_COLON_replied - discord_COLON_message_COLON_replied - discord_COLON_server_COLON_joined - custom_COLON_happened - note_COLON_created - discourse_COLON_topic_COLON_created - post_COLON_created - discourse_COLON_post_COLON_created - discourse_COLON_post_COLON_liked - discourse_COLON_user_COLON_created - issues_COLON_opened - slack_COLON_message_COLON_sent - issue_comment_COLON_created - slack_COLON_channel_COLON_joined - slack_COLON_thread_COLON_replied - pull_requests_COLON_opened - pull_requests_COLON_merged - fork_COLON_created - discussions_COLON_comment - discussions_COLON_reply - star_COLON_created - discussions_COLON_discussion_created - tweet_COLON_sent - discord_COLON_message_COLON_sent -} - -enum queryInput_by_workspace_slug_activities_identity { +"Comma separated list of activity types" +enum queryInput_workspace_slug_activities_activity_type { + pull_requests_merged + slack_channel_joined + discussions_discussion_created + discussions_comment + discussions_reply + star_created + slack_thread_replied + tweet_sent + twitter_followed + discourse_topic_created + note_created + post_created + discourse_post_created + discourse_post_liked + discourse_user_created + discord_message_sent + issues_opened + slack_message_sent + discord_thread_replied + issue_comment_created + discord_message_replied + discord_server_joined + pull_requests_opened + custom_happened + fork_created +} + +enum queryInput_workspace_slug_activities_identity { github twitter email @@ -229,102 +309,102 @@ enum queryInput_by_workspace_slug_activities_identity { discord } -enum queryInput_by_workspace_slug_activities_direction { +enum queryInput_workspace_slug_activities_direction { ASC DESC } -enum queryInput_by_workspace_slug_activities_items { +enum queryInput_workspace_slug_activities_items { _10 _50 _100 } -enum queryInput_by_workspace_slug_activities_sort { +enum queryInput_workspace_slug_activities_sort { occurred_at member } -type by_workspace_slug_activities_by_id_200_response { - data: query_by_workspace_slug_activities_by_id_data - included: [query_by_workspace_slug_activities_by_id_included_items] +type workspace_slug_activities_by_id_200_response { + data: query_workspace_slug_activities_by_id_data + included: [query_workspace_slug_activities_by_id_included_items] } -type query_by_workspace_slug_activities_by_id_data { +type query_workspace_slug_activities_by_id_data { id: String type: String - attributes: query_by_workspace_slug_activities_by_id_data_attributes - relationships: query_by_workspace_slug_activities_by_id_data_relationships + attributes: query_workspace_slug_activities_by_id_data_attributes + relationships: query_workspace_slug_activities_by_id_data_relationships } -type query_by_workspace_slug_activities_by_id_data_attributes { +type query_workspace_slug_activities_by_id_data_attributes { action: String created_at: DateTime key: String occurred_at: DateTime updated_at: DateTime type: String - properties: query_by_workspace_slug_activities_by_id_data_attributes2 + properties: query_workspace_slug_activities_by_id_data_attributes2 tags: [String] orbit_url: URL weight: String } -type query_by_workspace_slug_activities_by_id_data_attributes2 { +type query_workspace_slug_activities_by_id_data_attributes2 { prop_1: String prop_2: String } -type query_by_workspace_slug_activities_by_id_data_relationships { - activity_type: query_by_workspace_slug_activities_by_id_data_relationships_activity_type - member: query_by_workspace_slug_activities_by_id_data_relationships_member - repository: query_by_workspace_slug_activities_by_id_data_relationships_repository - user: query_by_workspace_slug_activities_by_id_data_relationships_user +type query_workspace_slug_activities_by_id_data_relationships { + activity_type: query_workspace_slug_activities_by_id_data_relationships_activity_type + member: query_workspace_slug_activities_by_id_data_relationships_member + repository: query_workspace_slug_activities_by_id_data_relationships_repository + user: query_workspace_slug_activities_by_id_data_relationships_user } -type query_by_workspace_slug_activities_by_id_data_relationships_activity_type { - data: query_by_workspace_slug_activities_by_id_data_relationships_activity_type_data +type query_workspace_slug_activities_by_id_data_relationships_activity_type { + data: query_workspace_slug_activities_by_id_data_relationships_activity_type_data } -type query_by_workspace_slug_activities_by_id_data_relationships_activity_type_data { +type query_workspace_slug_activities_by_id_data_relationships_activity_type_data { id: String type: String } -type query_by_workspace_slug_activities_by_id_data_relationships_member { - data: query_by_workspace_slug_activities_by_id_data_relationships_member_data +type query_workspace_slug_activities_by_id_data_relationships_member { + data: query_workspace_slug_activities_by_id_data_relationships_member_data } -type query_by_workspace_slug_activities_by_id_data_relationships_member_data { +type query_workspace_slug_activities_by_id_data_relationships_member_data { id: String type: String } -type query_by_workspace_slug_activities_by_id_data_relationships_repository { - data: query_by_workspace_slug_activities_by_id_data_relationships_repository_data +type query_workspace_slug_activities_by_id_data_relationships_repository { + data: query_workspace_slug_activities_by_id_data_relationships_repository_data } -type query_by_workspace_slug_activities_by_id_data_relationships_repository_data { +type query_workspace_slug_activities_by_id_data_relationships_repository_data { id: String type: String } -type query_by_workspace_slug_activities_by_id_data_relationships_user { - data: query_by_workspace_slug_activities_by_id_data_relationships_user_data +type query_workspace_slug_activities_by_id_data_relationships_user { + data: query_workspace_slug_activities_by_id_data_relationships_user_data } -type query_by_workspace_slug_activities_by_id_data_relationships_user_data { +type query_workspace_slug_activities_by_id_data_relationships_user_data { id: String type: String } -type query_by_workspace_slug_activities_by_id_included_items { +type query_workspace_slug_activities_by_id_included_items { id: String type: String - attributes: query_by_workspace_slug_activities_by_id_included_items_attributes + attributes: query_workspace_slug_activities_by_id_included_items_attributes } -type query_by_workspace_slug_activities_by_id_included_items_attributes { +type query_workspace_slug_activities_by_id_included_items_attributes { name: String short_name: String key: URL @@ -333,18 +413,18 @@ type query_by_workspace_slug_activities_by_id_included_items_attributes { weight: String } -type by_workspace_slug_activity_types_200_response { - data: [query_by_workspace_slug_activity_types_data_items] - links: query_by_workspace_slug_activity_types_links +type workspace_slug_activity_types_200_response { + data: [query_workspace_slug_activity_types_data_items] + links: query_workspace_slug_activity_types_links } -type query_by_workspace_slug_activity_types_data_items { +type query_workspace_slug_activity_types_data_items { id: String type: String - attributes: query_by_workspace_slug_activity_types_data_items_attributes + attributes: query_workspace_slug_activity_types_data_items_attributes } -type query_by_workspace_slug_activity_types_data_items_attributes { +type query_workspace_slug_activity_types_data_items_attributes { name: String short_name: String key: URL @@ -353,74 +433,74 @@ type query_by_workspace_slug_activity_types_data_items_attributes { weight: String } -type query_by_workspace_slug_activity_types_links { +type query_workspace_slug_activity_types_links { first: String last: String prev: Void next: Void } -type by_workspace_slug_members_by_member_slug_activities_200_response { - data: [query_by_workspace_slug_members_by_member_slug_activities_data_items] - included: [query_by_workspace_slug_members_by_member_slug_activities_included_items] - links: query_by_workspace_slug_members_by_member_slug_activities_links +type workspace_slug_members_by_member_slug_activities_200_response { + data: [query_workspace_slug_members_by_member_slug_activities_data_items] + included: [query_workspace_slug_members_by_member_slug_activities_included_items] + links: query_workspace_slug_members_by_member_slug_activities_links } -type query_by_workspace_slug_members_by_member_slug_activities_data_items { +type query_workspace_slug_members_by_member_slug_activities_data_items { id: String type: String - attributes: query_by_workspace_slug_members_by_member_slug_activities_data_items_attributes - relationships: query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships + attributes: query_workspace_slug_members_by_member_slug_activities_data_items_attributes + relationships: query_workspace_slug_members_by_member_slug_activities_data_items_relationships } -type query_by_workspace_slug_members_by_member_slug_activities_data_items_attributes { +type query_workspace_slug_members_by_member_slug_activities_data_items_attributes { action: String created_at: DateTime key: String occurred_at: DateTime updated_at: DateTime type: String - properties: query_by_workspace_slug_members_by_member_slug_activities_data_items_attributes2 + properties: query_workspace_slug_members_by_member_slug_activities_data_items_attributes2 tags: [String] orbit_url: URL weight: String } -type query_by_workspace_slug_members_by_member_slug_activities_data_items_attributes2 { +type query_workspace_slug_members_by_member_slug_activities_data_items_attributes2 { prop_1: String prop_2: String } -type query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships { - activity_type: query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type - member: query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships_member +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships { + activity_type: query_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type + member: query_workspace_slug_members_by_member_slug_activities_data_items_relationships_member } -type query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type { - data: query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type_data +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type { + data: query_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type_data } -type query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type_data { +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type_data { id: String type: String } -type query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships_member { - data: query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships_member_data +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships_member { + data: query_workspace_slug_members_by_member_slug_activities_data_items_relationships_member_data } -type query_by_workspace_slug_members_by_member_slug_activities_data_items_relationships_member_data { +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships_member_data { id: String type: String } -type query_by_workspace_slug_members_by_member_slug_activities_included_items { +type query_workspace_slug_members_by_member_slug_activities_included_items { id: String type: String - attributes: query_by_workspace_slug_members_by_member_slug_activities_included_items_attributes + attributes: query_workspace_slug_members_by_member_slug_activities_included_items_attributes } -type query_by_workspace_slug_members_by_member_slug_activities_included_items_attributes { +type query_workspace_slug_members_by_member_slug_activities_included_items_attributes { name: String short_name: String key: URL @@ -429,80 +509,80 @@ type query_by_workspace_slug_members_by_member_slug_activities_included_items_at weight: String } -type query_by_workspace_slug_members_by_member_slug_activities_links { +type query_workspace_slug_members_by_member_slug_activities_links { first: String last: String prev: Void next: Void } -enum queryInput_by_workspace_slug_members_by_member_slug_activities_direction { +enum queryInput_workspace_slug_members_by_member_slug_activities_direction { ASC DESC } -enum queryInput_by_workspace_slug_members_by_member_slug_activities_items { +enum queryInput_workspace_slug_members_by_member_slug_activities_items { _10 _50 _100 } -enum queryInput_by_workspace_slug_members_by_member_slug_activities_sort { +enum queryInput_workspace_slug_members_by_member_slug_activities_sort { occurred_at member } -type by_workspace_slug_members_by_member_slug_notes_200_response { - data: [query_by_workspace_slug_members_by_member_slug_notes_data_items] - included: [query_by_workspace_slug_members_by_member_slug_notes_included_items] - links: query_by_workspace_slug_members_by_member_slug_notes_links +type workspace_slug_members_by_member_slug_notes_200_response { + data: [query_workspace_slug_members_by_member_slug_notes_data_items] + included: [query_workspace_slug_members_by_member_slug_notes_included_items] + links: query_workspace_slug_members_by_member_slug_notes_links } -type query_by_workspace_slug_members_by_member_slug_notes_data_items { +type query_workspace_slug_members_by_member_slug_notes_data_items { id: String type: String - attributes: query_by_workspace_slug_members_by_member_slug_notes_data_items_attributes - relationships: query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships + attributes: query_workspace_slug_members_by_member_slug_notes_data_items_attributes + relationships: query_workspace_slug_members_by_member_slug_notes_data_items_relationships } -type query_by_workspace_slug_members_by_member_slug_notes_data_items_attributes { +type query_workspace_slug_members_by_member_slug_notes_data_items_attributes { id: String created_at: DateTime body: String updated_at: DateTime } -type query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships { - member: query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships_member - user: query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships_user +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships { + member: query_workspace_slug_members_by_member_slug_notes_data_items_relationships_member + user: query_workspace_slug_members_by_member_slug_notes_data_items_relationships_user } -type query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships_member { - data: query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships_member_data +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships_member { + data: query_workspace_slug_members_by_member_slug_notes_data_items_relationships_member_data } -type query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships_member_data { +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships_member_data { id: String type: String } -type query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships_user { - data: query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships_user_data +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships_user { + data: query_workspace_slug_members_by_member_slug_notes_data_items_relationships_user_data } -type query_by_workspace_slug_members_by_member_slug_notes_data_items_relationships_user_data { +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships_user_data { id: String type: String } -type query_by_workspace_slug_members_by_member_slug_notes_included_items { +type query_workspace_slug_members_by_member_slug_notes_included_items { id: String type: String - attributes: query_by_workspace_slug_members_by_member_slug_notes_included_items_attributes - relationships: query_by_workspace_slug_members_by_member_slug_notes_included_items_relationships + attributes: query_workspace_slug_members_by_member_slug_notes_included_items_attributes + relationships: query_workspace_slug_members_by_member_slug_notes_included_items_relationships } -type query_by_workspace_slug_members_by_member_slug_notes_included_items_attributes { +type query_workspace_slug_members_by_member_slug_notes_included_items_attributes { activities_count: Int activities_score: Int avatar_url: URL @@ -549,35 +629,35 @@ type query_by_workspace_slug_members_by_member_slug_notes_included_items_attribu "The \`JSON\` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf)." scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf") -type query_by_workspace_slug_members_by_member_slug_notes_included_items_relationships { - identities: query_by_workspace_slug_members_by_member_slug_notes_included_items_relationships_identities +type query_workspace_slug_members_by_member_slug_notes_included_items_relationships { + identities: query_workspace_slug_members_by_member_slug_notes_included_items_relationships_identities } -type query_by_workspace_slug_members_by_member_slug_notes_included_items_relationships_identities { +type query_workspace_slug_members_by_member_slug_notes_included_items_relationships_identities { data: [JSON] } -type query_by_workspace_slug_members_by_member_slug_notes_links { +type query_workspace_slug_members_by_member_slug_notes_links { first: String last: String prev: Void next: Void } -type by_workspace_slug_members_200_response { - data: [query_by_workspace_slug_members_data_items] - included: [query_by_workspace_slug_members_included_items] - links: query_by_workspace_slug_members_links +type workspace_slug_members_200_response { + data: [query_workspace_slug_members_data_items] + included: [query_workspace_slug_members_included_items] + links: query_workspace_slug_members_links } -type query_by_workspace_slug_members_data_items { +type query_workspace_slug_members_data_items { id: String type: String - attributes: query_by_workspace_slug_members_data_items_attributes - relationships: query_by_workspace_slug_members_data_items_relationships + attributes: query_workspace_slug_members_data_items_attributes + relationships: query_workspace_slug_members_data_items_relationships } -type query_by_workspace_slug_members_data_items_attributes { +type query_workspace_slug_members_data_items_attributes { activities_count: Int activities_score: Int avatar_url: URL @@ -621,72 +701,65 @@ type query_by_workspace_slug_members_data_items_attributes { languages: Void } -type query_by_workspace_slug_members_data_items_relationships { - identities: query_by_workspace_slug_members_data_items_relationships_identities +type query_workspace_slug_members_data_items_relationships { + identities: query_workspace_slug_members_data_items_relationships_identities } -type query_by_workspace_slug_members_data_items_relationships_identities { - data: [query_by_workspace_slug_members_data_items_relationships_identities_data_items] +type query_workspace_slug_members_data_items_relationships_identities { + data: [query_workspace_slug_members_data_items_relationships_identities_data_items] } -type query_by_workspace_slug_members_data_items_relationships_identities_data_items { +type query_workspace_slug_members_data_items_relationships_identities_data_items { id: String type: String } -type query_by_workspace_slug_members_included_items { +type query_workspace_slug_members_included_items { id: String type: String } -type query_by_workspace_slug_members_links { +type query_workspace_slug_members_links { first: URL prev: Void next: Void } -enum queryInput_by_workspace_slug_members_affiliation { +enum queryInput_workspace_slug_members_affiliation { member teammate } -enum queryInput_by_workspace_slug_members_orbit_level { - _1 - _2 - _3 - _4 - n -} - -enum queryInput_by_workspace_slug_members_activity_type { - twitter_COLON_followed - discord_COLON_thread_COLON_replied - discord_COLON_message_COLON_replied - discord_COLON_server_COLON_joined - custom_COLON_happened - note_COLON_created - discourse_COLON_topic_COLON_created - post_COLON_created - discourse_COLON_post_COLON_created - discourse_COLON_post_COLON_liked - discourse_COLON_user_COLON_created - issues_COLON_opened - slack_COLON_message_COLON_sent - issue_comment_COLON_created - slack_COLON_channel_COLON_joined - slack_COLON_thread_COLON_replied - pull_requests_COLON_opened - pull_requests_COLON_merged - fork_COLON_created - discussions_COLON_comment - discussions_COLON_reply - star_COLON_created - discussions_COLON_discussion_created - tweet_COLON_sent - discord_COLON_message_COLON_sent -} - -enum queryInput_by_workspace_slug_members_identity { +"Comma separated list of activity types" +enum queryInput_workspace_slug_members_activity_type { + pull_requests_merged + slack_channel_joined + discussions_discussion_created + discussions_comment + discussions_reply + star_created + slack_thread_replied + tweet_sent + twitter_followed + discourse_topic_created + note_created + post_created + discourse_post_created + discourse_post_liked + discourse_user_created + discord_message_sent + issues_opened + slack_message_sent + discord_thread_replied + issue_comment_created + discord_message_replied + discord_server_joined + pull_requests_opened + custom_happened + fork_created +} + +enum queryInput_workspace_slug_members_identity { github twitter email @@ -697,18 +770,18 @@ enum queryInput_by_workspace_slug_members_identity { discord } -enum queryInput_by_workspace_slug_members_direction { +enum queryInput_workspace_slug_members_direction { ASC DESC } -enum queryInput_by_workspace_slug_members_items { +enum queryInput_workspace_slug_members_items { _10 _50 _100 } -enum queryInput_by_workspace_slug_members_sort { +enum queryInput_workspace_slug_members_sort { activities_count company created_at @@ -726,19 +799,19 @@ enum queryInput_by_workspace_slug_members_sort { updated_at } -type by_workspace_slug_members_by_member_slug_200_response { - data: query_by_workspace_slug_members_by_member_slug_data - included: [query_by_workspace_slug_members_by_member_slug_included_items] +type workspace_slug_members_by_member_slug_200_response { + data: query_workspace_slug_members_by_member_slug_data + included: [query_workspace_slug_members_by_member_slug_included_items] } -type query_by_workspace_slug_members_by_member_slug_data { +type query_workspace_slug_members_by_member_slug_data { id: String type: String - attributes: query_by_workspace_slug_members_by_member_slug_data_attributes - relationships: query_by_workspace_slug_members_by_member_slug_data_relationships + attributes: query_workspace_slug_members_by_member_slug_data_attributes + relationships: query_workspace_slug_members_by_member_slug_data_relationships } -type query_by_workspace_slug_members_by_member_slug_data_attributes { +type query_workspace_slug_members_by_member_slug_data_attributes { activities_count: Int activities_score: Int avatar_url: URL @@ -782,39 +855,39 @@ type query_by_workspace_slug_members_by_member_slug_data_attributes { languages: Void } -type query_by_workspace_slug_members_by_member_slug_data_relationships { - identities: query_by_workspace_slug_members_by_member_slug_data_relationships_identities +type query_workspace_slug_members_by_member_slug_data_relationships { + identities: query_workspace_slug_members_by_member_slug_data_relationships_identities } -type query_by_workspace_slug_members_by_member_slug_data_relationships_identities { - data: [query_by_workspace_slug_members_by_member_slug_data_relationships_identities_data_items] +type query_workspace_slug_members_by_member_slug_data_relationships_identities { + data: [query_workspace_slug_members_by_member_slug_data_relationships_identities_data_items] } -type query_by_workspace_slug_members_by_member_slug_data_relationships_identities_data_items { +type query_workspace_slug_members_by_member_slug_data_relationships_identities_data_items { id: String type: String } -type query_by_workspace_slug_members_by_member_slug_included_items { +type query_workspace_slug_members_by_member_slug_included_items { id: String type: String } -union by_workspace_slug_members_find_response = by_workspace_slug_members_find_200_response | by_workspace_slug_members_find_404_response +union workspace_slug_members_find_response = workspace_slug_members_find_200_response | workspace_slug_members_find_404_response -type by_workspace_slug_members_find_200_response { - data: query_by_workspace_slug_members_find_oneOf_0_data - included: [query_by_workspace_slug_members_find_oneOf_0_included_items] +type workspace_slug_members_find_200_response { + data: query_workspace_slug_members_find_oneOf_0_data + included: [query_workspace_slug_members_find_oneOf_0_included_items] } -type query_by_workspace_slug_members_find_oneOf_0_data { +type query_workspace_slug_members_find_oneOf_0_data { id: String type: String - attributes: query_by_workspace_slug_members_find_oneOf_0_data_attributes - relationships: query_by_workspace_slug_members_find_oneOf_0_data_relationships + attributes: query_workspace_slug_members_find_oneOf_0_data_attributes + relationships: query_workspace_slug_members_find_oneOf_0_data_relationships } -type query_by_workspace_slug_members_find_oneOf_0_data_attributes { +type query_workspace_slug_members_find_oneOf_0_data_attributes { activities_count: Int activities_score: Int avatar_url: URL @@ -858,26 +931,26 @@ type query_by_workspace_slug_members_find_oneOf_0_data_attributes { languages: Void } -type query_by_workspace_slug_members_find_oneOf_0_data_relationships { - identities: query_by_workspace_slug_members_find_oneOf_0_data_relationships_identities +type query_workspace_slug_members_find_oneOf_0_data_relationships { + identities: query_workspace_slug_members_find_oneOf_0_data_relationships_identities } -type query_by_workspace_slug_members_find_oneOf_0_data_relationships_identities { - data: [query_by_workspace_slug_members_find_oneOf_0_data_relationships_identities_data_items] +type query_workspace_slug_members_find_oneOf_0_data_relationships_identities { + data: [query_workspace_slug_members_find_oneOf_0_data_relationships_identities_data_items] } -type query_by_workspace_slug_members_find_oneOf_0_data_relationships_identities_data_items { +type query_workspace_slug_members_find_oneOf_0_data_relationships_identities_data_items { id: String type: String } -type query_by_workspace_slug_members_find_oneOf_0_included_items { +type query_workspace_slug_members_find_oneOf_0_included_items { id: String type: String - attributes: query_by_workspace_slug_members_find_oneOf_0_included_items_attributes + attributes: query_workspace_slug_members_find_oneOf_0_included_items_attributes } -type query_by_workspace_slug_members_find_oneOf_0_included_items_attributes { +type query_workspace_slug_members_find_oneOf_0_included_items_attributes { uid: String email: Void username: String @@ -886,72 +959,72 @@ type query_by_workspace_slug_members_find_oneOf_0_included_items_attributes { source_host: String } -type by_workspace_slug_members_find_404_response { +type workspace_slug_members_find_404_response { errors: String } -type by_workspace_slug_organizations_by_organization_id_activities_200_response { - data: [query_by_workspace_slug_organizations_by_organization_id_activities_data_items] - included: [query_by_workspace_slug_organizations_by_organization_id_activities_included_items] - links: query_by_workspace_slug_organizations_by_organization_id_activities_links +type workspace_slug_organizations_by_organization_id_activities_200_response { + data: [query_workspace_slug_organizations_by_organization_id_activities_data_items] + included: [query_workspace_slug_organizations_by_organization_id_activities_included_items] + links: query_workspace_slug_organizations_by_organization_id_activities_links } -type query_by_workspace_slug_organizations_by_organization_id_activities_data_items { +type query_workspace_slug_organizations_by_organization_id_activities_data_items { id: String type: String - attributes: query_by_workspace_slug_organizations_by_organization_id_activities_data_items_attributes - relationships: query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships + attributes: query_workspace_slug_organizations_by_organization_id_activities_data_items_attributes + relationships: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships } -type query_by_workspace_slug_organizations_by_organization_id_activities_data_items_attributes { +type query_workspace_slug_organizations_by_organization_id_activities_data_items_attributes { action: String created_at: DateTime key: String occurred_at: DateTime updated_at: DateTime type: String - properties: query_by_workspace_slug_organizations_by_organization_id_activities_data_items_attributes2 + properties: query_workspace_slug_organizations_by_organization_id_activities_data_items_attributes2 tags: [URL] orbit_url: URL weight: String activity_link: URL } -type query_by_workspace_slug_organizations_by_organization_id_activities_data_items_attributes2 { +type query_workspace_slug_organizations_by_organization_id_activities_data_items_attributes2 { discord_server: String discord_channel: String } -type query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships { - activity_type: query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type - member: query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships { + activity_type: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type + member: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member } -type query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type { - data: query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type_data +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type { + data: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type_data } -type query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type_data { +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type_data { id: String type: String } -type query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member { - data: query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member_data +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member { + data: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member_data } -type query_by_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member_data { +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member_data { id: String type: String } -type query_by_workspace_slug_organizations_by_organization_id_activities_included_items { +type query_workspace_slug_organizations_by_organization_id_activities_included_items { id: String type: String - attributes: query_by_workspace_slug_organizations_by_organization_id_activities_included_items_attributes + attributes: query_workspace_slug_organizations_by_organization_id_activities_included_items_attributes } -type query_by_workspace_slug_organizations_by_organization_id_activities_included_items_attributes { +type query_workspace_slug_organizations_by_organization_id_activities_included_items_attributes { name: String short_name: String key: URL @@ -960,30 +1033,30 @@ type query_by_workspace_slug_organizations_by_organization_id_activities_include weight: String } -type query_by_workspace_slug_organizations_by_organization_id_activities_links { +type query_workspace_slug_organizations_by_organization_id_activities_links { first: String last: String prev: Void next: Void } -enum queryInput_by_workspace_slug_organizations_by_organization_id_activities_direction { +enum queryInput_workspace_slug_organizations_by_organization_id_activities_direction { ASC DESC } -enum queryInput_by_workspace_slug_organizations_by_organization_id_activities_items { +enum queryInput_workspace_slug_organizations_by_organization_id_activities_items { _10 _50 _100 } -enum queryInput_by_workspace_slug_organizations_by_organization_id_activities_sort { +enum queryInput_workspace_slug_organizations_by_organization_id_activities_sort { occurred_at member } -enum queryInput_by_workspace_slug_organizations_by_organization_id_activities_activity_type { +enum queryInput_workspace_slug_organizations_by_organization_id_activities_activity_type { content custom discord @@ -993,19 +1066,19 @@ enum queryInput_by_workspace_slug_organizations_by_organization_id_activities_ac twitter } -type by_workspace_slug_organizations_by_organization_id_members_200_response { - data: [query_by_workspace_slug_organizations_by_organization_id_members_data_items] - links: query_by_workspace_slug_organizations_by_organization_id_members_links +type workspace_slug_organizations_by_organization_id_members_200_response { + data: [query_workspace_slug_organizations_by_organization_id_members_data_items] + links: query_workspace_slug_organizations_by_organization_id_members_links } -type query_by_workspace_slug_organizations_by_organization_id_members_data_items { +type query_workspace_slug_organizations_by_organization_id_members_data_items { id: String type: String - attributes: query_by_workspace_slug_organizations_by_organization_id_members_data_items_attributes + attributes: query_workspace_slug_organizations_by_organization_id_members_data_items_attributes relationships: JSON } -type query_by_workspace_slug_organizations_by_organization_id_members_data_items_attributes { +type query_workspace_slug_organizations_by_organization_id_members_data_items_attributes { id: String slug: String name: String @@ -1013,31 +1086,31 @@ type query_by_workspace_slug_organizations_by_organization_id_members_data_items activities_score: Int } -type query_by_workspace_slug_organizations_by_organization_id_members_links { +type query_workspace_slug_organizations_by_organization_id_members_links { first: String last: String prev: Void next: Void } -enum queryInput_by_workspace_slug_organizations_by_organization_id_members_items { +enum queryInput_workspace_slug_organizations_by_organization_id_members_items { _10 _50 _100 } -type by_workspace_slug_organizations_200_response { - data: [query_by_workspace_slug_organizations_data_items] - links: query_by_workspace_slug_organizations_links +type workspace_slug_organizations_200_response { + data: [query_workspace_slug_organizations_data_items] + links: query_workspace_slug_organizations_links } -type query_by_workspace_slug_organizations_data_items { +type query_workspace_slug_organizations_data_items { id: String type: String - attributes: query_by_workspace_slug_organizations_data_items_attributes + attributes: query_workspace_slug_organizations_data_items_attributes } -type query_by_workspace_slug_organizations_data_items_attributes { +type query_workspace_slug_organizations_data_items_attributes { id: String name: String website: String @@ -1061,41 +1134,41 @@ type query_by_workspace_slug_organizations_data_items_attributes { updated_at: DateTime } -type query_by_workspace_slug_organizations_links { +type query_workspace_slug_organizations_links { first: URL prev: Void next: Void } -enum queryInput_by_workspace_slug_organizations_direction { +enum queryInput_workspace_slug_organizations_direction { ASC DESC } -enum queryInput_by_workspace_slug_organizations_items { +enum queryInput_workspace_slug_organizations_items { _10 _50 _100 } -enum queryInput_by_workspace_slug_organizations_sort { +enum queryInput_workspace_slug_organizations_sort { name website members_count employees_count } -type by_workspace_slug_organizations_by_organization_id_200_response { - data: query_by_workspace_slug_organizations_by_organization_id_data +type workspace_slug_organizations_by_organization_id_200_response { + data: query_workspace_slug_organizations_by_organization_id_data } -type query_by_workspace_slug_organizations_by_organization_id_data { +type query_workspace_slug_organizations_by_organization_id_data { id: String type: String - attributes: query_by_workspace_slug_organizations_by_organization_id_data_attributes + attributes: query_workspace_slug_organizations_by_organization_id_data_attributes } -type query_by_workspace_slug_organizations_by_organization_id_data_attributes { +type query_workspace_slug_organizations_by_organization_id_data_attributes { id: String name: String website: URL @@ -1119,25 +1192,25 @@ type query_by_workspace_slug_organizations_by_organization_id_data_attributes { updated_at: DateTime } -type by_workspace_slug_reports_200_response { - data: query_by_workspace_slug_reports_data +type workspace_slug_reports_200_response { + data: query_workspace_slug_reports_data } -type query_by_workspace_slug_reports_data { +type query_workspace_slug_reports_data { id: String type: String - attributes: query_by_workspace_slug_reports_data_attributes + attributes: query_workspace_slug_reports_data_attributes } -type query_by_workspace_slug_reports_data_attributes { +type query_workspace_slug_reports_data_attributes { workspace_id: String - timeframe: query_by_workspace_slug_reports_data_attributes_timeframe - overview: query_by_workspace_slug_reports_data_attributes_overview - members: query_by_workspace_slug_reports_data_attributes_members - activities: query_by_workspace_slug_reports_data_attributes_activities + timeframe: query_workspace_slug_reports_data_attributes_timeframe + overview: query_workspace_slug_reports_data_attributes_overview + members: query_workspace_slug_reports_data_attributes_members + activities: query_workspace_slug_reports_data_attributes_activities } -type query_by_workspace_slug_reports_data_attributes_timeframe { +type query_workspace_slug_reports_data_attributes_timeframe { start_date: Date end_date: Date start_date_last: Date @@ -1147,7 +1220,7 @@ type query_by_workspace_slug_reports_data_attributes_timeframe { "Represents date values" scalar Date -type query_by_workspace_slug_reports_data_attributes_overview { +type query_workspace_slug_reports_data_attributes_overview { total_members_count: Int members_on_orbit_level_1_count: Int members_on_orbit_level_2_count: Int @@ -1156,7 +1229,7 @@ type query_by_workspace_slug_reports_data_attributes_overview { members_on_orbit_level_none_count: Int } -type query_by_workspace_slug_reports_data_attributes_members { +type query_workspace_slug_reports_data_attributes_members { active_count: Int active_delta: Int new_count: Int @@ -1165,21 +1238,21 @@ type query_by_workspace_slug_reports_data_attributes_members { returning_delta: Int } -type query_by_workspace_slug_reports_data_attributes_activities { +type query_workspace_slug_reports_data_attributes_activities { total_count: Int total_delta: Int - spec_COLON_activity: query_by_workspace_slug_reports_data_attributes_activities_spec_COLON_activity - foo_COLON_activity: query_by_workspace_slug_reports_data_attributes_activities_foo_COLON_activity + spec_activity: query_workspace_slug_reports_data_attributes_activities_spec_activity + foo_activity: query_workspace_slug_reports_data_attributes_activities_foo_activity } -type query_by_workspace_slug_reports_data_attributes_activities_spec_COLON_activity { +type query_workspace_slug_reports_data_attributes_activities_spec_activity { source: String count: Int delta: Int - members: query_by_workspace_slug_reports_data_attributes_activities_spec_COLON_activity_members + members: query_workspace_slug_reports_data_attributes_activities_spec_activity_members } -type query_by_workspace_slug_reports_data_attributes_activities_spec_COLON_activity_members { +type query_workspace_slug_reports_data_attributes_activities_spec_activity_members { active_count: Int active_delta: Int new_count: Int @@ -1188,14 +1261,14 @@ type query_by_workspace_slug_reports_data_attributes_activities_spec_COLON_activ returning_delta: Int } -type query_by_workspace_slug_reports_data_attributes_activities_foo_COLON_activity { +type query_workspace_slug_reports_data_attributes_activities_foo_activity { source: String count: Int delta: Int - members: query_by_workspace_slug_reports_data_attributes_activities_foo_COLON_activity_members + members: query_workspace_slug_reports_data_attributes_activities_foo_activity_members } -type query_by_workspace_slug_reports_data_attributes_activities_foo_COLON_activity_members { +type query_workspace_slug_reports_data_attributes_activities_foo_activity_members { active_count: Int active_delta: Int new_count: Int @@ -1204,18 +1277,18 @@ type query_by_workspace_slug_reports_data_attributes_activities_foo_COLON_activi returning_delta: Int } -type by_workspace_slug_webhooks_200_response { - data: [query_by_workspace_slug_webhooks_data_items] - links: query_by_workspace_slug_webhooks_links +type workspace_slug_webhooks_200_response { + data: [query_workspace_slug_webhooks_data_items] + links: query_workspace_slug_webhooks_links } -type query_by_workspace_slug_webhooks_data_items { +type query_workspace_slug_webhooks_data_items { id: String type: String - attributes: query_by_workspace_slug_webhooks_data_items_attributes + attributes: query_workspace_slug_webhooks_data_items_attributes } -type query_by_workspace_slug_webhooks_data_items_attributes { +type query_workspace_slug_webhooks_data_items_attributes { name: String enabled: Boolean updated_at: DateTime @@ -1224,24 +1297,24 @@ type query_by_workspace_slug_webhooks_data_items_attributes { url: URL } -type query_by_workspace_slug_webhooks_links { +type query_workspace_slug_webhooks_links { first: String last: String prev: Void next: Void } -type by_workspace_slug_webhooks_by_id_200_response { - data: query_by_workspace_slug_webhooks_by_id_data +type workspace_slug_webhooks_by_id_200_response { + data: query_workspace_slug_webhooks_by_id_data } -type query_by_workspace_slug_webhooks_by_id_data { +type query_workspace_slug_webhooks_by_id_data { id: String type: String - attributes: query_by_workspace_slug_webhooks_by_id_data_attributes + attributes: query_workspace_slug_webhooks_by_id_data_attributes } -type query_by_workspace_slug_webhooks_by_id_data_attributes { +type query_workspace_slug_webhooks_by_id_data_attributes { name: String enabled: Boolean updated_at: DateTime @@ -1388,50 +1461,50 @@ type query_workspaces_by_workspace_slug_included_items_relationships_identities type Mutation { "Use this method when you know an identity of the member (github, email, twitter, etc.) but not their Orbit ID. Pass fields in the member object to update the member in addition to creating the activity." - post_by_workspace_slug_activities(workspace_slug: String!, input: activity_and_identity_Input): post_by_workspace_slug_activities_response + post_workspace_slug_activities(workspace_slug: String!, input: activity_and_identity_Input): post_workspace_slug_activities_response "Create a Custom or a Content activity for a member" - post_by_workspace_slug_members_by_member_slug_activities(workspace_slug: String!, member_slug: String!, input: custom_or_post_activity_Input): post_by_workspace_slug_members_by_member_slug_activities_response + post_workspace_slug_members_by_member_slug_activities(workspace_slug: String!, member_slug: String!, input: custom_or_post_activity_Input): post_workspace_slug_members_by_member_slug_activities_response "Delete a post activity" - delete_by_workspace_slug_members_by_member_slug_activities_by_id(workspace_slug: String!, member_slug: String!, id: String!): Void + delete_workspace_slug_members_by_member_slug_activities_by_id(workspace_slug: String!, member_slug: String!, id: String!): Void "Update a custom activity for a member" - put_by_workspace_slug_members_by_member_slug_activities_by_id(workspace_slug: String!, member_slug: String!, id: String!, input: activity_Input): put_by_workspace_slug_members_by_member_slug_activities_by_id_response + put_workspace_slug_members_by_member_slug_activities_by_id(workspace_slug: String!, member_slug: String!, id: String!, input: activity_Input): put_workspace_slug_members_by_member_slug_activities_by_id_response "Add identity to a member" - post_by_workspace_slug_members_by_member_slug_identities(workspace_slug: String!, member_slug: String!, input: identity_Input): post_by_workspace_slug_members_by_member_slug_identities_response + post_workspace_slug_members_by_member_slug_identities(workspace_slug: String!, member_slug: String!, input: identity_Input): post_workspace_slug_members_by_member_slug_identities_response "Remove identity from a member" - delete_by_workspace_slug_members_by_member_slug_identities(workspace_slug: String!, member_slug: String!, input: identity_Input): delete_by_workspace_slug_members_by_member_slug_identities_response + delete_workspace_slug_members_by_member_slug_identities(workspace_slug: String!, member_slug: String!, input: identity_Input): delete_workspace_slug_members_by_member_slug_identities_response "Create a note" - post_by_workspace_slug_members_by_member_slug_notes(workspace_slug: String!, member_slug: String!, input: note_Input): post_by_workspace_slug_members_by_member_slug_notes_201_response + post_workspace_slug_members_by_member_slug_notes(workspace_slug: String!, member_slug: String!, input: note_Input): post_workspace_slug_members_by_member_slug_notes_201_response "Update a note" - put_by_workspace_slug_members_by_member_slug_notes_by_id(workspace_slug: String!, member_slug: String!, id: String!, input: note_Input): Void + put_workspace_slug_members_by_member_slug_notes_by_id(workspace_slug: String!, member_slug: String!, id: String!, input: note_Input): Void "This method is useful when you know a member's identity in another system and want to create or update the corresponding Orbit member. Identities can be specified in the identity object or member attributes like member.github. If no member exists, a new member will be created and linked to any provided identities." - post_by_workspace_slug_members(workspace_slug: String!, input: member_and_identity_Input): post_by_workspace_slug_members_response + post_workspace_slug_members(workspace_slug: String!, input: member_and_identity_Input): post_workspace_slug_members_response "Update a member" - put_by_workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!, input: member_Input): Void + put_workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!, input: member_Input): Void "Delete a member" - delete_by_workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!): Void + delete_workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!): Void "Create a destination" - post_by_workspace_slug_webhooks(workspace_slug: String!, input: destination_Input): post_by_workspace_slug_webhooks_201_response + post_workspace_slug_webhooks(workspace_slug: String!, input: destination_Input): post_workspace_slug_webhooks_201_response "Update a destination" - put_by_workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!, input: destination_Input): Void + put_workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!, input: destination_Input): Void "Delete a destination" - delete_by_workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!): Void + delete_workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!): Void } -union post_by_workspace_slug_activities_response = post_by_workspace_slug_activities_201_response | post_by_workspace_slug_activities_422_response +union post_workspace_slug_activities_response = post_workspace_slug_activities_201_response | post_workspace_slug_activities_422_response -type post_by_workspace_slug_activities_201_response { - data: mutation_post_by_workspace_slug_activities_oneOf_0_data - included: [mutation_post_by_workspace_slug_activities_oneOf_0_included_items] +type post_workspace_slug_activities_201_response { + data: mutation_post_workspace_slug_activities_oneOf_0_data + included: [mutation_post_workspace_slug_activities_oneOf_0_included_items] } -type mutation_post_by_workspace_slug_activities_oneOf_0_data { +type mutation_post_workspace_slug_activities_oneOf_0_data { id: String type: String - attributes: mutation_post_by_workspace_slug_activities_oneOf_0_data_attributes - relationships: mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships + attributes: mutation_post_workspace_slug_activities_oneOf_0_data_attributes + relationships: mutation_post_workspace_slug_activities_oneOf_0_data_relationships } -type mutation_post_by_workspace_slug_activities_oneOf_0_data_attributes { +type mutation_post_workspace_slug_activities_oneOf_0_data_attributes { action: String created_at: DateTime key: String @@ -1450,46 +1523,46 @@ type mutation_post_by_workspace_slug_activities_oneOf_0_data_attributes { custom_context: Void } -type mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships { - activity_type: mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_activity_type - member: mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_member - user: mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_user +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships { + activity_type: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_activity_type + member: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_member + user: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_user } -type mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_activity_type { - data: mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_activity_type_data +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_activity_type { + data: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_activity_type_data } -type mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_activity_type_data { +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_activity_type_data { id: String type: String } -type mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_member { - data: mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_member_data +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_member { + data: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_member_data } -type mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_member_data { +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_member_data { id: String type: String } -type mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_user { - data: mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_user_data +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_user { + data: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_user_data } -type mutation_post_by_workspace_slug_activities_oneOf_0_data_relationships_user_data { +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_user_data { id: String type: String } -type mutation_post_by_workspace_slug_activities_oneOf_0_included_items { +type mutation_post_workspace_slug_activities_oneOf_0_included_items { id: String type: String - attributes: mutation_post_by_workspace_slug_activities_oneOf_0_included_items_attributes + attributes: mutation_post_workspace_slug_activities_oneOf_0_included_items_attributes } -type mutation_post_by_workspace_slug_activities_oneOf_0_included_items_attributes { +type mutation_post_workspace_slug_activities_oneOf_0_included_items_attributes { name: String short_name: String key: URL @@ -1498,20 +1571,20 @@ type mutation_post_by_workspace_slug_activities_oneOf_0_included_items_attribute weight: String } -type post_by_workspace_slug_activities_422_response { - errors: mutation_post_by_workspace_slug_activities_oneOf_1_errors +type post_workspace_slug_activities_422_response { + errors: mutation_post_workspace_slug_activities_oneOf_1_errors } -type mutation_post_by_workspace_slug_activities_oneOf_1_errors { +type mutation_post_workspace_slug_activities_oneOf_1_errors { base: [String] } input activity_and_identity_Input { - activity: mutationInput_post_by_workspace_slug_activities_input_activity_Input + activity: mutationInput_post_workspace_slug_activities_input_activity_Input identity: identity_Input } -input mutationInput_post_by_workspace_slug_activities_input_activity_Input @oneOf { +input mutationInput_post_workspace_slug_activities_input_activity_Input @oneOf { activity_with_member_Input: activity_with_member_Input post_activity_with_member_Input: post_activity_with_member_Input } @@ -1601,21 +1674,21 @@ input identity_Input { url: String } -union post_by_workspace_slug_members_by_member_slug_activities_response = post_by_workspace_slug_members_by_member_slug_activities_201_response | post_by_workspace_slug_members_by_member_slug_activities_422_response +union post_workspace_slug_members_by_member_slug_activities_response = post_workspace_slug_members_by_member_slug_activities_201_response | post_workspace_slug_members_by_member_slug_activities_422_response -type post_by_workspace_slug_members_by_member_slug_activities_201_response { - data: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data - included: [mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items] +type post_workspace_slug_members_by_member_slug_activities_201_response { + data: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data + included: [mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items] } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data { +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data { id: String type: String - attributes: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_attributes - relationships: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships + attributes: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_attributes + relationships: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_attributes { +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_attributes { action: String created_at: DateTime key: String @@ -1634,46 +1707,46 @@ type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_d custom_context: Void } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships { - activity_type: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type - member: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member - user: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships { + activity_type: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type + member: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member + user: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type { - data: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type_data +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type { + data: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type_data } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type_data { +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type_data { id: String type: String } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member { - data: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member_data +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member { + data: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member_data } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member_data { +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member_data { id: String type: String } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user { - data: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user_data +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user { + data: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user_data } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user_data { +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user_data { id: String type: String } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items { +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items { id: String type: String - attributes: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items_attributes + attributes: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items_attributes } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items_attributes { +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items_attributes { name: String short_name: String key: URL @@ -1682,11 +1755,11 @@ type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_0_i weight: String } -type post_by_workspace_slug_members_by_member_slug_activities_422_response { - errors: mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_1_errors +type post_workspace_slug_members_by_member_slug_activities_422_response { + errors: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_1_errors } -type mutation_post_by_workspace_slug_members_by_member_slug_activities_oneOf_1_errors { +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_1_errors { custom_title: [String] } @@ -1725,33 +1798,33 @@ input post_activity_Input { activity_type: content_const! } -union put_by_workspace_slug_members_by_member_slug_activities_by_id_response = Void_container | put_by_workspace_slug_members_by_member_slug_activities_by_id_422_response +union put_workspace_slug_members_by_member_slug_activities_by_id_response = Void_container | put_workspace_slug_members_by_member_slug_activities_by_id_422_response type Void_container { Void: Void } -type put_by_workspace_slug_members_by_member_slug_activities_by_id_422_response { - errors: mutation_put_by_workspace_slug_members_by_member_slug_activities_by_id_oneOf_1_errors +type put_workspace_slug_members_by_member_slug_activities_by_id_422_response { + errors: mutation_put_workspace_slug_members_by_member_slug_activities_by_id_oneOf_1_errors } -type mutation_put_by_workspace_slug_members_by_member_slug_activities_by_id_oneOf_1_errors { +type mutation_put_workspace_slug_members_by_member_slug_activities_by_id_oneOf_1_errors { custom_title: [String] } -union post_by_workspace_slug_members_by_member_slug_identities_response = post_by_workspace_slug_members_by_member_slug_identities_201_response | post_by_workspace_slug_members_by_member_slug_identities_422_response +union post_workspace_slug_members_by_member_slug_identities_response = post_workspace_slug_members_by_member_slug_identities_201_response | post_workspace_slug_members_by_member_slug_identities_422_response -type post_by_workspace_slug_members_by_member_slug_identities_201_response { - data: mutation_post_by_workspace_slug_members_by_member_slug_identities_oneOf_0_data +type post_workspace_slug_members_by_member_slug_identities_201_response { + data: mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_0_data } -type mutation_post_by_workspace_slug_members_by_member_slug_identities_oneOf_0_data { +type mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_0_data { id: String type: String - attributes: mutation_post_by_workspace_slug_members_by_member_slug_identities_oneOf_0_data_attributes + attributes: mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_0_data_attributes } -type mutation_post_by_workspace_slug_members_by_member_slug_identities_oneOf_0_data_attributes { +type mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_0_data_attributes { uid: String email: EmailAddress username: String @@ -1760,61 +1833,61 @@ type mutation_post_by_workspace_slug_members_by_member_slug_identities_oneOf_0_d source_host: String } -type post_by_workspace_slug_members_by_member_slug_identities_422_response { - errors: mutation_post_by_workspace_slug_members_by_member_slug_identities_oneOf_1_errors +type post_workspace_slug_members_by_member_slug_identities_422_response { + errors: mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_1_errors } -type mutation_post_by_workspace_slug_members_by_member_slug_identities_oneOf_1_errors { +type mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_1_errors { identity_id: [String] } -union delete_by_workspace_slug_members_by_member_slug_identities_response = Void_container | delete_by_workspace_slug_members_by_member_slug_identities_422_response +union delete_workspace_slug_members_by_member_slug_identities_response = Void_container | delete_workspace_slug_members_by_member_slug_identities_422_response -type delete_by_workspace_slug_members_by_member_slug_identities_422_response { - errors: mutation_delete_by_workspace_slug_members_by_member_slug_identities_oneOf_1_errors +type delete_workspace_slug_members_by_member_slug_identities_422_response { + errors: mutation_delete_workspace_slug_members_by_member_slug_identities_oneOf_1_errors } -type mutation_delete_by_workspace_slug_members_by_member_slug_identities_oneOf_1_errors { +type mutation_delete_workspace_slug_members_by_member_slug_identities_oneOf_1_errors { identity: [String] } -type post_by_workspace_slug_members_by_member_slug_notes_201_response { - data: mutation_post_by_workspace_slug_members_by_member_slug_notes_data +type post_workspace_slug_members_by_member_slug_notes_201_response { + data: mutation_post_workspace_slug_members_by_member_slug_notes_data } -type mutation_post_by_workspace_slug_members_by_member_slug_notes_data { +type mutation_post_workspace_slug_members_by_member_slug_notes_data { id: String type: String - attributes: mutation_post_by_workspace_slug_members_by_member_slug_notes_data_attributes - relationships: mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships + attributes: mutation_post_workspace_slug_members_by_member_slug_notes_data_attributes + relationships: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships } -type mutation_post_by_workspace_slug_members_by_member_slug_notes_data_attributes { +type mutation_post_workspace_slug_members_by_member_slug_notes_data_attributes { id: String created_at: DateTime body: String updated_at: DateTime } -type mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships { - member: mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships_member - user: mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships_user +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships { + member: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_member + user: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_user } -type mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships_member { - data: mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships_member_data +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_member { + data: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_member_data } -type mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships_member_data { +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_member_data { id: String type: String } -type mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships_user { - data: mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships_user_data +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_user { + data: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_user_data } -type mutation_post_by_workspace_slug_members_by_member_slug_notes_data_relationships_user_data { +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_user_data { id: String type: String } @@ -1823,21 +1896,21 @@ input note_Input { body: String! } -union post_by_workspace_slug_members_response = post_by_workspace_slug_members_200_response | post_by_workspace_slug_members_201_response | post_by_workspace_slug_members_422_response +union post_workspace_slug_members_response = post_workspace_slug_members_200_response | post_workspace_slug_members_201_response | post_workspace_slug_members_422_response -type post_by_workspace_slug_members_200_response { - data: mutation_post_by_workspace_slug_members_oneOf_0_data - included: [mutation_post_by_workspace_slug_members_oneOf_0_included_items] +type post_workspace_slug_members_200_response { + data: mutation_post_workspace_slug_members_oneOf_0_data + included: [mutation_post_workspace_slug_members_oneOf_0_included_items] } -type mutation_post_by_workspace_slug_members_oneOf_0_data { +type mutation_post_workspace_slug_members_oneOf_0_data { id: String type: String - attributes: mutation_post_by_workspace_slug_members_oneOf_0_data_attributes - relationships: mutation_post_by_workspace_slug_members_oneOf_0_data_relationships + attributes: mutation_post_workspace_slug_members_oneOf_0_data_attributes + relationships: mutation_post_workspace_slug_members_oneOf_0_data_relationships } -type mutation_post_by_workspace_slug_members_oneOf_0_data_attributes { +type mutation_post_workspace_slug_members_oneOf_0_data_attributes { activities_count: Int activities_score: Int avatar_url: URL @@ -1881,26 +1954,26 @@ type mutation_post_by_workspace_slug_members_oneOf_0_data_attributes { languages: Void } -type mutation_post_by_workspace_slug_members_oneOf_0_data_relationships { - identities: mutation_post_by_workspace_slug_members_oneOf_0_data_relationships_identities +type mutation_post_workspace_slug_members_oneOf_0_data_relationships { + identities: mutation_post_workspace_slug_members_oneOf_0_data_relationships_identities } -type mutation_post_by_workspace_slug_members_oneOf_0_data_relationships_identities { - data: [mutation_post_by_workspace_slug_members_oneOf_0_data_relationships_identities_data_items] +type mutation_post_workspace_slug_members_oneOf_0_data_relationships_identities { + data: [mutation_post_workspace_slug_members_oneOf_0_data_relationships_identities_data_items] } -type mutation_post_by_workspace_slug_members_oneOf_0_data_relationships_identities_data_items { +type mutation_post_workspace_slug_members_oneOf_0_data_relationships_identities_data_items { id: String type: String } -type mutation_post_by_workspace_slug_members_oneOf_0_included_items { +type mutation_post_workspace_slug_members_oneOf_0_included_items { id: String type: String - attributes: mutation_post_by_workspace_slug_members_oneOf_0_included_items_attributes + attributes: mutation_post_workspace_slug_members_oneOf_0_included_items_attributes } -type mutation_post_by_workspace_slug_members_oneOf_0_included_items_attributes { +type mutation_post_workspace_slug_members_oneOf_0_included_items_attributes { uid: String email: Void username: String @@ -1909,19 +1982,19 @@ type mutation_post_by_workspace_slug_members_oneOf_0_included_items_attributes { source_host: String } -type post_by_workspace_slug_members_201_response { - data: mutation_post_by_workspace_slug_members_oneOf_1_data - included: [mutation_post_by_workspace_slug_members_oneOf_1_included_items] +type post_workspace_slug_members_201_response { + data: mutation_post_workspace_slug_members_oneOf_1_data + included: [mutation_post_workspace_slug_members_oneOf_1_included_items] } -type mutation_post_by_workspace_slug_members_oneOf_1_data { +type mutation_post_workspace_slug_members_oneOf_1_data { id: String type: String - attributes: mutation_post_by_workspace_slug_members_oneOf_1_data_attributes - relationships: mutation_post_by_workspace_slug_members_oneOf_1_data_relationships + attributes: mutation_post_workspace_slug_members_oneOf_1_data_attributes + relationships: mutation_post_workspace_slug_members_oneOf_1_data_relationships } -type mutation_post_by_workspace_slug_members_oneOf_1_data_attributes { +type mutation_post_workspace_slug_members_oneOf_1_data_attributes { activities_count: Int activities_score: Int avatar_url: URL @@ -1965,26 +2038,26 @@ type mutation_post_by_workspace_slug_members_oneOf_1_data_attributes { languages: Void } -type mutation_post_by_workspace_slug_members_oneOf_1_data_relationships { - identities: mutation_post_by_workspace_slug_members_oneOf_1_data_relationships_identities +type mutation_post_workspace_slug_members_oneOf_1_data_relationships { + identities: mutation_post_workspace_slug_members_oneOf_1_data_relationships_identities } -type mutation_post_by_workspace_slug_members_oneOf_1_data_relationships_identities { - data: [mutation_post_by_workspace_slug_members_oneOf_1_data_relationships_identities_data_items] +type mutation_post_workspace_slug_members_oneOf_1_data_relationships_identities { + data: [mutation_post_workspace_slug_members_oneOf_1_data_relationships_identities_data_items] } -type mutation_post_by_workspace_slug_members_oneOf_1_data_relationships_identities_data_items { +type mutation_post_workspace_slug_members_oneOf_1_data_relationships_identities_data_items { id: String type: String } -type mutation_post_by_workspace_slug_members_oneOf_1_included_items { +type mutation_post_workspace_slug_members_oneOf_1_included_items { id: String type: String - attributes: mutation_post_by_workspace_slug_members_oneOf_1_included_items_attributes + attributes: mutation_post_workspace_slug_members_oneOf_1_included_items_attributes } -type mutation_post_by_workspace_slug_members_oneOf_1_included_items_attributes { +type mutation_post_workspace_slug_members_oneOf_1_included_items_attributes { uid: String email: Void username: String @@ -1993,11 +2066,11 @@ type mutation_post_by_workspace_slug_members_oneOf_1_included_items_attributes { source_host: String } -type post_by_workspace_slug_members_422_response { - errors: mutation_post_by_workspace_slug_members_oneOf_2_errors +type post_workspace_slug_members_422_response { + errors: mutation_post_workspace_slug_members_oneOf_2_errors } -type mutation_post_by_workspace_slug_members_oneOf_2_errors { +type mutation_post_workspace_slug_members_oneOf_2_errors { email: [String] name: [String] } @@ -2007,17 +2080,17 @@ input member_and_identity_Input { identity: identity_Input } -type post_by_workspace_slug_webhooks_201_response { - data: mutation_post_by_workspace_slug_webhooks_data +type post_workspace_slug_webhooks_201_response { + data: mutation_post_workspace_slug_webhooks_data } -type mutation_post_by_workspace_slug_webhooks_data { +type mutation_post_workspace_slug_webhooks_data { id: String type: String - attributes: mutation_post_by_workspace_slug_webhooks_data_attributes + attributes: mutation_post_workspace_slug_webhooks_data_attributes } -type mutation_post_by_workspace_slug_webhooks_data_attributes { +type mutation_post_workspace_slug_webhooks_data_attributes { name: String enabled: Boolean updated_at: DateTime @@ -2042,7 +2115,6 @@ input alert_Input { name: String! event_type: String activity_types: [String] - activity_tags: [String] member_tags: [String] }" `; diff --git a/packages/loaders/openapi/src/utils.ts b/packages/loaders/openapi/src/utils.ts index 8ee4a19bf29d3..3d0b97c71a302 100644 --- a/packages/loaders/openapi/src/utils.ts +++ b/packages/loaders/openapi/src/utils.ts @@ -22,6 +22,10 @@ export function getFieldNameFromPath(path: string, method: string, responseTypeS } } + if (fieldNameWithoutMethod.startsWith('by_')) { + fieldNameWithoutMethod = fieldNameWithoutMethod.replace('by_', ''); + } + if (allQueryPartsStr) { const queryParts = allQueryPartsStr.split('&'); for (const queryPart of queryParts) { diff --git a/packages/loaders/openapi/tests/__snapshots__/calendly.test.ts.snap b/packages/loaders/openapi/tests/__snapshots__/calendly.test.ts.snap index 437a1f330f26b..637d46a55ece9 100644 --- a/packages/loaders/openapi/tests/__snapshots__/calendly.test.ts.snap +++ b/packages/loaders/openapi/tests/__snapshots__/calendly.test.ts.snap @@ -179,7 +179,7 @@ type Query { "Return entries from the user(s) associated with the provided URIs" actor: [URL] "Order results by the specified field and direction. List of {field}:{direction} values." - sort: [queryInput_activityLog_sort_items] = [occurred_at_COLON_desc] + sort: [queryInput_activityLog_sort_items] = [occurred_at_desc] "Include entries that occurred after this time (sample time format: \\"2020-01-02T03:04:05.678Z\\"). This time should use the UTC timezone." min_occurred_at: DateTime "Include entries that occurred prior to this time (sample time format: \\"2020-01-02T03:04:05.678Z\\"). This time should use the UTC timezone." @@ -1377,16 +1377,16 @@ scalar NonNegativeInt scalar queryInput_activityLog_search_term enum queryInput_activityLog_sort_items { - action_COLON_asc - action_COLON_desc - actor_display_name_COLON_asc - actor_display_name_COLON_desc - actor_uri_COLON_asc - actor_uri_COLON_desc - namespace_COLON_asc - namespace_COLON_desc - occurred_at_COLON_asc - occurred_at_COLON_desc + action_asc + action_desc + actor_display_name_asc + actor_display_name_desc + actor_uri_asc + actor_uri_desc + namespace_asc + namespace_desc + occurred_at_asc + occurred_at_desc } "Integers that will have a value greater than 0." diff --git a/packages/loaders/openapi/tests/__snapshots__/schemas.test.ts.snap b/packages/loaders/openapi/tests/__snapshots__/schemas.test.ts.snap index ff2670d5876f5..05601e9a34df0 100644 --- a/packages/loaders/openapi/tests/__snapshots__/schemas.test.ts.snap +++ b/packages/loaders/openapi/tests/__snapshots__/schemas.test.ts.snap @@ -161522,9 +161522,9 @@ type Webhook { } enum query_getDynamicWebhooksForApp_oneOf_0_values_items_events_items { - jira_COLON_issue_created - jira_COLON_issue_updated - jira_COLON_issue_deleted + jira_issue_created + jira_issue_updated + jira_issue_deleted comment_created comment_updated comment_deleted @@ -164079,19 +164079,19 @@ input CustomFieldDefinitionJsonBean_Input { "The searcher defines the way the field is searched in Jira. For example, *com.atlassian.jira.plugin.system.customfieldtypes:grouppickersearcher*. \\nThe search UI (basic search and JQL search) will display different operations and values for the field, based on the field searcher. You must specify a searcher that is valid for the field type, as listed below (abbreviated values shown):\\n\\n * \`cascadingselect\`: \`cascadingselectsearcher\`\\n * \`datepicker\`: \`daterange\`\\n * \`datetime\`: \`datetimerange\`\\n * \`float\`: \`exactnumber\` or \`numberrange\`\\n * \`grouppicker\`: \`grouppickersearcher\`\\n * \`importid\`: \`exactnumber\` or \`numberrange\`\\n * \`labels\`: \`labelsearcher\`\\n * \`multicheckboxes\`: \`multiselectsearcher\`\\n * \`multigrouppicker\`: \`multiselectsearcher\`\\n * \`multiselect\`: \`multiselectsearcher\`\\n * \`multiuserpicker\`: \`userpickergroupsearcher\`\\n * \`multiversion\`: \`versionsearcher\`\\n * \`project\`: \`projectsearcher\`\\n * \`radiobuttons\`: \`multiselectsearcher\`\\n * \`readonlyfield\`: \`textsearcher\`\\n * \`select\`: \`multiselectsearcher\`\\n * \`textarea\`: \`textsearcher\`\\n * \`textfield\`: \`textsearcher\`\\n * \`url\`: \`exacttextsearcher\`\\n * \`userpicker\`: \`userpickergroupsearcher\`\\n * \`version\`: \`versionsearcher\`\\n\\nIf no searcher is provided, the field isn't searchable. However, [Forge custom fields](https://developer.atlassian.com/platform/forge/manifest-reference/modules/#jira-custom-field-type--beta-) have a searcher set automatically, so are always searchable." enum mutationInput_createCustomField_input_searcherKey { - com_atlassian_jira_plugin_system_customfieldtypes_COLON_cascadingselectsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_daterange - com_atlassian_jira_plugin_system_customfieldtypes_COLON_datetimerange - com_atlassian_jira_plugin_system_customfieldtypes_COLON_exactnumber - com_atlassian_jira_plugin_system_customfieldtypes_COLON_exacttextsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_grouppickersearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_labelsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_multiselectsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_numberrange - com_atlassian_jira_plugin_system_customfieldtypes_COLON_projectsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_textsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_userpickergroupsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_versionsearcher + com_atlassian_jira_plugin_system_customfieldtypes_cascadingselectsearcher + com_atlassian_jira_plugin_system_customfieldtypes_daterange + com_atlassian_jira_plugin_system_customfieldtypes_datetimerange + com_atlassian_jira_plugin_system_customfieldtypes_exactnumber + com_atlassian_jira_plugin_system_customfieldtypes_exacttextsearcher + com_atlassian_jira_plugin_system_customfieldtypes_grouppickersearcher + com_atlassian_jira_plugin_system_customfieldtypes_labelsearcher + com_atlassian_jira_plugin_system_customfieldtypes_multiselectsearcher + com_atlassian_jira_plugin_system_customfieldtypes_numberrange + com_atlassian_jira_plugin_system_customfieldtypes_projectsearcher + com_atlassian_jira_plugin_system_customfieldtypes_textsearcher + com_atlassian_jira_plugin_system_customfieldtypes_userpickergroupsearcher + com_atlassian_jira_plugin_system_customfieldtypes_versionsearcher } union updateCustomField_response = updateCustomField_400_response | updateCustomField_403_response | updateCustomField_404_response @@ -164122,19 +164122,19 @@ input UpdateCustomFieldDetails_Input { "The searcher that defines the way the field is searched in Jira. It can be set to \`null\`, otherwise you must specify the valid searcher for the field type, as listed below (abbreviated values shown):\\n\\n * \`cascadingselect\`: \`cascadingselectsearcher\`\\n * \`datepicker\`: \`daterange\`\\n * \`datetime\`: \`datetimerange\`\\n * \`float\`: \`exactnumber\` or \`numberrange\`\\n * \`grouppicker\`: \`grouppickersearcher\`\\n * \`importid\`: \`exactnumber\` or \`numberrange\`\\n * \`labels\`: \`labelsearcher\`\\n * \`multicheckboxes\`: \`multiselectsearcher\`\\n * \`multigrouppicker\`: \`multiselectsearcher\`\\n * \`multiselect\`: \`multiselectsearcher\`\\n * \`multiuserpicker\`: \`userpickergroupsearcher\`\\n * \`multiversion\`: \`versionsearcher\`\\n * \`project\`: \`projectsearcher\`\\n * \`radiobuttons\`: \`multiselectsearcher\`\\n * \`readonlyfield\`: \`textsearcher\`\\n * \`select\`: \`multiselectsearcher\`\\n * \`textarea\`: \`textsearcher\`\\n * \`textfield\`: \`textsearcher\`\\n * \`url\`: \`exacttextsearcher\`\\n * \`userpicker\`: \`userpickergroupsearcher\`\\n * \`version\`: \`versionsearcher\`" enum mutationInput_updateCustomField_input_searcherKey { - com_atlassian_jira_plugin_system_customfieldtypes_COLON_cascadingselectsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_daterange - com_atlassian_jira_plugin_system_customfieldtypes_COLON_datetimerange - com_atlassian_jira_plugin_system_customfieldtypes_COLON_exactnumber - com_atlassian_jira_plugin_system_customfieldtypes_COLON_exacttextsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_grouppickersearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_labelsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_multiselectsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_numberrange - com_atlassian_jira_plugin_system_customfieldtypes_COLON_projectsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_textsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_userpickergroupsearcher - com_atlassian_jira_plugin_system_customfieldtypes_COLON_versionsearcher + com_atlassian_jira_plugin_system_customfieldtypes_cascadingselectsearcher + com_atlassian_jira_plugin_system_customfieldtypes_daterange + com_atlassian_jira_plugin_system_customfieldtypes_datetimerange + com_atlassian_jira_plugin_system_customfieldtypes_exactnumber + com_atlassian_jira_plugin_system_customfieldtypes_exacttextsearcher + com_atlassian_jira_plugin_system_customfieldtypes_grouppickersearcher + com_atlassian_jira_plugin_system_customfieldtypes_labelsearcher + com_atlassian_jira_plugin_system_customfieldtypes_multiselectsearcher + com_atlassian_jira_plugin_system_customfieldtypes_numberrange + com_atlassian_jira_plugin_system_customfieldtypes_projectsearcher + com_atlassian_jira_plugin_system_customfieldtypes_textsearcher + com_atlassian_jira_plugin_system_customfieldtypes_userpickergroupsearcher + com_atlassian_jira_plugin_system_customfieldtypes_versionsearcher } union createCustomFieldContext_response = CreateCustomFieldContext | createCustomFieldContext_409_response @@ -166364,28 +166364,28 @@ enum mutationInput_createProject_input_projectTypeKey { "A predefined configuration for a project. The type of the \`projectTemplateKey\` must match with the type of the \`projectTypeKey\`." enum mutationInput_createProject_input_projectTemplateKey { - com_pyxis_greenhopper_jira_COLON_gh_simplified_agility_kanban - com_pyxis_greenhopper_jira_COLON_gh_simplified_agility_scrum - com_pyxis_greenhopper_jira_COLON_gh_simplified_basic - com_pyxis_greenhopper_jira_COLON_gh_simplified_kanban_classic - com_pyxis_greenhopper_jira_COLON_gh_simplified_scrum_classic - com_atlassian_servicedesk_COLON_simplified_it_service_management - com_atlassian_servicedesk_COLON_simplified_general_service_desk - com_atlassian_servicedesk_COLON_simplified_general_service_desk_it - com_atlassian_servicedesk_COLON_simplified_general_service_desk_business - com_atlassian_servicedesk_COLON_simplified_internal_service_desk - com_atlassian_servicedesk_COLON_simplified_external_service_desk - com_atlassian_servicedesk_COLON_simplified_hr_service_desk - com_atlassian_servicedesk_COLON_simplified_facilities_service_desk - com_atlassian_servicedesk_COLON_simplified_legal_service_desk - com_atlassian_jira_core_project_templates_COLON_jira_core_simplified_content_management - com_atlassian_jira_core_project_templates_COLON_jira_core_simplified_document_approval - com_atlassian_jira_core_project_templates_COLON_jira_core_simplified_lead_tracking - com_atlassian_jira_core_project_templates_COLON_jira_core_simplified_process_control - com_atlassian_jira_core_project_templates_COLON_jira_core_simplified_procurement - com_atlassian_jira_core_project_templates_COLON_jira_core_simplified_project_management - com_atlassian_jira_core_project_templates_COLON_jira_core_simplified_recruitment - com_atlassian_jira_core_project_templates_COLON_jira_core_simplified_task_ + com_pyxis_greenhopper_jira_gh_simplified_agility_kanban + com_pyxis_greenhopper_jira_gh_simplified_agility_scrum + com_pyxis_greenhopper_jira_gh_simplified_basic + com_pyxis_greenhopper_jira_gh_simplified_kanban_classic + com_pyxis_greenhopper_jira_gh_simplified_scrum_classic + com_atlassian_servicedesk_simplified_it_service_management + com_atlassian_servicedesk_simplified_general_service_desk + com_atlassian_servicedesk_simplified_general_service_desk_it + com_atlassian_servicedesk_simplified_general_service_desk_business + com_atlassian_servicedesk_simplified_internal_service_desk + com_atlassian_servicedesk_simplified_external_service_desk + com_atlassian_servicedesk_simplified_hr_service_desk + com_atlassian_servicedesk_simplified_facilities_service_desk + com_atlassian_servicedesk_simplified_legal_service_desk + com_atlassian_jira_core_project_templates_jira_core_simplified_content_management + com_atlassian_jira_core_project_templates_jira_core_simplified_document_approval + com_atlassian_jira_core_project_templates_jira_core_simplified_lead_tracking + com_atlassian_jira_core_project_templates_jira_core_simplified_process_control + com_atlassian_jira_core_project_templates_jira_core_simplified_procurement + com_atlassian_jira_core_project_templates_jira_core_simplified_project_management + com_atlassian_jira_core_project_templates_jira_core_simplified_recruitment + com_atlassian_jira_core_project_templates_jira_core_simplified_task_ } "Details about the project." @@ -166965,9 +166965,9 @@ input WebhookDetails_Input { } enum mutationInput_registerDynamicWebhooks_input_webhooks_items_events_items { - jira_COLON_issue_created - jira_COLON_issue_updated - jira_COLON_issue_deleted + jira_issue_created + jira_issue_updated + jira_issue_deleted comment_created comment_updated comment_deleted diff --git a/packages/utils/src/sanitize-name-for-graphql.ts b/packages/utils/src/sanitize-name-for-graphql.ts index 0ed3d3631a108..44323923fa5e0 100644 --- a/packages/utils/src/sanitize-name-for-graphql.ts +++ b/packages/utils/src/sanitize-name-for-graphql.ts @@ -54,7 +54,7 @@ export function sanitizeNameForGraphQL(unsafeName: string): string { for (const ch of unsanitizedName) { if (/^[_a-zA-Z0-9]$/.test(ch)) { sanitizedName += ch; - } else if (ch === ' ' || ch === '-' || ch === '.' || ch === '/') { + } else if (ch === ' ' || ch === '-' || ch === '.' || ch === '/' || ch === ':') { sanitizedName += '_'; } else { sanitizedName += `_${getKnownCharacterOrCharCode(ch)}_`; diff --git a/website/src/pages/docs/handlers/openapi.mdx b/website/src/pages/docs/handlers/openapi.mdx index 746676fafb0d5..cf18e03f36b15 100644 --- a/website/src/pages/docs/handlers/openapi.mdx +++ b/website/src/pages/docs/handlers/openapi.mdx @@ -52,7 +52,7 @@ We use `operationId` for the names, and aim to keep it as close as possible to o ### Type naming We adjust `operationId` only when necessary according to the GraphQL spec: - - Chars ` ` (white space), `.`, `/` and `-` are replaced with `_` (underscore) + - Chars ` ` (white space), `.`, `/`, `:` and `-` are replaced with `_` (underscore) - Other chars which are not latin/digits are replaced with their char codes - If first char of the name is a digit, we prefix it with `_` (GraphQL spec doesn’t allow that)