@girs/modulemd-2.0 2.0.0-4.0.0-rc.15 → 2.0.0-4.0.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 +1 -1
- package/modulemd-2.0.d.ts +114 -134
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Modulemd-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0
|
|
8
|
+
GJS TypeScript type definitions for Modulemd-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/modulemd-2.0.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ export namespace Modulemd {
|
|
|
149
149
|
static MISSING_REQUIRED: number;
|
|
150
150
|
|
|
151
151
|
// Constructors
|
|
152
|
-
constructor(options: { message: string
|
|
152
|
+
constructor(options: { message: string; code: number });
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
|
|
@@ -349,7 +349,7 @@ export namespace Modulemd {
|
|
|
349
349
|
static UNKNOWN_ATTR: number;
|
|
350
350
|
|
|
351
351
|
// Constructors
|
|
352
|
-
constructor(options: { message: string
|
|
352
|
+
constructor(options: { message: string; code: number });
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
|
|
@@ -474,7 +474,7 @@ export namespace Modulemd {
|
|
|
474
474
|
* @returns `MODULEMD_TYPE_MODULE_STREAM_V2`, `MODULEMD_TYPE_PACKAGER_V3`, or `G_TYPE_INVALID`. Returns the matching GObject through the `object` parameter. If the return value is `G_TYPE_INVALID`, returns the reason as `error`.
|
|
475
475
|
* @since 2.11
|
|
476
476
|
*/
|
|
477
|
-
function read_packager_file(yaml_path: string, module_name:
|
|
477
|
+
function read_packager_file(yaml_path: string, module_name: string | null, module_stream: string | null): [GObject.GType, GObject.Object];
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
480
|
* @param yaml_string A YAML string containing a packager document.
|
|
@@ -483,7 +483,7 @@ export namespace Modulemd {
|
|
|
483
483
|
* @returns `MODULEMD_TYPE_MODULE_STREAM_V2`, `MODULEMD_TYPE_PACKAGER_V3`, or `G_TYPE_INVALID`. Returns the matching GObject through the `object` parameter. If the return value is `G_TYPE_INVALID`, returns the reason as `error`.
|
|
484
484
|
* @since 2.11
|
|
485
485
|
*/
|
|
486
|
-
function read_packager_string(yaml_string: string, module_name:
|
|
486
|
+
function read_packager_string(yaml_string: string, module_name: string | null, module_stream: string | null): [GObject.GType, GObject.Object];
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
489
|
* @returns A {@link GLib.Quark} used to identify an error in the modulemd yaml domain.
|
|
@@ -507,13 +507,10 @@ export namespace Modulemd {
|
|
|
507
507
|
|
|
508
508
|
namespace BuildConfig {
|
|
509
509
|
// Signal signatures
|
|
510
|
-
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
511
|
-
}
|
|
510
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
512
511
|
|
|
513
512
|
// Constructor properties interface
|
|
514
|
-
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
515
|
-
|
|
516
|
-
}
|
|
513
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
517
514
|
}
|
|
518
515
|
|
|
519
516
|
/**
|
|
@@ -821,7 +818,7 @@ export namespace Modulemd {
|
|
|
821
818
|
// Constructor properties interface
|
|
822
819
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
823
820
|
buildonly: boolean;
|
|
824
|
-
buildorder:
|
|
821
|
+
buildorder: bigint | number;
|
|
825
822
|
name: string;
|
|
826
823
|
rationale: string;
|
|
827
824
|
}
|
|
@@ -844,7 +841,7 @@ export namespace Modulemd {
|
|
|
844
841
|
* @default 0
|
|
845
842
|
*/
|
|
846
843
|
get buildorder(): number;
|
|
847
|
-
set buildorder(val:
|
|
844
|
+
set buildorder(val: bigint | number);
|
|
848
845
|
|
|
849
846
|
/**
|
|
850
847
|
* @construct-only
|
|
@@ -890,7 +887,7 @@ export namespace Modulemd {
|
|
|
890
887
|
* @param key An optional new key for the copied component which is used as the lookup key when this component is attached to a {@link Modulemd.ModuleStream}.
|
|
891
888
|
* @virtual
|
|
892
889
|
*/
|
|
893
|
-
vfunc_copy(key:
|
|
890
|
+
vfunc_copy(key: string | null): Component;
|
|
894
891
|
|
|
895
892
|
/**
|
|
896
893
|
* @param self_2 A {@link Modulemd.Component} object.
|
|
@@ -907,7 +904,7 @@ export namespace Modulemd {
|
|
|
907
904
|
* @param name The name of this component. Note that this is different from the key used to save this component to a {@link Modulemd.ModuleStream}. If this value is set, it adds a "name:" attribute to this component. This is used in bootstrapping cases where the key is a different name used to differentiate multiple ordered builds of the same component name. This function is currently only implemented for {@link Modulemd.ComponentRpm} and has no effect on other {@link Modulemd.Component} types.
|
|
908
905
|
* @virtual
|
|
909
906
|
*/
|
|
910
|
-
vfunc_set_name(name:
|
|
907
|
+
vfunc_set_name(name: string | null): void;
|
|
911
908
|
|
|
912
909
|
/**
|
|
913
910
|
* Verifies that all stored values are internally consistent and that the
|
|
@@ -933,7 +930,7 @@ export namespace Modulemd {
|
|
|
933
930
|
* @param key An optional new key for the copied component which is used as the lookup key when this component is attached to a {@link Modulemd.ModuleStream}.
|
|
934
931
|
* @returns A newly-allocated copy of `self`.
|
|
935
932
|
*/
|
|
936
|
-
copy(key:
|
|
933
|
+
copy(key: string | null): Component;
|
|
937
934
|
|
|
938
935
|
/**
|
|
939
936
|
* @param self_2 A {@link Modulemd.Component} object.
|
|
@@ -979,17 +976,17 @@ export namespace Modulemd {
|
|
|
979
976
|
/**
|
|
980
977
|
* @param buildorder The order this component should be built relative to others.
|
|
981
978
|
*/
|
|
982
|
-
set_buildorder(buildorder:
|
|
979
|
+
set_buildorder(buildorder: bigint | number): void;
|
|
983
980
|
|
|
984
981
|
/**
|
|
985
982
|
* @param name The name of this component. Note that this is different from the key used to save this component to a {@link Modulemd.ModuleStream}. If this value is set, it adds a "name:" attribute to this component. This is used in bootstrapping cases where the key is a different name used to differentiate multiple ordered builds of the same component name. This function is currently only implemented for {@link Modulemd.ComponentRpm} and has no effect on other {@link Modulemd.Component} types.
|
|
986
983
|
*/
|
|
987
|
-
set_name(name:
|
|
984
|
+
set_name(name: string | null): void;
|
|
988
985
|
|
|
989
986
|
/**
|
|
990
987
|
* @param rationale The reason that this component is part of the stream.
|
|
991
988
|
*/
|
|
992
|
-
set_rationale(rationale:
|
|
989
|
+
set_rationale(rationale: string | null): void;
|
|
993
990
|
|
|
994
991
|
/**
|
|
995
992
|
* Verifies that all stored values are internally consistent and that the
|
|
@@ -1014,7 +1011,7 @@ export namespace Modulemd {
|
|
|
1014
1011
|
|
|
1015
1012
|
// Constructor properties interface
|
|
1016
1013
|
interface ConstructorProps extends Component.ConstructorProps {
|
|
1017
|
-
ref:
|
|
1014
|
+
ref: string | any;
|
|
1018
1015
|
repository: string;
|
|
1019
1016
|
}
|
|
1020
1017
|
}
|
|
@@ -1081,12 +1078,12 @@ export namespace Modulemd {
|
|
|
1081
1078
|
/**
|
|
1082
1079
|
* @param ref The commit ID in the SCM repository.
|
|
1083
1080
|
*/
|
|
1084
|
-
set_ref(ref:
|
|
1081
|
+
set_ref(ref: string | null): void;
|
|
1085
1082
|
|
|
1086
1083
|
/**
|
|
1087
1084
|
* @param repository The URI of the SCM repository.
|
|
1088
1085
|
*/
|
|
1089
|
-
set_repository(repository:
|
|
1086
|
+
set_repository(repository: string | null): void;
|
|
1090
1087
|
}
|
|
1091
1088
|
|
|
1092
1089
|
|
|
@@ -1108,7 +1105,7 @@ export namespace Modulemd {
|
|
|
1108
1105
|
interface ConstructorProps extends Component.ConstructorProps {
|
|
1109
1106
|
buildroot: boolean;
|
|
1110
1107
|
cache: string;
|
|
1111
|
-
ref:
|
|
1108
|
+
ref: string | any;
|
|
1112
1109
|
repository: string;
|
|
1113
1110
|
srpm_buildroot: boolean;
|
|
1114
1111
|
srpmBuildroot: boolean;
|
|
@@ -1268,17 +1265,17 @@ export namespace Modulemd {
|
|
|
1268
1265
|
/**
|
|
1269
1266
|
* @param cache The lookaside cache URL.
|
|
1270
1267
|
*/
|
|
1271
|
-
set_cache(cache:
|
|
1268
|
+
set_cache(cache: string | null): void;
|
|
1272
1269
|
|
|
1273
1270
|
/**
|
|
1274
1271
|
* @param ref The commit ID in the SCM repository.
|
|
1275
1272
|
*/
|
|
1276
|
-
set_ref(ref:
|
|
1273
|
+
set_ref(ref: string | null): void;
|
|
1277
1274
|
|
|
1278
1275
|
/**
|
|
1279
1276
|
* @param repository The URI of the SCM repository.
|
|
1280
1277
|
*/
|
|
1281
|
-
set_repository(repository:
|
|
1278
|
+
set_repository(repository: string | null): void;
|
|
1282
1279
|
|
|
1283
1280
|
/**
|
|
1284
1281
|
* @param srpm_buildroot The {@link Modulemd.ComponentRpm.srpm_buildroot} flag to set for `self`.
|
|
@@ -1296,7 +1293,7 @@ export namespace Modulemd {
|
|
|
1296
1293
|
|
|
1297
1294
|
// Constructor properties interface
|
|
1298
1295
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1299
|
-
mdversion:
|
|
1296
|
+
mdversion: bigint | number;
|
|
1300
1297
|
module_name: string;
|
|
1301
1298
|
moduleName: string;
|
|
1302
1299
|
}
|
|
@@ -1341,7 +1338,7 @@ export namespace Modulemd {
|
|
|
1341
1338
|
|
|
1342
1339
|
_init(...args: any[]): void;
|
|
1343
1340
|
|
|
1344
|
-
static ["new"](version:
|
|
1341
|
+
static ["new"](version: bigint | number, module_name: string): Defaults;
|
|
1345
1342
|
|
|
1346
1343
|
// Signals
|
|
1347
1344
|
/** @signal */
|
|
@@ -1371,7 +1368,7 @@ export namespace Modulemd {
|
|
|
1371
1368
|
/**
|
|
1372
1369
|
* @virtual
|
|
1373
1370
|
*/
|
|
1374
|
-
vfunc_get_mdversion():
|
|
1371
|
+
vfunc_get_mdversion(): bigint | number;
|
|
1375
1372
|
|
|
1376
1373
|
/**
|
|
1377
1374
|
* @virtual
|
|
@@ -1408,13 +1405,13 @@ export namespace Modulemd {
|
|
|
1408
1405
|
/**
|
|
1409
1406
|
* @param modified The last modified time represented as a 64-bit integer (such as 201807011200)
|
|
1410
1407
|
*/
|
|
1411
|
-
set_modified(modified:
|
|
1408
|
+
set_modified(modified: bigint | number): void;
|
|
1412
1409
|
|
|
1413
1410
|
/**
|
|
1414
1411
|
* @param mdversion The version to upgrade to.
|
|
1415
1412
|
* @returns A newly-allocated copy of `self` upgraded to the requested defaults version. NULL if the upgrade cannot be performed and sets `error` appropriately. This function does not modify `self`.
|
|
1416
1413
|
*/
|
|
1417
|
-
upgrade(mdversion:
|
|
1414
|
+
upgrade(mdversion: bigint | number): Defaults;
|
|
1418
1415
|
|
|
1419
1416
|
/**
|
|
1420
1417
|
* @returns TRUE if validation passed, FALSE and sets `error` appropriately if validation failed.
|
|
@@ -1431,9 +1428,7 @@ export namespace Modulemd {
|
|
|
1431
1428
|
}
|
|
1432
1429
|
|
|
1433
1430
|
// Constructor properties interface
|
|
1434
|
-
interface ConstructorProps extends Defaults.ConstructorProps {
|
|
1435
|
-
|
|
1436
|
-
}
|
|
1431
|
+
interface ConstructorProps extends Defaults.ConstructorProps {}
|
|
1437
1432
|
}
|
|
1438
1433
|
|
|
1439
1434
|
/**
|
|
@@ -1483,26 +1478,26 @@ export namespace Modulemd {
|
|
|
1483
1478
|
* @param profile_name The name of the default profile to add.
|
|
1484
1479
|
* @param intent The name of the system intent to add profile defaults to. If NULL, this sets the generic fallback profiles for the stream. System intents are deprecated and calls with this non-NULL argument will become void in the future.
|
|
1485
1480
|
*/
|
|
1486
|
-
add_default_profile_for_stream(stream_name: string, profile_name: string, intent:
|
|
1481
|
+
add_default_profile_for_stream(stream_name: string, profile_name: string, intent: string | null): void;
|
|
1487
1482
|
|
|
1488
1483
|
/**
|
|
1489
1484
|
* @param stream_name The name of the string to retrieve the default profiles for.
|
|
1490
1485
|
* @param intent The name of the system intent for which to retrieve the profile defaults for this stream. System intents are deprecated and this argument will be ignored in the future.
|
|
1491
1486
|
* @returns A sorted {@link GObject.Strv} list of unique profiles to be installed by default for this stream. NULL, if this stream_name is not present in the defaults.
|
|
1492
1487
|
*/
|
|
1493
|
-
get_default_profiles_for_stream(stream_name: string, intent:
|
|
1488
|
+
get_default_profiles_for_stream(stream_name: string, intent: string | null): string[];
|
|
1494
1489
|
|
|
1495
1490
|
/**
|
|
1496
1491
|
* @param intent The name of the system intent whose default stream will be retrieved. If left NULL or the specified intent has no different default, it will return the generic default stream for this module. System intents are deprecated and this argument will be ignored in the future.
|
|
1497
1492
|
* @returns The name of the default stream for this module.
|
|
1498
1493
|
*/
|
|
1499
|
-
get_default_stream(intent:
|
|
1494
|
+
get_default_stream(intent: string | null): string;
|
|
1500
1495
|
|
|
1501
1496
|
/**
|
|
1502
1497
|
* @param intent The name of the system intent whose stream profiles will be retrieved. If left NULL or the specified intent has no separate defaults for this module, it will return the generic stream profiles. System intents are deprecated and this argument will be ignored in the future.
|
|
1503
1498
|
* @returns A sorted {@link GObject.Strv} list of unique stream names for which default profiles have been assigned.
|
|
1504
1499
|
*/
|
|
1505
|
-
get_streams_with_default_profiles(intent:
|
|
1500
|
+
get_streams_with_default_profiles(intent: string | null): string[];
|
|
1506
1501
|
|
|
1507
1502
|
/**
|
|
1508
1503
|
* Removes this stream from the list of profiles entirely. It will not appear
|
|
@@ -1510,14 +1505,14 @@ export namespace Modulemd {
|
|
|
1510
1505
|
* @param stream_name The name of the module stream from which to remove default profiles.
|
|
1511
1506
|
* @param intent The name of the system intent from which to remove the profile defaults for this stream. System intents are deprecated and calls with this non-NULL arugment will become void in the future.
|
|
1512
1507
|
*/
|
|
1513
|
-
remove_default_profiles_for_stream(stream_name: string, intent:
|
|
1508
|
+
remove_default_profiles_for_stream(stream_name: string, intent: string | null): void;
|
|
1514
1509
|
|
|
1515
1510
|
/**
|
|
1516
1511
|
* Set the default stream for this module.
|
|
1517
1512
|
* @param default_stream The name of the default stream for this module. If NULL, it will remove the default stream.
|
|
1518
1513
|
* @param intent If non-NULL, this indicates the system intent to apply this default stream. If NULL, it will be added as common defaults. System intents are deprecated and calls with this non-NULL argument will become void in the future.
|
|
1519
1514
|
*/
|
|
1520
|
-
set_default_stream(default_stream:
|
|
1515
|
+
set_default_stream(default_stream: string | null, intent: string | null): void;
|
|
1521
1516
|
|
|
1522
1517
|
/**
|
|
1523
1518
|
* Sets the default profiles for `stream_name` to the empty set. When output to
|
|
@@ -1525,19 +1520,16 @@ export namespace Modulemd {
|
|
|
1525
1520
|
* @param stream_name The name of the module stream for which to empty default profiles.
|
|
1526
1521
|
* @param intent The name of the system intent from which to clear the profile defaults for this stream. System intents are deprecated and calls with this non-NULL argument will become void in the future.
|
|
1527
1522
|
*/
|
|
1528
|
-
set_empty_default_profiles_for_stream(stream_name: string, intent:
|
|
1523
|
+
set_empty_default_profiles_for_stream(stream_name: string, intent: string | null): void;
|
|
1529
1524
|
}
|
|
1530
1525
|
|
|
1531
1526
|
|
|
1532
1527
|
namespace Dependencies {
|
|
1533
1528
|
// Signal signatures
|
|
1534
|
-
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1535
|
-
}
|
|
1529
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
1536
1530
|
|
|
1537
1531
|
// Constructor properties interface
|
|
1538
|
-
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1539
|
-
|
|
1540
|
-
}
|
|
1532
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
1541
1533
|
}
|
|
1542
1534
|
|
|
1543
1535
|
/**
|
|
@@ -1628,7 +1620,7 @@ export namespace Modulemd {
|
|
|
1628
1620
|
* @param module The name of the module.
|
|
1629
1621
|
* @returns An ordered {@link GObject.Strv} list of module streams associated with the specified module that are required at build-time.
|
|
1630
1622
|
*/
|
|
1631
|
-
get_buildtime_streams(module: string):
|
|
1623
|
+
get_buildtime_streams(module: string): string[] | null;
|
|
1632
1624
|
|
|
1633
1625
|
/**
|
|
1634
1626
|
* @returns An ordered {@link GObject.Strv} list of module names of run-time dependencies.
|
|
@@ -1639,7 +1631,7 @@ export namespace Modulemd {
|
|
|
1639
1631
|
* @param module The name of the module.
|
|
1640
1632
|
* @returns An ordered {@link GObject.Strv} list of module streams associated with the specified module that are required at run-time.
|
|
1641
1633
|
*/
|
|
1642
|
-
get_runtime_streams(module: string):
|
|
1634
|
+
get_runtime_streams(module: string): string[] | null;
|
|
1643
1635
|
|
|
1644
1636
|
/**
|
|
1645
1637
|
* Adds a module and inserts an empty list for it as buildtime dependency.
|
|
@@ -1748,7 +1740,7 @@ export namespace Modulemd {
|
|
|
1748
1740
|
* @param context The stream context to look up obsoletes for.
|
|
1749
1741
|
* @returns The newest active obsoletes attached to this module with specified stream and context (when eol_date is not set or it already occured the obsoletes is active). If no context is passed it matches obsoletes without context.
|
|
1750
1742
|
*/
|
|
1751
|
-
get_newest_active_obsoletes(stream: string, context:
|
|
1743
|
+
get_newest_active_obsoletes(stream: string, context: string | null): Obsoletes;
|
|
1752
1744
|
|
|
1753
1745
|
/**
|
|
1754
1746
|
* @returns A list of all obsoletes attached to this module. These are pointers to the internal memory objects and must not be modified or freed.
|
|
@@ -1761,7 +1753,7 @@ export namespace Modulemd {
|
|
|
1761
1753
|
* @param context The context of the stream to retrieve.
|
|
1762
1754
|
* @returns The requested stream object or NULL if no match was found.
|
|
1763
1755
|
*/
|
|
1764
|
-
get_stream_by_NSVC(stream_name: string, version:
|
|
1756
|
+
get_stream_by_NSVC(stream_name: string, version: bigint | number, context: string): ModuleStream;
|
|
1765
1757
|
|
|
1766
1758
|
/**
|
|
1767
1759
|
* @param stream_name The name of the stream to retrieve.
|
|
@@ -1770,7 +1762,7 @@ export namespace Modulemd {
|
|
|
1770
1762
|
* @param arch The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search.
|
|
1771
1763
|
* @returns The requested stream object. NULL and sets `error` appropriately if the provided information is not sufficient to return exactly one {@link Modulemd.ModuleStream} result.
|
|
1772
1764
|
*/
|
|
1773
|
-
get_stream_by_NSVCA(stream_name: string, version:
|
|
1765
|
+
get_stream_by_NSVCA(stream_name: string, version: bigint | number, context: string | null, arch: string | null): ModuleStream;
|
|
1774
1766
|
|
|
1775
1767
|
/**
|
|
1776
1768
|
* @returns An ordered {@link GObject.Strv} list of stream names in this module.
|
|
@@ -1797,7 +1789,7 @@ export namespace Modulemd {
|
|
|
1797
1789
|
* @param context The context of the stream to remove. If NULL, matches all stream contexts.
|
|
1798
1790
|
* @param arch The processor architecture of the stream to remove. If NULL, matches all architectures.
|
|
1799
1791
|
*/
|
|
1800
|
-
remove_streams_by_NSVCA(stream_name: string, version:
|
|
1792
|
+
remove_streams_by_NSVCA(stream_name: string, version: bigint | number, context: string | null, arch: string | null): void;
|
|
1801
1793
|
|
|
1802
1794
|
/**
|
|
1803
1795
|
* @param stream_name The name of the stream to retrieve.
|
|
@@ -1806,7 +1798,7 @@ export namespace Modulemd {
|
|
|
1806
1798
|
* @param arch The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search.
|
|
1807
1799
|
* @returns The list of stream objects matching the requested parameters. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by stream name, then by version (highest to lowest), then by context and finally by architecture.
|
|
1808
1800
|
*/
|
|
1809
|
-
search_streams(stream_name: string, version:
|
|
1801
|
+
search_streams(stream_name: string, version: bigint | number, context: string | null, arch: string | null): ModuleStream[];
|
|
1810
1802
|
|
|
1811
1803
|
/**
|
|
1812
1804
|
* All arguments to this method will be compared using
|
|
@@ -1817,13 +1809,13 @@ export namespace Modulemd {
|
|
|
1817
1809
|
* @param arch The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search.
|
|
1818
1810
|
* @returns The list of stream objects matching all of the requested parameters. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
|
|
1819
1811
|
*/
|
|
1820
|
-
search_streams_by_glob(stream_name:
|
|
1812
|
+
search_streams_by_glob(stream_name: string | null, version: string | null, context: string | null, arch: string | null): ModuleStream[];
|
|
1821
1813
|
|
|
1822
1814
|
/**
|
|
1823
1815
|
* @param nsvca_pattern A [glob](https://www.mankier.com/3/glob) pattern to match against the NSVCA strings of the {@link Modulemd.ModuleStream} objects in this module. If NULL, this will match all NSVCAs.
|
|
1824
1816
|
* @returns An array of {@link Modulemd.ModuleStream} objects whose NSVCA string matches the provided pattern. This function cannot fail, but may return an array of zero entries if the pattern did not match any streams. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
|
|
1825
1817
|
*/
|
|
1826
|
-
search_streams_by_nsvca_glob(nsvca_pattern:
|
|
1818
|
+
search_streams_by_nsvca_glob(nsvca_pattern: string | null): ModuleStream[];
|
|
1827
1819
|
|
|
1828
1820
|
/**
|
|
1829
1821
|
* @returns TRUE if validation passed, FALSE and sets `error` if failed.
|
|
@@ -1834,13 +1826,10 @@ export namespace Modulemd {
|
|
|
1834
1826
|
|
|
1835
1827
|
namespace ModuleIndex {
|
|
1836
1828
|
// Signal signatures
|
|
1837
|
-
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1838
|
-
}
|
|
1829
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
1839
1830
|
|
|
1840
1831
|
// Constructor properties interface
|
|
1841
|
-
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1842
|
-
|
|
1843
|
-
}
|
|
1832
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
1844
1833
|
}
|
|
1845
1834
|
|
|
1846
1835
|
/**
|
|
@@ -1928,7 +1917,7 @@ export namespace Modulemd {
|
|
|
1928
1917
|
* @param intent The name of the system intent whose default stream will be retrieved. If left NULL or the specified intent has no separate default, it will return the generic default stream for this module. System intents are deprecated and this argument will be ignored in the future.
|
|
1929
1918
|
* @returns A {@link GLib.HashTable} with the module name as the key and the default stream as the value for all modules with a default stream in the index. Modules without a default stream will not appear in this table.
|
|
1930
1919
|
*/
|
|
1931
|
-
get_default_streams(intent:
|
|
1920
|
+
get_default_streams(intent: string | null): { [key: string]: string };
|
|
1932
1921
|
|
|
1933
1922
|
/**
|
|
1934
1923
|
* @returns The metadata version of {@link Modulemd.Defaults} in use for this index.
|
|
@@ -1977,13 +1966,13 @@ export namespace Modulemd {
|
|
|
1977
1966
|
* @param arch The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search.
|
|
1978
1967
|
* @returns The list of stream objects matching all of the requested parameters. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
|
|
1979
1968
|
*/
|
|
1980
|
-
search_streams(module_name:
|
|
1969
|
+
search_streams(module_name: string | null, stream_name: string | null, version: string | null, context: string | null, arch: string | null): ModuleStream[];
|
|
1981
1970
|
|
|
1982
1971
|
/**
|
|
1983
1972
|
* @param nsvca_pattern A [glob](https://www.mankier.com/3/glob) pattern to match against the NSVCA strings of the {@link Modulemd.ModuleStream} objects in this module. If NULL, this will match all NSVCAs.
|
|
1984
1973
|
* @returns The list of stream objects matching all of the requested parameters. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
|
|
1985
1974
|
*/
|
|
1986
|
-
search_streams_by_nsvca_glob(nsvca_pattern:
|
|
1975
|
+
search_streams_by_nsvca_glob(nsvca_pattern: string | null): ModuleStream[];
|
|
1987
1976
|
|
|
1988
1977
|
/**
|
|
1989
1978
|
* This function will open the directory at `path` and iterate through it,
|
|
@@ -2001,7 +1990,7 @@ export namespace Modulemd {
|
|
|
2001
1990
|
* @param overrides_path If non-`null`, the path to a directory containing defaults documents that should override those in `path`.
|
|
2002
1991
|
* @returns `true` if all ".yaml" files in the directory were imported successfully (this includes if no ".yaml" files were present). `false` if one or more files could not be read successfully and sets `error` appropriately.
|
|
2003
1992
|
*/
|
|
2004
|
-
update_from_defaults_directory(path: string, strict: boolean, overrides_path:
|
|
1993
|
+
update_from_defaults_directory(path: string, strict: boolean, overrides_path: string | null): boolean;
|
|
2005
1994
|
|
|
2006
1995
|
/**
|
|
2007
1996
|
* @param yaml_file A name of a YAML file containing the module metadata and other related information such as default streams.
|
|
@@ -2039,13 +2028,10 @@ export namespace Modulemd {
|
|
|
2039
2028
|
|
|
2040
2029
|
namespace ModuleIndexMerger {
|
|
2041
2030
|
// Signal signatures
|
|
2042
|
-
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2043
|
-
}
|
|
2031
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
2044
2032
|
|
|
2045
2033
|
// Constructor properties interface
|
|
2046
|
-
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2047
|
-
|
|
2048
|
-
}
|
|
2034
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
2049
2035
|
}
|
|
2050
2036
|
|
|
2051
2037
|
/**
|
|
@@ -2142,12 +2128,12 @@ export namespace Modulemd {
|
|
|
2142
2128
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2143
2129
|
arch: string;
|
|
2144
2130
|
context: string;
|
|
2145
|
-
mdversion:
|
|
2131
|
+
mdversion: bigint | number;
|
|
2146
2132
|
module_name: string;
|
|
2147
2133
|
moduleName: string;
|
|
2148
2134
|
stream_name: string;
|
|
2149
2135
|
streamName: string;
|
|
2150
|
-
version:
|
|
2136
|
+
version: bigint | number;
|
|
2151
2137
|
}
|
|
2152
2138
|
}
|
|
2153
2139
|
|
|
@@ -2204,7 +2190,7 @@ export namespace Modulemd {
|
|
|
2204
2190
|
* @default 0
|
|
2205
2191
|
*/
|
|
2206
2192
|
get version(): number;
|
|
2207
|
-
set version(val:
|
|
2193
|
+
set version(val: bigint | number);
|
|
2208
2194
|
|
|
2209
2195
|
/**
|
|
2210
2196
|
* Compile-time signal type information.
|
|
@@ -2220,7 +2206,7 @@ export namespace Modulemd {
|
|
|
2220
2206
|
|
|
2221
2207
|
_init(...args: any[]): void;
|
|
2222
2208
|
|
|
2223
|
-
static ["new"](mdversion:
|
|
2209
|
+
static ["new"](mdversion: bigint | number, module_name: string | null, module_stream: string | null): ModuleStream;
|
|
2224
2210
|
|
|
2225
2211
|
// Signals
|
|
2226
2212
|
/** @signal */
|
|
@@ -2250,7 +2236,7 @@ export namespace Modulemd {
|
|
|
2250
2236
|
* @param module_name An optional module name to override the document on disk. Mostly useful in cases where the name is being auto-detected from git.
|
|
2251
2237
|
* @param module_stream An optional module stream name to override the document on disk. Mostly useful in cases where the name is being auto-detected from git.
|
|
2252
2238
|
*/
|
|
2253
|
-
static read_file(path: string, strict: boolean, module_name:
|
|
2239
|
+
static read_file(path: string, strict: boolean, module_name: string | null, module_stream: string | null): ModuleStream;
|
|
2254
2240
|
|
|
2255
2241
|
/**
|
|
2256
2242
|
* Create a {@link Modulemd.ModuleStream} object from a YAML string.
|
|
@@ -2266,7 +2252,7 @@ export namespace Modulemd {
|
|
|
2266
2252
|
* @param module_name An optional module name to override the document on disk. Mostly useful in cases where the name is being auto-detected from git.
|
|
2267
2253
|
* @param module_stream An optional module stream name to override the document on disk. Mostly useful in cases where the name is being auto-detected from git.
|
|
2268
2254
|
*/
|
|
2269
|
-
static read_string(yaml_string: string, strict: boolean, module_name:
|
|
2255
|
+
static read_string(yaml_string: string, strict: boolean, module_name: string | null, module_stream: string | null): ModuleStream;
|
|
2270
2256
|
|
|
2271
2257
|
// Virtual methods
|
|
2272
2258
|
/**
|
|
@@ -2283,7 +2269,7 @@ export namespace Modulemd {
|
|
|
2283
2269
|
* @param module_stream An optional new name for the copied stream.
|
|
2284
2270
|
* @virtual
|
|
2285
2271
|
*/
|
|
2286
|
-
vfunc_copy(module_name:
|
|
2272
|
+
vfunc_copy(module_name: string | null, module_stream: string | null): ModuleStream;
|
|
2287
2273
|
|
|
2288
2274
|
/**
|
|
2289
2275
|
* @param module_name A module name.
|
|
@@ -2302,7 +2288,7 @@ export namespace Modulemd {
|
|
|
2302
2288
|
/**
|
|
2303
2289
|
* @virtual
|
|
2304
2290
|
*/
|
|
2305
|
-
vfunc_get_mdversion():
|
|
2291
|
+
vfunc_get_mdversion(): bigint | number;
|
|
2306
2292
|
|
|
2307
2293
|
/**
|
|
2308
2294
|
* Verifies that all stored values are internally consistent and that the
|
|
@@ -2327,7 +2313,7 @@ export namespace Modulemd {
|
|
|
2327
2313
|
* @param module_stream An optional new name for the copied stream.
|
|
2328
2314
|
* @returns A newly-allocated {@link Modulemd.ModuleStream} object that is a complete copy of `self`, optionally with a new stream name.
|
|
2329
2315
|
*/
|
|
2330
|
-
copy(module_name:
|
|
2316
|
+
copy(module_name: string | null, module_stream: string | null): ModuleStream;
|
|
2331
2317
|
|
|
2332
2318
|
/**
|
|
2333
2319
|
* @param module_name A module name.
|
|
@@ -2391,31 +2377,31 @@ export namespace Modulemd {
|
|
|
2391
2377
|
/**
|
|
2392
2378
|
* @param arch Module architecture. Indicates to which processor architecture this {@link Modulemd.ModuleStream} applies.
|
|
2393
2379
|
*/
|
|
2394
|
-
set_arch(arch:
|
|
2380
|
+
set_arch(arch: string | null): void;
|
|
2395
2381
|
|
|
2396
2382
|
/**
|
|
2397
2383
|
* @param context Module context flag. The context flag serves to distinguish module builds with the same name, stream and version and plays an important role in automatic module stream name expansion.
|
|
2398
2384
|
*/
|
|
2399
|
-
set_context(context:
|
|
2385
|
+
set_context(context: string | null): void;
|
|
2400
2386
|
|
|
2401
2387
|
/**
|
|
2402
2388
|
* @param version The version of this {@link Modulemd.ModuleStream}.
|
|
2403
2389
|
*/
|
|
2404
|
-
set_version(version:
|
|
2390
|
+
set_version(version: bigint | number): void;
|
|
2405
2391
|
|
|
2406
2392
|
/**
|
|
2407
2393
|
* Return an upgraded copy of this object. Does not modify the original.
|
|
2408
2394
|
* @param mdversion The metadata version to upgrade to. If zero, upgrades to the highest-supported version.
|
|
2409
2395
|
* @returns A newly-allocated {@link Modulemd.ModuleStream} copy of this object upgraded to the requested version. Returns NULL and sets `error` appropriately if the upgrade could not be completed automatically.
|
|
2410
2396
|
*/
|
|
2411
|
-
upgrade(mdversion:
|
|
2397
|
+
upgrade(mdversion: bigint | number): ModuleStream;
|
|
2412
2398
|
|
|
2413
2399
|
/**
|
|
2414
2400
|
* Does not modify the original {@link Modulemd.ModuleStream} object, `from`.
|
|
2415
2401
|
* @param mdversion The metadata version to upgrade to. If zero, upgrades to the highest-supported version.
|
|
2416
2402
|
* @returns A newly-allocated {@link Modulemd.Module} containing a copy of this object upgraded to the requested version, possibly with multiple streams. Returns NULL and sets `error` appropriately if the upgrade could not be completed automatically.
|
|
2417
2403
|
*/
|
|
2418
|
-
upgrade_ext(mdversion:
|
|
2404
|
+
upgrade_ext(mdversion: bigint | number): Module;
|
|
2419
2405
|
|
|
2420
2406
|
/**
|
|
2421
2407
|
* Verifies that all stored values are internally consistent and that the
|
|
@@ -2500,7 +2486,7 @@ export namespace Modulemd {
|
|
|
2500
2486
|
|
|
2501
2487
|
_init(...args: any[]): void;
|
|
2502
2488
|
|
|
2503
|
-
static ["new"](module_name:
|
|
2489
|
+
static ["new"](module_name: string | null, module_stream: string | null): ModuleStreamV1;
|
|
2504
2490
|
|
|
2505
2491
|
// Conflicted with Modulemd.ModuleStream.new
|
|
2506
2492
|
static ["new"](...args: never[]): any;
|
|
@@ -2666,7 +2652,7 @@ export namespace Modulemd {
|
|
|
2666
2652
|
* @param locale The name of the locale to use when translating the string. If NULL, it will determine the locale with a system call to `setlocale(LC_MESSAGES, NULL)` and return that. If the caller wants the untranslated string, they should pass `"C"` for the locale.
|
|
2667
2653
|
* @returns The module description, translated to the requested locale if available. Translation information is managed by the {@link Modulemd.Translation} and {@link Modulemd.TranslationEntry} objects.
|
|
2668
2654
|
*/
|
|
2669
|
-
get_description(locale:
|
|
2655
|
+
get_description(locale: string | null): string;
|
|
2670
2656
|
|
|
2671
2657
|
/**
|
|
2672
2658
|
* @returns The module documentation website address.
|
|
@@ -2758,7 +2744,7 @@ export namespace Modulemd {
|
|
|
2758
2744
|
* @param locale The name of the locale to use when translating the string. If NULL, it will determine the locale with a system call to `setlocale(LC_MESSAGES, NULL)` and return that. If the caller wants the untranslated string, they should pass `"C"` for the locale.
|
|
2759
2745
|
* @returns The module summary, translated to the requested locale if available. Translation information is managed by the {@link Modulemd.Translation} and {@link Modulemd.TranslationEntry} objects.
|
|
2760
2746
|
*/
|
|
2761
|
-
get_summary(locale:
|
|
2747
|
+
get_summary(locale: string | null): string;
|
|
2762
2748
|
|
|
2763
2749
|
/**
|
|
2764
2750
|
* @returns The module bug tracker website address.
|
|
@@ -2847,7 +2833,7 @@ export namespace Modulemd {
|
|
|
2847
2833
|
* Set the module description.
|
|
2848
2834
|
* @param description The untranslated description of this module.
|
|
2849
2835
|
*/
|
|
2850
|
-
set_description(description:
|
|
2836
|
+
set_description(description: string | null): void;
|
|
2851
2837
|
|
|
2852
2838
|
/**
|
|
2853
2839
|
* Set the module documentation website address.
|
|
@@ -2866,7 +2852,7 @@ export namespace Modulemd {
|
|
|
2866
2852
|
* Set the module summary.
|
|
2867
2853
|
* @param summary The untranslated summary of this module.
|
|
2868
2854
|
*/
|
|
2869
|
-
set_summary(summary:
|
|
2855
|
+
set_summary(summary: string | null): void;
|
|
2870
2856
|
|
|
2871
2857
|
/**
|
|
2872
2858
|
* Set the module bug tracker website address.
|
|
@@ -2975,7 +2961,7 @@ export namespace Modulemd {
|
|
|
2975
2961
|
|
|
2976
2962
|
_init(...args: any[]): void;
|
|
2977
2963
|
|
|
2978
|
-
static ["new"](module_name:
|
|
2964
|
+
static ["new"](module_name: string | null, module_stream: string | null): ModuleStreamV2;
|
|
2979
2965
|
|
|
2980
2966
|
// Conflicted with Modulemd.ModuleStream.new
|
|
2981
2967
|
static ["new"](...args: never[]): any;
|
|
@@ -3145,7 +3131,7 @@ export namespace Modulemd {
|
|
|
3145
3131
|
* @param locale The name of the locale to use when translating the string. If NULL, it will determine the locale with a system call to `setlocale(LC_MESSAGES, NULL)` and return that. If the caller wants the untranslated string, they should pass `"C"` for the locale.
|
|
3146
3132
|
* @returns The module description, translated to the requested locale if available. Translation information is managed by the {@link Modulemd.Translation} and {@link Modulemd.TranslationEntry} objects.
|
|
3147
3133
|
*/
|
|
3148
|
-
get_description(locale:
|
|
3134
|
+
get_description(locale: string | null): string;
|
|
3149
3135
|
|
|
3150
3136
|
/**
|
|
3151
3137
|
* @returns The module documentation website address.
|
|
@@ -3232,7 +3218,7 @@ export namespace Modulemd {
|
|
|
3232
3218
|
* @param locale The name of the locale to use when translating the string. If NULL, it will determine the locale with a system call to `setlocale(LC_MESSAGES, NULL)` and return that. If the caller wants the untranslated string, they should pass `"C"` for the locale.
|
|
3233
3219
|
* @returns The module summary, translated to the requested locale if available. Translation information is managed by the {@link Modulemd.Translation} and {@link Modulemd.TranslationEntry} objects.
|
|
3234
3220
|
*/
|
|
3235
|
-
get_summary(locale:
|
|
3221
|
+
get_summary(locale: string | null): string;
|
|
3236
3222
|
|
|
3237
3223
|
/**
|
|
3238
3224
|
* @returns The module bug tracker website address.
|
|
@@ -3303,7 +3289,7 @@ export namespace Modulemd {
|
|
|
3303
3289
|
* @param profile_pattern A globbing pattern to locate one or more profiles in this {@link Modulemd.ModuleStreamV2} object. The names will be compared using [fnmatch(3)](https://www.mankier.com/3/fnmatch).
|
|
3304
3290
|
* @returns The list of {@link Modulemd.Profile} objects whose name matched `profile_pattern`. This function cannot fail, but it may return a zero-length list if no matches were found. The returned profiles will be sorted alphabetically by profile name.
|
|
3305
3291
|
*/
|
|
3306
|
-
search_profiles(profile_pattern:
|
|
3292
|
+
search_profiles(profile_pattern: string | null): Profile[];
|
|
3307
3293
|
|
|
3308
3294
|
/**
|
|
3309
3295
|
* Set the module artifact architecture.
|
|
@@ -3333,7 +3319,7 @@ export namespace Modulemd {
|
|
|
3333
3319
|
* Set the module description.
|
|
3334
3320
|
* @param description The untranslated description of this module.
|
|
3335
3321
|
*/
|
|
3336
|
-
set_description(description:
|
|
3322
|
+
set_description(description: string | null): void;
|
|
3337
3323
|
|
|
3338
3324
|
/**
|
|
3339
3325
|
* Set the module documentation website address.
|
|
@@ -3358,7 +3344,7 @@ export namespace Modulemd {
|
|
|
3358
3344
|
* Set the module summary.
|
|
3359
3345
|
* @param summary The untranslated summary of this module.
|
|
3360
3346
|
*/
|
|
3361
|
-
set_summary(summary:
|
|
3347
|
+
set_summary(summary: string | null): void;
|
|
3362
3348
|
|
|
3363
3349
|
/**
|
|
3364
3350
|
* Set the module bug tracker website address.
|
|
@@ -3402,11 +3388,11 @@ export namespace Modulemd {
|
|
|
3402
3388
|
|
|
3403
3389
|
// Constructor properties interface
|
|
3404
3390
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
3405
|
-
eol_date:
|
|
3406
|
-
eolDate:
|
|
3407
|
-
mdversion:
|
|
3391
|
+
eol_date: bigint | number;
|
|
3392
|
+
eolDate: bigint | number;
|
|
3393
|
+
mdversion: bigint | number;
|
|
3408
3394
|
message: string;
|
|
3409
|
-
modified:
|
|
3395
|
+
modified: bigint | number;
|
|
3410
3396
|
module_context: string;
|
|
3411
3397
|
moduleContext: string;
|
|
3412
3398
|
module_name: string;
|
|
@@ -3433,13 +3419,13 @@ export namespace Modulemd {
|
|
|
3433
3419
|
* @default 0
|
|
3434
3420
|
*/
|
|
3435
3421
|
get eol_date(): number;
|
|
3436
|
-
set eol_date(val:
|
|
3422
|
+
set eol_date(val: bigint | number);
|
|
3437
3423
|
|
|
3438
3424
|
/**
|
|
3439
3425
|
* @default 0
|
|
3440
3426
|
*/
|
|
3441
3427
|
get eolDate(): number;
|
|
3442
|
-
set eolDate(val:
|
|
3428
|
+
set eolDate(val: bigint | number);
|
|
3443
3429
|
|
|
3444
3430
|
/**
|
|
3445
3431
|
* @construct-only
|
|
@@ -3457,7 +3443,7 @@ export namespace Modulemd {
|
|
|
3457
3443
|
* @default 0
|
|
3458
3444
|
*/
|
|
3459
3445
|
get modified(): number;
|
|
3460
|
-
set modified(val:
|
|
3446
|
+
set modified(val: bigint | number);
|
|
3461
3447
|
|
|
3462
3448
|
/**
|
|
3463
3449
|
* @default null
|
|
@@ -3545,7 +3531,7 @@ export namespace Modulemd {
|
|
|
3545
3531
|
|
|
3546
3532
|
_init(...args: any[]): void;
|
|
3547
3533
|
|
|
3548
|
-
static ["new"](mdversion:
|
|
3534
|
+
static ["new"](mdversion: bigint | number, modified: bigint | number, module_name: string, module_stream: string, message: string): Obsoletes;
|
|
3549
3535
|
|
|
3550
3536
|
// Signals
|
|
3551
3537
|
/** @signal */
|
|
@@ -3610,17 +3596,17 @@ export namespace Modulemd {
|
|
|
3610
3596
|
/**
|
|
3611
3597
|
* @param eol_date The end-of-life date for this stream. If set to zero, the stream is EOLed immediately.
|
|
3612
3598
|
*/
|
|
3613
|
-
set_eol_date(eol_date:
|
|
3599
|
+
set_eol_date(eol_date: bigint | number): void;
|
|
3614
3600
|
|
|
3615
3601
|
/**
|
|
3616
3602
|
* @param modified The last modified time represented as a 64-bit integer (such as 201807011200).
|
|
3617
3603
|
*/
|
|
3618
|
-
set_modified(modified:
|
|
3604
|
+
set_modified(modified: bigint | number): void;
|
|
3619
3605
|
|
|
3620
3606
|
/**
|
|
3621
3607
|
* @param module_context The name of the module context to which this obsoletes applies.
|
|
3622
3608
|
*/
|
|
3623
|
-
set_module_context(module_context:
|
|
3609
|
+
set_module_context(module_context: string | null): void;
|
|
3624
3610
|
|
|
3625
3611
|
/**
|
|
3626
3612
|
* Sets both obsoleted by module name and stream because having one without
|
|
@@ -3649,13 +3635,10 @@ export namespace Modulemd {
|
|
|
3649
3635
|
|
|
3650
3636
|
namespace PackagerV3 {
|
|
3651
3637
|
// Signal signatures
|
|
3652
|
-
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
3653
|
-
}
|
|
3638
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
3654
3639
|
|
|
3655
3640
|
// Constructor properties interface
|
|
3656
|
-
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
3657
|
-
|
|
3658
|
-
}
|
|
3641
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
3659
3642
|
}
|
|
3660
3643
|
|
|
3661
3644
|
/**
|
|
@@ -3929,21 +3912,21 @@ export namespace Modulemd {
|
|
|
3929
3912
|
* stream `self` are removed and replaced by `set`.
|
|
3930
3913
|
* @param set A {@link GLib.HashTable} set of names of binary RPM packages to demodularize.
|
|
3931
3914
|
*/
|
|
3932
|
-
replace_demodularized_rpms(set:
|
|
3915
|
+
replace_demodularized_rpms(set: never): void;
|
|
3933
3916
|
|
|
3934
3917
|
/**
|
|
3935
3918
|
* Any existing API RPMs associated with module stream `self` are removed and
|
|
3936
3919
|
* replaced by `set`.
|
|
3937
3920
|
* @param set A {@link GLib.HashTable} set of binary RPMs present in this module stream that is considered stable public API.
|
|
3938
3921
|
*/
|
|
3939
|
-
replace_rpm_api(set:
|
|
3922
|
+
replace_rpm_api(set: never): void;
|
|
3940
3923
|
|
|
3941
3924
|
/**
|
|
3942
3925
|
* Any existing filtered binary RPM names associated with module stream `self`
|
|
3943
3926
|
* are removed and replaced by `set`.
|
|
3944
3927
|
* @param set A {@link GLib.HashTable} set of names of binary RPMs to filter out of this module stream.
|
|
3945
3928
|
*/
|
|
3946
|
-
replace_rpm_filters(set:
|
|
3929
|
+
replace_rpm_filters(set: never): void;
|
|
3947
3930
|
|
|
3948
3931
|
/**
|
|
3949
3932
|
* Set the module community website address.
|
|
@@ -3955,7 +3938,7 @@ export namespace Modulemd {
|
|
|
3955
3938
|
* Sets the module's long description.
|
|
3956
3939
|
* @param description A complete description of the module.
|
|
3957
3940
|
*/
|
|
3958
|
-
set_description(description:
|
|
3941
|
+
set_description(description: string | null): void;
|
|
3959
3942
|
|
|
3960
3943
|
/**
|
|
3961
3944
|
* Set the module documentation website address.
|
|
@@ -3979,7 +3962,7 @@ export namespace Modulemd {
|
|
|
3979
3962
|
* Sets the module's short description.
|
|
3980
3963
|
* @param summary A short description of the module.
|
|
3981
3964
|
*/
|
|
3982
|
-
set_summary(summary:
|
|
3965
|
+
set_summary(summary: string | null): void;
|
|
3983
3966
|
|
|
3984
3967
|
/**
|
|
3985
3968
|
* Set the module bug tracker website address.
|
|
@@ -4081,7 +4064,7 @@ export namespace Modulemd {
|
|
|
4081
4064
|
* @param locale The name of the locale to use when translating the string. If NULL, it will determine the locale with a system call to `setlocale(LC_MESSAGES, NULL)` and return that. If the caller wants the untranslated string, they should pass `"C"` for the locale.
|
|
4082
4065
|
* @returns The description of this profile translated into the language specified by the locale if it is available, otherwise it returns the C.UTF-8 original. Translation information is managed by the {@link Modulemd.Translation} and {@link Modulemd.TranslationEntry} objects.
|
|
4083
4066
|
*/
|
|
4084
|
-
get_description(locale:
|
|
4067
|
+
get_description(locale: string | null): string;
|
|
4085
4068
|
|
|
4086
4069
|
/**
|
|
4087
4070
|
* @returns The name of this profile.
|
|
@@ -4112,7 +4095,7 @@ export namespace Modulemd {
|
|
|
4112
4095
|
/**
|
|
4113
4096
|
* @param description The untranslated description of this profile.
|
|
4114
4097
|
*/
|
|
4115
|
-
set_description(description:
|
|
4098
|
+
set_description(description: string | null): void;
|
|
4116
4099
|
|
|
4117
4100
|
/**
|
|
4118
4101
|
* Calling this function indicates that this profile should not be considered
|
|
@@ -4138,7 +4121,7 @@ export namespace Modulemd {
|
|
|
4138
4121
|
// Constructor properties interface
|
|
4139
4122
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
4140
4123
|
arch: string;
|
|
4141
|
-
epoch:
|
|
4124
|
+
epoch: bigint | number;
|
|
4142
4125
|
name: string;
|
|
4143
4126
|
nevra: string;
|
|
4144
4127
|
release: string;
|
|
@@ -4163,7 +4146,7 @@ export namespace Modulemd {
|
|
|
4163
4146
|
* @default 0
|
|
4164
4147
|
*/
|
|
4165
4148
|
get epoch(): number;
|
|
4166
|
-
set epoch(val:
|
|
4149
|
+
set epoch(val: bigint | number);
|
|
4167
4150
|
|
|
4168
4151
|
/**
|
|
4169
4152
|
* @default null
|
|
@@ -4203,7 +4186,7 @@ export namespace Modulemd {
|
|
|
4203
4186
|
|
|
4204
4187
|
_init(...args: any[]): void;
|
|
4205
4188
|
|
|
4206
|
-
static ["new"](name: string, epoch:
|
|
4189
|
+
static ["new"](name: string, epoch: bigint | number, version: string, release: string, arch: string): RpmMapEntry;
|
|
4207
4190
|
|
|
4208
4191
|
// Signals
|
|
4209
4192
|
/** @signal */
|
|
@@ -4268,7 +4251,7 @@ export namespace Modulemd {
|
|
|
4268
4251
|
/**
|
|
4269
4252
|
* @param epoch The package epoch of this RPM.
|
|
4270
4253
|
*/
|
|
4271
|
-
set_epoch(epoch:
|
|
4254
|
+
set_epoch(epoch: bigint | number): void;
|
|
4272
4255
|
|
|
4273
4256
|
/**
|
|
4274
4257
|
* @param name The package name of this RPM.
|
|
@@ -4364,7 +4347,7 @@ export namespace Modulemd {
|
|
|
4364
4347
|
/**
|
|
4365
4348
|
* @returns The end date of the service level as a string of the form "YYYY-MM-DD" or NULL if the date is unset or invalid.
|
|
4366
4349
|
*/
|
|
4367
|
-
get_eol_as_string():
|
|
4350
|
+
get_eol_as_string(): string | null;
|
|
4368
4351
|
|
|
4369
4352
|
/**
|
|
4370
4353
|
* Get the name of this service level.
|
|
@@ -4382,7 +4365,7 @@ export namespace Modulemd {
|
|
|
4382
4365
|
* or NULL, the EOL will be unset.
|
|
4383
4366
|
* @param date The date this service level ends.
|
|
4384
4367
|
*/
|
|
4385
|
-
set_eol(date:
|
|
4368
|
+
set_eol(date: GLib.Date | null): void;
|
|
4386
4369
|
|
|
4387
4370
|
/**
|
|
4388
4371
|
* @param year The year this service level ends.
|
|
@@ -4395,13 +4378,10 @@ export namespace Modulemd {
|
|
|
4395
4378
|
|
|
4396
4379
|
namespace SubdocumentInfo {
|
|
4397
4380
|
// Signal signatures
|
|
4398
|
-
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
4399
|
-
}
|
|
4381
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
4400
4382
|
|
|
4401
4383
|
// Constructor properties interface
|
|
4402
|
-
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
4403
|
-
|
|
4404
|
-
}
|
|
4384
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
4405
4385
|
}
|
|
4406
4386
|
|
|
4407
4387
|
/**
|
|
@@ -4461,12 +4441,12 @@ export namespace Modulemd {
|
|
|
4461
4441
|
|
|
4462
4442
|
// Constructor properties interface
|
|
4463
4443
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
4464
|
-
modified:
|
|
4444
|
+
modified: bigint | number;
|
|
4465
4445
|
module_name: string;
|
|
4466
4446
|
moduleName: string;
|
|
4467
4447
|
module_stream: string;
|
|
4468
4448
|
moduleStream: string;
|
|
4469
|
-
version:
|
|
4449
|
+
version: bigint | number;
|
|
4470
4450
|
}
|
|
4471
4451
|
}
|
|
4472
4452
|
|
|
@@ -4481,7 +4461,7 @@ export namespace Modulemd {
|
|
|
4481
4461
|
* @default 0
|
|
4482
4462
|
*/
|
|
4483
4463
|
get modified(): number;
|
|
4484
|
-
set modified(val:
|
|
4464
|
+
set modified(val: bigint | number);
|
|
4485
4465
|
|
|
4486
4466
|
/**
|
|
4487
4467
|
* @construct-only
|
|
@@ -4527,7 +4507,7 @@ export namespace Modulemd {
|
|
|
4527
4507
|
|
|
4528
4508
|
_init(...args: any[]): void;
|
|
4529
4509
|
|
|
4530
|
-
static ["new"](version:
|
|
4510
|
+
static ["new"](version: bigint | number, module_name: string, module_stream: string, modified: bigint | number): Translation;
|
|
4531
4511
|
|
|
4532
4512
|
// Signals
|
|
4533
4513
|
/** @signal */
|
|
@@ -4563,7 +4543,7 @@ export namespace Modulemd {
|
|
|
4563
4543
|
/**
|
|
4564
4544
|
* @param modified The last modified time represented as a 64-bit integer (such as 201807011200).
|
|
4565
4545
|
*/
|
|
4566
|
-
set_modified(modified:
|
|
4546
|
+
set_modified(modified: bigint | number): void;
|
|
4567
4547
|
|
|
4568
4548
|
/**
|
|
4569
4549
|
* @param translation_entry A set of translations of this module stream for a particular locale.
|
|
@@ -4689,19 +4669,19 @@ export namespace Modulemd {
|
|
|
4689
4669
|
/**
|
|
4690
4670
|
* @param description The description of this module stream translated into the language specified by locale.
|
|
4691
4671
|
*/
|
|
4692
|
-
set_description(description:
|
|
4672
|
+
set_description(description: string | null): void;
|
|
4693
4673
|
|
|
4694
4674
|
/**
|
|
4695
4675
|
* Adds a profile name translation.
|
|
4696
4676
|
* @param profile_name The name of the profile.
|
|
4697
4677
|
* @param profile_description The translated description of the profile.
|
|
4698
4678
|
*/
|
|
4699
|
-
set_profile_description(profile_name: string, profile_description:
|
|
4679
|
+
set_profile_description(profile_name: string, profile_description: string | null): void;
|
|
4700
4680
|
|
|
4701
4681
|
/**
|
|
4702
4682
|
* @param summary The summary of this module translated appropriately for this locale.
|
|
4703
4683
|
*/
|
|
4704
|
-
set_summary(summary:
|
|
4684
|
+
set_summary(summary: string | null): void;
|
|
4705
4685
|
}
|
|
4706
4686
|
|
|
4707
4687
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/modulemd-2.0",
|
|
3
|
-
"version": "2.0.0-4.0.0
|
|
3
|
+
"version": "2.0.0-4.0.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Modulemd-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "modulemd-2.0.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "4.0.0
|
|
35
|
-
"@girs/gobject-2.0": "2.88.0-4.0.0
|
|
36
|
-
"@girs/glib-2.0": "2.88.0-4.0.0
|
|
34
|
+
"@girs/gjs": "4.0.0",
|
|
35
|
+
"@girs/gobject-2.0": "2.88.0-4.0.0",
|
|
36
|
+
"@girs/glib-2.0": "2.88.0-4.0.0" },
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "*"
|
|
39
39
|
},
|