Skip to content

Commit f1cdb46

Browse files
authored
Merge pull request #1301 from php-api-clients/GitHub/from-1.1.4-a5d0ef223e8ea4b0fd40cfba849d6268-from-1.1.4-a5d0ef223e8ea4b0fd40cfba849d6268
2 parents 334aab5 + 02628a2 commit f1cdb46

18 files changed

+113
-86
lines changed

clients/GitHub/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ $client->operations()->classroom()->getAnAssignment( assignment_id: 13,
598598
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/classroom/classroom#get-an-assignment).
599599

600600

601-
### classroom/list-accepted-assigments-for-an-assignment
601+
### classroom/list-accepted-assignments-for-an-assignment
602602

603603
List accepted assignments for an assignment
604604

@@ -613,7 +613,7 @@ $client->call('GET /assignments/{assignment_id}/accepted_assignments', [
613613

614614
Operations method:
615615
```php
616-
$client->operations()->classroom()->listAcceptedAssigmentsForAnAssignment( assignment_id: 13,
616+
$client->operations()->classroom()->listAcceptedAssignmentsForAnAssignment( assignment_id: 13,
617617
page: 1,
618618
per_page: 8,
619619
);
@@ -622,7 +622,7 @@ $client->operations()->classroom()->listAcceptedAssigmentsForAnAssignment(
622622
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/classroom/classroom#list-accepted-assignments-for-an-assignment).
623623

624624

625-
### classroom/list-accepted-assigments-for-an-assignment
625+
### classroom/list-accepted-assignments-for-an-assignment
626626

627627
List accepted assignments for an assignment
628628

@@ -637,7 +637,7 @@ $client->call('LIST /assignments/{assignment_id}/accepted_assignments', [
637637

638638
Operations method:
639639
```php
640-
$client->operations()->classroom()->listAcceptedAssigmentsForAnAssignmentListing( assignment_id: 13,
640+
$client->operations()->classroom()->listAcceptedAssignmentsForAnAssignmentListing( assignment_id: 13,
641641
page: 1,
642642
per_page: 8,
643643
);

clients/GitHub/etc/openapi-client-generator.state

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "1286a2730d7f8da9f91dca4d989b2f56",
2+
"specHash": "a5d0ef223e8ea4b0fd40cfba849d6268",
33
"generatedFiles": {
44
"files": [
55
{
@@ -2180,7 +2180,7 @@
21802180
},
21812181
{
21822182
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestDequeued.php",
2183-
"hash": "92a7b10efed15fc67dc010bc763dbb2b"
2183+
"hash": "099da42b842b3c67542474d643d42688"
21842184
},
21852185
{
21862186
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestEdited.php",
@@ -24956,7 +24956,7 @@
2495624956
},
2495724957
{
2495824958
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php",
24959-
"hash": "5569b73dc45f3684b242e5513e522b01"
24959+
"hash": "0c755bbf08a0a859a5b877b090661cba"
2496024960
},
2496124961
{
2496224962
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
@@ -25060,7 +25060,7 @@
2506025060
},
2506125061
{
2506225062
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php",
25063-
"hash": "927cd9b6993c00d49e35493bf5f5feb2"
25063+
"hash": "271ff22a0c68ea8026f79dd113305f17"
2506425064
},
2506525065
{
2506625066
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php",
@@ -25168,7 +25168,7 @@
2516825168
},
2516925169
{
2517025170
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php",
25171-
"hash": "d89c7b3d447af4a3f24163abb6a5e844"
25171+
"hash": "6414e56629281c294082d1ed24987d74"
2517225172
},
2517325173
{
2517425174
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php",
@@ -27202,30 +27202,6 @@
2720227202
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/GetAnAssignmentTest.php",
2720327203
"hash": "427c8f092f8975a6ffdb2a455153c093"
2720427204
},
27205-
{
27206-
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignment.php",
27207-
"hash": "8bf729e2f1dbc2a0e6c305cbd981c075"
27208-
},
27209-
{
27210-
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssigmentsForAnAssignment.php",
27211-
"hash": "13e1bbb9b710d03b1d7a91ac8a89b98d"
27212-
},
27213-
{
27214-
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentTest.php",
27215-
"hash": "f51319bbc9dfe3d52eedf83d1c4c4b55"
27216-
},
27217-
{
27218-
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListing.php",
27219-
"hash": "0f15039bdf8da4dba93fa285a6c8f928"
27220-
},
27221-
{
27222-
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListing.php",
27223-
"hash": "bb0c35fd475ad9a6444e40f927d21132"
27224-
},
27225-
{
27226-
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssigmentsForAnAssignmentListingTest.php",
27227-
"hash": "6921831dd561f63e30fa8859f95d8498"
27228-
},
2722927205
{
2723027206
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/GetAssignmentGrades.php",
2723127207
"hash": "d276ace321f6a368bc5d6049a84f8fd6"
@@ -27336,15 +27312,15 @@
2733627312
},
2733727313
{
2733827314
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Classroom.php",
27339-
"hash": "557ff6b66132049d3ef6fb98acc7eb90"
27315+
"hash": "4f2cf8728235648cae15b1958de10bf2"
2734027316
},
2734127317
{
2734227318
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Classroom.php",
27343-
"hash": "8500a5e091c0f4e698cd2f94530e2157"
27319+
"hash": "eb3e9bed508b999c4f9c087e4b6b703e"
2734427320
},
2734527321
{
2734627322
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Classroom.php",
27347-
"hash": "f5a95d64563d6b91f87b9f9ba8f942a1"
27323+
"hash": "2dae55a3c52ed74b6e271d6fc9062a83"
2734827324
},
2734927325
{
2735027326
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Assignments\/AssignmentId.php",
@@ -27776,11 +27752,11 @@
2777627752
},
2777727753
{
2777827754
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27779-
"hash": "b279bfe420072ca3881b316b41cde25a"
27755+
"hash": "33318fe30d614cf4a46450c45f71fb39"
2778027756
},
2778127757
{
2778227758
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27783-
"hash": "a3cd037b10acacb7fbfa8165f0c08dac"
27759+
"hash": "1533702d14f0bea8333c07baccff6dd2"
2778427760
},
2778527761
{
2778627762
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -30465,6 +30441,30 @@
3046530441
{
3046630442
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CvssSeverities\/CvssVFour.php",
3046730443
"hash": "0fbb9d309995f6522a3f79655d329b79"
30444+
},
30445+
{
30446+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php",
30447+
"hash": "d3ee42178f38dd4d20f857193877a6ee"
30448+
},
30449+
{
30450+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php",
30451+
"hash": "4e0347cbe7214efbcccc91d3462c0ae2"
30452+
},
30453+
{
30454+
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentTest.php",
30455+
"hash": "f81bfc12b82dbb782514fac2034e5fc5"
30456+
},
30457+
{
30458+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php",
30459+
"hash": "9ee1cc05ef0547dd757ef71a10d609aa"
30460+
},
30461+
{
30462+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php",
30463+
"hash": "ee3714c4146b9cfeaee88fc613c30ca4"
30464+
},
30465+
{
30466+
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListingTest.php",
30467+
"hash": "9f83275b3264e5721c75f5e519252f6d"
3046830468
}
3046930469
]
3047030470
},

clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignment.php renamed to clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignment.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
use function json_decode;
2121
use function str_replace;
2222

23-
final class ListAcceptedAssigmentsForAnAssignment
23+
final class ListAcceptedAssignmentsForAnAssignment
2424
{
25-
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
25+
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
2626
public const OPERATION_MATCH = 'GET /assignments/{assignment_id}/accepted_assignments';
2727
/**The unique identifier of the classroom assignment. **/
2828
private int $assignmentId;

clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssigmentsForAnAssignmentListing.php renamed to clients/GitHub/src/Internal/Operation/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
use function json_decode;
2121
use function str_replace;
2222

23-
final class ListAcceptedAssigmentsForAnAssignmentListing
23+
final class ListAcceptedAssignmentsForAnAssignmentListing
2424
{
25-
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
25+
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
2626
public const OPERATION_MATCH = 'LIST /assignments/{assignment_id}/accepted_assignments';
2727
/**The unique identifier of the classroom assignment. **/
2828
private int $assignmentId;

clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssigmentsForAnAssignment.php renamed to clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
use function React\Async\await;
1616
use function WyriHaximus\React\awaitObservable;
1717

18-
final readonly class ListAcceptedAssigmentsForAnAssignment
18+
final readonly class ListAcceptedAssignmentsForAnAssignment
1919
{
20-
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
20+
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
2121
public const OPERATION_MATCH = 'GET /assignments/{assignment_id}/accepted_assignments';
2222

2323
public function __construct(private Browser $browser, private AuthenticationInterface $authentication, private SchemaValidator $responseSchemaValidator, private Internal\Hydrator\Operation\Assignments\AssignmentId\AcceptedAssignments $hydrator)
2424
{
2525
}
2626

27-
/** @return Observable<Schema\ClassroomAcceptedAssignment> */
27+
/** @return iterable<int,Schema\ClassroomAcceptedAssignment> */
2828
public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable
2929
{
30-
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
30+
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
3131
$request = $operation->createRequest();
3232
$result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable {
3333
return $operation->createResponse($response);

clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssigmentsForAnAssignmentListing.php renamed to clients/GitHub/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
use function React\Async\await;
1616
use function WyriHaximus\React\awaitObservable;
1717

18-
final readonly class ListAcceptedAssigmentsForAnAssignmentListing
18+
final readonly class ListAcceptedAssignmentsForAnAssignmentListing
1919
{
20-
public const OPERATION_ID = 'classroom/list-accepted-assigments-for-an-assignment';
20+
public const OPERATION_ID = 'classroom/list-accepted-assignments-for-an-assignment';
2121
public const OPERATION_MATCH = 'LIST /assignments/{assignment_id}/accepted_assignments';
2222

2323
public function __construct(private Browser $browser, private AuthenticationInterface $authentication, private SchemaValidator $responseSchemaValidator, private Internal\Hydrator\Operation\Assignments\AssignmentId\AcceptedAssignments $hydrator)
2424
{
2525
}
2626

27-
/** @return Observable<Schema\ClassroomAcceptedAssignment> */
27+
/** @return iterable<int,Schema\ClassroomAcceptedAssignment> */
2828
public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable
2929
{
30-
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssigmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
30+
$operation = new \ApiClients\Client\GitHub\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage);
3131
$request = $operation->createRequest();
3232
$result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable {
3333
return $operation->createResponse($response);

clients/GitHub/src/Internal/Operators.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ final class Operators
3737
private Internal\Operator\Apps\ScopeToken|null $apps👷ScopeToken = null;
3838
private Internal\Operator\Apps\GetBySlug|null $apps👷GetBySlug = null;
3939
private Internal\Operator\Classroom\GetAnAssignment|null $classroom👷GetAnAssignment = null;
40-
private Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment|null $classroom👷ListAcceptedAssigmentsForAnAssignment = null;
41-
private Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing|null $classroom👷ListAcceptedAssigmentsForAnAssignmentListing = null;
40+
private Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment|null $classroom👷ListAcceptedAssignmentsForAnAssignment = null;
41+
private Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing|null $classroom👷ListAcceptedAssignmentsForAnAssignmentListing = null;
4242
private Internal\Operator\Classroom\GetAssignmentGrades|null $classroom👷GetAssignmentGrades = null;
4343
private Internal\Operator\Classroom\ListClassrooms|null $classroom👷ListClassrooms = null;
4444
private Internal\Operator\Classroom\ListClassroomsListing|null $classroom👷ListClassroomsListing = null;
@@ -1378,22 +1378,22 @@ public function classroom👷GetAnAssignment(): Internal\Operator\Classroom\GetA
13781378
return $this->classroom👷GetAnAssignment;
13791379
}
13801380

1381-
public function classroom👷ListAcceptedAssigmentsForAnAssignment(): Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment
1381+
public function classroom👷ListAcceptedAssignmentsForAnAssignment(): Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment
13821382
{
1383-
if ($this->classroom👷ListAcceptedAssigmentsForAnAssignment instanceof Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment === false) {
1384-
$this->classroom👷ListAcceptedAssigmentsForAnAssignment = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
1383+
if ($this->classroom👷ListAcceptedAssignmentsForAnAssignment instanceof Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment === false) {
1384+
$this->classroom👷ListAcceptedAssignmentsForAnAssignment = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
13851385
}
13861386

1387-
return $this->classroom👷ListAcceptedAssigmentsForAnAssignment;
1387+
return $this->classroom👷ListAcceptedAssignmentsForAnAssignment;
13881388
}
13891389

1390-
public function classroom👷ListAcceptedAssigmentsForAnAssignmentListing(): Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing
1390+
public function classroom👷ListAcceptedAssignmentsForAnAssignmentListing(): Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing
13911391
{
1392-
if ($this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing instanceof Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing === false) {
1393-
$this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignmentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
1392+
if ($this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing instanceof Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing === false) {
1393+
$this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
13941394
}
13951395

1396-
return $this->classroom👷ListAcceptedAssigmentsForAnAssignmentListing;
1396+
return $this->classroom👷ListAcceptedAssignmentsForAnAssignmentListing;
13971397
}
13981398

13991399
public function classroom👷GetAssignmentGrades(): Internal\Operator\Classroom\GetAssignmentGrades

clients/GitHub/src/Internal/Router/Get/Classroom.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function getAClassroom(array $params): \ApiClients\Client\GitHub\Schema\C
7171
return $operator->call($arguments['classroom_id']);
7272
}
7373

74-
/** @return Observable<Schema\ClassroomAcceptedAssignment> */
75-
public function listAcceptedAssigmentsForAnAssignment(array $params): iterable
74+
/** @return iterable<int,Schema\ClassroomAcceptedAssignment> */
75+
public function listAcceptedAssignmentsForAnAssignment(array $params): iterable
7676
{
7777
$arguments = [];
7878
if (array_key_exists('assignment_id', $params) === false) {
@@ -93,7 +93,7 @@ public function listAcceptedAssigmentsForAnAssignment(array $params): iterable
9393

9494
$arguments['per_page'] = $params['per_page'];
9595
unset($params['per_page']);
96-
$operator = new Internal\Operator\Classroom\ListAcceptedAssigmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
96+
$operator = new Internal\Operator\Classroom\ListAcceptedAssignmentsForAnAssignment($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Assignments🌀AssignmentId🌀AcceptedAssignments());
9797

9898
return $operator->call($arguments['assignment_id'], $arguments['page'], $arguments['per_page']);
9999
}

0 commit comments

Comments
 (0)