diff --git a/docsfera.json b/docsfera.json index 7e45f94..c6ab573 100644 --- a/docsfera.json +++ b/docsfera.json @@ -40,9 +40,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/sso/snowflake": { @@ -61,9 +59,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/refresh-access-token": { @@ -91,9 +87,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/change-password": { @@ -112,9 +106,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/reset-password": { @@ -133,9 +125,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/verify-reset-password-code": { @@ -154,9 +144,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/confirm-reset-password": { @@ -175,9 +163,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/enable-totp": { @@ -196,9 +182,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/disable-totp": { @@ -217,9 +201,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/dismiss-totp": { @@ -238,9 +220,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/verify-totp": { @@ -259,9 +239,7 @@ } } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/auth/verify-access-token": { @@ -273,9 +251,7 @@ "description": "" } }, - "tags": [ - "Auth" - ] + "tags": ["Auth"] } }, "/connectors": { @@ -304,9 +280,7 @@ } } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -354,9 +328,7 @@ "description": "" } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -383,9 +355,7 @@ } } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -402,9 +372,7 @@ "description": "" } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -428,9 +396,7 @@ } } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -464,9 +430,7 @@ "description": "" } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -500,9 +464,7 @@ "description": "" } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -534,9 +496,7 @@ "description": "" } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -570,9 +530,7 @@ "description": "" } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -608,9 +566,7 @@ "description": "" } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -646,9 +602,7 @@ "description": "" } }, - "tags": [ - "connectors" - ], + "tags": ["connectors"], "security": [ { "bearer": [] @@ -666,10 +620,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -686,9 +637,7 @@ } } }, - "tags": [ - "Permissions" - ] + "tags": ["Permissions"] } }, "/terms-of-use/token": { @@ -716,9 +665,7 @@ } } }, - "tags": [ - "TermsOfUse" - ] + "tags": ["TermsOfUse"] } }, "/terms-of-use/accept": { @@ -737,9 +684,7 @@ } } }, - "tags": [ - "TermsOfUse" - ] + "tags": ["TermsOfUse"] } }, "/connections/connections-migration": { @@ -760,9 +705,7 @@ "description": "" } }, - "tags": [ - "connections" - ], + "tags": ["connections"], "security": [ { "bearer": [] @@ -796,9 +739,7 @@ } } }, - "tags": [ - "connections" - ], + "tags": ["connections"], "security": [ { "bearer": [] @@ -820,9 +761,7 @@ } } }, - "tags": [ - "connections" - ], + "tags": ["connections"], "security": [ { "bearer": [] @@ -873,9 +812,7 @@ } } }, - "tags": [ - "connections" - ], + "tags": ["connections"], "security": [ { "bearer": [] @@ -906,9 +843,7 @@ } } }, - "tags": [ - "connections" - ], + "tags": ["connections"], "security": [ { "bearer": [] @@ -930,9 +865,7 @@ } } }, - "tags": [ - "connections" - ], + "tags": ["connections"], "security": [ { "bearer": [] @@ -950,10 +883,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -970,9 +900,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] }, "post": { "operationId": "UsersController_createUser", @@ -983,10 +911,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1013,9 +938,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/hierarchies": { @@ -1028,10 +951,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1048,9 +968,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/departments": { @@ -1063,10 +981,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1083,9 +998,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/jobTitles": { @@ -1098,10 +1011,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1118,9 +1028,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/{id}": { @@ -1133,10 +1041,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1161,9 +1066,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] }, "delete": { "operationId": "UsersController_deleteUser", @@ -1174,10 +1077,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1202,9 +1102,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] }, "patch": { "operationId": "UsersController_updateUser", @@ -1215,10 +1113,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1253,9 +1148,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/batch": { @@ -1268,10 +1161,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1298,9 +1188,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/{id}/resend-invite": { @@ -1313,10 +1201,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1341,9 +1226,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/role": { @@ -1356,10 +1239,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1392,9 +1272,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] }, "put": { "operationId": "UsersController_assignRoleToUser", @@ -1405,10 +1283,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1435,9 +1310,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/roles": { @@ -1450,10 +1323,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1480,9 +1350,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/users/synchronize/{id}": { @@ -1495,10 +1363,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1533,9 +1398,7 @@ } } }, - "tags": [ - "Users" - ] + "tags": ["Users"] } }, "/roles": { @@ -1548,10 +1411,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1571,10 +1431,7 @@ "required": false, "in": "query", "schema": { - "enum": [ - "true", - "false" - ], + "enum": ["true", "false"], "type": "string" } } @@ -1591,9 +1448,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] }, "post": { "operationId": "RolesController_createRole", @@ -1604,10 +1459,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1634,9 +1486,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] } }, "/roles/permissions": { @@ -1649,10 +1499,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1679,9 +1526,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] }, "delete": { "operationId": "RolesController_revokePermissionsFromRole", @@ -1692,10 +1537,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1722,9 +1564,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] }, "patch": { "operationId": "RolesController_setRolePermissions", @@ -1735,10 +1575,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1765,9 +1602,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] } }, "/roles/users": { @@ -1780,10 +1615,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } } @@ -1810,9 +1642,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] } }, "/roles/{id}": { @@ -1825,10 +1655,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1853,9 +1680,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] }, "delete": { "operationId": "RolesController_deleteRole", @@ -1866,10 +1691,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1894,9 +1716,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] }, "patch": { "operationId": "RolesController_updateRole", @@ -1907,10 +1727,7 @@ "description": "Defaults to pt-br", "required": false, "schema": { - "enum": [ - "pt-br", - "en-us" - ], + "enum": ["pt-br", "en-us"], "type": "string" } }, @@ -1945,9 +1762,7 @@ } } }, - "tags": [ - "Roles" - ] + "tags": ["Roles"] } }, "/network-config": { @@ -1966,9 +1781,7 @@ } } }, - "tags": [ - "Network Config" - ] + "tags": ["Network Config"] }, "post": { "operationId": "NetworkConfigController_createNetworkConfigs", @@ -2005,9 +1818,7 @@ } } }, - "tags": [ - "Network Config" - ] + "tags": ["Network Config"] } }, "/network-config/{id}": { @@ -2035,9 +1846,7 @@ } } }, - "tags": [ - "Network Config" - ] + "tags": ["Network Config"] } }, "/network-config/{id}/details": { @@ -2065,9 +1874,7 @@ } } }, - "tags": [ - "Network Config" - ] + "tags": ["Network Config"] } }, "/connection-test/ping": { @@ -2096,9 +1903,7 @@ } } }, - "tags": [ - "Connection Test" - ] + "tags": ["Connection Test"] } }, "/connection-test/credentials": { @@ -2127,9 +1932,7 @@ } } }, - "tags": [ - "Connection Test" - ] + "tags": ["Connection Test"] } }, "/connection-test/schemas": { @@ -2158,9 +1961,7 @@ } } }, - "tags": [ - "Connection Test" - ] + "tags": ["Connection Test"] } }, "/connection-test/tables": { @@ -2189,9 +1990,7 @@ } } }, - "tags": [ - "Connection Test" - ] + "tags": ["Connection Test"] } }, "/connection-test/table-metadata": { @@ -2220,9 +2019,7 @@ } } }, - "tags": [ - "Connection Test" - ] + "tags": ["Connection Test"] } }, "/pipelines/start/{id}": { @@ -2241,9 +2038,7 @@ } } }, - "tags": [ - "Pipelines" - ] + "tags": ["Pipelines"] } }, "/pipelines/{id}/status": { @@ -2262,9 +2057,7 @@ } } }, - "tags": [ - "Pipelines" - ] + "tags": ["Pipelines"] } }, "/pipelinesV2": { @@ -2293,9 +2086,7 @@ } } }, - "tags": [ - "PipelinesV2" - ] + "tags": ["PipelinesV2"] }, "get": { "operationId": "PipelinesController_findAll", @@ -2305,9 +2096,7 @@ "description": "" } }, - "tags": [ - "PipelinesV2" - ] + "tags": ["PipelinesV2"] } }, "/pipelinesV2/{id}/config": { @@ -2319,9 +2108,7 @@ "description": "" } }, - "tags": [ - "PipelinesV2" - ] + "tags": ["PipelinesV2"] } }, "/pipelinesV2/{id}": { @@ -2340,9 +2127,7 @@ } } }, - "tags": [ - "PipelinesV2" - ] + "tags": ["PipelinesV2"] }, "put": { "operationId": "PipelinesController_update", @@ -2359,9 +2144,7 @@ } } }, - "tags": [ - "PipelinesV2" - ] + "tags": ["PipelinesV2"] }, "patch": { "operationId": "PipelinesController_updateByPatch", @@ -2378,9 +2161,7 @@ } } }, - "tags": [ - "PipelinesV2" - ] + "tags": ["PipelinesV2"] }, "delete": { "operationId": "PipelinesController_delete", @@ -2390,9 +2171,7 @@ "description": "" } }, - "tags": [ - "PipelinesV2" - ] + "tags": ["PipelinesV2"] } }, "/inputs/available-entities/{plugin}": { @@ -2420,9 +2199,7 @@ } } }, - "tags": [ - "Inputs" - ] + "tags": ["Inputs"] } }, "/inputs": { @@ -2454,9 +2231,7 @@ "description": "" } }, - "tags": [ - "Inputs" - ] + "tags": ["Inputs"] }, "get": { "operationId": "InputsController_findAll", @@ -2466,9 +2241,7 @@ "description": "" } }, - "tags": [ - "Inputs" - ] + "tags": ["Inputs"] } }, "/inputs/{id}": { @@ -2487,9 +2260,7 @@ } } }, - "tags": [ - "Inputs" - ] + "tags": ["Inputs"] }, "patch": { "operationId": "InputsController_update", @@ -2506,9 +2277,7 @@ } } }, - "tags": [ - "Inputs" - ] + "tags": ["Inputs"] }, "delete": { "operationId": "InputsController_delete", @@ -2525,9 +2294,7 @@ } } }, - "tags": [ - "Inputs" - ] + "tags": ["Inputs"] } }, "/transformations": { @@ -2539,9 +2306,7 @@ "description": "" } }, - "tags": [ - "Transformations" - ] + "tags": ["Transformations"] }, "get": { "operationId": "TransformationsController_findAll", @@ -2551,9 +2316,7 @@ "description": "" } }, - "tags": [ - "Transformations" - ] + "tags": ["Transformations"] } }, "/transformations/{id}": { @@ -2572,9 +2335,7 @@ } } }, - "tags": [ - "Transformations" - ] + "tags": ["Transformations"] }, "put": { "operationId": "TransformationsController_update", @@ -2600,9 +2361,7 @@ } } }, - "tags": [ - "Transformations" - ] + "tags": ["Transformations"] }, "delete": { "operationId": "TransformationsController_delete", @@ -2619,9 +2378,7 @@ } } }, - "tags": [ - "Transformations" - ] + "tags": ["Transformations"] } }, "/health": { @@ -2633,9 +2390,7 @@ "description": "" } }, - "tags": [ - "Health" - ] + "tags": ["Health"] } }, "/catalog": { @@ -2654,9 +2409,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] }, "post": { "operationId": "CatalogController_createDataAsset", @@ -2676,9 +2429,7 @@ "description": "" } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/tags": { @@ -2697,9 +2448,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/data-asset/{id}": { @@ -2711,9 +2460,7 @@ "description": "" } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] }, "put": { "operationId": "CatalogController_updateDataAsset", @@ -2740,9 +2487,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] }, "delete": { "operationId": "CatalogController_deleteDataAsset", @@ -2768,9 +2513,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/data-asset/rls/{id}": { @@ -2782,9 +2525,7 @@ "description": "" } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/data-asset/{id}/columns-metadata": { @@ -2803,9 +2544,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/data-asset/{id}/preview": { @@ -2824,9 +2563,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/data-asset/{id}/docs": { @@ -2845,13 +2582,20 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] }, "post": { "operationId": "CatalogController_manageDataAssetDocs", - "parameters": [], + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], "responses": { "201": { "description": "", @@ -2864,9 +2608,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/data-asset/{id}/manage-permissions": { @@ -2887,9 +2629,7 @@ "description": "" } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/data-asset/{id}/revoke-permissions": { @@ -2910,9 +2650,7 @@ "description": "" } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/catalog/data-asset/{id}/comment": { @@ -2950,9 +2688,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] }, "delete": { "operationId": "CatalogController_deleteComment", @@ -2988,9 +2724,7 @@ } } }, - "tags": [ - "Catalog" - ] + "tags": ["Catalog"] } }, "/oauth/hubspot": { @@ -3009,9 +2743,7 @@ } } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/hubspot/callback": { @@ -3023,9 +2755,7 @@ "description": "" } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/googleads": { @@ -3044,9 +2774,7 @@ } } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/googleads/callback": { @@ -3058,9 +2786,7 @@ "description": "" } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/google-sheets": { @@ -3079,9 +2805,7 @@ } } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/google-sheets/callback": { @@ -3093,9 +2817,7 @@ "description": "" } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/facebook": { @@ -3114,9 +2836,7 @@ } } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/facebook/callback": { @@ -3128,9 +2848,7 @@ "description": "" } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/mailchimp": { @@ -3149,9 +2867,7 @@ } } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/mailchimp/callback": { @@ -3163,9 +2879,7 @@ "description": "" } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/salesforce": { @@ -3184,9 +2898,7 @@ } } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/oauth/salesforce/callback": { @@ -3198,9 +2910,7 @@ "description": "" } }, - "tags": [ - "oauth" - ] + "tags": ["oauth"] } }, "/productboard/notes": { @@ -3229,9 +2939,7 @@ } } }, - "tags": [ - "Productboard" - ] + "tags": ["Productboard"] } }, "/trackEvent/{id}": { @@ -3276,10 +2984,7 @@ "type": "string" } }, - "required": [ - "username", - "password" - ] + "required": ["username", "password"] }, "AuthCustomer": { "type": "object", @@ -3300,12 +3005,7 @@ "type": "string" } }, - "required": [ - "modules", - "id", - "name", - "tier" - ] + "required": ["modules", "id", "name", "tier"] }, "AuthUser": { "type": "object", @@ -3323,12 +3023,7 @@ "type": "string" } }, - "required": [ - "id", - "name", - "username", - "createdAt" - ] + "required": ["id", "name", "username", "createdAt"] }, "AuthTokens": { "type": "object", @@ -3347,11 +3042,7 @@ "deprecated": true } }, - "required": [ - "accessToken", - "refreshToken", - "idToken" - ] + "required": ["accessToken", "refreshToken", "idToken"] }, "TermsOfUse": { "type": "object", @@ -3369,23 +3060,14 @@ "type": "string" } }, - "required": [ - "version", - "publicUrl", - "enforceDate", - "createdAt" - ] + "required": ["version", "publicUrl", "enforceDate", "createdAt"] }, "TermsOfUseStatus": { "type": "object", "properties": { "status": { "type": "string", - "enum": [ - "pending", - "required", - "ok" - ] + "enum": ["pending", "required", "ok"] }, "lastSigned": { "$ref": "#/components/schemas/TermsOfUse" @@ -3394,9 +3076,7 @@ "$ref": "#/components/schemas/TermsOfUse" } }, - "required": [ - "status" - ] + "required": ["status"] }, "AuthSignInRes": { "type": "object", @@ -3409,11 +3089,7 @@ }, "mfaStatus": { "type": "string", - "enum": [ - "pending", - "none", - "totp" - ] + "enum": ["pending", "none", "totp"] }, "customer": { "$ref": "#/components/schemas/AuthCustomer" @@ -3428,10 +3104,7 @@ "$ref": "#/components/schemas/TermsOfUseStatus" } }, - "required": [ - "permissions", - "mfaStatus" - ] + "required": ["permissions", "mfaStatus"] }, "CreateConnectorDto": { "type": "object", @@ -3444,10 +3117,7 @@ "type": "string" } }, - "required": [ - "file", - "connector" - ] + "required": ["file", "connector"] }, "UpdateDto": { "type": "object", @@ -3485,9 +3155,7 @@ } } }, - "required": [ - "version" - ] + "required": ["version"] }, "AddTagDto": { "type": "object", @@ -3499,9 +3167,7 @@ } } }, - "required": [ - "tags" - ] + "required": ["tags"] }, "RemoveTagDto": { "type": "object", @@ -3513,9 +3179,7 @@ } } }, - "required": [ - "tags" - ] + "required": ["tags"] }, "PermissionGroupPermission": { "type": "object", @@ -3527,10 +3191,7 @@ "type": "number" } }, - "required": [ - "name", - "id" - ] + "required": ["name", "id"] }, "PermissionGroup": { "type": "object", @@ -3545,10 +3206,7 @@ } } }, - "required": [ - "title", - "permissions" - ] + "required": ["title", "permissions"] }, "GetPublicPermissionsRes": { "type": "object", @@ -3560,9 +3218,7 @@ } } }, - "required": [ - "permissionGroups" - ] + "required": ["permissionGroups"] }, "CreateConnectionDto": { "type": "object", @@ -3654,10 +3310,7 @@ "type": "string" } }, - "required": [ - "connection", - "message" - ] + "required": ["connection", "message"] }, "UpdateConnectionDto": { "type": "object", @@ -3675,11 +3328,7 @@ "type": "object" } }, - "required": [ - "name", - "description", - "properties" - ] + "required": ["name", "description", "properties"] }, "ConnectionsRes": { "type": "object", @@ -3694,10 +3343,7 @@ "type": "string" } }, - "required": [ - "connections", - "message" - ] + "required": ["connections", "message"] }, "ConnectionDto": { "type": "object", @@ -3779,10 +3425,7 @@ "type": "string" } }, - "required": [ - "connection", - "message" - ] + "required": ["connection", "message"] }, "PermissionDto": { "type": "object", @@ -3806,14 +3449,7 @@ "type": "string" } }, - "required": [ - "id", - "seqid", - "name", - "claim", - "createdAt", - "updatedAt" - ] + "required": ["id", "seqid", "name", "claim", "createdAt", "updatedAt"] }, "Customer": { "type": "object", @@ -3980,11 +3616,7 @@ } } }, - "required": [ - "users", - "departments", - "jobTitles" - ] + "required": ["users", "departments", "jobTitles"] }, "Hierarchy": { "type": "object", @@ -3996,10 +3628,7 @@ "type": "string" } }, - "required": [ - "id", - "name" - ] + "required": ["id", "name"] }, "GetAllHierarchiesRes": { "type": "object", @@ -4011,9 +3640,7 @@ } } }, - "required": [ - "hierarchies" - ] + "required": ["hierarchies"] }, "GetAllDepartmentsRes": { "type": "object", @@ -4025,9 +3652,7 @@ } } }, - "required": [ - "departments" - ] + "required": ["departments"] }, "CreateUserReq": { "type": "object", @@ -4054,9 +3679,7 @@ "type": "string" } }, - "required": [ - "email" - ] + "required": ["email"] }, "User": { "type": "object", @@ -4125,9 +3748,7 @@ "$ref": "#/components/schemas/User" } }, - "required": [ - "user" - ] + "required": ["user"] }, "BatchCreateUserReq": { "type": "object", @@ -4139,9 +3760,7 @@ } } }, - "required": [ - "users" - ] + "required": ["users"] }, "ErrorUsers": { "type": "object", @@ -4153,10 +3772,7 @@ "type": "string" } }, - "required": [ - "user", - "error" - ] + "required": ["user", "error"] }, "BatchCreateUserRes": { "type": "object", @@ -4174,10 +3790,7 @@ } } }, - "required": [ - "usersCreated", - "errorUsers" - ] + "required": ["usersCreated", "errorUsers"] }, "DeleteUserRes": { "type": "object", @@ -4186,9 +3799,7 @@ "type": "string" } }, - "required": [ - "id" - ] + "required": ["id"] }, "SetUserRolesReq": { "type": "object", @@ -4203,10 +3814,7 @@ } } }, - "required": [ - "userId", - "roleNames" - ] + "required": ["userId", "roleNames"] }, "SetUserRolesRes": { "type": "object", @@ -4215,9 +3823,7 @@ "$ref": "#/components/schemas/IUserByCustomer" } }, - "required": [ - "user" - ] + "required": ["user"] }, "AssignRoleToUserReq": { "type": "object", @@ -4229,10 +3835,7 @@ "type": "string" } }, - "required": [ - "userId", - "roleId" - ] + "required": ["userId", "roleId"] }, "UpdateUserReq": { "type": "object", @@ -4267,9 +3870,7 @@ "$ref": "#/components/schemas/IUserByCustomer" } }, - "required": [ - "user" - ] + "required": ["user"] }, "UserNoRolesAndCustomer": { "type": "object", @@ -4382,9 +3983,7 @@ } } }, - "required": [ - "roles" - ] + "required": ["roles"] }, "CreateRoleReq": { "type": "object", @@ -4408,11 +4007,7 @@ "type": "string" } }, - "required": [ - "name", - "permissionIds", - "description" - ] + "required": ["name", "permissionIds", "description"] }, "CustomerRole": { "type": "object", @@ -4468,9 +4063,7 @@ "$ref": "#/components/schemas/CustomerRole" } }, - "required": [ - "role" - ] + "required": ["role"] }, "GrantPermissionsToRoleReq": { "type": "object", @@ -4485,10 +4078,7 @@ } } }, - "required": [ - "roleId", - "permissionIds" - ] + "required": ["roleId", "permissionIds"] }, "GrantPermissionsToRoleRes": { "type": "object", @@ -4497,9 +4087,7 @@ "$ref": "#/components/schemas/RoleDto" } }, - "required": [ - "role" - ] + "required": ["role"] }, "RevokePermissionsFromRoleReq": { "type": "object", @@ -4514,10 +4102,7 @@ } } }, - "required": [ - "roleId", - "permissionIds" - ] + "required": ["roleId", "permissionIds"] }, "RevokePermissionsFromRoleRes": { "type": "object", @@ -4526,9 +4111,7 @@ "$ref": "#/components/schemas/RoleDto" } }, - "required": [ - "role" - ] + "required": ["role"] }, "SetRolePermissionsReq": { "type": "object", @@ -4543,10 +4126,7 @@ } } }, - "required": [ - "roleId", - "permissionIds" - ] + "required": ["roleId", "permissionIds"] }, "SetRolePermissionsRes": { "type": "object", @@ -4555,9 +4135,7 @@ "$ref": "#/components/schemas/RoleDto" } }, - "required": [ - "role" - ] + "required": ["role"] }, "SetRoleUsersReq": { "type": "object", @@ -4572,10 +4150,7 @@ } } }, - "required": [ - "roleId", - "userIds" - ] + "required": ["roleId", "userIds"] }, "SetRoleUsersRes": { "type": "object", @@ -4584,9 +4159,7 @@ "$ref": "#/components/schemas/RoleDto" } }, - "required": [ - "role" - ] + "required": ["role"] }, "UpdateRoleReq": { "type": "object", @@ -4606,9 +4179,7 @@ "$ref": "#/components/schemas/RoleDto" } }, - "required": [ - "role" - ] + "required": ["role"] }, "NetworkConfigToCatalogDto": { "type": "object", @@ -4670,10 +4241,7 @@ "type": "string" } }, - "required": [ - "network_configs", - "message" - ] + "required": ["network_configs", "message"] }, "CreateNetworkConfigReq": { "type": "object", @@ -4710,9 +4278,7 @@ "$ref": "#/components/schemas/NetworkConfigToCatalogDto" } }, - "required": [ - "network_config" - ] + "required": ["network_config"] }, "ConnectionTestPingReq": { "type": "object", @@ -4741,9 +4307,7 @@ "type": "boolean" } }, - "required": [ - "operation_result" - ] + "required": ["operation_result"] }, "ConnectionTestCredentialsProperties": { "type": "object", @@ -4764,13 +4328,7 @@ "type": "string" } }, - "required": [ - "host", - "port", - "username", - "password", - "database" - ] + "required": ["host", "port", "username", "password", "database"] }, "ConnectionTestCredentialsReq": { "type": "object", @@ -4827,10 +4385,7 @@ "type": "string" } }, - "required": [ - "operation_result", - "connection_id" - ] + "required": ["operation_result", "connection_id"] }, "ConnectionTestListSchemasReq": { "type": "object", @@ -4842,10 +4397,7 @@ "type": "string" } }, - "required": [ - "plugin", - "connection_id" - ] + "required": ["plugin", "connection_id"] }, "ConnectionTestListSchemasRes": { "type": "object", @@ -4860,10 +4412,7 @@ } } }, - "required": [ - "operation_result", - "schema_list" - ] + "required": ["operation_result", "schema_list"] }, "ConnectionTestListTablesReq": { "type": "object", @@ -4878,11 +4427,7 @@ "type": "string" } }, - "required": [ - "plugin", - "connection_id", - "schema" - ] + "required": ["plugin", "connection_id", "schema"] }, "ConnectionTestListTablesRes": { "type": "object", @@ -4897,10 +4442,7 @@ } } }, - "required": [ - "operation_result", - "table_list" - ] + "required": ["operation_result", "table_list"] }, "GetTableMetadataReq": { "type": "object", @@ -4921,12 +4463,7 @@ } } }, - "required": [ - "connection_id", - "plugin", - "schema", - "table_list" - ] + "required": ["connection_id", "plugin", "schema", "table_list"] }, "ColumnDto": { "type": "object", @@ -4938,10 +4475,7 @@ "type": "string" } }, - "required": [ - "name", - "type" - ] + "required": ["name", "type"] }, "TableMetadataDto": { "type": "object", @@ -4962,11 +4496,7 @@ } } }, - "required": [ - "table_name", - "columns", - "references" - ] + "required": ["table_name", "columns", "references"] }, "GetTableMetadataRes": { "type": "object", @@ -4981,10 +4511,7 @@ } } }, - "required": [ - "operation_result", - "tables_metadata" - ] + "required": ["operation_result", "tables_metadata"] }, "ICreatePipelineV2Req": { "type": "object", @@ -5125,10 +4652,7 @@ } } }, - "required": [ - "name", - "replication_methods" - ] + "required": ["name", "replication_methods"] }, "GetAvailableEntitiesRes": { "type": "object", @@ -5140,9 +4664,7 @@ } } }, - "required": [ - "entities" - ] + "required": ["entities"] }, "TableColumns": { "type": "object", @@ -5166,12 +4688,7 @@ "type": "string" } }, - "required": [ - "name", - "columns", - "references", - "type" - ] + "required": ["name", "columns", "references", "type"] }, "CreateInputReq": { "type": "object", @@ -5195,12 +4712,7 @@ "type": "string" } }, - "required": [ - "tables", - "name", - "description", - "plugin" - ] + "required": ["tables", "name", "description", "plugin"] }, "Input": { "type": "object", @@ -5253,10 +4765,7 @@ "type": "string" } }, - "required": [ - "name", - "id" - ] + "required": ["name", "id"] }, "IUser": { "type": "object", @@ -5268,10 +4777,7 @@ "type": "string" } }, - "required": [ - "username", - "id" - ] + "required": ["username", "id"] }, "IComment": { "type": "object", @@ -5289,12 +4795,16 @@ "type": "string" } }, - "required": [ - "id", - "message", - "created_at", - "username" - ] + "required": ["id", "message", "created_at", "username"] + }, + "EmbedObject": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + }, + "required": ["url"] }, "IDataAsset": { "type": "object", @@ -5394,10 +4904,14 @@ "items": { "$ref": "#/components/schemas/IComment" } + }, + "embed": { + "$ref": "#/components/schemas/EmbedObject" } }, "required": [ "id", + "display_name", "pipeline_id", "user_id", "description", @@ -5406,6 +4920,7 @@ "owner", "roles", "users", + "created_at", "comments" ] }, @@ -5422,10 +4937,7 @@ "type": "number" } }, - "required": [ - "data_assets", - "total" - ] + "required": ["data_assets", "total"] }, "IColumnMetadata": { "type": "object", @@ -5515,9 +5027,7 @@ } } }, - "required": [ - "columns_metadata" - ] + "required": ["columns_metadata"] }, "IData": { "type": "object", @@ -5569,12 +5079,7 @@ } } }, - "required": [ - "id", - "database_name", - "table_name", - "data" - ] + "required": ["id", "database_name", "table_name", "data"] }, "IPreviewResponse": { "type": "object", @@ -5583,9 +5088,7 @@ "$ref": "#/components/schemas/IPreview" } }, - "required": [ - "preview" - ] + "required": ["preview"] }, "IDocs": { "type": "object", @@ -5603,12 +5106,7 @@ "type": "string" } }, - "required": [ - "id", - "docs", - "updated_at", - "table_id" - ] + "required": ["id", "docs", "updated_at", "table_id"] }, "IDocsResponse": { "type": "object", @@ -5617,9 +5115,7 @@ "$ref": "#/components/schemas/IDocs" } }, - "required": [ - "docs" - ] + "required": ["docs"] }, "IUpdateDataRequest": { "type": "object", @@ -5635,13 +5131,12 @@ "items": { "type": "string" } + }, + "embed": { + "$ref": "#/components/schemas/EmbedObject" } }, - "required": [ - "name", - "description", - "tags" - ] + "required": ["name", "description", "tags"] }, "IOneDataAsset": { "type": "object", @@ -5650,9 +5145,7 @@ "$ref": "#/components/schemas/IDataAsset" } }, - "required": [ - "data_asset" - ] + "required": ["data_asset"] }, "ICreateDataAsset": { "type": "object", @@ -5671,6 +5164,9 @@ }, "location": { "type": "string" + }, + "embed": { + "$ref": "#/components/schemas/EmbedObject" } }, "required": [ @@ -5688,9 +5184,7 @@ "type": "string" } }, - "required": [ - "message" - ] + "required": ["message"] }, "IDeleteComment": { "type": "object", @@ -5699,9 +5193,7 @@ "$ref": "#/components/schemas/IComment" } }, - "required": [ - "comment" - ] + "required": ["comment"] }, "INote": { "type": "object", @@ -5719,13 +5211,9 @@ } } }, - "required": [ - "title", - "content", - "tags" - ] + "required": ["title", "content", "tags"] } } } } -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index 4d5be85..9a43465 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "dependencies": { "@aws-sdk/client-secrets-manager": "^3.112.0", "@dadosfera/dadosfera-logs": "^1.0.0-beta.4", - "@dadosfera/protospack-v2": "3.21.0", + "@dadosfera/protospack-v2": "3.22.0", "@grpc/grpc-js": "^1.6.7", "@grpc/proto-loader": "^0.6.13", "@nestjs/common": "^8.4.7", @@ -36,7 +36,7 @@ "mixpanel": "^0.17.0", "passport": "^0.6.0", "passport-facebook": "^3.0.0", - "passport-forcedotcom": "^0.1.5", + "passport-forcedotcom": "^0.2.0", "passport-google-oauth20": "^2.0.0", "passport-hubspot-oauth2": "^1.0.3", "passport-mailchimp": "^1.1.0", @@ -1727,9 +1727,9 @@ } }, "node_modules/@dadosfera/protospack-v2": { - "version": "3.21.0", - "resolved": "https://dadosfera-611330257153.d.codeartifact.us-east-1.amazonaws.com:443/npm/dadosfera-npm/@dadosfera/protospack-v2/-/protospack-v2-3.21.0.tgz", - "integrity": "sha512-gHIRLSto813lagxqcphO4/xc82g/QkCZRslRhj5tJK4V69f/ScviBHB4CCRBRW5Md2Lql6zWuTV5R0uADFIiZA==", + "version": "3.22.0", + "resolved": "https://dadosfera-611330257153.d.codeartifact.us-east-1.amazonaws.com:443/npm/dadosfera-npm/@dadosfera/protospack-v2/-/protospack-v2-3.22.0.tgz", + "integrity": "sha512-tkHqNiSeuiGtuFieOOaTTaB1OOKzcFd+7bTlDXj6FdorIHXt+FtHxslWX5b9XERzkQg7nseak1gFw2w4krOdbg==", "dependencies": { "@grpc/grpc-js": "^1.6.7", "rxjs": "^7.5.5", @@ -3699,8 +3699,9 @@ }, "node_modules/asap": { "version": "2.0.6", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true }, "node_modules/asn1.js": { "version": "5.4.1", @@ -4705,9 +4706,10 @@ } }, "node_modules/dezalgo": { - "version": "1.0.3", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", + "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", "dev": true, - "license": "ISC", "dependencies": { "asap": "^2.0.0", "wrappy": "1" @@ -5902,23 +5904,28 @@ } }, "node_modules/formidable": { - "version": "2.0.1", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.1.tgz", + "integrity": "sha512-0EcS9wCFEzLvfiks7omJ+SiYJAiD+TzK4Pcw1UlUoGnhUxDcMKjt0P7x8wEb0u6OHu8Nb98WG3nxtlF5C7bvUQ==", "dev": true, - "license": "MIT", "dependencies": { - "dezalgo": "1.0.3", - "hexoid": "1.0.0", - "once": "1.4.0", - "qs": "6.9.3" + "dezalgo": "^1.0.4", + "hexoid": "^1.0.0", + "once": "^1.4.0", + "qs": "^6.11.0" }, "funding": { "url": "https://ko-fi.com/tunnckoCore/commissions" } }, "node_modules/formidable/node_modules/qs": { - "version": "6.9.3", + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "dev": true, - "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, "engines": { "node": ">=0.6" }, @@ -8713,24 +8720,11 @@ } }, "node_modules/passport-forcedotcom": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/passport-forcedotcom/-/passport-forcedotcom-0.1.5.tgz", - "integrity": "sha512-raDRQqBJtTEHDxLkxLG+9sYE0xpPy9PqriMPbMy9jmpIcU2+mOq9PgczvUPrU8UjfcZp3gqkDHqujcUWiGOVNQ==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/passport-forcedotcom/-/passport-forcedotcom-0.2.0.tgz", + "integrity": "sha512-gRI5+zQK9iVAZ1hJgt3TkWLeDw8SYrNWUsmVk0d0RyvUviQ4mT52x3JbYRiyZefoeID8afmLsJH8VOHjWdPf3Q==", "dependencies": { - "passport-oauth2": "1.3.x" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/passport-forcedotcom/node_modules/passport-oauth2": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/passport-oauth2/-/passport-oauth2-1.3.0.tgz", - "integrity": "sha512-AisRXcC7Vx8WSx5C9O8UNib/Y91/IOphs5tImlOMs7T+QTEJdmS+OxgXSskbnDdGQT/8mU5T3yMT6136rBjYXg==", - "dependencies": { - "oauth": "0.9.x", - "passport-strategy": "1.x.x", - "uid2": "0.0.x" + "passport-oauth2": "^1.6.1" }, "engines": { "node": ">= 0.4.0" @@ -12330,9 +12324,9 @@ } }, "@dadosfera/protospack-v2": { - "version": "3.21.0", - "resolved": "https://dadosfera-611330257153.d.codeartifact.us-east-1.amazonaws.com:443/npm/dadosfera-npm/@dadosfera/protospack-v2/-/protospack-v2-3.21.0.tgz", - "integrity": "sha512-gHIRLSto813lagxqcphO4/xc82g/QkCZRslRhj5tJK4V69f/ScviBHB4CCRBRW5Md2Lql6zWuTV5R0uADFIiZA==", + "version": "3.22.0", + "resolved": "https://dadosfera-611330257153.d.codeartifact.us-east-1.amazonaws.com:443/npm/dadosfera-npm/@dadosfera/protospack-v2/-/protospack-v2-3.22.0.tgz", + "integrity": "sha512-tkHqNiSeuiGtuFieOOaTTaB1OOKzcFd+7bTlDXj6FdorIHXt+FtHxslWX5b9XERzkQg7nseak1gFw2w4krOdbg==", "requires": { "@grpc/grpc-js": "^1.6.7", "rxjs": "^7.5.5", @@ -13675,6 +13669,8 @@ }, "asap": { "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", "dev": true }, "asn1.js": { @@ -14372,7 +14368,9 @@ "dev": true }, "dezalgo": { - "version": "1.0.3", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", + "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", "dev": true, "requires": { "asap": "^2.0.0", @@ -15214,18 +15212,25 @@ } }, "formidable": { - "version": "2.0.1", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.1.tgz", + "integrity": "sha512-0EcS9wCFEzLvfiks7omJ+SiYJAiD+TzK4Pcw1UlUoGnhUxDcMKjt0P7x8wEb0u6OHu8Nb98WG3nxtlF5C7bvUQ==", "dev": true, "requires": { - "dezalgo": "1.0.3", - "hexoid": "1.0.0", - "once": "1.4.0", - "qs": "6.9.3" + "dezalgo": "^1.0.4", + "hexoid": "^1.0.0", + "once": "^1.4.0", + "qs": "^6.11.0" }, "dependencies": { "qs": { - "version": "6.9.3", - "dev": true + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dev": true, + "requires": { + "side-channel": "^1.0.4" + } } } }, @@ -17093,23 +17098,11 @@ } }, "passport-forcedotcom": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/passport-forcedotcom/-/passport-forcedotcom-0.1.5.tgz", - "integrity": "sha512-raDRQqBJtTEHDxLkxLG+9sYE0xpPy9PqriMPbMy9jmpIcU2+mOq9PgczvUPrU8UjfcZp3gqkDHqujcUWiGOVNQ==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/passport-forcedotcom/-/passport-forcedotcom-0.2.0.tgz", + "integrity": "sha512-gRI5+zQK9iVAZ1hJgt3TkWLeDw8SYrNWUsmVk0d0RyvUviQ4mT52x3JbYRiyZefoeID8afmLsJH8VOHjWdPf3Q==", "requires": { - "passport-oauth2": "1.3.x" - }, - "dependencies": { - "passport-oauth2": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/passport-oauth2/-/passport-oauth2-1.3.0.tgz", - "integrity": "sha512-AisRXcC7Vx8WSx5C9O8UNib/Y91/IOphs5tImlOMs7T+QTEJdmS+OxgXSskbnDdGQT/8mU5T3yMT6136rBjYXg==", - "requires": { - "oauth": "0.9.x", - "passport-strategy": "1.x.x", - "uid2": "0.0.x" - } - } + "passport-oauth2": "^1.6.1" } }, "passport-google-oauth20": { diff --git a/package.json b/package.json index f1df8c1..0174280 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "dependencies": { "@aws-sdk/client-secrets-manager": "^3.112.0", "@dadosfera/dadosfera-logs": "^1.0.0-beta.4", - "@dadosfera/protospack-v2": "3.21.0", + "@dadosfera/protospack-v2": "3.22.0", "@grpc/grpc-js": "^1.6.7", "@grpc/proto-loader": "^0.6.13", "@nestjs/common": "^8.4.7", @@ -52,7 +52,7 @@ "mixpanel": "^0.17.0", "passport": "^0.6.0", "passport-facebook": "^3.0.0", - "passport-forcedotcom": "^0.1.5", + "passport-forcedotcom": "^0.2.0", "passport-google-oauth20": "^2.0.0", "passport-hubspot-oauth2": "^1.0.3", "passport-mailchimp": "^1.1.0", diff --git a/src/modules/catalog/catalog.controller.ts b/src/modules/catalog/catalog.controller.ts index d666bb7..e6703b6 100644 --- a/src/modules/catalog/catalog.controller.ts +++ b/src/modules/catalog/catalog.controller.ts @@ -10,6 +10,7 @@ import { Post, Put, Query, + UseFilters, } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { @@ -32,9 +33,11 @@ import { IPreviewResponse, IUpdateDataRequest, } from './dtos'; +import { GrpcToHttpExceptionFilter } from 'src/error/grpc-to-http-exception.filter'; @ApiTags('Catalog') @Controller('catalog') +@UseFilters(new GrpcToHttpExceptionFilter()) @Authenticated() export class CatalogController { logger: DadosferaLogger; @@ -352,11 +355,10 @@ export class CatalogController { async manageDataAssetDocs( @User() user: RequestUser, @Headers() headers, - @Param('id') data_asset_id, + @Param('id') table_id: string, @Body('docs') docs: string, ) { const { user_id, customer_name } = user; - const [, id] = data_asset_id.split('-'); this.logger.info(`/catalog - ON GET DATA DOCS ROUTE`, { user_id, @@ -364,7 +366,7 @@ export class CatalogController { }); const res = await this.catalogService.createDataDocs({ - table_id: id, + table_id, docs, info: { customer: customer_name, diff --git a/src/modules/catalog/catalog.service.ts b/src/modules/catalog/catalog.service.ts index 7f13cf5..2b0f21f 100644 --- a/src/modules/catalog/catalog.service.ts +++ b/src/modules/catalog/catalog.service.ts @@ -18,6 +18,7 @@ import { CatalogClientConfiguration } from './catalog-client'; import { UsersService } from '../users/users.service'; import { RolesService } from '../roles/roles.service'; import { Metadata } from '@grpc/grpc-js'; +import { IUpdateDataRequest } from './dtos'; class CatalogService implements OnModuleInit { catalogReadService: ReadService.CatalogReadServices; @@ -60,15 +61,11 @@ class CatalogService implements OnModuleInit { async createDataAsset(data: Messages.CreateDataAssetRequest, metadata) { this.logger.info('CatalogService - Manage Data assets permissions'); + if (!data.embed) data.embed = undefined; return lastValueFrom( this.catalogWriteService.CreateDataAsset(data, metadata), - ).catch((err) => { - throw new HttpException( - err.details, - err.code === 6 ? HttpStatus.CONFLICT : 404, - ); - }); + ); } async managePermissions(data: Messages.ManagePermissionRequest, metadata) { @@ -200,7 +197,14 @@ class CatalogService implements OnModuleInit { return { data_asset: asset[0] }; } - async updateOneDataAsset({ data_asset_id, customer_id, body, metadata }) { + async updateOneDataAsset(data: { + data_asset_id: string; + customer_id: string; + body: IUpdateDataRequest; + metadata: Metadata; + }) { + const { body, customer_id, data_asset_id, metadata } = data; + const { data_asset } = await lastValueFrom( this.catalogWriteService.UpdateDataAsset( { id: data_asset_id, changes: JSON.stringify(body) }, diff --git a/src/modules/catalog/dtos/index.ts b/src/modules/catalog/dtos/index.ts index 533a559..16604b2 100644 --- a/src/modules/catalog/dtos/index.ts +++ b/src/modules/catalog/dtos/index.ts @@ -1,6 +1,10 @@ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; import { CreateDataAssetRequest } from '@dadosfera/protospack-v2/dist/lib/Catalog/interfaces/messages'; +export class EmbedObject { + @ApiProperty() + url: string; +} export class IRole { @ApiProperty() name: string; @@ -49,8 +53,8 @@ export class IDataAsset { data_encrypted?: string; @ApiPropertyOptional() num_rows?: number; - @ApiPropertyOptional() - display_name?: string; + @ApiProperty() + display_name: string; @ApiProperty() pipeline_id: string; @ApiProperty() @@ -75,12 +79,14 @@ export class IDataAsset { parameters?: string[]; @ApiPropertyOptional() embedding_params?: object; - @ApiPropertyOptional() - created_at?: string; + @ApiProperty() + created_at: string; @ApiPropertyOptional() updated_at?: string; @ApiProperty({ type: [IComment] }) comments: IComment[]; + @ApiPropertyOptional() + embed?: EmbedObject; } export class IOneDataAsset { @@ -127,8 +133,9 @@ export class IUpdateDataRequest { description: string; @ApiProperty() tags: string[]; + @ApiPropertyOptional() + embed: EmbedObject; } - export class ICreateDataAsset implements CreateDataAssetRequest { @ApiProperty() display_name: string; @@ -140,6 +147,8 @@ export class ICreateDataAsset implements CreateDataAssetRequest { external_url: string; @ApiProperty() location: string; + @ApiPropertyOptional() + embed: EmbedObject; } export class IPreview { diff --git a/src/utils/ErrorBuilder.ts b/src/utils/ErrorBuilder.ts index 16567e1..faf2b7c 100644 --- a/src/utils/ErrorBuilder.ts +++ b/src/utils/ErrorBuilder.ts @@ -292,6 +292,14 @@ export function EnrichErrorCode(code: string) { message: 'Caso o erro persista, entre em contato com o suporte', code, }; + case ErrorCodes.CATALOG.DATA_ASSET_NOT_FOUND: + return { + statusCode: HttpStatus.NOT_FOUND, + error: 'Não encontramos o ativo solicitado', + message: + 'Tente realizar a ação novamente. Caso o erro persista, entre em contato com o suporte', + code, + }; case ErrorCodes.INTERNAL: case ErrorCodes.UNKNOWN: default: diff --git a/src/utils/errorCodes.ts b/src/utils/errorCodes.ts index 087ddba..19a9d22 100644 --- a/src/utils/errorCodes.ts +++ b/src/utils/errorCodes.ts @@ -67,6 +67,9 @@ const CONNECTION = { const TRANSFORMATION = { NOT_FOUND: 'TRANSFORMATION.NOT_FOUND', }; +const CATALOG = { + DATA_ASSET_NOT_FOUND: 'CATALOG.DATA_ASSET_NOT_FOUND', +}; const ErrorCodes = { UNKNOWN: 'UNKNOWN', RATE_LIMIT: 'RATE_LIMIT', @@ -82,6 +85,7 @@ const ErrorCodes = { INPUT, TRANSFORMATION, CONNECTION, + CATALOG, }; export default ErrorCodes;