Skip to content

Commit 5284fc3

Browse files
Include rental (#14)
* Update generate.js for rental-ui * API codegen update (#13) Co-authored-by: BatuevIO <124889562+BatuevIO@users.noreply.github.com> * Update index.ts --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9ae0de0 commit 5284fc3

3 files changed

Lines changed: 1293 additions & 2 deletions

File tree

scripts/generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const apis = {
1414
userdata: "https://api.profcomff.com/userdata/openapi.json",
1515
achievement: "https://api.profcomff.com/achievement/openapi.json",
1616
rating: "https://api.profcomff.com/rating/openapi.json",
17+
rental: "https://api.profcomff.com/rental/openapi.json",
1718
};
1819

1920
const header = `/**

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import type { paths as servicesPaths } from "./openapi/services.ts";
99
import type { paths as socialPaths } from "./openapi/social.ts";
1010
import type { paths as timetablePaths } from "./openapi/timetable.ts";
1111
import type { paths as userdataPaths } from "./openapi/userdata.ts";
12-
import type { paths as ratingPaths } from "./openapi/rating.js";
12+
import type { paths as ratingPaths } from "./openapi/rating.ts";
13+
import type { paths as rentalPaths } from "./openapi/rental.ts";
1314

1415

1516
export type paths = (
@@ -21,7 +22,8 @@ export type paths = (
2122
socialPaths &
2223
timetablePaths &
2324
userdataPaths &
24-
ratingPaths
25+
ratingPaths &
26+
rentalPaths
2527
);
2628

2729
let currentClient: ReturnType<typeof Client<paths>> | undefined = undefined;

0 commit comments

Comments
 (0)