gitfoss-fork | a90ee8bf926d55a2111b83e6d77f4de0a91933ce | app/services/organization/index.ts ∙ GitFOSS
.ts
TypeScript
(application/typescript)
// 1st-party
import { makeService } from "@ethicdevs/react-monolith";
// service
import type { OrganizationServiceAPI, OrganizationServiceDeps } from "./types";
// service methods
import { default as makeGetOrganizationById } from "./getOrganizationById";
import { default as makeGetOrganizationBySlug } from "./getOrganizationBySlug";
import { default as makeGetOrganizationRepositories } from "./getOrganizationRepositories";

export const makeOrganizationService = makeService<
  OrganizationServiceAPI,
  OrganizationServiceDeps
>({
  getOrganizationById: makeGetOrganizationById,
  getOrganizationBySlug: makeGetOrganizationBySlug,
  getOrganizationRepositories: makeGetOrganizationRepositories,
});