rapida-partner 1.16.10 → 1.16.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapida-partner",
3
- "version": "1.16.10",
3
+ "version": "1.16.11",
4
4
  "main": "dist/index.js",
5
5
  "module": "index.ts",
6
6
  "files": [
package/rapidaObject.json CHANGED
@@ -1 +1 @@
1
- {"title":"Fundamento","id":"fundamento","flow":"backofficeByInvitationAndPermissionsByComponent","description":"Backoffice para criação de dados que serão utilizados em diversas outras soluções da Cooperativa Kunlatek, como NCM, CBO ou memso produtos, localizações, animais. Podendo também ser utilizado como um SaaS para quem quiser utilizar estes dados.","frontend":{"framework":"react","uiKit":"flowbite"},"backend":{"framework":"nest","jwtSecret":"Kunl4t3kw1llN3v3rD13M0th3rFudg3r","database":{"provider":"mongodb","connectionString":"mongodb+srv://kunlatek:Kunl4t3kw1llN3v3rD132025@cluster0.b0pfr.mongodb.net/fundamento-v1","credentials":{"databaseName":"fundamento-v1","username":"kunlatek","password":"Kunl4t3kw1llN3v3rD132025","host":"cluster0.b0pfr.mongodb.net"}},"storage":{"provider":"gcs","credentials":{"clientEmail":"rapida-personal@rapida-personal-projects.iam.gserviceaccount.com","privateKey":"-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDCDEQRUfKKxYUj\nVorX+aiEHhPRrrcNHVw40qq517wP7IgIp2UlA5uf0rV2cdn1njA9RMQxp6l7Qt+0\nBZg1JZM8l9Uv1SckRlkKST4k2B3MDOEl1riAPxIE/jBCUT9l2DCbir0Nu+CqGhGD\nUXOMpF0XWYL9GIBRo8Paf//yU0b86VBDfQGgnFkMKFq3bVDkPd8hQTBgTFT5F1Rh\nDcoUpAp/n3SYxkAK1V7Je+fnChF1DQPj8Nd5CLm4DsCM1B+HtaegsaE1ulXwhi1J\nlIFFGv49g0f2qOs3hytTPt0d8UpxFd9/Oq0tmcjuzK4bYzJdVZZPf+4xflHz+6R8\n2o7grTeDAgMBAAECggEABHdsz6s/tnMCdARHcN41w0i/8wke/IXK/CHZPSrakNFE\ndlKIEPiKyfx7Ic1QE4e/G4HsNCpkS8qHxKiGTt7dCz2BcjbpTjvyS7rQ298/nFVF\nj23oVEdfXk8NhFFDcNAvmjzwyhKjgrbT5V5oFvonjGSKj9HTDk4DMZHVrdm93g9k\nZ9XJBVeLh14/rkZLMDZ9DVjUMiQ6xElMH3IQD4MwEcul9eqM8bs2APgZlzzfO76m\nAuq20l4JqOcJJl8wzC7z12eNDNJrQNh2sHsT9zV5PabfNoQhnU6fDvKr0PG0PGRR\nS5PTDeiMY47rJVPgwxthSke3abtdgA9SNie8OqZl6QKBgQD+yFT+ndFYKvHg2WNi\ns0jK0QqFQB84LQtOX2YhQ0137mtSv0z7wO90e28dfUqsjax4DxPMp+AW0cC3SBEv\n2T8/rJrgzGucPt4Jzml5HYl2NgCkNAtHIJ1vtXJdX5d3WmYhH7cUTPmV6nMS8OlF\nheSyfudCiOo89phQf0pI6lhQKwKBgQDC+aOU2cxMVA5VH0txX0G9tPQjBvzY09ev\nVLGrxlmdAcQVXYCWdoESEfTv3E4JPklAz5B2/XnALxM5ewJgjoP6buOCJrQcgJNC\nSsG9Ll3zF4c+opFmaYTzcAY9HWHa4Pc+GAxFrrcPGzVBLjSrl7FPdykkPiBNxNJa\nnOzzrL4yCQKBgQC7b/pHjycx6/YiawuY0zjcLMnGmhPdqhXFRJ3IHtFhR/+g0qf6\nFkiTszNdyI0lQNz/PmhciaxsXUegDt7GCtdjKsKOWxVXz1BeeoJR3g8A7l2ub7NU\nUoRAaIaIdwjhf5nfCIwR3UdIqUCbUKzsvsIvJvlPk5Zv3yLTJbIqzmzGHQKBgBiQ\nnUSGwE+pk3i0DaxGBSFiqBO1sKuc3SLQ9+WdgvLeIxdSBX5vhcmCC6sgxZAykcYh\noKDtRKarB7AJSH5j1kr6J53hRHYG2QbUJl6wddPH1hlVIB6YEtEc/xw6FHcgOuZO\n31T0M0oq8mW47Zfk78kESWGwlh9WOe6CsPPugrQJAoGBAP3o8DqH1Pb7vlowsz78\n8fsCuydEJgsPSwHHqBveeUHBQLGSiGIIKRXWR1a13mWXQTqQkROZCwvVCMX6FHZZ\nKv3rzgsTkaaoqM0RVLcQSSDoyu2yP/JJv+VYsvMf2S3dUkDAeYDZFizPeFF42t92\n+MSId41OkBvJ/JvqsBWlWFYK\n-----END PRIVATE KEY-----\n","projectId":"rapida-personal-projects"},"publicBucketName":"rapida-public-files","privateBucketName":"rapida-private-files"},"logging":{"discordWebhookUrl":"https://discord.com/api/webhooks/1370095507959054429/Ay8pIM-sinbjsLMAAWGrRDFT-oyBD3xu7yB2Ke0Bx6RxpKN882taB4_tkD2xsdk8MirZ"},"email":{"smtpUser":"noreply.rapida@gmail.com","smtpPass":"ekgwxlazvjjllfxf","smtpFrom":"noreply@kunlatek.com"},"baseUrl":"http://localhost:5173"},"modules":[{"id":"testModule","title":"Test","icon":"test","components":[{"title":"Gerenciar teste","id":"testForm","componentType":"form","elements":[{"type":"autocomplete","dataType":"uniqueidentifier","label":"Seção do NCM","name":"ncmSectionId","optionsApi":{"relatedEntity":"NcmSection","labelField":["code","description"],"valueField":"_id","paramsToFilter":["description","code"],"paramType":"query","endpoint":"/ncm-sections"}},{"type":"autocomplete","dataType":"uniqueidentifier","label":"Posição do NCM","name":"ncmPositionId","optionsApi":{"relatedEntity":"NcmPosition","labelField":["code","description"],"valueField":"_id","paramsToFilter":["description","code"],"paramType":"query","endpoint":"/ncm-positions","filtersFromOtherFormFields":[{"formFieldName":"ncmSectionId","filterPropertyName":"sectionId"}]}},{"type":"autocomplete","dataType":"uniqueidentifier","label":"Subposição do NCM","name":"ncmSubPositionId","optionsApi":{"relatedEntity":"NcmSubPosition","labelField":["code","description"],"valueField":"_id","paramsToFilter":["description","code"],"paramType":"query","endpoint":"/ncm-sub-positions","filtersFromOtherFormFields":[{"formFieldName":"ncmPositionId","filterPropertyName":"positionId"}]}}],"contracts":[{"id":"tests","endpoint":"/tests","actions":["create","get","getById","update","softDelete"],"request":{"entity":"Tests","fields":[]}}]},{"title":"Listar testes","id":"testList","componentType":"list","dataSource":{"endpoint":"/tests","paramType":"query"},"listItems":[{"label":"Seção do NCM","property":"ncmSection.description","dataType":"nvarchar","type":"title"},{"label":"Posição do NCM","property":"ncmPosition.description","dataType":"nvarchar","type":"subtitle"},{"label":"Subposição do NCM","property":"ncmSubPosition.description","dataType":"nvarchar","type":"subtitle"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/test-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/test-list"},"request":{"endpoint":"/tests","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir item","message":"Deseja realmente excluir esse item?"}}}}],"contracts":[]}]},{"id":"ncmModule","title":"NCM","icon":"inventory_2","components":[{"title":"Gerenciar da NCM","id":"ncmSectionForm","componentType":"form","elements":[{"label":"Descrição","name":"description","type":"input","dataType":"nvarchar","isRequired":true},{"label":"Código","name":"code","type":"input","dataType":"nvarchar","isRequired":true,"isUnique":true}],"contracts":[{"id":"ncmSections","endpoint":"/ncm-sections","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmSections","fields":[]}}]},{"title":"Gerenciar da NCM","id":"ncmPositionForm","componentType":"form","elements":[{"type":"autocomplete","label":"Seção","name":"ncmSectionId","dataType":"uniqueidentifier","isRequired":true,"optionsApi":{"relatedEntity":"NcmSections","paramType":"query","endpoint":"/ncm-sections","labelField":["description"],"valueField":"_id","paramsToFilter":["description"]}},{"label":"Descrição","name":"description","type":"input","dataType":"nvarchar","isRequired":true},{"label":"Código","name":"code","type":"input","dataType":"nvarchar","isRequired":true,"isUnique":true}],"contracts":[{"id":"ncmPositions","endpoint":"/ncm-positions","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmPositions","fields":[]}}]},{"title":"Gerenciar subposição da NCM","id":"ncmSubpositionForm","componentType":"form","guards":"isAuthorized","elements":[{"type":"autocomplete","label":"Posição","name":"ncmPositionId","dataType":"uniqueidentifier","isRequired":true,"optionsApi":{"relatedEntity":"NcmPositions","paramType":"query","endpoint":"/ncm-positions","labelField":["code","description"],"valueField":"_id","paramsToFilter":["code","description"]}},{"type":"input","dataType":"nvarchar","label":"Descrição","name":"description","isRequired":true},{"type":"input","dataType":"nvarchar","label":"Código","name":"code","isUnique":true}],"contracts":[{"id":"ncmSubpositions","endpoint":"/ncm-subpositions","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmSubpositions","fields":[]}}]},{"title":"Gerenciar item da NCM","id":"ncmItemForm","componentType":"form","guards":"isAuthorized","elements":[{"type":"autocomplete","label":"Subposição","name":"ncmSubpositionId","dataType":"uniqueidentifier","isRequired":true,"optionsApi":{"relatedEntity":"NcmSubpositions","paramType":"query","endpoint":"/ncm-subpositions","labelField":["code","description"],"valueField":"_id","paramsToFilter":["code","description"]}},{"type":"input","dataType":"nvarchar","label":"Descrição","name":"description","isRequired":true},{"type":"input","dataType":"nvarchar","label":"Código","name":"code","isUnique":true}],"contracts":[{"id":"ncmItems","endpoint":"/ncm-items","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmItems","fields":[]}}]},{"title":"Gerenciar subitem da NCM","id":"ncmSubitemForm","componentType":"form","guards":"isAuthorized","elements":[{"type":"autocomplete","label":"Item","name":"ncmItemId","dataType":"uniqueidentifier","isRequired":true,"optionsApi":{"relatedEntity":"NcmItems","paramType":"query","endpoint":"/ncm-items","labelField":["code","description"],"valueField":"_id","paramsToFilter":["code","description"]}},{"type":"input","dataType":"nvarchar","label":"Descrição","name":"description","isRequired":true},{"type":"input","dataType":"nvarchar","label":"Código","name":"code","isUnique":true}],"contracts":[{"id":"ncmSubitems","endpoint":"/ncm-subitems","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmSubitems","fields":[]}}]},{"componentType":"list","id":"ncmSectionList","title":"Lista de seções da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-sections","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-section-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-section-list"},"request":{"endpoint":"/ncm-sections","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]},{"componentType":"list","id":"ncmPositionList","title":"Lista de posições da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-positions","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"},{"property":"ncmSection.code","type":"title","label":"Código da seção","dataType":"nvarchar"},{"property":"ncmSection.description","type":"subtitle","label":"Descrição da seção","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-position-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-position-list"},"request":{"endpoint":"/ncm-positions","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]},{"componentType":"list","id":"ncmSubpositionList","title":"Lista de subposições da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-subpositions","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"},{"property":"ncmPosition.code","type":"title","label":"Código da posição","dataType":"nvarchar"},{"property":"ncmPosition.description","type":"subtitle","label":"Descrição da posição","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-subposition-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-subposition-list"},"request":{"endpoint":"/ncm-subpositions","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]},{"componentType":"list","id":"ncmItemList","title":"Lista de itens da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-items","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"},{"property":"ncmSubposition.code","type":"title","label":"Código da subposição","dataType":"nvarchar"},{"property":"ncmSubposition.description","type":"subtitle","label":"Descrição da subposição","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-subposition-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-subposition-list"},"request":{"endpoint":"/ncm-subpositions","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]},{"componentType":"list","id":"ncmSubitemList","title":"Lista de subitens da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-subitems","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"},{"property":"ncmItem.code","type":"title","label":"Código do item","dataType":"nvarchar"},{"property":"ncmItem.description","type":"subtitle","label":"Descrição do item","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-subposition-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-subposition-list"},"request":{"endpoint":"/ncm-subpositions","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]}]}]}
1
+ {"title":"Fundamento","id":"fundamento","flow":"backofficeByInvitationAndPermissionsByComponent","description":"Backoffice para criação de dados que serão utilizados em diversas outras soluções da Cooperativa Kunlatek, como NCM, CBO ou memso produtos, localizações, animais. Podendo também ser utilizado como um SaaS para quem quiser utilizar estes dados.","frontend":{"framework":"react","uiKit":"flowbite"},"backend":{"framework":"nest","jwtSecret":"Kunl4t3kw1llN3v3rD13M0th3rFudg3r","database":{"provider":"mongodb","connectionString":"mongodb+srv://kunlatek:Kunl4t3kw1llN3v3rD132025@cluster0.b0pfr.mongodb.net/fundamento-v1","credentials":{"databaseName":"fundamento-v1","username":"kunlatek","password":"Kunl4t3kw1llN3v3rD132025","host":"cluster0.b0pfr.mongodb.net"}},"storage":{"provider":"gcs","credentials":{"clientEmail":"rapida-personal@rapida-personal-projects.iam.gserviceaccount.com","privateKey":"-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDCDEQRUfKKxYUj\nVorX+aiEHhPRrrcNHVw40qq517wP7IgIp2UlA5uf0rV2cdn1njA9RMQxp6l7Qt+0\nBZg1JZM8l9Uv1SckRlkKST4k2B3MDOEl1riAPxIE/jBCUT9l2DCbir0Nu+CqGhGD\nUXOMpF0XWYL9GIBRo8Paf//yU0b86VBDfQGgnFkMKFq3bVDkPd8hQTBgTFT5F1Rh\nDcoUpAp/n3SYxkAK1V7Je+fnChF1DQPj8Nd5CLm4DsCM1B+HtaegsaE1ulXwhi1J\nlIFFGv49g0f2qOs3hytTPt0d8UpxFd9/Oq0tmcjuzK4bYzJdVZZPf+4xflHz+6R8\n2o7grTeDAgMBAAECggEABHdsz6s/tnMCdARHcN41w0i/8wke/IXK/CHZPSrakNFE\ndlKIEPiKyfx7Ic1QE4e/G4HsNCpkS8qHxKiGTt7dCz2BcjbpTjvyS7rQ298/nFVF\nj23oVEdfXk8NhFFDcNAvmjzwyhKjgrbT5V5oFvonjGSKj9HTDk4DMZHVrdm93g9k\nZ9XJBVeLh14/rkZLMDZ9DVjUMiQ6xElMH3IQD4MwEcul9eqM8bs2APgZlzzfO76m\nAuq20l4JqOcJJl8wzC7z12eNDNJrQNh2sHsT9zV5PabfNoQhnU6fDvKr0PG0PGRR\nS5PTDeiMY47rJVPgwxthSke3abtdgA9SNie8OqZl6QKBgQD+yFT+ndFYKvHg2WNi\ns0jK0QqFQB84LQtOX2YhQ0137mtSv0z7wO90e28dfUqsjax4DxPMp+AW0cC3SBEv\n2T8/rJrgzGucPt4Jzml5HYl2NgCkNAtHIJ1vtXJdX5d3WmYhH7cUTPmV6nMS8OlF\nheSyfudCiOo89phQf0pI6lhQKwKBgQDC+aOU2cxMVA5VH0txX0G9tPQjBvzY09ev\nVLGrxlmdAcQVXYCWdoESEfTv3E4JPklAz5B2/XnALxM5ewJgjoP6buOCJrQcgJNC\nSsG9Ll3zF4c+opFmaYTzcAY9HWHa4Pc+GAxFrrcPGzVBLjSrl7FPdykkPiBNxNJa\nnOzzrL4yCQKBgQC7b/pHjycx6/YiawuY0zjcLMnGmhPdqhXFRJ3IHtFhR/+g0qf6\nFkiTszNdyI0lQNz/PmhciaxsXUegDt7GCtdjKsKOWxVXz1BeeoJR3g8A7l2ub7NU\nUoRAaIaIdwjhf5nfCIwR3UdIqUCbUKzsvsIvJvlPk5Zv3yLTJbIqzmzGHQKBgBiQ\nnUSGwE+pk3i0DaxGBSFiqBO1sKuc3SLQ9+WdgvLeIxdSBX5vhcmCC6sgxZAykcYh\noKDtRKarB7AJSH5j1kr6J53hRHYG2QbUJl6wddPH1hlVIB6YEtEc/xw6FHcgOuZO\n31T0M0oq8mW47Zfk78kESWGwlh9WOe6CsPPugrQJAoGBAP3o8DqH1Pb7vlowsz78\n8fsCuydEJgsPSwHHqBveeUHBQLGSiGIIKRXWR1a13mWXQTqQkROZCwvVCMX6FHZZ\nKv3rzgsTkaaoqM0RVLcQSSDoyu2yP/JJv+VYsvMf2S3dUkDAeYDZFizPeFF42t92\n+MSId41OkBvJ/JvqsBWlWFYK\n-----END PRIVATE KEY-----\n","projectId":"rapida-personal-projects"},"publicBucketName":"rapida-public-files","privateBucketName":"rapida-private-files"},"logging":{"discordWebhookUrl":"https://discord.com/api/webhooks/1370095507959054429/Ay8pIM-sinbjsLMAAWGrRDFT-oyBD3xu7yB2Ke0Bx6RxpKN882taB4_tkD2xsdk8MirZ"},"email":{"smtpUser":"noreply.rapida@gmail.com","smtpPass":"ekgwxlazvjjllfxf","smtpFrom":"noreply@kunlatek.com"},"baseUrl":"http://localhost:5173"},"modules":[{"id":"testModule","title":"Test","icon":"test","components":[{"title":"Gerenciar teste","id":"testForm","componentType":"form","elements":[{"type":"autocomplete","dataType":"uniqueidentifier","label":"Seção do NCM","name":"ncmSectionId","optionsApi":{"relatedEntity":"NcmSection","labelField":["code","description"],"valueField":"_id","paramsToFilter":["description","code"],"paramType":"query","endpoint":"/ncm-sections"},"elementsToClearOnValueChange":["ncmPositionId","ncmSubPositionId"]},{"type":"autocomplete","dataType":"uniqueidentifier","label":"Posição do NCM","name":"ncmPositionId","optionsApi":{"relatedEntity":"NcmPosition","labelField":["code","description"],"valueField":"_id","paramsToFilter":["description","code"],"paramType":"query","endpoint":"/ncm-positions","filtersFromOtherFormFields":[{"formFieldName":"ncmSectionId","filterPropertyName":"ncmSectionId"}]},"elementsToClearOnValueChange":["ncmSubPositionId"]},{"type":"autocomplete","dataType":"uniqueidentifier","label":"Subposição do NCM","name":"ncmSubPositionId","optionsApi":{"relatedEntity":"NcmSubPosition","labelField":["code","description"],"valueField":"_id","paramsToFilter":["description","code"],"paramType":"query","endpoint":"/ncm-subpositions","filtersFromOtherFormFields":[{"formFieldName":"ncmPositionId","filterPropertyName":"ncmPositionId"}]}}],"contracts":[{"id":"tests","endpoint":"/tests","actions":["create","get","getById","update","softDelete"],"request":{"entity":"Tests","fields":[]}}]},{"title":"Listar testes","id":"testList","componentType":"list","dataSource":{"endpoint":"/tests","paramType":"query"},"listItems":[{"label":"Seção do NCM","property":"ncmSection.description","dataType":"nvarchar","type":"title"},{"label":"Posição do NCM","property":"ncmPosition.description","dataType":"nvarchar","type":"subtitle"},{"label":"Subposição do NCM","property":"ncmSubPosition.description","dataType":"nvarchar","type":"subtitle"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/test-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/test-list"},"request":{"endpoint":"/tests","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir item","message":"Deseja realmente excluir esse item?"}}}}],"contracts":[]}]},{"id":"ncmModule","title":"NCM","icon":"inventory_2","components":[{"title":"Gerenciar da NCM","id":"ncmSectionForm","componentType":"form","elements":[{"label":"Descrição","name":"description","type":"input","dataType":"nvarchar","isRequired":true},{"label":"Código","name":"code","type":"input","dataType":"nvarchar","isRequired":true,"isUnique":true}],"contracts":[{"id":"ncmSections","endpoint":"/ncm-sections","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmSections","fields":[]}}]},{"title":"Gerenciar da NCM","id":"ncmPositionForm","componentType":"form","elements":[{"type":"autocomplete","label":"Seção","name":"ncmSectionId","dataType":"uniqueidentifier","isRequired":true,"optionsApi":{"relatedEntity":"NcmSections","paramType":"query","endpoint":"/ncm-sections","labelField":["description"],"valueField":"_id","paramsToFilter":["description"]}},{"label":"Descrição","name":"description","type":"input","dataType":"nvarchar","isRequired":true},{"label":"Código","name":"code","type":"input","dataType":"nvarchar","isRequired":true,"isUnique":true}],"contracts":[{"id":"ncmPositions","endpoint":"/ncm-positions","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmPositions","fields":[]}}]},{"title":"Gerenciar subposição da NCM","id":"ncmSubpositionForm","componentType":"form","guards":"isAuthorized","elements":[{"type":"autocomplete","label":"Posição","name":"ncmPositionId","dataType":"uniqueidentifier","isRequired":true,"optionsApi":{"relatedEntity":"NcmPositions","paramType":"query","endpoint":"/ncm-positions","labelField":["code","description"],"valueField":"_id","paramsToFilter":["code","description"]}},{"type":"input","dataType":"nvarchar","label":"Descrição","name":"description","isRequired":true},{"type":"input","dataType":"nvarchar","label":"Código","name":"code","isUnique":true}],"contracts":[{"id":"ncmSubpositions","endpoint":"/ncm-subpositions","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmSubpositions","fields":[]}}]},{"title":"Gerenciar item da NCM","id":"ncmItemForm","componentType":"form","guards":"isAuthorized","elements":[{"type":"autocomplete","label":"Subposição","name":"ncmSubpositionId","dataType":"uniqueidentifier","isRequired":true,"optionsApi":{"relatedEntity":"NcmSubpositions","paramType":"query","endpoint":"/ncm-subpositions","labelField":["code","description"],"valueField":"_id","paramsToFilter":["code","description"]}},{"type":"input","dataType":"nvarchar","label":"Descrição","name":"description","isRequired":true},{"type":"input","dataType":"nvarchar","label":"Código","name":"code","isUnique":true}],"contracts":[{"id":"ncmItems","endpoint":"/ncm-items","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmItems","fields":[]}}]},{"title":"Gerenciar subitem da NCM","id":"ncmSubitemForm","componentType":"form","guards":"isAuthorized","elements":[{"type":"autocomplete","label":"Item","name":"ncmItemId","dataType":"uniqueidentifier","isRequired":true,"optionsApi":{"relatedEntity":"NcmItems","paramType":"query","endpoint":"/ncm-items","labelField":["code","description"],"valueField":"_id","paramsToFilter":["code","description"]}},{"type":"input","dataType":"nvarchar","label":"Descrição","name":"description","isRequired":true},{"type":"input","dataType":"nvarchar","label":"Código","name":"code","isUnique":true}],"contracts":[{"id":"ncmSubitems","endpoint":"/ncm-subitems","actions":["create","update","get","getById","softDelete"],"request":{"entity":"NcmSubitems","fields":[]}}]},{"componentType":"list","id":"ncmSectionList","title":"Lista de seções da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-sections","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-section-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-section-list"},"request":{"endpoint":"/ncm-sections","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]},{"componentType":"list","id":"ncmPositionList","title":"Lista de posições da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-positions","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"},{"property":"ncmSection.code","type":"title","label":"Código da seção","dataType":"nvarchar"},{"property":"ncmSection.description","type":"subtitle","label":"Descrição da seção","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-position-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-position-list"},"request":{"endpoint":"/ncm-positions","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]},{"componentType":"list","id":"ncmSubpositionList","title":"Lista de subposições da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-subpositions","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"},{"property":"ncmPosition.code","type":"title","label":"Código da posição","dataType":"nvarchar"},{"property":"ncmPosition.description","type":"subtitle","label":"Descrição da posição","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-subposition-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-subposition-list"},"request":{"endpoint":"/ncm-subpositions","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]},{"componentType":"list","id":"ncmItemList","title":"Lista de itens da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-items","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"},{"property":"ncmSubposition.code","type":"title","label":"Código da subposição","dataType":"nvarchar"},{"property":"ncmSubposition.description","type":"subtitle","label":"Descrição da subposição","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-subposition-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-subposition-list"},"request":{"endpoint":"/ncm-subpositions","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]},{"componentType":"list","id":"ncmSubitemList","title":"Lista de subitens da NCM","guards":["isAuthorized"],"dataSource":{"endpoint":"/ncm-subitems","paramType":"query","hasAuthentication":true},"listItems":[{"property":"code","type":"title","label":"Código","dataType":"nvarchar"},{"property":"description","type":"subtitle","label":"Descrição","dataType":"nvarchar"},{"property":"ncmItem.code","type":"title","label":"Código do item","dataType":"nvarchar"},{"property":"ncmItem.description","type":"subtitle","label":"Descrição do item","dataType":"nvarchar"}],"callsToActionMenu":[{"label":"Editar","icon":"pencil","action":{"link":{"endpoint":"/ncm-subposition-form","propertiesAsQueryParam":["id"]}}},{"label":"Excluir","icon":"trash","action":{"link":{"endpoint":"/ncm-subposition-list"},"request":{"endpoint":"/ncm-subpositions","verb":"softDelete","propertiesAsPathParam":["id"],"dialog":{"title":"Excluir conteúdo","message":"Deseja realmente excluir esse conteúdo?"}}}}],"contracts":[]}]}]}
@@ -31,6 +31,15 @@ export interface IForm {
31
31
  businessRules?: IBusinessRule[];
32
32
  userStory?: string;
33
33
  }[];
34
+ publicContracts: {
35
+ id: string;
36
+ endpoint: string;
37
+ actions: ("create" | "get" | "getById" | "update" | "softDelete" | "hardDelete" | "clone" | "sendEmail")[];
38
+ request?: IContractRequest;
39
+ conditions?: IFormCondition;
40
+ businessRules?: IBusinessRule[];
41
+ userStory?: string;
42
+ }[];
34
43
  flowChart?: IFlowChart;
35
44
  }
36
45
 
@@ -90,4 +90,13 @@ export interface IList {
90
90
  businessRules?: IBusinessRule[];
91
91
  userStory?: string;
92
92
  }[];
93
+ publicContracts: {
94
+ id: string;
95
+ endpoint: string;
96
+ actions: ("create" | "get" | "getById" | "update" | "softDelete" | "hardDelete" | "clone" | "sendEmail")[];
97
+ request?: IContractRequest;
98
+ conditions?: IFormCondition;
99
+ businessRules?: IBusinessRule[];
100
+ userStory?: string;
101
+ }[];
93
102
  }
@@ -17,7 +17,10 @@
17
17
  },
18
18
  "guards": {
19
19
  "type": "string",
20
- "enum": ["isAuthenticated", "isAuthorized"]
20
+ "enum": [
21
+ "isAuthenticated",
22
+ "isAuthorized"
23
+ ]
21
24
  },
22
25
  "businessRules": {
23
26
  "$ref": "business-rules.ref.json"
@@ -43,7 +46,16 @@
43
46
  "type": "array",
44
47
  "items": {
45
48
  "type": "string",
46
- "enum": ["create", "get", "getById", "update", "softDelete", "hardDelete", "clone", "sendEmail"]
49
+ "enum": [
50
+ "create",
51
+ "get",
52
+ "getById",
53
+ "update",
54
+ "softDelete",
55
+ "hardDelete",
56
+ "clone",
57
+ "sendEmail"
58
+ ]
47
59
  }
48
60
  },
49
61
  "request": {
@@ -90,7 +102,11 @@
90
102
  },
91
103
  "relationship": {
92
104
  "type": "string",
93
- "enum": ["one-to-one", "one-to-many", "many-to-many"]
105
+ "enum": [
106
+ "one-to-one",
107
+ "one-to-many",
108
+ "many-to-many"
109
+ ]
94
110
  },
95
111
  "fields": {
96
112
  "type": "array",
@@ -104,7 +120,10 @@
104
120
  "$ref": "types-datatype.ref.json"
105
121
  }
106
122
  },
107
- "required": ["name", "dataType"]
123
+ "required": [
124
+ "name",
125
+ "dataType"
126
+ ]
108
127
  }
