From dac11fc1642ee845fc0a9699702cf9443097d9d7 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Mon, 3 Jun 2024 10:40:45 +0200 Subject: [PATCH] refactor: rename services --- src/commands/apps/bundles/create.ts | 2 +- src/commands/apps/bundles/delete.ts | 2 +- src/commands/apps/bundles/update.ts | 2 +- src/commands/apps/channels/create.ts | 2 +- src/commands/apps/channels/delete.ts | 2 +- src/commands/apps/devices/delete.ts | 2 +- src/services/{app-bundle.ts => app-bundles.ts} | 0 src/services/{app-channel.ts => app-channels.ts} | 0 src/services/{app-device.ts => app-devices.ts} | 0 9 files changed, 6 insertions(+), 6 deletions(-) rename src/services/{app-bundle.ts => app-bundles.ts} (100%) rename src/services/{app-channel.ts => app-channels.ts} (100%) rename src/services/{app-device.ts => app-devices.ts} (100%) diff --git a/src/commands/apps/bundles/create.ts b/src/commands/apps/bundles/create.ts index 83c2b14..609cb80 100644 --- a/src/commands/apps/bundles/create.ts +++ b/src/commands/apps/bundles/create.ts @@ -7,7 +7,7 @@ import FormData from 'form-data'; import { createReadStream } from 'node:fs'; import authorizationService from '../../../services/authorization-service'; import appsService from '../../../services/apps'; -import appBundlesService from '../../../services/app-bundle'; +import appBundlesService from '../../../services/app-bundles'; export default defineCommand({ meta: { diff --git a/src/commands/apps/bundles/delete.ts b/src/commands/apps/bundles/delete.ts index b19edba..e4080b9 100644 --- a/src/commands/apps/bundles/delete.ts +++ b/src/commands/apps/bundles/delete.ts @@ -3,7 +3,7 @@ import consola from 'consola'; import { AxiosError } from 'axios'; import appsService from '../../../services/apps'; import { prompt } from '../../../utils/prompt'; -import appBundlesService from '../../../services/app-bundle'; +import appBundlesService from '../../../services/app-bundles'; export default defineCommand({ meta: { diff --git a/src/commands/apps/bundles/update.ts b/src/commands/apps/bundles/update.ts index 440b356..9c1325f 100644 --- a/src/commands/apps/bundles/update.ts +++ b/src/commands/apps/bundles/update.ts @@ -7,7 +7,7 @@ import FormData from 'form-data'; import { createReadStream } from 'node:fs'; import authorizationService from '../../../services/authorization-service'; import appsService from '../../../services/apps'; -import appBundlesService from '../../../services/app-bundle'; +import appBundlesService from '../../../services/app-bundles'; export default defineCommand({ meta: { diff --git a/src/commands/apps/channels/create.ts b/src/commands/apps/channels/create.ts index 088df00..720bc20 100644 --- a/src/commands/apps/channels/create.ts +++ b/src/commands/apps/channels/create.ts @@ -3,7 +3,7 @@ import consola from 'consola'; import { prompt } from '../../../utils/prompt'; import appsService from '../../../services/apps'; import { AxiosError } from 'axios'; -import appChannelsService from '../../../services/app-channel'; +import appChannelsService from '../../../services/app-channels'; export default defineCommand({ meta: { diff --git a/src/commands/apps/channels/delete.ts b/src/commands/apps/channels/delete.ts index eb0f652..a1c3468 100644 --- a/src/commands/apps/channels/delete.ts +++ b/src/commands/apps/channels/delete.ts @@ -3,7 +3,7 @@ import consola from 'consola'; import { AxiosError } from 'axios'; import appsService from '../../../services/apps'; import { prompt } from '../../../utils/prompt'; -import appChannelsService from '../../../services/app-channel'; +import appChannelsService from '../../../services/app-channels'; export default defineCommand({ meta: { diff --git a/src/commands/apps/devices/delete.ts b/src/commands/apps/devices/delete.ts index 1507f81..310777a 100644 --- a/src/commands/apps/devices/delete.ts +++ b/src/commands/apps/devices/delete.ts @@ -3,7 +3,7 @@ import consola from 'consola'; import { AxiosError } from 'axios'; import appsService from '../../../services/apps'; import { prompt } from '../../../utils/prompt'; -import appDevicesService from '../../../services/app-device'; +import appDevicesService from '../../../services/app-devices'; export default defineCommand({ meta: { diff --git a/src/services/app-bundle.ts b/src/services/app-bundles.ts similarity index 100% rename from src/services/app-bundle.ts rename to src/services/app-bundles.ts diff --git a/src/services/app-channel.ts b/src/services/app-channels.ts similarity index 100% rename from src/services/app-channel.ts rename to src/services/app-channels.ts diff --git a/src/services/app-device.ts b/src/services/app-devices.ts similarity index 100% rename from src/services/app-device.ts rename to src/services/app-devices.ts