import {
  KosLog,
  LogGroup,
  type ElementType,
  type ServiceResponse
} from '@kosdev-code/kos-ui-sdk';

import API, { type KosApi, type ApiPath, type ApiResponse } from '../../../utils/service';

const log = KosLog.createLogger({ group: LogGroup.service, name: "<%= nameDashCase %>-service" });

const SERVICE_PATH: ApiPath = "ENTER_SERVICE_PATH"
export type <%= nameProperCase %>Response = ApiResponse<typeof SERVICE_PATH,'get'>;


/**
 * @category Service
 * Retrieves the initial list of  <%= name %> data.
 */
export const get<%= nameProperCase %> = async (): Promise<ServiceResponse<<%= nameProperCase %>ClientResponse>> => {
  log.debug('sending GET for  <%= name %>');
  return await API.get(SERVICE_PATH);
};