@girs/telepathylogger-0.2 0.2.0-3.2.6 → 0.2.0-3.2.8

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/telepathylogger-0.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for TelepathyLogger-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for TelepathyLogger-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
9
9
 
10
10
 
11
11
  ## Install
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/telepathylogger-0.2",
3
- "version": "0.2.0-3.2.6",
3
+ "version": "0.2.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for TelepathyLogger-0.2, generated from library version 0.2.0",
5
5
  "type": "module",
6
6
  "module": "telepathylogger-0.2.js",
7
7
  "main": "telepathylogger-0.2.js",
8
8
  "exports": {
9
- "./ambient": "./telepathylogger-0.2-ambient.d.ts",
10
- "./import": "./telepathylogger-0.2-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./telepathylogger-0.2-ambient.d.ts",
11
+ "default": "./telepathylogger-0.2-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./telepathylogger-0.2-import.d.ts",
15
+ "default": "./telepathylogger-0.2-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./telepathylogger-0.2.d.ts",
@@ -25,11 +31,11 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit telepathylogger-0.2.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.6",
29
- "@girs/gjs": "^3.2.6",
30
- "@girs/glib-2.0": "^2.78.0-3.2.6",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
32
- "@girs/telepathyglib-0.12": "^0.12.0-3.2.6"
34
+ "@girs/gio-2.0": "^2.77.0-3.2.8",
35
+ "@girs/gjs": "^3.2.8",
36
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
37
+ "@girs/gobject-2.0": "^2.77.0-3.2.8",
38
+ "@girs/telepathyglib-0.12": "^0.12.0-3.2.8"
33
39
  },
