@girs/gfbgraph-0.2 0.2.0-3.2.5 → 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 +40 -32
- package/gfbgraph-0.2.d.ts +40 -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
|
|
|
@@ -245,6 +245,7 @@ export module Album {
|
|
|
245
245
|
* The album name.
|
|
246
246
|
*/
|
|
247
247
|
name?: string | null
|
|
248
|
+
coverPhoto?: string | null
|
|
248
249
|
}
|
|
249
250
|
|
|
250
251
|
}
|
|
@@ -258,6 +259,7 @@ export interface Album extends Connectable {
|
|
|
258
259
|
*/
|
|
259
260
|
count: number
|
|
260
261
|
cover_photo: string | null
|
|
262
|
+
coverPhoto: string | null
|
|
261
263
|
/**
|
|
262
264
|
* The album description given by the owner.
|
|
263
265
|
*/
|
|
@@ -274,19 +276,19 @@ export interface Album extends Connectable {
|
|
|
274
276
|
// Owm methods of GFBGraph-0.2.GFBGraph.Album
|
|
275
277
|
|
|
276
278
|
get_count(): number
|
|
277
|
-
get_cover_photo_id(): string
|
|
278
|
-
get_description(): string
|
|
279
|
-
get_name(): string
|
|
279
|
+
get_cover_photo_id(): string
|
|
280
|
+
get_description(): string
|
|
281
|
+
get_name(): string
|
|
280
282
|
/**
|
|
281
283
|
* Sets the description for the `album`.
|
|
282
284
|
* @param description a const pointer to a #gchar.
|
|
283
285
|
*/
|
|
284
|
-
set_description(description: string
|
|
286
|
+
set_description(description: string): void
|
|
285
287
|
/**
|
|
286
288
|
* Sets the name for the `album`.
|
|
287
289
|
* @param name a const pointer to a #gchar.
|
|
288
290
|
*/
|
|
289
|
-
set_name(name: string
|
|
291
|
+
set_name(name: string): void
|
|
290
292
|
|
|
291
293
|
// Class property signals of GFBGraph-0.2.GFBGraph.Album
|
|
292
294
|
|
|
@@ -358,7 +360,7 @@ export class Album extends Node {
|
|
|
358
360
|
* @param id a const #gchar with the album ID.
|
|
359
361
|
* @returns a new #GFBGraphAlbum; unref with g_object_unref()
|
|
360
362
|
*/
|
|
361
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
363
|
+
static new_from_id(authorizer: Authorizer, id: string): Album
|
|
362
364
|
|
|
363
365
|
// Overloads of new_from_id
|
|
364
366
|
|
|
@@ -370,7 +372,7 @@ export class Album extends Node {
|
|
|
370
372
|
* @param node_type a #GFBGraphNode type #GType.
|
|
371
373
|
* @returns a #GFBGraphNode or %NULL.
|
|
372
374
|
*/
|
|
373
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
375
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
374
376
|
_init(config?: Album.ConstructorProperties): void
|
|
375
377
|
}
|
|
376
378
|
|
|
@@ -428,6 +430,8 @@ export module Node {
|
|
|
428
430
|
*/
|
|
429
431
|
link?: string | null
|
|
430
432
|
updated_time?: string | null
|
|
433
|
+
createdTime?: string | null
|
|
434
|
+
updatedTime?: string | null
|
|
431
435
|
}
|
|
432
436
|
|
|
433
437
|
}
|
|
@@ -437,6 +441,7 @@ export interface Node {
|
|
|
437
441
|
// Own properties of GFBGraph-0.2.GFBGraph.Node
|
|
438
442
|
|
|
439
443
|
created_time: string | null
|
|
444
|
+
createdTime: string | null
|
|
440
445
|
/**
|
|
441
446
|
* The node ID. All nodes have one of this.
|
|
442
447
|
*/
|
|
@@ -446,6 +451,7 @@ export interface Node {
|
|
|
446
451
|
*/
|
|
447
452
|
link: string | null
|
|
448
453
|
updated_time: string | null
|
|
454
|
+
updatedTime: string | null
|
|
449
455
|
|
|
450
456
|
// Own fields of GFBGraph-0.2.GFBGraph.Node
|
|
451
457
|
|
|
@@ -493,24 +499,24 @@ export interface Node {
|
|
|
493
499
|
* Gets a node created time.
|
|
494
500
|
* @returns an ISO 8601 encoded date when the node was initially published.
|
|
495
501
|
*/
|
|
496
|
-
get_created_time(): string
|
|
502
|
+
get_created_time(): string
|
|
497
503
|
/**
|
|
498
504
|
* Gets the Facebook Graph unique node ID.
|
|
499
505
|
* @returns the node ID.
|
|
500
506
|
*/
|
|
501
|
-
get_id(): string
|
|
502
|
-
get_link(): string
|
|
507
|
+
get_id(): string
|
|
508
|
+
get_link(): string
|
|
503
509
|
/**
|
|
504
510
|
* Gets a node updated time.
|
|
505
511
|
* @returns an ISO 8601 encoded date when the node was updated.
|
|
506
512
|
*/
|
|
507
|
-
get_updated_time(): string
|
|
513
|
+
get_updated_time(): string
|
|
508
514
|
/**
|
|
509
515
|
* Sets the ID for a node. Just useful when a new node is created
|
|
510
516
|
* and the Graph API returns the ID of the new created node.
|
|
511
517
|
* @param id a const pointer to a #gchar.
|
|
512
518
|
*/
|
|
513
|
-
set_id(id: string
|
|
519
|
+
set_id(id: string): void
|
|
514
520
|
|
|
515
521
|
// Class property signals of GFBGraph-0.2.GFBGraph.Node
|
|
516
522
|
|
|
@@ -562,7 +568,7 @@ export class Node extends GObject.Object {
|
|
|
562
568
|
* @param node_type a #GFBGraphNode type #GType.
|
|
563
569
|
* @returns a #GFBGraphNode or %NULL.
|
|
564
570
|
*/
|
|
565
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
571
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
566
572
|
_init(config?: Node.ConstructorProperties): void
|
|
567
573
|
static error_quark(): GLib.Quark
|
|
568
574
|
}
|
|
@@ -638,13 +644,13 @@ export interface Photo extends Connectable, Json.Serializable {
|
|
|
638
644
|
*/
|
|
639
645
|
download_default_size(authorizer: Authorizer): Gio.InputStream
|
|
640
646
|
get_default_height(): number
|
|
641
|
-
get_default_source_uri(): string
|
|
647
|
+
get_default_source_uri(): string
|
|
642
648
|
get_default_width(): number
|
|
643
649
|
get_image_hires(): PhotoImage
|
|
644
650
|
get_image_near_height(height: number): PhotoImage
|
|
645
651
|
get_image_near_width(width: number): PhotoImage
|
|
646
652
|
get_images(): PhotoImage[]
|
|
647
|
-
get_name(): string
|
|
653
|
+
get_name(): string
|
|
648
654
|
|
|
649
655
|
// Conflicting methods
|
|
650
656
|
|
|
@@ -678,7 +684,7 @@ export interface Photo extends Connectable, Json.Serializable {
|
|
|
678
684
|
* @param property_name the name of the property to get
|
|
679
685
|
* @param value return location for the property value
|
|
680
686
|
*/
|
|
681
|
-
get_property(property_name: string
|
|
687
|
+
get_property(property_name: string, value: any): void
|
|
682
688
|
/**
|
|
683
689
|
* Gets a property of an object.
|
|
684
690
|
*
|
|
@@ -699,7 +705,7 @@ export interface Photo extends Connectable, Json.Serializable {
|
|
|
699
705
|
* @param property_name the name of the property to get
|
|
700
706
|
* @param value return location for the property value
|
|
701
707
|
*/
|
|
702
|
-
get_property(property_name: string
|
|
708
|
+
get_property(property_name: string, value: any): void
|
|
703
709
|
/**
|
|
704
710
|
* Calls the [vfunc`Json`.Serializable.set_property] implementation
|
|
705
711
|
* on the `JsonSerializable` instance, which will set the property
|
|
@@ -716,13 +722,13 @@ export interface Photo extends Connectable, Json.Serializable {
|
|
|
716
722
|
* @param property_name the name of the property to set
|
|
717
723
|
* @param value the value
|
|
718
724
|
*/
|
|
719
|
-
set_property(property_name: string
|
|
725
|
+
set_property(property_name: string, value: any): void
|
|
720
726
|
/**
|
|
721
727
|
* Sets a property on an object.
|
|
722
728
|
* @param property_name the name of the property to set
|
|
723
729
|
* @param value the value
|
|
724
730
|
*/
|
|
725
|
-
set_property(property_name: string
|
|
731
|
+
set_property(property_name: string, value: any): void
|
|
726
732
|
/**
|
|
727
733
|
* Calls the [vfunc`Json`.Serializable.get_property] implementation
|
|
728
734
|
* on the `JsonSerializable` instance, which will get the value of
|
|
@@ -824,7 +830,7 @@ export class Photo extends Node {
|
|
|
824
830
|
* @param id a const #gchar with the photo ID.
|
|
825
831
|
* @returns a new #GFBGraphPhoto; unref with g_object_unref()
|
|
826
832
|
*/
|
|
827
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
833
|
+
static new_from_id(authorizer: Authorizer, id: string): Photo
|
|
828
834
|
|
|
829
835
|
// Overloads of new_from_id
|
|
830
836
|
|
|
@@ -836,7 +842,7 @@ export class Photo extends Node {
|
|
|
836
842
|
* @param node_type a #GFBGraphNode type #GType.
|
|
837
843
|
* @returns a #GFBGraphNode or %NULL.
|
|
838
844
|
*/
|
|
839
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
845
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
840
846
|
_init(config?: Photo.ConstructorProperties): void
|
|
841
847
|
}
|
|
842
848
|
|
|
@@ -849,6 +855,7 @@ export module SimpleAuthorizer {
|
|
|
849
855
|
// Own constructor properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
850
856
|
|
|
851
857
|
access_token?: string | null
|
|
858
|
+
accessToken?: string | null
|
|
852
859
|
}
|
|
853
860
|
|
|
854
861
|
}
|
|
@@ -858,6 +865,7 @@ export interface SimpleAuthorizer extends Authorizer {
|
|
|
858
865
|
// Own properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
859
866
|
|
|
860
867
|
access_token: string | null
|
|
868
|
+
accessToken: string | null
|
|
861
869
|
|
|
862
870
|
// Own fields of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
863
871
|
|
|
@@ -891,7 +899,7 @@ export class SimpleAuthorizer extends GObject.Object {
|
|
|
891
899
|
* @param access_token a const `gchar`.
|
|
892
900
|
* @returns a #GFBGraphSimpleAuthorizer.
|
|
893
901
|
*/
|
|
894
|
-
constructor(access_token: string
|
|
902
|
+
constructor(access_token: string)
|
|
895
903
|
/**
|
|
896
904
|
* Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token.
|
|
897
905
|
* It's only a test authorizer, don't use in final code.
|
|
@@ -899,7 +907,7 @@ export class SimpleAuthorizer extends GObject.Object {
|
|
|
899
907
|
* @param access_token a const `gchar`.
|
|
900
908
|
* @returns a #GFBGraphSimpleAuthorizer.
|
|
901
909
|
*/
|
|
902
|
-
static new(access_token: string
|
|
910
|
+
static new(access_token: string): SimpleAuthorizer
|
|
903
911
|
_init(config?: SimpleAuthorizer.ConstructorProperties): void
|
|
904
912
|
}
|
|
905
913
|
|
|
@@ -971,12 +979,12 @@ export interface User {
|
|
|
971
979
|
* permission.
|
|
972
980
|
* @returns a const #gchar with the user email, or %NULL.
|
|
973
981
|
*/
|
|
974
|
-
get_email(): string
|
|
982
|
+
get_email(): string
|
|
975
983
|
/**
|
|
976
984
|
* Get the user full name.
|
|
977
985
|
* @returns a const #gchar with the user full name, or %NULL.
|
|
978
986
|
*/
|
|
979
|
-
get_name(): string
|
|
987
|
+
get_name(): string
|
|
980
988
|
|
|
981
989
|
// Class property signals of GFBGraph-0.2.GFBGraph.User
|
|
982
990
|
|
|
@@ -1042,7 +1050,7 @@ export class User extends Node {
|
|
|
1042
1050
|
* @param id a const #gchar with the user ID.
|
|
1043
1051
|
* @returns a new #GFBGraphUser; unref with g_object_unref()
|
|
1044
1052
|
*/
|
|
1045
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
1053
|
+
static new_from_id(authorizer: Authorizer, id: string): User
|
|
1046
1054
|
|
|
1047
1055
|
// Overloads of new_from_id
|
|
1048
1056
|
|
|
@@ -1054,7 +1062,7 @@ export class User extends Node {
|
|
|
1054
1062
|
* @param node_type a #GFBGraphNode type #GType.
|
|
1055
1063
|
* @returns a #GFBGraphNode or %NULL.
|
|
1056
1064
|
*/
|
|
1057
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
1065
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
1058
1066
|
_init(config?: User.ConstructorProperties): void
|
|
1059
1067
|
/**
|
|
1060
1068
|
* Retrieve the current user logged using the https://graph.facebook.com/me Graph API function.
|
|
@@ -1140,7 +1148,7 @@ export interface ConnectableInterface {
|
|
|
1140
1148
|
parent: GObject.TypeInterface
|
|
1141
1149
|
connections: GLib.HashTable
|
|
1142
1150
|
get_connection_post_params: (self: Connectable, node_type: GObject.GType) => GLib.HashTable
|
|
1143
|
-
parse_connected_data: (self: Connectable, payload: string
|
|
1151
|
+
parse_connected_data: (self: Connectable, payload: string) => Node[]
|
|
1144
1152
|
}
|
|
1145
1153
|
|
|
1146
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
|
|
|
@@ -247,6 +247,7 @@ module Album {
|
|
|
247
247
|
* The album name.
|
|
248
248
|
*/
|
|
249
249
|
name?: string | null
|
|
250
|
+
coverPhoto?: string | null
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
}
|
|
@@ -260,6 +261,7 @@ interface Album extends Connectable {
|
|
|
260
261
|
*/
|
|
261
262
|
count: number
|
|
262
263
|
cover_photo: string | null
|
|
264
|
+
coverPhoto: string | null
|
|
263
265
|
/**
|
|
264
266
|
* The album description given by the owner.
|
|
265
267
|
*/
|
|
@@ -276,19 +278,19 @@ interface Album extends Connectable {
|
|
|
276
278
|
// Owm methods of GFBGraph-0.2.GFBGraph.Album
|
|
277
279
|
|
|
278
280
|
get_count(): number
|
|
279
|
-
get_cover_photo_id(): string
|
|
280
|
-
get_description(): string
|
|
281
|
-
get_name(): string
|
|
281
|
+
get_cover_photo_id(): string
|
|
282
|
+
get_description(): string
|
|
283
|
+
get_name(): string
|
|
282
284
|
/**
|
|
283
285
|
* Sets the description for the `album`.
|
|
284
286
|
* @param description a const pointer to a #gchar.
|
|
285
287
|
*/
|
|
286
|
-
set_description(description: string
|
|
288
|
+
set_description(description: string): void
|
|
287
289
|
/**
|
|
288
290
|
* Sets the name for the `album`.
|
|
289
291
|
* @param name a const pointer to a #gchar.
|
|
290
292
|
*/
|
|
291
|
-
set_name(name: string
|
|
293
|
+
set_name(name: string): void
|
|
292
294
|
|
|
293
295
|
// Class property signals of GFBGraph-0.2.GFBGraph.Album
|
|
294
296
|
|
|
@@ -360,7 +362,7 @@ class Album extends Node {
|
|
|
360
362
|
* @param id a const #gchar with the album ID.
|
|
361
363
|
* @returns a new #GFBGraphAlbum; unref with g_object_unref()
|
|
362
364
|
*/
|
|
363
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
365
|
+
static new_from_id(authorizer: Authorizer, id: string): Album
|
|
364
366
|
|
|
365
367
|
// Overloads of new_from_id
|
|
366
368
|
|
|
@@ -372,7 +374,7 @@ class Album extends Node {
|
|
|
372
374
|
* @param node_type a #GFBGraphNode type #GType.
|
|
373
375
|
* @returns a #GFBGraphNode or %NULL.
|
|
374
376
|
*/
|
|
375
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
377
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
376
378
|
_init(config?: Album.ConstructorProperties): void
|
|
377
379
|
}
|
|
378
380
|
|
|
@@ -430,6 +432,8 @@ module Node {
|
|
|
430
432
|
*/
|
|
431
433
|
link?: string | null
|
|
432
434
|
updated_time?: string | null
|
|
435
|
+
createdTime?: string | null
|
|
436
|
+
updatedTime?: string | null
|
|
433
437
|
}
|
|
434
438
|
|
|
435
439
|
}
|
|
@@ -439,6 +443,7 @@ interface Node {
|
|
|
439
443
|
// Own properties of GFBGraph-0.2.GFBGraph.Node
|
|
440
444
|
|
|
441
445
|
created_time: string | null
|
|
446
|
+
createdTime: string | null
|
|
442
447
|
/**
|
|
443
448
|
* The node ID. All nodes have one of this.
|
|
444
449
|
*/
|
|
@@ -448,6 +453,7 @@ interface Node {
|
|
|
448
453
|
*/
|
|
449
454
|
link: string | null
|
|
450
455
|
updated_time: string | null
|
|
456
|
+
updatedTime: string | null
|
|
451
457
|
|
|
452
458
|
// Own fields of GFBGraph-0.2.GFBGraph.Node
|
|
453
459
|
|
|
@@ -495,24 +501,24 @@ interface Node {
|
|
|
495
501
|
* Gets a node created time.
|
|
496
502
|
* @returns an ISO 8601 encoded date when the node was initially published.
|
|
497
503
|
*/
|
|
498
|
-
get_created_time(): string
|
|
504
|
+
get_created_time(): string
|
|
499
505
|
/**
|
|
500
506
|
* Gets the Facebook Graph unique node ID.
|
|
501
507
|
* @returns the node ID.
|
|
502
508
|
*/
|
|
503
|
-
get_id(): string
|
|
504
|
-
get_link(): string
|
|
509
|
+
get_id(): string
|
|
510
|
+
get_link(): string
|
|
505
511
|
/**
|
|
506
512
|
* Gets a node updated time.
|
|
507
513
|
* @returns an ISO 8601 encoded date when the node was updated.
|
|
508
514
|
*/
|
|
509
|
-
get_updated_time(): string
|
|
515
|
+
get_updated_time(): string
|
|
510
516
|
/**
|
|
511
517
|
* Sets the ID for a node. Just useful when a new node is created
|
|
512
518
|
* and the Graph API returns the ID of the new created node.
|
|
513
519
|
* @param id a const pointer to a #gchar.
|
|
514
520
|
*/
|
|
515
|
-
set_id(id: string
|
|
521
|
+
set_id(id: string): void
|
|
516
522
|
|
|
517
523
|
// Class property signals of GFBGraph-0.2.GFBGraph.Node
|
|
518
524
|
|
|
@@ -564,7 +570,7 @@ class Node extends GObject.Object {
|
|
|
564
570
|
* @param node_type a #GFBGraphNode type #GType.
|
|
565
571
|
* @returns a #GFBGraphNode or %NULL.
|
|
566
572
|
*/
|
|
567
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
573
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
568
574
|
_init(config?: Node.ConstructorProperties): void
|
|
569
575
|
static error_quark(): GLib.Quark
|
|
570
576
|
}
|
|
@@ -640,13 +646,13 @@ interface Photo extends Connectable, Json.Serializable {
|
|
|
640
646
|
*/
|
|
641
647
|
download_default_size(authorizer: Authorizer): Gio.InputStream
|
|
642
648
|
get_default_height(): number
|
|
643
|
-
get_default_source_uri(): string
|
|
649
|
+
get_default_source_uri(): string
|
|
644
650
|
get_default_width(): number
|
|
645
651
|
get_image_hires(): PhotoImage
|
|
646
652
|
get_image_near_height(height: number): PhotoImage
|
|
647
653
|
get_image_near_width(width: number): PhotoImage
|
|
648
654
|
get_images(): PhotoImage[]
|
|
649
|
-
get_name(): string
|
|
655
|
+
get_name(): string
|
|
650
656
|
|
|
651
657
|
// Conflicting methods
|
|
652
658
|
|
|
@@ -680,7 +686,7 @@ interface Photo extends Connectable, Json.Serializable {
|
|
|
680
686
|
* @param property_name the name of the property to get
|
|
681
687
|
* @param value return location for the property value
|
|
682
688
|
*/
|
|
683
|
-
get_property(property_name: string
|
|
689
|
+
get_property(property_name: string, value: any): void
|
|
684
690
|
/**
|
|
685
691
|
* Gets a property of an object.
|
|
686
692
|
*
|
|
@@ -701,7 +707,7 @@ interface Photo extends Connectable, Json.Serializable {
|
|
|
701
707
|
* @param property_name the name of the property to get
|
|
702
708
|
* @param value return location for the property value
|
|
703
709
|
*/
|
|
704
|
-
get_property(property_name: string
|
|
710
|
+
get_property(property_name: string, value: any): void
|
|
705
711
|
/**
|
|
706
712
|
* Calls the [vfunc`Json`.Serializable.set_property] implementation
|
|
707
713
|
* on the `JsonSerializable` instance, which will set the property
|
|
@@ -718,13 +724,13 @@ interface Photo extends Connectable, Json.Serializable {
|
|
|
718
724
|
* @param property_name the name of the property to set
|
|
719
725
|
* @param value the value
|
|
720
726
|
*/
|
|
721
|
-
set_property(property_name: string
|
|
727
|
+
set_property(property_name: string, value: any): void
|
|
722
728
|
/**
|
|
723
729
|
* Sets a property on an object.
|
|
724
730
|
* @param property_name the name of the property to set
|
|
725
731
|
* @param value the value
|
|
726
732
|
*/
|
|
727
|
-
set_property(property_name: string
|
|
733
|
+
set_property(property_name: string, value: any): void
|
|
728
734
|
/**
|
|
729
735
|
* Calls the [vfunc`Json`.Serializable.get_property] implementation
|
|
730
736
|
* on the `JsonSerializable` instance, which will get the value of
|
|
@@ -826,7 +832,7 @@ class Photo extends Node {
|
|
|
826
832
|
* @param id a const #gchar with the photo ID.
|
|
827
833
|
* @returns a new #GFBGraphPhoto; unref with g_object_unref()
|
|
828
834
|
*/
|
|
829
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
835
|
+
static new_from_id(authorizer: Authorizer, id: string): Photo
|
|
830
836
|
|
|
831
837
|
// Overloads of new_from_id
|
|
832
838
|
|
|
@@ -838,7 +844,7 @@ class Photo extends Node {
|
|
|
838
844
|
* @param node_type a #GFBGraphNode type #GType.
|
|
839
845
|
* @returns a #GFBGraphNode or %NULL.
|
|
840
846
|
*/
|
|
841
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
847
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
842
848
|
_init(config?: Photo.ConstructorProperties): void
|
|
843
849
|
}
|
|
844
850
|
|
|
@@ -851,6 +857,7 @@ module SimpleAuthorizer {
|
|
|
851
857
|
// Own constructor properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
852
858
|
|
|
853
859
|
access_token?: string | null
|
|
860
|
+
accessToken?: string | null
|
|
854
861
|
}
|
|
855
862
|
|
|
856
863
|
}
|
|
@@ -860,6 +867,7 @@ interface SimpleAuthorizer extends Authorizer {
|
|
|
860
867
|
// Own properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
861
868
|
|
|
862
869
|
access_token: string | null
|
|
870
|
+
accessToken: string | null
|
|
863
871
|
|
|
864
872
|
// Own fields of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
865
873
|
|
|
@@ -893,7 +901,7 @@ class SimpleAuthorizer extends GObject.Object {
|
|
|
893
901
|
* @param access_token a const `gchar`.
|
|
894
902
|
* @returns a #GFBGraphSimpleAuthorizer.
|
|
895
903
|
*/
|
|
896
|
-
constructor(access_token: string
|
|
904
|
+
constructor(access_token: string)
|
|
897
905
|
/**
|
|
898
906
|
* Creates a new #GFBGraphAuthorizer to use with the GFBGraph library using the `access_token` as access token.
|
|
899
907
|
* It's only a test authorizer, don't use in final code.
|
|
@@ -901,7 +909,7 @@ class SimpleAuthorizer extends GObject.Object {
|
|
|
901
909
|
* @param access_token a const `gchar`.
|
|
902
910
|
* @returns a #GFBGraphSimpleAuthorizer.
|
|
903
911
|
*/
|
|
904
|
-
static new(access_token: string
|
|
912
|
+
static new(access_token: string): SimpleAuthorizer
|
|
905
913
|
_init(config?: SimpleAuthorizer.ConstructorProperties): void
|
|
906
914
|
}
|
|
907
915
|
|
|
@@ -973,12 +981,12 @@ interface User {
|
|
|
973
981
|
* permission.
|
|
974
982
|
* @returns a const #gchar with the user email, or %NULL.
|
|
975
983
|
*/
|
|
976
|
-
get_email(): string
|
|
984
|
+
get_email(): string
|
|
977
985
|
/**
|
|
978
986
|
* Get the user full name.
|
|
979
987
|
* @returns a const #gchar with the user full name, or %NULL.
|
|
980
988
|
*/
|
|
981
|
-
get_name(): string
|
|
989
|
+
get_name(): string
|
|
982
990
|
|
|
983
991
|
// Class property signals of GFBGraph-0.2.GFBGraph.User
|
|
984
992
|
|
|
@@ -1044,7 +1052,7 @@ class User extends Node {
|
|
|
1044
1052
|
* @param id a const #gchar with the user ID.
|
|
1045
1053
|
* @returns a new #GFBGraphUser; unref with g_object_unref()
|
|
1046
1054
|
*/
|
|
1047
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
1055
|
+
static new_from_id(authorizer: Authorizer, id: string): User
|
|
1048
1056
|
|
|
1049
1057
|
// Overloads of new_from_id
|
|
1050
1058
|
|
|
@@ -1056,7 +1064,7 @@ class User extends Node {
|
|
|
1056
1064
|
* @param node_type a #GFBGraphNode type #GType.
|
|
1057
1065
|
* @returns a #GFBGraphNode or %NULL.
|
|
1058
1066
|
*/
|
|
1059
|
-
static new_from_id(authorizer: Authorizer, id: string
|
|
1067
|
+
static new_from_id(authorizer: Authorizer, id: string, node_type: GObject.GType): Node
|
|
1060
1068
|
_init(config?: User.ConstructorProperties): void
|
|
1061
1069
|
/**
|
|
1062
1070
|
* Retrieve the current user logged using the https://graph.facebook.com/me Graph API function.
|
|
@@ -1142,7 +1150,7 @@ interface ConnectableInterface {
|
|
|
1142
1150
|
parent: GObject.TypeInterface
|
|
1143
1151
|
connections: GLib.HashTable
|
|
1144
1152
|
get_connection_post_params: (self: Connectable, node_type: GObject.GType) => GLib.HashTable
|
|
1145
|
-
parse_connected_data: (self: Connectable, payload: string
|
|
1153
|
+
parse_connected_data: (self: Connectable, payload: string) => Node[]
|
|
1146
1154
|
}
|
|
1147
1155
|
|
|
1148
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": "*"
|