@girs/notify-0.7 0.8.3-3.2.6 → 0.8.3-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/notify-0.7.d.cts +15 -15
- package/notify-0.7.d.ts +15 -15
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Notify-0.7, generated from library version 0.8.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Notify-0.7, generated from library version 0.8.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
libnotify is a library that sends desktop notifications to a notification daemon, as defined in the Desktop Notifications spec. These notifications can be used to inform the user about an event or display some form of information without getting in the user's way.
|
|
11
11
|
|
package/notify-0.7.d.cts
CHANGED
|
@@ -87,7 +87,7 @@ export const VERSION_MINOR: number
|
|
|
87
87
|
* Gets the application name registered.
|
|
88
88
|
* @returns The registered application name, passed to [func@init].
|
|
89
89
|
*/
|
|
90
|
-
export function get_app_name(): string
|
|
90
|
+
export function get_app_name(): string
|
|
91
91
|
/**
|
|
92
92
|
* Queries the server capabilities.
|
|
93
93
|
*
|
|
@@ -104,7 +104,7 @@ export function get_server_caps(): string[]
|
|
|
104
104
|
* that it is compliant with.
|
|
105
105
|
* @returns %TRUE if successful, and the variables passed will be set, %FALSE on error. The returned strings must be freed with g_free
|
|
106
106
|
*/
|
|
107
|
-
export function get_server_info(): [ /* returnType */ boolean, /* ret_name */ string
|
|
107
|
+
export function get_server_info(): [ /* returnType */ boolean, /* ret_name */ string, /* ret_vendor */ string, /* ret_version */ string, /* ret_spec_version */ string ]
|
|
108
108
|
/**
|
|
109
109
|
* Initialized libnotify. This must be called before any other functions.
|
|
110
110
|
*
|
|
@@ -124,7 +124,7 @@ export function is_initted(): boolean
|
|
|
124
124
|
* Sets the application name.
|
|
125
125
|
* @param app_name The name of the application
|
|
126
126
|
*/
|
|
127
|
-
export function set_app_name(app_name: string
|
|
127
|
+
export function set_app_name(app_name: string): void
|
|
128
128
|
/**
|
|
129
129
|
* Uninitializes libnotify.
|
|
130
130
|
*
|
|
@@ -247,7 +247,7 @@ export interface Notification {
|
|
|
247
247
|
* @param label The human-readable action label.
|
|
248
248
|
* @param callback The action's callback function.
|
|
249
249
|
*/
|
|
250
|
-
add_action(action: string
|
|
250
|
+
add_action(action: string, label: string, callback: ActionCallback): void
|
|
251
251
|
/**
|
|
252
252
|
* Clears all actions from the notification.
|
|
253
253
|
*/
|
|
@@ -296,7 +296,7 @@ export interface Notification {
|
|
|
296
296
|
* a certain way.
|
|
297
297
|
* @param category The category.
|
|
298
298
|
*/
|
|
299
|
-
set_category(category: string
|
|
299
|
+
set_category(category: string): void
|
|
300
300
|
/**
|
|
301
301
|
* Sets a hint for `key` with value `value`.
|
|
302
302
|
*
|
|
@@ -306,13 +306,13 @@ export interface Notification {
|
|
|
306
306
|
* @param key the hint key
|
|
307
307
|
* @param value the hint value
|
|
308
308
|
*/
|
|
309
|
-
set_hint(key: string
|
|
309
|
+
set_hint(key: string, value: GLib.Variant | null): void
|
|
310
310
|
/**
|
|
311
311
|
* Sets a hint with a byte value.
|
|
312
312
|
* @param key The hint.
|
|
313
313
|
* @param value The hint's value.
|
|
314
314
|
*/
|
|
315
|
-
set_hint_byte(key: string
|
|
315
|
+
set_hint_byte(key: string, value: number): void
|
|
316
316
|
/**
|
|
317
317
|
* Sets a hint with a byte array value.
|
|
318
318
|
*
|
|
@@ -320,31 +320,31 @@ export interface Notification {
|
|
|
320
320
|
* @param key The hint.
|
|
321
321
|
* @param value The hint's value.
|
|
322
322
|
*/
|
|
323
|
-
set_hint_byte_array(key: string
|
|
323
|
+
set_hint_byte_array(key: string, value: Uint8Array): void
|
|
324
324
|
/**
|
|
325
325
|
* Sets a hint with a double value.
|
|
326
326
|
* @param key The hint.
|
|
327
327
|
* @param value The hint's value.
|
|
328
328
|
*/
|
|
329
|
-
set_hint_double(key: string
|
|
329
|
+
set_hint_double(key: string, value: number): void
|
|
330
330
|
/**
|
|
331
331
|
* Sets a hint with a 32-bit integer value.
|
|
332
332
|
* @param key The hint.
|
|
333
333
|
* @param value The hint's value.
|
|
334
334
|
*/
|
|
335
|
-
set_hint_int32(key: string
|
|
335
|
+
set_hint_int32(key: string, value: number): void
|
|
336
336
|
/**
|
|
337
337
|
* Sets a hint with a string value.
|
|
338
338
|
* @param key The hint.
|
|
339
339
|
* @param value The hint's value.
|
|
340
340
|
*/
|
|
341
|
-
set_hint_string(key: string
|
|
341
|
+
set_hint_string(key: string, value: string): void
|
|
342
342
|
/**
|
|
343
343
|
* Sets a hint with an unsigned 32-bit integer value.
|
|
344
344
|
* @param key The hint.
|
|
345
345
|
* @param value The hint's value.
|
|
346
346
|
*/
|
|
347
|
-
set_hint_uint32(key: string
|
|
347
|
+
set_hint_uint32(key: string, value: number): void
|
|
348
348
|
/**
|
|
349
349
|
* Sets the icon in the notification from a #GdkPixbuf.
|
|
350
350
|
* @param icon The icon.
|
|
@@ -385,7 +385,7 @@ export interface Notification {
|
|
|
385
385
|
* @param icon The optional icon theme icon name or filename.
|
|
386
386
|
* @returns %TRUE, unless an invalid parameter was passed.
|
|
387
387
|
*/
|
|
388
|
-
update(summary: string
|
|
388
|
+
update(summary: string, body: string | null, icon: string | null): boolean
|
|
389
389
|
|
|
390
390
|
// Own virtual methods of Notify-0.7.Notify.Notification
|
|
391
391
|
|
|
@@ -454,7 +454,7 @@ export class Notification extends GObject.Object {
|
|
|
454
454
|
* @param icon The optional icon theme icon name or filename.
|
|
455
455
|
* @returns The new #NotifyNotification.
|
|
456
456
|
*/
|
|
457
|
-
constructor(summary: string
|
|
457
|
+
constructor(summary: string, body: string | null, icon: string | null)
|
|
458
458
|
/**
|
|
459
459
|
* Creates a new #NotifyNotification.
|
|
460
460
|
*
|
|
@@ -465,7 +465,7 @@ export class Notification extends GObject.Object {
|
|
|
465
465
|
* @param icon The optional icon theme icon name or filename.
|
|
466
466
|
* @returns The new #NotifyNotification.
|
|
467
467
|
*/
|
|
468
|
-
static new(summary: string
|
|
468
|
+
static new(summary: string, body: string | null, icon: string | null): Notification
|
|
469
469
|
_init(config?: Notification.ConstructorProperties): void
|
|
470
470
|
}
|
|
471
471
|
|
package/notify-0.7.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ const VERSION_MINOR: number
|
|
|
89
89
|
* Gets the application name registered.
|
|
90
90
|
* @returns The registered application name, passed to [func@init].
|
|
91
91
|
*/
|
|
92
|
-
function get_app_name(): string
|
|
92
|
+
function get_app_name(): string
|
|
93
93
|
/**
|
|
94
94
|
* Queries the server capabilities.
|
|
95
95
|
*
|
|
@@ -106,7 +106,7 @@ function get_server_caps(): string[]
|
|
|
106
106
|
* that it is compliant with.
|
|
107
107
|
* @returns %TRUE if successful, and the variables passed will be set, %FALSE on error. The returned strings must be freed with g_free
|
|
108
108
|
*/
|
|
109
|
-
function get_server_info(): [ /* returnType */ boolean, /* ret_name */ string
|
|
109
|
+
function get_server_info(): [ /* returnType */ boolean, /* ret_name */ string, /* ret_vendor */ string, /* ret_version */ string, /* ret_spec_version */ string ]
|
|
110
110
|
/**
|
|
111
111
|
* Initialized libnotify. This must be called before any other functions.
|
|
112
112
|
*
|
|
@@ -126,7 +126,7 @@ function is_initted(): boolean
|
|
|
126
126
|
* Sets the application name.
|
|
127
127
|
* @param app_name The name of the application
|
|
128
128
|
*/
|
|
129
|
-
function set_app_name(app_name: string
|
|
129
|
+
function set_app_name(app_name: string): void
|
|
130
130
|
/**
|
|
131
131
|
* Uninitializes libnotify.
|
|
132
132
|
*
|
|
@@ -249,7 +249,7 @@ interface Notification {
|
|
|
249
249
|
* @param label The human-readable action label.
|
|
250
250
|
* @param callback The action's callback function.
|
|
251
251
|
*/
|
|
252
|
-
add_action(action: string
|
|
252
|
+
add_action(action: string, label: string, callback: ActionCallback): void
|
|
253
253
|
/**
|
|
254
254
|
* Clears all actions from the notification.
|
|
255
255
|
*/
|
|
@@ -298,7 +298,7 @@ interface Notification {
|
|
|
298
298
|
* a certain way.
|
|
299
299
|
* @param category The category.
|
|
300
300
|
*/
|
|
301
|
-
set_category(category: string
|
|
301
|
+
set_category(category: string): void
|
|
302
302
|
/**
|
|
303
303
|
* Sets a hint for `key` with value `value`.
|
|
304
304
|
*
|
|
@@ -308,13 +308,13 @@ interface Notification {
|
|
|
308
308
|
* @param key the hint key
|
|
309
309
|
* @param value the hint value
|
|
310
310
|
*/
|
|
311
|
-
set_hint(key: string
|
|
311
|
+
set_hint(key: string, value: GLib.Variant | null): void
|
|
312
312
|
/**
|
|
313
313
|
* Sets a hint with a byte value.
|
|
314
314
|
* @param key The hint.
|
|
315
315
|
* @param value The hint's value.
|
|
316
316
|
*/
|
|
317
|
-
set_hint_byte(key: string
|
|
317
|
+
set_hint_byte(key: string, value: number): void
|
|
318
318
|
/**
|
|
319
319
|
* Sets a hint with a byte array value.
|
|
320
320
|
*
|
|
@@ -322,31 +322,31 @@ interface Notification {
|
|
|
322
322
|
* @param key The hint.
|
|
323
323
|
* @param value The hint's value.
|
|
324
324
|
*/
|
|
325
|
-
set_hint_byte_array(key: string
|
|
325
|
+
set_hint_byte_array(key: string, value: Uint8Array): void
|
|
326
326
|
/**
|
|
327
327
|
* Sets a hint with a double value.
|
|
328
328
|
* @param key The hint.
|
|
329
329
|
* @param value The hint's value.
|
|
330
330
|
*/
|
|
331
|
-
set_hint_double(key: string
|
|
331
|
+
set_hint_double(key: string, value: number): void
|
|
332
332
|
/**
|
|
333
333
|
* Sets a hint with a 32-bit integer value.
|
|
334
334
|
* @param key The hint.
|
|
335
335
|
* @param value The hint's value.
|
|
336
336
|
*/
|
|
337
|
-
set_hint_int32(key: string
|
|
337
|
+
set_hint_int32(key: string, value: number): void
|
|
338
338
|
/**
|
|
339
339
|
* Sets a hint with a string value.
|
|
340
340
|
* @param key The hint.
|
|
341
341
|
* @param value The hint's value.
|
|
342
342
|
*/
|
|
343
|
-
set_hint_string(key: string
|
|
343
|
+
set_hint_string(key: string, value: string): void
|
|
344
344
|
/**
|
|
345
345
|
* Sets a hint with an unsigned 32-bit integer value.
|
|
346
346
|
* @param key The hint.
|
|
347
347
|
* @param value The hint's value.
|
|
348
348
|
*/
|
|
349
|
-
set_hint_uint32(key: string
|
|
349
|
+
set_hint_uint32(key: string, value: number): void
|
|
350
350
|
/**
|
|
351
351
|
* Sets the icon in the notification from a #GdkPixbuf.
|
|
352
352
|
* @param icon The icon.
|
|
@@ -387,7 +387,7 @@ interface Notification {
|
|
|
387
387
|
* @param icon The optional icon theme icon name or filename.
|
|
388
388
|
* @returns %TRUE, unless an invalid parameter was passed.
|
|
389
389
|
*/
|
|
390
|
-
update(summary: string
|
|
390
|
+
update(summary: string, body: string | null, icon: string | null): boolean
|
|
391
391
|
|
|
392
392
|
// Own virtual methods of Notify-0.7.Notify.Notification
|
|
393
393
|
|
|
@@ -456,7 +456,7 @@ class Notification extends GObject.Object {
|
|
|
456
456
|
* @param icon The optional icon theme icon name or filename.
|
|
457
457
|
* @returns The new #NotifyNotification.
|
|
458
458
|
*/
|
|
459
|
-
constructor(summary: string
|
|
459
|
+
constructor(summary: string, body: string | null, icon: string | null)
|
|
460
460
|
/**
|
|
461
461
|
* Creates a new #NotifyNotification.
|
|
462
462
|
*
|
|
@@ -467,7 +467,7 @@ class Notification extends GObject.Object {
|
|
|
467
467
|
* @param icon The optional icon theme icon name or filename.
|
|
468
468
|
* @returns The new #NotifyNotification.
|
|
469
469
|
*/
|
|
470
|
-
static new(summary: string
|
|
470
|
+
static new(summary: string, body: string | null, icon: string | null): Notification
|
|
471
471
|
_init(config?: Notification.ConstructorProperties): void
|
|
472
472
|
}
|
|
473
473
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/notify-0.7",
|
|
3
|
-
"version": "0.8.3-3.2.
|
|
3
|
+
"version": "0.8.3-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Notify-0.7, generated from library version 0.8.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "notify-0.7.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit notify-0.7.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
29
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gjs": "^3.2.
|
|
31
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
33
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
|
|
29
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
30
|
+
"@girs/gjs": "^3.2.7",
|
|
31
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
32
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.7",
|
|
33
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"typescript": "*"
|