Skip to content

Commit

Permalink
rename Client class to Paradym & export default (#7)
Browse files Browse the repository at this point in the history
* rename Client class to Paradym & export default

Signed-off-by: Ilias Elbarnoussi <[email protected]>

* add both default and named export for Paradym class

Signed-off-by: Ilias Elbarnoussi <[email protected]>

* fix style

Signed-off-by: Ilias Elbarnoussi <[email protected]>

* update pnpm.lock file

Signed-off-by: Ilias Elbarnoussi <[email protected]>

* update server env in workflow

Signed-off-by: Ilias Elbarnoussi <[email protected]>

---------

Signed-off-by: Ilias Elbarnoussi <[email protected]>
Co-authored-by: Ilias Elbarnoussi <[email protected]>
  • Loading branch information
IliasElbarnoussi and IliasElbarnoussi authored Jun 7, 2024
1 parent 571ecdc commit 7cf07e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Generate output files
env:
SERVER: https://api.paradym.id
SERVER: https://api.paradym.id/openapi.json
run: pnpm generate

- name: Build packages
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "paradym-sdk-ts",
"name": "@paradym/sdk",
"version": "1.0.0",
"type": "module",
"license": "Apache-2.0",
Expand Down
7 changes: 4 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
WebhooksService,
} from '../generated'

export class Client {
export default class Paradym {
projects: typeof ProjectsService
projectProfile: typeof ProjectProfileService
webhooks: typeof WebhooksService
Expand Down Expand Up @@ -43,3 +43,5 @@ export class Client {
}
}
}

export { Paradym }

0 comments on commit 7cf07e6

Please sign in to comment.