@norbix.ai/react-redux 1.12.0 → 1.14.0
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/README.md +10 -1
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -555,7 +555,7 @@ added on a connection (`func_…`). Every tag is of type `CodeMarketplace`.
|
|
|
555
555
|
| Area | Hooks | Cache tag (`CodeMarketplace/…`) |
|
|
556
556
|
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
|
|
557
557
|
| Catalog | `useGetMarketplaceListingsQuery`, `useGetMarketplaceListingQuery`, `useGetMarketplaceListingFunctionTokensQuery` | provides `LISTINGS` |
|
|
558
|
-
| Connections | `useGetMarketplaceIntegrationsQuery`, `useGetMarketplaceIntegrationQuery`, `useSaveMarketplaceIntegrationMutation`, `useDeleteMarketplaceIntegrationMutation`, `useEnableMarketplaceIntegrationMutation`, `useDisableMarketplaceIntegrationMutation`, `useReplaceMarketplaceIntegrationSecretsMutation`, `useRevealMarketplaceIntegrationSecretsMutation`, `useSetMarketplaceIntegrationTokenMappingsMutation`, `useTestMarketplaceIntegrationMutation`, `useGetMarketplaceFunctionCatalogQuery` | `INTEGRATIONS`, `<integrationViewId>`, `CATALOG:<integrationViewId
|
|
558
|
+
| Connections | `useGetMarketplaceIntegrationsQuery`, `useGetMarketplaceIntegrationQuery`, `useSaveMarketplaceIntegrationMutation`, `useDeleteMarketplaceIntegrationMutation`, `useEnableMarketplaceIntegrationMutation`, `useDisableMarketplaceIntegrationMutation`, `useReplaceMarketplaceIntegrationSecretsMutation`, `useRevealMarketplaceIntegrationSecretsMutation`, `useSetMarketplaceIntegrationTokenMappingsMutation`, `useTestMarketplaceIntegrationMutation`, `useGetMarketplaceFunctionCatalogQuery`, `useGetMarketplaceIntegrationToolsQuery` (the stored MCP tool catalog of an MCP connection, core SDK 4.23.0+) | `INTEGRATIONS`, `<integrationViewId>`, `CATALOG:<integrationViewId>`, `TOOLS:<integrationViewId>` (test and delete invalidate it); reveal touches nothing |
|
|
559
559
|
| Functions | `useGetMarketplaceFunctionsQuery`, `useGetMarketplaceFunctionQuery`, `useSaveMarketplaceFunctionMutation`, `useDeleteMarketplaceFunctionMutation`, `useEnableMarketplaceFunctionMutation`, `useDisableMarketplaceFunctionMutation`, `useGetMarketplaceFunctionTokensQuery`, `useInvokeMarketplaceFunctionMutation`, `useGetMarketplaceFunctionRunsQuery` | `FUNCTIONS:<integrationViewId>`, `<functionViewId>`, `RUNS`; invoke touches nothing |
|
|
560
560
|
|
|
561
561
|
Revealing secrets is a mutation on purpose: a query would keep the clear values
|
|
@@ -567,6 +567,15 @@ const [invoke] = useInvokeMarketplaceFunctionMutation();
|
|
|
567
567
|
await invoke({ functionViewId: 'func_4hT2b9QkLm3XcT1yRfGh7a', payload: { text: 'Order shipped' } });
|
|
568
568
|
```
|
|
569
569
|
|
|
570
|
+
`useGetMarketplaceFunctionRunsQuery` takes exactly one of `functionId` (a function's own runs from every source — invoke, trigger, scheduler — newest first, up to 50), `triggerId` or `taskId`. A row carries `status` (`ok` / `failed` / `skipped`), `durationMs`, `source`, `correlationId` and `hasDetails`; when `hasDetails` is true, the run's input, steps and response are in the project log — read them with `norbix.hub.code.getMarketplaceFunctionRunDetails(row.correlationId)` from `@norbix.ai/ts` 4.22.0.
|
|
571
|
+
|
|
572
|
+
```tsx
|
|
573
|
+
const { data } = useGetMarketplaceFunctionRunsQuery({
|
|
574
|
+
functionId: 'func_4hT2b9QkLm3XcT1yRfGh7a',
|
|
575
|
+
limit: 20,
|
|
576
|
+
});
|
|
577
|
+
```
|
|
578
|
+
|
|
570
579
|
## Working with terms
|
|
571
580
|
|
|
572
581
|
A **taxonomy** is a named tree of **terms** (labels). A term can have one parent (a clean hierarchy) or several parents (the same item under many categories). There is one read hook per scenario — pick the one that matches what you want:
|
package/dist/index.cjs
CHANGED
|
@@ -1569,7 +1569,8 @@ var hubCodeMarketplace = (b) => {
|
|
|
1569
1569
|
query: (args) => (norbix) => callHC(norbix).deleteMarketplaceIntegration(args),
|
|
1570
1570
|
invalidatesTags: (_res, _err, arg) => [
|
|
1571
1571
|
...integration(arg),
|
|
1572
|
-
{ type: T, id: `FUNCTIONS:${integrationId(arg)}` }
|
|
1572
|
+
{ type: T, id: `FUNCTIONS:${integrationId(arg)}` },
|
|
1573
|
+
{ type: T, id: `TOOLS:${integrationId(arg)}` }
|
|
1573
1574
|
]
|
|
1574
1575
|
}),
|
|
1575
1576
|
enableMarketplaceIntegration: b.mutation({
|
|
@@ -1593,12 +1594,19 @@ var hubCodeMarketplace = (b) => {
|
|
|
1593
1594
|
}),
|
|
1594
1595
|
testMarketplaceIntegration: b.mutation({
|
|
1595
1596
|
query: (args) => (norbix) => callHC(norbix).testMarketplaceIntegration(args),
|
|
1596
|
-
invalidatesTags: (_res, _err, arg) => [
|
|
1597
|
+
invalidatesTags: (_res, _err, arg) => [
|
|
1598
|
+
{ type: T, id: integrationId(arg) },
|
|
1599
|
+
{ type: T, id: `TOOLS:${integrationId(arg)}` }
|
|
1600
|
+
]
|
|
1597
1601
|
}),
|
|
1598
1602
|
getMarketplaceFunctionCatalog: b.query({
|
|
1599
1603
|
query: (args) => (norbix) => callHC(norbix).getMarketplaceFunctionCatalog(args),
|
|
1600
1604
|
providesTags: (_res, _err, arg) => [{ type: T, id: `CATALOG:${integrationId(arg)}` }]
|
|
1601
1605
|
}),
|
|
1606
|
+
getMarketplaceIntegrationTools: b.query({
|
|
1607
|
+
query: (args) => (norbix) => callHC(norbix).getMarketplaceIntegrationTools(args),
|
|
1608
|
+
providesTags: (_res, _err, arg) => [{ type: T, id: `TOOLS:${integrationId(arg)}` }]
|
|
1609
|
+
}),
|
|
1602
1610
|
// ---- Functions on a connection ----
|
|
1603
1611
|
getMarketplaceFunctions: b.query({
|
|
1604
1612
|
query: (args) => (norbix) => callHC(norbix).getMarketplaceFunctions(args),
|