├── .env.template ├── .gitignore ├── README.md ├── _redirects ├── codegen.yml ├── functions ├── dist │ ├── index.js │ ├── index.js.map │ ├── modules │ │ └── spotify │ │ │ ├── mappers │ │ │ ├── currentPlayingSongMap.js │ │ │ └── currentPlayingSongMap.js.map │ │ │ ├── services │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── spotifyService.js │ │ │ └── spotifyService.js.map │ │ │ └── useCases │ │ │ └── getCurrentSongPlaying │ │ │ ├── GetCurrentSongPlaying.js │ │ │ ├── GetCurrentSongPlaying.js.map │ │ │ ├── index.js │ │ │ └── index.js.map │ └── shared │ │ ├── core │ │ ├── mapper.js │ │ ├── mapper.js.map │ │ ├── useCase.js │ │ └── useCase.js.map │ │ └── infra │ │ └── graphql │ │ ├── generated │ │ ├── types.js │ │ └── types.js.map │ │ ├── server.js │ │ └── server.js.map └── graphql.js ├── graphql.schema.json ├── index.html ├── netlify.toml ├── nodemon.json ├── package.json ├── scripts └── get-refresh-token.ts ├── src ├── index.ts ├── modules │ └── spotify │ │ ├── mappers │ │ └── currentPlayingSongMap.ts │ │ ├── services │ │ ├── index.ts │ │ └── spotifyService.ts │ │ └── useCases │ │ └── getCurrentSongPlaying │ │ ├── GetCurrentSongPlaying.ts │ │ ├── GetCurrentSongPlayingResult.ts │ │ └── index.ts └── shared │ ├── core │ ├── either.ts │ ├── mapper.ts │ ├── result.ts │ └── useCase.ts │ └── infra │ └── graphql │ ├── generated │ └── types.ts │ └── server.ts ├── temp └── example-of-spotify-response.json └── tsconfig.json /.env.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/.env.template -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/README.md -------------------------------------------------------------------------------- /_redirects: -------------------------------------------------------------------------------- 1 | / /.netlify/functions/graphql 200! -------------------------------------------------------------------------------- /codegen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/codegen.yml -------------------------------------------------------------------------------- /functions/dist/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/index.js -------------------------------------------------------------------------------- /functions/dist/index.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/index.js.map -------------------------------------------------------------------------------- /functions/dist/modules/spotify/mappers/currentPlayingSongMap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/mappers/currentPlayingSongMap.js -------------------------------------------------------------------------------- /functions/dist/modules/spotify/mappers/currentPlayingSongMap.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/mappers/currentPlayingSongMap.js.map -------------------------------------------------------------------------------- /functions/dist/modules/spotify/services/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/services/index.js -------------------------------------------------------------------------------- /functions/dist/modules/spotify/services/index.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/services/index.js.map -------------------------------------------------------------------------------- /functions/dist/modules/spotify/services/spotifyService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/services/spotifyService.js -------------------------------------------------------------------------------- /functions/dist/modules/spotify/services/spotifyService.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/services/spotifyService.js.map -------------------------------------------------------------------------------- /functions/dist/modules/spotify/useCases/getCurrentSongPlaying/GetCurrentSongPlaying.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/useCases/getCurrentSongPlaying/GetCurrentSongPlaying.js -------------------------------------------------------------------------------- /functions/dist/modules/spotify/useCases/getCurrentSongPlaying/GetCurrentSongPlaying.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/useCases/getCurrentSongPlaying/GetCurrentSongPlaying.js.map -------------------------------------------------------------------------------- /functions/dist/modules/spotify/useCases/getCurrentSongPlaying/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/useCases/getCurrentSongPlaying/index.js -------------------------------------------------------------------------------- /functions/dist/modules/spotify/useCases/getCurrentSongPlaying/index.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/modules/spotify/useCases/getCurrentSongPlaying/index.js.map -------------------------------------------------------------------------------- /functions/dist/shared/core/mapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/shared/core/mapper.js -------------------------------------------------------------------------------- /functions/dist/shared/core/mapper.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/shared/core/mapper.js.map -------------------------------------------------------------------------------- /functions/dist/shared/core/useCase.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/shared/core/useCase.js -------------------------------------------------------------------------------- /functions/dist/shared/core/useCase.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/shared/core/useCase.js.map -------------------------------------------------------------------------------- /functions/dist/shared/infra/graphql/generated/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/shared/infra/graphql/generated/types.js -------------------------------------------------------------------------------- /functions/dist/shared/infra/graphql/generated/types.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/shared/infra/graphql/generated/types.js.map -------------------------------------------------------------------------------- /functions/dist/shared/infra/graphql/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/shared/infra/graphql/server.js -------------------------------------------------------------------------------- /functions/dist/shared/infra/graphql/server.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/dist/shared/infra/graphql/server.js.map -------------------------------------------------------------------------------- /functions/graphql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/functions/graphql.js -------------------------------------------------------------------------------- /graphql.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/graphql.schema.json -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/netlify.toml -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/package.json -------------------------------------------------------------------------------- /scripts/get-refresh-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/scripts/get-refresh-token.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/modules/spotify/mappers/currentPlayingSongMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/modules/spotify/mappers/currentPlayingSongMap.ts -------------------------------------------------------------------------------- /src/modules/spotify/services/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/modules/spotify/services/index.ts -------------------------------------------------------------------------------- /src/modules/spotify/services/spotifyService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/modules/spotify/services/spotifyService.ts -------------------------------------------------------------------------------- /src/modules/spotify/useCases/getCurrentSongPlaying/GetCurrentSongPlaying.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/modules/spotify/useCases/getCurrentSongPlaying/GetCurrentSongPlaying.ts -------------------------------------------------------------------------------- /src/modules/spotify/useCases/getCurrentSongPlaying/GetCurrentSongPlayingResult.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/modules/spotify/useCases/getCurrentSongPlaying/GetCurrentSongPlayingResult.ts -------------------------------------------------------------------------------- /src/modules/spotify/useCases/getCurrentSongPlaying/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/modules/spotify/useCases/getCurrentSongPlaying/index.ts -------------------------------------------------------------------------------- /src/shared/core/either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/shared/core/either.ts -------------------------------------------------------------------------------- /src/shared/core/mapper.ts: -------------------------------------------------------------------------------- 1 | 2 | export interface Mapper { } -------------------------------------------------------------------------------- /src/shared/core/result.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/shared/core/result.ts -------------------------------------------------------------------------------- /src/shared/core/useCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/shared/core/useCase.ts -------------------------------------------------------------------------------- /src/shared/infra/graphql/generated/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/shared/infra/graphql/generated/types.ts -------------------------------------------------------------------------------- /src/shared/infra/graphql/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/src/shared/infra/graphql/server.ts -------------------------------------------------------------------------------- /temp/example-of-spotify-response.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/temp/example-of-spotify-response.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/stemmlerjs-graph/HEAD/tsconfig.json --------------------------------------------------------------------------------