-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update prebid helpers to return a partial ortb2 object rather than us…
…er.data only (#44) * Fix various package flags with vulnerabilities * BREAKING: Update prebid helpers to return a partial ortb2 object to merge using mergeConfig
- Loading branch information
Showing
8 changed files
with
246 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Based on https://github.com/InteractiveAdvertisingBureau/openrtb/blob/master/extensions/2.x_official_extensions/eids.md | ||
type UserSegment = { | ||
id?: string | ||
name?: string | ||
value?: string | ||
ext?: any | ||
}; | ||
|
||
type UserData = { | ||
id?: string | ||
name?: string | ||
segment?: UserSegment[] | ||
ext?: { segtax: number } | ||
}; | ||
|
||
type ExtendedIdentifierUID = { | ||
id: string | ||
atype: UIDAgentType; | ||
ext?: any; | ||
} | ||
|
||
type ExtendedIdentifiers = { | ||
source: string; | ||
uids: ExtendedIdentifierUID[]; | ||
} | ||
|
||
|
||
type UserExt = { | ||
eids?: ExtendedIdentifiers[]; | ||
} | ||
|
||
type User = { | ||
data?: UserData[] | ||
ext?: UserExt | ||
} | ||
|
||
enum UIDAgentType { | ||
DeviceID = 1, | ||
InAppImpression = 2, | ||
PersonID = 3, | ||
} | ||
|
||
export { User, UIDAgentType } |
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.