From 194bf6115395faefed385faa064e3c36178666b7 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:00:33 +0000 Subject: [PATCH 1/4] Fix getAll params type --- integrations/linear/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/linear/src/index.ts b/integrations/linear/src/index.ts index f6318ee7a3..b7fb148bea 100644 --- a/integrations/linear/src/index.ts +++ b/integrations/linear/src/index.ts @@ -182,7 +182,7 @@ export class Linear implements TriggerIntegration { >( task: TTask, key: IntegrationTaskKey, - params: Nullable = {} + params: Parameters[1] = {} ): Promise>["nodes"]> { const boundTask = task.bind(this as any); From 7c44f6981b075ea672c17f73b2be97f5ecb28241 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:06:14 +0000 Subject: [PATCH 2/4] Changeset --- .changeset/sour-jars-punch.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/sour-jars-punch.md diff --git a/.changeset/sour-jars-punch.md b/.changeset/sour-jars-punch.md new file mode 100644 index 0000000000..14335b041b --- /dev/null +++ b/.changeset/sour-jars-punch.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/linear": patch +--- + +Fix `getAll` pagination helper params From 7ffda7e37da1e6258e947d1f5f19b6fbf8f6ce29 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Fri, 29 Sep 2023 09:27:12 +0000 Subject: [PATCH 3/4] Search param types --- integrations/linear/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integrations/linear/src/index.ts b/integrations/linear/src/index.ts index b7fb148bea..dde947e7d7 100644 --- a/integrations/linear/src/index.ts +++ b/integrations/linear/src/index.ts @@ -695,7 +695,7 @@ export class Linear implements TriggerIntegration { key: IntegrationTaskKey, params: { term: string; - variables?: L.SearchDocumentsQueryVariables; + variables?: Parameters[1]; } ): LinearReturnType { return this.runTask( @@ -862,7 +862,7 @@ export class Linear implements TriggerIntegration { key: IntegrationTaskKey, params: { term: string; - variables?: L.SearchIssuesQueryVariables; + variables?: Parameters[1]; } ): LinearReturnType { return this.runTask( @@ -1273,7 +1273,7 @@ export class Linear implements TriggerIntegration { key: IntegrationTaskKey, params: { term: string; - variables?: L.SearchProjectsQueryVariables; + variables?: Parameters[1]; } ): LinearReturnType { return this.runTask( From 1f9cb1036326c940f939b4ff30c2c0c3f2234adf Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Fri, 29 Sep 2023 09:33:08 +0000 Subject: [PATCH 4/4] Update changeset --- .changeset/sour-jars-punch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/sour-jars-punch.md b/.changeset/sour-jars-punch.md index 14335b041b..28abcd24d1 100644 --- a/.changeset/sour-jars-punch.md +++ b/.changeset/sour-jars-punch.md @@ -2,4 +2,4 @@ "@trigger.dev/linear": patch --- -Fix `getAll` pagination helper params +Fix `getAll` helper and search function params