mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
* initial implementation * next iteration * clean up * cleanup * fix test * cleanup * rename services, refactor, fix test logic * fix DI * update comment * update comment * resolve merge conflict * register dependencies out of jslib, more cleanup * fix failing test in build * fix type error * try fixing test error * remove async from test setup * attempt to fix test * fix text * fix test * add ts-expect-error comment * cleanup --------- Co-authored-by: bnagawiecki <107435978+bnagawiecki@users.noreply.github.com>
15 lines
914 B
TypeScript
15 lines
914 B
TypeScript
import { ApiTokenRequest } from "../models/request/identityToken/apiTokenRequest";
|
|
import { PasswordTokenRequest } from "../models/request/identityToken/passwordTokenRequest";
|
|
import { SsoTokenRequest } from "../models/request/identityToken/ssoTokenRequest";
|
|
import { OrganizationImportRequest } from "../models/request/organizationImportRequest";
|
|
import { IdentityCaptchaResponse } from "../models/response/identityCaptchaResponse";
|
|
import { IdentityTokenResponse } from "../models/response/identityTokenResponse";
|
|
import { IdentityTwoFactorResponse } from "../models/response/identityTwoFactorResponse";
|
|
|
|
export abstract class ApiService {
|
|
postIdentityToken: (
|
|
request: PasswordTokenRequest | SsoTokenRequest | ApiTokenRequest,
|
|
) => Promise<IdentityTokenResponse | IdentityTwoFactorResponse | IdentityCaptchaResponse>;
|
|
postPublicImportDirectory: (request: OrganizationImportRequest) => Promise<any>;
|
|
}
|