109
128
  },
110
129
  "isHidden": {
@@ -169,7 +188,10 @@
169
188
  "$ref": "business-rules.ref.json"
170
189
  }
171
190
  },
172
- "required": ["name", "dataType"]
191
+ "required": [
192
+ "name",
193
+ "dataType"
194
+ ]
173
195
  }
174
196
  },
175
197
  "relatedEntity": {
@@ -196,7 +218,10 @@
196
218
  }
197
219
  }
198
220
  },
199
- "required": ["fields", "contractId"]
221
+ "required": [
222
+ "fields",
223
+ "contractId"
224
+ ]
200
225
  }
201
226
  },
202
227
  "required": [
@@ -223,7 +248,10 @@
223
248
  }
224
249
  }
225
250
  },
226
- "required": ["entity", "fields"]
251
+ "required": [
252
+ "entity",
253
+ "fields"
254
+ ]
227
255
  },
228
256
  "conditions": {
229
257
  "$ref": "condition.ref.json"
@@ -235,7 +263,250 @@
235
263
  "type": "string"
236
264
  }
237
265
  },
238
- "required": ["id", "endpoint", "actions"]
266
+ "required": [
267
+ "id",
268
+ "endpoint",
269
+ "actions"
270
+ ]
271
+ }
272
+ },
273
+ "publicContracts": {
274
+ "type": "array",
275
+ "items": {
276
+ "type": "object",
277
+ "properties": {
278
+ "id": {
279
+ "type": "string"
280
+ },
281
+ "endpoint": {
282
+ "type": "string"
283
+ },
284
+ "actions": {
285
+ "type": "array",
286
+ "items": {
287
+ "type": "string",
288
+ "enum": [
289
+ "create",
290
+ "get",
291
+ "getById",
292
+ "update",
293
+ "softDelete",
294
+ "hardDelete",
295
+ "clone",
296
+ "sendEmail"
297
+ ]
298
+ }
299
+ },
300
+ "request": {
301
+ "type": "object",
302
+ "properties": {
303
+ "entity": {
304
+ "type": "string"
305
+ },
306
+ "description": {
307
+ "type": "string"
308
+ },
309
+ "fields": {
310
+ "type": "array",
311
+ "items": {
312
+ "type": "object",
313
+ "properties": {
314
+ "name": {
315
+ "type": "string"
316
+ },
317
+ "dataType": {
318
+ "$ref": "types-datatype.ref.json"
319
+ },
320
+ "isRequired": {
321
+ "type": "boolean"
322
+ },
323
+ "requiredOneOf": {
324
+ "type": "array",
325
+ "items": {
326
+ "type": "string"
327
+ }
328
+ },
329
+ "isHidden": {
330
+ "type": "boolean",
331
+ "description": "If true, the attribute will not be exposed in the API."
332
+ },
333
+ "foreignKey": {
334
+ "type": "object",
335
+ "properties": {
336
+ "entity": {
337
+ "type": "string"
338
+ },
339
+ "connectionAttribute": {
340
+ "type": "string"
341
+ },
342
+ "relationship": {
343
+ "type": "string",
344
+ "enum": [
345
+ "one-to-one",
346
+ "one-to-many",
347
+ "many-to-many"
348
+ ]
349
+ },
350
+ "fields": {
351
+ "type": "array",
352
+ "items": {
353
+ "type": "object",
354
+ "properties": {
355
+ "name": {
356
+ "type": "string"
357
+ },
358
+ "dataType": {
359
+ "$ref": "types-datatype.ref.json"
360
+ }
361
+ },
362
+ "required": [
363
+ "name",
364
+ "dataType"
365
+ ]
366
+ }
367
+ },
368
+ "isHidden": {
369
+ "type": "boolean",
370
+ "description": "If true, the connection attribute will not be exposed in the API."
371
+ }
372
+ },
373
+ "required": [
374
+ "entity",
375
+ "connectionAttribute",
376
+ "relationship"
377
+ ]
378
+ },
379
+ "isPrimaryKey": {
380
+ "type": "boolean"
381
+ },
382
+ "minSize": {
383
+ "type": "number"
384
+ },
385
+ "maxSize": {
386
+ "type": "number"
387
+ },
388
+ "enum": {
389
+ "type": "array",
390
+ "items": {
391
+ "oneOf": [
392
+ {
393
+ "type": "string"
394
+ },
395
+ {
396
+ "type": "number"
397
+ }
398
+ ]
399
+ }
400
+ },
401
+ "isUnique": {
402
+ "type": "boolean"
403
+ },
404
+ "uniqueComposedFields": {
405
+ "type": "array",
406
+ "items": {
407
+ "type": "string"
408
+ }
409
+ },
410
+ "actionsExceptions": {
411
+ "type": "array",
412
+ "items": {
413
+ "type": "string",
414
+ "enum": [
415
+ "create",
416
+ "get",
417
+ "getById",
418
+ "update",
419
+ "softDelete",
420
+ "hardDelete",
421
+ "clone",
422
+ "sendEmail"
423
+ ]
424
+ }
425
+ },
426
+ "businessRules": {
427
+ "$ref": "business-rules.ref.json"
428
+ }
429
+ },
430
+ "required": [
431
+ "name",
432
+ "dataType"
433
+ ]
434
+ }
435
+ },
436
+ "relatedEntity": {
437
+ "type": "object",
438
+ "properties": {
439
+ "entity": {
440
+ "type": "string",
441
+ "description": "An attribute called 'relatedEntity' will be created in the main entity to refer to an entity that will be related to the main one."
442
+ },
443
+ "connectionAttribute": {
444
+ "type": "string",
445
+ "description": "An attribute called 'relatedEntityId' will be created in the main entity to set the value of the id over 'relatedEntity' to make the connection."
446
+ },
447
+ "fieldsFromEntity": {
448
+ "type": "array",
449
+ "items": {
450
+ "type": "object",
451
+ "properties": {
452
+ "fields": {
453
+ "$ref": "form.ref.json"
454
+ },
455
+ "contractId": {
456
+ "type": "string"
457
+ }
458
+ }
459
+ },
460
+ "required": [
461
+ "fields",
462
+ "contractId"
463
+ ]
464
+ }
465
+ },
466
+ "required": [
467
+ "entity",
468
+ "connectionAttribute",
469
+ "fieldsFromEntity"
470
+ ]
471
+ },
472
+ "uniqueConstraints": {
473
+ "type": "array",
474
+ "items": {
475
+ "type": "object",
476
+ "properties": {
477
+ "name": {
478
+ "type": "string"
479
+ },
480
+ "fields": {
481
+ "type": "array",
482
+ "items": {
483
+ "type": "string"
484
+ }
485
+ }
486
+ }
487
+ }
488
+ }
489
+ },
490
+ "required": [
491
+ "entity",
492
+ "fields"
493
+ ]
494
+ },
495
+ "conditions": {
496
+ "$ref": "condition.ref.json"
497
+ },
498
+ "businessRules": {
499
+ "$ref": "business-rules.ref.json"
500
+ },
501
+ "userStory": {
502
+ "type": "string"
503
+ }
504
+ },
505
+ "required": [
506
+ "id",
507
+ "endpoint",
508
+ "actions"
509
+ ]
239
510
  }
240
511
  },
