Skip to content

Commit 54b2589

Browse files
SDK regeneration
1 parent cf75448 commit 54b2589

File tree

10 files changed

+25
-116
lines changed

10 files changed

+25
-116
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The IcePanel TypeScript library provides convenient access to the IcePanel APIs
1010
- [Installation](#installation)
1111
- [Reference](#reference)
1212
- [Latest Helper](#latest-helper)
13+
- [Helpers](#helpers)
1314
- [Usage](#usage)
1415
- [Request and Response Types](#request-and-response-types)
1516
- [Exception Handling](#exception-handling)
@@ -50,6 +51,22 @@ await client.model.objects.list({
5051
```
5152

5253

54+
## Helpers
55+
56+
Use the following constant to specify the latest version.
57+
```typescript
58+
import { IcePanelClient, LandscapeVersion } from "@icepanel/sdk";
59+
60+
const landscapeId = "landscapeId";
61+
62+
const client = new IcePanelClient({ apiKey: "YOUR_API_KEY", authorization: "YOUR_AUTHORIZATION" });
63+
await client.model.objects.list({
64+
landscapeId,
65+
versionId: LandscapeVersion.Latest
66+
});
67+
```
68+
69+
5370
## Usage
5471

5572
Instantiate and use the client with the following:

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,15 @@
4646
"test:unit": "vitest --project unit",
4747
"test:wire": "vitest --project wire"
4848
},
49-
"dependencies": {
50-
"nanoid": "^5.1.6"
51-
},
49+
"dependencies": {},
5250
"devDependencies": {
53-
"@biomejs/biome": "2.3.1",
54-
"@types/node": "^18.19.70",
55-
"msw": "2.11.2",
51+
"webpack": "^5.97.1",
5652
"ts-loader": "^9.5.1",
57-
"typescript": "~5.7.2",
5853
"vitest": "^3.2.4",
59-
"webpack": "^5.97.1"
54+
"msw": "2.11.2",
55+
"@types/node": "^18.19.70",
56+
"typescript": "~5.7.2",
57+
"@biomejs/biome": "2.3.1"
6058
},
6159
"browser": {
6260
"fs": false,

pnpm-lock.yaml

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.fernignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/IcePanelClient.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/consts.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/helpers/ids.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/helpers/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
export * as IcePanel from "./api/index.js";
12
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
2-
export { IcePanelClient } from "./IcePanelClient.js";
3+
export { IcePanelClient } from "./Client.js";
34
export { IcePanelEnvironment } from "./environments.js";
45
export { IcePanelError, IcePanelTimeoutError } from "./errors/index.js";
56
export * from "./exports.js";
6-
export * from './types.js';
7-
export * as IcePanel from './types.js';
8-
export * from './helpers/index.js';
9-
export * from './consts.js';

src/types.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)