@girs/ebook-1.2 1.2.0-3.2.6 → 1.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/ebook-1.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
9
9
 
10
10
  This package is a client library for evolution addressbooks.
11
11
 
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/ebook-1.2.d.cts CHANGED
@@ -107,7 +107,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
107
107
  * @param result a #GAsyncResult
108
108
  * @returns %TRUE if successful, %FALSE otherwise.
109
109
  */
110
- add_contact_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_added_uid */ string | null ]
110
+ add_contact_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_added_uid */ string ]
111
111
  /**
112
112
  * Adds `contact` to `client` and
113
113
  * sets `out_added_uid` to a UID of a newly added contact.
@@ -120,7 +120,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
120
120
  * @param cancellable a #GCancellable; can be %NULL
121
121
  * @returns %TRUE if successful, %FALSE otherwise.
122
122
  */
123
- add_contact_sync(contact: EBookContacts.Contact, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_added_uid */ string | null ]
123
+ add_contact_sync(contact: EBookContacts.Contact, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_added_uid */ string ]
124
124
  /**
125
125
  * Adds `contacts` to `client`.
126
126
  * The call is finished by e_book_client_add_contacts_finish()
@@ -172,14 +172,14 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
172
172
  * @param cancellable a #GCancellable; can be %NULL
173
173
  * @param callback callback to call when a result is ready
174
174
  */