241
512
  "flowChart": {
@@ -246,7 +517,11 @@
246
517
  "properties": {
247
518
  "status": {
248
519
  "type": "string",
249
- "enum": ["toDo", "inProgress", "done"]
520
+ "enum": [
521
+ "toDo",
522
+ "inProgress",
523
+ "done"
524
+ ]
250
525
  },
251
526
  "assignesIds": {
252
527
  "type": "array",
@@ -272,15 +547,28 @@
272
547
  },
273
548
  "priority": {
274
549
  "type": "string",
275
- "enum": ["low", "medium", "high", "urgent"]
550
+ "enum": [
551
+ "low",
552
+ "medium",
553
+ "high",
554
+ "urgent"
555
+ ]
276
556
  },
277
557
  "storyPoints": {
278
558
  "type": "number",
279
559
  "minimum": 0
280
560
  }
281
561
  },
282
- "required": ["status"]
562
+ "required": [
563
+ "status"
564
+ ]
283
565
  }
284
566
  },
285
- "required": ["componentType", "id", "title", "elements", "contracts"]
286
- }
567
+ "required": [
568
+ "componentType",
569
+ "id",
570
+ "title",
571
+ "elements",
572
+ "contracts"
573
+ ]
574
+ }
@@ -53,7 +53,7 @@
53
53
  "video",
