@girs/fwupd-2.0 2.0.0-3.2.4 → 2.0.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/fwupd-2.0-ambient.d.ts +0 -1
- package/fwupd-2.0-import.d.ts +0 -1
- package/fwupd-2.0.d.cts +50 -0
- package/fwupd-2.0.d.ts +50 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Fwupd-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Fwupd-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
|
|
9
9
|
|
|
10
10
|
This project aims to make updating firmware on Linux automatic, safe and reliable.
|
|
11
11
|
|
|
@@ -82,6 +82,19 @@ Now you have also type support for this, too:
|
|
|
82
82
|
const Fwupd = imports.gi.Fwupd;
|
|
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/fwupd-2.0-ambient.d.ts
CHANGED
package/fwupd-2.0-import.d.ts
CHANGED
package/fwupd-2.0.d.cts
CHANGED
|
@@ -1007,18 +1007,34 @@ export interface Client {
|
|
|
1007
1007
|
* The daemon version number.
|
|
1008
1008
|
*/
|
|
1009
1009
|
readonly daemon_version: string | null
|
|
1010
|
+
/**
|
|
1011
|
+
* The daemon version number.
|
|
1012
|
+
*/
|
|
1013
|
+
readonly daemonVersion: string | null
|
|
1010
1014
|
/**
|
|
1011
1015
|
* The host machine-id string
|
|
1012
1016
|
*/
|
|
1013
1017
|
readonly host_machine_id: string | null
|
|
1018
|
+
/**
|
|
1019
|
+
* The host machine-id string
|
|
1020
|
+
*/
|
|
1021
|
+
readonly hostMachineId: string | null
|
|
1014
1022
|
/**
|
|
1015
1023
|
* The host product string
|
|
1016
1024
|
*/
|
|
1017
1025
|
readonly host_product: string | null
|
|
1026
|
+
/**
|
|
1027
|
+
* The host product string
|
|
1028
|
+
*/
|
|
1029
|
+
readonly hostProduct: string | null
|
|
1018
1030
|
/**
|
|
1019
1031
|
* The host machine-id string
|
|
1020
1032
|
*/
|
|
1021
1033
|
readonly host_security_id: string | null
|
|
1034
|
+
/**
|
|
1035
|
+
* The host machine-id string
|
|
1036
|
+
*/
|
|
1037
|
+
readonly hostSecurityId: string | null
|
|
1022
1038
|
/**
|
|
1023
1039
|
* If the daemon is running in an interactive terminal
|
|
1024
1040
|
*/
|
|
@@ -1031,6 +1047,10 @@ export interface Client {
|
|
|
1031
1047
|
* The libsoup session, now unused.
|
|
1032
1048
|
*/
|
|
1033
1049
|
readonly soup_session: GObject.Object
|
|
1050
|
+
/**
|
|
1051
|
+
* The libsoup session, now unused.
|
|
1052
|
+
*/
|
|
1053
|
+
readonly soupSession: GObject.Object
|
|
1034
1054
|
/**
|
|
1035
1055
|
* The last-reported status of the daemon.
|
|
1036
1056
|
*/
|
|
@@ -2679,6 +2699,8 @@ export module Device {
|
|
|
2679
2699
|
status?: number | null
|
|
2680
2700
|
update_state?: number | null
|
|
2681
2701
|
version_format?: number | null
|
|
2702
|
+
updateState?: number | null
|
|
2703
|
+
versionFormat?: number | null
|
|
2682
2704
|
}
|
|
2683
2705
|
|
|
2684
2706
|
}
|
|
@@ -2692,7 +2714,9 @@ export interface Device {
|
|
|
2692
2714
|
protocol: string | null
|
|
2693
2715
|
status: number
|
|
2694
2716
|
update_state: number
|
|
2717
|
+
updateState: number
|
|
2695
2718
|
version_format: number
|
|
2719
|
+
versionFormat: number
|
|
2696
2720
|
|
|
2697
2721
|
// Own fields of Fwupd-2.0.Fwupd.Device
|
|
2698
2722
|
|
|
@@ -3844,6 +3868,19 @@ export module Remote {
|
|
|
3844
3868
|
* The remote ID.
|
|
3845
3869
|
*/
|
|
3846
3870
|
id?: string | null
|
|
3871
|
+
/**
|
|
3872
|
+
* If firmware from the remote should be checked against the system
|
|
3873
|
+
* list of approved firmware.
|
|
3874
|
+
*/
|
|
3875
|
+
approvalRequired?: boolean | null
|
|
3876
|
+
/**
|
|
3877
|
+
* The behavior for auto-uploading reports.
|
|
3878
|
+
*/
|
|
3879
|
+
automaticReports?: boolean | null
|
|
3880
|
+
/**
|
|
3881
|
+
* The behavior for auto-uploading security reports.
|
|
3882
|
+
*/
|
|
3883
|
+
automaticSecurityReports?: boolean | null
|
|
3847
3884
|
}
|
|
3848
3885
|
|
|
3849
3886
|
}
|
|
@@ -3857,14 +3894,27 @@ export interface Remote {
|
|
|
3857
3894
|
* list of approved firmware.
|
|
3858
3895
|
*/
|
|
3859
3896
|
approval_required: boolean
|
|
3897
|
+
/**
|
|
3898
|
+
* If firmware from the remote should be checked against the system
|
|
3899
|
+
* list of approved firmware.
|
|
3900
|
+
*/
|
|
3901
|
+
approvalRequired: boolean
|
|
3860
3902
|
/**
|
|
3861
3903
|
* The behavior for auto-uploading reports.
|
|
3862
3904
|
*/
|
|
3863
3905
|
automatic_reports: boolean
|
|
3906
|
+
/**
|
|
3907
|
+
* The behavior for auto-uploading reports.
|
|
3908
|
+
*/
|
|
3909
|
+
automaticReports: boolean
|
|
3864
3910
|
/**
|
|
3865
3911
|
* The behavior for auto-uploading security reports.
|
|
3866
3912
|
*/
|
|
3867
3913
|
automatic_security_reports: boolean
|
|
3914
|
+
/**
|
|
3915
|
+
* The behavior for auto-uploading security reports.
|
|
3916
|
+
*/
|
|
3917
|
+
automaticSecurityReports: boolean
|
|
3868
3918
|
/**
|
|
3869
3919
|
* If the remote is enabled and should be used.
|
|
3870
3920
|
*/
|
package/fwupd-2.0.d.ts
CHANGED
|
@@ -1009,18 +1009,34 @@ interface Client {
|
|
|
1009
1009
|
* The daemon version number.
|
|
1010
1010
|
*/
|
|
1011
1011
|
readonly daemon_version: string | null
|
|
1012
|
+
/**
|
|
1013
|
+
* The daemon version number.
|
|
1014
|
+
*/
|
|
1015
|
+
readonly daemonVersion: string | null
|
|
1012
1016
|
/**
|
|
1013
1017
|
* The host machine-id string
|
|
1014
1018
|
*/
|
|
1015
1019
|
readonly host_machine_id: string | null
|
|
1020
|
+
/**
|
|
1021
|
+
* The host machine-id string
|
|
1022
|
+
*/
|
|
1023
|
+
readonly hostMachineId: string | null
|
|
1016
1024
|
/**
|
|
1017
1025
|
* The host product string
|
|
1018
1026
|
*/
|
|
1019
1027
|
readonly host_product: string | null
|
|
1028
|
+
/**
|
|
1029
|
+
* The host product string
|
|
1030
|
+
*/
|
|
1031
|
+
readonly hostProduct: string | null
|
|
1020
1032
|
/**
|
|
1021
1033
|
* The host machine-id string
|
|
1022
1034
|
*/
|
|
1023
1035
|
readonly host_security_id: string | null
|
|
1036
|
+
/**
|
|
1037
|
+
* The host machine-id string
|
|
1038
|
+
*/
|
|
1039
|
+
readonly hostSecurityId: string | null
|
|
1024
1040
|
/**
|
|
1025
1041
|
* If the daemon is running in an interactive terminal
|
|
1026
1042
|
*/
|
|
@@ -1033,6 +1049,10 @@ interface Client {
|
|
|
1033
1049
|
* The libsoup session, now unused.
|
|
1034
1050
|
*/
|
|
1035
1051
|
readonly soup_session: GObject.Object
|
|
1052
|
+
/**
|
|
1053
|
+
* The libsoup session, now unused.
|
|
1054
|
+
*/
|
|
1055
|
+
readonly soupSession: GObject.Object
|
|
1036
1056
|
/**
|
|
1037
1057
|
* The last-reported status of the daemon.
|
|
1038
1058
|
*/
|
|
@@ -2681,6 +2701,8 @@ module Device {
|
|
|
2681
2701
|
status?: number | null
|
|
2682
2702
|
update_state?: number | null
|
|
2683
2703
|
version_format?: number | null
|
|
2704
|
+
updateState?: number | null
|
|
2705
|
+
versionFormat?: number | null
|
|
2684
2706
|
}
|
|
2685
2707
|
|
|
2686
2708
|
}
|
|
@@ -2694,7 +2716,9 @@ interface Device {
|
|
|
2694
2716
|
protocol: string | null
|
|
2695
2717
|
status: number
|
|
2696
2718
|
update_state: number
|
|
2719
|
+
updateState: number
|
|
2697
2720
|
version_format: number
|
|
2721
|
+
versionFormat: number
|
|
2698
2722
|
|
|
2699
2723
|
// Own fields of Fwupd-2.0.Fwupd.Device
|
|
2700
2724
|
|
|
@@ -3846,6 +3870,19 @@ module Remote {
|
|
|
3846
3870
|
* The remote ID.
|
|
3847
3871
|
*/
|
|
3848
3872
|
id?: string | null
|
|
3873
|
+
/**
|
|
3874
|
+
* If firmware from the remote should be checked against the system
|
|
3875
|
+
* list of approved firmware.
|
|
3876
|
+
*/
|
|
3877
|
+
approvalRequired?: boolean | null
|
|
3878
|
+
/**
|
|
3879
|
+
* The behavior for auto-uploading reports.
|
|
3880
|
+
*/
|
|
3881
|
+
automaticReports?: boolean | null
|
|
3882
|
+
/**
|
|
3883
|
+
* The behavior for auto-uploading security reports.
|
|
3884
|
+
*/
|
|
3885
|
+
automaticSecurityReports?: boolean | null
|
|
3849
3886
|
}
|
|
3850
3887
|
|
|
3851
3888
|
}
|
|
@@ -3859,14 +3896,27 @@ interface Remote {
|
|
|
3859
3896
|
* list of approved firmware.
|
|
3860
3897
|
*/
|
|
3861
3898
|
approval_required: boolean
|
|
3899
|
+
/**
|
|
3900
|
+
* If firmware from the remote should be checked against the system
|
|
3901
|
+
* list of approved firmware.
|
|
3902
|
+
*/
|
|
3903
|
+
approvalRequired: boolean
|
|
3862
3904
|
/**
|
|
3863
3905
|
* The behavior for auto-uploading reports.
|
|
3864
3906
|
*/
|
|
3865
3907
|
automatic_reports: boolean
|
|
3908
|
+
/**
|
|
3909
|
+
* The behavior for auto-uploading reports.
|
|
3910
|
+
*/
|
|
3911
|
+
automaticReports: boolean
|
|
3866
3912
|
/**
|
|
3867
3913
|
* The behavior for auto-uploading security reports.
|
|
3868
3914
|
*/
|
|
3869
3915
|
automatic_security_reports: boolean
|
|
3916
|
+
/**
|
|
3917
|
+
* The behavior for auto-uploading security reports.
|
|
3918
|
+
*/
|
|
3919
|
+
automaticSecurityReports: boolean
|
|
3870
3920
|
/**
|
|
3871
3921
|
* If the remote is enabled and should be used.
|
|
3872
3922
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/fwupd-2.0",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.6",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Fwupd-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "fwupd-2.0.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit fwupd-2.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
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
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "*"
|