Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.7 KB
Raw Blame
fragment GraphqlCrmCompanyQuickAccessFields on GraphqlSoupCrmCompany {
	__typename
	name
	teamId
	hidden
	domains
	createdAt
	updatedAt
	viewedAt
}

fragment GraphqlCrmContactFields on GraphqlSoupCrmContact {
  __typename
  id
  contactTeamId: teamId
  contactCompanyId: parentCompanyId
  contactCompanyName: parentCompanyName
  contactEmail: emailAddress
  crmContactName: name
  hidden
  firstInteraction
  lastInteraction
  createdAt
  updatedAt
  viewedAt
}

query CrmContacts($input: SoupInput!) {
  user {
    id
    soup(input: $input) {
      items {
        __typename
        ...GraphqlCrmContactFields
      }
      nextCursor
    }
  }
}

fragment CrmPipelineEntryFields on GraphqlCrmPipelineEntry {
  __typename
  id
  pipeline {
    __typename
    id
    name
    sharing
    tableId
    canEdit
  }
  cells {
    __typename
    column {
      __typename
      id
      name
      dataType
      isMultiSelect
      specificEntityType
      writable
      options {
        __typename
        id
        color
        value {
          __typename
          ... on GraphqlStringPropertyOptionValue {
            stringValue: value
          }
          ... on GraphqlNumberPropertyOptionValue {
            numberValue: value
          }
        }
      }
    }
    value {
      ...SoupPropertyValueFields
    }
  }
}

query CrmRecordPipelineEntries($input: SoupInput!) {
  user {
    id
    soup(input: $input) {
      items {
        __typename
        ... on GraphqlSoupCrmCompany {
          id
          pipelineEntries {
            ...CrmPipelineEntryFields
          }
        }
        ... on GraphqlSoupCrmContact {
          id
          pipelineEntries {
            ...CrmPipelineEntryFields
          }
        }
      }
    }
  }
}