import { Service } from '../core/Service.js';
import { StoreSdk } from '@api-client/core/sdk/StoreSdkWeb.js';
export default class SdkService extends Service {
    static key = 'api-service/sdk';
    sdk;
    url;
    /**
     * The URL of the API server.
     * @param url - The URL of the API server.
     */
    constructor(url) {
        super();
        this.url = url;
    }
    async onCreate() {
        this.sdk = new StoreSdk(this.url);
    }
    // override async onStart(): Promise<void> {
    //   await this.sdk.initialize()
    // }
    get organizations() {
        return this.sdk.organizations;
    }
    get user() {
        return this.sdk.user;
    }
    get auth() {
        return this.sdk.auth;
    }
    get file() {
        return this.sdk.file;
    }
    get shared() {
        return this.sdk.shared;
    }
    get trash() {
        return this.sdk.trash;
    }
    get dataCatalog() {
        return this.sdk.dataCatalog;
    }
    get groups() {
        return this.sdk.groups;
    }
}
//# sourceMappingURL=SdkService.js.map