54
54
  "image",
55
55
  "images",
56
- "icon",
56
+ "icon",
57
57
  "badge"
58
58
  ]
59
59
  },
@@ -88,7 +88,9 @@
88
88
  "description": "if true then '/user/<email>'"
89
89
  }
90
90
  },
91
- "required": ["link"]
91
+ "required": [
92
+ "link"
93
+ ]
92
94
  },
93
95
  "conditions": {
94
96
  "$ref": "condition.ref.json"
@@ -124,7 +126,9 @@
124
126
  "description": "if, for example, ['_id', 'email'], then '/user/<_id>/<email>'"
125
127
  }
126
128
  },
127
- "required": ["link"]
129
+ "required": [
130
+ "link"
131
+ ]
128
132
  },
129
133
  "callsToActionMenu": {
130
134
  "type": "array",
@@ -164,7 +168,9 @@
164
168
  "description": "if, for example, ['_id', 'email'], then '/user/<_id>/<email>'"
165
169
  }
166
170
  },
167
- "required": ["endpoint"]
171
+ "required": [
172
+ "endpoint"
173
+ ]
168
174
  },
169
175
  "request": {
170
176
  "type": "object",
@@ -189,7 +195,12 @@
189
195
  },
190
196
  "verb": {
191
197
  "type": "string",
192
- "enum": ["get", "post", "put", "softDelete"]
198
+ "enum": [
199
+ "get",
200
+ "post",
201
+ "put",
202
+ "softDelete"
203
+ ]
193
204
  },
