diff --git a/clients/GitHubEnterprise-3.15/README.md b/clients/GitHubEnterprise-3.15/README.md index 92774f70089..e24b764f0d3 100644 --- a/clients/GitHubEnterprise-3.15/README.md +++ b/clients/GitHubEnterprise-3.15/README.md @@ -7263,6 +7263,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/issues', [ 'org' => 'generated', 'labels' => 'generated', + 'type' => 'generated', 'since' => '1970-01-01T00:00:00+00:00', 'filter' => 'generated', 'state' => 'generated', @@ -7277,6 +7278,7 @@ Operations method: ```php $client->operations()->issues()->listForOrg( org: 'generated', labels: 'generated', + type: 'generated', since: '1970-01-01T00:00:00+00:00', filter: 'generated', state: 'generated', @@ -7299,6 +7301,7 @@ Using the `call` method: $client->call('LIST /orgs/{org}/issues', [ 'org' => 'generated', 'labels' => 'generated', + 'type' => 'generated', 'since' => '1970-01-01T00:00:00+00:00', 'filter' => 'generated', 'state' => 'generated', @@ -7313,6 +7316,7 @@ Operations method: ```php $client->operations()->issues()->listForOrgListing( org: 'generated', labels: 'generated', + type: 'generated', since: '1970-01-01T00:00:00+00:00', filter: 'generated', state: 'generated', @@ -18282,6 +18286,7 @@ $client->call('GET /repos/{owner}/{repo}/issues', [ 'repo' => 'generated', 'milestone' => 'generated', 'assignee' => 'generated', + 'type' => 'generated', 'creator' => 'generated', 'mentioned' => 'generated', 'labels' => 'generated', @@ -18300,6 +18305,7 @@ $client->operations()->issues()->listForRepo( owner: 'generated', repo: 'generated', milestone: 'generated', assignee: 'generated', + type: 'generated', creator: 'generated', mentioned: 'generated', labels: 'generated', @@ -18326,6 +18332,7 @@ $client->call('LIST /repos/{owner}/{repo}/issues', [ 'repo' => 'generated', 'milestone' => 'generated', 'assignee' => 'generated', + 'type' => 'generated', 'creator' => 'generated', 'mentioned' => 'generated', 'labels' => 'generated', @@ -18344,6 +18351,7 @@ $client->operations()->issues()->listForRepoListing( owner: 'generated', repo: 'generated', milestone: 'generated', assignee: 'generated', + type: 'generated', creator: 'generated', mentioned: 'generated', labels: 'generated', diff --git a/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state index 22aa0cf2619..eb39a9dfb08 100644 --- a/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "e316db5b358f9d3f79c9ccc4f90f9cb6", + "specHash": "35aa0c27af04ff30389730ec172a99ab", "generatedFiles": { "files": [ { @@ -3712,27 +3712,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForOrg.php", - "hash": "3eb522ad2b91d07ca21e872244b07b57" + "hash": "4337d39d5426fd427b2ce5ae44a20a83" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrg.php", - "hash": "bac0756259f4e81f248369afeaaada9b" + "hash": "1c78b42ed0214ac9e9ce137336b56083" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgTest.php", - "hash": "e5f8a20e2cec75c4aed05ae26b67e634" + "hash": "9ae000ef8cae3f8b30ae09f8283f81fb" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForOrgListing.php", - "hash": "280430dae11259b6e379b5df78d19949" + "hash": "7a2ec6c03d0e9c9f25ef01ce7395365b" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrgListing.php", - "hash": "814484ca9028dfbd227e7db206e1b052" + "hash": "33ffa7468cc64df668823de785e26fea" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgListingTest.php", - "hash": "5b4322f51f64c63bb83ec691f5091f42" + "hash": "2c752acfb50d143848cd9f32d86973b1" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListMembers.php", @@ -8740,27 +8740,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForRepo.php", - "hash": "3feec87ee67531c3d2aec16eb0e5fb20" + "hash": "6c63efeae3565f0656ba8e9eee3220bf" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepo.php", - "hash": "f56b4f3f6423c7d0229c6a2f427753cc" + "hash": "028b57086cd0ae8316bf74f1b85a6013" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoTest.php", - "hash": "e19f5e39fb86e377187c7b32bd9624a4" + "hash": "e3dddac65f5426dc57b33700a6b9d4a7" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForRepoListing.php", - "hash": "0a66b2973af6092311d57c06537e2608" + "hash": "6bfd1c9972ca382b280b557fd2cb791d" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepoListing.php", - "hash": "cbd56a0dd684d7a8281c9e62a1769462" + "hash": "55463e0ab338afd4f972ebf956f53fa3" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoListingTest.php", - "hash": "e2c8943774fbf38c8eca2ee0609352bc" + "hash": "5b80ab429862b676d3844296b0b3e35f" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/Create.php", @@ -13400,15 +13400,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AppPermissions.php", - "hash": "255aad794b5be77388cf7491c880ac5a" + "hash": "719eaf8b45b0d33373b278758d053989" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ScopedInstallation.php", - "hash": "472e1255b486c616b74ff155c4792f25" + "hash": "2572613eb2fff1005e5097dc50f18cd0" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Authorization.php", - "hash": "5a49742cc40014a3cee25d53ef64157f" + "hash": "dc0de66aea9b64053fba076ad73fa6bd" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/SecurityAdvisoryEcosystems.php", @@ -13512,7 +13512,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Installation.php", - "hash": "21cabd269193c7b1453cdb094e0de6fe" + "hash": "86fe3cd9e5afc670d77929c4ba602d05" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/LicenseSimple.php", @@ -13524,7 +13524,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/InstallationToken.php", - "hash": "283a6f8078c744b7df5e527bda9da362" + "hash": "5ee6352a07c9dd17fd86ba468acf5436" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApplicationGrant.php", @@ -13916,7 +13916,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Issue.php", - "hash": "c16562a22d4e0fbfd3978fb2b609486a" + "hash": "f920e65cb7ca3b096a3d80b6c55995cd" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/IssueComment.php", @@ -13924,7 +13924,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Event.php", - "hash": "000fb85f3cc6d79571e2e5b1c4f96bdf" + "hash": "fc04770186480e905564d5bd81e8ca32" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/LinkWithType.php", @@ -14240,7 +14240,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/CustomPropertySetPayload.php", - "hash": "43f309f2357d0422728309fa47d00cac" + "hash": "345f6d716aed2067bae5c8787caff9ed" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/CustomPropertyValue.php", @@ -14932,7 +14932,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/IssueEvent.php", - "hash": "4776fb10978554a19b04f76dea742519" + "hash": "d754885e2d2053d77cd9480bdaed650f" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/LabeledIssueEvent.php", @@ -15008,7 +15008,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent.php", - "hash": "da9ed40af9290145fe60997056bfe495" + "hash": "966c955ce06cdefcb27c15dda3754979" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/TimelineCommittedEvent.php", @@ -15044,7 +15044,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/TimelineIssueEvents.php", - "hash": "fbac4ff5004edf4d03a96baaae5de702" + "hash": "6e528fd2f4e50962d202e063559f9d61" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/DeployKey.php", @@ -15320,7 +15320,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", - "hash": "b4114936839243d66a022c8507c6ae5e" + "hash": "f1266a2bd470572ed07ef5fd90d52c62" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/LabelSearchResultItem.php", @@ -15910,33 +15910,25 @@ "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhooksChanges.php", "hash": "9fd6986b2ebbbc4185f81832d6444cbd" }, - { - "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet4BB6B1F9\/Tiet186D5B8E\/Tiet964BB0E0\/Tiet3F56E314.php", - "hash": "02462c5d7c62f065d0910dda0aa40cfb" - }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue.php", - "hash": "f0d2277689351aff35ae85a0405f0f4d" + "hash": "0d6e5a0d972ce2cc4f833b9f96d07817" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhooksIssue.php", - "hash": "6053511696aca36df0b4c5fa8c413e56" + "hash": "21c77f734d1f98874e725bdd4ad8b461" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhooksMilestone.php", "hash": "554ed75093e715c23a6394a471a905e9" }, - { - "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet86AEE464\/TietA0E5516E\/Tiet333D8CF8\/Tiet49B7BE48.php", - "hash": "2f660ccce603329a619849448977ea43" - }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewIssue.php", - "hash": "c68a4453eb56033d90b44e36086ba87c" + "hash": "3161f72cf31ef9c102bc4afc1efa0b41" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhooksIssue2.php", - "hash": "be066d2c9d947da04f4c092d17541fcb" + "hash": "8b960dbada9e6e1f8ae7808abfa74ab7" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9BB7FDE7\/Tiet7C408E87\/TietF0A7E59F\/Tiet74AED450.php", @@ -16608,27 +16600,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookInstallationCreated.php", - "hash": "0e39649e242bd04a86d5fad638addbf3" + "hash": "5398ab304f1ee6c0cf59d0ba26e3f4e9" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookInstallationDeleted.php", - "hash": "95eb7f5a63d91ca37f6ef6aee3383a59" + "hash": "bd0244e4dcfbf3661129c1417421767e" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookInstallationNewPermissionsAccepted.php", - "hash": "80267e237154f713d2fbc4cf808b0e42" + "hash": "ec829a60d282c9eb715f5d6ca6412b4b" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesAdded.php", - "hash": "2e19115f0c10e8d49bf8b60af06122b2" + "hash": "616519c689844a1dd5b7384f1fbc914e" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesRemoved.php", - "hash": "b5c7780b102ed2d470bcf81807096183" + "hash": "1446bb4b5bc3bb50fe2f3cd8829d19b3" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookInstallationSuspend.php", - "hash": "2c0147cc9175d5a5d7f3bbe2e1f046cf" + "hash": "3550f9f077c1fe37d8a00f8561e473cf" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookInstallationTargetRenamed.php", @@ -16636,83 +16628,83 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookInstallationUnsuspend.php", - "hash": "ebe98d112b3f9a15fd0dda865e1bbba4" + "hash": "f13c2f3727dec95046e829f71fc1c1bc" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "28120362cc5edfaf31a5b01169459b6a" + "hash": "a66bc8f0fb16098ca0779834c60a90bc" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "cb7bd1e82f293a9a93d9fff34ce46833" + "hash": "a087916c2152adbd21d5e2ce213e4a10" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "e9441e5c1f6998372212ad440abb21dd" + "hash": "3f5c46692404eb5e6097485f72b7aabf" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", - "hash": "bb1f4fc0a081898eb64c34128fb4821d" + "hash": "1838c829d85ffa82a9ff5902d655cad7" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed.php", - "hash": "5a7f6f2ed5c7011527c224ac1b741965" + "hash": "6c3207f0d37623058b52323ab23bc126" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted.php", - "hash": "d5698cce0ed7a0d8f29b39c463459992" + "hash": "ef6ade60c88cccf2c231143063dff26c" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned.php", - "hash": "9b40c0aa78f9186b423c279e5d9345c2" + "hash": "728d93864615b4f878bef27524efca1e" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited.php", - "hash": "9875eae066266dd0259b5a36b84c16d7" + "hash": "5cd3606fc796ed9f6a02c43f71b8f109" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled.php", - "hash": "609f2c53c9a7091516b28a9d27f179c2" + "hash": "b08c13354e9fb4dc66ed9caada99c143" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked.php", - "hash": "591df47da5705c8c7b7e27f1c73915d6" + "hash": "157df25f7f39cb0f77ca748c9e85b211" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned.php", - "hash": "6c043f4397782e4fb7204b9cb04c8812" + "hash": "ed10fb1fbb9455d79396dd8dbd4ab144" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened.php", - "hash": "b35050113e5d38670a1ac513ca00d112" + "hash": "8df36308f7d75a55ae5210600e2913c8" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesPinned.php", - "hash": "3f625ef83169631c352034b7558d856f" + "hash": "1a7923184d19ff696a0f47aa353c4ffd" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened.php", - "hash": "c13c84c1954f894ac1a9ad0192a08c25" + "hash": "ac185e6ed15b630a7b7d13b910a5dd82" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred.php", - "hash": "bdfacb032b8315a9c67810d8a7cb1d7a" + "hash": "70dd1925c193cac9cd3f0c914b27efe2" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnassigned.php", - "hash": "68c4513eba778f9b505e4105ec709e6d" + "hash": "e9338ab0ddc9d7eb27d0440705147b15" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlabeled.php", - "hash": "4bbedc178135330b3ed159cb72471ee9" + "hash": "85489f4f5a631b4d6c9aa488ba87a232" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked.php", - "hash": "267e4f0ea72eacd65eaa5d65b2311ca0" + "hash": "de411c20e188f0e9a0442995405139fb" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnpinned.php", - "hash": "de3ede5c8b1ef2c2de16afed8a014f36" + "hash": "e07d87605d4bebba88189d5964ba3c89" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookLabelCreated.php", @@ -17780,7 +17772,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Event\/Payload.php", - "hash": "d6c54431949efe7cd6874efb9efe6c4f" + "hash": "b2d92ba5613f282321fda429444de9e0" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Event\/Payload\/Pages.php", @@ -18884,7 +18876,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent\/Source.php", - "hash": "6ed5937ec7b8cbf6bc5ebefbf043ce4b" + "hash": "82cf17f31419fd15bd4d6faef972a0fb" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet07DCB36B\/Tiet91F472DA\/TietA9474AC9\/Tiet7F1CE862.php", @@ -23036,7 +23028,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue.php", - "hash": "83bb6bccd8f64ec83c4162a11fe8e434" + "hash": "c6b7f0744d2834f1309d36bbd222d48d" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue\/PerformedViaGithubApp.php", @@ -23044,11 +23036,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue.php", - "hash": "7bfc04b119f9e9a86e503430347b2ac9" + "hash": "a1328a928236d5ac49fd0a13c1fa98e6" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue.php", - "hash": "eced07d2561ea32b93dffa330bfa86fe" + "hash": "f73319b11686944dc10f3a0c3302f5c0" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue\/PerformedViaGithubApp.php", @@ -23056,7 +23048,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue.php", - "hash": "9d4669473b5fbfdd3d3115e64c978640" + "hash": "bde4d7eca749c3736385c3b71602c913" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue\/PerformedViaGithubApp.php", @@ -23064,7 +23056,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue.php", - "hash": "b7c5e178012dcd2aba4b918a7f1d295f" + "hash": "52ddee613b727e20b7ec7bcf5b9ad182" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD0156E29\/Tiet718D0614\/Tiet1A091EF2\/TietD0F00D93.php", @@ -23104,7 +23096,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue.php", - "hash": "5b708cd9a12b7313edd43a80dae47782" + "hash": "fcca84978e9bfeeb73f22680615c8541" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet7812D63D\/TietEDB87D54\/TietD5274EF4\/Tiet675CE42D.php", @@ -23120,7 +23112,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue.php", - "hash": "73547f859516856bbe985c64d6d6f4ac" + "hash": "2c3851764bd091cdffe93c4177332502" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue\/PerformedViaGithubApp.php", @@ -23128,7 +23120,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue.php", - "hash": "520d6c3cbaf4a3bd943c3feecc6a2fa5" + "hash": "6acd7315cacce9e1e553e788b7cbec83" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue\/PerformedViaGithubApp.php", @@ -23136,7 +23128,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue.php", - "hash": "888d973153f8b880b9ac2c95fb510275" + "hash": "a1587b1312d6547130da0ce27443a360" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue\/PerformedViaGithubApp.php", @@ -23156,11 +23148,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Issue.php", - "hash": "8dea7f2e343d44fc0b643c15b9117678" + "hash": "280e75ded54186f49f0347c7733f4ede" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue.php", - "hash": "2f201e378fbc3dfb9ded4cdae1ead811" + "hash": "67074a11cbb13c3433696e5bdff096b0" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue\/PerformedViaGithubApp.php", @@ -23168,7 +23160,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes.php", - "hash": "75b87b0c62fd1f6691d0d5d415d1917a" + "hash": "0ca8217e49e8d8ba965ba4d3a52c6591" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD1D37F76\/TietFBFEB2AA\/Tiet0915167C\/Tiet4DBB1C70.php", @@ -23184,7 +23176,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked\/Issue.php", - "hash": "6cb8d934e872f101f4f60a16e92d0bea" + "hash": "dc79767c9d9757e44fe2b3a661bee3d7" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/WebhookLabelEdited\/Changes.php", @@ -24764,7 +24756,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Apps\/CreateInstallationAccessToken\/Request\/ApplicationJson.php", - "hash": "56fe8384267f542b3811179967cbce7b" + "hash": "4cbe6ac0acda5ed970724dc04d4329e4" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9197E244\/TietB82917D2\/TietACD5D9B1\/Tiet79DAB836.php", @@ -24792,7 +24784,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Apps\/ScopeToken\/Request\/ApplicationJson.php", - "hash": "8ef02f6e1ba12fc8aaa4eeed16188a06" + "hash": "2286e62161dd9dffa2c1da98354bfde3" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/OauthAuthorizations\/CreateAuthorization\/Request\/ApplicationJson.php", @@ -25298,21 +25290,17 @@ "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Orgs\/UpdateWebhook\/Request\/ApplicationJson\/Config.php", "hash": "05062c341920afc8ca5a07584f9c5bdc" }, - { - "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9E7907E5\/Tiet4B84D4B6\/TietD5CA3830\/Tiet4D8031C4.php", - "hash": "272a69ce6fcdb2ff317c1686bece288c" - }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "a354d38daf6cb1ff0477afb85532a441" + "hash": "e0fd5ec0d6807120c78ea542b729ab7a" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "02fb68aefd17f9b98c42cc1d5bfe268f" + "hash": "4b2ba0594dd7a3cb09b8a0d0861328c8" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListAppInstallations\/Response\/ApplicationJson\/Ok.php", - "hash": "f6cada7cc46d4a2697f0c4d7a6317a55" + "hash": "a23118b72b3346933c0fec2a26bc16a7" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Orgs\/SetMembershipForUser\/Request\/ApplicationJson.php", @@ -26260,7 +26248,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Issues\/Create\/Request\/ApplicationJson.php", - "hash": "1cf7d1798f3f7eb5749df663a8fd2d5a" + "hash": "335cc418a5e348ab8d9aef4140dbd513" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietC87B405D\/Tiet9B9DED8B\/Tiet852071AE\/Tiet1AF85D12.php", @@ -26292,7 +26280,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Issues\/Update\/Request\/ApplicationJson.php", - "hash": "5db94b60907e5ccb5e765595c4b7155a" + "hash": "1244e5dcd3e4cb57a5e95343282e8b0f" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Issues\/AddAssignees\/Request\/ApplicationJson.php", @@ -26532,7 +26520,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", - "hash": "3e57bf7904145aed377ac54cdd657e3a" + "hash": "dbc93276eb58e47ab65384a8dfa1c860" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Labels\/Response\/ApplicationJson\/Ok.php", @@ -26708,7 +26696,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "9310023911292b2ff9a361dc25993f38" + "hash": "c7bc48cbc64206b961ed067c7fa812ad" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Migrations.php", @@ -26808,7 +26796,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "a02273207bbce63b7971807523fee754" + "hash": "2aef2366862555bdd23a37fa7a54c8ad" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -27204,7 +27192,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "0df2313d2ca2fc823fc59cd77bd702c0" + "hash": "64be5d82b66338ed8921cf024757a1dd" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -27216,7 +27204,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "f44dd133d5a777f374149df2b549e928" + "hash": "243bc2a88cae81828fdf78b11f932f59" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -27244,11 +27232,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "04d7bebd979765b12c9ded734740a97c" + "hash": "eb1fd2b7b100ef0753d005fc97703337" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "acd7909d2adc36a5541ecf4184f9e6ac" + "hash": "980b73b2bfe634a1328d81fbe86232f6" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", @@ -27420,11 +27408,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "057a0e66c0fac8be025f4333a6d16a9b" + "hash": "26651fd5f02d938b9ad855ed20f18e30" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "0afba759e55aef88b3e3a19ce1993b10" + "hash": "3ed343e0c155cfbf7cb54441db97bf2b" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27496,7 +27484,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "35c64af07212fd2867cedbad7f520cbc" + "hash": "8a3c4c0e40ac43e8cad7a6b7fc0b091c" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -29336,7 +29324,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", - "hash": "5ec75bb06470e450e24deacfc2d59ce1" + "hash": "63d2c44d85e46e3a66213a1cbf287e28" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments.php", @@ -29356,15 +29344,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Events\/EventId.php", - "hash": "b8e35164196f48ee679eaf58a4c900ef" + "hash": "5928138834cdeef8f07be4bab1f0292d" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber.php", - "hash": "2860d59a015e3939da3dc7dcb2aac05a" + "hash": "c65bd664bfa8586344f2824fbfe09413" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees.php", - "hash": "7a11a10470c37369494092f229f8b5f1" + "hash": "ee67b7e55be28b3820a319af8ec147f7" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees\/Assignee.php", @@ -30080,11 +30068,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "cf48709a82bdcceb96fea8081e0e724d" + "hash": "cb9c86e8c6b5d07bf03a6e47d9980505" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "17c4f61ea75cd9a6af77c54c07762afb" + "hash": "6da541658e89ae27671c06c9cea06cba" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", @@ -30252,7 +30240,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "b2741a7e6be9c717fb0810d87338b076" + "hash": "561c4eae40d59c66f91f09f432f91ec3" }, { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php", @@ -30321,6 +30309,22 @@ { "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietE8D41C9A\/Tiet1255E585\/Tiet44FA9DEE\/Tiet93E2B36C.php", "hash": "89f95f050fae650bab31b0847d250e79" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/IssueType.php", + "hash": "f538d37ed24199a88e8ee00d62992fa5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietB31880EF\/TietF95EA680\/TietC87C5FFA\/Tiet37B468DC.php", + "hash": "8d856b36066cee6f9d648c3a9480c7ea" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet01B700B1\/TietF9AB9CBE\/TietE7575253\/Tiet3927169A.php", + "hash": "f9c21ba6d4a56bba36acd3d58ddfad11" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet38A0D867\/TietC17EDBFF\/TietDACD2756\/TietBD2F2C7F.php", + "hash": "20f930a4a14b9f37618ea8a8e94e211c" } ] }, diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php index 2b74df01bb8..f61f89a6c32 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php @@ -9,6 +9,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; use ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable; @@ -60,6 +61,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -568,6 +570,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1212,6 +1234,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3119,6 +3248,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($object), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($object), @@ -3443,6 +3573,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3709,6 +3848,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php index 5d7257d36cf..abc9ab9aa43 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php @@ -15,6 +15,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\IssueEventMilestone; use ApiClients\Client\GitHubEnterprise\Schema\IssueEventProjectCard; use ApiClients\Client\GitHubEnterprise\Schema\IssueEventRename; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\ReactionRollup; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -1103,6 +1105,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1486,6 +1508,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -4005,6 +4134,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue($object), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($object), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($object), @@ -4538,6 +4668,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -4705,6 +4844,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php index a743b929bc8..ec0b30ccdc0 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php @@ -9,6 +9,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; use ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable; @@ -57,6 +58,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -451,6 +453,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1095,6 +1117,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3030,6 +3159,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($object), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($object), @@ -3286,6 +3416,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3552,6 +3691,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php index b7089479f53..c8eb21d1b68 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Issue; use ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\Milestone; use ApiClients\Client\GitHubEnterprise\Schema\ReactionRollup; @@ -54,6 +55,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($payload), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -445,6 +447,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1089,6 +1111,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -2857,6 +2986,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterprise\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Milestone($object), 'ApiClients\Client\GitHubEnterprise\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository($object), 'ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterprise\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️Permissions($object), @@ -3110,6 +3240,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3376,6 +3515,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/WebHook/IssueComment.php index 49fe4bc17a7..33630880bde 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/WebHook/IssueComment.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\Integration; use ApiClients\Client\GitHubEnterprise\Schema\Integration\Permissions; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks; @@ -84,6 +85,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️Reactions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($payload), @@ -1716,6 +1718,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -3587,6 +3609,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\User { $properties = []; @@ -7982,6 +8111,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -10740,6 +10889,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -15682,6 +15851,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️Reactions($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($object), @@ -16510,6 +16680,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -17616,6 +17795,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterprise\Schema\WebhookIssueCommentCreated\Issue\User); @@ -19923,6 +20159,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -21468,6 +21713,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/WebHook/Issues.php index c31f6beca88..5654394c5f4 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Hydrator/WebHook/Issues.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterprise\Internal\Hydrator\WebHook; use ApiClients\Client\GitHubEnterprise\Schema\EnterpriseWebhooks; +use ApiClients\Client\GitHubEnterprise\Schema\IssueType; use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple; use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks; @@ -102,6 +103,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️Reactions($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️User($payload), 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($payload), @@ -1261,6 +1263,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -3132,6 +3154,113 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(array $payload): IssueType + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️User(array $payload): User { $properties = []; @@ -6939,6 +7068,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -9588,6 +9737,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -12257,6 +12426,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -15508,6 +15697,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -18273,6 +18482,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -20922,6 +21151,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -23602,6 +23851,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -30294,6 +30563,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -32943,6 +33232,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -35633,6 +35942,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $properties['user'] = $value; after_user: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookIssuesReopened\Issue', $exception, stack: $this->hydrationStack); } @@ -38309,6 +38638,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -43035,6 +43384,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -45422,6 +45791,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️Reactions($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHubEnterprise\Schema\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhooksIssue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️User($object), 'ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks($object), @@ -46152,6 +46522,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -47258,6 +47637,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhooksIssue⚡️User(mixed $object): mixed { assert($object instanceof User); @@ -49292,6 +49728,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -50801,6 +51246,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -52319,6 +52773,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -54129,6 +54592,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -55681,6 +56153,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -57185,6 +57666,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -58701,6 +59191,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -62341,6 +62840,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -63850,6 +64358,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -65369,6 +65886,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User($user); after_user: $result['user'] = $user; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + return $result; } @@ -66875,6 +67401,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -69316,6 +69851,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Hydrators.php b/clients/GitHubEnterprise-3.15/src/Internal/Hydrators.php index c911a2f939f..b1670c15af7 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Hydrators.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Hydrators.php @@ -918,7 +918,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Hook', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\HookResponse' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Operations\\Repos\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks🌀HookId🌀Deliveries🌀DeliveryId🌀Attempts()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\RepositoryInvitation' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Invitations🌀InvitationId()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueType', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEvent', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventLabel', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Team', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Team\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventDismissedReview', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventMilestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventProjectCard', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventRename' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events🌀EventId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()->hydrateObject($className, $payload), @@ -1264,7 +1264,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Hook', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\HookResponse' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Operations\\Repos\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks🌀HookId🌀Deliveries🌀DeliveryId🌀Attempts()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\RepositoryInvitation' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Invitations🌀InvitationId()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueType', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEvent', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventLabel', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Team', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\Team\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventDismissedReview', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventMilestone', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventProjectCard', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\IssueEventRename' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events🌀EventId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()->serializeObject($object), diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForOrg.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForOrg.php index f9de1019333..1b8daabcabb 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForOrg.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForOrg.php @@ -29,6 +29,8 @@ final class ListForOrg private string $org; /**A list of comma separated label names. Example: `bug,ui,@high` **/ private string $labels; + /**Can be the name of an issue type. **/ + private string $type; /**Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. **/ private string $since; /**Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. **/ @@ -44,10 +46,11 @@ final class ListForOrg /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->org = $org; $this->labels = $labels; + $this->type = $type; $this->since = $since; $this->filter = $filter; $this->state = $state; @@ -59,7 +62,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{org}', '{labels}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{org}', '{labels}', '{type}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->type, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&type={type}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForOrgListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForOrgListing.php index 51a13e603f7..2d056e11ca1 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForOrgListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForOrgListing.php @@ -29,6 +29,8 @@ final class ListForOrgListing private string $org; /**A list of comma separated label names. Example: `bug,ui,@high` **/ private string $labels; + /**Can be the name of an issue type. **/ + private string $type; /**Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. **/ private string $since; /**Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. **/ @@ -44,10 +46,11 @@ final class ListForOrgListing /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->org = $org; $this->labels = $labels; + $this->type = $type; $this->since = $since; $this->filter = $filter; $this->state = $state; @@ -59,7 +62,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{org}', '{labels}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{org}', '{labels}', '{type}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->type, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&type={type}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForRepo.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForRepo.php index deb2a9f132f..0f961effdb2 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForRepo.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForRepo.php @@ -33,6 +33,8 @@ final class ListForRepo private string $milestone; /**Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. **/ private string $assignee; + /**Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned. **/ + private string $type; /**The user that created the issue. **/ private string $creator; /**A user that's mentioned in the issue. **/ @@ -52,12 +54,13 @@ final class ListForRepo /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->owner = $owner; $this->repo = $repo; $this->milestone = $milestone; $this->assignee = $assignee; + $this->type = $type; $this->creator = $creator; $this->mentioned = $mentioned; $this->labels = $labels; @@ -71,7 +74,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{type}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->type, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&type={type}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable|Schema\BasicError */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForRepoListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForRepoListing.php index 24459ffef6b..0c71da00061 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForRepoListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operation/Issues/ListForRepoListing.php @@ -33,6 +33,8 @@ final class ListForRepoListing private string $milestone; /**Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. **/ private string $assignee; + /**Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned. **/ + private string $type; /**The user that created the issue. **/ private string $creator; /**A user that's mentioned in the issue. **/ @@ -52,12 +54,13 @@ final class ListForRepoListing /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.15/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->owner = $owner; $this->repo = $repo; $this->milestone = $milestone; $this->assignee = $assignee; + $this->type = $type; $this->creator = $creator; $this->mentioned = $mentioned; $this->labels = $labels; @@ -71,7 +74,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{type}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->type, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&type={type}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable|Schema\BasicError */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForOrg.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForOrg.php index 697b2dbed05..a23731bbbd9 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForOrg.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForOrg.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + /** @return iterable */ + public function call(string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); $request = $operation->createRequest(); $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 { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForOrgListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForOrgListing.php index 96fcfb84f2d..dffd8fdc5da 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForOrgListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForOrgListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + /** @return iterable */ + public function call(string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); $request = $operation->createRequest(); $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 { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForRepo.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForRepo.php index 7d2ddcecdc3..4f490ff95c1 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForRepo.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForRepo.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|Schema\BasicError */ - public function call(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function call(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); $request = $operation->createRequest(); $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|BasicError { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForRepoListing.php b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForRepoListing.php index 96ec3b5fd98..2f959004c73 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForRepoListing.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Operator/Issues/ListForRepoListing.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|Schema\BasicError */ - public function call(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function call(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { - $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Issues\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); $request = $operation->createRequest(); $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|BasicError { return $operation->createResponse($response); diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php index d8f23a0c469..0c5669c21b2 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Five.php @@ -52,7 +52,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|GhesChecksSystemRequirements|GhesClusterStatus|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyStatus\Response\ApplicationJson\Ok|GhesLicenseInfo|GhesConfigNodes|GhesGetSettings|GhesReplicationStatus|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|OrgPreReceiveHook|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Installation|Language|LicenseContent|Page|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Four.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Four.php index d9d80c1b163..a0653f1abf4 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Four.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Four.php @@ -50,7 +50,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): GlobalHook|PreReceiveEnvironment|PreReceiveHook|WebhookConfig|iterable|Installation|ApplicationGrant|WithoutBody|LicenseInfo|EnterpriseOverview|EnterpriseCommentOverview|EnterpriseGistOverview|EnterpriseHookOverview|EnterpriseIssueOverview|EnterpriseMilestoneOverview|EnterpriseOrganizationOverview|EnterprisePageOverview|EnterprisePullRequestOverview|EnterpriseRepositoryOverview|EnterpriseSecurityProductsOverview|EnterpriseUserOverview|EnterpriseSecurityAnalysisSettings|GistSimple|GitignoreTemplate|Thread|Ok|AnnouncementBanner|Json|ExternalGroups|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|GpgKey|Key|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Issues.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Issues.php index d2fcd383c7a..7dc7caf77d5 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Issues.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/Get/Issues.php @@ -83,7 +83,7 @@ public function listForAuthenticatedUser(array $params): iterable|WithoutBody return $operator->call($arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return Observable */ + /** @return iterable */ public function listForOrg(array $params): iterable { $arguments = []; @@ -99,6 +99,12 @@ public function listForOrg(array $params): iterable $arguments['labels'] = $params['labels']; unset($params['labels']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('since', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: since'); } @@ -143,7 +149,7 @@ public function listForOrg(array $params): iterable unset($params['page']); $operator = new Internal\Operator\Issues\ListForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Issues()); - return $operator->call($arguments['org'], $arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + return $operator->call($arguments['org'], $arguments['labels'], $arguments['type'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } /** @return */ @@ -452,7 +458,7 @@ public function listAssignees(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return Observable|Schema\BasicError */ + /** @return iterable|Schema\BasicError */ public function listForRepo(array $params): iterable|BasicError { $arguments = []; @@ -480,6 +486,12 @@ public function listForRepo(array $params): iterable|BasicError $arguments['assignee'] = $params['assignee']; unset($params['assignee']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('creator', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: creator'); } @@ -536,7 +548,7 @@ public function listForRepo(array $params): iterable|BasicError unset($params['page']); $operator = new Internal\Operator\Issues\ListForRepo($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['type'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } /** @return Observable */ diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Five.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Five.php index dda11c9dc13..e9c10a87549 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Four.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Four.php index 8306a8a22ae..af812b45976 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Four.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Issues.php b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Issues.php index 48d07f4e246..0630df4c273 100644 --- a/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Issues.php +++ b/clients/GitHubEnterprise-3.15/src/Internal/Router/List/Issues.php @@ -172,7 +172,7 @@ public function listListing(array $params): iterable|WithoutBody } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listForOrgListing(array $params): iterable { $arguments = []; @@ -188,6 +188,12 @@ public function listForOrgListing(array $params): iterable $arguments['labels'] = $params['labels']; unset($params['labels']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('since', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: since'); } @@ -233,7 +239,7 @@ public function listForOrgListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\Issues\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Issues()); - $items = [...$operator->call($arguments['org'], $arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; + $items = [...$operator->call($arguments['org'], $arguments['labels'], $arguments['type'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -280,7 +286,7 @@ public function listAssigneesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable|Schema\BasicError */ + /** @return iterable|Schema\BasicError */ public function listForRepoListing(array $params): iterable|BasicError { $arguments = []; @@ -308,6 +314,12 @@ public function listForRepoListing(array $params): iterable|BasicError $arguments['assignee'] = $params['assignee']; unset($params['assignee']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('creator', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: creator'); } @@ -365,7 +377,7 @@ public function listForRepoListing(array $params): iterable|BasicError $arguments['page'] = 1; do { $operator = new Internal\Operator\Issues\ListForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['type'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; yield from $items; diff --git a/clients/GitHubEnterprise-3.15/src/Operation/Issues.php b/clients/GitHubEnterprise-3.15/src/Operation/Issues.php index 1cfadb816d3..32a12585a1b 100644 --- a/clients/GitHubEnterprise-3.15/src/Operation/Issues.php +++ b/clients/GitHubEnterprise-3.15/src/Operation/Issues.php @@ -32,16 +32,16 @@ public function listListing(string $labels, string $since, bool $collab, bool $o return $this->operators->issues👷ListListing()->call($labels, $since, $collab, $orgs, $owned, $pulls, $filter, $state, $sort, $direction, $perPage, $page); } - /** @return Observable */ - public function listForOrg(string $org, string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable + /** @return iterable */ + public function listForOrg(string $org, string $labels, string $type, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable { - return $this->operators->issues👷ListForOrg()->call($org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForOrg()->call($org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); } - /** @return Observable */ - public function listForOrgListing(string $org, string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable + /** @return iterable */ + public function listForOrgListing(string $org, string $labels, string $type, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable { - return $this->operators->issues👷ListForOrgListing()->call($org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForOrgListing()->call($org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); } /** @return Observable */ @@ -62,16 +62,16 @@ public function checkUserCanBeAssigned(string $owner, string $repo, string $assi return $this->operators->issues👷CheckUserCanBeAssigned()->call($owner, $repo, $assignee); } - /** @return Observable|Schema\BasicError */ - public function listForRepo(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function listForRepo(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError { - return $this->operators->issues👷ListForRepo()->call($owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForRepo()->call($owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); } - /** @return Observable|Schema\BasicError */ - public function listForRepoListing(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function listForRepoListing(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError { - return $this->operators->issues👷ListForRepoListing()->call($owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForRepoListing()->call($owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); } /** @return */ diff --git a/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php index 1fab040d149..a52248993da 100644 --- a/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.15/src/PHPStan/ClientCallReturnTypes.php @@ -1356,11 +1356,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/issues') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /orgs/{org}/issues') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /orgs/{org}/members') { @@ -3108,11 +3108,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/issues') { - return $this->typeResolver->resolve('Observable|Schema\\BasicError'); + return $this->typeResolver->resolve('iterable|Schema\\BasicError'); } if ($call === 'LIST /repos/{owner}/{repo}/issues') { - return $this->typeResolver->resolve('Observable|Schema\\BasicError'); + return $this->typeResolver->resolve('iterable|Schema\\BasicError'); } if ($call === 'POST /repos/{owner}/{repo}/issues') { diff --git a/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet86AEE464/TietA0E5516E/Tiet333D8CF8/Tiet49B7BE48.php b/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet01B700B1/TietF9AB9CBE/TietE7575253/Tiet3927169A.php similarity index 95% rename from clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet86AEE464/TietA0E5516E/Tiet333D8CF8/Tiet49B7BE48.php rename to clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet01B700B1/TietF9AB9CBE/TietE7575253/Tiet3927169A.php index 99190a8b98a..8197beb40c1 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet86AEE464/TietA0E5516E/Tiet333D8CF8/Tiet49B7BE48.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet01B700B1/TietF9AB9CBE/TietE7575253/Tiet3927169A.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet86AEE464\TietA0E5516E\Tiet333D8CF8; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet01B700B1\TietF9AB9CBE\TietE7575253; use ApiClients\Client\GitHubEnterprise\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet49B7BE48 +abstract readonly class Tiet3927169A { public const SCHEMA_JSON = '{ "title": "Issue", @@ -1156,6 +1156,73 @@ "type": "string", "description": "Title of the issue" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "updated_at": { "type": "string", "format": "date-time" @@ -1526,6 +1593,16 @@ "state_reason": "generated", "timeline_url": "https:\\/\\/example.com\\/", "title": "generated", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "updated_at": "1970-01-01T00:00:00+00:00", "url": "https:\\/\\/example.com\\/", "user": { @@ -1561,6 +1638,7 @@ * performedViaGithubApp: GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. * state: State of the issue; either 'open' or 'closed' * title: Title of the issue + * type: The type of issue. * url: URL for the issue */ public function __construct(#[MapFrom('active_lock_reason')] @@ -1578,7 +1656,7 @@ public function __construct(#[MapFrom('active_lock_reason')] public string $repositoryUrl, #[MapFrom('sub_issues_summary')] public Schema\WebhooksIssue2\SubIssuesSummary|null $subIssuesSummary, public string|null $state, #[MapFrom('state_reason')] public string|null $stateReason, #[MapFrom('timeline_url')] - public string|null $timelineUrl, public string $title, #[MapFrom('updated_at')] + public string|null $timelineUrl, public string $title, public Schema\IssueType|null $type, #[MapFrom('updated_at')] public string $updatedAt, public string $url, public Schema\WebhooksIssue2\User|null $user,) { } diff --git a/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet9E7907E5/Tiet4B84D4B6/TietD5CA3830/Tiet4D8031C4.php b/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet38A0D867/TietC17EDBFF/TietDACD2756/TietBD2F2C7F.php similarity index 99% rename from clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet9E7907E5/Tiet4B84D4B6/TietD5CA3830/Tiet4D8031C4.php rename to clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet38A0D867/TietC17EDBFF/TietDACD2756/TietBD2F2C7F.php index ef88fd35568..4ac19930668 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet9E7907E5/Tiet4B84D4B6/TietD5CA3830/Tiet4D8031C4.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet38A0D867/TietC17EDBFF/TietDACD2756/TietBD2F2C7F.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet9E7907E5\Tiet4B84D4B6\TietD5CA3830; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet38A0D867\TietC17EDBFF\TietDACD2756; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet4D8031C4 +abstract readonly class TietBD2F2C7F { public const SCHEMA_JSON = '{ "required": [ @@ -411,7 +411,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet4BB6B1F9/Tiet186D5B8E/Tiet964BB0E0/Tiet3F56E314.php b/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/TietB31880EF/TietF95EA680/TietC87C5FFA/Tiet37B468DC.php similarity index 95% rename from clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet4BB6B1F9/Tiet186D5B8E/Tiet964BB0E0/Tiet3F56E314.php rename to clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/TietB31880EF/TietF95EA680/TietC87C5FFA/Tiet37B468DC.php index 77de313e373..df9bfdbe025 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/Tiet4BB6B1F9/Tiet186D5B8E/Tiet964BB0E0/Tiet3F56E314.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/AliasAbstract/TietB31880EF/TietF95EA680/TietC87C5FFA/Tiet37B468DC.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet4BB6B1F9\Tiet186D5B8E\Tiet964BB0E0; +namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\TietB31880EF\TietF95EA680\TietC87C5FFA; use ApiClients\Client\GitHubEnterprise\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet3F56E314 +abstract readonly class Tiet37B468DC { public const SCHEMA_JSON = '{ "title": "Issue", @@ -1162,6 +1162,73 @@ "type": "string", "description": "Title of the issue" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "updated_at": { "type": "string", "format": "date-time" @@ -1533,6 +1600,16 @@ "state_reason": "generated", "timeline_url": "https:\\/\\/example.com\\/", "title": "generated", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "updated_at": "1970-01-01T00:00:00+00:00", "url": "https:\\/\\/example.com\\/", "user": { @@ -1568,6 +1645,7 @@ * performedViaGithubApp: GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. * state: State of the issue; either 'open' or 'closed' * title: Title of the issue + * type: The type of issue. * url: URL for the issue */ public function __construct(#[MapFrom('active_lock_reason')] @@ -1585,7 +1663,7 @@ public function __construct(#[MapFrom('active_lock_reason')] public string $repositoryUrl, #[MapFrom('sub_issues_summary')] public Schema\WebhooksIssue\SubIssuesSummary|null $subIssuesSummary, public string|null $state, #[MapFrom('state_reason')] public string|null $stateReason, #[MapFrom('timeline_url')] - public string|null $timelineUrl, public string $title, #[MapFrom('updated_at')] + public string|null $timelineUrl, public string $title, public Schema\IssueType|null $type, #[MapFrom('updated_at')] public string $updatedAt, public string $url, public Schema\WebhooksIssue\User|null $user,) { } diff --git a/clients/GitHubEnterprise-3.15/src/Schema/AppPermissions.php b/clients/GitHubEnterprise-3.15/src/Schema/AppPermissions.php index e7a595310af..c5d0bd6c127 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/AppPermissions.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/AppPermissions.php @@ -58,7 +58,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ @@ -471,7 +471,7 @@ * checks: The level of permission to grant the access token for checks on code. * codespaces: The level of permission to grant the access token to create, edit, delete, and list Codespaces. * contents: The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. - * dependabotSecrets: The leve of permission to grant the access token to manage Dependabot secrets. + * dependabotSecrets: The level of permission to grant the access token to manage Dependabot secrets. * deployments: The level of permission to grant the access token for deployments and deployment statuses. * environments: The level of permission to grant the access token for managing repository environments. * issues: The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. diff --git a/clients/GitHubEnterprise-3.15/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php b/clients/GitHubEnterprise-3.15/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php index db08a612e25..1829152b303 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php @@ -82,7 +82,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.15/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php b/clients/GitHubEnterprise-3.15/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php index d0601454453..7b9ebed644f 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php @@ -106,7 +106,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.15/src/Schema/Authorization.php b/clients/GitHubEnterprise-3.15/src/Schema/Authorization.php index 9ab69d51288..103afeb5f6a 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/Authorization.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/Authorization.php @@ -349,7 +349,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.15/src/Schema/CustomPropertySetPayload.php b/clients/GitHubEnterprise-3.15/src/Schema/CustomPropertySetPayload.php index a56f09b61f9..b59f70df804 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/CustomPropertySetPayload.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/CustomPropertySetPayload.php @@ -69,6 +69,21 @@ "type": "string" }, "description": "An ordered list of the allowed values of the property.\\nThe property can have up to 200 allowed values." + }, + "values_editable_by": { + "enum": [ + "org_actors", + "org_and_repo_actors", + null + ], + "type": [ + "string", + "null" + ], + "description": "Who can edit the values of the property", + "examples": [ + "org_actors" + ] } }, "description": "Custom property set payload" @@ -80,7 +95,8 @@ "required": false, "default_value": null, "description": "generated", - "allowed_values": null + "allowed_values": null, + "values_editable_by": "org_actors" }'; /** @@ -90,11 +106,13 @@ * description: Short description of the property * allowedValues: An ordered list of the allowed values of the property. The property can have up to 200 allowed values. + * valuesEditableBy: Who can edit the values of the property */ public function __construct(#[MapFrom('value_type')] public string $valueType, public bool|null $required, #[MapFrom('default_value')] public string|array|null $defaultValue, public string|null $description, #[MapFrom('allowed_values')] - public array|null $allowedValues,) + public array|null $allowedValues, #[MapFrom('values_editable_by')] + public string|null $valuesEditableBy,) { } } diff --git a/clients/GitHubEnterprise-3.15/src/Schema/Event.php b/clients/GitHubEnterprise-3.15/src/Schema/Event.php index 58af40f27ee..eead15af111 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/Event.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/Event.php @@ -1394,6 +1394,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -3814,6 +3881,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHubEnterprise-3.15/src/Schema/Event/Payload.php b/clients/GitHubEnterprise-3.15/src/Schema/Event/Payload.php index dd405cb2a31..a415c5d7a2e 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/Event/Payload.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/Event/Payload.php @@ -1277,6 +1277,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -3660,6 +3727,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHubEnterprise-3.15/src/Schema/Installation.php b/clients/GitHubEnterprise-3.15/src/Schema/Installation.php index 5872b27135e..2de300a59e2 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/Installation.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/Installation.php @@ -401,7 +401,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.15/src/Schema/InstallationToken.php b/clients/GitHubEnterprise-3.15/src/Schema/InstallationToken.php index b54165ab318..0bd76f29ef6 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/InstallationToken.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/InstallationToken.php @@ -73,7 +73,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHubEnterprise-3.15/src/Schema/Issue.php b/clients/GitHubEnterprise-3.15/src/Schema/Issue.php index 866a81fd7e1..7337e6c8ed4 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/Issue.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/Issue.php @@ -1272,6 +1272,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -2879,6 +2946,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", @@ -3071,6 +3148,7 @@ * title: Title of the issue * body: Contents of the issue * labels: Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository + * type: The type of issue. * repository: A repository on GitHub. * authorAssociation: How the author is associated with the repository. */ @@ -3090,7 +3168,7 @@ public function __construct(public int $id, #[MapFrom('node_id')] public Schema\SimpleUser|null $closedBy, #[MapFrom('body_html')] public string|null $bodyHtml, #[MapFrom('body_text')] public string|null $bodyText, #[MapFrom('timeline_url')] - public string|null $timelineUrl, public Schema\Repository|null $repository, #[MapFrom('performed_via_github_app')] + public string|null $timelineUrl, public Schema\IssueType|null $type, public Schema\Repository|null $repository, #[MapFrom('performed_via_github_app')] public Schema\Integration|null $performedViaGithubApp, #[MapFrom('author_association')] public string $authorAssociation, public Schema\ReactionRollup|null $reactions, #[MapFrom('sub_issues_summary')] public Schema\SubIssuesSummary|null $subIssuesSummary,) diff --git a/clients/GitHubEnterprise-3.15/src/Schema/IssueEvent.php b/clients/GitHubEnterprise-3.15/src/Schema/IssueEvent.php index 367892fd0d7..e4b85ddd272 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/IssueEvent.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/IssueEvent.php @@ -1517,6 +1517,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -4640,6 +4707,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHubEnterprise-3.15/src/Schema/IssueSearchResultItem.php b/clients/GitHubEnterprise-3.15/src/Schema/IssueSearchResultItem.php index caafd782a59..3d2ad640b3c 100644 --- a/clients/GitHubEnterprise-3.15/src/Schema/IssueSearchResultItem.php +++ b/clients/GitHubEnterprise-3.15/src/Schema/IssueSearchResultItem.php @@ -2068,6 +2068,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "performed_via_github_app": { "anyOf": [ { @@ -2881,6 +2948,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "performed_via_github_app": { "id": 37, "slug": "probot-owners", @@ -2926,6 +3003,7 @@ /** * authorAssociation: How the author is associated with the repository. * repository: A repository on GitHub. + * type: The type of issue. */ public function __construct(public string $url, #[MapFrom('repository_url')] public string $repositoryUrl, #[MapFrom('labels_url')] @@ -2945,7 +3023,7 @@ public function __construct(public string $url, #[MapFrom('repository_url')] public string $authorAssociation, public bool|null $draft, public Schema\Repository|null $repository, #[MapFrom('body_html')] public string|null $bodyHtml, #[MapFrom('body_text')] public string|null $bodyText, #[MapFrom('timeline_url')] - public string|null $timelineUrl, #[MapFrom('performed_via_github_app')] + public string|null $timelineUrl, public Schema\IssueType|null $type, #[MapFrom('performed_via_github_app')] public Schema\Integration|null $performedViaGithubApp, public Schema\ReactionRollup|null $reactions,) { } diff --git a/clients/GitHubEnterprise-3.15/src/Schema/IssueType.php b/clients/GitHubEnterprise-3.15/src/Schema/IssueType.php new file mode 100644 index 00000000000..6b4644c2c53 --- /dev/null +++ b/clients/GitHubEnterprise-3.15/src/Schema/IssueType.php @@ -0,0 +1,108 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForOrgListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['labels'] = 'generated'; + $data['type'] = 'generated'; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['filter'] = 'generated'; $data['state'] = 'generated'; @@ -60,9 +61,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForOrgListing('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForOrgListing('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } diff --git a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForOrgTest.php b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForOrgTest.php index be0c1fb74d0..5e10604d3af 100644 --- a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForOrgTest.php +++ b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForOrgTest.php @@ -31,11 +31,12 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['labels'] = 'generated'; + $data['type'] = 'generated'; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['filter'] = 'generated'; $data['state'] = 'generated'; @@ -58,8 +59,8 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForOrg('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForOrg('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForRepoListingTest.php b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForRepoListingTest.php index e19accc110e..56f169cb5ee 100644 --- a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForRepoListingTest.php +++ b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForRepoListingTest.php @@ -30,13 +30,14 @@ public function call_httpCode_301_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -62,9 +63,9 @@ public function operations_httpCode_301_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } @@ -79,13 +80,14 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -112,9 +114,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } @@ -129,13 +131,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -162,9 +165,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } diff --git a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForRepoTest.php b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForRepoTest.php index 9e137316ac7..ca876b13ddc 100644 --- a/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForRepoTest.php +++ b/clients/GitHubEnterprise-3.15/tests/Internal/Operation/Issues/ListForRepoTest.php @@ -30,13 +30,14 @@ public function call_httpCode_301_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -60,9 +61,9 @@ public function operations_httpCode_301_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -75,13 +76,14 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -106,9 +108,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -121,13 +123,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -152,8 +155,8 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php index 76063a3b827..c86931df904 100644 --- a/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.15/tests/Types/ClientCallReturnTypes.php @@ -345,8 +345,8 @@ function authHeader(): string assertType('', $client->call('POST /orgs/{org}/hooks/{hook_id}/pings')); assertType('', $client->call('GET /orgs/{org}/installation')); assertType('', $client->call('GET /orgs/{org}/installations')); -assertType('Observable', $client->call('GET /orgs/{org}/issues')); -assertType('Observable', $client->call('LIST /orgs/{org}/issues')); +assertType('iterable', $client->call('GET /orgs/{org}/issues')); +assertType('iterable', $client->call('LIST /orgs/{org}/issues')); assertType('Observable', $client->call('GET /orgs/{org}/members')); assertType('Observable', $client->call('LIST /orgs/{org}/members')); assertType('', $client->call('GET /orgs/{org}/members/{username}')); @@ -783,8 +783,8 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/invitations')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/invitations/{invitation_id}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/invitations/{invitation_id}')); -assertType('Observable|Schema\\BasicError', $client->call('GET /repos/{owner}/{repo}/issues')); -assertType('Observable|Schema\\BasicError', $client->call('LIST /repos/{owner}/{repo}/issues')); +assertType('iterable|Schema\\BasicError', $client->call('GET /repos/{owner}/{repo}/issues')); +assertType('iterable|Schema\\BasicError', $client->call('LIST /repos/{owner}/{repo}/issues')); assertType('', $client->call('POST /repos/{owner}/{repo}/issues')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/issues/comments')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/comments')); diff --git a/etc/specs/GitHubEnterprise-3.15/current.spec.yaml b/etc/specs/GitHubEnterprise-3.15/current.spec.yaml index a77ce283b00..8734f7711cc 100644 --- a/etc/specs/GitHubEnterprise-3.15/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.15/current.spec.yaml @@ -13513,6 +13513,12 @@ paths: - all default: open - "$ref": "#/components/parameters/labels" + - name: type + description: Can be the name of an issue type. + in: query + required: false + schema: + type: string - name: sort description: What to sort results by. in: query @@ -15949,6 +15955,10 @@ paths: description: |- Creates new or updates existing custom properties defined for an organization in a batch. + If the property already exists, the existing property will be replaced with the new values. + Missing optional values will fall back to default values, previous values will be overwritten. + E.g. if a property exists with `values_editable_by: org_and_repo_actors` and it's updated without specifying `values_editable_by`, it will be updated to default value `org_actors`. + To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization. @@ -33096,6 +33106,14 @@ paths: required: false schema: type: string + - name: type + description: Can be the name of an issue type. If the string `*` is passed, + issues with any type are accepted. If the string `none` is passed, issues + without type are returned. + in: query + required: false + schema: + type: string - name: creator description: The user that created the issue. in: query @@ -33236,6 +33254,13 @@ paths: are silently dropped otherwise._' items: type: string + type: + type: + - string + - 'null' + description: The name of the issue type to associate with this issue. + examples: + - Epic required: - title examples: @@ -33845,6 +33870,14 @@ paths: push access to the repository, assignee changes are silently dropped. items: type: string + type: + type: + - string + - 'null' + description: The name of the issue type to associate with this issue + or use `null` to remove the current issue type. + examples: + - Epic examples: default: value: @@ -67396,7 +67429,7 @@ components: - write dependabot_secrets: type: string - description: The leve of permission to grant the access token to manage + description: The level of permission to grant the access token to manage Dependabot secrets. enum: - read @@ -71592,6 +71625,58 @@ components: - url - created_at - updated_at + issue-type: + title: Issue Type + description: The type of issue. + type: + - object + - 'null' + properties: + id: + type: integer + description: The unique identifier of the issue type. + node_id: + type: string + description: The node identifier of the issue type. + name: + type: string + description: The name of the issue type. + description: + type: + - string + - 'null' + description: The description of the issue type. + color: + type: + - string + - 'null' + description: The color of the issue type. + enum: + - gray + - blue + - green + - yellow + - orange + - red + - pink + - purple + - + created_at: + type: string + description: The time the issue type created. + format: date-time + updated_at: + type: string + description: The time the issue type last updated. + format: date-time + is_enabled: + type: boolean + description: The enabled state of the issue type. + required: + - id + - node_id + - name + - description author-association: title: author_association type: string @@ -71841,6 +71926,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" repository: "$ref": "#/components/schemas/repository" performed_via_github_app: @@ -76443,6 +76530,17 @@ components: description: |- An ordered list of the allowed values of the property. The property can have up to 200 allowed values. + values_editable_by: + type: + - string + - 'null' + enum: + - org_actors + - org_and_repo_actors + - + description: Who can edit the values of the property + examples: + - org_actors required: - value_type custom-property-value: @@ -90163,6 +90261,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" performed_via_github_app: anyOf: - type: 'null' @@ -94988,6 +95088,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -96068,6 +96170,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -113496,6 +113600,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -114707,6 +114813,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -115925,6 +116033,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -117168,6 +117278,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -118270,6 +118382,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -119253,6 +119367,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -120215,6 +120331,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -121182,6 +121300,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -122173,6 +122293,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -123136,6 +123258,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -125500,6 +125624,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -126591,6 +126717,8 @@ components: format: uri user_view_type: type: string + type: + "$ref": "#/components/schemas/issue-type" organization: "$ref": "#/components/schemas/organization-simple-webhooks" repository: @@ -127449,6 +127577,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -128977,6 +129107,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time