mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
fix(gapi.people): replace deprecated RequestMask with PersonFields
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
var request = gapi.client.people.people.connections.list({
|
||||
'resourceName': 'people/me',
|
||||
'pageSize': 10,
|
||||
'personFields': 'names'
|
||||
});
|
||||
|
||||
request.execute(function(resp) {
|
||||
|
||||
Vendored
+4
-7
@@ -1,6 +1,7 @@
|
||||
// Type definitions for Google People API 1.0
|
||||
// Project: https://developers.google.com/people/
|
||||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
||||
// Joshua O'Brien <https://github.com/joshuaobrien>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -13,7 +14,7 @@ declare namespace gapi.client.people {
|
||||
resourceName: string;
|
||||
|
||||
// Query parameters
|
||||
requestMask?: RequestMask;
|
||||
personFields: string;
|
||||
}
|
||||
|
||||
function get(parameters: GetParameters): HttpRequest<Person>;
|
||||
@@ -21,7 +22,7 @@ declare namespace gapi.client.people {
|
||||
interface GetBatchGetParameters {
|
||||
// Query parameters
|
||||
resourcesName?: string;
|
||||
requestMask?: RequestMask;
|
||||
personFields: string;
|
||||
}
|
||||
|
||||
function getBatchGet(parameters: GetBatchGetParameters): HttpRequest<BatchGetResponse>;
|
||||
@@ -49,7 +50,7 @@ declare namespace gapi.client.people {
|
||||
pageSize?: number;
|
||||
sortOrder?: SortOrder;
|
||||
syncToken?: string;
|
||||
requestMask?: RequestMask;
|
||||
personFields: string;
|
||||
}
|
||||
|
||||
interface Response {
|
||||
@@ -60,10 +61,6 @@ declare namespace gapi.client.people {
|
||||
}
|
||||
}
|
||||
|
||||
interface RequestMask {
|
||||
includeField: string;
|
||||
}
|
||||
|
||||
type SourceType = 'SOURCE_TYPE_UNSPECIFIED' | 'ACCOUNT' | 'PROFILE' | 'DOMAIN_PROFILE' | 'CONTACT';
|
||||
|
||||
interface Source {
|
||||
|
||||
Reference in New Issue
Block a user