Skip to content

Commit eb5fd54

Browse files
committed
chore: sort imports
1 parent e0405b3 commit eb5fd54

File tree

18 files changed

+42
-26
lines changed

18 files changed

+42
-26
lines changed

src/assertions/application.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ApplicationLanguage } from "@squarecloud/api-types/v2";
22
import * as z from "zod";
3+
34
import { handleAPIObjectAssertion } from "./common";
45

56
const applicationSchema = z

src/assertions/common.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import type * as z from "zod";
2+
13
import type {
24
APIObjectAssertionProps,
35
LiteralAssertionProps,
46
} from "@/types/assertions";
5-
import type * as z from "zod";
67
import { SquareCloudAPIError } from "../structures";
78

89
export function handleLiteralAssertion({

src/assertions/literal.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as z from "zod";
2+
23
import { handleLiteralAssertion } from "./common";
34

45
const stringSchema = z.coerce.string();

src/assertions/status.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ApplicationStatus } from "@squarecloud/api-types/v2";
22
import * as z from "zod";
3+
34
import { handleAPIObjectAssertion } from "./common";
45

56
const simpleStatusSchema = z

src/assertions/user.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ApplicationLanguage, UserPlanName } from "@squarecloud/api-types/v2";
22
import * as z from "zod";
3+
34
import { handleAPIObjectAssertion } from "./common";
45

56
const userSchema = z
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import type { RESTPostAPIApplicationUploadResult } from "@squarecloud/api-types/v2";
2+
import FormData from "form-data";
3+
import { readFile } from "fs/promises";
4+
15
import { assertPathLike, assertString } from "@/assertions/literal";
26
import { Routes } from "@/lib/routes";
37
import {
@@ -8,12 +12,9 @@ import {
812
SquareCloudAPIError,
913
User,
1014
} from "@/structures";
11-
import type { RESTPostAPIApplicationUploadResult } from "@squarecloud/api-types/v2";
12-
import FormData from "form-data";
13-
import { readFile } from "fs/promises";
1415
import type { SquareCloudAPI } from "..";
1516

16-
export class ApplicationModule {
17+
export class ApplicationsModule {
1718
constructor(public readonly client: SquareCloudAPI) {}
1819

1920
/**

src/modules/backups.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { Routes } from "@/lib/routes";
2-
import { type BaseApplication, SquareCloudAPIError } from "@/structures";
31
import type {
42
APIApplicationBackup,
53
RESTPostAPIApplicationBackupResult,
64
} from "@squarecloud/api-types/v2";
75

6+
import { Routes } from "@/lib/routes";
7+
import { type BaseApplication, SquareCloudAPIError } from "@/structures";
8+
89
export class BackupsModule {
910
constructor(public readonly application: BaseApplication) {}
1011

src/modules/files.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { join } from "path";
2+
import { readFile } from "fs/promises";
3+
24
import { assertPathLike, assertString } from "@/assertions/literal";
35
import { Routes } from "@/lib/routes";
46
import type { BaseApplication } from "@/structures";
5-
import { readFile } from "fs/promises";
67

78
export class FilesModule {
89
constructor(public readonly application: BaseApplication) {}

src/modules/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from "./application";
1+
export * from "./applications";
22
export * from "./backups";
33
export * from "./deploys";
44
export * from "./files";

src/services/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import type { APIVersion } from "@squarecloud/api-types/v2";
2+
13
import { SquareCloudAPIError } from "@/structures";
24
import type {
35
APIEndpoint,
46
APIRequestArgs,
57
APIRequestOptions,
68
APIResponse,
79
} from "@/types";
8-
import type { APIVersion } from "@squarecloud/api-types/v2";
910

1011
export class APIService {
1112
public readonly baseUrl = "https://api.squarecloud.app";

0 commit comments

Comments
 (0)