11import { assertPathLike , assertString } from "@/assertions/literal" ;
2- import { ApplicationStatus , type SquareCloudAPI } from "@/index" ;
2+ import {
3+ ApplicationBackupsManager ,
4+ ApplicationCacheManager ,
5+ ApplicationDeploysManager ,
6+ ApplicationFilesManager ,
7+ ApplicationStatus ,
8+ type SquareCloudAPI ,
9+ } from "@/index" ;
310import { Routes } from "@/lib/routes" ;
411import type {
512 APIUserApplication ,
@@ -17,11 +24,18 @@ import type { Application } from "./application";
1724 * @param data - The data from this application
1825 */
1926export class BaseApplication {
27+ /** The application ID */
2028 id : string ;
29+ /** The application display name */
2130 name : string ;
31+ /** The application description */
2232 description ?: string ;
33+ /** The url to manage the application via web */
2334 url : string ;
35+ /** The application total ram */
2436 ram : number ;
37+ /** The application current cluster */
38+ cluster : string ;
2539 /**
2640 * The application programming language
2741 *
@@ -33,9 +47,18 @@ export class BaseApplication {
3347 * - `rust`
3448 * - `go`
3549 * - `php`
50+ * - `dotnet`
51+ * - `static`
3652 */
3753 language : ApplicationLanguage ;
38- cluster : string ;
54+ /** Cache manager for this application */
55+ cache = new ApplicationCacheManager ( ) ;
56+ /** Files manager for this application */
57+ files = new ApplicationFilesManager ( this ) ;
58+ /** Backup manager for this application */
59+ backups = new ApplicationBackupsManager ( this ) ;
60+ /** Deploys manager for this application */
61+ deploys = new ApplicationDeploysManager ( this ) ;
3962
4063 constructor (
4164 public readonly client : SquareCloudAPI ,
0 commit comments