@pelican.ts/sdk 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +12 -9
  2. package/dist/index.d.mts +911 -70
  3. package/dist/index.d.ts +911 -70
  4. package/dist/index.js +943 -17
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +943 -17
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/types.d.ts +1075 -0
  9. package/package.json +12 -3
  10. package/scripts/create-types.ts +24 -0
  11. package/src/api/application/client.ts +40 -0
  12. package/src/api/application/database_hosts.ts +70 -0
  13. package/src/api/application/nodes.ts +73 -46
  14. package/src/api/application/nodes_allocations.ts +4 -6
  15. package/src/api/application/roles.ts +53 -0
  16. package/src/api/application/servers.ts +135 -0
  17. package/src/api/application/servers_databases.ts +49 -0
  18. package/src/api/application/types/container.ts +1 -3
  19. package/src/api/application/types/database_host.ts +11 -0
  20. package/src/api/application/types/index.ts +8 -0
  21. package/src/api/application/types/node.ts +41 -6
  22. package/src/api/application/types/role.ts +8 -0
  23. package/src/api/application/types/server.ts +5 -5
  24. package/src/api/{common/types/server_allocations.ts → application/types/server_allocation.ts} +5 -4
  25. package/src/api/application/types/user.ts +7 -7
  26. package/src/api/application/users.ts +36 -26
  27. package/src/api/base/request.ts +3 -3
  28. package/src/api/client/server_allocations.ts +9 -9
  29. package/src/api/client/server_backups.ts +7 -7
  30. package/src/api/client/server_databases.ts +7 -7
  31. package/src/api/client/types/index.ts +5 -0
  32. package/src/api/client/types/server.ts +2 -2
  33. package/src/api/client/types/server_allocation.ts +11 -0
  34. package/src/api/common/types/enums.ts +21 -0
  35. package/src/api/common/types/index.ts +9 -0
  36. package/src/api/common/types/server_backup.ts +1 -1
  37. package/src/api/common/types/server_database.ts +1 -1
  38. package/src/index.ts +4 -4
  39. package/src/types.ts +3 -0
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <img src=".github/logo.png" width="420" />
3
3
  </h1>
4
4
 
5
- # Pelican.ts Typescript Client for Pelican panel
5
+ # Pelican.ts Typescript client for Pelican panel
6
6
 
7
7
  ## Installation
8
8
  ```shell
@@ -30,12 +30,12 @@ What's done:
30
30
  - [ ] Application
31
31
  - [X] Users
32
32
  - [X] Nodes
33
- - [X] Allocations
34
- - [ ] Locations
35
- - [ ] Servers
36
- - [ ] Databases
37
- - [ ] Nests
38
- - [ ] Eggs
33
+ - [X] Servers
34
+ - [X] Databases (TODO: Check if server database type is valid)
35
+ - [X] Database Hosts (TODO: find out why create API returns 500 No Route)
36
+ - [X] Roles
37
+ - [ ] Eggs
38
+ - [ ] Mounts
39
39
  - [ ] TSDoc
40
40
  - [ ] Examples
41
41
  - [ ] Tests
@@ -45,8 +45,11 @@ What's done:
45
45
  ## Copyright Notice
46
46
  [Pterodactyl®](https://github.com/pterodactyl) is a registered trademark of Dane Everitt and contributors.
47
47
 
48
- Pterodactyl.ts is Open Source under the [GNU v3.0 License](LICENSE) and is the copyright
49
- of its contributors stated below. Pelican.ts is not endorsed by or affiliated with Pterodactyl® team.
48
+ [Pelican®](https://github.com/pelican-dev) is a registered trademark of Pelican contributors.
49
+
50
+ Pelican.ts is Open Source under the [MIT License](LICENSE) and is the copyright
51
+ of its contributors stated below. Pelican.ts is not endorsed by or affiliated with Pterodactyl® nor Pelican® team.
52
+
50
53
 
51
54
  ## Contributors
52
55
  [M41den](https://github.com/m41denx) © 2024-2025