feat: refactor schema builder and resolver builder (#2215)

* feat: wip refactor schema builder

* feat: wip store types and first queries generation

* feat: refactor schema-builder and resolver-builder

* fix: clean & small type fix

* fix: avoid breaking change

* fix: remove util from pg-graphql classes

* fix: required default fields

* Refactor frontend accordingly

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Jérémy M
2023-11-03 17:16:37 +01:00
committed by GitHub
parent aba3fd454b
commit 1ed4965a95
216 changed files with 3215 additions and 2028 deletions

View File

@ -8,7 +8,7 @@ const companiesMetadata = {
icon: 'IconBuildingSkyscraper',
fields: [
{
type: 'text',
type: 'TEXT',
name: 'name',
label: 'Name',
targetColumnMap: {
@ -19,7 +19,7 @@ const companiesMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'domainName',
label: 'Domain Name',
targetColumnMap: {
@ -30,7 +30,7 @@ const companiesMetadata = {
isNullable: true,
},
{
type: 'text',
type: 'TEXT',
name: 'address',
label: 'Address',
targetColumnMap: {
@ -41,7 +41,7 @@ const companiesMetadata = {
isNullable: true,
},
{
type: 'number',
type: 'NUMBER',
name: 'employees',
label: 'Employees',
targetColumnMap: {

View File

@ -8,7 +8,7 @@ const viewFieldsMetadata = {
icon: 'IconColumns3',
fields: [
{
type: 'text',
type: 'TEXT',
name: 'fieldId',
label: 'Field Id',
targetColumnMap: {
@ -19,7 +19,7 @@ const viewFieldsMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'viewId',
label: 'View Id',
targetColumnMap: {
@ -41,7 +41,7 @@ const viewFieldsMetadata = {
isNullable: false,
},
{
type: 'number',
type: 'NUMBER',
name: 'size',
label: 'Size',
targetColumnMap: {
@ -52,7 +52,7 @@ const viewFieldsMetadata = {
isNullable: false,
},
{
type: 'number',
type: 'NUMBER',
name: 'position',
label: 'Position',
targetColumnMap: {

View File

@ -8,7 +8,7 @@ const viewFiltersMetadata = {
icon: 'IconFilterBolt',
fields: [
{
type: 'text',
type: 'TEXT',
name: 'fieldId',
label: 'Field Id',
targetColumnMap: {
@ -19,7 +19,7 @@ const viewFiltersMetadata = {
isNullable: true,
},
{
type: 'text',
type: 'TEXT',
name: 'viewId',
label: 'View Id',
targetColumnMap: {
@ -30,7 +30,7 @@ const viewFiltersMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'operand',
label: 'Operand',
targetColumnMap: {
@ -41,7 +41,7 @@ const viewFiltersMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'value',
label: 'Value',
targetColumnMap: {
@ -52,7 +52,7 @@ const viewFiltersMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'displayValue',
label: 'Display Value',
targetColumnMap: {

View File

@ -8,7 +8,7 @@ const viewSortsMetadata = {
icon: 'IconArrowsSort',
fields: [
{
type: 'text',
type: 'TEXT',
name: 'fieldId',
label: 'Field Id',
targetColumnMap: {
@ -19,7 +19,7 @@ const viewSortsMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'viewId',
label: 'View Id',
targetColumnMap: {
@ -30,7 +30,7 @@ const viewSortsMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'direction',
label: 'Direction',
targetColumnMap: {

View File

@ -8,7 +8,7 @@ const viewsMetadata = {
icon: 'IconLayoutCollage',
fields: [
{
type: 'text',
type: 'TEXT',
name: 'name',
label: 'Name',
targetColumnMap: {
@ -19,7 +19,7 @@ const viewsMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'objectId',
label: 'Object Id',
targetColumnMap: {
@ -30,7 +30,7 @@ const viewsMetadata = {
isNullable: false,
},
{
type: 'text',
type: 'TEXT',
name: 'type',
label: 'Type',
targetColumnMap: {