@guardian/google-admanager-api
Version:
Google Ad Manager API Client Library for NodeJs
35 lines • 1.58 kB
TypeScript
import type { PageResult } from "../../../common/types";
import type { TeamAccessType } from "../team/team.enum";
/**
* UserRecordTeamAssociation represents the association between a {@link https://developers.google.com/ad-manager/api/reference/latest/UserService.UserRecord UserRecord}
* and a {@link https://developers.google.com/ad-manager/api/reference/latest/TeamService.Team Team}.
*/
export type UserRecordTeamAssociation = {
/**
* The Team.id of the team.
*/
teamId: number;
/**
* The overridden team access type. This field is null if team access type is not overridden.
*/
overriddenTeamAccessType: TeamAccessType;
/**
* The default team access type Team.teamAccessType. This field is read-only and is populated by Google.
*/
defaultTeamAccessType: TeamAccessType;
};
/**
* UserTeamAssociation associates a {@link https://developers.google.com/ad-manager/api/reference/latest/UserService.User User}
* with a {@link https://developers.google.com/ad-manager/api/reference/latest/TeamService.Team Team} to provide the user access to the entities that belong to the team.
*/
export type UserTeamAssociation = UserRecordTeamAssociation & {
/**
* Refers to the User.id.
*/
userId: number;
};
/**
* Captures a page of {@link https://developers.google.com/ad-manager/api/reference/latest/UserTeamAssociationService.UserTeamAssociation UserTeamAssociation} objects.
*/
export type UserTeamAssociationPage = PageResult<UserTeamAssociation>;
//# sourceMappingURL=userTeamAssociation.type.d.ts.map