@oondemand/oon-core-front 0.3.69 → 0.3.70

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/dist/index.js CHANGED
@@ -4585,7 +4585,7 @@ function Sidebar({ app, menu, registry }) {
4585
4585
  // package.json
4586
4586
  var package_default = {
4587
4587
  name: "@oondemand/oon-core-front",
4588
- version: "0.3.69",
4588
+ version: "0.3.70",
4589
4589
  repository: {
4590
4590
  type: "git",
4591
4591
  url: "git+https://github.com/oondemand/oon-platform.git",
@@ -6870,6 +6870,16 @@ function CoreIntegrationTickets({ provider = "omie" }) {
6870
6870
  await queue.refetch();
6871
6871
  }
6872
6872
  });
6873
+ const processPending = useMutation5({
6874
+ mutationFn: async () => http.post(
6875
+ "/integrations/queue/process",
6876
+ { provider, limit: 100 },
6877
+ { headers: { "x-oon-origin": "integration" } }
6878
+ ),
6879
+ onSuccess: async () => {
6880
+ await queue.refetch();
6881
+ }
6882
+ });
6873
6883
  useEffect10(() => {
6874
6884
  const totalPages2 = queue.data?.pagination?.totalPages ?? 1;
6875
6885
  if (page > totalPages2) setPage(Math.max(1, totalPages2));
@@ -6884,7 +6894,7 @@ function CoreIntegrationTickets({ provider = "omie" }) {
6884
6894
  const totalPages = Math.max(1, pagination?.totalPages ?? 1);
6885
6895
  const totalItems = pagination?.totalItems ?? 0;
6886
6896
  const statuses = queue.data?.summary?.statuses ?? {};
6887
- const operationError = action.error || queue.error;
6897
+ const operationError = action.error || processPending.error || queue.error;
6888
6898
  return /* @__PURE__ */ jsxs25(Stack11, { gap: 5, children: [
6889
6899
  /* @__PURE__ */ jsxs25(Flex17, { align: "start", justify: "space-between", gap: 3, wrap: "wrap", children: [
6890
6900
  /* @__PURE__ */ jsxs25(Box24, { children: [
@@ -6900,6 +6910,17 @@ function CoreIntegrationTickets({ provider = "omie" }) {
6900
6910
  setView("board");
6901
6911
  setPage(1);
6902
6912
  }, children: "Quadro" }),
6913
+ /* @__PURE__ */ jsx40(
6914
+ Button17,
6915
+ {
6916
+ size: "sm",
6917
+ colorPalette: "blue",
6918
+ loading: processPending.isPending,
6919
+ disabled: processPending.isPending,
6920
+ onClick: () => processPending.mutate(),
6921
+ children: "Processar pendentes"
6922
+ }
6923
+ ),
6903
6924
  /* @__PURE__ */ jsx40(Button17, { size: "sm", variant: "outline", loading: queue.isFetching, onClick: () => queue.refetch(), children: "Atualizar" })
6904
6925
  ] })
6905
6926
  ] }),