import {Feature}from'@common-stack/server-core';import {SERVER_TYPES}from'common/server';import {DBServiceContainerModule,DataloaderContainerModule,MigrationContainerModule}from'./containers/containers.js';import {externalContainerModule}from'./containers/proxy-container.js';import {schema}from'./graphql/schema/index.js';import {resolvers}from'./graphql/resolvers/index.js';import {CityMoleculerService}from'./plugins/city-moleculer-service.js';import {StateMoleculerService}from'./plugins/state-moleculer-service.js';import {CountryMoleculerService}from'./plugins/country-moleculer-service.js';/* eslint-disable import/no-extraneous-dependencies */
const createServiceGen = container => ({
  cityService: container.get(SERVER_TYPES.CityService),
  stateService: container.get(SERVER_TYPES.StateService),
  countryService: container.get(SERVER_TYPES.CountryService),
  countryDataLoader: container.get(SERVER_TYPES.CountryDataLoader),
  stateDataLoader: container.get(SERVER_TYPES.StateDataLoader),
  cityDataLoader: container.get(SERVER_TYPES.CityDataLoader)
});
var module$1 = new Feature({
  createContainerFunc: [externalContainerModule, DataloaderContainerModule, MigrationContainerModule],
  createResolversFunc: resolvers,
  createMicroServiceContainerFunc: [DBServiceContainerModule],
  createServiceFunc: createServiceGen,
  schema,
  addMicroserviceBrokerServiceClass: [CityMoleculerService, StateMoleculerService, CountryMoleculerService]
});export{module$1 as default};//# sourceMappingURL=module.js.map
