UNPKG

@girs/node-gfbgraph-0.2

Version:

Node.js TypeScript type definitions for GFBGraph-0.2, generated from library version 0.2.0

1,143 lines (970 loc) 54.6 kB
/* * Type Definitions for node-gtk (https://github.com/romgrk/node-gtk) * * These type definitions are automatically generated, do not edit them by hand. * If you found a bug fix it in ts-for-gir itself or create a bug report on https://github.com/gjsify/ts-for-gir */ import './node-gfbgraph-0.2-import.d.ts'; /** * GFBGraph-0.2 */ import type Soup from '@girs/node-soup-2.4'; import type Gio from '@girs/node-gio-2.0'; import type GObject from '@girs/node-gobject-2.0'; import type GLib from '@girs/node-glib-2.0'; import type Rest from '@girs/node-rest-0.7'; import type Json from '@girs/node-json-1.0'; export namespace GFBGraph { enum NodeError { CONNECTIONABLE, CONNECTABLE, } /** * Create a new #RestProxyCall pointing to the Facebook Graph API url (https://graph.facebook.com) * and processed by the authorizer to allow queries. * @param authorizer a #GFBGraphAuthorizer. * @returns a new #RestProxyCall or %NULL in case of error. */ function newRestCall(authorizer: Authorizer): Rest.ProxyCall module Authorizer { // Constructor properties interface interface ConstructorProperties extends GObject.Object.ConstructorProperties { } } interface Authorizer { // Own properties of GFBGraph-0.2.GFBGraph.Authorizer __gtype__: number // Owm methods of GFBGraph-0.2.GFBGraph.Authorizer // Has conflict: processCall(call: Rest.ProxyCall): void // Has conflict: processMessage(message: Soup.Message): void // Has conflict: refreshAuthorization(cancellable: Gio.Cancellable | null): boolean // Own virtual methods of GFBGraph-0.2.GFBGraph.Authorizer /** * Adds the necessary authorization to `call`. * * This method modifies `call` in place and is thread safe. * @virtual * @param call A #RestProxyCall. */ processCall(call: Rest.ProxyCall): void /** * Adds the necessary authorization to `message`. The type of `message` * can be DELETE, GET and POST. * * This method modifies `message` in place and is thread safe. * @virtual * @param message A #SoupMessage. */ processMessage(message: Soup.Message): void /** * Synchronously forces `iface` to refresh any authorization tokens * held by it. * * This method is thread safe. * @virtual * @param cancellable An optional #GCancellable object, or %NULL. * @returns %TRUE if the authorizer now has a valid token. */ refreshAuthorization(cancellable: Gio.Cancellable | null): boolean // Class property signals of GFBGraph-0.2.GFBGraph.Authorizer connect(sigName: "notify::__gtype__", callback: (...args: any[]) => void): number on(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::__gtype__", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::__gtype__", ...args: any[]): void connect(sigName: string, callback: (...args: any[]) => void): number on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: string, ...args: any[]): void disconnect(id: number): void } class Authorizer extends GObject.Object { // Own properties of GFBGraph-0.2.GFBGraph.Authorizer static name: string // Constructors of GFBGraph-0.2.GFBGraph.Authorizer constructor(config?: Authorizer.ConstructorProperties) _init(config?: Authorizer.ConstructorProperties): void } module Connectable { // Constructor properties interface interface ConstructorProperties extends Node.ConstructorProperties, GObject.Object.ConstructorProperties { } } interface Connectable extends Node { // Own properties of GFBGraph-0.2.GFBGraph.Connectable __gtype__: number // Owm methods of GFBGraph-0.2.GFBGraph.Connectable /** * In most cases, #GFBGraphConnectable implementers can use this function in order to parse * the response when a gfbgraph_node_get_connection_nodes() is executed and the * gfbgraph_connectable_parse_connected_data() was called. * * Normally, Facebook Graph API returns the connections in the same way, using JSON objects, * with a root object called "data". * @param payload a const #gchar with the response string from the Facebook Graph API. * @returns a newly-allocated #GList of #GFBGraphNode with the same #GType as @self. */ defaultParseConnectedData(payload: string): Node[] /** * Get the Facebook Graph API function path to retrieve the nodes connected with `node_type` * managed by the #GFBGraphConnectable object. * @param nodeType a #GType, required a #GFBGRAPH_TYPE_NODE or children. * @returns a const #gchar with the function path or %NULL. */ getConnectionPath(nodeType: GObject.GType): string // Has conflict: getConnectionPostParams(nodeType: GObject.GType): GLib.HashTable /** * Check if `self` object, normally a #GFBGraphNode implementing the #GFBGraphConnectable interface, * has the possibility to be connected to another node of type `node_type`. * @param nodeType a #GType, required a #GFBGRAPH_TYPE_NODE or children. * @returns %TRUE in case that the @self object can be connected to a node of type @node_type, %FALSE otherwise. */ isConnectableTo(nodeType: GObject.GType): boolean // Has conflict: parseConnectedData(payload: string): Node[] // Own virtual methods of GFBGraph-0.2.GFBGraph.Connectable /** * Get the params to be inserted in a request to the Facebook Graph API * in order to append the node `self` to a node of type `node_type`. * @virtual * @param nodeType a #GType, required a #GFBGRAPH_TYPE_NODE or children. * @returns A string based #GHashTable with the params and his values or %NULL. */ getConnectionPostParams(nodeType: GObject.GType): GLib.HashTable /** * Parse the response contained in `payload` when a gfbgraph_node_get_connection_nodes() was * executed. * @virtual * @param payload a const #gchar with the response string from the Facebook Graph API. * @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL. */ parseConnectedData(payload: string): Node[] // Class property signals of GFBGraph-0.2.GFBGraph.Connectable connect(sigName: "notify::__gtype__", callback: (...args: any[]) => void): number on(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::__gtype__", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::__gtype__", ...args: any[]): void connect(sigName: "notify::created-time", callback: (...args: any[]) => void): number on(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::created-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::created-time", ...args: any[]): void connect(sigName: "notify::id", callback: (...args: any[]) => void): number on(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::id", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::id", ...args: any[]): void connect(sigName: "notify::link", callback: (...args: any[]) => void): number on(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::link", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::link", ...args: any[]): void connect(sigName: "notify::updated-time", callback: (...args: any[]) => void): number on(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::updated-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::updated-time", ...args: any[]): void connect(sigName: string, callback: (...args: any[]) => void): number on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: string, ...args: any[]): void disconnect(id: number): void } class Connectable extends GObject.Object { // Own properties of GFBGraph-0.2.GFBGraph.Connectable static name: string // Constructors of GFBGraph-0.2.GFBGraph.Connectable constructor(config?: Connectable.ConstructorProperties) _init(config?: Connectable.ConstructorProperties): void } module Album { // Constructor properties interface interface ConstructorProperties extends Connectable.ConstructorProperties, Node.ConstructorProperties { // Own constructor properties of GFBGraph-0.2.GFBGraph.Album /** * The number of photos in the album. */ count?: number | null cover_photo?: string | null /** * The album description given by the owner. */ description?: string | null /** * The album name. */ name?: string | null } } interface Album extends Connectable { // Own properties of GFBGraph-0.2.GFBGraph.Album /** * The number of photos in the album. */ count: number coverPhoto: string | null /** * The album description given by the owner. */ description: string | null /** * The album name. */ name: string | null __gtype__: number // Own fields of GFBGraph-0.2.GFBGraph.Album parent: Node & GObject.Object // Owm methods of GFBGraph-0.2.GFBGraph.Album getCount(): number getCoverPhotoId(): string getDescription(): string getName(): string /** * Sets the description for the `album`. * @param description a const pointer to a #gchar. */ setDescription(description: string): void /** * Sets the name for the `album`. * @param name a const pointer to a #gchar. */ setName(name: string): void // Class property signals of GFBGraph-0.2.GFBGraph.Album connect(sigName: "notify::count", callback: (...args: any[]) => void): number on(sigName: "notify::count", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::count", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::count", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::count", ...args: any[]): void connect(sigName: "notify::cover-photo", callback: (...args: any[]) => void): number on(sigName: "notify::cover-photo", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::cover-photo", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::cover-photo", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::cover-photo", ...args: any[]): void connect(sigName: "notify::description", callback: (...args: any[]) => void): number on(sigName: "notify::description", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::description", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::description", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::description", ...args: any[]): void connect(sigName: "notify::name", callback: (...args: any[]) => void): number on(sigName: "notify::name", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::name", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::name", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::name", ...args: any[]): void connect(sigName: "notify::__gtype__", callback: (...args: any[]) => void): number on(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::__gtype__", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::__gtype__", ...args: any[]): void connect(sigName: "notify::created-time", callback: (...args: any[]) => void): number on(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::created-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::created-time", ...args: any[]): void connect(sigName: "notify::id", callback: (...args: any[]) => void): number on(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::id", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::id", ...args: any[]): void connect(sigName: "notify::link", callback: (...args: any[]) => void): number on(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::link", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::link", ...args: any[]): void connect(sigName: "notify::updated-time", callback: (...args: any[]) => void): number on(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::updated-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::updated-time", ...args: any[]): void connect(sigName: string, callback: (...args: any[]) => void): number on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: string, ...args: any[]): void disconnect(id: number): void } class Album extends Node { // Own properties of GFBGraph-0.2.GFBGraph.Album static name: string // Constructors of GFBGraph-0.2.GFBGraph.Album constructor(config?: Album.ConstructorProperties) /** * Creates a new #GFBGraphAlbum. * @constructor * @returns a new #GFBGraphAlbum; unref with g_object_unref() */ constructor() /** * Creates a new #GFBGraphAlbum. * @constructor * @returns a new #GFBGraphAlbum; unref with g_object_unref() */ static new(): Album // Overloads of new /** * Creates a new #GFBGraphNode. * @constructor * @returns a new #GFBGraphNode; unref with g_object_unref() */ static new(): Node /** * Retrieves an album node from the Facebook Graph with the give ID. * @constructor * @param authorizer a #GFBGraphAuthorizer. * @param id a const #gchar with the album ID. * @returns a new #GFBGraphAlbum; unref with g_object_unref() */ static newFromId(authorizer: Authorizer, id: string): Album // Overloads of newFromId /** * Retrieve a node object as a #GFBgraphNode of #node_type type, with the given `id` from the Facebook Graph. * @constructor * @param authorizer a #GFBGraphAuthorizer. * @param id a const #gchar with the node ID. * @param nodeType a #GFBGraphNode type #GType. * @returns a #GFBGraphNode or %NULL. */ static newFromId(authorizer: Authorizer, id: string, nodeType: GObject.GType): Node _init(config?: Album.ConstructorProperties): void } module GoaAuthorizer { // Constructor properties interface interface ConstructorProperties extends Authorizer.ConstructorProperties, GObject.Object.ConstructorProperties { } } interface GoaAuthorizer extends Authorizer { // Own properties of GFBGraph-0.2.GFBGraph.GoaAuthorizer __gtype__: number // Own fields of GFBGraph-0.2.GFBGraph.GoaAuthorizer parent: GObject.Object // Class property signals of GFBGraph-0.2.GFBGraph.GoaAuthorizer connect(sigName: "notify::__gtype__", callback: (...args: any[]) => void): number on(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::__gtype__", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::__gtype__", ...args: any[]): void connect(sigName: string, callback: (...args: any[]) => void): number on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: string, ...args: any[]): void disconnect(id: number): void } class GoaAuthorizer extends GObject.Object { // Own properties of GFBGraph-0.2.GFBGraph.GoaAuthorizer static name: string // Constructors of GFBGraph-0.2.GFBGraph.GoaAuthorizer constructor(config?: GoaAuthorizer.ConstructorProperties) _init(config?: GoaAuthorizer.ConstructorProperties): void } module Node { // Constructor properties interface interface ConstructorProperties extends GObject.Object.ConstructorProperties { // Own constructor properties of GFBGraph-0.2.GFBGraph.Node created_time?: string | null /** * The node ID. All nodes have one of this. */ id?: string | null /** * The node link. An URL to the node on Facebook. */ link?: string | null updated_time?: string | null } } interface Node { // Own properties of GFBGraph-0.2.GFBGraph.Node createdTime: string | null /** * The node ID. All nodes have one of this. */ id: string | null /** * The node link. An URL to the node on Facebook. */ link: string | null updatedTime: string | null __gtype__: number // Own fields of GFBGraph-0.2.GFBGraph.Node parent: GObject.Object // Owm methods of GFBGraph-0.2.GFBGraph.Node /** * Appends `connect_node` to `node`. `connect_node` must implement the #GFBGraphConnectable interface * and be connectable to `node` GType. * @param connectNode A #GFBGraphNode. * @param authorizer A #GFBGraphAuthorizer. * @returns TRUE on sucess, FALSE if an error ocurred. */ appendConnection(connectNode: Node, authorizer: Authorizer): boolean /** * Retrieve the nodes of type `node_type` connected to the `node` object. The `node_type` object must * implement the #GFBGraphConnectionable interface and be connectable to `node` type object. * See gfbgraph_node_get_connection_nodes_async() for the asynchronous version of this call. * @param nodeType a #GFBGraphNode type #GType that determines the kind of nodes to retrieve. * @param authorizer a #GFBGraphAuthorizer. * @returns a newly-allocated #GList of type @node_type objects with the found nodes. */ getConnectionNodes(nodeType: GObject.GType, authorizer: Authorizer): Node[] /** * Asynchronously retrieve the list of nodes of type `node_type` connected to the `node` object. See * gfbgraph_node_get_connection_nodes() for the synchronous version of this call. * * When the operation is finished, `callback` will be called. You can then call gfbgraph_node_get_connection_nodes_finish() * to get the list of connected nodes. * @param nodeType a #GFBGraphNode type #GType that must implement the #GFBGraphConnectionable interface. * @param authorizer a #GFBGraphAuthorizer. * @param cancellable An optional #GCancellable object, or %NULL. * @param callback A #GAsyncReadyCallback to call when the request is completed. */ getConnectionNodesAsync(nodeType: GObject.GType, authorizer: Authorizer, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void /** * Finishes an asynchronous operation started with * gfbgraph_node_get_connection_nodes_async(). * @param result A #GAsyncResult. * @returns a newly-allocated #GList of type #node_type objects with the found nodes. */ getConnectionNodesAsyncFinish(result: Gio.AsyncResult): Node[] /** * Gets a node created time. * @returns an ISO 8601 encoded date when the node was initially published. */ getCreatedTime(): string /** * Gets the Facebook Graph unique node ID. * @returns the node ID. */ getId(): string getLink(): string /** * Gets a node updated time. * @returns an ISO 8601 encoded date when the node was updated. */ getUpdatedTime(): string /** * Sets the ID for a node. Just useful when a new node is created * and the Graph API returns the ID of the new created node. * @param id a const pointer to a #gchar. */ setId(id: string): void // Class property signals of GFBGraph-0.2.GFBGraph.Node connect(sigName: "notify::created-time", callback: (...args: any[]) => void): number on(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::created-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::created-time", ...args: any[]): void connect(sigName: "notify::id", callback: (...args: any[]) => void): number on(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::id", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::id", ...args: any[]): void connect(sigName: "notify::link", callback: (...args: any[]) => void): number on(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::link", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::link", ...args: any[]): void connect(sigName: "notify::updated-time", callback: (...args: any[]) => void): number on(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::updated-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::updated-time", ...args: any[]): void connect(sigName: "notify::__gtype__", callback: (...args: any[]) => void): number on(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::__gtype__", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::__gtype__", ...args: any[]): void connect(sigName: string, callback: (...args: any[]) => void): number on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: string, ...args: any[]): void disconnect(id: number): void } class Node extends GObject.Object { // Own properties of GFBGraph-0.2.GFBGraph.Node static name: string // Constructors of GFBGraph-0.2.GFBGraph.Node constructor(config?: Node.ConstructorProperties) /** * Creates a new #GFBGraphNode. * @constructor * @returns a new #GFBGraphNode; unref with g_object_unref() */ constructor() /** * Creates a new #GFBGraphNode. * @constructor * @returns a new #GFBGraphNode; unref with g_object_unref() */ static new(): Node /** * Retrieve a node object as a #GFBgraphNode of #node_type type, with the given `id` from the Facebook Graph. * @constructor * @param authorizer a #GFBGraphAuthorizer. * @param id a const #gchar with the node ID. * @param nodeType a #GFBGraphNode type #GType. * @returns a #GFBGraphNode or %NULL. */ static newFromId(authorizer: Authorizer, id: string, nodeType: GObject.GType): Node _init(config?: Node.ConstructorProperties): void static errorQuark(): GLib.Quark } module Photo { // Constructor properties interface interface ConstructorProperties extends Connectable.ConstructorProperties, Json.Serializable.ConstructorProperties, Node.ConstructorProperties { // Own constructor properties of GFBGraph-0.2.GFBGraph.Photo /** * The default photo height, up to 720px. */ height?: number | null /** * A list with the available representations of the photo, in differents sizes */ images?: any | null /** * The name of the photo given by his owner. */ name?: string | null /** * An URI for the photo, with a maximum width or height of 720px. */ source?: string | null /** * The default photo width, up to 720px. */ width?: number | null } } interface Photo extends Connectable, Json.Serializable { // Own properties of GFBGraph-0.2.GFBGraph.Photo /** * The default photo height, up to 720px. */ height: number /** * A list with the available representations of the photo, in differents sizes */ images: any /** * The name of the photo given by his owner. */ name: string | null /** * An URI for the photo, with a maximum width or height of 720px. */ source: string | null /** * The default photo width, up to 720px. */ width: number __gtype__: number // Own fields of GFBGraph-0.2.GFBGraph.Photo parent: Node & GObject.Object // Owm methods of GFBGraph-0.2.GFBGraph.Photo /** * Download the default sized photo pointed by `photo,` with a maximum width or height of 720px. * The photo always is a JPEG. * @param authorizer a #GFBGraphAuthorizer. * @returns a #GInputStream with the photo content or %NULL in case of error. */ downloadDefaultSize(authorizer: Authorizer): Gio.InputStream getDefaultHeight(): number getDefaultSourceUri(): string getDefaultWidth(): number getImageHires(): PhotoImage getImageNearHeight(height: number): PhotoImage getImageNearWidth(width: number): PhotoImage getImages(): PhotoImage[] getName(): string // Conflicting methods /** * Calls the [vfunc`Json`.Serializable.get_property] implementation * on the `JsonSerializable` instance, which will get the value of * the given property. * @virtual * @param pspec a property description */ getProperty(pspec: GObject.ParamSpec): /* value */ any // Overloads of getProperty /** * Gets a property of an object. * * The `value` can be: * * - an empty #GValue initialized by %G_VALUE_INIT, which will be * automatically initialized with the expected type of the property * (since GLib 2.60) * - a #GValue initialized with the expected type of the property * - a #GValue initialized with a type to which the expected type * of the property can be transformed * * In general, a copy is made of the property contents and the caller is * responsible for freeing the memory by calling g_value_unset(). * * Note that g_object_get_property() is really intended for language * bindings, g_object_get() is much more convenient for C programming. * @param propertyName the name of the property to get * @param value return location for the property value */ getProperty<T = unknown>(propertyName: string): T /** * Gets a property of an object. * * The `value` can be: * * - an empty #GValue initialized by %G_VALUE_INIT, which will be * automatically initialized with the expected type of the property * (since GLib 2.60) * - a #GValue initialized with the expected type of the property * - a #GValue initialized with a type to which the expected type * of the property can be transformed * * In general, a copy is made of the property contents and the caller is * responsible for freeing the memory by calling g_value_unset(). * * Note that g_object_get_property() is really intended for language * bindings, g_object_get() is much more convenient for C programming. * @param propertyName the name of the property to get * @param value return location for the property value */ getProperty<T = unknown>(propertyName: string): T /** * Calls the [vfunc`Json`.Serializable.set_property] implementation * on the `JsonSerializable` instance, which will set the property * with the given value. * @virtual * @param pspec a property description * @param value the property value to set */ setProperty(pspec: GObject.ParamSpec, value: any): void // Overloads of setProperty /** * Sets a property on an object. * @param propertyName the name of the property to set * @param value the value */ setProperty<T = any>(propertyName: string, value: T): void /** * Sets a property on an object. * @param propertyName the name of the property to set * @param value the value */ setProperty<T = any>(propertyName: string, value: T): void // Class property signals of GFBGraph-0.2.GFBGraph.Photo connect(sigName: "notify::height", callback: (...args: any[]) => void): number on(sigName: "notify::height", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::height", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::height", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::height", ...args: any[]): void connect(sigName: "notify::images", callback: (...args: any[]) => void): number on(sigName: "notify::images", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::images", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::images", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::images", ...args: any[]): void connect(sigName: "notify::name", callback: (...args: any[]) => void): number on(sigName: "notify::name", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::name", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::name", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::name", ...args: any[]): void connect(sigName: "notify::source", callback: (...args: any[]) => void): number on(sigName: "notify::source", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::source", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::source", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::source", ...args: any[]): void connect(sigName: "notify::width", callback: (...args: any[]) => void): number on(sigName: "notify::width", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::width", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::width", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::width", ...args: any[]): void connect(sigName: "notify::__gtype__", callback: (...args: any[]) => void): number on(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::__gtype__", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::__gtype__", ...args: any[]): void connect(sigName: "notify::created-time", callback: (...args: any[]) => void): number on(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::created-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::created-time", ...args: any[]): void connect(sigName: "notify::id", callback: (...args: any[]) => void): number on(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::id", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::id", ...args: any[]): void connect(sigName: "notify::link", callback: (...args: any[]) => void): number on(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::link", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::link", ...args: any[]): void connect(sigName: "notify::updated-time", callback: (...args: any[]) => void): number on(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::updated-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::updated-time", ...args: any[]): void connect(sigName: string, callback: (...args: any[]) => void): number on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: string, ...args: any[]): void disconnect(id: number): void } class Photo extends Node { // Own properties of GFBGraph-0.2.GFBGraph.Photo static name: string // Constructors of GFBGraph-0.2.GFBGraph.Photo constructor(config?: Photo.ConstructorProperties) /** * Creates a new #GFBGraphPhoto. * @constructor * @returns a new #GFBGraphPhoto; unref with g_object_unref() */ constructor() /** * Creates a new #GFBGraphPhoto. * @constructor * @returns a new #GFBGraphPhoto; unref with g_object_unref() */ static new(): Photo // Overloads of new /** * Creates a new #GFBGraphNode. * @constructor * @returns a new #GFBGraphNode; unref with g_object_unref() */ static new(): Node /** * Retrieves an photo node from the Facebook Graph with the give ID. * @constructor * @param authorizer a #GFBGraphAuthorizer. * @param id a const #gchar with the photo ID. * @returns a new #GFBGraphPhoto; unref with g_object_unref() */ static newFromId(authorizer: Authorizer, id: string): Photo // Overloads of newFromId /** * Retrieve a node object as a #GFBgraphNode of #node_type type, with the given `id` from the Facebook Graph. * @constructor * @param authorizer a #GFBGraphAuthorizer. * @param id a const #gchar with the node ID. * @param nodeType a #GFBGraphNode type #GType. * @returns a #GFBGraphNode or %NULL. */ static newFromId(authorizer: Authorizer, id: string, nodeType: GObject.GType): Node _init(config?: Photo.ConstructorProperties): void } module SimpleAuthorizer { // Constructor properties interface interface ConstructorProperties extends Authorizer.ConstructorProperties, GObject.Object.ConstructorProperties { // Own constructor properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer access_token?: string | null } } interface SimpleAuthorizer extends Authorizer { // Own properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer accessToken: string | null __gtype__: number // Own fields of GFBGraph-0.2.GFBGraph.SimpleAuthorizer parent: GObject.Object // Class property signals of GFBGraph-0.2.GFBGraph.SimpleAuthorizer connect(sigName: "notify::access-token", callback: (...args: any[]) => void): number on(sigName: "notify::access-token", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::access-token", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::access-token", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::access-token", ...args: any[]): void connect(sigName: "notify::__gtype__", callback: (...args: any[]) => void): number on(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::__gtype__", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::__gtype__", ...args: any[]): void connect(sigName: string, callback: (...args: any[]) => void): number on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: string, ...args: any[]): void disconnect(id: number): void } class SimpleAuthorizer extends GObject.Object { // Own properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer static name: string // Constructors of GFBGraph-0.2.GFBGraph.SimpleAuthorizer constructor(config?: SimpleAuthorizer.ConstructorProperties) /** * Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token. * It's only a test authorizer, don't use in final code. * @constructor * @param accessToken a const `gchar`. * @returns a #GFBGraphSimpleAuthorizer. */ constructor(accessToken: string) /** * Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token. * It's only a test authorizer, don't use in final code. * @constructor * @param accessToken a const `gchar`. * @returns a #GFBGraphSimpleAuthorizer. */ static new(accessToken: string): SimpleAuthorizer _init(config?: SimpleAuthorizer.ConstructorProperties): void } module User { // Constructor properties interface interface ConstructorProperties extends Node.ConstructorProperties { // Own constructor properties of GFBGraph-0.2.GFBGraph.User /** * The email of the user if available */ email?: string | null /** * The full name of the user */ name?: string | null } } interface User { // Own properties of GFBGraph-0.2.GFBGraph.User /** * The email of the user if available */ email: string | null /** * The full name of the user */ name: string | null __gtype__: number // Own fields of GFBGraph-0.2.GFBGraph.User parent: Node & GObject.Object // Owm methods of GFBGraph-0.2.GFBGraph.User /** * Retrieve the albums nodes owned by the `user`. This functions call the function ID/albums. * @param authorizer a #GFBGraphAuthorizer. * @returns a newly-allocated #GList with the albums nodes owned by the given user. */ getAlbums(authorizer: Authorizer): Album[] /** * Asynchronously retrieve the albums nodes owned by the `user`. See gfbgraph_user_get_albums() for the * synchronous version of this call. * * When the operation is finished, `callback` will be called. You can then call gfbgraph_user_get_albums_async_finish() * to get the #GList of #GFBGraphAlbum owned by the `user`. * @param authorizer a #GFBGraphAuthorizer. * @param cancellable An optional #GCancellable object, or %NULL. * @param callback A #GAsyncReadyCallback to call when the request is completed. */ getAlbumsAsync(authorizer: Authorizer, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null): void /** * Finishes an asynchronous operation started with * gfbgraph_user_get_albums_async(). * @param result A #GAsyncResult. * @returns a newly-allocated #GList of albums owned by the @user. */ getAlbumsAsyncFinish(result: Gio.AsyncResult): Album[] /** * Get the user email. To retrieve this propertie, you need 'email' extended * permission. * @returns a const #gchar with the user email, or %NULL. */ getEmail(): string /** * Get the user full name. * @returns a const #gchar with the user full name, or %NULL. */ getName(): string // Class property signals of GFBGraph-0.2.GFBGraph.User connect(sigName: "notify::email", callback: (...args: any[]) => void): number on(sigName: "notify::email", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::email", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::email", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::email", ...args: any[]): void connect(sigName: "notify::name", callback: (...args: any[]) => void): number on(sigName: "notify::name", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::name", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::name", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::name", ...args: any[]): void connect(sigName: "notify::__gtype__", callback: (...args: any[]) => void): number on(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::__gtype__", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::__gtype__", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::__gtype__", ...args: any[]): void connect(sigName: "notify::created-time", callback: (...args: any[]) => void): number on(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::created-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::created-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::created-time", ...args: any[]): void connect(sigName: "notify::id", callback: (...args: any[]) => void): number on(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::id", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::id", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::id", ...args: any[]): void connect(sigName: "notify::link", callback: (...args: any[]) => void): number on(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::link", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::link", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::link", ...args: any[]): void connect(sigName: "notify::updated-time", callback: (...args: any[]) => void): number on(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: "notify::updated-time", callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: "notify::updated-time", callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: "notify::updated-time", ...args: any[]): void connect(sigName: string, callback: (...args: any[]) => void): number on(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter once(sigName: string, callback: (...args: any[]) => void, after?: boolean): NodeJS.EventEmitter off(sigName: string, callback: (...args: any[]) => void): NodeJS.EventEmitter emit(sigName: string, ...args: any[]): void disconnect(id: number): void } class User extends Node { // Own properties of GFBGraph-0.2.GFBGraph.User static name: string // Constructors of GFBGraph-0.2.GFBGraph.User constructor(config?: User.ConstructorProperties) /** * Creates a new #GFBGraphUser. * @constructor * @returns a new #GFBGraphUser; unref with g_object_unref() */ constructor() /** * Creates a new #GFBGraphUser. * @constructor * @returns a new #GFBGraphUser; unref with g_object_unref() */ static new(): User // Overloads of new /** * Creates a new #GFBGraphNode. * @constructor * @returns a new #GFBGraphNode; unref with g_object_unref() */ static new(): Node /** * Retrieves a user from the Facebook Graph with the give ID. * @constructor * @param authorizer a #GFBGraphAuthorizer. * @param id a const #gchar with the user ID. * @returns a new #GFBGraphUser; unref with g_object_unref() */ static newFromId(authorizer: Authorizer, id: string): User // Overloads of newFromId /** * Retrieve a node object as a #GFBgraphNode of #node_type type, with the given `id` from the Facebook Graph. * @constructor * @param authorizer a #GFBGraphAuthorizer. * @param id a const #gchar with the node ID. * @param nodeType a #GFBGraphNode type #GType. * @returns a #GFBGraphNode or %NULL. */ static newFromId(authorizer: Authorizer, id: string, nodeType: GObject.GType): Node _init(config?: User.ConstructorProperties): void /** * Retrieve the current user logged using the https://graph.facebook.com/me Graph API function. * See gfbgraph_user_get_my_async() for the asynchronous version of this call. * @param authorizer a #GFBGraphAuthorizer. * @returns a #GFBGraphUser with the current user information. */ static getMe(authorizer: Authorizer): User /** * Asynchronously retrieve the current user logged. See gfbgraph_user_get_me() for the * synchronous version of this call. * * When the operati