-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from yuripourre/typescript
- Loading branch information
Showing
7 changed files
with
1,410 additions
and
1,744 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default class ZestyBanner { | ||
constructor(adUnit: any, format: any, style: any, height: any, scene: any, webXRExperienceHelper?: any, beacon?: boolean); | ||
zestyBanner: any; | ||
} |
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,10 @@ | ||
{ | ||
"include": ["src/**/*"], | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"declaration": true, | ||
"emitDeclarationOnly": true, | ||
"outDir": "dist", | ||
"declarationMap": true | ||
} | ||
} |
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,43 @@ | ||
export namespace formats { | ||
namespace tall { | ||
let width: number; | ||
let height: number; | ||
namespace style { | ||
let standard: string; | ||
let minimal: string; | ||
let transparent: string; | ||
} | ||
} | ||
namespace wide { | ||
let width_1: number; | ||
export { width_1 as width }; | ||
let height_1: number; | ||
export { height_1 as height }; | ||
export namespace style_1 { | ||
let standard_1: string; | ||
export { standard_1 as standard }; | ||
let minimal_1: string; | ||
export { minimal_1 as minimal }; | ||
let transparent_1: string; | ||
export { transparent_1 as transparent }; | ||
} | ||
export { style_1 as style }; | ||
} | ||
namespace square { | ||
let width_2: number; | ||
export { width_2 as width }; | ||
let height_2: number; | ||
export { height_2 as height }; | ||
export namespace style_2 { | ||
let standard_2: string; | ||
export { standard_2 as standard }; | ||
let minimal_2: string; | ||
export { minimal_2 as minimal }; | ||
let transparent_2: string; | ||
export { transparent_2 as transparent }; | ||
} | ||
export { style_2 as style }; | ||
} | ||
} | ||
export const defaultFormat: "square"; | ||
export const defaultStyle: "standard"; |
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,57 @@ | ||
/** | ||
* Parses ipfs:// and ar:// links and IPFS hashes to URLs. | ||
* @param {String} uri The ipfs:// link or IPFS hash. | ||
* @returns A formatted URL to the IPFS resource. | ||
*/ | ||
export function parseProtocol(uri: string): string; | ||
/** | ||
* Retrieves an IPFS gateway to alleviate rate-throttling from using only a single gateway. | ||
* Selection is weighted random based on average latency. | ||
* @returns A weighted random public IPFS gateway | ||
*/ | ||
export function getIPFSGateway(): string; | ||
/** | ||
* For each of the following browser checking functions, we have a match with a | ||
* confidence of "Full" if both the feature detection check and user agent check | ||
* come back true. If only one of them comes back true, we have a match with a confidence | ||
* of "Partial". If neither are true, match is false and our confidence is "None". | ||
*/ | ||
/** | ||
* Performs feature detection and a UA check to determine if user is using Oculus Browser. | ||
* @returns an object indicating whether there is a match and the associated confidence level. | ||
*/ | ||
export function checkOculusBrowser(): { | ||
match: boolean; | ||
confidence: string; | ||
}; | ||
/** | ||
* Performs feature detection and a UA check to determine if user is using Wolvic. | ||
* @returns an object indicating whether there is a match and the associated confidence level. | ||
*/ | ||
export function checkWolvicBrowser(): { | ||
match: boolean; | ||
confidence: string; | ||
}; | ||
/** | ||
* Performs feature detection and a UA check to determine if user is using Pico's browser. | ||
* @returns an object indicating whether there is a match and the associated confidence level. | ||
*/ | ||
export function checkPicoBrowser(): Promise<{ | ||
match: boolean; | ||
confidence: string; | ||
}>; | ||
/** | ||
* Performs feature detection and a UA check to determine if user is using a browser on their desktop. | ||
* @returns an object indicating whether there is a match and the associated confidence level. | ||
*/ | ||
export function checkDesktopBrowser(): { | ||
match: boolean; | ||
confidence: string; | ||
}; | ||
export function checkUserPlatform(): Promise<{ | ||
platform: string; | ||
confidence: string; | ||
}>; | ||
export function openURL(url: any): void; | ||
export function urlContainsUTMParams(url: any): boolean; | ||
export function appendUTMParams(url: any, spaceId: any): string; |
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,9 @@ | ||
export function fetchCampaignAd(adUnitId: any, format?: string, style?: string): Promise<any>; | ||
/** | ||
* Increment the on-load event count for the space | ||
* @param {string} spaceId The space ID | ||
* @returns A Promise representing the POST request | ||
*/ | ||
export function sendOnLoadMetric(spaceId: string, campaignId?: any): Promise<void>; | ||
export function sendOnClickMetric(spaceId: any, campaignId?: any): Promise<void>; | ||
export function analyticsSession(spaceId: any, campaignId: any): Promise<void>; |
Oops, something went wrong.