175
- contains_email(email_address: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
175
+ contains_email(email_address: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
176
176
  /**
177
177
  * Finishes previous call of e_book_client_contains_email().
178
178
  * @param result a #GAsyncResult
179
179
  * @returns %TRUE if successful, %FALSE otherwise.
180
180
  */
181
181
  contains_email_finish(result: Gio.AsyncResult): boolean
182
- contains_email_sync(email_address: string | null, cancellable: Gio.Cancellable | null): boolean
182
+ contains_email_sync(email_address: string, cancellable: Gio.Cancellable | null): boolean
183
183
  /**
184
184
  * Receive #EContact from the `client` for the gived `uid`.
185
185
  * The call is finished by e_book_client_get_contact_finish()
@@ -188,7 +188,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
188
188
  * @param cancellable a #GCancellable; can be %NULL
189
189
  * @param callback callback to call when a result is ready
190
190
  */
191
- get_contact(uid: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
191
+ get_contact(uid: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
192
192
  /**
193
193
  * Finishes previous call of e_book_client_get_contact().
194
194
  * If successful, then the `out_contact` is set to newly allocated
@@ -205,7 +205,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
205
205
  * @param cancellable a #GCancellable; can be %NULL
206
206
  * @returns %TRUE if successful, %FALSE otherwise.
207
207
  */
208
- get_contact_sync(uid: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact */ EBookContacts.Contact ]
208
+ get_contact_sync(uid: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact */ EBookContacts.Contact ]
209
209
  /**
210
210
  * Query `client` with `sexp,` receiving a list of contacts which
211
211
  * matched. The call is finished by e_book_client_get_contacts_finish()
@@ -217,7 +217,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
217
217
  * @param cancellable a #GCancellable; can be %NULL
218
218
  * @param callback callback to call when a result is ready
219
219
  */
220
- get_contacts(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
220
+ get_contacts(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
221
221
  /**
222
222
  * Finishes previous call of e_book_client_get_contacts().
223
223
  * If successful, then the `out_contacts` is set to newly allocated list of
@@ -237,7 +237,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
237
237
  * @param cancellable a #GCancellable; can be %NULL
238
238
  * @returns %TRUE if successful, %FALSE otherwise.
239
239
  */
240
- get_contacts_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contacts */ EBookContacts.Contact[] ]
240
+ get_contacts_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contacts */ EBookContacts.Contact[] ]
241
241
  /**
242
242
  * Query `client` with `sexp,` receiving a list of contacts UIDs which
243
243
  * matched. The call is finished by e_book_client_get_contacts_uids_finish()
@@ -249,7 +249,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
249
249
  * @param cancellable a #GCancellable; can be %NULL
250
250
  * @param callback callback to call when a result is ready
251
251
  */
252
- get_contacts_uids(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
252
+ get_contacts_uids(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
253
253
  /**
254
254
  * Finishes previous call of e_book_client_get_contacts_uids().
255
255
  * If successful, then the `out_contact_uids` is set to newly allocated list
@@ -269,7 +269,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
269
269
  * @param cancellable a #GCancellable; can be %NULL
270
270
  * @returns %TRUE if successful, %FALSE otherwise.
271
271
  */
272
- get_contacts_uids_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact_uids */ string[] ]
272
+ get_contacts_uids_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact_uids */ string[] ]
273
273
  /**
274
274
  * Create an #EBookClientCursor.
275
275
  * The call is finished by e_book_client_get_view_finish()
@@ -284,7 +284,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
284
284
  * @param cancellable a #GCancellable; can be %NULL
285
285
  * @param callback callback to call when a result is ready
286
286
  */
287
- get_cursor(sexp: string | null, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
287
+ get_cursor(sexp: string, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
288
288
  /**
289
289
  * Finishes previous call of e_book_client_get_cursor().
290
290
  * If successful, then the `out_cursor` is set to newly create
@@ -308,7 +308,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
308
308
  * @param cancellable a #GCancellable; can be %NULL
309
309
  * @returns %TRUE if successful, %FALSE otherwise.
310
310
  */
311
- get_cursor_sync(sexp: string | null, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_cursor */ BookClientCursor ]
311
+ get_cursor_sync(sexp: string, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_cursor */ BookClientCursor ]
312
312
  /**
313
313
  * Reports the locale in use for `client`. The addressbook might sort contacts
314
314
  * in different orders, or store and compare phone numbers in different ways
@@ -320,7 +320,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
320
320
  * after a locale change is detected.
321
321
  * @returns The currently set locale for @client
322
322
  */
323
- get_locale(): string | null
323
+ get_locale(): string
324
324
  /**
325
325
  * Query `client` with `sexp,` creating an #EBookClientView.
326
326
  * The call is finished by e_book_client_get_view_finish()
@@ -332,7 +332,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
332
332
  * @param cancellable a #GCancellable; can be %NULL
333
333
  * @param callback callback to call when a result is ready
334
334
  */
335
- get_view(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
335
+ get_view(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
336
336
  /**
337
337
  * Finishes previous call of e_book_client_get_view().
338
338
  * If successful, then the `out_view` is set to newly allocated
@@ -352,7 +352,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
352
352
  * @param cancellable a #GCancellable; can be %NULL
353
353
  * @returns %TRUE if successful, %FALSE otherwise.
354
354
  */
355
- get_view_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_view */ BookClientView ]
355
+ get_view_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_view */ BookClientView ]
356
356
  /**
357
357
  * Applies the changes made to `contact` to the stored version in `client`.
358
358
  * The call is finished by e_book_client_modify_contact_finish()
@@ -420,7 +420,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
420
420
  * @param cancellable a #GCancellable; can be %NULL
421
421
  * @param callback callback to call when a result is ready
422
422
  */
423
- remove_contact_by_uid(uid: string | null, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
423
+ remove_contact_by_uid(uid: string, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
424
424
  /**
425
425
  * Finishes previous call of e_book_client_remove_contact_by_uid().
426
426
  * @param result a #GAsyncResult
@@ -434,7 +434,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
434
434
  * @param cancellable a #GCancellable; can be %NULL
435
435
  * @returns %TRUE if successful, %FALSE otherwise.
436
436
  */
437
- remove_contact_by_uid_sync(uid: string | null, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): boolean
437
+ remove_contact_by_uid_sync(uid: string, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): boolean
438
438
  /**
439
439
  * Finishes previous call of e_book_client_remove_contact().
440
440
  * @param result a #GAsyncResult
@@ -697,22 +697,6 @@ export module BookClientCursor {
697
697
  * </para></note>
698
698
  */
699
699
  context?: GLib.MainContext | null
700
- /**
701
- * The D-Bus object path to find the server side cursor object.
702
- *
703
- * <note><para>This is an internal parameter for constructing the
704
- * cursor, to construct the cursor use e_book_client_get_cursor().
705
- * </para></note>
706
- */
707
- object_path?: string | null
708
- /**
709
- * The #EContactField names to sort this cursor with
710
- *
711
- * <note><para>This is an internal parameter for constructing the
712
- * cursor, to construct the cursor use e_book_client_get_cursor().
713
- * </para></note>
714
- */
715
- sort_fields?: string[] | null
716
700
  /**
717
701
  * The D-Bus object path to find the server side cursor object.
718
702
  *
@@ -775,14 +759,6 @@ export interface BookClientCursor extends Gio.Initable {
775
759
  * </para></note>
776
760
  */
777
761
  readonly context: GLib.MainContext
778
- /**
779
- * The D-Bus object path to find the server side cursor object.
780
- *
781
- * <note><para>This is an internal parameter for constructing the
782
- * cursor, to construct the cursor use e_book_client_get_cursor().
783
- * </para></note>
784
- */
785
- readonly object_path: string | null
786
762
  /**
787
763
  * The D-Bus object path to find the server side cursor object.
788
764
  *
@@ -811,14 +787,6 @@ export interface BookClientCursor extends Gio.Initable {
811
787
  * default context at cursor creation time.
812
788
  */
813
789
  readonly position: number
814
- /**
815
- * The #EContactField names to sort this cursor with
816
- *
817
- * <note><para>This is an internal parameter for constructing the
818
- * cursor, to construct the cursor use e_book_client_get_cursor().
819
- * </para></note>
820
- */
821
- readonly sort_fields: string[]
822
790
  /**
823
791
  * The #EContactField names to sort this cursor with
824
792
  *
@@ -964,7 +932,7 @@ export interface BookClientCursor extends Gio.Initable {
964
932
  * @param cancellable a #GCancellable to optionally cancel this operation while in progress
965
933
  * @param callback callback to call when a result is ready
966
934
  */
967
- set_sexp(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
935
+ set_sexp(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
968
936
  /**
969
937
  * Completes an asynchronous call initiated by e_book_client_cursor_set_sexp(), reporting
970
938
  * whether the new search expression was accepted.
@@ -992,7 +960,7 @@ export interface BookClientCursor extends Gio.Initable {
992
960
  * @param cancellable a #GCancellable to optionally cancel this operation while in progress
993
961
  * @returns %TRUE on success, otherwise %FALSE is returned and @error is set.
994
962
  */
995
- set_sexp_sync(sexp: string | null, cancellable: Gio.Cancellable | null): boolean
963
+ set_sexp_sync(sexp: string, cancellable: Gio.Cancellable | null): boolean
996
964
  /**
997
965
  * <link linkend="cursor-iteration">Steps the cursor through the results</link> by
998
966
  * a maximum of `count` and fetch the results traversed.
@@ -1168,7 +1136,6 @@ export module BookClientView {
1168
1136
 
1169
1137
  client?: BookClient | null
1170
1138
  connection?: Gio.DBusConnection | null
1171
- object_path?: string | null
1172
1139
  objectPath?: string | null
1173
1140
  }
1174
1141
 
@@ -1189,19 +1156,12 @@ export interface BookClientView extends Gio.Initable {
1189
1156
  * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1190
1157
  */
1191
1158
  readonly indices: EBookContacts.BookIndices
1192
- /**
1193
- * How many contacts are available in the view.
1194
- *
1195
- * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1196
- */
1197
- readonly n_total: number
1198
1159
  /**
1199
1160
  * How many contacts are available in the view.
1200
1161
  *
1201
1162
  * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1202
1163
  */
1203
1164
  readonly nTotal: number
1204
- readonly object_path: string | null
1205
1165
  readonly objectPath: string | null
1206
1166
 
1207
1167
  // Owm methods of EBook-1.2.EBook.BookClientView
@@ -1273,7 +1233,7 @@ export interface BookClientView extends Gio.Initable {
1273
1233
  * Returns the object path used to create the D-Bus proxy.
1274
1234
  * @returns the object path
1275
1235
  */
1276
- get_object_path(): string | null
1236
+ get_object_path(): string
1277
1237
  is_running(): boolean
1278
1238
  /**
1279
1239
  * Returns the #EBookClientView:client associated with `client_view`.
@@ -1331,7 +1291,7 @@ export interface BookClientView extends Gio.Initable {
1331
1291
  // Own virtual methods of EBook-1.2.EBook.BookClientView
1332
1292
 
1333
1293
  vfunc_complete(error: GLib.Error): void
1334
- vfunc_progress(percent: number, message: string | null): void
1294
+ vfunc_progress(percent: number, message: string): void
1335
1295
 
1336
1296
  // Own signals of EBook-1.2.EBook.BookClientView
1337
1297
 
@@ -1471,7 +1431,7 @@ export interface Destination {
1471
1431
  * Gets the e-mail address of `dest'`s addressee.
1472
1432
  * @returns An e-mail address, or an empty string if none was set.
1473
1433
  */
1474
- get_email(): string | null
1434
+ get_email(): string
1475
1435
  /**
1476
1436
  * Gets the index of the e-mail address of the contact that
1477
1437
  * `dest` is pointing to, if any.
@@ -1503,7 +1463,7 @@ export interface Destination {
1503
1463
  * @param include_email whether to include the e-mail address
1504
1464
  * @returns A textual representation of the destination.
1505
1465
  */
1506
- get_textrep(include_email: boolean): string | null
1466
+ get_textrep(include_email: boolean): string
1507
1467
  /**
1508
1468
  * Checks if `dest` is flagged as an automatic recipient, meaning
1509
1469
  * it was not explicitly specified by the user. This can be used
@@ -1567,12 +1527,12 @@ export interface Destination {
1567
1527
  * @param uid a unique contact ID
1568
1528
  * @param email_num an email index
1569
1529
  */
1570
- set_contact_uid(uid: string | null, email_num: number): void
1530
+ set_contact_uid(uid: string, email_num: number): void
1571
1531
  /**
1572
1532
  * Sets the e-mail address of `dest'`s addressee.
1573
1533
  * @param email the destination's e-mail address
1574
1534
  */
1575
- set_email(email: string | null): void
1535
+ set_email(email: string): void
1576
1536
  /**
1577
1537
  * Specifies whether `dest` wants to get mail formatted as HTML.
1578
1538
  * @param flag whether the destination wants HTML mail
@@ -1587,13 +1547,13 @@ export interface Destination {
1587
1547
  * Sets the full name of `dest'`s addressee.
1588
1548
  * @param name the destination's full name
1589
1549
  */
1590
- set_name(name: string | null): void
1550
+ set_name(name: string): void
1591
1551
  /**
1592
1552
  * Sets `dest` to point to the name and e-mail address resulting from
1593
1553
  * parsing the supplied string. Useful for user input.
1594
1554
  * @param raw an unparsed string
1595
1555
  */
1596
- set_raw(raw: string | null): void
1556
+ set_raw(raw: string): void
1597
1557
 
1598
1558
  // Own virtual methods of EBook-1.2.EBook.Destination
1599
1559
 
@@ -1659,14 +1619,14 @@ export class Destination extends GObject.Object {
1659
1619
  * @param str an XML string
1660
1620
  * @returns An #EDestination, or %NULL if the document was not well-formed.
1661
1621
  */
1662
- static import(str: string | null): Destination | null
1622
+ static import(str: string): Destination | null
1663
1623
  /**
1664
1624
  * Creates an array of pointers to #EDestination elements
1665
1625
  * from an XML document.
1666
1626
  * @param str an XML string
1667
1627
  * @returns A %NULL-terminated array of pointers to #EDestination elements.
1668
1628
  */
1669
- static importv(str: string | null): Destination[]
1629
+ static importv(str: string): Destination[]
1670
1630
  }
1671
1631
 
1672
1632
  export interface BookClientClass {
@@ -1725,7 +1685,7 @@ export interface BookClientViewClass {
1725
1685
 
1726
1686
  // Own fields of EBook-1.2.EBook.BookClientViewClass
1727
1687
 
1728
- progress: (client_view: BookClientView, percent: number, message: string | null) => void
1688
+ progress: (client_view: BookClientView, percent: number, message: string) => void
1729
1689
  complete: (client_view: BookClientView, error: GLib.Error) => void
1730
1690
  }
1731
1691
 
package/ebook-1.2.d.ts CHANGED
@@ -109,7 +109,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
109
109
  * @param result a #GAsyncResult
110
110
  * @returns %TRUE if successful, %FALSE otherwise.
111
111
  */
112
- add_contact_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_added_uid */ string | null ]
112
+ add_contact_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_added_uid */ string ]
113
113
  /**
114
114
  * Adds `contact` to `client` and
115
115
  * sets `out_added_uid` to a UID of a newly added contact.
@@ -122,7 +122,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
122
122
  * @param cancellable a #GCancellable; can be %NULL
123
123
  * @returns %TRUE if successful, %FALSE otherwise.
124
124
  */
125
- add_contact_sync(contact: EBookContacts.Contact, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_added_uid */ string | null ]
125
+ add_contact_sync(contact: EBookContacts.Contact, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_added_uid */ string ]
126
126
  /**
127
127
  * Adds `contacts` to `client`.
128
128
  * The call is finished by e_book_client_add_contacts_finish()
@@ -174,14 +174,14 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
174
174
  * @param cancellable a #GCancellable; can be %NULL
175
175
  * @param callback callback to call when a result is ready
176
176
  */
177
- contains_email(email_address: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
177
+ contains_email(email_address: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
178
178
  /**
179
179
  * Finishes previous call of e_book_client_contains_email().
180
180
  * @param result a #GAsyncResult
181
181
  * @returns %TRUE if successful, %FALSE otherwise.
182
182
  */
183
183
  contains_email_finish(result: Gio.AsyncResult): boolean
184
- contains_email_sync(email_address: string | null, cancellable: Gio.Cancellable | null): boolean
184
+ contains_email_sync(email_address: string, cancellable: Gio.Cancellable | null): boolean
185
185
  /**
186
186
  * Receive #EContact from the `client` for the gived `uid`.
187
187
  * The call is finished by e_book_client_get_contact_finish()
@@ -190,7 +190,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
190
190
  * @param cancellable a #GCancellable; can be %NULL
191
191
  * @param callback callback to call when a result is ready
192
192
  */
193
- get_contact(uid: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
193
+ get_contact(uid: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
194
194
  /**
195
195
  * Finishes previous call of e_book_client_get_contact().
196
196
  * If successful, then the `out_contact` is set to newly allocated
@@ -207,7 +207,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
207
207
  * @param cancellable a #GCancellable; can be %NULL
208
208
  * @returns %TRUE if successful, %FALSE otherwise.
209
209
  */
210
- get_contact_sync(uid: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact */ EBookContacts.Contact ]
210
+ get_contact_sync(uid: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact */ EBookContacts.Contact ]
211
211
  /**
212
212
  * Query `client` with `sexp,` receiving a list of contacts which
213
213
  * matched. The call is finished by e_book_client_get_contacts_finish()
@@ -219,7 +219,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
219
219
  * @param cancellable a #GCancellable; can be %NULL
220
220
  * @param callback callback to call when a result is ready
221
221
  */
222
- get_contacts(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
222
+ get_contacts(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
223
223
  /**
224
224
  * Finishes previous call of e_book_client_get_contacts().
225
225
  * If successful, then the `out_contacts` is set to newly allocated list of
@@ -239,7 +239,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
239
239
  * @param cancellable a #GCancellable; can be %NULL
240
240
  * @returns %TRUE if successful, %FALSE otherwise.
241
241
  */
242
- get_contacts_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contacts */ EBookContacts.Contact[] ]
242
+ get_contacts_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contacts */ EBookContacts.Contact[] ]
243
243
  /**
244
244
  * Query `client` with `sexp,` receiving a list of contacts UIDs which
245
245
  * matched. The call is finished by e_book_client_get_contacts_uids_finish()
@@ -251,7 +251,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
251
251
  * @param cancellable a #GCancellable; can be %NULL
252
252
  * @param callback callback to call when a result is ready
253
253
  */
254
- get_contacts_uids(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
254
+ get_contacts_uids(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
255
255
  /**
256
256
  * Finishes previous call of e_book_client_get_contacts_uids().
257
257
  * If successful, then the `out_contact_uids` is set to newly allocated list
@@ -271,7 +271,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
271
271
  * @param cancellable a #GCancellable; can be %NULL
272
272
  * @returns %TRUE if successful, %FALSE otherwise.
273
273
  */
274
- get_contacts_uids_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact_uids */ string[] ]
274
+ get_contacts_uids_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact_uids */ string[] ]
275
275
  /**
276
276
  * Create an #EBookClientCursor.
277
277
  * The call is finished by e_book_client_get_view_finish()
@@ -286,7 +286,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
286
286
  * @param cancellable a #GCancellable; can be %NULL
287
287
  * @param callback callback to call when a result is ready
288
288
  */
289
- get_cursor(sexp: string | null, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
289
+ get_cursor(sexp: string, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
290
290
  /**
291
291
  * Finishes previous call of e_book_client_get_cursor().
292
292
  * If successful, then the `out_cursor` is set to newly create
@@ -310,7 +310,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
310
310
  * @param cancellable a #GCancellable; can be %NULL
311
311
  * @returns %TRUE if successful, %FALSE otherwise.
312
312
  */
313
- get_cursor_sync(sexp: string | null, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_cursor */ BookClientCursor ]
313
+ get_cursor_sync(sexp: string, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_cursor */ BookClientCursor ]
314
314
  /**
315
315
  * Reports the locale in use for `client`. The addressbook might sort contacts
316
316
  * in different orders, or store and compare phone numbers in different ways
@@ -322,7 +322,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
322
322
  * after a locale change is detected.
323
323
  * @returns The currently set locale for @client
324
324
  */
325
- get_locale(): string | null
325
+ get_locale(): string
326
326
  /**
327
327
  * Query `client` with `sexp,` creating an #EBookClientView.
328
328
  * The call is finished by e_book_client_get_view_finish()
@@ -334,7 +334,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
334
334
  * @param cancellable a #GCancellable; can be %NULL
335
335
  * @param callback callback to call when a result is ready
336
336
  */
337
- get_view(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
337
+ get_view(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
338
338
  /**
339
339
  * Finishes previous call of e_book_client_get_view().
340
340
  * If successful, then the `out_view` is set to newly allocated
@@ -354,7 +354,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
354
354
  * @param cancellable a #GCancellable; can be %NULL
355
355
  * @returns %TRUE if successful, %FALSE otherwise.
356
356
  */
357
- get_view_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_view */ BookClientView ]
357
+ get_view_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_view */ BookClientView ]
358
358
  /**
359
359
  * Applies the changes made to `contact` to the stored version in `client`.
360
360
  * The call is finished by e_book_client_modify_contact_finish()
@@ -422,7 +422,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
422
422
  * @param cancellable a #GCancellable; can be %NULL
423
423
  * @param callback callback to call when a result is ready
424
424
  */
425
- remove_contact_by_uid(uid: string | null, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
425
+ remove_contact_by_uid(uid: string, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
426
426
  /**
427
427
  * Finishes previous call of e_book_client_remove_contact_by_uid().
428
428
  * @param result a #GAsyncResult
@@ -436,7 +436,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
436
436
  * @param cancellable a #GCancellable; can be %NULL
437
437
  * @returns %TRUE if successful, %FALSE otherwise.
438
438
  */
439
- remove_contact_by_uid_sync(uid: string | null, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): boolean
439
+ remove_contact_by_uid_sync(uid: string, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): boolean
440
440
  /**
441
441
  * Finishes previous call of e_book_client_remove_contact().
442
442
  * @param result a #GAsyncResult
@@ -699,22 +699,6 @@ module BookClientCursor {
699
699
  * </para></note>
700
700
  */
701
701
  context?: GLib.MainContext | null
702
- /**
703
- * The D-Bus object path to find the server side cursor object.
704
- *
705
- * <note><para>This is an internal parameter for constructing the
706
- * cursor, to construct the cursor use e_book_client_get_cursor().
707
- * </para></note>
708
- */
709
- object_path?: string | null
710
- /**
711
- * The #EContactField names to sort this cursor with
712
- *
713
- * <note><para>This is an internal parameter for constructing the
714
- * cursor, to construct the cursor use e_book_client_get_cursor().
715
- * </para></note>
716
- */
717
- sort_fields?: string[] | null
718
702
  /**
719
703
  * The D-Bus object path to find the server side cursor object.
720
704
  *
@@ -777,14 +761,6 @@ interface BookClientCursor extends Gio.Initable {
777
761
  * </para></note>
778
762
  */
779
763
  readonly context: GLib.MainContext
780
- /**
781
- * The D-Bus object path to find the server side cursor object.
782
- *
783
- * <note><para>This is an internal parameter for constructing the
784
- * cursor, to construct the cursor use e_book_client_get_cursor().
785
- * </para></note>
786
- */
787
- readonly object_path: string | null
788
764
  /**
789
765
  * The D-Bus object path to find the server side cursor object.
790
766
  *
@@ -813,14 +789,6 @@ interface BookClientCursor extends Gio.Initable {
813
789
  * default context at cursor creation time.
814
790
  */
815
791
  readonly position: number
816
- /**
817
- * The #EContactField names to sort this cursor with
818
- *
819
- * <note><para>This is an internal parameter for constructing the
820
- * cursor, to construct the cursor use e_book_client_get_cursor().
821
- * </para></note>
822
- */
823
- readonly sort_fields: string[]
824
792
  /**
825
793
  * The #EContactField names to sort this cursor with
826
794
  *
@@ -966,7 +934,7 @@ interface BookClientCursor extends Gio.Initable {
966
934
  * @param cancellable a #GCancellable to optionally cancel this operation while in progress
967
935
  * @param callback callback to call when a result is ready
968
936
  */
969
- set_sexp(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
937
+ set_sexp(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
970
938
  /**
971
939
  * Completes an asynchronous call initiated by e_book_client_cursor_set_sexp(), reporting
972
940
  * whether the new search expression was accepted.
@@ -994,7 +962,7 @@ interface BookClientCursor extends Gio.Initable {
994
962
  * @param cancellable a #GCancellable to optionally cancel this operation while in progress
995
963
  * @returns %TRUE on success, otherwise %FALSE is returned and @error is set.
996
964
  */
997
- set_sexp_sync(sexp: string | null, cancellable: Gio.Cancellable | null): boolean
965
+ set_sexp_sync(sexp: string, cancellable: Gio.Cancellable | null): boolean
998
966
  /**
999
967
  * <link linkend="cursor-iteration">Steps the cursor through the results</link> by
1000
968
  * a maximum of `count` and fetch the results traversed.
@@ -1170,7 +1138,6 @@ module BookClientView {
1170
1138
 
1171
1139
  client?: BookClient | null
1172
1140
  connection?: Gio.DBusConnection | null
1173
- object_path?: string | null
1174
1141
  objectPath?: string | null
1175
1142
  }
1176
1143
 
@@ -1191,19 +1158,12 @@ interface BookClientView extends Gio.Initable {
1191
1158
  * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1192
1159
  */
1193
1160
  readonly indices: EBookContacts.BookIndices
1194
- /**
1195
- * How many contacts are available in the view.
1196
- *
1197
- * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1198
- */
1199
- readonly n_total: number
1200
1161
  /**
1201
1162
  * How many contacts are available in the view.
1202
1163
  *
1203
1164
  * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1204
1165
  */
1205
1166
  readonly nTotal: number
1206
- readonly object_path: string | null
1207
1167
  readonly objectPath: string | null
1208
1168
 
1209
1169
  // Owm methods of EBook-1.2.EBook.BookClientView
@@ -1275,7 +1235,7 @@ interface BookClientView extends Gio.Initable {
1275
1235
  * Returns the object path used to create the D-Bus proxy.
1276
1236
  * @returns the object path
1277
1237
  */
1278
- get_object_path(): string | null
1238
+ get_object_path(): string
1279
1239
  is_running(): boolean
1280
1240
  /**
1281
1241
  * Returns the #EBookClientView:client associated with `client_view`.
@@ -1333,7 +1293,7 @@ interface BookClientView extends Gio.Initable {
1333
1293
  // Own virtual methods of EBook-1.2.EBook.BookClientView
1334
1294
 
1335
1295
  vfunc_complete(error: GLib.Error): void
1336
- vfunc_progress(percent: number, message: string | null): void
1296
+ vfunc_progress(percent: number, message: string): void
1337
1297
 
1338
1298
  // Own signals of EBook-1.2.EBook.BookClientView
1339
1299
 
@@ -1473,7 +1433,7 @@ interface Destination {
1473
1433
  * Gets the e-mail address of `dest'`s addressee.
1474
1434
  * @returns An e-mail address, or an empty string if none was set.
1475
1435
  */
1476
- get_email(): string | null
1436
+ get_email(): string
1477
1437
  /**
1478
1438
  * Gets the index of the e-mail address of the contact that
1479
1439
  * `dest` is pointing to, if any.
@@ -1505,7 +1465,7 @@ interface Destination {
1505
1465
  * @param include_email whether to include the e-mail address
1506
1466
  * @returns A textual representation of the destination.
1507
1467
  */
1508
- get_textrep(include_email: boolean): string | null
1468
+ get_textrep(include_email: boolean): string
1509
1469
  /**
1510
1470
  * Checks if `dest` is flagged as an automatic recipient, meaning
1511
1471
  * it was not explicitly specified by the user. This can be used
@@ -1569,12 +1529,12 @@ interface Destination {
1569
1529
  * @param uid a unique contact ID
1570
1530
  * @param email_num an email index
1571
1531
  */
1572
- set_contact_uid(uid: string | null, email_num: number): void
1532
+ set_contact_uid(uid: string, email_num: number): void
1573
1533
  /**
1574
1534
  * Sets the e-mail address of `dest'`s addressee.
1575
1535
  * @param email the destination's e-mail address
1576
1536
  */
1577
- set_email(email: string | null): void
1537
+ set_email(email: string): void
1578
1538
  /**
1579
1539
  * Specifies whether `dest` wants to get mail formatted as HTML.
1580
1540
  * @param flag whether the destination wants HTML mail
@@ -1589,13 +1549,13 @@ interface Destination {
1589
1549
  * Sets the full name of `dest'`s addressee.
1590
1550
  * @param name the destination's full name
1591
1551
  */
1592
- set_name(name: string | null): void
1552
+ set_name(name: string): void
1593
1553
  /**
1594
1554
  * Sets `dest` to point to the name and e-mail address resulting from
1595
1555
  * parsing the supplied string. Useful for user input.
1596
1556
  * @param raw an unparsed string
1597
1557
  */
1598
- set_raw(raw: string | null): void
1558
+ set_raw(raw: string): void
1599
1559
 
1600
1560
  // Own virtual methods of EBook-1.2.EBook.Destination
1601
1561
 
@@ -1661,14 +1621,14 @@ class Destination extends GObject.Object {
1661
1621
  * @param str an XML string
1662
1622
  * @returns An #EDestination, or %NULL if the document was not well-formed.
1663
1623
  */
1664
- static import(str: string | null): Destination | null
1624
+ static import(str: string): Destination | null
1665
1625
  /**
1666
1626
  * Creates an array of pointers to #EDestination elements
1667
1627
  * from an XML document.
1668
1628
  * @param str an XML string
1669
1629
  * @returns A %NULL-terminated array of pointers to #EDestination elements.
1670
1630
  */
1671
- static importv(str: string | null): Destination[]
1631
+ static importv(str: string): Destination[]
1672
1632
  }
1673
1633
 
1674
1634
  interface BookClientClass {
@@ -1727,7 +1687,7 @@ interface BookClientViewClass {
1727
1687
 
1728
1688
  // Own fields of EBook-1.2.EBook.BookClientViewClass
1729
1689
 
1730
- progress: (client_view: BookClientView, percent: number, message: string | null) => void
1690
+ progress: (client_view: BookClientView, percent: number, message: string) => void
1731
1691
  complete: (client_view: BookClientView, error: GLib.Error) => void
1732
1692
  }
1733
1693
 
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/ebook-1.2",
3
- "version": "1.2.0-3.2.6",
3
+ "version": "1.2.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0",
5
5
  "type": "module",
6
6
  "module": "ebook-1.2.js",
7
7
  "main": "ebook-1.2.js",
8
8
  "exports": {
9
- "./ambient": "./ebook-1.2-ambient.d.ts",
10
- "./import": "./ebook-1.2-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./ebook-1.2-ambient.d.ts",
11
+ "default": "./ebook-1.2-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./ebook-1.2-import.d.ts",
15
+ "default": "./ebook-1.2-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./ebook-1.2.d.ts",
@@ -25,16 +31,16 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit ebook-1.2.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/camel-1.2": "^1.2.0-3.2.6",
29
- "@girs/ebookcontacts-1.2": "^1.2.0-3.2.6",
30
- "@girs/edataserver-1.2": "^1.2.0-3.2.6",
31
- "@girs/gio-2.0": "^2.78.0-3.2.6",
32
- "@girs/gjs": "^3.2.6",
33
- "@girs/glib-2.0": "^2.78.0-3.2.6",
34
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
35
- "@girs/json-1.0": "^1.7.1-3.2.6",
36
- "@girs/libxml2-2.0": "^2.0.0-3.2.6",
37
- "@girs/soup-3.0": "^3.4.4-3.2.6"
34
+ "@girs/camel-1.2": "^1.2.0-3.2.8",
35
+ "@girs/ebookcontacts-1.2": "^1.2.0-3.2.8",
36
+ "@girs/edataserver-1.2": "^1.2.0-3.2.8",
37
+ "@girs/gio-2.0": "^2.77.0-3.2.8",
38
+ "@girs/gjs": "^3.2.8",
39
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
40
+ "@girs/gobject-2.0": "^2.77.0-3.2.8",
41
+ "@girs/json-1.0": "^1.7.1-3.2.8",
42
+ "@girs/libxml2-2.0": "^2.0.0-3.2.8",
43
+ "@girs/soup-3.0": "^3.4.2-3.2.8"
38
44
  },
39
45
  "devDependencies": {
40
46
  "typescript": "*"
@@ -51,7 +57,7 @@
51
57
  "license": "MIT",
52
58
  "repository": {
53
59
  "type": "git",
54
- "url": "git+https://github.com/gjsify/types.git"
60
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
55
61
  },
56
62
  "bugs": {
57
63
  "url": "https://github.com/gjsify/ts-for-gir/issues"