@rustrak/client 0.22.2 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/generated/sdk.gen.cjs +44 -0
- package/dist/generated/sdk.gen.cjs.map +1 -1
- package/dist/generated/sdk.gen.d.cts +3 -1
- package/dist/generated/sdk.gen.d.cts.map +1 -1
- package/dist/generated/sdk.gen.d.mts +3 -1
- package/dist/generated/sdk.gen.d.mts.map +1 -1
- package/dist/generated/sdk.gen.mjs +45 -1
- package/dist/generated/sdk.gen.mjs.map +1 -1
- package/dist/generated/types.gen.d.cts +52 -0
- package/dist/generated/types.gen.d.cts.map +1 -1
- package/dist/generated/types.gen.d.mts +52 -0
- package/dist/generated/types.gen.d.mts.map +1 -1
- package/dist/generated/zod.gen.cjs +53 -8
- package/dist/generated/zod.gen.cjs.map +1 -1
- package/dist/generated/zod.gen.mjs +48 -9
- package/dist/generated/zod.gen.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -307,8 +307,10 @@ Every method, grouped as it hangs off the client (`client.issues.list(...)`).
|
|
|
307
307
|
| `github.getProjectRepository({ path })` | `GET /api/projects/{project_id}/github` | |
|
|
308
308
|
| `github.installed({ query })` | `GET /api/github/installed` | GitHub sends the browser here after the app is installed on an account. |
|
|
309
309
|
| `github.issue({ path })` | `GET /api/projects/{project_id}/issues/{issue_id}/github` | The issue's links, the commits that may have caused it, and who owns its culprit file. |
|
|
310
|
+
| `github.issueDraft({ path })` | `GET /api/projects/{project_id}/issues/{issue_id}/github/draft` | What creating a GitHub issue sends by default, with the templates applied, for the person to edit first. |
|
|
310
311
|
| `github.linkIssue({ path, body })` | `POST /api/projects/{project_id}/issues/{issue_id}/github/links` | Links an existing GitHub issue or pull request. |
|
|
311
312
|
| `github.manifest({ body })` | `POST /api/github/manifest` | What the dashboard posts to GitHub so GitHub creates an app already configured for this server. |
|
|
313
|
+
| `github.putIssueTemplate({ body })` | `PUT /api/github/issue-template` | The labels, title prefix and body footer every GitHub issue starts with, before a project's own. |
|
|
312
314
|
| `github.putMyLogin({ body })` | `PUT /api/github/me` | |
|
|
313
315
|
| `github.putProjectRepository({ path, body })` | `PUT /api/projects/{project_id}/github` | |
|
|
314
316
|
| `github.repositories({ query })` | `GET /api/github/repositories` | The repositories a project can point at, for whoever may change that project's settings. |
|
|
@@ -599,6 +599,30 @@ var Github = class extends HeyApiClient {
|
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
/**
|
|
602
|
+
* PUT /api/github/issue-template: the labels, title prefix and body footer
|
|
603
|
+
* every GitHub issue starts with, before a project's own.
|
|
604
|
+
*/
|
|
605
|
+
putIssueTemplate(options) {
|
|
606
|
+
return (options.client ?? this.client).put({
|
|
607
|
+
requestValidator: async (data) => await zod.object({
|
|
608
|
+
body: require_zod_gen.zGithubPutIssueTemplateBody,
|
|
609
|
+
path: zod.never().optional(),
|
|
610
|
+
query: zod.never().optional()
|
|
611
|
+
}).parseAsync(data),
|
|
612
|
+
responseValidator: async (data) => await require_zod_gen.zGithubPutIssueTemplateResponse.parseAsync(data),
|
|
613
|
+
security: [{
|
|
614
|
+
scheme: "bearer",
|
|
615
|
+
type: "http"
|
|
616
|
+
}],
|
|
617
|
+
url: "/api/github/issue-template",
|
|
618
|
+
...options,
|
|
619
|
+
headers: {
|
|
620
|
+
"Content-Type": "application/json",
|
|
621
|
+
...options.headers
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
602
626
|
* POST /api/github/manifest: what the dashboard posts to GitHub so GitHub
|
|
603
627
|
* creates an app already configured for this server.
|
|
604
628
|
*/
|
|
@@ -806,6 +830,26 @@ var Github = class extends HeyApiClient {
|
|
|
806
830
|
});
|
|
807
831
|
}
|
|
808
832
|
/**
|
|
833
|
+
* GET .../github/draft: what creating a GitHub issue sends by default, with
|
|
834
|
+
* the templates applied, for the person to edit first.
|
|
835
|
+
*/
|
|
836
|
+
issueDraft(options) {
|
|
837
|
+
return (options.client ?? this.client).get({
|
|
838
|
+
requestValidator: async (data) => await zod.object({
|
|
839
|
+
body: zod.never().optional(),
|
|
840
|
+
path: require_zod_gen.zGithubIssueDraftPath,
|
|
841
|
+
query: zod.never().optional()
|
|
842
|
+
}).parseAsync(data),
|
|
843
|
+
responseValidator: async (data) => await require_zod_gen.zGithubIssueDraftResponse.parseAsync(data),
|
|
844
|
+
security: [{
|
|
845
|
+
scheme: "bearer",
|
|
846
|
+
type: "http"
|
|
847
|
+
}],
|
|
848
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/github/draft",
|
|
849
|
+
...options
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
809
853
|
* POST .../github/issues: opens a GitHub issue and links it.
|
|
810
854
|
*/
|
|
811
855
|
createIssue(options) {
|