t3-code-android-nightly/packages/issue-tracker-linear/graphql.config.ts
Julius Marminge 86863beede
feat(issues): add Linear as a standalone issue tracker (#19274)
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 22:00:46 -08:00

21 lines
972 B
TypeScript

import { defineConfig } from "@effect/graphql-generator/Config";
// `schema/linear.graphql` is the public schema Linear publishes with its SDK
// (https://github.com/linear/linear/blob/master/packages/sdk/src/schema.graphql).
export default defineConfig({
schema: "./schema/linear.graphql",
documents: ["src/**/*.graphql"],
scalars: {
// Kept as Linear sends it: the tracker passes these on as ISO strings.
DateTime: "effect/Schema#String",
// An attachment's metadata arrives as an object; its shape depends on the integration.
JSONObject: "effect/Schema#Json",
// Documented as stringified JSON, but a template's data has also arrived as an object.
JSON: "effect/Schema#Json",
// Filters compare dates with these; the tracker sends none of them.
DateTimeOrDuration: "effect/Schema#String",
Duration: "effect/Schema#String",
TimelessDate: "effect/Schema#String",
TimelessDateOrDuration: "effect/Schema#String",
},
});