34
40
  "devDependencies": {
35
41
  "typescript": "*"
@@ -46,7 +52,7 @@
46
52
  "license": "MIT",
47
53
  "repository": {
48
54
  "type": "git",
49
- "url": "git+https://github.com/gjsify/types.git"
55
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
50
56
  },
51
57
  "bugs": {
52
58
  "url": "https://github.com/gjsify/ts-for-gir/issues"
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
@@ -73,11 +73,8 @@ export module CallEvent {
73
73
 
74
74
  // Own constructor properties of TelepathyLogger-0.2.TelepathyLogger.CallEvent
75
75
 
76
- detailed_end_reason?: string | null
77
- duration?: number | null
78
- end_actor?: Entity | null
79
- end_reason?: number | null
80
76
  detailedEndReason?: string | null
77
+ duration?: number | null
81
78
  endActor?: Entity | null
82
79
  endReason?: number | null
83
80
  }
@@ -88,17 +85,14 @@ export interface CallEvent {
88
85
 
89
86
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.CallEvent
90
87
 
91
- readonly detailed_end_reason: string | null
92
88
  readonly detailedEndReason: string | null
93
89
  readonly duration: number
94
- readonly end_actor: Entity
95
90
  readonly endActor: Entity
96
- readonly end_reason: number
97
91
  readonly endReason: number
98
92
 
99
93
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.CallEvent
100
94
 
101
- get_detailed_end_reason(): string | null
95
+ get_detailed_end_reason(): string
102
96
  get_duration(): GLib.TimeSpan
103
97
  get_end_actor(): Entity
104
98
  get_end_reason(): TelepathyGLib.CallStateChangeReason
@@ -173,7 +167,7 @@ export module Entity {
173
167
  /**
174
168
  * The entity's avatar token
175
169
  */
176
- avatar_token?: string | null
170
+ avatarToken?: string | null
177
171
  /**
178
172
  * The entity's identifier
179
173
  */
@@ -182,10 +176,6 @@ export module Entity {
182
176
  * The entity's type (see #TplEntityType).
183
177
  */
184
178
  type?: number | null
185
- /**
186
- * The entity's avatar token
187
- */
188
- avatarToken?: string | null
189
179
  }
190
180
 
191
181
  }
@@ -198,10 +188,6 @@ export interface Entity {
198
188
  * The entity's alias
199
189
  */
200
190
  readonly alias: string | null
201
- /**
202
- * The entity's avatar token
203
- */
204
- readonly avatar_token: string | null
205
191
  /**
206
192
  * The entity's avatar token
207
193
  */
@@ -222,10 +208,10 @@ export interface Entity {
222
208
 
223
209
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.Entity
224
210
 
225
- get_alias(): string | null
226
- get_avatar_token(): string | null
211
+ get_alias(): string
212
+ get_avatar_token(): string
227
213
  get_entity_type(): EntityType
228
- get_identifier(): string | null
214
+ get_identifier(): string
229
215
 
230
216
  // Class property signals of TelepathyLogger-0.2.TelepathyLogger.Entity
231
217
 
@@ -261,9 +247,9 @@ export class Entity extends GObject.Object {
261
247
  // Constructors of TelepathyLogger-0.2.TelepathyLogger.Entity
262
248
 
263
249
  constructor(config?: Entity.ConstructorProperties)
264
- constructor(id: string | null, type: EntityType, alias: string | null, avatar_token: string | null)
265
- static new(id: string | null, type: EntityType, alias: string | null, avatar_token: string | null): Entity
266
- static new_from_room_id(room_id: string | null): Entity
250
+ constructor(id: string, type: EntityType, alias: string, avatar_token: string)
251
+ static new(id: string, type: EntityType, alias: string, avatar_token: string): Entity
252
+ static new_from_room_id(room_id: string): Entity
267
253
  static new_from_tp_contact(contact: TelepathyGLib.Contact, type: EntityType): Entity
268
254
  _init(config?: Entity.ConstructorProperties): void
269
255
  }
@@ -277,11 +263,10 @@ export module Event {
277
263
  // Own constructor properties of TelepathyLogger-0.2.TelepathyLogger.Event
278
264
 
279
265
  account?: TelepathyGLib.Account | null
280
- channel_path?: string | null
266
+ channelPath?: string | null
281
267
  receiver?: Entity | null
282
268
  sender?: Entity | null
283
269
  timestamp?: number | null
284
- channelPath?: string | null
285
270
  }
286
271
 
287
272
  }
@@ -291,9 +276,7 @@ export interface Event {
291
276
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.Event
292
277
 
293
278
  readonly account: TelepathyGLib.Account
294
- readonly account_path: string | null
295
279
  readonly accountPath: string | null
296
- readonly channel_path: string | null
297
280
  readonly channelPath: string | null
298
281
  readonly receiver: Entity
299
282
  readonly sender: Entity
@@ -316,7 +299,7 @@ export interface Event {
316
299
  * <!-- no more to say -->
317
300
  * @returns the path as the #TplEvent:account property
318
301
  */
319
- get_account_path(): string | null
302
+ get_account_path(): string
320
303
  get_receiver(): Entity
321
304
  get_sender(): Entity
322
305
  get_timestamp(): number
@@ -520,7 +503,7 @@ export interface LogManager {
520
503
  * @param type_mask event type filter see #TplEventTypeMask
521
504
  * @param callback a callback to call when the request is satisfied
522
505
  */
523
- search_async(text: string | null, type_mask: number, callback: Gio.AsyncReadyCallback<this> | null): void
506
+ search_async(text: string, type_mask: number, callback: Gio.AsyncReadyCallback<this> | null): void
524
507
 
525
508
  // Overloads of search_async
526
509
 
@@ -532,7 +515,7 @@ export interface LogManager {
532
515
  * @param type_mask event type filter see #TplEventTypeMask
533
516
  * @returns A Promise of: #TRUE if the operation was successful, otherwise #FALSE
534
517
  */
535
- search_async(text: string | null, type_mask: number): globalThis.Promise</* hits */ LogSearchHit[]>
518
+ search_async(text: string, type_mask: number): globalThis.Promise</* hits */ LogSearchHit[]>
536
519
  search_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* hits */ LogSearchHit[] ]
537
520
  /**
538
521
  * Create a #TplLogWalker to traverse all the events exchanged with `target`.
@@ -580,7 +563,6 @@ export module LogWalker {
580
563
  // Own constructor properties of TelepathyLogger-0.2.TelepathyLogger.LogWalker
581
564
 
582
565
  filter?: any | null
583
- filter_data?: any | null
584
566
  filterData?: any | null
585
567
  }
586
568
 
@@ -591,7 +573,6 @@ export interface LogWalker {
591
573
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.LogWalker
592
574
 
593
575
  readonly filter: any
594
- readonly filter_data: any
595
576
  readonly filterData: any
596
577
 
597
578
  // Own fields of TelepathyLogger-0.2.TelepathyLogger.LogWalker
@@ -692,12 +673,8 @@ export module TextEvent {
692
673
 
693
674
  // Own constructor properties of TelepathyLogger-0.2.TelepathyLogger.TextEvent
694
675
 
695
- edit_timestamp?: number | null
696
- message?: string | null
697
- message_token?: string | null
698
- message_type?: number | null
699
- supersedes_token?: string | null
700
676
  editTimestamp?: number | null
677
+ message?: string | null
701
678
  messageToken?: string | null
702
679
  messageType?: number | null
703
680
  supersedesToken?: string | null
@@ -709,24 +686,20 @@ export interface TextEvent {
709
686
 
710
687
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.TextEvent
711
688
 
712
- readonly edit_timestamp: number
713
689
  readonly editTimestamp: number
714
690
  readonly message: string | null
715
- readonly message_token: string | null
716
691
  readonly messageToken: string | null
717
- readonly message_type: number
718
692
  readonly messageType: number
719
- readonly supersedes_token: string | null
720
693
  readonly supersedesToken: string | null
721
694
 
722
695
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.TextEvent
723
696
 
724
697
  get_edit_timestamp(): number
725
- get_message(): string | null
726
- get_message_token(): string | null
698
+ get_message(): string
699
+ get_message_token(): string
727
700
  get_message_type(): TelepathyGLib.ChannelTextMessageType
728
701
  get_supersedes(): TextEvent[]
729
- get_supersedes_token(): string | null
702
+ get_supersedes_token(): string
730
703
 
731
704
  // Class property signals of TelepathyLogger-0.2.TelepathyLogger.TextEvent
732
705
 
@@ -75,11 +75,8 @@ module CallEvent {
75
75
 
76
76
  // Own constructor properties of TelepathyLogger-0.2.TelepathyLogger.CallEvent
77
77
 
78
- detailed_end_reason?: string | null
79
- duration?: number | null
80
- end_actor?: Entity | null
81
- end_reason?: number | null
82
78
  detailedEndReason?: string | null
79
+ duration?: number | null
83
80
  endActor?: Entity | null
84
81
  endReason?: number | null
85
82
  }
@@ -90,17 +87,14 @@ interface CallEvent {
90
87
 
91
88
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.CallEvent
92
89
 
93
- readonly detailed_end_reason: string | null
94
90
  readonly detailedEndReason: string | null
95
91
  readonly duration: number
96
- readonly end_actor: Entity
97
92
  readonly endActor: Entity
98
- readonly end_reason: number
99
93
  readonly endReason: number
100
94
 
101
95
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.CallEvent
102
96
 
103
- get_detailed_end_reason(): string | null
97
+ get_detailed_end_reason(): string
104
98
  get_duration(): GLib.TimeSpan
105
99
  get_end_actor(): Entity
106
100
  get_end_reason(): TelepathyGLib.CallStateChangeReason
@@ -175,7 +169,7 @@ module Entity {
175
169
  /**
176
170
  * The entity's avatar token
177
171
  */
178
- avatar_token?: string | null
172
+ avatarToken?: string | null
179
173
  /**
180
174
  * The entity's identifier
181
175
  */
@@ -184,10 +178,6 @@ module Entity {
184
178
  * The entity's type (see #TplEntityType).
185
179
  */
186
180
  type?: number | null
187
- /**
188
- * The entity's avatar token
189
- */
190
- avatarToken?: string | null
191
181
  }
192
182
 
193
183
  }
@@ -200,10 +190,6 @@ interface Entity {
200
190
  * The entity's alias
201
191
  */
202
192
  readonly alias: string | null
203
- /**
204
- * The entity's avatar token
205
- */
206
- readonly avatar_token: string | null
207
193
  /**
208
194
  * The entity's avatar token
209
195
  */
@@ -224,10 +210,10 @@ interface Entity {
224
210
 
225
211
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.Entity
226
212
 
227
- get_alias(): string | null
228
- get_avatar_token(): string | null
213
+ get_alias(): string
214
+ get_avatar_token(): string
229
215
  get_entity_type(): EntityType
230
- get_identifier(): string | null
216
+ get_identifier(): string
231
217
 
232
218
  // Class property signals of TelepathyLogger-0.2.TelepathyLogger.Entity
233
219
 
@@ -263,9 +249,9 @@ class Entity extends GObject.Object {
263
249
  // Constructors of TelepathyLogger-0.2.TelepathyLogger.Entity
264
250
 
265
251
  constructor(config?: Entity.ConstructorProperties)
266
- constructor(id: string | null, type: EntityType, alias: string | null, avatar_token: string | null)
267
- static new(id: string | null, type: EntityType, alias: string | null, avatar_token: string | null): Entity
268
- static new_from_room_id(room_id: string | null): Entity
252
+ constructor(id: string, type: EntityType, alias: string, avatar_token: string)
253
+ static new(id: string, type: EntityType, alias: string, avatar_token: string): Entity
254
+ static new_from_room_id(room_id: string): Entity
269
255
  static new_from_tp_contact(contact: TelepathyGLib.Contact, type: EntityType): Entity
270
256
  _init(config?: Entity.ConstructorProperties): void
271
257
  }
@@ -279,11 +265,10 @@ module Event {
279
265
  // Own constructor properties of TelepathyLogger-0.2.TelepathyLogger.Event
280
266
 
281
267
  account?: TelepathyGLib.Account | null
282
- channel_path?: string | null
268
+ channelPath?: string | null
283
269
  receiver?: Entity | null
284
270
  sender?: Entity | null
285
271
  timestamp?: number | null
286
- channelPath?: string | null
287
272
  }
288
273
 
289
274
  }
@@ -293,9 +278,7 @@ interface Event {
293
278
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.Event
294
279
 
295
280
  readonly account: TelepathyGLib.Account
296
- readonly account_path: string | null
297
281
  readonly accountPath: string | null
298
- readonly channel_path: string | null
299
282
  readonly channelPath: string | null
300
283
  readonly receiver: Entity
301
284
  readonly sender: Entity
@@ -318,7 +301,7 @@ interface Event {
318
301
  * <!-- no more to say -->
319
302
  * @returns the path as the #TplEvent:account property
320
303
  */
321
- get_account_path(): string | null
304
+ get_account_path(): string
322
305
  get_receiver(): Entity
323
306
  get_sender(): Entity
324
307
  get_timestamp(): number
@@ -522,7 +505,7 @@ interface LogManager {
522
505
  * @param type_mask event type filter see #TplEventTypeMask
523
506
  * @param callback a callback to call when the request is satisfied
524
507
  */
525
- search_async(text: string | null, type_mask: number, callback: Gio.AsyncReadyCallback<this> | null): void
508
+ search_async(text: string, type_mask: number, callback: Gio.AsyncReadyCallback<this> | null): void
526
509
 
527
510
  // Overloads of search_async
528
511
 
@@ -534,7 +517,7 @@ interface LogManager {
534
517
  * @param type_mask event type filter see #TplEventTypeMask
535
518
  * @returns A Promise of: #TRUE if the operation was successful, otherwise #FALSE
536
519
  */
537
- search_async(text: string | null, type_mask: number): globalThis.Promise</* hits */ LogSearchHit[]>
520
+ search_async(text: string, type_mask: number): globalThis.Promise</* hits */ LogSearchHit[]>
538
521
  search_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* hits */ LogSearchHit[] ]
539
522
  /**
540
523
  * Create a #TplLogWalker to traverse all the events exchanged with `target`.
@@ -582,7 +565,6 @@ module LogWalker {
582
565
  // Own constructor properties of TelepathyLogger-0.2.TelepathyLogger.LogWalker
583
566
 
584
567
  filter?: any | null
585
- filter_data?: any | null
586
568
  filterData?: any | null
587
569
  }
588
570
 
@@ -593,7 +575,6 @@ interface LogWalker {
593
575
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.LogWalker
594
576
 
595
577
  readonly filter: any
596
- readonly filter_data: any
597
578
  readonly filterData: any
598
579
 
599
580
  // Own fields of TelepathyLogger-0.2.TelepathyLogger.LogWalker
@@ -694,12 +675,8 @@ module TextEvent {
694
675
 
695
676
  // Own constructor properties of TelepathyLogger-0.2.TelepathyLogger.TextEvent
696
677
 
697
- edit_timestamp?: number | null
698
- message?: string | null
699
- message_token?: string | null
700
- message_type?: number | null
701
- supersedes_token?: string | null
702
678
  editTimestamp?: number | null
679
+ message?: string | null
703
680
  messageToken?: string | null
704
681
  messageType?: number | null
705
682
  supersedesToken?: string | null
@@ -711,24 +688,20 @@ interface TextEvent {
711
688
 
712
689
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.TextEvent
713
690
 
714
- readonly edit_timestamp: number
715
691
  readonly editTimestamp: number
716
692
  readonly message: string | null
717
- readonly message_token: string | null
718
693
  readonly messageToken: string | null
719
- readonly message_type: number
720
694
  readonly messageType: number
721
- readonly supersedes_token: string | null
722
695
  readonly supersedesToken: string | null
723
696
 
724
697
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.TextEvent
725
698
 
726
699
  get_edit_timestamp(): number
727
- get_message(): string | null
728
- get_message_token(): string | null
700
+ get_message(): string
701
+ get_message_token(): string
729
702
  get_message_type(): TelepathyGLib.ChannelTextMessageType
730
703
  get_supersedes(): TextEvent[]
731
- get_supersedes_token(): string | null
704
+ get_supersedes_token(): string
732
705
 
733
706
  // Class property signals of TelepathyLogger-0.2.TelepathyLogger.TextEvent
734
707