Skip to content

Commit

Permalink
Change the import of tcode-sdf to external
Browse files Browse the repository at this point in the history
  • Loading branch information
bgelatti committed Oct 11, 2024
1 parent 51553c9 commit 17cb7d9
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion packages/tcore-api/Controllers/APIController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IncomingHttpHeaders } from "node:http";
import type express from "express";
import type { Request, Response } from "express";
import type { ZodTypeAny } from "zod";
import type { IAccountToken, IDeviceToken } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IAccountToken, IDeviceToken } from "@tago-io/tcore-sdk/types";
import { getDeviceByToken, getDeviceToken } from "../Services/Device.ts";
import { getAccountToken } from "../Services/Account/Account.ts";
import { checkMasterPassword } from "../Services/Settings.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Controllers/Account/Account.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Application } from "express";
import { z } from "zod";
import { type IAccountCreate, zAccountCreate } from "@tago-io/tcore-sdk/src/Types/index.ts";
import { type IAccountCreate, zAccountCreate } from "@tago-io/tcore-sdk/types";
import { createAccount, getAccountByToken, login } from "../../Services/Account/Account.ts";
import APIController, { type ISetupController, warm } from "../APIController.ts";

Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Controllers/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
zActionEdit,
type IActionCreate,
zActionCreate,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import type { Application } from "express";
import { z } from "zod";
import { createAction, deleteAction, editAction, getActionInfo, getActionList } from "../Services/Action.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Controllers/Analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
zAnalysisCreate,
type IAnalysisEdit,
zAnalysisEdit,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import { runAnalysis } from "../Services/AnalysisCodeExecution.ts";
import {
createAnalysis,
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Controllers/Device/Device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
zDeviceListQuery,
zDeviceParameterCreate,
zDeviceTokenListQuery,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import {
createDevice,
createDeviceToken,
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Controllers/DeviceData/DeviceData.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Application } from "express";
import { z } from "zod";
import { type IDeviceDataQuery, zDeviceDataQuery } from "@tago-io/tcore-sdk/src/Types/index.ts";
import { type IDeviceDataQuery, zDeviceDataQuery } from "@tago-io/tcore-sdk/types";
import {
addDeviceDataByDevice,
deleteDeviceData,
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Controllers/Plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from "node:path";
import os from "node:os";
import type { Request, Response, Application } from "express";
import { z } from "zod";
import { type IActionTypeModuleSetup, zPluginType } from "@tago-io/tcore-sdk/src/Types/index.ts";
import { type IActionTypeModuleSetup, zPluginType } from "@tago-io/tcore-sdk/types";
import multer from "multer";
import { getMainSettings, setPluginModulesSettings } from "../Services/Settings.ts";
import { plugins } from "../Plugins/Host.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Controllers/Settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ISettings, zSettingsEdit } from "@tago-io/tcore-sdk/src/Types/index.ts";
import { type ISettings, zSettingsEdit } from "@tago-io/tcore-sdk/types";
import type { Application } from "express";
import { z } from "zod";
import { checkMainDatabaseModuleHook } from "../Services/Plugins.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Plugins/Module/Module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-unused-vars */
import type { IModuleSetup, TModuleState } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IModuleSetup, TModuleState } from "@tago-io/tcore-sdk/types";
import { flattenConfigFields } from "@tago-io/tcore-shared";
import { io } from "../../Socket/SocketServer.ts";
import { getPluginSettings } from "../../Services/Settings.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Plugins/Plugin/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-unused-vars */
import path from "node:path";
import fs from "node:fs";
import type { IPluginPublisher, TPluginState, TPluginType } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IPluginPublisher, TPluginState, TPluginType } from "@tago-io/tcore-sdk/types";
import md5 from "md5";
import { logError } from "../../Helpers/log.ts";
import { setPluginDisabledSettings } from "../../Services/Settings.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Plugins/Validator/Validator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-unused-vars */
import semver from "semver";
import { type IModuleSetup, zPluginPackageTCore } from "@tago-io/tcore-sdk/src/Types/index.ts";
import { type IModuleSetup, zPluginPackageTCore } from "@tago-io/tcore-sdk/types";
import { getSystemName } from "@tago-io/tcore-shared";
import type Plugin from "../Plugin/Plugin.ts";
import pkg from "../../package.json" with { type: "json" };
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Plugins/Worker/Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from "node:path";
import { Worker as WorkerThread } from "node:worker_threads";
import EventEmitter from "node:events";
import fs from "node:fs";
import type { IModuleSetup, IPluginMessage } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IModuleSetup, IPluginMessage } from "@tago-io/tcore-sdk/types";
import { nanoid } from "nanoid";
import { getPluginSettings } from "../../Services/Settings.ts";
import { getActionList, invokeActionOnTriggerChange } from "../../Services/Action.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Account/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
type TGenericID,
type IAccountToken,
zAccountToken,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import { z } from "zod";
import { invokeDatabaseFunction } from "../../Plugins/invokeDatabaseFunction.ts";
import { compareAccountPasswordHash, encryptAccountPassword } from "./AccountPassword.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
zActionEdit,
zActionList,
zActionListQuery,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import axios from "axios";
import splitColon from "../Helpers/splitColon.ts";
import { plugins } from "../Plugins/Host.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
zAnalysisListQuery,
zLog,
zLogCreate,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import { z } from "zod";
import { invokeDatabaseFunction } from "../Plugins/invokeDatabaseFunction.ts";

Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/AnalysisCodeExecution.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { spawn } from "node:child_process";
import fs from "node:fs";
import type { ILog, TGenericID } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { ILog, TGenericID } from "@tago-io/tcore-sdk/types";
import { invokeFilesystemFunction } from "../Plugins/invokeFilesystemFunction.ts";
import { io } from "../Socket/SocketServer.ts";
import { addAnalysisLog, editAnalysis, getAnalysisInfo } from "./Analysis.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
zDeviceParameterCreate,
zDeviceToken,
zDeviceTokenCreate,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import { z } from "zod";
import { invokeDatabaseFunction } from "../Plugins/invokeDatabaseFunction.ts";

Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/DeviceData/DeviceData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
type IDeviceData,
type IDeviceDataCreate,
zDeviceDataQuery,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import Module from "../../Plugins/Module/Module.ts";
import * as Device from "../Device.ts";
import * as Statistic from "../Statistic.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/DeviceData/DeviceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
zDeviceDataUpdate,
type IDeviceChunkPeriod,
type IDeviceDataCreate,
} from "@tago-io/tcore-sdk/src/Types/index.ts";
} from "@tago-io/tcore-sdk/types";
import { z } from "zod";
import { DateTime } from "luxon";
import removeNullValues from "../../Helpers/removeNullValues.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/FilePicker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IPluginFilesystemItem } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IPluginFilesystemItem } from "@tago-io/tcore-sdk/types";
import { invokeFilesystemFunction } from "../Plugins/invokeFilesystemFunction.ts";
import { getModuleList } from "./Plugins.ts";

Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Hardware.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os from "node:os";
import si from "systeminformation";
import type { IComputerUsage, INetworkInfo } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IComputerUsage, INetworkInfo } from "@tago-io/tcore-sdk/types";
import { formatBytes } from "../Helpers/formatBytes.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/LiveInspector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IDevice, ILiveInspectorMessageCreate, TGenericID, TLiveInspectorConnectionID } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IDevice, ILiveInspectorMessageCreate, TGenericID, TLiveInspectorConnectionID } from "@tago-io/tcore-sdk/types";
import { DateTime } from "luxon";
import { nanoid } from "nanoid";
import { plugins } from "../Plugins/Host.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/PayloadParserCodeExecution.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "node:fs";
import vm from "node:vm";
import type { IDevice, IDeviceAddDataOptions } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IDevice, IDeviceAddDataOptions } from "@tago-io/tcore-sdk/types";
import { logError } from "../Helpers/log.ts";
import { emitToLiveInspector } from "./LiveInspector.ts";
import { getDeviceParamList } from "./Device.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Plugins.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from "node:fs";
import path from "node:path";
import md5 from "md5";
import type { IPlugin, TGenericID, TPluginType, IPluginList, IPluginListItem, ISettings } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IPlugin, TGenericID, TPluginType, IPluginList, IPluginListItem, ISettings } from "@tago-io/tcore-sdk/types";
import { flattenConfigFields } from "@tago-io/tcore-shared";
import semver from "semver";
import type Module from "../Plugins/Module/Module.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/PluginsStorage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { zPluginStorageItemSet } from "@tago-io/tcore-sdk/src/Types/index.ts";
import { zPluginStorageItemSet } from "@tago-io/tcore-sdk/types";
import { invokeDatabaseFunction } from "../Plugins/invokeDatabaseFunction.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Settings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "node:path";
import fs from "node:fs";
import os from "node:os";
import type { IPluginSettings, IPluginSettingsModule, ISettings } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IPluginSettings, IPluginSettingsModule, ISettings } from "@tago-io/tcore-sdk/types";
import { flattenConfigFields, getSystemName, getSystemSlug } from "@tago-io/tcore-shared";
import { log } from "../index.ts";
import { plugins, sortPluginFoldersByPriority, startPluginAndHandleErrors } from "../Plugins/Host.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Statistic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type IStatistic, type IStatisticCreate, zStatistic } from "@tago-io/tcore-sdk/src/Types/index.ts";
import { type IStatistic, type IStatisticCreate, zStatistic } from "@tago-io/tcore-sdk/types";
import { DateTime } from "luxon";
import { z } from "zod";
import { io } from "../Socket/SocketServer.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Services/Summary.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ISummary, zSummary } from "@tago-io/tcore-sdk/src/Types/index.ts";
import { type ISummary, zSummary } from "@tago-io/tcore-sdk/types";
import { invokeDatabaseFunction } from "../Plugins/invokeDatabaseFunction.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-api/Socket/SocketServer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Server } from "node:http";
import { Server as SocketServer, type Socket } from "socket.io";
import type { TGenericID } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { TGenericID } from "@tago-io/tcore-sdk/types";
import { editDevice } from "../Services/Device.ts";
import { checkMasterPassword } from "../index.ts";
import { getAccountToken } from "../Services/Account/Account.ts";
Expand Down
2 changes: 1 addition & 1 deletion packages/tcore-shared/src/Plugin/flattenConfigFields.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IPluginConfigField } from "@tago-io/tcore-sdk/src/Types/index.ts";
import type { IPluginConfigField } from "@tago-io/tcore-sdk/types";

/**
*/
Expand Down

0 comments on commit 17cb7d9

Please sign in to comment.