Skip to content

[GitHubEnterprise-3.13] Update to 1.1.4-f3dffe22057364fad31701a91b023bcb from 1.1.4-f3dffe22057364fad31701a91b023bcb #1393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
27,530 changes: 27,530 additions & 0 deletions clients/GitHubEnterprise-3.13/README.md

Large diffs are not rendered by default.

12,071 changes: 12,071 additions & 0 deletions clients/GitHubEnterprise-3.13/composer.lock

Large diffs are not rendered by default.

29,991 changes: 29,991 additions & 0 deletions clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions clients/GitHubEnterprise-3.13/etc/phpstan-extension.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
- class: ApiClients\Client\GitHubEnterprise\PHPStan\ClientCallReturnTypes
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension

393 changes: 393 additions & 0 deletions clients/GitHubEnterprise-3.13/src/Client.php

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions clients/GitHubEnterprise-3.13/src/ClientInterface.php

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions clients/GitHubEnterprise-3.13/src/Error/BasicError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class BasicError extends Error
{
public function __construct(public int $status, public Schema\BasicError $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class ServiceUnavailable extends Error
{
public function __construct(public int $status, public Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\EnterpriseAdmin\DeletePreReceiveEnvironment\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class UnprocessableEntity extends Error
{
public function __construct(public int $status, public Schema\Operations\EnterpriseAdmin\DeletePreReceiveEnvironment\Response\ApplicationJson\UnprocessableEntity $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Gists\CheckIsStarred\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class NotFound extends Error
{
public function __construct(public int $status, public Schema\Operations\Gists\CheckIsStarred\Response\ApplicationJson\NotFound $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Gists\Get\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class Forbidden extends Error
{
public function __construct(public int $status, public Schema\Operations\Gists\Get\Response\ApplicationJson\Forbidden $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Git\CreateBlob\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class UnprocessableEntity extends Error
{
public function __construct(public int $status, public Schema\Operations\Git\CreateBlob\Response\ApplicationJson\UnprocessableEntity $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Orgs\RemoveOutsideCollaborator\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class UnprocessableEntity extends Error
{
public function __construct(public int $status, public Schema\Operations\Orgs\RemoveOutsideCollaborator\Response\ApplicationJson\UnprocessableEntity $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Orgs\Update\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class UnprocessableEntity extends Error
{
public function __construct(public int $status, public Schema\Operations\Orgs\Update\Response\ApplicationJson\UnprocessableEntity $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Projects\DeleteCard\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class Forbidden extends Error
{
public function __construct(public int $status, public Schema\Operations\Projects\DeleteCard\Response\ApplicationJson\Forbidden $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Projects\MoveCard\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class Forbidden extends Error
{
public function __construct(public int $status, public Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Forbidden $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Projects\MoveCard\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class ServiceUnavailable extends Error
{
public function __construct(public int $status, public Schema\Operations\Projects\MoveCard\Response\ApplicationJson\ServiceUnavailable $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error\Operations\Repos\CreateOrUpdateFileContents\Response\ApplicationJson;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class Conflict extends Error
{
public function __construct(public int $status, public Schema\Operations\Repos\CreateOrUpdateFileContents\Response\ApplicationJson\Conflict $error)
{
}
}
15 changes: 15 additions & 0 deletions clients/GitHubEnterprise-3.13/src/Error/ScimError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class ScimError extends Error
{
public function __construct(public int $status, public Schema\ScimError $error)
{
}
}
15 changes: 15 additions & 0 deletions clients/GitHubEnterprise-3.13/src/Error/ValidationError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class ValidationError extends Error
{
public function __construct(public int $status, public Schema\ValidationError $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Error;

use ApiClients\Client\GitHubEnterprise\Schema;
use Error;

final class ValidationErrorSimple extends Error
{
public function __construct(public int $status, public Schema\ValidationErrorSimple $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Commit;

use ApiClients\Client\GitHubEnterprise\Schema;
use Attribute;
use EventSauce\ObjectHydrator\ObjectMapper;
use EventSauce\ObjectHydrator\PropertyCaster;
use Throwable;

use function array_keys;
use function array_unique;
use function implode;
use function is_array;
use function sort;

#[Attribute(Attribute::TARGET_PARAMETER)]
final class Author implements PropertyCaster
{
public function cast(mixed $value, ObjectMapper $hydrator): mixed
{
if (is_array($value)) {
$signatureChunks = array_unique(array_keys($value));
sort($signatureChunks);
$signature = implode('|', $signatureChunks);
if ($signature === 'avatar_url|email|events_url|followers_url|following_url|gists_url|gravatar_id|html_url|id|login|name|node_id|organizations_url|received_events_url|repos_url|site_admin|starred_at|starred_url|subscriptions_url|type|url|user_view_type') {
try {
return $hydrator->hydrateObject(Schema\SimpleUser::class, $value);
} catch (Throwable) {
}
}

if ($signature === '') {
try {
return $hydrator->hydrateObject(Schema\EmptyObject::class, $value);
} catch (Throwable) {
}
}
}

return $value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Commit;

use ApiClients\Client\GitHubEnterprise\Schema;
use Attribute;
use EventSauce\ObjectHydrator\ObjectMapper;
use EventSauce\ObjectHydrator\PropertyCaster;
use Throwable;

use function array_keys;
use function array_unique;
use function implode;
use function is_array;
use function sort;

#[Attribute(Attribute::TARGET_PARAMETER)]
final class Committer implements PropertyCaster
{
public function cast(mixed $value, ObjectMapper $hydrator): mixed
{
if (is_array($value)) {
$signatureChunks = array_unique(array_keys($value));
sort($signatureChunks);
$signature = implode('|', $signatureChunks);
if ($signature === 'avatar_url|email|events_url|followers_url|following_url|gists_url|gravatar_id|html_url|id|login|name|node_id|organizations_url|received_events_url|repos_url|site_admin|starred_at|starred_url|subscriptions_url|type|url|user_view_type') {
try {
return $hydrator->hydrateObject(Schema\SimpleUser::class, $value);
} catch (Throwable) {
}
}

if ($signature === '') {
try {
return $hydrator->hydrateObject(Schema\EmptyObject::class, $value);
} catch (Throwable) {
}
}
}

return $value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHubEnterprise\Internal\Attribute\CastUnionToType\Schema\Deployment;

use ApiClients\Client\GitHubEnterprise\Schema;
use Attribute;
use EventSauce\ObjectHydrator\ObjectMapper;
use EventSauce\ObjectHydrator\PropertyCaster;
use Throwable;

use function array_keys;
use function array_unique;
use function implode;
use function is_array;
use function sort;

#[Attribute(Attribute::TARGET_PARAMETER)]
final class Payload implements PropertyCaster
{
public function cast(mixed $value, ObjectMapper $hydrator): mixed
{
if (is_array($value)) {
$signatureChunks = array_unique(array_keys($value));
sort($signatureChunks);
$signature = implode('|', $signatureChunks);
if ($signature === '') {
try {
return $hydrator->hydrateObject(Schema\Deployment\Payload\Zero::class, $value);
} catch (Throwable) {
}
}
}

return $value;
}
}
Loading
Loading