@girs/gfbgraph-0.2 0.2.0-3.2.6 → 0.2.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gfbgraph-0.2.d.cts +32 -32
- package/gfbgraph-0.2.d.ts +32 -32
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GFBGraph-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for GFBGraph-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gfbgraph-0.2.d.cts
CHANGED
|
@@ -142,14 +142,14 @@ export interface Connectable extends Node {
|
|
|
142
142
|
* @param payload a const #gchar with the response string from the Facebook Graph API.
|
|
143
143
|
* @returns a newly-allocated #GList of #GFBGraphNode with the same #GType as @self.
|
|
144
144
|
*/
|
|
145
|
-
default_parse_connected_data(payload: string
|
|
145
|
+
default_parse_connected_data(payload: string): Node[]
|
|
146
146
|
/**
|
|
147
147
|
* Get the Facebook Graph API function path to retrieve the nodes connected with `node_type`
|
|
148
148
|
* managed by the #GFBGraphConnectable object.
|
|
149
149
|
* @param node_type a #GType, required a #GFBGRAPH_TYPE_NODE or children.
|
|
150
150
|
* @returns a const #gchar with the function path or %NULL.
|
|
151
151
|
*/
|
|
152
|
-
get_connection_path(node_type: GObject.GType): string
|
|
152
|
+
get_connection_path(node_type: GObject.GType): string
|
|
153
153
|
/**
|
|
154
154
|
* Get the params to be inserted in a request to the Facebook Graph API
|
|
155
155
|
* in order to append the node `self` to a node of type `node_type`.
|
|
@@ -170,7 +170,7 @@ export interface Connectable extends Node {
|
|
|
170
170
|
* @param payload a const #gchar with the response string from the Facebook Graph API.
|
|
171
171
|
* @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
|
|
172
172
|
*/
|
|
173
|
-
parse_connected_data(payload: string
|
|
173
|
+
parse_connected_data(payload: string): Node[]
|
|
174
174
|
|
|
175
175
|
// Own virtual methods of GFBGraph-0.2.GFBGraph.Connectable
|
|
176
176
|
|
|
@@ -189,7 +189,7 @@ export interface Connectable extends Node {
|
|
|
189
189
|
* @param payload a const #gchar with the response string from the Facebook Graph API.
|
|
190
190
|
* @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
|
|
191
191
|
*/
|
|
192
|
-
vfunc_parse_connected_data(payload: string
|
|
192
|
+
vfunc_parse_connected_data(payload: string): Node[]
|
|
193
193
|
|
|
194
194
|
// Class property signals of GFBGraph-0.2.GFBGraph.Connectable
|
|
195
195
|
|
|
@@ -276,19 +276,19 @@ export interface Album extends Connectable {
|
|
|
276
276
|
// Owm methods of GFBGraph-0.2.GFBGraph.Album
|
|
277
277
|
|
|
278
278
|
get_count(): number
|
|
279
|
-
get_cover_photo_id(): string
|
|
280
|
-
get_description(): string
|
|
281
|
-
get_name(): string
|
|
279
|
+
get_cover_photo_id(): string
|
|
280
|
+
get_description(): string
|
|
281
|
+
get_name(): string
|
|
282
282
|
/**
|
|
283
283
|
* Sets the description for the `album`.
|
|
284
284
|
* @param description a const pointer to a #gchar.
|
|
285
285
|
*/
|
|
286
|
-
set_description(description: string
|
|
286
|
+
set_description(description: string): void
|
|
287
287
|
/**
|
|
288
288
|
* Sets the name for the `album`.
|
|
289
289
|
* @param name a const pointer to a #gchar.
|
|
290
290
|
*/
|
|
291
|
-
set_name(name: string
|
|
291
|
+
set_name(name: string): void
|
|
292
292
|
|
|
293
293
|
// Class property signals of GFBGraph-0.2.GFBGraph.Album
|
|
294
294
|
|
|
@@ -360,7 +360,7 @@ export class Album extends Node {
|
|
|
360
360
|
* @param id a const #gchar with the album ID.
|
|
361
361
|
* @returns a new #GFBGraphAlbum; unref with g_object_unref()
|
|
362
362
|
*/
|
|
363
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
363
|
+
static new_from_id(authorizer: Authorizer, id: string): Album
|
|
364
364
|
|
|
365
365
|
// Overloads of new_from_id
|
|
366
366
|
|
|
@@ -372,7 +372,7 @@ export class Album extends Node {
|
|
|
372
372
|
* @param node_type a #GFBGraphNode type #GType.
|
|
373
373
|
* @returns a #GFBGraphNode or %NULL.
|
|
374
374
|
*/
|
|
375
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
375
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
376
376
|
_init(config?: Album.ConstructorProperties): void
|
|
377
377
|
}
|
|
378
378
|
|
|
@@ -499,24 +499,24 @@ export interface Node {
|
|
|
499
499
|
* Gets a node created time.
|
|
500
500
|
* @returns an ISO 8601 encoded date when the node was initially published.
|
|
501
501
|
*/
|
|
502
|
-
get_created_time(): string
|
|
502
|
+
get_created_time(): string
|
|
503
503
|
/**
|
|
504
504
|
* Gets the Facebook Graph unique node ID.
|
|
505
505
|
* @returns the node ID.
|
|
506
506
|
*/
|
|
507
|
-
get_id(): string
|
|
508
|
-
get_link(): string
|
|
507
|
+
get_id(): string
|
|
508
|
+
get_link(): string
|
|
509
509
|
/**
|
|
510
510
|
* Gets a node updated time.
|
|
511
511
|
* @returns an ISO 8601 encoded date when the node was updated.
|
|
512
512
|
*/
|
|
513
|
-
get_updated_time(): string
|
|
513
|
+
get_updated_time(): string
|
|
514
514
|
/**
|
|
515
515
|
* Sets the ID for a node. Just useful when a new node is created
|
|
516
516
|
* and the Graph API returns the ID of the new created node.
|
|
517
517
|
* @param id a const pointer to a #gchar.
|
|
518
518
|
*/
|
|
519
|
-
set_id(id: string
|
|
519
|
+
set_id(id: string): void
|
|
520
520
|
|
|
521
521
|
// Class property signals of GFBGraph-0.2.GFBGraph.Node
|
|
522
522
|
|
|
@@ -568,7 +568,7 @@ export class Node extends GObject.Object {
|
|
|
568
568
|
* @param node_type a #GFBGraphNode type #GType.
|
|
569
569
|
* @returns a #GFBGraphNode or %NULL.
|
|
570
570
|
*/
|
|
571
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
571
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
572
572
|
_init(config?: Node.ConstructorProperties): void
|
|
573
573
|
static error_quark(): GLib.Quark
|
|
574
574
|
}
|
|
@@ -644,13 +644,13 @@ export interface Photo extends Connectable, Json.Serializable {
|
|
|
644
644
|
*/
|
|
645
645
|
download_default_size(authorizer: Authorizer): Gio.InputStream
|
|
646
646
|
get_default_height(): number
|
|
647
|
-
get_default_source_uri(): string
|
|
647
|
+
get_default_source_uri(): string
|
|
648
648
|
get_default_width(): number
|
|
649
649
|
get_image_hires(): PhotoImage
|
|
650
650
|
get_image_near_height(height: number): PhotoImage
|
|
651
651
|
get_image_near_width(width: number): PhotoImage
|
|
652
652
|
get_images(): PhotoImage[]
|
|
653
|
-
get_name(): string
|
|
653
|
+
get_name(): string
|
|
654
654
|
|
|
655
655
|
// Conflicting methods
|
|
656
656
|
|
|
@@ -684,7 +684,7 @@ export interface Photo extends Connectable, Json.Serializable {
|
|
|
684
684
|
* @param property_name the name of the property to get
|
|
685
685
|
* @param value return location for the property value
|
|
686
686
|
*/
|
|
687
|
-
get_property(property_name: string
|
|
687
|
+
get_property(property_name: string, value: any): void
|
|
688
688
|
/**
|
|
689
689
|
* Gets a property of an object.
|
|
690
690
|
*
|
|
@@ -705,7 +705,7 @@ export interface Photo extends Connectable, Json.Serializable {
|
|
|
705
705
|
* @param property_name the name of the property to get
|
|
706
706
|
* @param value return location for the property value
|
|
707
707
|
*/
|
|
708
|
-
get_property(property_name: string
|
|
708
|
+
get_property(property_name: string, value: any): void
|
|
709
709
|
/**
|
|
710
710
|
* Calls the [vfunc`Json`.Serializable.set_property] implementation
|
|
711
711
|
* on the `JsonSerializable` instance, which will set the property
|
|
@@ -722,13 +722,13 @@ export interface Photo extends Connectable, Json.Serializable {
|
|
|
722
722
|
* @param property_name the name of the property to set
|
|
723
723
|
* @param value the value
|
|
724
724
|
*/
|
|
725
|
-
set_property(property_name: string
|
|
725
|
+
set_property(property_name: string, value: any): void
|
|
726
726
|
/**
|
|
727
727
|
* Sets a property on an object.
|
|
728
728
|
* @param property_name the name of the property to set
|
|
729
729
|
* @param value the value
|
|
730
730
|
*/
|
|
731
|
-
set_property(property_name: string
|
|
731
|
+
set_property(property_name: string, value: any): void
|
|
732
732
|
/**
|
|
733
733
|
* Calls the [vfunc`Json`.Serializable.get_property] implementation
|
|
734
734
|
* on the `JsonSerializable` instance, which will get the value of
|
|
@@ -830,7 +830,7 @@ export class Photo extends Node {
|
|
|
830
830
|
* @param id a const #gchar with the photo ID.
|
|
831
831
|
* @returns a new #GFBGraphPhoto; unref with g_object_unref()
|
|
832
832
|
*/
|
|
833
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
833
|
+
static new_from_id(authorizer: Authorizer, id: string): Photo
|
|
834
834
|
|
|
835
835
|
// Overloads of new_from_id
|
|
836
836
|
|
|
@@ -842,7 +842,7 @@ export class Photo extends Node {
|
|
|
842
842
|
* @param node_type a #GFBGraphNode type #GType.
|
|
843
843
|
* @returns a #GFBGraphNode or %NULL.
|
|
844
844
|
*/
|
|
845
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
845
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
846
846
|
_init(config?: Photo.ConstructorProperties): void
|
|
847
847
|
}
|
|
848
848
|
|
|
@@ -899,7 +899,7 @@ export class SimpleAuthorizer extends GObject.Object {
|
|
|
899
899
|
* @param access_token a const `gchar`.
|
|
900
900
|
* @returns a #GFBGraphSimpleAuthorizer.
|
|
901
901
|
*/
|
|
902
|
-
constructor(access_token: string
|
|
902
|
+
constructor(access_token: string)
|
|
903
903
|
/**
|
|
904
904
|
* Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token.
|
|
905
905
|
* It's only a test authorizer, don't use in final code.
|
|
@@ -907,7 +907,7 @@ export class SimpleAuthorizer extends GObject.Object {
|
|
|
907
907
|
* @param access_token a const `gchar`.
|
|
908
908
|
* @returns a #GFBGraphSimpleAuthorizer.
|
|
909
909
|
*/
|
|
910
|
-
static new(access_token: string
|
|
910
|
+
static new(access_token: string): SimpleAuthorizer
|
|
911
911
|
_init(config?: SimpleAuthorizer.ConstructorProperties): void
|
|
912
912
|
}
|
|
913
913
|
|
|
@@ -979,12 +979,12 @@ export interface User {
|
|
|
979
979
|
* permission.
|
|
980
980
|
* @returns a const #gchar with the user email, or %NULL.
|
|
981
981
|
*/
|
|
982
|
-
get_email(): string
|
|
982
|
+
get_email(): string
|
|
983
983
|
/**
|
|
984
984
|
* Get the user full name.
|
|
985
985
|
* @returns a const #gchar with the user full name, or %NULL.
|
|
986
986
|
*/
|
|
987
|
-
get_name(): string
|
|
987
|
+
get_name(): string
|
|
988
988
|
|
|
989
989
|
// Class property signals of GFBGraph-0.2.GFBGraph.User
|
|
990
990
|
|
|
@@ -1050,7 +1050,7 @@ export class User extends Node {
|
|
|
1050
1050
|
* @param id a const #gchar with the user ID.
|
|
1051
1051
|
* @returns a new #GFBGraphUser; unref with g_object_unref()
|
|
1052
1052
|
*/
|
|
1053
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
1053
|
+
static new_from_id(authorizer: Authorizer, id: string): User
|
|
1054
1054
|
|
|
1055
1055
|
// Overloads of new_from_id
|
|
1056
1056
|
|
|
@@ -1062,7 +1062,7 @@ export class User extends Node {
|
|
|
1062
1062
|
* @param node_type a #GFBGraphNode type #GType.
|
|
1063
1063
|
* @returns a #GFBGraphNode or %NULL.
|
|
1064
1064
|
*/
|
|
1065
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
1065
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
1066
1066
|
_init(config?: User.ConstructorProperties): void
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Retrieve the current user logged using the https://graph.facebook.com/me Graph API function.
|
|
@@ -1148,7 +1148,7 @@ export interface ConnectableInterface {
|
|
|
1148
1148
|
parent: GObject.TypeInterface
|
|
1149
1149
|
connections: GLib.HashTable
|
|
1150
1150
|
get_connection_post_params: (self: Connectable, node_type: GObject.GType) => GLib.HashTable
|
|
1151
|
-
parse_connected_data: (self: Connectable, payload: string
|
|
1151
|
+
parse_connected_data: (self: Connectable, payload: string) => Node[]
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
1154
|
export abstract class ConnectableInterface {
|
package/gfbgraph-0.2.d.ts
CHANGED
|
@@ -144,14 +144,14 @@ interface Connectable extends Node {
|
|
|
144
144
|
* @param payload a const #gchar with the response string from the Facebook Graph API.
|
|
145
145
|
* @returns a newly-allocated #GList of #GFBGraphNode with the same #GType as @self.
|
|
146
146
|
*/
|
|
147
|
-
default_parse_connected_data(payload: string
|
|
147
|
+
default_parse_connected_data(payload: string): Node[]
|
|
148
148
|
/**
|
|
149
149
|
* Get the Facebook Graph API function path to retrieve the nodes connected with `node_type`
|
|
150
150
|
* managed by the #GFBGraphConnectable object.
|
|
151
151
|
* @param node_type a #GType, required a #GFBGRAPH_TYPE_NODE or children.
|
|
152
152
|
* @returns a const #gchar with the function path or %NULL.
|
|
153
153
|
*/
|
|
154
|
-
get_connection_path(node_type: GObject.GType): string
|
|
154
|
+
get_connection_path(node_type: GObject.GType): string
|
|
155
155
|
/**
|
|
156
156
|
* Get the params to be inserted in a request to the Facebook Graph API
|
|
157
157
|
* in order to append the node `self` to a node of type `node_type`.
|
|
@@ -172,7 +172,7 @@ interface Connectable extends Node {
|
|
|
172
172
|
* @param payload a const #gchar with the response string from the Facebook Graph API.
|
|
173
173
|
* @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
|
|
174
174
|
*/
|
|
175
|
-
parse_connected_data(payload: string
|
|
175
|
+
parse_connected_data(payload: string): Node[]
|
|
176
176
|
|
|
177
177
|
// Own virtual methods of GFBGraph-0.2.GFBGraph.Connectable
|
|
178
178
|
|
|
@@ -191,7 +191,7 @@ interface Connectable extends Node {
|
|
|
191
191
|
* @param payload a const #gchar with the response string from the Facebook Graph API.
|
|
192
192
|
* @returns a newly-allocated #GList of #GFBGraphNode created from the @payload or %NULL.
|
|
193
193
|
*/
|
|
194
|
-
vfunc_parse_connected_data(payload: string
|
|
194
|
+
vfunc_parse_connected_data(payload: string): Node[]
|
|
195
195
|
|
|
196
196
|
// Class property signals of GFBGraph-0.2.GFBGraph.Connectable
|
|
197
197
|
|
|
@@ -278,19 +278,19 @@ interface Album extends Connectable {
|
|
|
278
278
|
// Owm methods of GFBGraph-0.2.GFBGraph.Album
|
|
279
279
|
|
|
280
280
|
get_count(): number
|
|
281
|
-
get_cover_photo_id(): string
|
|
282
|
-
get_description(): string
|
|
283
|
-
get_name(): string
|
|
281
|
+
get_cover_photo_id(): string
|
|
282
|
+
get_description(): string
|
|
283
|
+
get_name(): string
|
|
284
284
|
/**
|
|
285
285
|
* Sets the description for the `album`.
|
|
286
286
|
* @param description a const pointer to a #gchar.
|
|
287
287
|
*/
|
|
288
|
-
set_description(description: string
|
|
288
|
+
set_description(description: string): void
|
|
289
289
|
/**
|
|
290
290
|
* Sets the name for the `album`.
|
|
291
291
|
* @param name a const pointer to a #gchar.
|
|
292
292
|
*/
|
|
293
|
-
set_name(name: string
|
|
293
|
+
set_name(name: string): void
|
|
294
294
|
|
|
295
295
|
// Class property signals of GFBGraph-0.2.GFBGraph.Album
|
|
296
296
|
|
|
@@ -362,7 +362,7 @@ class Album extends Node {
|
|
|
362
362
|
* @param id a const #gchar with the album ID.
|
|
363
363
|
* @returns a new #GFBGraphAlbum; unref with g_object_unref()
|
|
364
364
|
*/
|
|
365
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
365
|
+
static new_from_id(authorizer: Authorizer, id: string): Album
|
|
366
366
|
|
|
367
367
|
// Overloads of new_from_id
|
|
368
368
|
|
|
@@ -374,7 +374,7 @@ class Album extends Node {
|
|
|
374
374
|
* @param node_type a #GFBGraphNode type #GType.
|
|
375
375
|
* @returns a #GFBGraphNode or %NULL.
|
|
376
376
|
*/
|
|
377
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
377
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
378
378
|
_init(config?: Album.ConstructorProperties): void
|
|
379
379
|
}
|
|
380
380
|
|
|
@@ -501,24 +501,24 @@ interface Node {
|
|
|
501
501
|
* Gets a node created time.
|
|
502
502
|
* @returns an ISO 8601 encoded date when the node was initially published.
|
|
503
503
|
*/
|
|
504
|
-
get_created_time(): string
|
|
504
|
+
get_created_time(): string
|
|
505
505
|
/**
|
|
506
506
|
* Gets the Facebook Graph unique node ID.
|
|
507
507
|
* @returns the node ID.
|
|
508
508
|
*/
|
|
509
|
-
get_id(): string
|
|
510
|
-
get_link(): string
|
|
509
|
+
get_id(): string
|
|
510
|
+
get_link(): string
|
|
511
511
|
/**
|
|
512
512
|
* Gets a node updated time.
|
|
513
513
|
* @returns an ISO 8601 encoded date when the node was updated.
|
|
514
514
|
*/
|
|
515
|
-
get_updated_time(): string
|
|
515
|
+
get_updated_time(): string
|
|
516
516
|
/**
|
|
517
517
|
* Sets the ID for a node. Just useful when a new node is created
|
|
518
518
|
* and the Graph API returns the ID of the new created node.
|
|
519
519
|
* @param id a const pointer to a #gchar.
|
|
520
520
|
*/
|
|
521
|
-
set_id(id: string
|
|
521
|
+
set_id(id: string): void
|
|
522
522
|
|
|
523
523
|
// Class property signals of GFBGraph-0.2.GFBGraph.Node
|
|
524
524
|
|
|
@@ -570,7 +570,7 @@ class Node extends GObject.Object {
|
|
|
570
570
|
* @param node_type a #GFBGraphNode type #GType.
|
|
571
571
|
* @returns a #GFBGraphNode or %NULL.
|
|
572
572
|
*/
|
|
573
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
573
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
574
574
|
_init(config?: Node.ConstructorProperties): void
|
|
575
575
|
static error_quark(): GLib.Quark
|
|
576
576
|
}
|
|
@@ -646,13 +646,13 @@ interface Photo extends Connectable, Json.Serializable {
|
|
|
646
646
|
*/
|
|
647
647
|
download_default_size(authorizer: Authorizer): Gio.InputStream
|
|
648
648
|
get_default_height(): number
|
|
649
|
-
get_default_source_uri(): string
|
|
649
|
+
get_default_source_uri(): string
|
|
650
650
|
get_default_width(): number
|
|
651
651
|
get_image_hires(): PhotoImage
|
|
652
652
|
get_image_near_height(height: number): PhotoImage
|
|
653
653
|
get_image_near_width(width: number): PhotoImage
|
|
654
654
|
get_images(): PhotoImage[]
|
|
655
|
-
get_name(): string
|
|
655
|
+
get_name(): string
|
|
656
656
|
|
|
657
657
|
// Conflicting methods
|
|
658
658
|
|
|
@@ -686,7 +686,7 @@ interface Photo extends Connectable, Json.Serializable {
|
|
|
686
686
|
* @param property_name the name of the property to get
|
|
687
687
|
* @param value return location for the property value
|
|
688
688
|
*/
|
|
689
|
-
get_property(property_name: string
|
|
689
|
+
get_property(property_name: string, value: any): void
|
|
690
690
|
/**
|
|
691
691
|
* Gets a property of an object.
|
|
692
692
|
*
|
|
@@ -707,7 +707,7 @@ interface Photo extends Connectable, Json.Serializable {
|
|
|
707
707
|
* @param property_name the name of the property to get
|
|
708
708
|
* @param value return location for the property value
|
|
709
709
|
*/
|
|
710
|
-
get_property(property_name: string
|
|
710
|
+
get_property(property_name: string, value: any): void
|
|
711
711
|
/**
|
|
712
712
|
* Calls the [vfunc`Json`.Serializable.set_property] implementation
|
|
713
713
|
* on the `JsonSerializable` instance, which will set the property
|
|
@@ -724,13 +724,13 @@ interface Photo extends Connectable, Json.Serializable {
|
|
|
724
724
|
* @param property_name the name of the property to set
|
|
725
725
|
* @param value the value
|
|
726
726
|
*/
|
|
727
|
-
set_property(property_name: string
|
|
727
|
+
set_property(property_name: string, value: any): void
|
|
728
728
|
/**
|
|
729
729
|
* Sets a property on an object.
|
|
730
730
|
* @param property_name the name of the property to set
|
|
731
731
|
* @param value the value
|
|
732
732
|
*/
|
|
733
|
-
set_property(property_name: string
|
|
733
|
+
set_property(property_name: string, value: any): void
|
|
734
734
|
/**
|
|
735
735
|
* Calls the [vfunc`Json`.Serializable.get_property] implementation
|
|
736
736
|
* on the `JsonSerializable` instance, which will get the value of
|
|
@@ -832,7 +832,7 @@ class Photo extends Node {
|
|
|
832
832
|
* @param id a const #gchar with the photo ID.
|
|
833
833
|
* @returns a new #GFBGraphPhoto; unref with g_object_unref()
|
|
834
834
|
*/
|
|
835
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
835
|
+
static new_from_id(authorizer: Authorizer, id: string): Photo
|
|
836
836
|
|
|
837
837
|
// Overloads of new_from_id
|
|
838
838
|
|
|
@@ -844,7 +844,7 @@ class Photo extends Node {
|
|
|
844
844
|
* @param node_type a #GFBGraphNode type #GType.
|
|
845
845
|
* @returns a #GFBGraphNode or %NULL.
|
|
846
846
|
*/
|
|
847
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
847
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
848
848
|
_init(config?: Photo.ConstructorProperties): void
|
|
849
849
|
}
|
|
850
850
|
|
|
@@ -901,7 +901,7 @@ class SimpleAuthorizer extends GObject.Object {
|
|
|
901
901
|
* @param access_token a const `gchar`.
|
|
902
902
|
* @returns a #GFBGraphSimpleAuthorizer.
|
|
903
903
|
*/
|
|
904
|
-
constructor(access_token: string
|
|
904
|
+
constructor(access_token: string)
|
|
905
905
|
/**
|
|
906
906
|
* Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token.
|
|
907
907
|
* It's only a test authorizer, don't use in final code.
|
|
@@ -909,7 +909,7 @@ class SimpleAuthorizer extends GObject.Object {
|
|
|
909
909
|
* @param access_token a const `gchar`.
|
|
910
910
|
* @returns a #GFBGraphSimpleAuthorizer.
|
|
911
911
|
*/
|
|
912
|
-
static new(access_token: string
|
|
912
|
+
static new(access_token: string): SimpleAuthorizer
|
|
913
913
|
_init(config?: SimpleAuthorizer.ConstructorProperties): void
|
|
914
914
|
}
|
|
915
915
|
|
|
@@ -981,12 +981,12 @@ interface User {
|
|
|
981
981
|
* permission.
|
|
982
982
|
* @returns a const #gchar with the user email, or %NULL.
|
|
983
983
|
*/
|
|
984
|
-
get_email(): string
|
|
984
|
+
get_email(): string
|
|
985
985
|
/**
|
|
986
986
|
* Get the user full name.
|
|
987
987
|
* @returns a const #gchar with the user full name, or %NULL.
|
|
988
988
|
*/
|
|
989
|
-
get_name(): string
|
|
989
|
+
get_name(): string
|
|
990
990
|
|
|
991
991
|
// Class property signals of GFBGraph-0.2.GFBGraph.User
|
|
992
992
|
|
|
@@ -1052,7 +1052,7 @@ class User extends Node {
|
|
|
1052
1052
|
* @param id a const #gchar with the user ID.
|
|
1053
1053
|
* @returns a new #GFBGraphUser; unref with g_object_unref()
|
|
1054
1054
|
*/
|
|
1055
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
1055
|
+
static new_from_id(authorizer: Authorizer, id: string): User
|
|
1056
1056
|
|
|
1057
1057
|
// Overloads of new_from_id
|
|
1058
1058
|
|
|
@@ -1064,7 +1064,7 @@ class User extends Node {
|
|
|
1064
1064
|
* @param node_type a #GFBGraphNode type #GType.
|
|
1065
1065
|
* @returns a #GFBGraphNode or %NULL.
|
|
1066
1066
|
*/
|
|
1067
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
1067
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
1068
1068
|
_init(config?: User.ConstructorProperties): void
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Retrieve the current user logged using the https://graph.facebook.com/me Graph API function.
|
|
@@ -1150,7 +1150,7 @@ interface ConnectableInterface {
|
|
|
1150
1150
|
parent: GObject.TypeInterface
|
|
1151
1151
|
connections: GLib.HashTable
|
|
1152
1152
|
get_connection_post_params: (self: Connectable, node_type: GObject.GType) => GLib.HashTable
|
|
1153
|
-
parse_connected_data: (self: Connectable, payload: string
|
|
1153
|
+
parse_connected_data: (self: Connectable, payload: string) => Node[]
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
1156
|
abstract class ConnectableInterface {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gfbgraph-0.2",
|
|
3
|
-
"version": "0.2.0-3.2.
|
|
3
|
+
"version": "0.2.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GFBGraph-0.2, generated from library version 0.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gfbgraph-0.2.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gfbgraph-0.2.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/json-1.0": "^1.7.1-3.2.
|
|
33
|
-
"@girs/rest-0.7": "^0.7.0-3.2.
|
|
34
|
-
"@girs/soup-2.4": "^2.74.3-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
32
|
+
"@girs/json-1.0": "^1.7.1-3.2.7",
|
|
33
|
+
"@girs/rest-0.7": "^0.7.0-3.2.7",
|
|
34
|
+
"@girs/soup-2.4": "^2.74.3-3.2.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "*"
|