Skip to content

Commit

Permalink
feat: types for apps/check-account-subscribes-to-plan{-stubbed} (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Mar 10, 2020
1 parent 6707f01 commit 0c5846b
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 62 deletions.
86 changes: 47 additions & 39 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -2141,9 +2141,9 @@
]
},
{
"name": "Check if an account subscribes to a plan",
"name": "Get a subscription plan for an account",
"scope": "apps",
"id": "checkAccountSubscribesToPlan",
"id": "getSubscriptionPlanForAccount",
"method": "GET",
"url": "/marketplace_listing/accounts/{account_id}",
"parameters": [
Expand All @@ -2156,31 +2156,11 @@
"name": "account_id",
"type": "integer",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "Results per page (max 100)",
"enum": null,
"name": "per_page",
"type": "integer",
"required": false
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "Page number of the results to fetch.",
"enum": null,
"name": "page",
"type": "integer",
"required": false
}
]
},
{
"name": "Check if an account subscribes to a plan",
"name": "Get a subscription plan for an account",
"scope": "apps",
"id": "checkAccountIsAssociatedWithAny",
"method": "GET",
Expand All @@ -2195,26 +2175,25 @@
"name": "account_id",
"type": "integer",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "Results per page (max 100)",
"enum": null,
"name": "per_page",
"type": "integer",
"required": false
},
}
]
},
{
"name": "Get a subscription plan for an account",
"scope": "apps",
"id": "checkAccountSubscribesToPlan",
"method": "GET",
"url": "/marketplace_listing/accounts/{account_id}",
"parameters": [
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "Page number of the results to fetch.",
"description": "account_id parameter",
"enum": null,
"name": "page",
"name": "account_id",
"type": "integer",
"required": false
"required": true
}
]
},
Expand Down Expand Up @@ -2366,7 +2345,26 @@
]
},
{
"name": "Check if an account subscribes to a plan (stubbed)",
"name": "Get a subscription plan for an account (stubbed)",
"scope": "apps",
"id": "getSubscriptionPlanForAccountStubbed",
"method": "GET",
"url": "/marketplace_listing/stubbed/accounts/{account_id}",
"parameters": [
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "account_id parameter",
"enum": null,
"name": "account_id",
"type": "integer",
"required": true
}
]
},
{
"name": "Get a subscription plan for an account (stubbed)",
"scope": "apps",
"id": "checkAccountSubscribesToPlanStubbed",
"method": "GET",
Expand Down Expand Up @@ -8661,6 +8659,16 @@
"type": "integer",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "Filters jobs by their `completed_at` timestamp. Can be one of: \n\\* `latest`: Returns jobs from the most recent execution of the workflow run. \n\\* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run.",
"enum": ["latest", "all"],
"name": "filter",
"type": "string",
"required": false
},
{
"alias": null,
"allowNull": false,
Expand Down Expand Up @@ -11340,7 +11348,7 @@
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "The URL of the integrator's site that has the full details of the check.",
"description": "The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.",
"enum": null,
"name": "details_url",
"type": "string",
Expand Down
66 changes: 43 additions & 23 deletions src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,13 @@ export interface Endpoints {
"GET /licenses/:license": [LicensesGetEndpoint, LicensesGetRequestOptions];
"GET /marketplace_listing/accounts/:account_id": [

| AppsCheckAccountSubscribesToPlanEndpoint
| AppsCheckAccountIsAssociatedWithAnyEndpoint,
| AppsGetSubscriptionPlanForAccountEndpoint
| AppsCheckAccountIsAssociatedWithAnyEndpoint
| AppsCheckAccountSubscribesToPlanEndpoint,

| AppsCheckAccountSubscribesToPlanRequestOptions
| AppsGetSubscriptionPlanForAccountRequestOptions
| AppsCheckAccountIsAssociatedWithAnyRequestOptions
| AppsCheckAccountSubscribesToPlanRequestOptions
];
"GET /marketplace_listing/plans": [
AppsListPlansEndpoint,
Expand All @@ -552,8 +554,12 @@ export interface Endpoints {
| AppsListAccountsUserOrOrgOnPlanRequestOptions
];
"GET /marketplace_listing/stubbed/accounts/:account_id": [
AppsCheckAccountSubscribesToPlanStubbedEndpoint,
AppsCheckAccountSubscribesToPlanStubbedRequestOptions

| AppsGetSubscriptionPlanForAccountStubbedEndpoint
| AppsCheckAccountSubscribesToPlanStubbedEndpoint,

| AppsGetSubscriptionPlanForAccountStubbedRequestOptions
| AppsCheckAccountSubscribesToPlanStubbedRequestOptions
];
"GET /marketplace_listing/stubbed/plans": [
AppsListPlansStubbedEndpoint,
Expand Down Expand Up @@ -3571,21 +3577,13 @@ type MarkdownRenderRawRequestOptions = {
headers: RequestHeaders;
request: RequestRequestOptions;
};
type AppsCheckAccountSubscribesToPlanEndpoint = {
type AppsGetSubscriptionPlanForAccountEndpoint = {
/**
* account_id parameter
*/
account_id: number;
/**
* Results per page (max 100)
*/
per_page?: number;
/**
* Page number of the results to fetch.
*/
page?: number;
};
type AppsCheckAccountSubscribesToPlanRequestOptions = {
type AppsGetSubscriptionPlanForAccountRequestOptions = {
method: "GET";
url: Url;
headers: RequestHeaders;
Expand All @@ -3596,16 +3594,20 @@ type AppsCheckAccountIsAssociatedWithAnyEndpoint = {
* account_id parameter
*/
account_id: number;
};
type AppsCheckAccountIsAssociatedWithAnyRequestOptions = {
method: "GET";
url: Url;
headers: RequestHeaders;
request: RequestRequestOptions;
};
type AppsCheckAccountSubscribesToPlanEndpoint = {
/**
* Results per page (max 100)
*/
per_page?: number;
/**
* Page number of the results to fetch.
* account_id parameter
*/
page?: number;
account_id: number;
};
type AppsCheckAccountIsAssociatedWithAnyRequestOptions = {
type AppsCheckAccountSubscribesToPlanRequestOptions = {
method: "GET";
url: Url;
headers: RequestHeaders;
Expand Down Expand Up @@ -3683,6 +3685,18 @@ type AppsListAccountsUserOrOrgOnPlanRequestOptions = {
headers: RequestHeaders;
request: RequestRequestOptions;
};
type AppsGetSubscriptionPlanForAccountStubbedEndpoint = {
/**
* account_id parameter
*/
account_id: number;
};
type AppsGetSubscriptionPlanForAccountStubbedRequestOptions = {
method: "GET";
url: Url;
headers: RequestHeaders;
request: RequestRequestOptions;
};
type AppsCheckAccountSubscribesToPlanStubbedEndpoint = {
/**
* account_id parameter
Expand Down Expand Up @@ -6896,6 +6910,12 @@ type ActionsListJobsForWorkflowRunEndpoint = {
* run_id parameter
*/
run_id: number;
/**
* Filters jobs by their `completed_at` timestamp. Can be one of:
* \* `latest`: Returns jobs from the most recent execution of the workflow run.
* \* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run.
*/
filter?: "latest" | "all";
/**
* Results per page (max 100)
*/
Expand Down Expand Up @@ -8157,7 +8177,7 @@ type ChecksCreateEndpoint = {
*/
head_sha: string;
/**
* The URL of the integrator's site that has the full details of the check.
* The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
*/
details_url?: string;
/**
Expand Down

0 comments on commit 0c5846b

Please sign in to comment.