Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add migration,graphql schema and globalTypes
fowczarek5e8e05588ae5
diff --git a/saleor/account/migrations/0024_auto_20181011_0737.py b/saleor/account/migrations/0024_auto_20181011_0737.pynew file mode 100644index 0000000000..3b7c63cd1b--- /dev/null+++ b/saleor/account/migrations/0024_auto_20181011_0737.py@@ -0,0 +1,23 @@+# Generated by Django 2.1.2 on 2018-10-11 12:37++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('account', '0023_auto_20180719_0520'),+ ]++ operations = [+ migrations.AddField(+ model_name='user',+ name='first_name',+ field=models.CharField(blank=True, max_length=256),+ ),+ migrations.AddField(+ model_name='user',+ name='last_name',+ field=models.CharField(blank=True, max_length=256),+ ),+ ]diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex c0c034d643..566364994f 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -498,6 +498,8 @@ type CustomerDelete {input CustomerInput {defaultBillingAddress: AddressInputdefaultShippingAddress: AddressInput+ firstName: String+ lastName: Stringemail: StringisActive: Booleannote: String@@ -1817,6 +1819,8 @@ type StaffCreate {}input StaffCreateInput {+ firstName: String+ lastName: Stringemail: StringisActive: Booleannote: String@@ -1830,6 +1834,8 @@ type StaffDelete {}input StaffInput {+ firstName: String+ lastName: Stringemail: StringisActive: Booleannote: String@@ -1926,6 +1932,8 @@ type User implements Node {id: ID!lastLogin: DateTimeemail: String!+ firstName: String!+ lastName: String!addresses: [Address]isStaff: Boolean!token: UUID!@@ -1957,6 +1965,8 @@ type UserCountableEdge {input UserCreateInput {defaultBillingAddress: AddressInputdefaultShippingAddress: AddressInput+ firstName: String+ lastName: Stringemail: StringisActive: Booleannote: Stringdiff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.tsindex d1b73c87d8..2425e52df2 100644--- a/saleor/static/dashboard-next/types/globalTypes.ts+++ b/saleor/static/dashboard-next/types/globalTypes.ts@@ -283,6 +283,8 @@ export interface SiteDomainInput {}export interface StaffCreateInput {+ firstName?: string | null;+ lastName?: string | null;email?: string | null;isActive?: boolean | null;note?: string | null;@@ -291,6 +293,8 @@ export interface StaffCreateInput {}export interface StaffInput {+ firstName?: string | null;+ lastName?: string | null;email?: string | null;isActive?: boolean | null;note?: string | null;