Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ export class WalloraAPI extends RESTDataSource {
async getCurrencies(v1AccessToken,v2AccessToken) {
return this.get("currencies",null, { headers: this.getHeaders(v1AccessToken, v2AccessToken) })
}
async getSummaryInfo(v1AccessToken,v2AccessToken) {
return this.get("summaryInfo",null, { headers: this.getHeaders(v1AccessToken, v2AccessToken) })
}
}
31 changes: 31 additions & 0 deletions dummy-data/actual-items.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const actualItems = [
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the mock data files from graphql to the MSW folder in wallora.com repo

{
date: "2/2 2021",
amount: 120.00,
comment: "Egg Cheese",
tags: "",
contact: ""
},
{
date: "4/2 2021",
amount: 230.00,
comment: "Detergent",
tags: "",
contact: ""
},
{
date: "7/2 2021",
amount: 547.00,
comment: "Rice, Bread",
tags: "",
contact: ""
},
{
date: "11/2 2021",
amount: 120.00,
comment: "Cheese",
tags: "",
contact: ""
}
]
export default actualItems;
8 changes: 8 additions & 0 deletions dummy-data/current-month.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const currentMonth = [
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this mock data to wallora.com too

budget: 7000.00,
spent: 646.00
}
]

export default currentMonth;
39 changes: 39 additions & 0 deletions dummy-data/planned-items.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const plannedItems = [
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this mock data too

date: "JAN 2021",
amount: 100.00,
comment: "Grocery",
tags: "Food",
contact: "Supermarket"
},
{
date: "FEB 2021",
amount: 200.00,
comment: "Grocery",
tags: "Food",
contact: "Supermarket"
},
{
date: "MAR 2021",
amount: 150.00,
comment: "Grocery",
tags: "Food",
contact: "Supermarket"
},
{
date: "APR 2021",
amount: 100.00,
comment: "Grocery",
tags: "Food",
contact: "Supermarket"
},
{
date: "MAY 2021",
amount: 200.00,
comment: "Grocery",
tags: "Food",
contact: "Supermarket"
}
]

export default plannedItems;
Loading