194
205
  "dialog": {
195
206
  "type": "object",
@@ -201,13 +212,21 @@
201
212
  "type": "string"
202
213
  }
203
214
  },
204
- "required": ["title", "message"]
215
+ "required": [
216
+ "title",
217
+ "message"
218
+ ]
205
219
  }
206
220
  },
207
- "required": ["endpoint", "verb"]
221
+ "required": [
222
+ "endpoint",
223
+ "verb"
224
+ ]
208
225
  }
209
226
  },
210
- "required": ["link"]
227
+ "required": [
228
+ "link"
229
+ ]
211
230
  },
212
231
  "businessRules": {
213
232
  "$ref": "business-rules.ref.json"
@@ -219,7 +238,11 @@
219
238
  "type": "string"
220
239
  }
221
240
  },
222
- "required": ["icon", "label", "action"]
241
+ "required": [
242
+ "icon",
243
+ "label",
244
+ "action"
245
+ ]
223
246
  }
224
247
  },
225
248
  "listActions": {
@@ -299,7 +322,11 @@
299
322
  },
300
323
  "relationship": {
301
324
  "type": "string",
302
- "enum": ["one-to-one", "one-to-many", "many-to-many"]
325
+ "enum": [
326
+ "one-to-one",
327
+ "one-to-many",
328
+ "many-to-many"
329
+ ]
303
330
  },
