@@ -32,23 +32,23 @@ public protocol PackageCollectionsProtocol {
32
32
/// the ordering of `PackageCollection`s should be preserved and respected during conflict resolution.
33
33
///
34
34
/// - Parameters:
35
- /// - identifers : Optional. If specified, only `PackageCollection`s with matching identifiers will be returned.
35
+ /// - identifiers : Optional. If specified, only `PackageCollection`s with matching identifiers will be returned.
36
36
/// - profile: Optional. The `PackageCollectionProfile` context. By default the `default` profile is used.
37
37
/// - callback: The closure to invoke when result becomes available
38
- func listPackageCollections (
39
- identifers : Set < PackageCollectionsModel . PackageCollectionIdentifier > ? ,
38
+ func listCollections (
39
+ identifiers : Set < PackageCollectionsModel . CollectionIdentifier > ? ,
40
40
in profile: PackageCollectionsModel . Profile ? ,
41
- callback: @escaping ( Result < [ PackageCollectionsModel . PackageCollection ] , Error > ) -> Void
41
+ callback: @escaping ( Result < [ PackageCollectionsModel . Collection ] , Error > ) -> Void
42
42
)
43
43
44
44
/// Refreshes all configured package collections.
45
45
///
46
46
/// - Parameters:
47
47
/// - profile: Optional. The `PackageCollectionProfile` context. By default the `default` profile is used.
48
48
/// - callback: The closure to invoke after triggering a refresh for the configured package collections.
49
- func refreshPackageCollections (
49
+ func refreshCollections (
50
50
in profile: PackageCollectionsModel . Profile ? ,
51
- callback: @escaping ( Result < [ PackageCollectionsModel . PackageCollectionSource ] , Error > ) -> Void
51
+ callback: @escaping ( Result < [ PackageCollectionsModel . CollectionSource ] , Error > ) -> Void
52
52
)
53
53
54
54
/// Adds a package collection.
@@ -59,11 +59,11 @@ public protocol PackageCollectionsProtocol {
59
59
/// By default the new collection is appended to the end (i.e., the least relevant order).
60
60
/// - profile: Optional. The `PackageCollectionProfile` context. By default the `default` profile is used.
61
61
/// - callback: The closure to invoke with the updated `PackageCollection`s
62
- func addPackageCollection (
63
- _ source: PackageCollectionsModel . PackageCollectionSource ,
62
+ func addCollection (
63
+ _ source: PackageCollectionsModel . CollectionSource ,
64
64
order: Int ? ,
65
65
to profile: PackageCollectionsModel . Profile ? ,
66
- callback: @escaping ( Result < PackageCollectionsModel . PackageCollection , Error > ) -> Void
66
+ callback: @escaping ( Result < PackageCollectionsModel . Collection , Error > ) -> Void
67
67
)
68
68
69
69
/// Removes a package collection.
@@ -72,8 +72,8 @@ public protocol PackageCollectionsProtocol {
72
72
/// - source: The package collection's source
73
73
/// - profile: Optional. The `PackageCollectionProfile` context. By default the `default` profile is used.
74
74
/// - callback: The closure to invoke with the updated `PackageCollection`s
75
- func removePackageCollection (
76
- _ source: PackageCollectionsModel . PackageCollectionSource ,
75
+ func removeCollection (
76
+ _ source: PackageCollectionsModel . CollectionSource ,
77
77
from profile: PackageCollectionsModel . Profile ? ,
78
78
callback: @escaping ( Result < Void , Error > ) -> Void
79
79
)
@@ -85,8 +85,8 @@ public protocol PackageCollectionsProtocol {
85
85
/// - order: The new order that the `PackageCollection` should be positioned after the move
86
86
/// - profile: Optional. The `PackageCollectionProfile` context. By default the `default` profile is used.
87
87
/// - callback: The closure to invoke with the updated `PackageCollection`s
88
- func movePackageCollection (
89
- _ source: PackageCollectionsModel . PackageCollectionSource ,
88
+ func moveCollection (
89
+ _ source: PackageCollectionsModel . CollectionSource ,
90
90
to order: Int ,
91
91
in profile: PackageCollectionsModel . Profile ? ,
92
92
callback: @escaping ( Result < Void , Error > ) -> Void
@@ -98,9 +98,9 @@ public protocol PackageCollectionsProtocol {
98
98
/// - Parameters:
99
99
/// - source: The package collection's source
100
100
/// - callback: The closure to invoke with the `PackageCollection`
101
- func getPackageCollection (
102
- _ source: PackageCollectionsModel . PackageCollectionSource ,
103
- callback: @escaping ( Result < PackageCollectionsModel . PackageCollection , Error > ) -> Void
101
+ func getCollection (
102
+ _ source: PackageCollectionsModel . CollectionSource ,
103
+ callback: @escaping ( Result < PackageCollectionsModel . Collection , Error > ) -> Void
104
104
)
105
105
106
106
// MARK: - Package APIs
@@ -133,7 +133,7 @@ public protocol PackageCollectionsProtocol {
133
133
/// - profile: Optional. The `PackageCollectionProfile` context. By default the `default` profile is used.
134
134
/// - callback: The closure to invoke when result becomes available
135
135
func listTargets(
136
- collections: Set < PackageCollectionsModel . PackageCollectionIdentifier > ? ,
136
+ collections: Set < PackageCollectionsModel . CollectionIdentifier > ? ,
137
137
in profile: PackageCollectionsModel . Profile ? ,
138
138
callback: @escaping ( Result < PackageCollectionsModel . TargetListResult , Error > ) -> Void
139
139
)
@@ -152,7 +152,7 @@ public protocol PackageCollectionsProtocol {
152
152
/// - callback: The closure to invoke when result becomes available
153
153
func findPackages(
154
154
_ query: String ,
155
- collections: Set < PackageCollectionsModel . PackageCollectionIdentifier > ? ,
155
+ collections: Set < PackageCollectionsModel . CollectionIdentifier > ? ,
156
156
profile: PackageCollectionsModel . Profile ? ,
157
157
callback: @escaping ( Result < PackageCollectionsModel . PackageSearchResult , Error > ) -> Void
158
158
)
@@ -172,7 +172,7 @@ public protocol PackageCollectionsProtocol {
172
172
func findTargets(
173
173
_ query: String ,
174
174
searchType: PackageCollectionsModel . TargetSearchType ? ,
175
- collections: Set < PackageCollectionsModel . PackageCollectionIdentifier > ? ,
175
+ collections: Set < PackageCollectionsModel . CollectionIdentifier > ? ,
176
176
profile: PackageCollectionsModel . Profile ? ,
177
177
callback: @escaping ( Result < PackageCollectionsModel . TargetSearchResult , Error > ) -> Void
178
178
)
0 commit comments