@girs/appstreambuilder-1.0 1.0.0-3.2.6 → 1.0.0-3.2.7
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 +1 -1
- package/appstreambuilder-1.0.d.cts +51 -51
- package/appstreambuilder-1.0.d.ts +51 -51
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for AppStreamBuilder-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for AppStreamBuilder-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -188,7 +188,7 @@ export class App extends AppStreamGlib.App {
|
|
|
188
188
|
* @param id The ID for the package, or %NULL
|
|
189
189
|
* @returns a #AsbApp
|
|
190
190
|
*/
|
|
191
|
-
constructor(pkg: Package, id: string
|
|
191
|
+
constructor(pkg: Package, id: string)
|
|
192
192
|
/**
|
|
193
193
|
* Creates a new application object.
|
|
194
194
|
* @constructor
|
|
@@ -196,7 +196,7 @@ export class App extends AppStreamGlib.App {
|
|
|
196
196
|
* @param id The ID for the package, or %NULL
|
|
197
197
|
* @returns a #AsbApp
|
|
198
198
|
*/
|
|
199
|
-
static new(pkg: Package, id: string
|
|
199
|
+
static new(pkg: Package, id: string): App
|
|
200
200
|
|
|
201
201
|
// Overloads of new
|
|
202
202
|
|
|
@@ -237,7 +237,7 @@ export interface Context {
|
|
|
237
237
|
* @param filename package filename
|
|
238
238
|
* @returns %TRUE for success, %FALSE otherwise
|
|
239
239
|
*/
|
|
240
|
-
add_filename(filename: string
|
|
240
|
+
add_filename(filename: string): boolean
|
|
241
241
|
/**
|
|
242
242
|
* Adds a package to the list of packages to be processed
|
|
243
243
|
* @param pkg A #AsbPackage
|
|
@@ -248,13 +248,13 @@ export interface Context {
|
|
|
248
248
|
* @param pkgname a package name
|
|
249
249
|
* @returns a #AsbPackage, or %NULL for not found.
|
|
250
250
|
*/
|
|
251
|
-
find_by_pkgname(pkgname: string
|
|
251
|
+
find_by_pkgname(pkgname: string): Package
|
|
252
252
|
/**
|
|
253
253
|
* This function used to find an application in the cache, and now does nothing.
|
|
254
254
|
* @param filename cache-id
|
|
255
255
|
* @returns always %FALSE
|
|
256
256
|
*/
|
|
257
|
-
find_in_cache(filename: string
|
|
257
|
+
find_in_cache(filename: string): boolean
|
|
258
258
|
/**
|
|
259
259
|
* Gets the target metadata API version.
|
|
260
260
|
* @returns floating point
|
|
@@ -264,7 +264,7 @@ export interface Context {
|
|
|
264
264
|
* Gets the screenshot directory to use
|
|
265
265
|
* @returns directory
|
|
266
266
|
*/
|
|
267
|
-
get_cache_dir(): string
|
|
267
|
+
get_cache_dir(): string
|
|
268
268
|
/**
|
|
269
269
|
* Gets one specific build flag.
|
|
270
270
|
* @param flag A #AsbContextFlags
|
|
@@ -290,7 +290,7 @@ export interface Context {
|
|
|
290
290
|
* Gets the temporary directory to use
|
|
291
291
|
* @returns directory
|
|
292
292
|
*/
|
|
293
|
-
get_temp_dir(): string
|
|
293
|
+
get_temp_dir(): string
|
|
294
294
|
/**
|
|
295
295
|
* Processes all the packages that have been added to the context.
|
|
296
296
|
* @returns %TRUE for success, %FALSE otherwise
|
|
@@ -305,12 +305,12 @@ export interface Context {
|
|
|
305
305
|
* Sets the basename for the two metadata files.
|
|
306
306
|
* @param basename AppStream file basename, e.g. "appstream"
|
|
307
307
|
*/
|
|
308
|
-
set_basename(basename: string
|
|
308
|
+
set_basename(basename: string): void
|
|
309
309
|
/**
|
|
310
310
|
* Sets the cache directory to use when building metadata.
|
|
311
311
|
* @param cache_dir directory
|
|
312
312
|
*/
|
|
313
|
-
set_cache_dir(cache_dir: string
|
|
313
|
+
set_cache_dir(cache_dir: string): void
|
|
314
314
|
/**
|
|
315
315
|
* Sets flags to be used when building the metadata.
|
|
316
316
|
* @param flags #AsbContextFlags, e.g. %ASB_CONTEXT_FLAG_NO_NETWORK
|
|
@@ -320,12 +320,12 @@ export interface Context {
|
|
|
320
320
|
* Sets the icons directory to use when building metadata.
|
|
321
321
|
* @param icons_dir directory
|
|
322
322
|
*/
|
|
323
|
-
set_icons_dir(icons_dir: string
|
|
323
|
+
set_icons_dir(icons_dir: string): void
|
|
324
324
|
/**
|
|
325
325
|
* Sets the log directory to use when building metadata.
|
|
326
326
|
* @param log_dir directory
|
|
327
327
|
*/
|
|
328
|
-
set_log_dir(log_dir: string
|
|
328
|
+
set_log_dir(log_dir: string): void
|
|
329
329
|
/**
|
|
330
330
|
* Sets the maximum number of threads to use when processing packages.
|
|
331
331
|
* This function now has no affect as only one thread is ever used.
|
|
@@ -342,23 +342,23 @@ export interface Context {
|
|
|
342
342
|
* This function now has no affect as no cache ID is available.
|
|
343
343
|
* @param old_metadata filename, or %NULL
|
|
344
344
|
*/
|
|
345
|
-
set_old_metadata(old_metadata: string
|
|
345
|
+
set_old_metadata(old_metadata: string): void
|
|
346
346
|
/**
|
|
347
347
|
* Sets the origin for the two metadata files.
|
|
348
348
|
* @param origin AppStream origin, e.g. "fedora-21"
|
|
349
349
|
*/
|
|
350
|
-
set_origin(origin: string
|
|
350
|
+
set_origin(origin: string): void
|
|
351
351
|
/**
|
|
352
352
|
* Sets the output directory to use when building metadata.
|
|
353
353
|
* @param output_dir directory
|
|
354
354
|
*/
|
|
355
|
-
set_output_dir(output_dir: string
|
|
356
|
-
set_screenshot_dir(screenshot_dir: string
|
|
355
|
+
set_output_dir(output_dir: string): void
|
|
356
|
+
set_screenshot_dir(screenshot_dir: string): void
|
|
357
357
|
/**
|
|
358
358
|
* Sets the temporary directory to use when building metadata.
|
|
359
359
|
* @param temp_dir directory
|
|
360
360
|
*/
|
|
361
|
-
set_temp_dir(temp_dir: string
|
|
361
|
+
set_temp_dir(temp_dir: string): void
|
|
362
362
|
/**
|
|
363
363
|
* Sets up the context ready for use.
|
|
364
364
|
* @returns %TRUE for success, %FALSE otherwise
|
|
@@ -419,13 +419,13 @@ export interface Package {
|
|
|
419
419
|
* Add a package dependancy.
|
|
420
420
|
* @param dep package dep
|
|
421
421
|
*/
|
|
422
|
-
add_dep(dep: string
|
|
422
|
+
add_dep(dep: string): void
|
|
423
423
|
/**
|
|
424
424
|
* Adds a (downstream) release to a package.
|
|
425
425
|
* @param version a package version
|
|
426
426
|
* @param release a package release
|
|
427
427
|
*/
|
|
428
|
-
add_release(version: string
|
|
428
|
+
add_release(version: string, release: AppStreamGlib.Release): void
|
|
429
429
|
/**
|
|
430
430
|
* Deallocates previously ensured data.
|
|
431
431
|
* @param flags #AsbPackageEnsureFlags
|
|
@@ -454,23 +454,23 @@ export interface Package {
|
|
|
454
454
|
* @param glob the glob list, or %NULL
|
|
455
455
|
* @returns %TRUE for success, %FALSE otherwise
|
|
456
456
|
*/
|
|
457
|
-
explode(dir: string
|
|
457
|
+
explode(dir: string, glob: string[]): boolean
|
|
458
458
|
/**
|
|
459
459
|
* Gets the package architecture
|
|
460
460
|
* @returns utf8 string
|
|
461
461
|
*/
|
|
462
|
-
get_arch(): string
|
|
462
|
+
get_arch(): string
|
|
463
463
|
/**
|
|
464
464
|
* Gets the package basename.
|
|
465
465
|
* @returns utf8 string
|
|
466
466
|
*/
|
|
467
|
-
get_basename(): string
|
|
467
|
+
get_basename(): string
|
|
468
468
|
/**
|
|
469
469
|
* Gets a config attribute from a package.
|
|
470
470
|
* @param key utf8 string
|
|
471
471
|
* @returns utf8 string
|
|
472
472
|
*/
|
|
473
|
-
get_config(key: string
|
|
473
|
+
get_config(key: string): string
|
|
474
474
|
/**
|
|
475
475
|
* Get the package dependancy list.
|
|
476
476
|
* @returns deplist
|
|
@@ -490,7 +490,7 @@ export interface Package {
|
|
|
490
490
|
* Gets the package EVR.
|
|
491
491
|
* @returns utf8 string
|
|
492
492
|
*/
|
|
493
|
-
get_evr(): string
|
|
493
|
+
get_evr(): string
|
|
494
494
|
/**
|
|
495
495
|
* Gets the package filelist.
|
|
496
496
|
* @returns filelist
|
|
@@ -500,7 +500,7 @@ export interface Package {
|
|
|
500
500
|
* Gets the filename of the package.
|
|
501
501
|
* @returns utf8 filename
|
|
502
502
|
*/
|
|
503
|
-
get_filename(): string
|
|
503
|
+
get_filename(): string
|
|
504
504
|
/**
|
|
505
505
|
* Gets the kind of the package.
|
|
506
506
|
* @returns a #AsbPackageKind
|
|
@@ -510,33 +510,33 @@ export interface Package {
|
|
|
510
510
|
* Gets the package license.
|
|
511
511
|
* @returns utf8 string
|
|
512
512
|
*/
|
|
513
|
-
get_license(): string
|
|
513
|
+
get_license(): string
|
|
514
514
|
/**
|
|
515
515
|
* Gets the package name
|
|
516
516
|
* @returns utf8 string
|
|
517
517
|
*/
|
|
518
|
-
get_name(): string
|
|
518
|
+
get_name(): string
|
|
519
519
|
/**
|
|
520
520
|
* Gets the package NEVR.
|
|
521
521
|
* @returns utf8 string
|
|
522
522
|
*/
|
|
523
|
-
get_nevr(): string
|
|
523
|
+
get_nevr(): string
|
|
524
524
|
/**
|
|
525
525
|
* Gets the package NEVRA.
|
|
526
526
|
* @returns utf8 string
|
|
527
527
|
*/
|
|
528
|
-
get_nevra(): string
|
|
528
|
+
get_nevra(): string
|
|
529
529
|
/**
|
|
530
530
|
* Gets the release for a specific version.
|
|
531
531
|
* @param version package version
|
|
532
532
|
* @returns an #AsRelease, or %NULL for not found
|
|
533
533
|
*/
|
|
534
|
-
get_release(version: string
|
|
534
|
+
get_release(version: string): AppStreamGlib.Release
|
|
535
535
|
/**
|
|
536
536
|
* Gets the package release string
|
|
537
537
|
* @returns utf8 string
|
|
538
538
|
*/
|
|
539
|
-
get_release_str(): string
|
|
539
|
+
get_release_str(): string
|
|
540
540
|
/**
|
|
541
541
|
* Gets the releases of the package.
|
|
542
542
|
* @returns the release data
|
|
@@ -546,27 +546,27 @@ export interface Package {
|
|
|
546
546
|
* Gets the package source nevra.
|
|
547
547
|
* @returns utf8 string
|
|
548
548
|
*/
|
|
549
|
-
get_source(): string
|
|
549
|
+
get_source(): string
|
|
550
550
|
/**
|
|
551
551
|
* Gets the package source name.
|
|
552
552
|
* @returns utf8 string
|
|
553
553
|
*/
|
|
554
|
-
get_source_pkgname(): string
|
|
554
|
+
get_source_pkgname(): string
|
|
555
555
|
/**
|
|
556
556
|
* Gets the package homepage URL
|
|
557
557
|
* @returns utf8 string
|
|
558
558
|
*/
|
|
559
|
-
get_url(): string
|
|
559
|
+
get_url(): string
|
|
560
560
|
/**
|
|
561
561
|
* Gets the package version control system.
|
|
562
562
|
* @returns utf8 string
|
|
563
563
|
*/
|
|
564
|
-
get_vcs(): string
|
|
564
|
+
get_vcs(): string
|
|
565
565
|
/**
|
|
566
566
|
* Gets the package version
|
|
567
567
|
* @returns utf8 string
|
|
568
568
|
*/
|
|
569
|
-
get_version(): string
|
|
569
|
+
get_version(): string
|
|
570
570
|
/**
|
|
571
571
|
* Flushes the log queue.
|
|
572
572
|
* @returns %TRUE for success, %FALSE otherwise
|
|
@@ -583,18 +583,18 @@ export interface Package {
|
|
|
583
583
|
* @param filename package filename
|
|
584
584
|
* @returns %TRUE for success, %FALSE otherwise
|
|
585
585
|
*/
|
|
586
|
-
open(filename: string
|
|
586
|
+
open(filename: string): boolean
|
|
587
587
|
/**
|
|
588
588
|
* Sets the package architecture.
|
|
589
589
|
* @param arch package architecture
|
|
590
590
|
*/
|
|
591
|
-
set_arch(arch: string
|
|
591
|
+
set_arch(arch: string): void
|
|
592
592
|
/**
|
|
593
593
|
* Sets a config attribute on a package.
|
|
594
594
|
* @param key utf8 string
|
|
595
595
|
* @param value utf8 string
|
|
596
596
|
*/
|
|
597
|
-
set_config(key: string
|
|
597
|
+
set_config(key: string, value: string): void
|
|
598
598
|
/**
|
|
599
599
|
* Enables or disables the package.
|
|
600
600
|
* @param enabled boolean
|
|
@@ -614,7 +614,7 @@ export interface Package {
|
|
|
614
614
|
* Sets the package filename.
|
|
615
615
|
* @param filename package filename
|
|
616
616
|
*/
|
|
617
|
-
set_filename(filename: string
|
|
617
|
+
set_filename(filename: string): void
|
|
618
618
|
/**
|
|
619
619
|
* Sets the package kind.
|
|
620
620
|
* @param kind A #AsbPackageKind
|
|
@@ -624,44 +624,44 @@ export interface Package {
|
|
|
624
624
|
* Sets the package license.
|
|
625
625
|
* @param license license string
|
|
626
626
|
*/
|
|
627
|
-
set_license(license: string
|
|
627
|
+
set_license(license: string): void
|
|
628
628
|
/**
|
|
629
629
|
* Sets the package name.
|
|
630
630
|
* @param name package name
|
|
631
631
|
*/
|
|
632
|
-
set_name(name: string
|
|
632
|
+
set_name(name: string): void
|
|
633
633
|
/**
|
|
634
634
|
* Sets the package release.
|
|
635
635
|
* @param release package release
|
|
636
636
|
*/
|
|
637
|
-
set_release(release: string
|
|
637
|
+
set_release(release: string): void
|
|
638
638
|
/**
|
|
639
639
|
* Sets the package source name, which is usually the parent of a set of
|
|
640
640
|
* subpackages.
|
|
641
641
|
* @param source source string, e.g. the srpm nevra
|
|
642
642
|
*/
|
|
643
|
-
set_source(source: string
|
|
643
|
+
set_source(source: string): void
|
|
644
644
|
/**
|
|
645
645
|
* Sets the package source name, which is usually the parent of a set of
|
|
646
646
|
* subpackages.
|
|
647
647
|
* @param source_pkgname source string, e.g. the srpm name
|
|
648
648
|
*/
|
|
649
|
-
set_source_pkgname(source_pkgname: string
|
|
649
|
+
set_source_pkgname(source_pkgname: string): void
|
|
650
650
|
/**
|
|
651
651
|
* Sets the package URL.
|
|
652
652
|
* @param url homepage URL
|
|
653
653
|
*/
|
|
654
|
-
set_url(url: string
|
|
654
|
+
set_url(url: string): void
|
|
655
655
|
/**
|
|
656
656
|
* Sets the package version control system.
|
|
657
657
|
* @param vcs vcs string
|
|
658
658
|
*/
|
|
659
|
-
set_vcs(vcs: string
|
|
659
|
+
set_vcs(vcs: string): void
|
|
660
660
|
/**
|
|
661
661
|
* Sets the package version.
|
|
662
662
|
* @param version package version
|
|
663
663
|
*/
|
|
664
|
-
set_version(version: string
|
|
664
|
+
set_version(version: string): void
|
|
665
665
|
|
|
666
666
|
// Own virtual methods of AppStreamBuilder-1.0.AppStreamBuilder.Package
|
|
667
667
|
|
|
@@ -692,7 +692,7 @@ export interface Package {
|
|
|
692
692
|
* @param glob the glob list, or %NULL
|
|
693
693
|
* @returns %TRUE for success, %FALSE otherwise
|
|
694
694
|
*/
|
|
695
|
-
vfunc_explode(dir: string
|
|
695
|
+
vfunc_explode(dir: string, glob: string[]): boolean
|
|
696
696
|
/**
|
|
697
697
|
* Opens a package and parses the contents.
|
|
698
698
|
* As little i/o should be done at this point, and implementations
|
|
@@ -701,7 +701,7 @@ export interface Package {
|
|
|
701
701
|
* @param filename package filename
|
|
702
702
|
* @returns %TRUE for success, %FALSE otherwise
|
|
703
703
|
*/
|
|
704
|
-
vfunc_open(filename: string
|
|
704
|
+
vfunc_open(filename: string): boolean
|
|
705
705
|
|
|
706
706
|
// Class property signals of AppStreamBuilder-1.0.AppStreamBuilder.Package
|
|
707
707
|
|
|
@@ -838,9 +838,9 @@ export interface PackageClass {
|
|
|
838
838
|
// Own fields of AppStreamBuilder-1.0.AppStreamBuilder.PackageClass
|
|
839
839
|
|
|
840
840
|
parent_class: GObject.ObjectClass
|
|
841
|
-
open: (pkg: Package, filename: string
|
|
841
|
+
open: (pkg: Package, filename: string) => boolean
|
|
842
842
|
ensure: (pkg: Package, flags: PackageEnsureFlags) => boolean
|
|
843
|
-
explode: (pkg: Package, dir: string
|
|
843
|
+
explode: (pkg: Package, dir: string, glob: string[]) => boolean
|
|
844
844
|
compare: (pkg1: Package, pkg2: Package) => number
|
|
845
845
|
close: (pkg: Package) => boolean
|
|
846
846
|
}
|
|
@@ -190,7 +190,7 @@ class App extends AppStreamGlib.App {
|
|
|
190
190
|
* @param id The ID for the package, or %NULL
|
|
191
191
|
* @returns a #AsbApp
|
|
192
192
|
*/
|
|
193
|
-
constructor(pkg: Package, id: string
|
|
193
|
+
constructor(pkg: Package, id: string)
|
|
194
194
|
/**
|
|
195
195
|
* Creates a new application object.
|
|
196
196
|
* @constructor
|
|
@@ -198,7 +198,7 @@ class App extends AppStreamGlib.App {
|
|
|
198
198
|
* @param id The ID for the package, or %NULL
|
|
199
199
|
* @returns a #AsbApp
|
|
200
200
|
*/
|
|
201
|
-
static new(pkg: Package, id: string
|
|
201
|
+
static new(pkg: Package, id: string): App
|
|
202
202
|
|
|
203
203
|
// Overloads of new
|
|
204
204
|
|
|
@@ -239,7 +239,7 @@ interface Context {
|
|
|
239
239
|
* @param filename package filename
|
|
240
240
|
* @returns %TRUE for success, %FALSE otherwise
|
|
241
241
|
*/
|
|
242
|
-
add_filename(filename: string
|
|
242
|
+
add_filename(filename: string): boolean
|
|
243
243
|
/**
|
|
244
244
|
* Adds a package to the list of packages to be processed
|
|
245
245
|
* @param pkg A #AsbPackage
|
|
@@ -250,13 +250,13 @@ interface Context {
|
|
|
250
250
|
* @param pkgname a package name
|
|
251
251
|
* @returns a #AsbPackage, or %NULL for not found.
|
|
252
252
|
*/
|
|
253
|
-
find_by_pkgname(pkgname: string
|
|
253
|
+
find_by_pkgname(pkgname: string): Package
|
|
254
254
|
/**
|
|
255
255
|
* This function used to find an application in the cache, and now does nothing.
|
|
256
256
|
* @param filename cache-id
|
|
257
257
|
* @returns always %FALSE
|
|
258
258
|
*/
|
|
259
|
-
find_in_cache(filename: string
|
|
259
|
+
find_in_cache(filename: string): boolean
|
|
260
260
|
/**
|
|
261
261
|
* Gets the target metadata API version.
|
|
262
262
|
* @returns floating point
|
|
@@ -266,7 +266,7 @@ interface Context {
|
|
|
266
266
|
* Gets the screenshot directory to use
|
|
267
267
|
* @returns directory
|
|
268
268
|
*/
|
|
269
|
-
get_cache_dir(): string
|
|
269
|
+
get_cache_dir(): string
|
|
270
270
|
/**
|
|
271
271
|
* Gets one specific build flag.
|
|
272
272
|
* @param flag A #AsbContextFlags
|
|
@@ -292,7 +292,7 @@ interface Context {
|
|
|
292
292
|
* Gets the temporary directory to use
|
|
293
293
|
* @returns directory
|
|
294
294
|
*/
|
|
295
|
-
get_temp_dir(): string
|
|
295
|
+
get_temp_dir(): string
|
|
296
296
|
/**
|
|
297
297
|
* Processes all the packages that have been added to the context.
|
|
298
298
|
* @returns %TRUE for success, %FALSE otherwise
|
|
@@ -307,12 +307,12 @@ interface Context {
|
|
|
307
307
|
* Sets the basename for the two metadata files.
|
|
308
308
|
* @param basename AppStream file basename, e.g. "appstream"
|
|
309
309
|
*/
|
|
310
|
-
set_basename(basename: string
|
|
310
|
+
set_basename(basename: string): void
|
|
311
311
|
/**
|
|
312
312
|
* Sets the cache directory to use when building metadata.
|
|
313
313
|
* @param cache_dir directory
|
|
314
314
|
*/
|
|
315
|
-
set_cache_dir(cache_dir: string
|
|
315
|
+
set_cache_dir(cache_dir: string): void
|
|
316
316
|
/**
|
|
317
317
|
* Sets flags to be used when building the metadata.
|
|
318
318
|
* @param flags #AsbContextFlags, e.g. %ASB_CONTEXT_FLAG_NO_NETWORK
|
|
@@ -322,12 +322,12 @@ interface Context {
|
|
|
322
322
|
* Sets the icons directory to use when building metadata.
|
|
323
323
|
* @param icons_dir directory
|
|
324
324
|
*/
|
|
325
|
-
set_icons_dir(icons_dir: string
|
|
325
|
+
set_icons_dir(icons_dir: string): void
|
|
326
326
|
/**
|
|
327
327
|
* Sets the log directory to use when building metadata.
|
|
328
328
|
* @param log_dir directory
|
|
329
329
|
*/
|
|
330
|
-
set_log_dir(log_dir: string
|
|
330
|
+
set_log_dir(log_dir: string): void
|
|
331
331
|
/**
|
|
332
332
|
* Sets the maximum number of threads to use when processing packages.
|
|
333
333
|
* This function now has no affect as only one thread is ever used.
|
|
@@ -344,23 +344,23 @@ interface Context {
|
|
|
344
344
|
* This function now has no affect as no cache ID is available.
|
|
345
345
|
* @param old_metadata filename, or %NULL
|
|
346
346
|
*/
|
|
347
|
-
set_old_metadata(old_metadata: string
|
|
347
|
+
set_old_metadata(old_metadata: string): void
|
|
348
348
|
/**
|
|
349
349
|
* Sets the origin for the two metadata files.
|
|
350
350
|
* @param origin AppStream origin, e.g. "fedora-21"
|
|
351
351
|
*/
|
|
352
|
-
set_origin(origin: string
|
|
352
|
+
set_origin(origin: string): void
|
|
353
353
|
/**
|
|
354
354
|
* Sets the output directory to use when building metadata.
|
|
355
355
|
* @param output_dir directory
|
|
356
356
|
*/
|
|
357
|
-
set_output_dir(output_dir: string
|
|
358
|
-
set_screenshot_dir(screenshot_dir: string
|
|
357
|
+
set_output_dir(output_dir: string): void
|
|
358
|
+
set_screenshot_dir(screenshot_dir: string): void
|
|
359
359
|
/**
|
|
360
360
|
* Sets the temporary directory to use when building metadata.
|
|
361
361
|
* @param temp_dir directory
|
|
362
362
|
*/
|
|
363
|
-
set_temp_dir(temp_dir: string
|
|
363
|
+
set_temp_dir(temp_dir: string): void
|
|
364
364
|
/**
|
|
365
365
|
* Sets up the context ready for use.
|
|
366
366
|
* @returns %TRUE for success, %FALSE otherwise
|
|
@@ -421,13 +421,13 @@ interface Package {
|
|
|
421
421
|
* Add a package dependancy.
|
|
422
422
|
* @param dep package dep
|
|
423
423
|
*/
|
|
424
|
-
add_dep(dep: string
|
|
424
|
+
add_dep(dep: string): void
|
|
425
425
|
/**
|
|
426
426
|
* Adds a (downstream) release to a package.
|
|
427
427
|
* @param version a package version
|
|
428
428
|
* @param release a package release
|
|
429
429
|
*/
|
|
430
|
-
add_release(version: string
|
|
430
|
+
add_release(version: string, release: AppStreamGlib.Release): void
|
|
431
431
|
/**
|
|
432
432
|
* Deallocates previously ensured data.
|
|
433
433
|
* @param flags #AsbPackageEnsureFlags
|
|
@@ -456,23 +456,23 @@ interface Package {
|
|
|
456
456
|
* @param glob the glob list, or %NULL
|
|
457
457
|
* @returns %TRUE for success, %FALSE otherwise
|
|
458
458
|
*/
|
|
459
|
-
explode(dir: string
|
|
459
|
+
explode(dir: string, glob: string[]): boolean
|
|
460
460
|
/**
|
|
461
461
|
* Gets the package architecture
|
|
462
462
|
* @returns utf8 string
|
|
463
463
|
*/
|
|
464
|
-
get_arch(): string
|
|
464
|
+
get_arch(): string
|
|
465
465
|
/**
|
|
466
466
|
* Gets the package basename.
|
|
467
467
|
* @returns utf8 string
|
|
468
468
|
*/
|
|
469
|
-
get_basename(): string
|
|
469
|
+
get_basename(): string
|
|
470
470
|
/**
|
|
471
471
|
* Gets a config attribute from a package.
|
|
472
472
|
* @param key utf8 string
|
|
473
473
|
* @returns utf8 string
|
|
474
474
|
*/
|
|
475
|
-
get_config(key: string
|
|
475
|
+
get_config(key: string): string
|
|
476
476
|
/**
|
|
477
477
|
* Get the package dependancy list.
|
|
478
478
|
* @returns deplist
|
|
@@ -492,7 +492,7 @@ interface Package {
|
|
|
492
492
|
* Gets the package EVR.
|
|
493
493
|
* @returns utf8 string
|
|
494
494
|
*/
|
|
495
|
-
get_evr(): string
|
|
495
|
+
get_evr(): string
|
|
496
496
|
/**
|
|
497
497
|
* Gets the package filelist.
|
|
498
498
|
* @returns filelist
|
|
@@ -502,7 +502,7 @@ interface Package {
|
|
|
502
502
|
* Gets the filename of the package.
|
|
503
503
|
* @returns utf8 filename
|
|
504
504
|
*/
|
|
505
|
-
get_filename(): string
|
|
505
|
+
get_filename(): string
|
|
506
506
|
/**
|
|
507
507
|
* Gets the kind of the package.
|
|
508
508
|
* @returns a #AsbPackageKind
|
|
@@ -512,33 +512,33 @@ interface Package {
|
|
|
512
512
|
* Gets the package license.
|
|
513
513
|
* @returns utf8 string
|
|
514
514
|
*/
|
|
515
|
-
get_license(): string
|
|
515
|
+
get_license(): string
|
|
516
516
|
/**
|
|
517
517
|
* Gets the package name
|
|
518
518
|
* @returns utf8 string
|
|
519
519
|
*/
|
|
520
|
-
get_name(): string
|
|
520
|
+
get_name(): string
|
|
521
521
|
/**
|
|
522
522
|
* Gets the package NEVR.
|
|
523
523
|
* @returns utf8 string
|
|
524
524
|
*/
|
|
525
|
-
get_nevr(): string
|
|
525
|
+
get_nevr(): string
|
|
526
526
|
/**
|
|
527
527
|
* Gets the package NEVRA.
|
|
528
528
|
* @returns utf8 string
|
|
529
529
|
*/
|
|
530
|
-
get_nevra(): string
|
|
530
|
+
get_nevra(): string
|
|
531
531
|
/**
|
|
532
532
|
* Gets the release for a specific version.
|
|
533
533
|
* @param version package version
|
|
534
534
|
* @returns an #AsRelease, or %NULL for not found
|
|
535
535
|
*/
|
|
536
|
-
get_release(version: string
|
|
536
|
+
get_release(version: string): AppStreamGlib.Release
|
|
537
537
|
/**
|
|
538
538
|
* Gets the package release string
|
|
539
539
|
* @returns utf8 string
|
|
540
540
|
*/
|
|
541
|
-
get_release_str(): string
|
|
541
|
+
get_release_str(): string
|
|
542
542
|
/**
|
|
543
543
|
* Gets the releases of the package.
|
|
544
544
|
* @returns the release data
|
|
@@ -548,27 +548,27 @@ interface Package {
|
|
|
548
548
|
* Gets the package source nevra.
|
|
549
549
|
* @returns utf8 string
|
|
550
550
|
*/
|
|
551
|
-
get_source(): string
|
|
551
|
+
get_source(): string
|
|
552
552
|
/**
|
|
553
553
|
* Gets the package source name.
|
|
554
554
|
* @returns utf8 string
|
|
555
555
|
*/
|
|
556
|
-
get_source_pkgname(): string
|
|
556
|
+
get_source_pkgname(): string
|
|
557
557
|
/**
|
|
558
558
|
* Gets the package homepage URL
|
|
559
559
|
* @returns utf8 string
|
|
560
560
|
*/
|
|
561
|
-
get_url(): string
|
|
561
|
+
get_url(): string
|
|
562
562
|
/**
|
|
563
563
|
* Gets the package version control system.
|
|
564
564
|
* @returns utf8 string
|
|
565
565
|
*/
|
|
566
|
-
get_vcs(): string
|
|
566
|
+
get_vcs(): string
|
|
567
567
|
/**
|
|
568
568
|
* Gets the package version
|
|
569
569
|
* @returns utf8 string
|
|
570
570
|
*/
|
|
571
|
-
get_version(): string
|
|
571
|
+
get_version(): string
|
|
572
572
|
/**
|
|
573
573
|
* Flushes the log queue.
|
|
574
574
|
* @returns %TRUE for success, %FALSE otherwise
|
|
@@ -585,18 +585,18 @@ interface Package {
|
|
|
585
585
|
* @param filename package filename
|
|
586
586
|
* @returns %TRUE for success, %FALSE otherwise
|
|
587
587
|
*/
|
|
588
|
-
open(filename: string
|
|
588
|
+
open(filename: string): boolean
|
|
589
589
|
/**
|
|
590
590
|
* Sets the package architecture.
|
|
591
591
|
* @param arch package architecture
|
|
592
592
|
*/
|
|
593
|
-
set_arch(arch: string
|
|
593
|
+
set_arch(arch: string): void
|
|
594
594
|
/**
|
|
595
595
|
* Sets a config attribute on a package.
|
|
596
596
|
* @param key utf8 string
|
|
597
597
|
* @param value utf8 string
|
|
598
598
|
*/
|
|
599
|
-
set_config(key: string
|
|
599
|
+
set_config(key: string, value: string): void
|
|
600
600
|
/**
|
|
601
601
|
* Enables or disables the package.
|
|
602
602
|
* @param enabled boolean
|
|
@@ -616,7 +616,7 @@ interface Package {
|
|
|
616
616
|
* Sets the package filename.
|
|
617
617
|
* @param filename package filename
|
|
618
618
|
*/
|
|
619
|
-
set_filename(filename: string
|
|
619
|
+
set_filename(filename: string): void
|
|
620
620
|
/**
|
|
621
621
|
* Sets the package kind.
|
|
622
622
|
* @param kind A #AsbPackageKind
|
|
@@ -626,44 +626,44 @@ interface Package {
|
|
|
626
626
|
* Sets the package license.
|
|
627
627
|
* @param license license string
|
|
628
628
|
*/
|
|
629
|
-
set_license(license: string
|
|
629
|
+
set_license(license: string): void
|
|
630
630
|
/**
|
|
631
631
|
* Sets the package name.
|
|
632
632
|
* @param name package name
|
|
633
633
|
*/
|
|
634
|
-
set_name(name: string
|
|
634
|
+
set_name(name: string): void
|
|
635
635
|
/**
|
|
636
636
|
* Sets the package release.
|
|
637
637
|
* @param release package release
|
|
638
638
|
*/
|
|
639
|
-
set_release(release: string
|
|
639
|
+
set_release(release: string): void
|
|
640
640
|
/**
|
|
641
641
|
* Sets the package source name, which is usually the parent of a set of
|
|
642
642
|
* subpackages.
|
|
643
643
|
* @param source source string, e.g. the srpm nevra
|
|
644
644
|
*/
|
|
645
|
-
set_source(source: string
|
|
645
|
+
set_source(source: string): void
|
|
646
646
|
/**
|
|
647
647
|
* Sets the package source name, which is usually the parent of a set of
|
|
648
648
|
* subpackages.
|
|
649
649
|
* @param source_pkgname source string, e.g. the srpm name
|
|
650
650
|
*/
|
|
651
|
-
set_source_pkgname(source_pkgname: string
|
|
651
|
+
set_source_pkgname(source_pkgname: string): void
|
|
652
652
|
/**
|
|
653
653
|
* Sets the package URL.
|
|
654
654
|
* @param url homepage URL
|
|
655
655
|
*/
|
|
656
|
-
set_url(url: string
|
|
656
|
+
set_url(url: string): void
|
|
657
657
|
/**
|
|
658
658
|
* Sets the package version control system.
|
|
659
659
|
* @param vcs vcs string
|
|
660
660
|
*/
|
|
661
|
-
set_vcs(vcs: string
|
|
661
|
+
set_vcs(vcs: string): void
|
|
662
662
|
/**
|
|
663
663
|
* Sets the package version.
|
|
664
664
|
* @param version package version
|
|
665
665
|
*/
|
|
666
|
-
set_version(version: string
|
|
666
|
+
set_version(version: string): void
|
|
667
667
|
|
|
668
668
|
// Own virtual methods of AppStreamBuilder-1.0.AppStreamBuilder.Package
|
|
669
669
|
|
|
@@ -694,7 +694,7 @@ interface Package {
|
|
|
694
694
|
* @param glob the glob list, or %NULL
|
|
695
695
|
* @returns %TRUE for success, %FALSE otherwise
|
|
696
696
|
*/
|
|
697
|
-
vfunc_explode(dir: string
|
|
697
|
+
vfunc_explode(dir: string, glob: string[]): boolean
|
|
698
698
|
/**
|
|
699
699
|
* Opens a package and parses the contents.
|
|
700
700
|
* As little i/o should be done at this point, and implementations
|
|
@@ -703,7 +703,7 @@ interface Package {
|
|
|
703
703
|
* @param filename package filename
|
|
704
704
|
* @returns %TRUE for success, %FALSE otherwise
|
|
705
705
|
*/
|
|
706
|
-
vfunc_open(filename: string
|
|
706
|
+
vfunc_open(filename: string): boolean
|
|
707
707
|
|
|
708
708
|
// Class property signals of AppStreamBuilder-1.0.AppStreamBuilder.Package
|
|
709
709
|
|
|
@@ -840,9 +840,9 @@ interface PackageClass {
|
|
|
840
840
|
// Own fields of AppStreamBuilder-1.0.AppStreamBuilder.PackageClass
|
|
841
841
|
|
|
842
842
|
parent_class: GObject.ObjectClass
|
|
843
|
-
open: (pkg: Package, filename: string
|
|
843
|
+
open: (pkg: Package, filename: string) => boolean
|
|
844
844
|
ensure: (pkg: Package, flags: PackageEnsureFlags) => boolean
|
|
845
|
-
explode: (pkg: Package, dir: string
|
|
845
|
+
explode: (pkg: Package, dir: string, glob: string[]) => boolean
|
|
846
846
|
compare: (pkg1: Package, pkg2: Package) => number
|
|
847
847
|
close: (pkg: Package) => boolean
|
|
848
848
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/appstreambuilder-1.0",
|
|
3
|
-
"version": "1.0.0-3.2.
|
|
3
|
+
"version": "1.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for AppStreamBuilder-1.0, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "appstreambuilder-1.0.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit appstreambuilder-1.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/appstreamglib-1.0": "^1.0.0-3.2.
|
|
29
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
30
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gjs": "^3.2.
|
|
32
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
33
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
34
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/appstreamglib-1.0": "^1.0.0-3.2.7",
|
|
29
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
|
|
30
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gjs": "^3.2.7",
|
|
32
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
33
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.7",
|
|
34
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "*"
|