@girs/ebook-1.2 1.2.0-3.2.4 → 1.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 +14 -1
- package/ebook-1.2-ambient.d.ts +0 -1
- package/ebook-1.2-import.d.ts +0 -1
- package/ebook-1.2.d.cts +40 -0
- package/ebook-1.2.d.ts +40 -0
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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.
|
|
9
9
|
|
|
10
10
|
This package is a client library for evolution addressbooks.
|
|
11
11
|
|
|
@@ -82,6 +82,19 @@ Now you have also type support for this, too:
|
|
|
82
82
|
const EBook = imports.gi.EBook;
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
+
|
|
86
|
+
### ESM vs. CommonJS
|
|
87
|
+
|
|
88
|
+
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
|
|
89
|
+
|
|
90
|
+
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.
|
|
91
|
+
|
|
92
|
+
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.
|
|
93
|
+
|
|
94
|
+
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.
|
|
95
|
+
|
|
96
|
+
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.
|
|
97
|
+
|
|
85
98
|
### Bundle
|
|
86
99
|
|
|
87
100
|
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/ebook-1.2-ambient.d.ts
CHANGED
package/ebook-1.2-import.d.ts
CHANGED
package/ebook-1.2.d.cts
CHANGED
|
@@ -713,6 +713,22 @@ export module BookClientCursor {
|
|
|
713
713
|
* </para></note>
|
|
714
714
|
*/
|
|
715
715
|
sort_fields?: string[] | null
|
|
716
|
+
/**
|
|
717
|
+
* The D-Bus object path to find the server side cursor object.
|
|
718
|
+
*
|
|
719
|
+
* <note><para>This is an internal parameter for constructing the
|
|
720
|
+
* cursor, to construct the cursor use e_book_client_get_cursor().
|
|
721
|
+
* </para></note>
|
|
722
|
+
*/
|
|
723
|
+
objectPath?: string | null
|
|
724
|
+
/**
|
|
725
|
+
* The #EContactField names to sort this cursor with
|
|
726
|
+
*
|
|
727
|
+
* <note><para>This is an internal parameter for constructing the
|
|
728
|
+
* cursor, to construct the cursor use e_book_client_get_cursor().
|
|
729
|
+
* </para></note>
|
|
730
|
+
*/
|
|
731
|
+
sortFields?: string[] | null
|
|
716
732
|
}
|
|
717
733
|
|
|
718
734
|
}
|
|
@@ -767,6 +783,14 @@ export interface BookClientCursor extends Gio.Initable {
|
|
|
767
783
|
* </para></note>
|
|
768
784
|
*/
|
|
769
785
|
readonly object_path: string | null
|
|
786
|
+
/**
|
|
787
|
+
* The D-Bus object path to find the server side cursor object.
|
|
788
|
+
*
|
|
789
|
+
* <note><para>This is an internal parameter for constructing the
|
|
790
|
+
* cursor, to construct the cursor use e_book_client_get_cursor().
|
|
791
|
+
* </para></note>
|
|
792
|
+
*/
|
|
793
|
+
readonly objectPath: string | null
|
|
770
794
|
/**
|
|
771
795
|
* The current cursor position in the cursor's result list.
|
|
772
796
|
*
|
|
@@ -795,6 +819,14 @@ export interface BookClientCursor extends Gio.Initable {
|
|
|
795
819
|
* </para></note>
|
|
796
820
|
*/
|
|
797
821
|
readonly sort_fields: string[]
|
|
822
|
+
/**
|
|
823
|
+
* The #EContactField names to sort this cursor with
|
|
824
|
+
*
|
|
825
|
+
* <note><para>This is an internal parameter for constructing the
|
|
826
|
+
* cursor, to construct the cursor use e_book_client_get_cursor().
|
|
827
|
+
* </para></note>
|
|
828
|
+
*/
|
|
829
|
+
readonly sortFields: string[]
|
|
798
830
|
/**
|
|
799
831
|
* The total number of contacts which satisfy the cursor's query.
|
|
800
832
|
*
|
|
@@ -1137,6 +1169,7 @@ export module BookClientView {
|
|
|
1137
1169
|
client?: BookClient | null
|
|
1138
1170
|
connection?: Gio.DBusConnection | null
|
|
1139
1171
|
object_path?: string | null
|
|
1172
|
+
objectPath?: string | null
|
|
1140
1173
|
}
|
|
1141
1174
|
|
|
1142
1175
|
}
|
|
@@ -1162,7 +1195,14 @@ export interface BookClientView extends Gio.Initable {
|
|
|
1162
1195
|
* Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
|
|
1163
1196
|
*/
|
|
1164
1197
|
readonly n_total: number
|
|
1198
|
+
/**
|
|
1199
|
+
* How many contacts are available in the view.
|
|
1200
|
+
*
|
|
1201
|
+
* Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
|
|
1202
|
+
*/
|
|
1203
|
+
readonly nTotal: number
|
|
1165
1204
|
readonly object_path: string | null
|
|
1205
|
+
readonly objectPath: string | null
|
|
1166
1206
|
|
|
1167
1207
|
// Owm methods of EBook-1.2.EBook.BookClientView
|
|
1168
1208
|
|
package/ebook-1.2.d.ts
CHANGED
|
@@ -715,6 +715,22 @@ module BookClientCursor {
|
|
|
715
715
|
* </para></note>
|
|
716
716
|
*/
|
|
717
717
|
sort_fields?: string[] | null
|
|
718
|
+
/**
|
|
719
|
+
* The D-Bus object path to find the server side cursor object.
|
|
720
|
+
*
|
|
721
|
+
* <note><para>This is an internal parameter for constructing the
|
|
722
|
+
* cursor, to construct the cursor use e_book_client_get_cursor().
|
|
723
|
+
* </para></note>
|
|
724
|
+
*/
|
|
725
|
+
objectPath?: string | null
|
|
726
|
+
/**
|
|
727
|
+
* The #EContactField names to sort this cursor with
|
|
728
|
+
*
|
|
729
|
+
* <note><para>This is an internal parameter for constructing the
|
|
730
|
+
* cursor, to construct the cursor use e_book_client_get_cursor().
|
|
731
|
+
* </para></note>
|
|
732
|
+
*/
|
|
733
|
+
sortFields?: string[] | null
|
|
718
734
|
}
|
|
719
735
|
|
|
720
736
|
}
|
|
@@ -769,6 +785,14 @@ interface BookClientCursor extends Gio.Initable {
|
|
|
769
785
|
* </para></note>
|
|
770
786
|
*/
|
|
771
787
|
readonly object_path: string | null
|
|
788
|
+
/**
|
|
789
|
+
* The D-Bus object path to find the server side cursor object.
|
|
790
|
+
*
|
|
791
|
+
* <note><para>This is an internal parameter for constructing the
|
|
792
|
+
* cursor, to construct the cursor use e_book_client_get_cursor().
|
|
793
|
+
* </para></note>
|
|
794
|
+
*/
|
|
795
|
+
readonly objectPath: string | null
|
|
772
796
|
/**
|
|
773
797
|
* The current cursor position in the cursor's result list.
|
|
774
798
|
*
|
|
@@ -797,6 +821,14 @@ interface BookClientCursor extends Gio.Initable {
|
|
|
797
821
|
* </para></note>
|
|
798
822
|
*/
|
|
799
823
|
readonly sort_fields: string[]
|
|
824
|
+
/**
|
|
825
|
+
* The #EContactField names to sort this cursor with
|
|
826
|
+
*
|
|
827
|
+
* <note><para>This is an internal parameter for constructing the
|
|
828
|
+
* cursor, to construct the cursor use e_book_client_get_cursor().
|
|
829
|
+
* </para></note>
|
|
830
|
+
*/
|
|
831
|
+
readonly sortFields: string[]
|
|
800
832
|
/**
|
|
801
833
|
* The total number of contacts which satisfy the cursor's query.
|
|
802
834
|
*
|
|
@@ -1139,6 +1171,7 @@ module BookClientView {
|
|
|
1139
1171
|
client?: BookClient | null
|
|
1140
1172
|
connection?: Gio.DBusConnection | null
|
|
1141
1173
|
object_path?: string | null
|
|
1174
|
+
objectPath?: string | null
|
|
1142
1175
|
}
|
|
1143
1176
|
|
|
1144
1177
|
}
|
|
@@ -1164,7 +1197,14 @@ interface BookClientView extends Gio.Initable {
|
|
|
1164
1197
|
* Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
|
|
1165
1198
|
*/
|
|
1166
1199
|
readonly n_total: number
|
|
1200
|
+
/**
|
|
1201
|
+
* How many contacts are available in the view.
|
|
1202
|
+
*
|
|
1203
|
+
* Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
|
|
1204
|
+
*/
|
|
1205
|
+
readonly nTotal: number
|
|
1167
1206
|
readonly object_path: string | null
|
|
1207
|
+
readonly objectPath: string | null
|
|
1168
1208
|
|
|
1169
1209
|
// Owm methods of EBook-1.2.EBook.BookClientView
|
|
1170
1210
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/ebook-1.2",
|
|
3
|
-
"version": "1.2.0-3.2.
|
|
3
|
+
"version": "1.2.0-3.2.6",
|
|
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",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit ebook-1.2.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/camel-1.2": "^1.2.0-3.2.
|
|
29
|
-
"@girs/ebookcontacts-1.2": "^1.2.0-3.2.
|
|
30
|
-
"@girs/edataserver-1.2": "^1.2.0-3.2.
|
|
31
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/gjs": "^3.2.
|
|
33
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
34
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
35
|
-
"@girs/json-1.0": "^1.7.1-3.2.
|
|
36
|
-
"@girs/libxml2-2.0": "^2.0.0-3.2.
|
|
37
|
-
"@girs/soup-3.0": "^3.4.4-3.2.
|
|
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"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "*"
|