Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class EaCServiceClient
extends EaCBaseClient
import { EaCServiceClient } from "https://deno.land/x/fathym_everything_as_code_api@v0.1.24/src/client/EaCServiceClient.ts";

Constructors

new
EaCServiceClient(baseUrl: URL, apiToken: string)

Methods

CancelLicense(
entLookup: string,
username: string,
licLookup: string,
): Promise<unknown>
Commit<T extends EverythingAsCode>(eac: T, processingSeconds: number): Promise<EaCCommitResponse>
Connections<T extends EverythingAsCode>(eac: T): Promise<T>
Create<T extends EverythingAsCode>(
eac: T,
username: string,
processingSeconds: number,
): Promise<EaCCommitResponse>
CurrentStatus(entLookup: string): Promise<EaCStatus>
Delete<TEaC extends EverythingAsCode = EverythingAsCode>(
archive: boolean,
processingSeconds: number,
): Promise<EaCCommitResponse>
Get<T extends EverythingAsCode>(entLookup: string): Promise<T>
GetLicense(
entLookup: string,
username: string,
licLookup: string,
): Promise<{ Active: boolean; License: UserEaCLicense; }>
GetLicenses(entLookup: string, username: string): Promise<Record<string, UserEaCLicense>>
InviteUser(entLookup: string, userEaC: UserEaCRecord): Promise<EaCCommitResponse>
JWT(
entLookup: string | undefined,
username: string,
expTime?: number,
): Promise<{ Token: string; }>
LicenseSubscription(
entLookup: string,
username: string,
licLookup: string,
planLookup: string,
priceLookup: string,
): Promise<unknown>
ListForUser(username: string, parentEntLookup?: string): Promise<UserEaCRecord[]>
ListStati(
entLookup: string,
take?: number,
statusTypes?: EaCStatusProcessingTypes[],
): Promise<EaCStatus[]>
ListUsers(entLookup: string): Promise<UserEaCRecord[]>
Status(entLookup: string, commitId: string): Promise<EaCStatus>