forked from nrkno/sofie-timeline-state-resolver
-
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.
merge branch "SOFIE-1162-http-commands-cache-dns-lookup" into "releas…
…e51"
- Loading branch information
Showing
11 changed files
with
475 additions
and
614 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,36 @@ | ||
import { DeviceType, HTTPSendCommandContent } from '.' | ||
import { DeviceType } from '.' | ||
|
||
export type TimelineContentHTTPSendAny = TimelineContentHTTPRequest | ||
export interface TimelineContentHTTPSendBase { | ||
deviceType: DeviceType.HTTPSEND | ||
} | ||
|
||
export type TimelineContentHTTPRequest = TimelineContentHTTPSendBase & HTTPSendCommandContent | ||
|
||
export interface HTTPSendCommandContent { | ||
type: TimelineContentTypeHTTP | ||
url: string | ||
params: { | ||
[k: string]: unknown | ||
} | ||
paramsType?: TimelineContentTypeHTTPParamType | ||
headers?: { | ||
[k: string]: string | ||
} | ||
temporalPriority?: number | ||
/** | ||
* Commands in the same queue will be sent in order (will wait for the previous to finish before sending next | ||
*/ | ||
queueId?: string | ||
} | ||
|
||
export enum TimelineContentTypeHTTP { | ||
GET = 'get', | ||
POST = 'post', | ||
PUT = 'put', | ||
DELETE = 'delete', | ||
} | ||
export enum TimelineContentTypeHTTPParamType { | ||
JSON = 'json', | ||
FORM = 'form', | ||
} |
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
Oops, something went wrong.