|
29 | 29 | bundle_module_bindable = ObjectType("BundleModule") |
30 | 30 | bundle_asset_bindable = ObjectType("BundleAsset") |
31 | 31 | bundle_report_bindable = ObjectType("BundleReport") |
32 | | -bundle_info_bindable = ObjectType("BundleInfo") |
| 32 | +bundle_report_info_bindable = ObjectType("BundleReportInfo") |
33 | 33 |
|
34 | 34 |
|
35 | 35 | def _find_index_by_cursor(assets: List, cursor: str) -> int: |
@@ -383,50 +383,50 @@ def resolve_bundle_report_info( |
383 | 383 | return BundleReportInfo(bundle_report.info) |
384 | 384 |
|
385 | 385 |
|
386 | | -@bundle_info_bindable.field("version") |
387 | | -def resolve_bundle_info_version( |
388 | | - bundle_info: BundleReportInfo, info: GraphQLResolveInfo |
| 386 | +@bundle_report_info_bindable.field("version") |
| 387 | +def resolve_bundle_report_info_version( |
| 388 | + bundle_report_info: BundleReportInfo, info: GraphQLResolveInfo |
389 | 389 | ) -> str: |
390 | | - return bundle_info.version |
| 390 | + return bundle_report_info.version |
391 | 391 |
|
392 | 392 |
|
393 | | -@bundle_info_bindable.field("plugin_name") |
394 | | -def resolve_bundle_info_plugin_name( |
395 | | - bundle_info: BundleReportInfo, info: GraphQLResolveInfo |
| 393 | +@bundle_report_info_bindable.field("plugin_name") |
| 394 | +def resolve_bundle_report_info_plugin_name( |
| 395 | + bundle_report_info: BundleReportInfo, info: GraphQLResolveInfo |
396 | 396 | ) -> str: |
397 | | - return bundle_info.plugin_name |
| 397 | + return bundle_report_info.plugin_name |
398 | 398 |
|
399 | 399 |
|
400 | | -@bundle_info_bindable.field("plugin_version") |
401 | | -def resolve_bundle_info_plugin_version( |
402 | | - bundle_info: BundleReportInfo, info: GraphQLResolveInfo |
| 400 | +@bundle_report_info_bindable.field("plugin_version") |
| 401 | +def resolve_bundle_report_info_plugin_version( |
| 402 | + bundle_report_info: BundleReportInfo, info: GraphQLResolveInfo |
403 | 403 | ) -> str: |
404 | | - return bundle_info.plugin_version |
| 404 | + return bundle_report_info.plugin_version |
405 | 405 |
|
406 | 406 |
|
407 | | -@bundle_info_bindable.field("built_at") |
408 | | -def resolve_bundle_info_built_at( |
409 | | - bundle_info: BundleReportInfo, info: GraphQLResolveInfo |
| 407 | +@bundle_report_info_bindable.field("built_at") |
| 408 | +def resolve_bundle_report_info_built_at( |
| 409 | + bundle_report_info: BundleReportInfo, info: GraphQLResolveInfo |
410 | 410 | ) -> str: |
411 | | - return bundle_info.built_at |
| 411 | + return bundle_report_info.built_at |
412 | 412 |
|
413 | 413 |
|
414 | | -@bundle_info_bindable.field("duration") |
415 | | -def resolve_bundle_info_duration( |
416 | | - bundle_info: BundleReportInfo, info: GraphQLResolveInfo |
| 414 | +@bundle_report_info_bindable.field("duration") |
| 415 | +def resolve_bundle_report_info_duration( |
| 416 | + bundle_report_info: BundleReportInfo, info: GraphQLResolveInfo |
417 | 417 | ) -> int: |
418 | | - return bundle_info.duration |
| 418 | + return bundle_report_info.duration |
419 | 419 |
|
420 | 420 |
|
421 | | -@bundle_info_bindable.field("bundler_name") |
422 | | -def resolve_bundle_info_bundler_name( |
423 | | - bundle_info: BundleReportInfo, info: GraphQLResolveInfo |
| 421 | +@bundle_report_info_bindable.field("bundler_name") |
| 422 | +def resolve_bundle_report_info_bundler_name( |
| 423 | + bundle_report_info: BundleReportInfo, info: GraphQLResolveInfo |
424 | 424 | ) -> str: |
425 | | - return bundle_info.bundler_name |
| 425 | + return bundle_report_info.bundler_name |
426 | 426 |
|
427 | 427 |
|
428 | | -@bundle_info_bindable.field("bundler_version") |
429 | | -def resolve_bundle_info_bundler_version( |
430 | | - bundle_info: BundleReportInfo, info: GraphQLResolveInfo |
| 428 | +@bundle_report_info_bindable.field("bundler_version") |
| 429 | +def resolve_bundle_report_info_bundler_version( |
| 430 | + bundle_report_info: BundleReportInfo, info: GraphQLResolveInfo |
431 | 431 | ) -> str: |
432 | | - return bundle_info.bundler_version |
| 432 | + return bundle_report_info.bundler_version |
0 commit comments