Skip to content

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

Add fixtures for customers

Lukasz Szewczykd4cf625b8fc1
diff --git a/saleor/static/dashboard-next/customers/fixtures.ts b/saleor/static/dashboard-next/customers/fixtures.ts
index 7f723cf2a6..1fb9fb7f34 100644
--- a/saleor/static/dashboard-next/customers/fixtures.ts
+++ b/saleor/static/dashboard-next/customers/fixtures.ts
@@ -680,8 +680,10 @@ export const customers = [
export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
- email: "[email protected]",
+ email: "[email protected]",
+ firstName: "curtis",
id: "VXNlcjox",
+ lastName: "Bailey",
orders: {
__typename: "OrderCountableConnection",
totalCount: 2
@@ -690,7 +692,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Curtis",
id: "VXNlcjox",
+ lastName: "Bailey",
orders: {
__typename: "OrderCountableConnection",
totalCount: 2
@@ -699,7 +703,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Elizabeth",
id: "VXNlcjoy",
+ lastName: "Vaughn",
orders: {
__typename: "OrderCountableConnection",
totalCount: 1
@@ -708,7 +714,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Michael",
id: "VXNlcjoz",
+ lastName: "Martinez",
orders: {
__typename: "OrderCountableConnection",
totalCount: 1
@@ -717,7 +725,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Kayla",
id: "VXNlcjo0",
+ lastName: "Griffin",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -726,7 +736,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Donna",
id: "VXNlcjo1",
+ lastName: "Robinson",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -735,7 +747,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "James",
id: "VXNlcjo2",
+ lastName: "Bqall",
orders: {
__typename: "OrderCountableConnection",
totalCount: 1
@@ -744,7 +758,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Anthony",
id: "VXNlcjo3",
+ lastName: "Gonzalez",
orders: {
__typename: "OrderCountableConnection",
totalCount: 2
@@ -753,7 +769,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Anthony",
id: "VXNlcjo3",
+ lastName: "Gonzalez",
orders: {
__typename: "OrderCountableConnection",
totalCount: 2
@@ -762,7 +780,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Wesley",
id: "VXNlcjo4",
+ lastName: "Davis",
orders: {
__typename: "OrderCountableConnection",
totalCount: 1
@@ -771,7 +791,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Laura",
id: "VXNlcjo5",
+ lastName: "Stone",
orders: {
__typename: "OrderCountableConnection",
totalCount: 1
@@ -780,7 +802,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "William",
id: "VXNlcjoxMA==",
+ lastName: "Miller",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -789,7 +813,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Donald",
id: "VXNlcjoxMQ==",
+ lastName: "Solomon",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -798,7 +824,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Anthony",
id: "VXNlcjoxMg==",
+ lastName: "Young",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -807,7 +835,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Hanson",
id: "VXNlcjoxMw==",
+ lastName: "Sharon",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -816,7 +846,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Laura",
id: "VXNlcjoxNA==",
+ lastName: "Jensen",
orders: {
__typename: "OrderCountableConnection",
totalCount: 1
@@ -825,7 +857,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Mark",
id: "VXNlcjoxNQ==",
+ lastName: "Lee",
orders: {
__typename: "OrderCountableConnection",
totalCount: 1
@@ -834,7 +868,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "David",
id: "VXNlcjoxNg==",
+ lastName: "Lawson",
orders: {
__typename: "OrderCountableConnection",
totalCount: 2
@@ -843,7 +879,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "David",
id: "VXNlcjoxNg==",
+ lastName: "Lawson",
orders: {
__typename: "OrderCountableConnection",
totalCount: 2
@@ -852,7 +890,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Faith",
id: "VXNlcjoxNw==",
+ lastName: "Smith",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -861,7 +901,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "John",
id: "VXNlcjoxOA==",
+ lastName: "Jones",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -870,7 +912,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Ronald",
id: "VXNlcjoxOQ==",
+ lastName: "Fisher",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -879,7 +923,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Jason",
id: "VXNlcjoyMA==",
+ lastName: "Gray",
orders: {
__typename: "OrderCountableConnection",
totalCount: 0
@@ -888,7 +934,9 @@ export const customerList: ListCustomers_customers_edges_node[] = [
{
__typename: "User",
+ firstName: "Tom",
id: "VXNlcjoyMQ==",
+ lastName: "Cooper",
orders: {
__typename: "OrderCountableConnection",
totalCount: 6
diff --git a/saleor/static/dashboard-next/customers/types/ListCustomers.ts b/saleor/static/dashboard-next/customers/types/ListCustomers.ts
index 9d3388b1d0..2f361ca5af 100644
--- a/saleor/static/dashboard-next/customers/types/ListCustomers.ts
+++ b/saleor/static/dashboard-next/customers/types/ListCustomers.ts
@@ -13,7 +13,9 @@ export interface ListCustomers_customers_edges_node_orders {
export interface ListCustomers_customers_edges_node {
__typename: "User";
id: string;
+ firstName: string;
email: string;
+ lastName: string;
orders: ListCustomers_customers_edges_node_orders | null;
}
diff --git a/saleor/static/dashboard-next/staff/fixtures.ts b/saleor/static/dashboard-next/staff/fixtures.ts
index 6c203daa76..f32b91315d 100644
--- a/saleor/static/dashboard-next/staff/fixtures.ts
+++ b/saleor/static/dashboard-next/staff/fixtures.ts
@@ -50,10 +50,10 @@ export const permissions = [
export const staffMembers: StaffList_staffUsers_edges_node[] = [
{
- firstName: "Jacob",
+ firstName: "Chris",
id: "VXNlcjoyMQ==",
isActive: true,
- lastName: "Smith"
+ lastName: "Cooper"
},
{