Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Regenerate types
dominik-zeglen514af48b69b9
diff --git a/saleor/static/dashboard-next/staff/components/StaffDetailsPage/StaffDetailsPage.tsx b/saleor/static/dashboard-next/staff/components/StaffDetailsPage/StaffDetailsPage.tsxindex 58ff5e4c14..5bf9aea6c4 100644--- a/saleor/static/dashboard-next/staff/components/StaffDetailsPage/StaffDetailsPage.tsx+++ b/saleor/static/dashboard-next/staff/components/StaffDetailsPage/StaffDetailsPage.tsx@@ -12,6 +12,7 @@ import Form from "../../../components/Form";import PageHeader from "../../../components/PageHeader";import SaveButtonBar from "../../../components/SaveButtonBar";import { maybe } from "../../../misc";+import { PermissionEnum } from "../../../types/globalTypes";import {StaffMemberDetails_shop_permissions,StaffMemberDetails_user@@ -23,7 +24,7 @@ import StaffStatus from "../StaffStatus/StaffStatus";interface FormData {hasFullAccess: boolean;isActive: boolean;- permissions: string[];+ permissions: PermissionEnum[];}const styles = (theme: Theme) =>diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.tsindex d1b73c87d8..cfabb8e202 100644--- a/saleor/static/dashboard-next/types/globalTypes.ts+++ b/saleor/static/dashboard-next/types/globalTypes.ts@@ -286,7 +286,7 @@ export interface StaffCreateInput {email?: string | null;isActive?: boolean | null;note?: string | null;- permissions?: (string | null)[] | null;+ permissions?: (PermissionEnum | null)[] | null;sendPasswordEmail?: boolean | null;}@@ -294,7 +294,7 @@ export interface StaffInput {email?: string | null;isActive?: boolean | null;note?: string | null;- permissions?: (string | null)[] | null;+ permissions?: (PermissionEnum | null)[] | null;}export interface UserCreateInput {