|
| 1 | +import { Duration } from 'unitsnet-js'; |
| 2 | + |
| 3 | +export interface HarmonyEndpointSDKInfo { |
| 4 | + sdkVersion: string; |
| 5 | + sdkBuild: string; |
| 6 | + releasedOn: string; |
| 7 | + spec: string; |
| 8 | + specVersion: string; |
| 9 | +} |
| 10 | + |
| 11 | +export enum InfinityPortalRegion { |
| 12 | + EU_IRELAND = 'eu-west-1', |
| 13 | + US_NORTH_VIRGINIA = 'us-east-1', |
| 14 | + AP_AUSTRALIA = 'ap-southeast-2', |
| 15 | +} |
| 16 | + |
| 17 | +export interface HarmonySession { |
| 18 | + infinityToken?: string; |
| 19 | + sessionId: string; |
| 20 | + harmonyToken?: string; |
| 21 | +} |
| 22 | + |
| 23 | +export enum HarmonyErrorScope { |
| 24 | + NETWORKING = 'NETWORKING', |
| 25 | + SERVICE = 'SERVICE', |
| 26 | + SESSION = 'SESSION', |
| 27 | + INVALID_PARAMS = 'INVALID_PARAMS', |
| 28 | +} |
| 29 | + |
| 30 | +export interface HarmonyError { |
| 31 | + errorScope: HarmonyErrorScope; |
| 32 | + requestId: string; |
| 33 | + message?: string; |
| 34 | + url?: string; |
| 35 | + statusCode?: number; |
| 36 | + statusText?: string; |
| 37 | + payloadError?: any; |
| 38 | + networkError?: any; |
| 39 | +} |
| 40 | + |
| 41 | +export enum SDKConnectionState { |
| 42 | + CONNECTED = 'CONNECTED', |
| 43 | + DISCONNECTED = 'DISCONNECTED', |
| 44 | + CONNECTION_ISSUE = 'CONNECTION_ISSUE', |
| 45 | +} |
| 46 | + |
| 47 | +export class HarmonyResponse<T> { |
| 48 | + payload!: T; |
| 49 | + |
| 50 | + httpResponse: Response; |
| 51 | + |
| 52 | + isJob: boolean; |
| 53 | + |
| 54 | + duration?: Duration; |
| 55 | + |
| 56 | + requestId: string; |
| 57 | + |
| 58 | + jobId?: string; |
| 59 | +} |
| 60 | + |
| 61 | +export interface HarmonyEndpointSaaSOptions { |
| 62 | + activateMssPSession: boolean; |
| 63 | +} |
| 64 | + |
| 65 | +export interface InfinityPortalAuth { |
| 66 | + clientId: string; |
| 67 | + accessKey: string; |
| 68 | + region?: InfinityPortalRegion; |
| 69 | + gateway?: string; |
| 70 | +} |
| 71 | + |
| 72 | +export interface OnPremisePortalAuth { |
| 73 | + username: string; |
| 74 | + password: string; |
| 75 | + url: string; |
| 76 | + disableTLSChainValidation?: boolean; |
| 77 | +} |
| 78 | + |
| 79 | +export interface HarmonyRequestOptions { |
| 80 | + doNotAwaitForJobs?: boolean; |
| 81 | +} |
| 82 | + |
| 83 | +export interface HarmonyEndpointOptions extends HarmonyRequestOptions {} |
0 commit comments