@girs/cloudproviders-0.3 4.2.0 → 4.3.0
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 +8 -8
- package/cloudproviders-0.3.d.ts +137 -29
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for CloudProviders-0.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for CloudProviders-0.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Install the type definitions with npm:
|
|
13
13
|
```bash
|
|
14
14
|
npm install @girs/cloudproviders-0.3
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import CloudProviders from '@girs/cloudproviders-0.3';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Ambient Modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
|
|
27
27
|
For this you need to include `@girs/cloudproviders-0.3` or `@girs/cloudproviders-0.3/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/cloudproviders-0.3'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import CloudProviders from 'gi://CloudProviders?version=0.3';
|
|
@@ -50,7 +50,7 @@ import CloudProviders from 'gi://CloudProviders?version=0.3';
|
|
|
50
50
|
|
|
51
51
|
### Global import
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
GJS's global `imports.gi` works too, with types.
|
|
54
54
|
For this you need to include `@girs/cloudproviders-0.3` or `@girs/cloudproviders-0.3/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/cloudproviders-0.3'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const CloudProviders = imports.gi.CloudProviders;
|
|
@@ -77,7 +77,7 @@ const CloudProviders = imports.gi.CloudProviders;
|
|
|
77
77
|
|
|
78
78
|
### Bundle
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
|
|
81
81
|
|
|
82
82
|
## Other packages
|
|
83
83
|
|
package/cloudproviders-0.3.d.ts
CHANGED
|
@@ -94,10 +94,12 @@ export namespace CloudProviders {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Base object for representing a single account for clients.
|
|
98
|
+
*
|
|
99
|
+
* CloudProvidersAccount is the basic object used to construct the integrator UI
|
|
98
100
|
* and actions that a provider will present to the user, from the client side.
|
|
99
101
|
* Integrators of the cloud providers can use this object to poll the
|
|
100
|
-
* {@link
|
|
102
|
+
* {@link Provider} menus, status and actions.
|
|
101
103
|
* @gir-type Class
|
|
102
104
|
*/
|
|
103
105
|
class Account extends GObject.Object {
|
|
@@ -105,49 +107,58 @@ export namespace CloudProviders {
|
|
|
105
107
|
|
|
106
108
|
// Properties
|
|
107
109
|
/**
|
|
110
|
+
* The action group associated with the account and menu model.
|
|
108
111
|
* @read-only
|
|
109
112
|
*/
|
|
110
113
|
get action_group(): Gio.ActionGroup;
|
|
111
114
|
|
|
112
115
|
/**
|
|
116
|
+
* The action group associated with the account and menu model.
|
|
113
117
|
* @read-only
|
|
114
118
|
*/
|
|
115
119
|
get actionGroup(): Gio.ActionGroup;
|
|
116
120
|
|
|
117
121
|
/**
|
|
122
|
+
* The icon representing the account.
|
|
118
123
|
* @read-only
|
|
119
124
|
*/
|
|
120
125
|
get icon(): Gio.Icon;
|
|
121
126
|
|
|
122
127
|
/**
|
|
128
|
+
* The menu model associated with the account.
|
|
123
129
|
* @read-only
|
|
124
130
|
*/
|
|
125
131
|
get menu_model(): Gio.MenuModel;
|
|
126
132
|
|
|
127
133
|
/**
|
|
134
|
+
* The menu model associated with the account.
|
|
128
135
|
* @read-only
|
|
129
136
|
*/
|
|
130
137
|
get menuModel(): Gio.MenuModel;
|
|
131
138
|
|
|
132
139
|
/**
|
|
140
|
+
* The name of the account.
|
|
133
141
|
* @read-only
|
|
134
142
|
* @default null
|
|
135
143
|
*/
|
|
136
144
|
get name(): string;
|
|
137
145
|
|
|
138
146
|
/**
|
|
147
|
+
* The path of the directory where files are located.
|
|
139
148
|
* @read-only
|
|
140
149
|
* @default null
|
|
141
150
|
*/
|
|
142
151
|
get path(): string;
|
|
143
152
|
|
|
144
153
|
/**
|
|
154
|
+
* The details of the account status.
|
|
145
155
|
* @read-only
|
|
146
156
|
* @default null
|
|
147
157
|
*/
|
|
148
158
|
get status_details(): string;
|
|
149
159
|
|
|
150
160
|
/**
|
|
161
|
+
* The details of the account status.
|
|
151
162
|
* @read-only
|
|
152
163
|
* @default null
|
|
153
164
|
*/
|
|
@@ -185,7 +196,7 @@ export namespace CloudProviders {
|
|
|
185
196
|
// Methods
|
|
186
197
|
/**
|
|
187
198
|
* Get the action group exported in addition to the {@link Gio.MenuModel} from
|
|
188
|
-
*
|
|
199
|
+
* {@link Account.get_menu_model}.
|
|
189
200
|
* @returns The action group exported by the cloud provider account
|
|
190
201
|
*/
|
|
191
202
|
get_action_group(): Gio.ActionGroup;
|
|
@@ -259,63 +270,86 @@ export namespace CloudProviders {
|
|
|
259
270
|
}
|
|
260
271
|
|
|
261
272
|
/**
|
|
273
|
+
* Base object for representing a cloud providers account
|
|
262
274
|
* @gir-type Class
|
|
263
275
|
*/
|
|
264
276
|
class AccountExporter extends GObject.Object {
|
|
265
277
|
static $gtype: GObject.GType<AccountExporter>;
|
|
266
278
|
|
|
267
279
|
// Properties
|
|
280
|
+
/**
|
|
281
|
+
* The action group associated with the account and menu model.
|
|
282
|
+
*/
|
|
268
283
|
get action_group(): Gio.ActionGroup;
|
|
269
284
|
set action_group(val: Gio.ActionGroup);
|
|
270
285
|
|
|
286
|
+
/**
|
|
287
|
+
* The action group associated with the account and menu model.
|
|
288
|
+
*/
|
|
271
289
|
get actionGroup(): Gio.ActionGroup;
|
|
272
290
|
set actionGroup(val: Gio.ActionGroup);
|
|
273
291
|
|
|
274
292
|
/**
|
|
293
|
+
* The bus name of the account.
|
|
275
294
|
* @construct-only
|
|
276
295
|
* @default null
|
|
277
296
|
*/
|
|
278
297
|
get bus_name(): string;
|
|
279
298
|
|
|
280
299
|
/**
|
|
300
|
+
* The bus name of the account.
|
|
281
301
|
* @construct-only
|
|
282
302
|
* @default null
|
|
283
303
|
*/
|
|
284
304
|
get busName(): string;
|
|
285
305
|
|
|
306
|
+
/**
|
|
307
|
+
* The icon representing the account.
|
|
308
|
+
*/
|
|
286
309
|
get icon(): Gio.Icon;
|
|
287
310
|
set icon(val: Gio.Icon);
|
|
288
311
|
|
|
312
|
+
/**
|
|
313
|
+
* The menu model associated with the account.
|
|
314
|
+
*/
|
|
289
315
|
get menu_model(): Gio.MenuModel;
|
|
290
316
|
set menu_model(val: Gio.MenuModel);
|
|
291
317
|
|
|
318
|
+
/**
|
|
319
|
+
* The menu model associated with the account.
|
|
320
|
+
*/
|
|
292
321
|
get menuModel(): Gio.MenuModel;
|
|
293
322
|
set menuModel(val: Gio.MenuModel);
|
|
294
323
|
|
|
295
324
|
/**
|
|
325
|
+
* The name of the account.
|
|
296
326
|
* @default null
|
|
297
327
|
*/
|
|
298
328
|
get name(): string;
|
|
299
329
|
set name(val: string);
|
|
300
330
|
|
|
301
331
|
/**
|
|
332
|
+
* The path of the directory where files are located.
|
|
302
333
|
* @default null
|
|
303
334
|
*/
|
|
304
335
|
get path(): string;
|
|
305
336
|
set path(val: string);
|
|
306
337
|
|
|
307
338
|
/**
|
|
339
|
+
* The provider associated with the account.
|
|
308
340
|
* @construct-only
|
|
309
341
|
*/
|
|
310
342
|
get provider(): ProviderExporter;
|
|
311
343
|
|
|
312
344
|
/**
|
|
345
|
+
* The details of the account status.
|
|
313
346
|
* @default null
|
|
314
347
|
*/
|
|
315
348
|
get status_details(): string;
|
|
316
349
|
set status_details(val: string);
|
|
317
350
|
|
|
318
351
|
/**
|
|
352
|
+
* The details of the account status.
|
|
319
353
|
* @default null
|
|
320
354
|
*/
|
|
321
355
|
get statusDetails(): string;
|
|
@@ -352,10 +386,9 @@ export namespace CloudProviders {
|
|
|
352
386
|
|
|
353
387
|
// Methods
|
|
354
388
|
/**
|
|
355
|
-
* In order for a menu
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
* @param action_group The GActionGroup to be used by the menu exported by cloud_providers_account_exporter_export_menu
|
|
389
|
+
* In order for a menu to receive events that will eventually call your callbacks, it needs the
|
|
390
|
+
* corresponding {@link Gio.ActionGroup}. Use this function to export it.
|
|
391
|
+
* @param action_group The action group to be used to render the menu
|
|
359
392
|
*/
|
|
360
393
|
set_action_group(action_group: Gio.ActionGroup): void;
|
|
361
394
|
|
|
@@ -366,7 +399,7 @@ export namespace CloudProviders {
|
|
|
366
399
|
|
|
367
400
|
/**
|
|
368
401
|
* One of the benefits of the integration is to display a menu with available
|
|
369
|
-
* options for an account. Use this function to export a
|
|
402
|
+
* options for an account. Use this function to export a {@link Gio.MenuModel} menu to be
|
|
370
403
|
* displayed by the chosen integration by the desktop environment or application.
|
|
371
404
|
* @param menu_model The menu model to export
|
|
372
405
|
*/
|
|
@@ -409,10 +442,11 @@ export namespace CloudProviders {
|
|
|
409
442
|
}
|
|
410
443
|
|
|
411
444
|
/**
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
*
|
|
445
|
+
* Singleton for tracking all providers.
|
|
446
|
+
*
|
|
447
|
+
* This is a singleton to track all the changes in all providers.
|
|
448
|
+
* Using this class, you can implement integration for all of them at once and represent them in the
|
|
449
|
+
* UI, track new providers added or removed and their status.
|
|
416
450
|
* @gir-type Class
|
|
417
451
|
*/
|
|
418
452
|
class Collector extends GObject.Object {
|
|
@@ -453,7 +487,8 @@ export namespace CloudProviders {
|
|
|
453
487
|
|
|
454
488
|
// Methods
|
|
455
489
|
/**
|
|
456
|
-
*
|
|
490
|
+
* Get the list of currently managed providers.
|
|
491
|
+
* @returns A list of {@link Provider} objects.
|
|
457
492
|
*/
|
|
458
493
|
get_providers(): Provider[];
|
|
459
494
|
|
|
@@ -851,9 +886,14 @@ export namespace CloudProviders {
|
|
|
851
886
|
/**
|
|
852
887
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
853
888
|
* implemented by `interface_`.
|
|
889
|
+
*
|
|
890
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
891
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
892
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
893
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
854
894
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
855
895
|
*/
|
|
856
|
-
get_info(): Gio.DBusInterfaceInfo;
|
|
896
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
857
897
|
|
|
858
898
|
/**
|
|
859
899
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -872,9 +912,14 @@ export namespace CloudProviders {
|
|
|
872
912
|
/**
|
|
873
913
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
874
914
|
* implemented by `interface_`.
|
|
915
|
+
*
|
|
916
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
917
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
918
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
919
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
875
920
|
* @virtual
|
|
876
921
|
*/
|
|
877
|
-
vfunc_get_info(): Gio.DBusInterfaceInfo;
|
|
922
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
878
923
|
|
|
879
924
|
/**
|
|
880
925
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -1095,9 +1140,20 @@ export namespace CloudProviders {
|
|
|
1095
1140
|
/**
|
|
1096
1141
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
1097
1142
|
* implemented by `interface_`.
|
|
1143
|
+
*
|
|
1144
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
1145
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
1146
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
1147
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
1098
1148
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
1099
1149
|
*/
|
|
1100
|
-
get_info(): Gio.DBusInterfaceInfo;
|
|
1150
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* @param args
|
|
1154
|
+
*/
|
|
1155
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.get_info
|
|
1156
|
+
get_info(...args: never[]): any;
|
|
1101
1157
|
|
|
1102
1158
|
/**
|
|
1103
1159
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -1116,9 +1172,21 @@ export namespace CloudProviders {
|
|
|
1116
1172
|
/**
|
|
1117
1173
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
1118
1174
|
* implemented by `interface_`.
|
|
1175
|
+
*
|
|
1176
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
1177
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
1178
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
1179
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
1119
1180
|
* @virtual
|
|
1120
1181
|
*/
|
|
1121
|
-
vfunc_get_info(): Gio.DBusInterfaceInfo;
|
|
1182
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* @param args
|
|
1186
|
+
* @virtual
|
|
1187
|
+
*/
|
|
1188
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.vfunc_get_info
|
|
1189
|
+
vfunc_get_info(...args: never[]): any;
|
|
1122
1190
|
|
|
1123
1191
|
/**
|
|
1124
1192
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -2250,9 +2318,14 @@ export namespace CloudProviders {
|
|
|
2250
2318
|
/**
|
|
2251
2319
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
2252
2320
|
* implemented by `interface_`.
|
|
2321
|
+
*
|
|
2322
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
2323
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
2324
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
2325
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
2253
2326
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
2254
2327
|
*/
|
|
2255
|
-
get_info(): Gio.DBusInterfaceInfo;
|
|
2328
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
2256
2329
|
|
|
2257
2330
|
/**
|
|
2258
2331
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -2271,9 +2344,14 @@ export namespace CloudProviders {
|
|
|
2271
2344
|
/**
|
|
2272
2345
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
2273
2346
|
* implemented by `interface_`.
|
|
2347
|
+
*
|
|
2348
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
2349
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
2350
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
2351
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
2274
2352
|
* @virtual
|
|
2275
2353
|
*/
|
|
2276
|
-
vfunc_get_info(): Gio.DBusInterfaceInfo;
|
|
2354
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
2277
2355
|
|
|
2278
2356
|
/**
|
|
2279
2357
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -2440,9 +2518,20 @@ export namespace CloudProviders {
|
|
|
2440
2518
|
/**
|
|
2441
2519
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
2442
2520
|
* implemented by `interface_`.
|
|
2521
|
+
*
|
|
2522
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
2523
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
2524
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
2525
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
2443
2526
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
2444
2527
|
*/
|
|
2445
|
-
get_info(): Gio.DBusInterfaceInfo;
|
|
2528
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* @param args
|
|
2532
|
+
*/
|
|
2533
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.get_info
|
|
2534
|
+
get_info(...args: never[]): any;
|
|
2446
2535
|
|
|
2447
2536
|
/**
|
|
2448
2537
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -2461,9 +2550,21 @@ export namespace CloudProviders {
|
|
|
2461
2550
|
/**
|
|
2462
2551
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
2463
2552
|
* implemented by `interface_`.
|
|
2553
|
+
*
|
|
2554
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
2555
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
2556
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
2557
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
2558
|
+
* @virtual
|
|
2559
|
+
*/
|
|
2560
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* @param args
|
|
2464
2564
|
* @virtual
|
|
2465
2565
|
*/
|
|
2466
|
-
|
|
2566
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.vfunc_get_info
|
|
2567
|
+
vfunc_get_info(...args: never[]): any;
|
|
2467
2568
|
|
|
2468
2569
|
/**
|
|
2469
2570
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -2499,9 +2600,10 @@ export namespace CloudProviders {
|
|
|
2499
2600
|
}
|
|
2500
2601
|
|
|
2501
2602
|
/**
|
|
2502
|
-
*
|
|
2503
|
-
*
|
|
2504
|
-
*
|
|
2603
|
+
* Base object for representing a single provider for clients.
|
|
2604
|
+
*
|
|
2605
|
+
* This is the basic object object for client implementers that contains the properties of the
|
|
2606
|
+
* provider such as name, and the accounts associated with it.
|
|
2505
2607
|
* @gir-type Class
|
|
2506
2608
|
*/
|
|
2507
2609
|
class Provider extends GObject.Object {
|
|
@@ -2509,6 +2611,7 @@ export namespace CloudProviders {
|
|
|
2509
2611
|
|
|
2510
2612
|
// Properties
|
|
2511
2613
|
/**
|
|
2614
|
+
* The name of the cloud provider.
|
|
2512
2615
|
* @read-only
|
|
2513
2616
|
* @default null
|
|
2514
2617
|
*/
|
|
@@ -2545,7 +2648,8 @@ export namespace CloudProviders {
|
|
|
2545
2648
|
|
|
2546
2649
|
// Methods
|
|
2547
2650
|
/**
|
|
2548
|
-
*
|
|
2651
|
+
* Get the list of accounts from this provider.
|
|
2652
|
+
* @returns A list of {@link Account} objects.
|
|
2549
2653
|
*/
|
|
2550
2654
|
get_accounts(): Account[];
|
|
2551
2655
|
|
|
@@ -2574,9 +2678,7 @@ export namespace CloudProviders {
|
|
|
2574
2678
|
}
|
|
2575
2679
|
|
|
2576
2680
|
/**
|
|
2577
|
-
*
|
|
2578
|
-
* Multiple {@link CloudProviders.AccountExporter} objects can be added with `cloud_providers_provider_exporter_add_account()`
|
|
2579
|
-
* After adding the initial set of accounts `cloud_providers_provider_exporter_export_objects()` must be called.
|
|
2681
|
+
* Base object for representing a single single provider.
|
|
2580
2682
|
* @gir-type Class
|
|
2581
2683
|
*/
|
|
2582
2684
|
class ProviderExporter extends GObject.Object {
|
|
@@ -2584,35 +2686,41 @@ export namespace CloudProviders {
|
|
|
2584
2686
|
|
|
2585
2687
|
// Properties
|
|
2586
2688
|
/**
|
|
2689
|
+
* The bus connection object for the provider.
|
|
2587
2690
|
* @construct-only
|
|
2588
2691
|
*/
|
|
2589
2692
|
get bus(): Gio.DBusConnection;
|
|
2590
2693
|
|
|
2591
2694
|
/**
|
|
2695
|
+
* The bus name of the provider.
|
|
2592
2696
|
* @construct-only
|
|
2593
2697
|
* @default null
|
|
2594
2698
|
*/
|
|
2595
2699
|
get bus_name(): string;
|
|
2596
2700
|
|
|
2597
2701
|
/**
|
|
2702
|
+
* The bus name of the provider.
|
|
2598
2703
|
* @construct-only
|
|
2599
2704
|
* @default null
|
|
2600
2705
|
*/
|
|
2601
2706
|
get busName(): string;
|
|
2602
2707
|
|
|
2603
2708
|
/**
|
|
2709
|
+
* The bus path of the provider.
|
|
2604
2710
|
* @construct-only
|
|
2605
2711
|
* @default null
|
|
2606
2712
|
*/
|
|
2607
2713
|
get bus_path(): string;
|
|
2608
2714
|
|
|
2609
2715
|
/**
|
|
2716
|
+
* The bus path of the provider.
|
|
2610
2717
|
* @construct-only
|
|
2611
2718
|
* @default null
|
|
2612
2719
|
*/
|
|
2613
2720
|
get busPath(): string;
|
|
2614
2721
|
|
|
2615
2722
|
/**
|
|
2723
|
+
* The name of the cloud provider.
|
|
2616
2724
|
* @default null
|
|
2617
2725
|
*/
|
|
2618
2726
|
get name(): string;
|
|
@@ -2652,7 +2760,7 @@ export namespace CloudProviders {
|
|
|
2652
2760
|
|
|
2653
2761
|
/**
|
|
2654
2762
|
* Each cloud provider can have a variety of account associated with it. Use this
|
|
2655
|
-
* function to remove the accounts that were added when created by
|
|
2763
|
+
* function to remove the accounts that were added when created by {@link AccountExporter.new}.
|
|
2656
2764
|
* @param account The account object
|
|
2657
2765
|
*/
|
|
2658
2766
|
remove_account(account: AccountExporter): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cloudproviders-0.3",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for CloudProviders-0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cloudproviders-0.3.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "^4.
|
|
35
|
-
"@girs/gio-2.0": "^4.
|
|
36
|
-
"@girs/gobject-2.0": "^4.
|
|
37
|
-
"@girs/glib-2.0": "^4.
|
|
38
|
-
"@girs/gmodule-2.0": "^4.
|
|
34
|
+
"@girs/gjs": "^4.3.0",
|
|
35
|
+
"@girs/gio-2.0": "^4.3.0",
|
|
36
|
+
"@girs/gobject-2.0": "^4.3.0",
|
|
37
|
+
"@girs/glib-2.0": "^4.3.0",
|
|
38
|
+
"@girs/gmodule-2.0": "^4.3.0" },
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "*"
|
|
41
41
|
},
|