fsm-sdk
Version:
Node.JS sdk to interface with SAP Field Service Management APIs.
26 lines (25 loc) • 726 B
TypeScript
import { OAuthService } from "../oauth/oauth.service";
import { ClientConfig } from "../client-config.model";
export declare type Company = {
id: number;
name: string;
accountId: number;
accountName: string;
dataCloudId: number;
companyStatus: 'OK';
description: string | null;
strictEncryptionPolicy: boolean;
};
export declare type Account = {
id: number;
name: string;
};
export declare class AccountAPIService {
private _config;
private _auth;
private http;
constructor(_config: Readonly<ClientConfig>, _auth: Readonly<OAuthService>);
private getApiPath;
getCompaniesByAccount(accountId: number): Promise<Company[]>;
getAccounts(): Promise<Account[]>;
}