Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Build graphql schema
Patrick Emmanuel96b5a3161ade
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 9e0281bd69..a2e69ea0a9 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -1016,10 +1016,23 @@ enum PaymentStatusEnum {}type PermissionDisplay {- code: String!+ code: PermissionEnum!name: String!}+enum PermissionEnum {+ ACCOUNT_MANAGE_USERS+ ACCOUNT_MANAGE_STAFF+ ACCOUNT_IMPERSONATE_USERS+ DISCOUNT_MANAGE_DISCOUNTS+ MENU_MANAGE_MENUS+ ORDER_MANAGE_ORDERS+ PAGE_MANAGE_PAGES+ PRODUCT_MANAGE_PRODUCTS+ SHIPPING_MANAGE_SHIPPING+ SITE_MANAGE_SETTINGS+}+type Product implements Node {id: ID!seoTitle: Stringdiff --git a/saleor/static/dashboard-next/auth/types/TokenAuth.ts b/saleor/static/dashboard-next/auth/types/TokenAuth.tsindex b0e7a70804..b3e37a805d 100644--- a/saleor/static/dashboard-next/auth/types/TokenAuth.ts+++ b/saleor/static/dashboard-next/auth/types/TokenAuth.ts@@ -1,6 +1,8 @@/* tslint:disable */// This file was automatically generated and should not be edited.+import { PermissionEnum } from "./../../types/globalTypes";+// ====================================================// GraphQL mutation operation: TokenAuth// ====================================================@@ -13,7 +15,7 @@ export interface TokenAuth_tokenCreate_errors {export interface TokenAuth_tokenCreate_user_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}diff --git a/saleor/static/dashboard-next/auth/types/User.ts b/saleor/static/dashboard-next/auth/types/User.tsindex 3ccb1f5744..10872314f5 100644--- a/saleor/static/dashboard-next/auth/types/User.ts+++ b/saleor/static/dashboard-next/auth/types/User.ts@@ -1,13 +1,15 @@/* tslint:disable */// This file was automatically generated and should not be edited.+import { PermissionEnum } from "./../../types/globalTypes";+// ====================================================// GraphQL fragment: User// ====================================================export interface User_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}diff --git a/saleor/static/dashboard-next/auth/types/VerifyToken.ts b/saleor/static/dashboard-next/auth/types/VerifyToken.tsindex 96dad03d8a..876ebda4c8 100644--- a/saleor/static/dashboard-next/auth/types/VerifyToken.ts+++ b/saleor/static/dashboard-next/auth/types/VerifyToken.ts@@ -1,13 +1,15 @@/* tslint:disable */// This file was automatically generated and should not be edited.+import { PermissionEnum } from "./../../types/globalTypes";+// ====================================================// GraphQL mutation operation: VerifyToken// ====================================================export interface VerifyToken_tokenVerify_user_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}diff --git a/saleor/static/dashboard-next/staff/types/StaffList.ts b/saleor/static/dashboard-next/staff/types/StaffList.tsindex 26396d3b0b..c2d79525b6 100644--- a/saleor/static/dashboard-next/staff/types/StaffList.ts+++ b/saleor/static/dashboard-next/staff/types/StaffList.ts@@ -1,6 +1,8 @@/* tslint:disable */// This file was automatically generated and should not be edited.+import { PermissionEnum } from "./../../types/globalTypes";+// ====================================================// GraphQL query operation: StaffList// ====================================================@@ -34,7 +36,7 @@ export interface StaffList_staffUsers {export interface StaffList_shop_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}diff --git a/saleor/static/dashboard-next/staff/types/StaffMemberAdd.ts b/saleor/static/dashboard-next/staff/types/StaffMemberAdd.tsindex a2a35631d8..fe118d35e7 100644--- a/saleor/static/dashboard-next/staff/types/StaffMemberAdd.ts+++ b/saleor/static/dashboard-next/staff/types/StaffMemberAdd.ts@@ -1,7 +1,7 @@/* tslint:disable */// This file was automatically generated and should not be edited.-import { StaffCreateInput } from "./../../types/globalTypes";+import { StaffCreateInput, PermissionEnum } from "./../../types/globalTypes";// ====================================================// GraphQL mutation operation: StaffMemberAdd@@ -15,7 +15,7 @@ export interface StaffMemberAdd_staffCreate_errors {export interface StaffMemberAdd_staffCreate_user_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}diff --git a/saleor/static/dashboard-next/staff/types/StaffMemberDetails.ts b/saleor/static/dashboard-next/staff/types/StaffMemberDetails.tsindex 00176269fb..83a3a91915 100644--- a/saleor/static/dashboard-next/staff/types/StaffMemberDetails.ts+++ b/saleor/static/dashboard-next/staff/types/StaffMemberDetails.ts@@ -1,13 +1,15 @@/* tslint:disable */// This file was automatically generated and should not be edited.+import { PermissionEnum } from "./../../types/globalTypes";+// ====================================================// GraphQL query operation: StaffMemberDetails// ====================================================export interface StaffMemberDetails_user_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}@@ -21,7 +23,7 @@ export interface StaffMemberDetails_user {export interface StaffMemberDetails_shop_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}diff --git a/saleor/static/dashboard-next/staff/types/StaffMemberDetailsFragment.ts b/saleor/static/dashboard-next/staff/types/StaffMemberDetailsFragment.tsindex 0985344e8f..3d42140160 100644--- a/saleor/static/dashboard-next/staff/types/StaffMemberDetailsFragment.ts+++ b/saleor/static/dashboard-next/staff/types/StaffMemberDetailsFragment.ts@@ -1,13 +1,15 @@/* tslint:disable */// This file was automatically generated and should not be edited.+import { PermissionEnum } from "./../../types/globalTypes";+// ====================================================// GraphQL fragment: StaffMemberDetailsFragment// ====================================================export interface StaffMemberDetailsFragment_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}diff --git a/saleor/static/dashboard-next/staff/types/StaffMemberUpdate.ts b/saleor/static/dashboard-next/staff/types/StaffMemberUpdate.tsindex 9883ad35c2..1368141eb7 100644--- a/saleor/static/dashboard-next/staff/types/StaffMemberUpdate.ts+++ b/saleor/static/dashboard-next/staff/types/StaffMemberUpdate.ts@@ -1,7 +1,7 @@/* tslint:disable */// This file was automatically generated and should not be edited.-import { StaffInput } from "./../../types/globalTypes";+import { StaffInput, PermissionEnum } from "./../../types/globalTypes";// ====================================================// GraphQL mutation operation: StaffMemberUpdate@@ -15,7 +15,7 @@ export interface StaffMemberUpdate_staffUpdate_errors {export interface StaffMemberUpdate_staffUpdate_user_permissions {__typename: "PermissionDisplay";- code: string;+ code: PermissionEnum;name: string;}diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.tsindex 0359ef18df..68d1e01bff 100644--- a/saleor/static/dashboard-next/types/globalTypes.ts+++ b/saleor/static/dashboard-next/types/globalTypes.ts@@ -55,6 +55,19 @@ export enum PaymentStatusEnum {WAITING = "WAITING",}+export enum PermissionEnum {+ ACCOUNT_IMPERSONATE_USERS = "ACCOUNT_IMPERSONATE_USERS",+ ACCOUNT_MANAGE_STAFF = "ACCOUNT_MANAGE_STAFF",+ ACCOUNT_MANAGE_USERS = "ACCOUNT_MANAGE_USERS",+ DISCOUNT_MANAGE_DISCOUNTS = "DISCOUNT_MANAGE_DISCOUNTS",+ MENU_MANAGE_MENUS = "MENU_MANAGE_MENUS",+ ORDER_MANAGE_ORDERS = "ORDER_MANAGE_ORDERS",+ PAGE_MANAGE_PAGES = "PAGE_MANAGE_PAGES",+ PRODUCT_MANAGE_PRODUCTS = "PRODUCT_MANAGE_PRODUCTS",+ SHIPPING_MANAGE_SHIPPING = "SHIPPING_MANAGE_SHIPPING",+ SITE_MANAGE_SETTINGS = "SITE_MANAGE_SETTINGS",+}+export enum TaxRateType {ACCOMMODATION = "ACCOMMODATION",ADMISSION_TO_CULTURAL_EVENTS = "ADMISSION_TO_CULTURAL_EVENTS",