2023-06-21 09:28:00 +00:00
|
|
|
// @ts-strict-ignore
|
2023-01-16 09:45:12 +00:00
|
|
|
import { HomeQuery, OrderEventsEnum } from "@dashboard/graphql";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const shop: (placeholderImage: string) => HomeQuery = (
|
2022-06-21 09:36:55 +00:00
|
|
|
placeholderImage: string,
|
2019-06-19 14:40:52 +00:00
|
|
|
) => ({
|
2022-03-09 08:56:55 +00:00
|
|
|
__typename: "Query",
|
2019-06-19 14:40:52 +00:00
|
|
|
activities: {
|
|
|
|
__typename: "OrderEventCountableConnection",
|
|
|
|
edges: [
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-09-14T16:10:27.137126+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDoxOA==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED_FROM_DRAFT,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: "admin@example.com",
|
2022-06-21 09:36:55 +00:00
|
|
|
id: "VXNlcjoyMQ==",
|
|
|
|
},
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-03T13:28:46.325279+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDozNQ==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED,
|
2022-06-21 09:36:55 +00:00
|
|
|
user: null,
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-03T13:29:01.837496+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDozNw==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.ORDER_FULLY_PAID,
|
2022-06-21 09:36:55 +00:00
|
|
|
user: null,
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-04T01:01:51.243723+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo1OA==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED_FROM_DRAFT,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: "admin@example.com",
|
2022-06-21 09:36:55 +00:00
|
|
|
id: "VXNlcjoyMQ==",
|
|
|
|
},
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-04T19:36:18.831561+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo2Nw==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED_FROM_DRAFT,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: "admin@example.com",
|
2022-06-21 09:36:55 +00:00
|
|
|
id: "VXNlcjoyMQ==",
|
|
|
|
},
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-04T19:38:01.420365+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo2OA==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED_FROM_DRAFT,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: "admin@example.com",
|
2022-06-21 09:36:55 +00:00
|
|
|
id: "VXNlcjoyMQ==",
|
|
|
|
},
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-05T12:30:57.268592+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo3MQ==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED_FROM_DRAFT,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: "admin@example.com",
|
2022-06-21 09:36:55 +00:00
|
|
|
id: "VXNlcjoyMQ==",
|
|
|
|
},
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-08T09:50:42.622253+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo3Mw==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED,
|
2022-06-21 09:36:55 +00:00
|
|
|
user: null,
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-12T15:51:11.665838+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo3Nw==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED_FROM_DRAFT,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: "admin@example.com",
|
2022-06-21 09:36:55 +00:00
|
|
|
id: "VXNlcjoyMQ==",
|
|
|
|
},
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-08-07 15:15:18 +00:00
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-12T15:51:11.665838+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo3Nw==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED_FROM_DRAFT,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: null,
|
2022-06-21 09:36:55 +00:00
|
|
|
id: "VXNlcjoyMQ==",
|
|
|
|
},
|
|
|
|
},
|
2020-08-07 15:15:18 +00:00
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-25T11:25:58.843860+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo3OA==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED,
|
2022-06-21 09:36:55 +00:00
|
|
|
user: null,
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-26T09:34:57.580167+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo4MA==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PLACED,
|
2022-06-21 09:36:55 +00:00
|
|
|
user: null,
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-26T09:38:02.440061+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo4Mg==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.ORDER_FULLY_PAID,
|
2022-06-21 09:36:55 +00:00
|
|
|
user: null,
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
composedId: null,
|
|
|
|
date: "2018-10-26T09:38:02.467443+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo4NA==",
|
|
|
|
message: null,
|
|
|
|
orderNumber: "15",
|
|
|
|
oversoldItems: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.ORDER_FULLY_PAID,
|
2022-06-21 09:36:55 +00:00
|
|
|
user: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
ordersToCapture: {
|
|
|
|
__typename: "OrderCountableConnection",
|
2022-06-21 09:36:55 +00:00
|
|
|
totalCount: 0,
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
ordersToFulfill: {
|
|
|
|
__typename: "OrderCountableConnection",
|
2022-06-21 09:36:55 +00:00
|
|
|
totalCount: 1,
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
ordersToday: {
|
|
|
|
__typename: "OrderCountableConnection",
|
2022-06-21 09:36:55 +00:00
|
|
|
totalCount: 1,
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
productTopToday: {
|
|
|
|
__typename: "ProductVariantCountableConnection",
|
|
|
|
edges: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
attributes: [
|
|
|
|
{
|
|
|
|
__typename: "SelectedAttribute",
|
2020-01-09 11:13:24 +00:00
|
|
|
values: [
|
|
|
|
{
|
|
|
|
__typename: "AttributeValue",
|
|
|
|
id: "QXR0cmlidXRlVmFsdWU6OTI=",
|
2023-07-18 10:01:15 +00:00
|
|
|
name: "XL",
|
2022-06-21 09:36:55 +00:00
|
|
|
sortOrder: 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6NDM=",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
id: "UHJvZHVjdDo4",
|
2023-07-18 10:01:15 +00:00
|
|
|
name: "Black Hoodie",
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image",
|
|
|
|
url: placeholderImage,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
quantityOrdered: 1,
|
|
|
|
revenue: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 37.65,
|
|
|
|
currency: "USD",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
attributes: [
|
|
|
|
{
|
|
|
|
__typename: "SelectedAttribute",
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
__typename: "AttributeValue",
|
|
|
|
id: "QXR0cmlidXRlVmFsdWU6OTI2=",
|
|
|
|
name: "2l",
|
|
|
|
sortOrder: 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6NDM=2",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
id: "UHJvZHVjdDo4",
|
|
|
|
name: "Bean Juice",
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image",
|
|
|
|
url: placeholderImage,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
quantityOrdered: 1,
|
|
|
|
revenue: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 37.65,
|
|
|
|
currency: "USD",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantCountableEdge",
|
|
|
|
node: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
attributes: [
|
|
|
|
{
|
|
|
|
__typename: "SelectedAttribute",
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
__typename: "AttributeValue",
|
|
|
|
id: "QXR0cmlidXRlVmFsdWU6OTI=3",
|
|
|
|
name: "L",
|
|
|
|
sortOrder: 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6NDM=3",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
id: "UHJvZHVjdDo4",
|
|
|
|
name: "Black Hoodie",
|
2019-06-19 14:40:52 +00:00
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image",
|
2022-06-21 09:36:55 +00:00
|
|
|
url: placeholderImage,
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
quantityOrdered: 1,
|
|
|
|
revenue: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 37.65,
|
2022-06-21 09:36:55 +00:00
|
|
|
currency: "USD",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
productsOutOfStock: {
|
|
|
|
__typename: "ProductCountableConnection",
|
2022-06-21 09:36:55 +00:00
|
|
|
totalCount: 0,
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
salesToday: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 57.15,
|
2022-06-21 09:36:55 +00:00
|
|
|
currency: "USD",
|
|
|
|
},
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
});
|