(from: string, to: string)
| 12 | } |
| 13 | |
| 14 | private getGraphQLQuery(from: string, to: string) { |
| 15 | return { |
| 16 | query: ` |
| 17 | query userInfo($LOGIN: String!, $FROM: DateTime!, $TO: DateTime!) { |
| 18 | user(login: $LOGIN) { |
| 19 | name |
| 20 | contributionsCollection(from: $FROM, to: $TO) { |
| 21 | contributionCalendar { |
| 22 | weeks { |
| 23 | contributionDays { |
| 24 | contributionCount |
| 25 | date |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | `, |
| 33 | variables: { |
| 34 | LOGIN: this.username, |
| 35 | FROM: from, |
| 36 | TO: to, |
| 37 | }, |
| 38 | }; |
| 39 | } |
| 40 | |
| 41 | private async fetch(graphQLQuery: Query): Promise<AxiosResponse<ResponseOfApi>> { |
| 42 | return axios({ |
no outgoing calls
no test coverage detected