Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update schema

Marcin Gębalad4a7f011af0c
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 8738b52ed3..9e0281bd69 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -202,10 +202,30 @@ type AttributeValueUpdate {
}
type AuthorizationKey {
- name: String!
+ name: AuthorizationKeyType!
key: String!
}
+type AuthorizationKeyAdd {
+ errors: [Error]
+ authorizationKey: AuthorizationKey
+}
+
+type AuthorizationKeyDelete {
+ errors: [Error]
+ authorizationKey: AuthorizationKey
+}
+
+input AuthorizationKeyInput {
+ key: String
+ password: String
+}
+
+enum AuthorizationKeyType {
+ FACEBOOK
+ GOOGLE_OAUTH2
+}
+
type Category implements Node {
seoTitle: String
seoDescription: String
@@ -649,6 +669,8 @@ type MoneyRange {
}
type Mutations {
+ authorizationKeyAdd(input: AuthorizationKeyInput!, keyType: AuthorizationKeyType!): AuthorizationKeyAdd
+ authorizationKeyDelete(keyType: AuthorizationKeyType!): AuthorizationKeyDelete
assignNavigation(menu: ID, navigationType: NavigationType!): AssignNavigation
tokenCreate(email: String!, password: String!): CreateToken
tokenRefresh(token: String): Refresh