Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App create: Ask for framework before fetching templates #4897

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 99 additions & 13 deletions lib/backend-api/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ interface Node {
type PublicKey implements Node {
"""The ID of the object"""
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
deletedAt: DateTime
owner: User!
keyId: String!
key: String!
Expand All @@ -25,6 +28,13 @@ type PublicKey implements Node {
revoked: Boolean!
}

"""
The `DateTime` scalar type represents a DateTime
value as specified by
[iso8601](https://en.wikipedia.org/wiki/ISO_8601).
"""
scalar DateTime

type User implements Node & PackageOwner & Owner {
firstName: String!
lastName: String!
Expand Down Expand Up @@ -84,13 +94,6 @@ interface Owner {
globalId: ID!
}

"""
The `DateTime` scalar type represents a DateTime
value as specified by
[iso8601](https://en.wikipedia.org/wiki/ISO_8601).
"""
scalar DateTime

type ActivityEventConnection {
"""Pagination data for this connection."""
pageInfo: PageInfo!
Expand Down Expand Up @@ -190,6 +193,7 @@ type NamespaceEdge {
type Namespace implements Node & PackageOwner & Owner {
"""The ID of the object"""
id: ID!
deletedAt: DateTime
name: String!
displayName: String
description: String!
Expand Down Expand Up @@ -249,6 +253,8 @@ type NamespaceCollaboratorInviteEdge {
type NamespaceCollaboratorInvite implements Node {
"""The ID of the object"""
id: ID!
updatedAt: DateTime!
deletedAt: DateTime
requestedBy: User!
user: User
inviteEmail: String
Expand Down Expand Up @@ -279,6 +285,7 @@ enum RegistryNamespaceMaintainerInviteRoleChoices {
type NamespaceCollaborator implements Node {
"""The ID of the object"""
id: ID!
deletedAt: DateTime
user: User!
role: RegistryNamespaceMaintainerRoleChoices!
namespace: Namespace!
Expand Down Expand Up @@ -344,6 +351,7 @@ type PackageEdge {
type Package implements Likeable & Node & PackageOwner {
"""The ID of the object"""
id: ID!
deletedAt: DateTime
name: String!
private: Boolean!
createdAt: DateTime!
Expand Down Expand Up @@ -939,6 +947,9 @@ type BindingsGeneratorEdge {
type BindingsGenerator implements Node {
"""The ID of the object"""
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
deletedAt: DateTime
packageVersion: PackageVersion!
active: Boolean!
commandName: String!
Expand Down Expand Up @@ -1103,6 +1114,7 @@ type PackageVersionFilesystem {
type InterfaceVersion implements Node {
"""The ID of the object"""
id: ID!
deletedAt: DateTime
interface: Interface!
version: String!
content: String!
Expand All @@ -1115,6 +1127,7 @@ type InterfaceVersion implements Node {
type Interface implements Node {
"""The ID of the object"""
id: ID!
deletedAt: DateTime
name: String!
displayName: String!
description: String!
Expand Down Expand Up @@ -1235,11 +1248,13 @@ type AppTemplate implements Node {
updatedAt: DateTime!
readme: String!
useCases: JSONString!
framework: String!
language: String!
repoLicense: String!
usingPackage: Package
defaultImage: String
framework: String!
templateFramework: TemplateFramework
language: String!
templateLanguage: TemplateLanguage
}

type AppTemplateCategory implements Node {
Expand All @@ -1253,6 +1268,24 @@ type AppTemplateCategory implements Node {
appTemplates(offset: Int, before: String, after: String, first: Int, last: Int): AppTemplateConnection!
}

type TemplateFramework implements Node {
"""The ID of the object"""
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
name: String!
slug: String!
}

type TemplateLanguage implements Node {
"""The ID of the object"""
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
name: String!
slug: String!
}

type Collection {
slug: String!
displayName: String!
Expand Down Expand Up @@ -1340,6 +1373,7 @@ type PackageCollaboratorEdge {
type PackageCollaborator implements Node {
"""The ID of the object"""
id: ID!
deletedAt: DateTime
user: User!
role: RegistryPackageMaintainerRoleChoices!
package: Package!
Expand All @@ -1365,6 +1399,8 @@ enum RegistryPackageMaintainerRoleChoices {
type PackageCollaboratorInvite implements Node {
"""The ID of the object"""
id: ID!
updatedAt: DateTime!
deletedAt: DateTime
requestedBy: User!
user: User
inviteEmail: String
Expand Down Expand Up @@ -1422,6 +1458,8 @@ enum GrapheneRole {
type PackageTransferRequest implements Node {
"""The ID of the object"""
id: ID!
updatedAt: DateTime!
deletedAt: DateTime
requestedBy: User!
previousOwnerObjectId: Int!
newOwnerObjectId: Int!
Expand Down Expand Up @@ -1540,14 +1578,14 @@ type DNSDomainEdge {
}

type DNSDomain implements Node {
createdAt: DateTime!
updatedAt: DateTime!
deletedAt: DateTime
name: String!

"""This zone will be accessible at /dns/{slug}/."""
slug: String!
zoneFile: String!
createdAt: DateTime!
updatedAt: DateTime!
deletedAt: DateTime

"""The ID of the object"""
id: ID!
Expand Down Expand Up @@ -1860,6 +1898,8 @@ type APITokenEdge {

type APIToken {
id: ID!
updatedAt: DateTime!
deletedAt: DateTime
user: User!
identifier: String
createdAt: DateTime!
Expand Down Expand Up @@ -1976,6 +2016,8 @@ type SocialAuth implements Node {

type Signature {
id: ID!
updatedAt: DateTime!
deletedAt: DateTime
publicKey: PublicKey!
data: String!
createdAt: DateTime!
Expand Down Expand Up @@ -2258,7 +2300,9 @@ type Query {
getAppByGlobalAlias(alias: String!): DeployApp
getDeployApps(sortBy: DeployAppsSortBy, updatedAfter: DateTime, offset: Int, before: String, after: String, first: Int, last: Int): DeployAppConnection!
getAppVersions(sortBy: DeployAppVersionsSortBy, updatedAfter: DateTime, offset: Int, before: String, after: String, first: Int, last: Int): DeployAppVersionConnection!
getAppTemplates(categorySlug: String, sortBy: AppTemplatesSortBy, offset: Int, before: String, after: String, first: Int, last: Int): AppTemplateConnection
getTemplateFrameworks(offset: Int, before: String, after: String, first: Int, last: Int): TemplateFrameworkConnection
getTemplateLanguages(offset: Int, before: String, after: String, first: Int, last: Int): TemplateLanguageConnection
getAppTemplates(categorySlug: String, frameworkSlug: String, languageSlug: String, sortBy: AppTemplatesSortBy, offset: Int, before: String, after: String, first: Int, last: Int): AppTemplateConnection
getAppTemplate(slug: String!): AppTemplate
getAppTemplateCategories(offset: Int, before: String, after: String, first: Int, last: Int): AppTemplateCategoryConnection
viewer: User
Expand Down Expand Up @@ -2357,6 +2401,46 @@ enum DNSRecordsSortBy {
OLDEST
}

type TemplateFrameworkConnection {
"""Pagination data for this connection."""
pageInfo: PageInfo!

"""Contains the nodes in this connection."""
edges: [TemplateFrameworkEdge]!

"""Total number of items in the connection."""
totalCount: Int
}

"""A Relay edge containing a `TemplateFramework` and its cursor."""
type TemplateFrameworkEdge {
"""The item at the end of the edge"""
node: TemplateFramework

"""A cursor for use in pagination"""
cursor: String!
}

type TemplateLanguageConnection {
"""Pagination data for this connection."""
pageInfo: PageInfo!

"""Contains the nodes in this connection."""
edges: [TemplateLanguageEdge]!

"""Total number of items in the connection."""
totalCount: Int
}

"""A Relay edge containing a `TemplateLanguage` and its cursor."""
type TemplateLanguageEdge {
"""The item at the end of the edge"""
node: TemplateLanguage

"""A cursor for use in pagination"""
cursor: String!
}

enum AppTemplatesSortBy {
NEWEST
OLDEST
Expand Down Expand Up @@ -3066,6 +3150,8 @@ type RequestAppTransferPayload {
type AppTransferRequest implements Node {
"""The ID of the object"""
id: ID!
updatedAt: DateTime!
deletedAt: DateTime
requestedBy: User!
previousOwnerObjectId: Int!
newOwnerObjectId: Int!
Expand Down
Loading
Loading