304
331
  "fields": {
305
332
  "type": "array",
@@ -313,7 +340,10 @@
313
340
  "$ref": "types-datatype.ref.json"
314
341
  }
315
342
  },
316
- "required": ["name", "dataType"]
343
+ "required": [
344
+ "name",
345
+ "dataType"
346
+ ]
317
347
  }
318
348
  },
319
349
  "isHidden": {
@@ -375,7 +405,10 @@
375
405
  }
376
406
  }
377
407
  },
378
- "required": ["name", "dataType"]
408
+ "required": [
409
+ "name",
410
+ "dataType"
411
+ ]
379
412
  }
380
413
  },
381
414
  "relatedEntity": {
@@ -401,8 +434,250 @@
401
434
  "type": "string"
402
435
  }
403
436
  },
404
- "required": ["fields", "contractId"]
437
+ "required": [
438
+ "fields",
439
+ "contractId"
440
+ ]
441
+ }
442
+ }
443
+ },
444
+ "required": [
445
+ "entity",
446
+ "connectionAttribute",
447
+ "fieldsFromEntity"
448
+ ]
449
+ },
450
+ "uniqueConstraints": {
451
+ "type": "array",
452
+ "items": {
453
+ "type": "object",
454
+ "properties": {
455
+ "name": {
456
+ "type": "string"
457
+ },
458
+ "fields": {
459
+ "type": "array",
460
+ "items": {
461
+ "type": "string"
462
+ }
463
+ }
464
+ }
465
+ }
466
+ }
467
+ },
468
+ "required": [
469
+ "entity",
470
+ "fields"
471
+ ]
472
+ },
473
+ "conditions": {
474
+ "$ref": "condition.ref.json"
475
+ },
476
+ "businessRules": {
477
+ "$ref": "business-rules.ref.json"
478
+ },
479
+ "userStory": {
480
+ "type": "string"
481
+ }
482
+ },
483
+ "required": [
484
+ "id",
485
+ "endpoint",
486
+ "actions"
487
+ ]
488
+ }
489
+ },
490
+ "publicContracts": {
491
+ "type": "array",
492
+ "items": {
493
+ "type": "object",
494
+ "properties": {
495
+ "id": {
496
+ "type": "string"
497
+ },
498
+ "endpoint": {
499
+ "type": "string"
500
+ },
501
+ "actions": {
502
+ "type": "array",
503
+ "items": {
504
+ "type": "string",
505
+ "enum": [
506
+ "create",
507
+ "get",
508
+ "getById",
509
+ "update",
510
+ "softDelete",
511
+ "hardDelete",
512
+ "clone",
513
+ "sendEmail"
514
+ ]
515
+ }
516
+ },
517
+ "request": {
518
+ "type": "object",
519
+ "properties": {
520
+ "entity": {
521
+ "type": "string"
522
+ },
523
+ "description": {
524
+ "type": "string"
525
+ },
526
+ "fields": {
527
+ "type": "array",
528
+ "items": {
529
+ "type": "object",
530
+ "properties": {
531
+ "name": {
532
+ "type": "string"
533
+ },
534
+ "dataType": {
535
+ "$ref": "types-datatype.ref.json"
536
+ },
537
+ "isRequired": {
538
+ "type": "boolean"
539
+ },
540
+ "requiredOneOf": {
541
+ "type": "array",
542
+ "items": {
543
+ "type": "string"
544
+ }
545
+ },
546
+ "isHidden": {
547
+ "type": "boolean",
548
+ "description": "If true, the attribute will not be exposed in the API."
549
+ },
550
+ "foreignKey": {
551
+ "type": "object",
552
+ "properties": {
553
+ "entity": {
554
+ "type": "string"
555
+ },
556
+ "connectionAttribute": {
557
+ "type": "string"
558
+ },
559
+ "relationship": {
560
+ "type": "string",
561
+ "enum": [
562
+ "one-to-one",
563
+ "one-to-many",
564
+ "many-to-many"
565
+ ]
566
+ },
567
+ "fields": {
568
+ "type": "array",
569
+ "items": {
570
+ "type": "object",
571
+ "properties": {
572
+ "name": {
573
+ "type": "string"
574
+ },
575
+ "dataType": {
576
+ "$ref": "types-datatype.ref.json"
577
+ }
578
+ },
579
+ "required": [
580
+ "name",
581
+ "dataType"
582
+ ]
583
+ }
584
+ },
585
+ "isHidden": {
586
+ "type": "boolean",
587
+ "description": "If true, the connection attribute will not be exposed in the API."
588
+ }
589
+ },
590
+ "required": [
591
+ "entity",
592
+ "connectionAttribute",
593
+ "relationship"
594
+ ]
595
+ },
596
+ "isPrimaryKey": {
597
+ "type": "boolean"
598
+ },
599
+ "minSize": {
600
+ "type": "number"
601
+ },
602
+ "maxSize": {
603
+ "type": "number"
604
+ },
605
+ "enum": {
606
+ "type": "array",
607
+ "items": {
608
+ "oneOf": [
609
+ {
610
+ "type": "string"
611
+ },
612
+ {
613
+ "type": "number"
614
+ }
615
+ ]
616
+ }
617
+ },
618
+ "isUnique": {
619
+ "type": "boolean"
620
+ },
621
+ "uniqueComposedFields": {
622
+ "type": "array",
623
+ "items": {
624
+ "type": "string"
625
+ }
626
+ },
627
+ "actionsExceptions": {
628
+ "type": "array",
629
+ "items": {
630
+ "type": "string",
631
+ "enum": [
632
+ "create",
633
+ "get",
634
+ "getById",
635
+ "update",
636
+ "softDelete",
637
+ "hardDelete",
638
+ "clone",
639
+ "sendEmail"
640
+ ]
641
+ }
642
+ },
643
+ "businessRules": {
644
+ "$ref": "business-rules.ref.json"
405
645
  }
646
+ },
647
+ "required": [
648
+ "name",
649
+ "dataType"
650
+ ]
651
+ }
652
+ },
653
+ "relatedEntity": {
654
+ "type": "object",
655
+ "properties": {
656
+ "entity": {
657
+ "type": "string",
658
+ "description": "An attribute called 'relatedEntity' will be created in the main entity to refer to an entity that will be related to the main one."
659
+ },
660
+ "connectionAttribute": {
661
+ "type": "string",
662
+ "description": "An attribute called 'relatedEntityId' will be created in the main entity to set the value of the id over 'relatedEntity' to make the connection."
663
+ },
664
+ "fieldsFromEntity": {
665
+ "type": "array",
666
+ "items": {
667
+ "type": "object",
668
+ "properties": {
669
+ "fields": {
670
+ "$ref": "form.ref.json"
671
+ },
672
+ "contractId": {
673
+ "type": "string"
674
+ }
675
+ }
676
+ },
677
+ "required": [
678
+ "fields",
679
+ "contractId"
680
+ ]
406
681
  }
407
682
  },
408
683
  "required": [
@@ -429,7 +704,10 @@
429
704
  }
430
705
  }
431
706
  },
432
- "required": ["entity", "fields"]
707
+ "required": [
708
+ "entity",
709
+ "fields"
710
+ ]
433
711
  },
434
712
  "conditions": {
435
713
  "$ref": "condition.ref.json"
@@ -441,9 +719,19 @@
441
719
  "type": "string"
442
720
  }
443
721
  },
444
- "required": ["id", "endpoint", "actions"]
722
+ "required": [
723
+ "id",
724
+ "endpoint",
725
+ "actions"
726
+ ]
445
727
  }
446
728
  }
447
729
  },
448
- "required": ["componentType", "id", "title", "dataSource", "contracts"]
449
- }
730
+ "required": [
731
+ "componentType",
732
+ "id",
733
+ "title",
734
+ "dataSource",
735
+ "contracts"
736
+ ]
737
+ }