Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(codegen): regenerate graphql.ts after gen-api cloud-storage step (#4483)
Jacob Beckermane99367f9cecd
diff --git a/js/app/codegen.ts b/js/app/codegen.tsindex f12a09d378..5bcba11ab6 100644--- a/js/app/codegen.ts+++ b/js/app/codegen.ts@@ -4,7 +4,7 @@ const config: CodegenConfig = {schema: '../../rust/cloud-storage/schema.graphql',documents: ['packages/service-clients/service-storage/graphql/**/*.graphql'],generates: {- 'packages/service-clients/service-storage/generated/graphql.ts': {+ 'packages/service-clients/service-storage/graphql/generated/graphql.ts': {plugins: ['typescript-operations', 'typed-document-node'],config: {enumsAsTypes: true,diff --git a/js/app/packages/queries/soup/graphql-ast.ts b/js/app/packages/queries/soup/graphql-ast.tsindex b1e5e5c20e..245767b733 100644--- a/js/app/packages/queries/soup/graphql-ast.ts+++ b/js/app/packages/queries/soup/graphql-ast.ts@@ -14,7 +14,7 @@ import type {GraphqlProjectLiteral as GraphqlProjectLiteralInput,GraphqlPropertiesLiteral as GraphqlPropertiesLiteralInput,SoupInput as GraphqlSoupInput,-} from '@service-storage/generated/graphql';+} from '@service-storage/graphql/generated/graphql';type GraphqlExprInput<TLiteral> =| {diff --git a/js/app/packages/service-clients/service-storage/graphql-soup.ts b/js/app/packages/service-clients/service-storage/graphql-soup.tsindex e05d7ebd2f..d0140cea9a 100644--- a/js/app/packages/service-clients/service-storage/graphql-soup.ts+++ b/js/app/packages/service-clients/service-storage/graphql-soup.ts@@ -5,13 +5,13 @@ import { platformFetch } from '@core/util/platformFetch';import { getMacroApiToken } from '@service-auth/fetch';import { createClient, fetchExchange } from '@urql/core';import { match } from 'ts-pattern';+import type { SoupApiItem, SoupPage } from './generated/schemas';import {type SoupInput,type SoupQuery,SoupDocument as SoupQueryDocument,type SoupQueryVariables,-} from './generated/graphql';-import type { SoupApiItem, SoupPage } from './generated/schemas';+} from './graphql/generated/graphql';const dssHost = SERVER_HOSTS['document-storage-service'];diff --git a/js/app/packages/service-clients/service-storage/generated/graphql.ts b/js/app/packages/service-clients/service-storage/graphql/generated/graphql.tssimilarity index 99%rename from js/app/packages/service-clients/service-storage/generated/graphql.tsrename to js/app/packages/service-clients/service-storage/graphql/generated/graphql.tsindex 74269677c8..68fa067758 100644--- a/js/app/packages/service-clients/service-storage/generated/graphql.ts+++ b/js/app/packages/service-clients/service-storage/graphql/generated/graphql.ts@@ -222,6 +222,7 @@ export type GraphqlChannelThreadLiteral =channelId: string | number;notificationDone?: never;notificationSeen?: never;+ participant?: never;rootSender?: never;threadId?: never;}@@ -229,6 +230,7 @@ export type GraphqlChannelThreadLiteral =channelId?: never;notificationDone: boolean;notificationSeen?: never;+ participant?: never;rootSender?: never;threadId?: never;}@@ -236,6 +238,7 @@ export type GraphqlChannelThreadLiteral =channelId?: never;notificationDone?: never;notificationSeen: boolean;+ participant?: never;rootSender?: never;threadId?: never;}@@ -243,6 +246,15 @@ export type GraphqlChannelThreadLiteral =channelId?: never;notificationDone?: never;notificationSeen?: never;+ participant: string;+ rootSender?: never;+ threadId?: never;+ }+ | {+ channelId?: never;+ notificationDone?: never;+ notificationSeen?: never;+ participant?: never;rootSender: string;threadId?: never;}@@ -250,6 +262,7 @@ export type GraphqlChannelThreadLiteral =channelId?: never;notificationDone?: never;notificationSeen?: never;+ participant?: never;rootSender?: never;threadId: string | number;};@@ -1123,8 +1136,8 @@ export type GraphqlSoupEntityType =| 'CALL'/** Channel entity. */| 'CHANNEL'- /** Channel message entity. */- | 'CHANNEL_MESSAGE'+ /** Channel thread entity. */+ | 'CHANNEL_THREAD'/** Chat entity. */| 'CHAT'/** CRM company entity. */@@ -1197,7 +1210,7 @@ export type SoupQuery = {id: string;channelType: string;ownerId: string;- organizationId: number | null;+ organizationId: string | null;createdAt: string;updatedAt: string;viewedAt: string | null;