import {Feature}from'@common-stack/server-core';import {TYPES}from'./constants/types.js';import {localContainerModule,DBServiceContainerModule,DataloaderContainerModule,MigrationContainerModule}from'./containers/containers.js';import {schema}from'./graphql/schema/index.js';import {resolvers}from'./graphql/resolvers/index.js';const createServiceGen = (container) => ({
    cityService: container.get(TYPES.CityService),
    stateService: container.get(TYPES.StateService),
    countryService: container.get(TYPES.CountryService),
    countryDataLoader: container.get(TYPES.CountryDataLoader),
    stateDataLoader: container.get(TYPES.StateDataLoader),
    cityDataLoader: container.get(TYPES.CityDataLoader),
});
var module = new Feature({
    createContainerFunc: [
        localContainerModule,
        DBServiceContainerModule,
        DataloaderContainerModule,
        MigrationContainerModule,
    ],
    createResolversFunc: resolvers,
    createHemeraContainerFunc: [localContainerModule, DBServiceContainerModule],
    createServiceFunc: createServiceGen,
    schema,
});export{module as default};