-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjoseph.json
85 lines (76 loc) · 3.04 KB
/
joseph.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
export type NewInsightsApiResponse = {
groups: InsightApiGroup[];
};
export type InsightApiGroup = {
id: string;
header: string;
items: InsightApiItem[];
};
export type InsightApiItem = {
id: string;
variant: InsightApiItemVariant;
header: string;
description: string;
};
export type InsightApiItemVariant = "add" | "remove" | "increase" | "people";
export type HistoricalNewInsightsApiResponse = {
groups: HistoricalInsightApiGroup[];
};
export type HistoricalInsightApiGroup = {
id: string;
header: string;
items: HistoricalInsightApiItem[];
};
export type HistoricalInsightApiItem = {
id: string;
variant: InsightApiItemVariant;
header: string;
description: string;
state: HistoricalInsightApiItemState | null;
};
export type HistoricalInsightApiItemState = "accepted" | "dismissed";
_______________________________________________________________________________________________
{
"groups":[
{
"id":"march-2020",
"header":"March 2020",
"items":[
{
"id":"add-strawberry-mocha-latte",
"variant":"add",
"state":"accepted",
"header":"Add *Strawberry Mocha Latte* to your catalog for up to *34%* increased revenue",
"description":"Based on sales data in 210 other stores that stock this item in the past 2 months"
},
{
"id":"remove-mocha-americano",
"variant":"remove",
"state":"dismissed",
"header":"Remove *Mocha Americano* from your catalog",
"description":"Overall revenue contribution: *0.001%* (based on sales data in this store over the past year). Overall market revenue contribution: *0.00056%* (based on sales data in 21 other stores that stock this item in the past year."
},
{
"id":"hazelnut-espresso",
"variant":"increase",
"state":null,
"header":"Promote *Hazelnut Espresso* for up to *70%* sales growth on that item and *12%* increased revenue",
"description":"Based on sales data in 12 other stores that promoted this item in the past 2 months"
}
]
},
{
"id":"december-2019",
"header":"December 2019",
"items":[
{
"id":"increase-staffing-thursday-fridays",
"variant":"people",
"state":"accepted",
"header":"Accepted - increase staffing on *Thursdays* and *Fridays* from *11:00 AM* to *3:00 PM* to see potential revenue increases of *28%*",
"description":"Labor cost increase (per month): *$ 1,201.31*\nPotential revenue increase (per month): *$ 4,901.77*\nOverall potential increase in profit: *$ 3,700,46*"
}
]
}
]
}