@girs/notify-0.7 0.8.3-3.2.6 → 0.8.3-3.2.9
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-ambient.js +2 -0
- package/notify-0.7-import.js +3 -0
- package/notify-0.7.d.cts +17 -39
- package/notify-0.7.d.ts +17 -39
- package/package.json +16 -10
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.9.
|
|
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
|
*
|
|
@@ -162,7 +162,7 @@ export module Notification {
|
|
|
162
162
|
/**
|
|
163
163
|
* The name of the application for the notification.
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
appName?: string | null
|
|
166
166
|
/**
|
|
167
167
|
* The body of the notification.
|
|
168
168
|
*/
|
|
@@ -170,7 +170,7 @@ export module Notification {
|
|
|
170
170
|
/**
|
|
171
171
|
* The icon-name of the icon to be displayed on the notification.
|
|
172
172
|
*/
|
|
173
|
-
|
|
173
|
+
iconName?: string | null
|
|
174
174
|
/**
|
|
175
175
|
* The Id of the notification.
|
|
176
176
|
*/
|
|
@@ -179,14 +179,6 @@ export module Notification {
|
|
|
179
179
|
* The summary of the notification.
|
|
180
180
|
*/
|
|
181
181
|
summary?: string | null
|
|
182
|
-
/**
|
|
183
|
-
* The name of the application for the notification.
|
|
184
|
-
*/
|
|
185
|
-
appName?: string | null
|
|
186
|
-
/**
|
|
187
|
-
* The icon-name of the icon to be displayed on the notification.
|
|
188
|
-
*/
|
|
189
|
-
iconName?: string | null
|
|
190
182
|
}
|
|
191
183
|
|
|
192
184
|
}
|
|
@@ -195,10 +187,6 @@ export interface Notification {
|
|
|
195
187
|
|
|
196
188
|
// Own properties of Notify-0.7.Notify.Notification
|
|
197
189
|
|
|
198
|
-
/**
|
|
199
|
-
* The name of the application for the notification.
|
|
200
|
-
*/
|
|
201
|
-
app_name: string | null
|
|
202
190
|
/**
|
|
203
191
|
* The name of the application for the notification.
|
|
204
192
|
*/
|
|
@@ -207,22 +195,12 @@ export interface Notification {
|
|
|
207
195
|
* The body of the notification.
|
|
208
196
|
*/
|
|
209
197
|
body: string | null
|
|
210
|
-
/**
|
|
211
|
-
* The closed reason of the notification.
|
|
212
|
-
*
|
|
213
|
-
* See [signal`Notification:`:closed].
|
|
214
|
-
*/
|
|
215
|
-
readonly closed_reason: number
|
|
216
198
|
/**
|
|
217
199
|
* The closed reason of the notification.
|
|
218
200
|
*
|
|
219
201
|
* See [signal`Notification:`:closed].
|
|
220
202
|
*/
|
|
221
203
|
readonly closedReason: number
|
|
222
|
-
/**
|
|
223
|
-
* The icon-name of the icon to be displayed on the notification.
|
|
224
|
-
*/
|
|
225
|
-
icon_name: string | null
|
|
226
204
|
/**
|
|
227
205
|
* The icon-name of the icon to be displayed on the notification.
|
|
228
206
|
*/
|
|
@@ -247,7 +225,7 @@ export interface Notification {
|
|
|
247
225
|
* @param label The human-readable action label.
|
|
248
226
|
* @param callback The action's callback function.
|
|
249
227
|
*/
|
|
250
|
-
add_action(action: string
|
|
228
|
+
add_action(action: string, label: string, callback: ActionCallback): void
|
|
251
229
|
/**
|
|
252
230
|
* Clears all actions from the notification.
|
|
253
231
|
*/
|
|
@@ -296,7 +274,7 @@ export interface Notification {
|
|
|
296
274
|
* a certain way.
|
|
297
275
|
* @param category The category.
|
|
298
276
|
*/
|
|
299
|
-
set_category(category: string
|
|
277
|
+
set_category(category: string): void
|
|
300
278
|
/**
|
|
301
279
|
* Sets a hint for `key` with value `value`.
|
|
302
280
|
*
|
|
@@ -306,13 +284,13 @@ export interface Notification {
|
|
|
306
284
|
* @param key the hint key
|
|
307
285
|
* @param value the hint value
|
|
308
286
|
*/
|
|
309
|
-
set_hint(key: string
|
|
287
|
+
set_hint(key: string, value: GLib.Variant | null): void
|
|
310
288
|
/**
|
|
311
289
|
* Sets a hint with a byte value.
|
|
312
290
|
* @param key The hint.
|
|
313
291
|
* @param value The hint's value.
|
|
314
292
|
*/
|
|
315
|
-
set_hint_byte(key: string
|
|
293
|
+
set_hint_byte(key: string, value: number): void
|
|
316
294
|
/**
|
|
317
295
|
* Sets a hint with a byte array value.
|
|
318
296
|
*
|
|
@@ -320,31 +298,31 @@ export interface Notification {
|
|
|
320
298
|
* @param key The hint.
|
|
321
299
|
* @param value The hint's value.
|
|
322
300
|
*/
|
|
323
|
-
set_hint_byte_array(key: string
|
|
301
|
+
set_hint_byte_array(key: string, value: Uint8Array): void
|
|
324
302
|
/**
|
|
325
303
|
* Sets a hint with a double value.
|
|
326
304
|
* @param key The hint.
|
|
327
305
|
* @param value The hint's value.
|
|
328
306
|
*/
|
|
329
|
-
set_hint_double(key: string
|
|
307
|
+
set_hint_double(key: string, value: number): void
|
|
330
308
|
/**
|
|
331
309
|
* Sets a hint with a 32-bit integer value.
|
|
332
310
|
* @param key The hint.
|
|
333
311
|
* @param value The hint's value.
|
|
334
312
|
*/
|
|
335
|
-
set_hint_int32(key: string
|
|
313
|
+
set_hint_int32(key: string, value: number): void
|
|
336
314
|
/**
|
|
337
315
|
* Sets a hint with a string value.
|
|
338
316
|
* @param key The hint.
|
|
339
317
|
* @param value The hint's value.
|
|
340
318
|
*/
|
|
341
|
-
set_hint_string(key: string
|
|
319
|
+
set_hint_string(key: string, value: string): void
|
|
342
320
|
/**
|
|
343
321
|
* Sets a hint with an unsigned 32-bit integer value.
|
|
344
322
|
* @param key The hint.
|
|
345
323
|
* @param value The hint's value.
|
|
346
324
|
*/
|
|
347
|
-
set_hint_uint32(key: string
|
|
325
|
+
set_hint_uint32(key: string, value: number): void
|
|
348
326
|
/**
|
|
349
327
|
* Sets the icon in the notification from a #GdkPixbuf.
|
|
350
328
|
* @param icon The icon.
|
|
@@ -385,7 +363,7 @@ export interface Notification {
|
|
|
385
363
|
* @param icon The optional icon theme icon name or filename.
|
|
386
364
|
* @returns %TRUE, unless an invalid parameter was passed.
|
|
387
365
|
*/
|
|
388
|
-
update(summary: string
|
|
366
|
+
update(summary: string, body: string | null, icon: string | null): boolean
|
|
389
367
|
|
|
390
368
|
// Own virtual methods of Notify-0.7.Notify.Notification
|
|
391
369
|
|
|
@@ -454,7 +432,7 @@ export class Notification extends GObject.Object {
|
|
|
454
432
|
* @param icon The optional icon theme icon name or filename.
|
|
455
433
|
* @returns The new #NotifyNotification.
|
|
456
434
|
*/
|
|
457
|
-
constructor(summary: string
|
|
435
|
+
constructor(summary: string, body: string | null, icon: string | null)
|
|
458
436
|
/**
|
|
459
437
|
* Creates a new #NotifyNotification.
|
|
460
438
|
*
|
|
@@ -465,7 +443,7 @@ export class Notification extends GObject.Object {
|
|
|
465
443
|
* @param icon The optional icon theme icon name or filename.
|
|
466
444
|
* @returns The new #NotifyNotification.
|
|
467
445
|
*/
|
|
468
|
-
static new(summary: string
|
|
446
|
+
static new(summary: string, body: string | null, icon: string | null): Notification
|
|
469
447
|
_init(config?: Notification.ConstructorProperties): void
|
|
470
448
|
}
|
|
471
449
|
|
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
|
*
|
|
@@ -164,7 +164,7 @@ module Notification {
|
|
|
164
164
|
/**
|
|
165
165
|
* The name of the application for the notification.
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
appName?: string | null
|
|
168
168
|
/**
|
|
169
169
|
* The body of the notification.
|
|
170
170
|
*/
|
|
@@ -172,7 +172,7 @@ module Notification {
|
|
|
172
172
|
/**
|
|
173
173
|
* The icon-name of the icon to be displayed on the notification.
|
|
174
174
|
*/
|
|
175
|
-
|
|
175
|
+
iconName?: string | null
|
|
176
176
|
/**
|
|
177
177
|
* The Id of the notification.
|
|
178
178
|
*/
|
|
@@ -181,14 +181,6 @@ module Notification {
|
|
|
181
181
|
* The summary of the notification.
|
|
182
182
|
*/
|
|
183
183
|
summary?: string | null
|
|
184
|
-
/**
|
|
185
|
-
* The name of the application for the notification.
|
|
186
|
-
*/
|
|
187
|
-
appName?: string | null
|
|
188
|
-
/**
|
|
189
|
-
* The icon-name of the icon to be displayed on the notification.
|
|
190
|
-
*/
|
|
191
|
-
iconName?: string | null
|
|
192
184
|
}
|
|
193
185
|
|
|
194
186
|
}
|
|
@@ -197,10 +189,6 @@ interface Notification {
|
|
|
197
189
|
|
|
198
190
|
// Own properties of Notify-0.7.Notify.Notification
|
|
199
191
|
|
|
200
|
-
/**
|
|
201
|
-
* The name of the application for the notification.
|
|
202
|
-
*/
|
|
203
|
-
app_name: string | null
|
|
204
192
|
/**
|
|
205
193
|
* The name of the application for the notification.
|
|
206
194
|
*/
|
|
@@ -209,22 +197,12 @@ interface Notification {
|
|
|
209
197
|
* The body of the notification.
|
|
210
198
|
*/
|
|
211
199
|
body: string | null
|
|
212
|
-
/**
|
|
213
|
-
* The closed reason of the notification.
|
|
214
|
-
*
|
|
215
|
-
* See [signal`Notification:`:closed].
|
|
216
|
-
*/
|
|
217
|
-
readonly closed_reason: number
|
|
218
200
|
/**
|
|
219
201
|
* The closed reason of the notification.
|
|
220
202
|
*
|
|
221
203
|
* See [signal`Notification:`:closed].
|
|
222
204
|
*/
|
|
223
205
|
readonly closedReason: number
|
|
224
|
-
/**
|
|
225
|
-
* The icon-name of the icon to be displayed on the notification.
|
|
226
|
-
*/
|
|
227
|
-
icon_name: string | null
|
|
228
206
|
/**
|
|
229
207
|
* The icon-name of the icon to be displayed on the notification.
|
|
230
208
|
*/
|
|
@@ -249,7 +227,7 @@ interface Notification {
|
|
|
249
227
|
* @param label The human-readable action label.
|
|
250
228
|
* @param callback The action's callback function.
|
|
251
229
|
*/
|
|
252
|
-
add_action(action: string
|
|
230
|
+
add_action(action: string, label: string, callback: ActionCallback): void
|
|
253
231
|
/**
|
|
254
232
|
* Clears all actions from the notification.
|
|
255
233
|
*/
|
|
@@ -298,7 +276,7 @@ interface Notification {
|
|
|
298
276
|
* a certain way.
|
|
299
277
|
* @param category The category.
|
|
300
278
|
*/
|
|
301
|
-
set_category(category: string
|
|
279
|
+
set_category(category: string): void
|
|
302
280
|
/**
|
|
303
281
|
* Sets a hint for `key` with value `value`.
|
|
304
282
|
*
|
|
@@ -308,13 +286,13 @@ interface Notification {
|
|
|
308
286
|
* @param key the hint key
|
|
309
287
|
* @param value the hint value
|
|
310
288
|
*/
|
|
311
|
-
set_hint(key: string
|
|
289
|
+
set_hint(key: string, value: GLib.Variant | null): void
|
|
312
290
|
/**
|
|
313
291
|
* Sets a hint with a byte value.
|
|
314
292
|
* @param key The hint.
|
|
315
293
|
* @param value The hint's value.
|
|
316
294
|
*/
|
|
317
|
-
set_hint_byte(key: string
|
|
295
|
+
set_hint_byte(key: string, value: number): void
|
|
318
296
|
/**
|
|
319
297
|
* Sets a hint with a byte array value.
|
|
320
298
|
*
|
|
@@ -322,31 +300,31 @@ interface Notification {
|
|
|
322
300
|
* @param key The hint.
|
|
323
301
|
* @param value The hint's value.
|
|
324
302
|
*/
|
|
325
|
-
set_hint_byte_array(key: string
|
|
303
|
+
set_hint_byte_array(key: string, value: Uint8Array): void
|
|
326
304
|
/**
|
|
327
305
|
* Sets a hint with a double value.
|
|
328
306
|
* @param key The hint.
|
|
329
307
|
* @param value The hint's value.
|
|
330
308
|
*/
|
|
331
|
-
set_hint_double(key: string
|
|
309
|
+
set_hint_double(key: string, value: number): void
|
|
332
310
|
/**
|
|
333
311
|
* Sets a hint with a 32-bit integer value.
|
|
334
312
|
* @param key The hint.
|
|
335
313
|
* @param value The hint's value.
|
|
336
314
|
*/
|
|
337
|
-
set_hint_int32(key: string
|
|
315
|
+
set_hint_int32(key: string, value: number): void
|
|
338
316
|
/**
|
|
339
317
|
* Sets a hint with a string value.
|
|
340
318
|
* @param key The hint.
|
|
341
319
|
* @param value The hint's value.
|
|
342
320
|
*/
|
|
343
|
-
set_hint_string(key: string
|
|
321
|
+
set_hint_string(key: string, value: string): void
|
|
344
322
|
/**
|
|
345
323
|
* Sets a hint with an unsigned 32-bit integer value.
|
|
346
324
|
* @param key The hint.
|
|
347
325
|
* @param value The hint's value.
|
|
348
326
|
*/
|
|
349
|
-
set_hint_uint32(key: string
|
|
327
|
+
set_hint_uint32(key: string, value: number): void
|
|
350
328
|
/**
|
|
351
329
|
* Sets the icon in the notification from a #GdkPixbuf.
|
|
352
330
|
* @param icon The icon.
|
|
@@ -387,7 +365,7 @@ interface Notification {
|
|
|
387
365
|
* @param icon The optional icon theme icon name or filename.
|
|
388
366
|
* @returns %TRUE, unless an invalid parameter was passed.
|
|
389
367
|
*/
|
|
390
|
-
update(summary: string
|
|
368
|
+
update(summary: string, body: string | null, icon: string | null): boolean
|
|
391
369
|
|
|
392
370
|
// Own virtual methods of Notify-0.7.Notify.Notification
|
|
393
371
|
|
|
@@ -456,7 +434,7 @@ class Notification extends GObject.Object {
|
|
|
456
434
|
* @param icon The optional icon theme icon name or filename.
|
|
457
435
|
* @returns The new #NotifyNotification.
|
|
458
436
|
*/
|
|
459
|
-
constructor(summary: string
|
|
437
|
+
constructor(summary: string, body: string | null, icon: string | null)
|
|
460
438
|
/**
|
|
461
439
|
* Creates a new #NotifyNotification.
|
|
462
440
|
*
|
|
@@ -467,7 +445,7 @@ class Notification extends GObject.Object {
|
|
|
467
445
|
* @param icon The optional icon theme icon name or filename.
|
|
468
446
|
* @returns The new #NotifyNotification.
|
|
469
447
|
*/
|
|
470
|
-
static new(summary: string
|
|
448
|
+
static new(summary: string, body: string | null, icon: string | null): Notification
|
|
471
449
|
_init(config?: Notification.ConstructorProperties): void
|
|
472
450
|
}
|
|
473
451
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/notify-0.7",
|
|
3
|
-
"version": "0.8.3-3.2.
|
|
3
|
+
"version": "0.8.3-3.2.9",
|
|
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",
|
|
7
7
|
"main": "notify-0.7.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./notify-0.7-ambient.d.ts",
|
|
11
|
+
"default": "./notify-0.7-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./notify-0.7-import.d.ts",
|
|
15
|
+
"default": "./notify-0.7-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./notify-0.7.d.ts",
|
|
@@ -25,12 +31,12 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit notify-0.7.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"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.
|
|
34
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.9",
|
|
35
|
+
"@girs/gio-2.0": "^2.78.0-3.2.9",
|
|
36
|
+
"@girs/gjs": "^3.2.9",
|
|
37
|
+
"@girs/glib-2.0": "^2.78.0-3.2.9",
|
|
38
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.9",
|
|
39
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.9"
|
|
34
40
|
},
|
|
35
41
|
"devDependencies": {
|
|
36
42
|
"typescript": "*"
|
|
@@ -47,7 +53,7 @@
|
|
|
47
53
|
"license": "MIT",
|
|
48
54
|
"repository": {
|
|
49
55
|
"type": "git",
|
|
50
|
-
"url": "git+https://github.com/gjsify/
|
|
56
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
51
57
|
},
|
|
52
58
|
"bugs": {
|
|
53
59
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|