-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
25 lines (25 loc) · 2.25 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import type { DateTimeFilters, GreenButtonResponse, GreenButtonSubscriberConfiguration } from './types.js';
export declare class GreenButtonSubscriber {
#private;
constructor(configuration?: GreenButtonSubscriberConfiguration);
setConfiguration(configuration: GreenButtonSubscriberConfiguration): void;
setUtilityApiConfiguration(apiToken: string, baseUrl?: `https://${string}/`): void;
getGreenButtonHttpsLink(greenButtonHttpsLink: string, getParameters?: Record<string, string>): Promise<GreenButtonResponse | undefined>;
getGreenButtonEndpoint(greenButtonEndpoint: `/${string}`, getParameters?: Record<string, string>): Promise<GreenButtonResponse | undefined>;
getAuthorizations(): Promise<GreenButtonResponse | undefined>;
getAuthorization(authorizationId: string): Promise<GreenButtonResponse | undefined>;
getUsagePoints(authorizationId: string): Promise<GreenButtonResponse | undefined>;
getMeterReadings(authorizationId: string, meterId: string): Promise<GreenButtonResponse | undefined>;
getIntervalBlocks(authorizationId: string, meterId: string, readingId: string): Promise<GreenButtonResponse | undefined>;
getUsageSummaries(authorizationId: string, meterId: string): Promise<GreenButtonResponse | undefined>;
getElectricPowerQualitySummaries(authorizationId: string, meterId: string): Promise<GreenButtonResponse | undefined>;
getCustomers(authorizationId: string): Promise<GreenButtonResponse | undefined>;
getCustomerAccounts(authorizationId: string, customerId: string): Promise<GreenButtonResponse | undefined>;
getCustomerAgreements(authorizationId: string, customerId: string, customerAccountId: string): Promise<GreenButtonResponse | undefined>;
getBatchSubscriptionsByAuthorization(authorizationId: string, dateTimeFilters?: DateTimeFilters): Promise<GreenButtonResponse | undefined>;
getBatchSubscriptionsByMeter(authorizationId: string, meterId: string, dateTimeFilters?: DateTimeFilters): Promise<GreenButtonResponse | undefined>;
getServiceStatus(): Promise<GreenButtonResponse | undefined>;
getApplicationInformation(appId: string): Promise<GreenButtonResponse | undefined>;
}
export type { types } from '@cityssm/green-button-parser';
export { helpers } from '@cityssm/green-button-parser';