@@ -122,7 +122,7 @@ public final class SearchRepositoriesQuery: GraphQLQuery {
122
122
}
123
123
124
124
public struct Node : GraphQLSelectionSet {
125
- public static let possibleTypes = [ " Issue " , " PullRequest " , " Repository " , " User " , " Organization " ]
125
+ public static let possibleTypes = [ " Issue " , " PullRequest " , " Repository " , " User " , " Organization " , " MarketplaceListing " ]
126
126
127
127
public static let selections : [ GraphQLSelection ] = [
128
128
GraphQLTypeCase (
@@ -155,6 +155,10 @@ public final class SearchRepositoriesQuery: GraphQLQuery {
155
155
return Node ( snapshot: [ " __typename " : " Organization " ] )
156
156
}
157
157
158
+ public static func makeMarketplaceListing( ) -> Node {
159
+ return Node ( snapshot: [ " __typename " : " MarketplaceListing " ] )
160
+ }
161
+
158
162
public static func makeRepository( name: String , owner: AsRepository . Owner , stargazers: AsRepository . Stargazer , url: String ) -> Node {
159
163
return Node ( snapshot: [ " __typename " : " Repository " , " name " : name, " owner " : owner. snapshot, " stargazers " : stargazers. snapshot, " url " : url] )
160
164
}
@@ -230,7 +234,7 @@ public final class SearchRepositoriesQuery: GraphQLQuery {
230
234
}
231
235
}
232
236
233
- /// A list of users who have starred this repository .
237
+ /// A list of users who have starred this starrable .
234
238
public var stargazers : Stargazer {
235
239
get {
236
240
return Stargazer ( snapshot: snapshot [ " stargazers " ] ! as! Snapshot )
@@ -240,7 +244,7 @@ public final class SearchRepositoriesQuery: GraphQLQuery {
240
244
}
241
245
}
242
246
243
- /// The HTTP url for this repository
247
+ /// The HTTP URL for this repository
244
248
public var url : String {
245
249
get {
246
250
return snapshot [ " url " ] ! as! String
@@ -277,7 +281,7 @@ public final class SearchRepositoriesQuery: GraphQLQuery {
277
281
278
282
public static let selections : [ GraphQLSelection ] = [
279
283
GraphQLField ( " __typename " , type: . nonNull( . scalar( String . self) ) ) ,
280
- GraphQLField ( " path " , type: . nonNull( . scalar( String . self) ) ) ,
284
+ GraphQLField ( " resourcePath " , type: . nonNull( . scalar( String . self) ) ) ,
281
285
]
282
286
283
287
public var snapshot : Snapshot
@@ -286,12 +290,12 @@ public final class SearchRepositoriesQuery: GraphQLQuery {
286
290
self . snapshot = snapshot
287
291
}
288
292
289
- public static func makeOrganization( path : String ) -> Owner {
290
- return Owner ( snapshot: [ " __typename " : " Organization " , " path " : path ] )
293
+ public static func makeOrganization( resourcePath : String ) -> Owner {
294
+ return Owner ( snapshot: [ " __typename " : " Organization " , " resourcePath " : resourcePath ] )
291
295
}
292
296
293
- public static func makeUser( path : String ) -> Owner {
294
- return Owner ( snapshot: [ " __typename " : " User " , " path " : path ] )
297
+ public static func makeUser( resourcePath : String ) -> Owner {
298
+ return Owner ( snapshot: [ " __typename " : " User " , " resourcePath " : resourcePath ] )
295
299
}
296
300
297
301
public var __typename : String {
@@ -303,13 +307,13 @@ public final class SearchRepositoriesQuery: GraphQLQuery {
303
307
}
304
308
}
305
309
306
- /// The HTTP url for the owner.
307
- public var path : String {
310
+ /// The HTTP URL for the owner.
311
+ public var resourcePath : String {
308
312
get {
309
- return snapshot [ " path " ] ! as! String
313
+ return snapshot [ " resourcePath " ] ! as! String
310
314
}
311
315
set {
312
- snapshot. updateValue ( newValue, forKey: " path " )
316
+ snapshot. updateValue ( newValue, forKey: " resourcePath " )
313
317
}
314
318
}
315
319
}
@@ -360,7 +364,7 @@ public final class SearchRepositoriesQuery: GraphQLQuery {
360
364
361
365
public struct RepositoryDetails : GraphQLFragment {
362
366
public static let fragmentString =
363
- " fragment RepositoryDetails on Repository { \n __typename \n name \n owner { \n __typename \n path \n } \n stargazers { \n __typename \n totalCount \n } \n url \n } "
367
+ " fragment RepositoryDetails on Repository { \n __typename \n name \n owner { \n __typename \n resourcePath \n } \n stargazers { \n __typename \n totalCount \n } \n url \n } "
364
368
365
369
public static let possibleTypes = [ " Repository " ]
366
370
@@ -411,7 +415,7 @@ public struct RepositoryDetails: GraphQLFragment {
411
415
}
412
416
}
413
417
414
- /// A list of users who have starred this repository .
418
+ /// A list of users who have starred this starrable .
415
419
public var stargazers : Stargazer {
416
420
get {
417
421
return Stargazer ( snapshot: snapshot [ " stargazers " ] ! as! Snapshot )
@@ -421,7 +425,7 @@ public struct RepositoryDetails: GraphQLFragment {
421
425
}
422
426
}
423
427
424
- /// The HTTP url for this repository
428
+ /// The HTTP URL for this repository
425
429
public var url : String {
426
430
get {
427
431
return snapshot [ " url " ] ! as! String
@@ -436,7 +440,7 @@ public struct RepositoryDetails: GraphQLFragment {
436
440
437
441
public static let selections : [ GraphQLSelection ] = [
438
442
GraphQLField ( " __typename " , type: . nonNull( . scalar( String . self) ) ) ,
439
- GraphQLField ( " path " , type: . nonNull( . scalar( String . self) ) ) ,
443
+ GraphQLField ( " resourcePath " , type: . nonNull( . scalar( String . self) ) ) ,
440
444
]
441
445
442
446
public var snapshot : Snapshot
@@ -445,12 +449,12 @@ public struct RepositoryDetails: GraphQLFragment {
445
449
self . snapshot = snapshot
446
450
}
447
451
448
- public static func makeOrganization( path : String ) -> Owner {
449
- return Owner ( snapshot: [ " __typename " : " Organization " , " path " : path ] )
452
+ public static func makeOrganization( resourcePath : String ) -> Owner {
453
+ return Owner ( snapshot: [ " __typename " : " Organization " , " resourcePath " : resourcePath ] )
450
454
}
451
455
452
- public static func makeUser( path : String ) -> Owner {
453
- return Owner ( snapshot: [ " __typename " : " User " , " path " : path ] )
456
+ public static func makeUser( resourcePath : String ) -> Owner {
457
+ return Owner ( snapshot: [ " __typename " : " User " , " resourcePath " : resourcePath ] )
454
458
}
455
459
456
460
public var __typename : String {
@@ -462,13 +466,13 @@ public struct RepositoryDetails: GraphQLFragment {
462
466
}
463
467
}
464
468
465
- /// The HTTP url for the owner.
466
- public var path : String {
469
+ /// The HTTP URL for the owner.
470
+ public var resourcePath : String {
467
471
get {
468
- return snapshot [ " path " ] ! as! String
472
+ return snapshot [ " resourcePath " ] ! as! String
469
473
}
470
474
set {
471
- snapshot. updateValue ( newValue, forKey: " path " )
475
+ snapshot. updateValue ( newValue, forKey: " resourcePath " )
472
476
}
473
477
}
474
478
}
0 commit comments