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

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.4.
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.
9
9
 
10
10
 
11
11
  ## Install
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
81
81
  const TelepathyLogger = imports.gi.TelepathyLogger;
82
82
  ```
83
83
 
84
+
85
+ ### ESM vs. CommonJS
86
+
87
+ GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
88
+
89
+ In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
90
+
91
+ On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
92
+
93
+ This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
94
+
95
+ Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
96
+
84
97
  ### Bundle
85
98
 
86
99
  Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/telepathylogger-0.2",
3
- "version": "0.2.0-3.2.4",
3
+ "version": "0.2.0-3.2.6",
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",
@@ -25,11 +25,11 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit telepathylogger-0.2.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.4",
29
- "@girs/gjs": "^3.2.4",
30
- "@girs/glib-2.0": "^2.78.0-3.2.4",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.4",
32
- "@girs/telepathyglib-0.12": "^0.12.0-3.2.4"
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"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "*"
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  declare module 'gi://TelepathyLogger?version=0.2' {
4
3
  import TelepathyLogger02 from '@girs/telepathylogger-0.2';
5
4
  export default TelepathyLogger02;
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import TelepathyLogger02 from '@girs/telepathylogger-0.2';
4
3
 
5
4
  declare global {
@@ -77,6 +77,9 @@ export module CallEvent {
77
77
  duration?: number | null
78
78
  end_actor?: Entity | null
79
79
  end_reason?: number | null
80
+ detailedEndReason?: string | null
81
+ endActor?: Entity | null
82
+ endReason?: number | null
80
83
  }
81
84
 
82
85
  }
@@ -86,9 +89,12 @@ export interface CallEvent {
86
89
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.CallEvent
87
90
 
88
91
  readonly detailed_end_reason: string | null
92
+ readonly detailedEndReason: string | null
89
93
  readonly duration: number
90
94
  readonly end_actor: Entity
95
+ readonly endActor: Entity
91
96
  readonly end_reason: number
97
+ readonly endReason: number
92
98
 
93
99
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.CallEvent
94
100
 
@@ -176,6 +182,10 @@ export module Entity {
176
182
  * The entity's type (see #TplEntityType).
177
183
  */
178
184
  type?: number | null
185
+ /**
186
+ * The entity's avatar token
187
+ */
188
+ avatarToken?: string | null
179
189
  }
180
190
 
181
191
  }
@@ -192,6 +202,10 @@ export interface Entity {
192
202
  * The entity's avatar token
193
203
  */
194
204
  readonly avatar_token: string | null
205
+ /**
206
+ * The entity's avatar token
207
+ */
208
+ readonly avatarToken: string | null
195
209
  /**
196
210
  * The entity's identifier
197
211
  */
@@ -267,6 +281,7 @@ export module Event {
267
281
  receiver?: Entity | null
268
282
  sender?: Entity | null
269
283
  timestamp?: number | null
284
+ channelPath?: string | null
270
285
  }
271
286
 
272
287
  }
@@ -277,7 +292,9 @@ export interface Event {
277
292
 
278
293
  readonly account: TelepathyGLib.Account
279
294
  readonly account_path: string | null
295
+ readonly accountPath: string | null
280
296
  readonly channel_path: string | null
297
+ readonly channelPath: string | null
281
298
  readonly receiver: Entity
282
299
  readonly sender: Entity
283
300
  readonly timestamp: number
@@ -564,6 +581,7 @@ export module LogWalker {
564
581
 
565
582
  filter?: any | null
566
583
  filter_data?: any | null
584
+ filterData?: any | null
567
585
  }
568
586
 
569
587
  }
@@ -574,6 +592,7 @@ export interface LogWalker {
574
592
 
575
593
  readonly filter: any
576
594
  readonly filter_data: any
595
+ readonly filterData: any
577
596
 
578
597
  // Own fields of TelepathyLogger-0.2.TelepathyLogger.LogWalker
579
598
 
@@ -678,6 +697,10 @@ export module TextEvent {
678
697
  message_token?: string | null
679
698
  message_type?: number | null
680
699
  supersedes_token?: string | null
700
+ editTimestamp?: number | null
701
+ messageToken?: string | null
702
+ messageType?: number | null
703
+ supersedesToken?: string | null
681
704
  }
682
705
 
683
706
  }
@@ -687,10 +710,14 @@ export interface TextEvent {
687
710
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.TextEvent
688
711
 
689
712
  readonly edit_timestamp: number
713
+ readonly editTimestamp: number
690
714
  readonly message: string | null
691
715
  readonly message_token: string | null
716
+ readonly messageToken: string | null
692
717
  readonly message_type: number
718
+ readonly messageType: number
693
719
  readonly supersedes_token: string | null
720
+ readonly supersedesToken: string | null
694
721
 
695
722
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.TextEvent
696
723
 
@@ -79,6 +79,9 @@ module CallEvent {
79
79
  duration?: number | null
80
80
  end_actor?: Entity | null
81
81
  end_reason?: number | null
82
+ detailedEndReason?: string | null
83
+ endActor?: Entity | null
84
+ endReason?: number | null
82
85
  }
83
86
 
84
87
  }
@@ -88,9 +91,12 @@ interface CallEvent {
88
91
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.CallEvent
89
92
 
90
93
  readonly detailed_end_reason: string | null
94
+ readonly detailedEndReason: string | null
91
95
  readonly duration: number
92
96
  readonly end_actor: Entity
97
+ readonly endActor: Entity
93
98
  readonly end_reason: number
99
+ readonly endReason: number
94
100
 
95
101
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.CallEvent
96
102
 
@@ -178,6 +184,10 @@ module Entity {
178
184
  * The entity's type (see #TplEntityType).
179
185
  */
180
186
  type?: number | null
187
+ /**
188
+ * The entity's avatar token
189
+ */
190
+ avatarToken?: string | null
181
191
  }
182
192
 
183
193
  }
@@ -194,6 +204,10 @@ interface Entity {
194
204
  * The entity's avatar token
195
205
  */
196
206
  readonly avatar_token: string | null
207
+ /**
208
+ * The entity's avatar token
209
+ */
210
+ readonly avatarToken: string | null
197
211
  /**
198
212
  * The entity's identifier
199
213
  */
@@ -269,6 +283,7 @@ module Event {
269
283
  receiver?: Entity | null
270
284
  sender?: Entity | null
271
285
  timestamp?: number | null
286
+ channelPath?: string | null
272
287
  }
273
288
 
274
289
  }
@@ -279,7 +294,9 @@ interface Event {
279
294
 
280
295
  readonly account: TelepathyGLib.Account
281
296
  readonly account_path: string | null
297
+ readonly accountPath: string | null
282
298
  readonly channel_path: string | null
299
+ readonly channelPath: string | null
283
300
  readonly receiver: Entity
284
301
  readonly sender: Entity
285
302
  readonly timestamp: number
@@ -566,6 +583,7 @@ module LogWalker {
566
583
 
567
584
  filter?: any | null
568
585
  filter_data?: any | null
586
+ filterData?: any | null
569
587
  }
570
588
 
571
589
  }
@@ -576,6 +594,7 @@ interface LogWalker {
576
594
 
577
595
  readonly filter: any
578
596
  readonly filter_data: any
597
+ readonly filterData: any
579
598
 
580
599
  // Own fields of TelepathyLogger-0.2.TelepathyLogger.LogWalker
581
600
 
@@ -680,6 +699,10 @@ module TextEvent {
680
699
  message_token?: string | null
681
700
  message_type?: number | null
682
701
  supersedes_token?: string | null
702
+ editTimestamp?: number | null
703
+ messageToken?: string | null
704
+ messageType?: number | null
705
+ supersedesToken?: string | null
683
706
  }
684
707
 
685
708
  }
@@ -689,10 +712,14 @@ interface TextEvent {
689
712
  // Own properties of TelepathyLogger-0.2.TelepathyLogger.TextEvent
690
713
 
691
714
  readonly edit_timestamp: number
715
+ readonly editTimestamp: number
692
716
  readonly message: string | null
693
717
  readonly message_token: string | null
718
+ readonly messageToken: string | null
694
719
  readonly message_type: number
720
+ readonly messageType: number
695
721
  readonly supersedes_token: string | null
722
+ readonly supersedesToken: string | null
696
723
 
697
724
  // Owm methods of TelepathyLogger-0.2.TelepathyLogger.TextEvent
698
725