From d61c5bcfda292023747fef17b7a37b1ab634fd40 Mon Sep 17 00:00:00 2001 From: Haim Kastner <148038767+chkp-haimk@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:43:31 +0200 Subject: [PATCH] Remove typo directory --- src/inerfaces/core.ts | 13 ------- src/inerfaces/infta.ts | 83 ------------------------------------------ 2 files changed, 96 deletions(-) delete mode 100644 src/inerfaces/core.ts delete mode 100644 src/inerfaces/infta.ts diff --git a/src/inerfaces/core.ts b/src/inerfaces/core.ts deleted file mode 100644 index f2a9d86..0000000 --- a/src/inerfaces/core.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Agent } from 'https'; -import { HarmonySession } from './infta'; - -export interface ISessionManager { - baseURL: string; - httpAgent: Agent | undefined; - getHarmonySession: () => HarmonySession | undefined; -} - -export interface HarmonyRequestSession { - requestId: string; - sessionManager: ISessionManager; -} diff --git a/src/inerfaces/infta.ts b/src/inerfaces/infta.ts deleted file mode 100644 index 817171b..0000000 --- a/src/inerfaces/infta.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { Duration } from 'unitsnet-js'; - -export interface HarmonyEndpointSDKInfo { - sdkVersion: string; - sdkBuild: string; - releasedOn: string; - spec: string; - specVersion: string; -} - -export enum InfinityPortalRegion { - EU_IRELAND = 'eu-west-1', - US_NORTH_VIRGINIA = 'us-east-1', - AP_AUSTRALIA = 'ap-southeast-2', -} - -export interface HarmonySession { - infinityToken?: string; - sessionId: string; - harmonyToken?: string; -} - -export enum HarmonyErrorScope { - NETWORKING = 'NETWORKING', - SERVICE = 'SERVICE', - SESSION = 'SESSION', - INVALID_PARAMS = 'INVALID_PARAMS', -} - -export interface HarmonyError { - errorScope: HarmonyErrorScope; - requestId: string; - message?: string; - url?: string; - statusCode?: number; - statusText?: string; - payloadError?: any; - networkError?: any; -} - -export enum SDKConnectionState { - CONNECTED = 'CONNECTED', - DISCONNECTED = 'DISCONNECTED', - CONNECTION_ISSUE = 'CONNECTION_ISSUE', -} - -export class HarmonyResponse { - payload!: T; - - httpResponse: Response; - - isJob: boolean; - - duration?: Duration; - - requestId: string; - - jobId?: string; -} - -export interface HarmonyEndpointSaaSOptions { - activateMssPSession: boolean; -} - -export interface InfinityPortalAuth { - clientId: string; - accessKey: string; - region?: InfinityPortalRegion; - gateway?: string; -} - -export interface OnPremisePortalAuth { - username: string; - password: string; - url: string; - disableTLSChainValidation?: boolean; -} - -export interface HarmonyRequestOptions { - doNotAwaitForJobs?: boolean; -} - -export interface HarmonyEndpointOptions extends HarmonyRequestOptions {}