-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80007d7
commit a37c81c
Showing
10 changed files
with
107 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Agent } from 'https'; | ||
import { HarmonySession } from './infra'; | ||
|
||
export interface ISessionManager { | ||
baseURL: string; | ||
httpAgent: Agent | undefined; | ||
getHarmonySession: () => HarmonySession | undefined; | ||
} | ||
|
||
export interface HarmonyRequestSession { | ||
requestId: string; | ||
sessionManager: ISessionManager; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
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<T> { | ||
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 {} |