Skip to content

Commit

Permalink
馃悰 Export interface Integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Sep 23, 2020
1 parent d517f8e commit 4d3720e
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 36 deletions.
3 changes: 2 additions & 1 deletion src/api/clockify.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import axios from "axios";
import dayjs from "dayjs";
import { integrationConfig, write } from "../common";
import { join } from "path";
import { integrationConfig, write } from "../common";
import type { Integration } from "../integration";
cosmicSync("stethoscope");

const apiKey = config("clockifyApiKey");
Expand Down
3 changes: 2 additions & 1 deletion src/api/goodreads.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import goodreads from "goodreads-api-node";
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import goodreads from "goodreads-api-node";
import type { Integration } from "../integration";
cosmicSync("stethoscope");

const userId = config("goodreadsUserId") || "example";
Expand Down
15 changes: 8 additions & 7 deletions src/api/google-fit.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { cosmicSync, config } from "@anandchowdhary/cosmic";
import { google, fitness_v1 } from "googleapis";
import { integrationConfig, write } from "../common";
import { join } from "path";
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import slugify from "@sindresorhus/slugify";
import dayjs from "dayjs";
import PromisePool from "es6-promise-pool";
import { readdir, readJson, pathExists, lstat } from "fs-extra";
import isoWeeksInYear from "dayjs/plugin/isoWeeksInYear";
import isLeapYear from "dayjs/plugin/isLeapYear";
import isoWeeksInYear from "dayjs/plugin/isoWeeksInYear";
import week from "dayjs/plugin/weekOfYear";
import PromisePool from "es6-promise-pool";
import { lstat, pathExists, readdir, readJson } from "fs-extra";
import { fitness_v1, google } from "googleapis";
import { join } from "path";
import { integrationConfig, write } from "../common";
import type { Integration } from "../integration";

dayjs.extend(week);
dayjs.extend(isoWeeksInYear);
Expand Down
1 change: 1 addition & 0 deletions src/api/last-fm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import dayjs from "dayjs";
import LastFm from "@toplast/lastfm";
import { ITrack } from "@toplast/lastfm/lib/common/common.interface";
import { integrationConfig, write } from "../common";
import type { Integration } from "../integration";
import { join } from "path";
import PromisePool from "es6-promise-pool";
import week from "dayjs/plugin/weekOfYear";
Expand Down
13 changes: 7 additions & 6 deletions src/api/oura-ring.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { cosmicSync, config } from "@anandchowdhary/cosmic";
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import axios from "axios";
import { join } from "path";
import { integrationConfig, write } from "../common";
import PromisePool from "es6-promise-pool";
import dayjs from "dayjs";
import { readdir, readJson, pathExists, lstat } from "fs-extra";
import isoWeeksInYear from "dayjs/plugin/isoWeeksInYear";
import isLeapYear from "dayjs/plugin/isLeapYear";
import isoWeeksInYear from "dayjs/plugin/isoWeeksInYear";
import week from "dayjs/plugin/weekOfYear";
import PromisePool from "es6-promise-pool";
import { lstat, pathExists, readdir, readJson } from "fs-extra";
import { join } from "path";
import { integrationConfig, write } from "../common";
import type { Integration } from "../integration";

dayjs.extend(week);
dayjs.extend(isoWeeksInYear);
Expand Down
11 changes: 6 additions & 5 deletions src/api/pocket-casts.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import PocketCasts from "pocketcasts";
import { cosmicSync, config } from "@anandchowdhary/cosmic";
import { join } from "path";
import { readdir, readJson } from "fs-extra";
import { integrationConfig, write, zero } from "../common";
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import dayjs from "dayjs";
import week from "dayjs/plugin/weekOfYear";
import { readdir, readJson } from "fs-extra";
import { join } from "path";
import PocketCasts from "pocketcasts";
import { integrationConfig, write, zero } from "../common";
import type { Integration } from "../integration";
dayjs.extend(week);
cosmicSync("stethoscope");

Expand Down
11 changes: 6 additions & 5 deletions src/api/rescuetime.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { cosmicSync, config } from "@anandchowdhary/cosmic";
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import axios from "axios";
import { join } from "path";
import { integrationConfig, write } from "../common";
import PromisePool from "es6-promise-pool";
import dayjs from "dayjs";
import week from "dayjs/plugin/weekOfYear";
import { pathExists, lstat, readdir, readJson } from "fs-extra";
import PromisePool from "es6-promise-pool";
import { lstat, pathExists, readdir, readJson } from "fs-extra";
import { join } from "path";
import { integrationConfig, write } from "../common";
import type { Integration } from "../integration";
dayjs.extend(week);
cosmicSync("stethoscope");

Expand Down
9 changes: 5 additions & 4 deletions src/api/spotify.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { cosmicSync, config } from "@anandchowdhary/cosmic";
import SpotifyAPI from "spotify-web-api-node";
import { join } from "path";
import { integrationConfig, write } from "../common";
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import dayjs from "dayjs";
import week from "dayjs/plugin/weekOfYear";
import { join } from "path";
import SpotifyAPI from "spotify-web-api-node";
import { integrationConfig, write } from "../common";
import type { Integration } from "../integration";
dayjs.extend(week);
cosmicSync("stethoscope");

Expand Down
3 changes: 2 additions & 1 deletion src/api/twitter.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import dayjs from "dayjs";
import week from "dayjs/plugin/weekOfYear";
import { lstat, pathExists, readdir, readJson } from "fs-extra";
import { join } from "path";
import Twitter from "twitter-lite";
import { integrationConfig, write } from "../common";
import { lstat, pathExists, readdir, readJson } from "fs-extra";
import type { Integration } from "../integration";

dayjs.extend(week);
cosmicSync("stethoscope");
Expand Down
11 changes: 6 additions & 5 deletions src/api/wakatime.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { cosmicSync, config } from "@anandchowdhary/cosmic";
import { join } from "path";
import { integrationConfig, write } from "../common";
import PromisePool from "es6-promise-pool";
import { config, cosmicSync } from "@anandchowdhary/cosmic";
import dayjs from "dayjs";
import week from "dayjs/plugin/weekOfYear";
import PromisePool from "es6-promise-pool";
import { lstat, pathExists, readdir, readJson } from "fs-extra";
import { join } from "path";
import { WakaTimeClient } from "wakatime-client";
import { pathExists, lstat, readdir, readJson } from "fs-extra";
import { integrationConfig, write } from "../common";
import type { Integration } from "../integration";
dayjs.extend(week);
cosmicSync("stethoscope");

Expand Down
2 changes: 1 addition & 1 deletion src/integration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** Stethoscope Integration */
interface Integration {
export interface Integration {
/** Slugified name of the integration */
name: string;

Expand Down

0 comments on commit 4d3720e

Please sign in to comment.