@girs/geoclue-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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/geoclue-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Geoclue-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for Geoclue-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
  GeoClue is a D-Bus geoinformation service. The goal of the Geoclue project is to make creating location-aware applications as simple as possible.
11
11
 
@@ -82,6 +82,19 @@ Now you have also type support for this, too:
82
82
  const Geoclue = imports.gi.Geoclue;
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).
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  declare module 'gi://Geoclue?version=2.0' {
4
3
  import Geoclue20 from '@girs/geoclue-2.0';
5
4
  export default Geoclue20;
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import Geoclue20 from '@girs/geoclue-2.0';
4
3
 
5
4
  declare global {
package/geoclue-2.0.d.cts CHANGED
@@ -135,6 +135,30 @@ export module Client {
135
135
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
136
136
  */
137
137
  time_threshold?: number | null
138
+ /**
139
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DesktopId">"DesktopId"</link>.
140
+ *
141
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
142
+ */
143
+ desktopId?: string | null
144
+ /**
145
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
146
+ *
147
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
148
+ */
149
+ distanceThreshold?: number | null
150
+ /**
151
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.RequestedAccuracyLevel">"RequestedAccuracyLevel"</link>.
152
+ *
153
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
154
+ */
155
+ requestedAccuracyLevel?: number | null
156
+ /**
157
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
158
+ *
159
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
160
+ */
161
+ timeThreshold?: number | null
138
162
  }
139
163
 
140
164
  }
@@ -155,12 +179,24 @@ export interface Client {
155
179
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
156
180
  */
157
181
  desktop_id: string | null
182
+ /**
183
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DesktopId">"DesktopId"</link>.
184
+ *
185
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
186
+ */
187
+ desktopId: string | null
158
188
  /**
159
189
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
160
190
  *
161
191
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
162
192
  */
163
193
  distance_threshold: number
194
+ /**
195
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
196
+ *
197
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
198
+ */
199
+ distanceThreshold: number
164
200
  /**
165
201
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.Location">"Location"</link>.
166
202
  *
@@ -173,12 +209,24 @@ export interface Client {
173
209
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
174
210
  */
175
211
  requested_accuracy_level: number
212
+ /**
213
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.RequestedAccuracyLevel">"RequestedAccuracyLevel"</link>.
214
+ *
215
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
216
+ */
217
+ requestedAccuracyLevel: number
176
218
  /**
177
219
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
178
220
  *
179
221
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
180
222
  */
181
223
  time_threshold: number
224
+ /**
225
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
226
+ *
227
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
228
+ */
229
+ timeThreshold: number
182
230
 
183
231
  // Owm methods of Geoclue-2.0.Geoclue.Client
184
232
 
@@ -551,6 +599,18 @@ export module Manager {
551
599
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
552
600
  */
553
601
  in_use?: boolean | null
602
+ /**
603
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link>.
604
+ *
605
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
606
+ */
607
+ availableAccuracyLevel?: number | null
608
+ /**
609
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
610
+ *
611
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
612
+ */
613
+ inUse?: boolean | null
554
614
  }
555
615
 
556
616
  }
@@ -565,12 +625,24 @@ export interface Manager {
565
625
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
566
626
  */
567
627
  available_accuracy_level: number
628
+ /**
629
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link>.
630
+ *
631
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
632
+ */
633
+ availableAccuracyLevel: number
568
634
  /**
569
635
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
570
636
  *
571
637
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
572
638
  */
573
639
  in_use: boolean
640
+ /**
641
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
642
+ *
643
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
644
+ */
645
+ inUse: boolean
574
646
 
575
647
  // Owm methods of Geoclue-2.0.Geoclue.Manager
576
648
 
@@ -1935,6 +2007,30 @@ export module Simple {
1935
2007
  * When set to 0 (default), it always emits the signal.
1936
2008
  */
1937
2009
  time_threshold?: number | null
2010
+ /**
2011
+ * The requested maximum accuracy level.
2012
+ */
2013
+ accuracyLevel?: AccuracyLevel | null
2014
+ /**
2015
+ * The Desktop ID of the application.
2016
+ */
2017
+ desktopId?: string | null
2018
+ /**
2019
+ * The current distance threshold in meters. This value is used by the
2020
+ * service when it gets new location info. If the distance moved is
2021
+ * below the threshold, it won't emit the LocationUpdated signal.
2022
+ *
2023
+ * When set to 0 (default), it always emits the signal.
2024
+ */
2025
+ distanceThreshold?: number | null
2026
+ /**
2027
+ * The current time threshold in seconds. This value is used by the
2028
+ * service when it gets new location info. If the time passed is
2029
+ * below the threshold, it won't emit the LocationUpdated signal.
2030
+ *
2031
+ * When set to 0 (default), it always emits the signal.
2032
+ */
2033
+ timeThreshold?: number | null
1938
2034
  }
1939
2035
 
1940
2036
  }
@@ -1947,6 +2043,10 @@ export interface Simple extends Gio.AsyncInitable {
1947
2043
  * The requested maximum accuracy level.
1948
2044
  */
1949
2045
  readonly accuracy_level: AccuracyLevel
2046
+ /**
2047
+ * The requested maximum accuracy level.
2048
+ */
2049
+ readonly accuracyLevel: AccuracyLevel
1950
2050
  /**
1951
2051
  * The client proxy. This is %NULL if `simple` is not using a client proxy
1952
2052
  * (i-e when inside the Flatpak sandbox).
@@ -1956,6 +2056,10 @@ export interface Simple extends Gio.AsyncInitable {
1956
2056
  * The Desktop ID of the application.
1957
2057
  */
1958
2058
  readonly desktop_id: string | null
2059
+ /**
2060
+ * The Desktop ID of the application.
2061
+ */
2062
+ readonly desktopId: string | null
1959
2063
  /**
1960
2064
  * The current distance threshold in meters. This value is used by the
1961
2065
  * service when it gets new location info. If the distance moved is
@@ -1964,6 +2068,14 @@ export interface Simple extends Gio.AsyncInitable {
1964
2068
  * When set to 0 (default), it always emits the signal.
1965
2069
  */
1966
2070
  readonly distance_threshold: number
2071
+ /**
2072
+ * The current distance threshold in meters. This value is used by the
2073
+ * service when it gets new location info. If the distance moved is
2074
+ * below the threshold, it won't emit the LocationUpdated signal.
2075
+ *
2076
+ * When set to 0 (default), it always emits the signal.
2077
+ */
2078
+ readonly distanceThreshold: number
1967
2079
  /**
1968
2080
  * The current location.
1969
2081
  */
@@ -1976,6 +2088,14 @@ export interface Simple extends Gio.AsyncInitable {
1976
2088
  * When set to 0 (default), it always emits the signal.
1977
2089
  */
1978
2090
  readonly time_threshold: number
2091
+ /**
2092
+ * The current time threshold in seconds. This value is used by the
2093
+ * service when it gets new location info. If the time passed is
2094
+ * below the threshold, it won't emit the LocationUpdated signal.
2095
+ *
2096
+ * When set to 0 (default), it always emits the signal.
2097
+ */
2098
+ readonly timeThreshold: number
1979
2099
 
1980
2100
  // Own fields of Geoclue-2.0.Geoclue.Simple
1981
2101
 
package/geoclue-2.0.d.ts CHANGED
@@ -137,6 +137,30 @@ module Client {
137
137
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
138
138
  */
139
139
  time_threshold?: number | null
140
+ /**
141
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DesktopId">"DesktopId"</link>.
142
+ *
143
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
144
+ */
145
+ desktopId?: string | null
146
+ /**
147
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
148
+ *
149
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
150
+ */
151
+ distanceThreshold?: number | null
152
+ /**
153
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.RequestedAccuracyLevel">"RequestedAccuracyLevel"</link>.
154
+ *
155
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
156
+ */
157
+ requestedAccuracyLevel?: number | null
158
+ /**
159
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
160
+ *
161
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
162
+ */
163
+ timeThreshold?: number | null
140
164
  }
141
165
 
142
166
  }
@@ -157,12 +181,24 @@ interface Client {
157
181
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
158
182
  */
159
183
  desktop_id: string | null
184
+ /**
185
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DesktopId">"DesktopId"</link>.
186
+ *
187
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
188
+ */
189
+ desktopId: string | null
160
190
  /**
161
191
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
162
192
  *
163
193
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
164
194
  */
165
195
  distance_threshold: number
196
+ /**
197
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.DistanceThreshold">"DistanceThreshold"</link>.
198
+ *
199
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
200
+ */
201
+ distanceThreshold: number
166
202
  /**
167
203
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.Location">"Location"</link>.
168
204
  *
@@ -175,12 +211,24 @@ interface Client {
175
211
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
176
212
  */
177
213
  requested_accuracy_level: number
214
+ /**
215
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.RequestedAccuracyLevel">"RequestedAccuracyLevel"</link>.
216
+ *
217
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
218
+ */
219
+ requestedAccuracyLevel: number
178
220
  /**
179
221
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
180
222
  *
181
223
  * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
182
224
  */
183
225
  time_threshold: number
226
+ /**
227
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Client.TimeThreshold">"TimeThreshold"</link>.
228
+ *
229
+ * Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
230
+ */
231
+ timeThreshold: number
184
232
 
185
233
  // Owm methods of Geoclue-2.0.Geoclue.Client
186
234
 
@@ -553,6 +601,18 @@ module Manager {
553
601
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
554
602
  */
555
603
  in_use?: boolean | null
604
+ /**
605
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link>.
606
+ *
607
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
608
+ */
609
+ availableAccuracyLevel?: number | null
610
+ /**
611
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
612
+ *
613
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
614
+ */
615
+ inUse?: boolean | null
556
616
  }
557
617
 
558
618
  }
@@ -567,12 +627,24 @@ interface Manager {
567
627
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
568
628
  */
569
629
  available_accuracy_level: number
630
+ /**
631
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link>.
632
+ *
633
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
634
+ */
635
+ availableAccuracyLevel: number
570
636
  /**
571
637
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
572
638
  *
573
639
  * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
574
640
  */
575
641
  in_use: boolean
642
+ /**
643
+ * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link>.
644
+ *
645
+ * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
646
+ */
647
+ inUse: boolean
576
648
 
577
649
  // Owm methods of Geoclue-2.0.Geoclue.Manager
578
650
 
@@ -1937,6 +2009,30 @@ module Simple {
1937
2009
  * When set to 0 (default), it always emits the signal.
1938
2010
  */
1939
2011
  time_threshold?: number | null
2012
+ /**
2013
+ * The requested maximum accuracy level.
2014
+ */
2015
+ accuracyLevel?: AccuracyLevel | null
2016
+ /**
2017
+ * The Desktop ID of the application.
2018
+ */
2019
+ desktopId?: string | null
2020
+ /**
2021
+ * The current distance threshold in meters. This value is used by the
2022
+ * service when it gets new location info. If the distance moved is
2023
+ * below the threshold, it won't emit the LocationUpdated signal.
2024
+ *
2025
+ * When set to 0 (default), it always emits the signal.
2026
+ */
2027
+ distanceThreshold?: number | null
2028
+ /**
2029
+ * The current time threshold in seconds. This value is used by the
2030
+ * service when it gets new location info. If the time passed is
2031
+ * below the threshold, it won't emit the LocationUpdated signal.
2032
+ *
2033
+ * When set to 0 (default), it always emits the signal.
2034
+ */
2035
+ timeThreshold?: number | null
1940
2036
  }
1941
2037
 
1942
2038
  }
@@ -1949,6 +2045,10 @@ interface Simple extends Gio.AsyncInitable {
1949
2045
  * The requested maximum accuracy level.
1950
2046
  */
1951
2047
  readonly accuracy_level: AccuracyLevel
2048
+ /**
2049
+ * The requested maximum accuracy level.
2050
+ */
2051
+ readonly accuracyLevel: AccuracyLevel
1952
2052
  /**
1953
2053
  * The client proxy. This is %NULL if `simple` is not using a client proxy
1954
2054
  * (i-e when inside the Flatpak sandbox).
@@ -1958,6 +2058,10 @@ interface Simple extends Gio.AsyncInitable {
1958
2058
  * The Desktop ID of the application.
1959
2059
  */
1960
2060
  readonly desktop_id: string | null
2061
+ /**
2062
+ * The Desktop ID of the application.
2063
+ */
2064
+ readonly desktopId: string | null
1961
2065
  /**
1962
2066
  * The current distance threshold in meters. This value is used by the
1963
2067
  * service when it gets new location info. If the distance moved is
@@ -1966,6 +2070,14 @@ interface Simple extends Gio.AsyncInitable {
1966
2070
  * When set to 0 (default), it always emits the signal.
1967
2071
  */
1968
2072
  readonly distance_threshold: number
2073
+ /**
2074
+ * The current distance threshold in meters. This value is used by the
2075
+ * service when it gets new location info. If the distance moved is
2076
+ * below the threshold, it won't emit the LocationUpdated signal.
2077
+ *
2078
+ * When set to 0 (default), it always emits the signal.
2079
+ */
2080
+ readonly distanceThreshold: number
1969
2081
  /**
1970
2082
  * The current location.
1971
2083
  */
@@ -1978,6 +2090,14 @@ interface Simple extends Gio.AsyncInitable {
1978
2090
  * When set to 0 (default), it always emits the signal.
1979
2091
  */
1980
2092
  readonly time_threshold: number
2093
+ /**
2094
+ * The current time threshold in seconds. This value is used by the
2095
+ * service when it gets new location info. If the time passed is
2096
+ * below the threshold, it won't emit the LocationUpdated signal.
2097
+ *
2098
+ * When set to 0 (default), it always emits the signal.
2099
+ */
2100
+ readonly timeThreshold: number
1981
2101
 
1982
2102
  // Own fields of Geoclue-2.0.Geoclue.Simple
1983
2103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/geoclue-2.0",
3
- "version": "2.0.0-3.2.4",
3
+ "version": "2.0.0-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for Geoclue-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "geoclue-2.0.js",
@@ -25,10 +25,10 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit geoclue-2.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.4",
29
- "@girs/gjs": "^3.2.4",
30
- "@girs/glib-2.0": "^2.78.0-3.2.4",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.4"
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": "*"