@keboola/api-client 43.0.0 → 45.0.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/AGENTS.md +4 -2
- package/API-SURFACE.md +4 -10
- package/CHANGELOG.md +53 -0
- package/README.md +17 -19
- package/dist/{ManagementClientAuthError-DUbXlry2.js → ManagementClientAuthError-BcPYxAWZ.js} +2 -2
- package/dist/{ManagementClientAuthError-DUbXlry2.js.map → ManagementClientAuthError-BcPYxAWZ.js.map} +1 -1
- package/dist/{ManagementClientAuthError-BFZOtLgj.cjs → ManagementClientAuthError-DHuykEPF.cjs} +2 -2
- package/dist/{ManagementClientAuthError-BFZOtLgj.cjs.map → ManagementClientAuthError-DHuykEPF.cjs.map} +1 -1
- package/dist/ai/index.cjs +2 -2
- package/dist/ai/index.js +2 -2
- package/dist/{appLogs-oZvt59mk.cjs → appLogs-BG9ueGxA.cjs} +2 -2
- package/dist/{appLogs-oZvt59mk.cjs.map → appLogs-BG9ueGxA.cjs.map} +1 -1
- package/dist/{appLogs-DfkItQCO.js → appLogs-CEKz68bE.js} +2 -2
- package/dist/{appLogs-DfkItQCO.js.map → appLogs-CEKz68bE.js.map} +1 -1
- package/dist/apps/index.cjs +3 -3
- package/dist/apps/index.js +3 -3
- package/dist/assets/index.cjs +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/auth/index.cjs +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{auth-DUHTJTwS.js → auth-C6cHWIWx.js} +2 -2
- package/dist/{auth-DUHTJTwS.js.map → auth-C6cHWIWx.js.map} +1 -1
- package/dist/{auth-zfI04oj7.cjs → auth-C9o_0bft.cjs} +2 -2
- package/dist/{auth-zfI04oj7.cjs.map → auth-C9o_0bft.cjs.map} +1 -1
- package/dist/{authClient-CX4buUMc.js → authClient-CACOwVt0.js} +5 -5
- package/dist/{authClient-CX4buUMc.js.map → authClient-CACOwVt0.js.map} +1 -1
- package/dist/{authClient-BxqRGR5c.cjs → authClient-DZcAR-eW.cjs} +5 -5
- package/dist/{authClient-BxqRGR5c.cjs.map → authClient-DZcAR-eW.cjs.map} +1 -1
- package/dist/billing/index.cjs +2 -2
- package/dist/billing/index.js +2 -2
- package/dist/chat/index.cjs +3 -3
- package/dist/chat/index.js +3 -3
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/{constants-C6xku_Vx.cjs → constants-BDGRQqij.cjs} +1 -2
- package/dist/constants-BDGRQqij.cjs.map +1 -0
- package/dist/{constants-C2tYAJSj.js → constants-Cifrqsls.js} +1 -2
- package/dist/constants-Cifrqsls.js.map +1 -0
- package/dist/{createFetchClient-BgihytBn.cjs → createFetchClient-ClWD4ua3.cjs} +71 -25
- package/dist/createFetchClient-ClWD4ua3.cjs.map +1 -0
- package/dist/{createFetchClient-cgWkwgAQ.js → createFetchClient-DITkTV2k.js} +54 -26
- package/dist/createFetchClient-DITkTV2k.js.map +1 -0
- package/dist/{createGenericFetchClient-C7Y0YVfc.cjs → createGenericFetchClient-B81Iezpb.cjs} +2 -2
- package/dist/{createGenericFetchClient-C7Y0YVfc.cjs.map → createGenericFetchClient-B81Iezpb.cjs.map} +1 -1
- package/dist/{createGenericFetchClient-CX9Hn3Aq.js → createGenericFetchClient-KqiJhw8G.js} +2 -2
- package/dist/{createGenericFetchClient-CX9Hn3Aq.js.map → createGenericFetchClient-KqiJhw8G.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-DY5s-aH6.cjs → createOpenapiFetchClient-CioTX11-.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-DY5s-aH6.cjs.map → createOpenapiFetchClient-CioTX11-.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-BxcLLU_N.js → createOpenapiFetchClient-wq8iGLZM.js} +2 -2
- package/dist/{createOpenapiFetchClient-BxcLLU_N.js.map → createOpenapiFetchClient-wq8iGLZM.js.map} +1 -1
- package/dist/dataScience/index.cjs +2 -2
- package/dist/dataScience/index.d.cts +1 -1
- package/dist/dataScience/index.d.ts +1 -1
- package/dist/dataScience/index.js +2 -2
- package/dist/dataScience/types.d.cts +2 -2
- package/dist/dataScience/types.d.ts +2 -2
- package/dist/{dataScience-BxRoGfnG.js → dataScience-BwHmDoQb.js} +16 -5
- package/dist/dataScience-BwHmDoQb.js.map +1 -0
- package/dist/{dataScience-BoS8Xfvx.cjs → dataScience-Hhoqoql_.cjs} +16 -5
- package/dist/dataScience-Hhoqoql_.cjs.map +1 -0
- package/dist/developerPortal/index.cjs +1 -1
- package/dist/developerPortal/index.js +1 -1
- package/dist/{developerPortalClient-DFHEsrlt.cjs → developerPortalClient-COm7wJxS.cjs} +3 -3
- package/dist/{developerPortalClient-DFHEsrlt.cjs.map → developerPortalClient-COm7wJxS.cjs.map} +1 -1
- package/dist/{developerPortalClient-C7s0kpjK.js → developerPortalClient-loKq7X_U.js} +3 -3
- package/dist/{developerPortalClient-C7s0kpjK.js.map → developerPortalClient-loKq7X_U.js.map} +1 -1
- package/dist/editor/index.cjs +2 -2
- package/dist/editor/index.js +2 -2
- package/dist/encryption/index.cjs +1 -1
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/index.js +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/import/index.cjs +1 -1
- package/dist/import/index.js +1 -1
- package/dist/{import-BSYvG3Uy.cjs → import-B5DcJGMI.cjs} +3 -3
- package/dist/{import-BSYvG3Uy.cjs.map → import-B5DcJGMI.cjs.map} +1 -1
- package/dist/{import-CXBcFVbk.js → import-JlH_QaDd.js} +3 -3
- package/dist/{import-CXBcFVbk.js.map → import-JlH_QaDd.js.map} +1 -1
- package/dist/{index-CAvT_ahE.d.ts → index-BCgmwncs.d.ts} +6 -2
- package/dist/{index-BMiZx-4_.d.cts → index-BKOFRmTB.d.cts} +2 -2
- package/dist/{index-CBWfpd-0.d.ts → index-Bf8dr2KQ.d.ts} +2 -2
- package/dist/{index-BQZ9njUC.d.ts → index-Bl2EloC0.d.ts} +39 -83
- package/dist/{index-B03vhWSX.d.ts → index-CA6QxbhZ.d.ts} +4 -2
- package/dist/{index-Cm04GKm9.d.cts → index-CGFGd3tF.d.cts} +39 -83
- package/dist/{index-D7of2MMN.d.ts → index-CWPi7lBF.d.ts} +3 -3
- package/dist/{index-C7KThHI3.d.cts → index-D9UsQOuT.d.cts} +6 -2
- package/dist/{index-CdS-c6sC.d.cts → index-Dd40ojPr.d.cts} +3 -3
- package/dist/{index-BUsLHNOA.d.cts → index-DkCXaYsn.d.cts} +2 -2
- package/dist/{index-D3HFMfJJ.d.cts → index-DkvrbR2i.d.cts} +4 -2
- package/dist/{index-B72LTF-k.d.ts → index-DtuwWYDR.d.ts} +2 -2
- package/dist/index.cjs +51 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +48 -56
- package/dist/index.js.map +1 -1
- package/dist/{isLoginPageRedirect-CsjF95_P.js → isLoginPageRedirect-CsyRa3_v.js} +2 -2
- package/dist/{isLoginPageRedirect-CsjF95_P.js.map → isLoginPageRedirect-CsyRa3_v.js.map} +1 -1
- package/dist/{isLoginPageRedirect-c451CoWW.cjs → isLoginPageRedirect-iNbwl3iz.cjs} +2 -2
- package/dist/{isLoginPageRedirect-c451CoWW.cjs.map → isLoginPageRedirect-iNbwl3iz.cjs.map} +1 -1
- package/dist/{jobStatus-CcNlIy5R.cjs → jobStatus-B0E-MZ9I.cjs} +2 -2
- package/dist/{jobStatus-CcNlIy5R.cjs.map → jobStatus-B0E-MZ9I.cjs.map} +1 -1
- package/dist/{jobStatus-CDp4r5JQ.js → jobStatus-BJdbZ72V.js} +2 -2
- package/dist/{jobStatus-CDp4r5JQ.js.map → jobStatus-BJdbZ72V.js.map} +1 -1
- package/dist/kaiAgent/index.cjs +1 -1
- package/dist/kaiAgent/index.js +1 -1
- package/dist/{kaiAgent-ph4DRKlT.cjs → kaiAgent-BhcUsBDk.cjs} +5 -5
- package/dist/{kaiAgent-ph4DRKlT.cjs.map → kaiAgent-BhcUsBDk.cjs.map} +1 -1
- package/dist/{kaiAgent-xBpUwLeQ.js → kaiAgent-CUeT53-K.js} +5 -5
- package/dist/{kaiAgent-xBpUwLeQ.js.map → kaiAgent-CUeT53-K.js.map} +1 -1
- package/dist/{kaiMemory-U0DG-CpY.cjs → kaiMemory-Cf81ghNd.cjs} +2 -2
- package/dist/{kaiMemory-U0DG-CpY.cjs.map → kaiMemory-Cf81ghNd.cjs.map} +1 -1
- package/dist/{kaiMemory-BAniZZAN.js → kaiMemory-DaOh0zVn.js} +2 -2
- package/dist/{kaiMemory-BAniZZAN.js.map → kaiMemory-DaOh0zVn.js.map} +1 -1
- package/dist/management/index.cjs +1 -1
- package/dist/management/index.d.cts +1 -1
- package/dist/management/index.d.ts +1 -1
- package/dist/management/index.js +1 -1
- package/dist/management/types.d.cts +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/{management-5597SiC7.cjs → management-C5lf9nsU.cjs} +31 -6
- package/dist/management-C5lf9nsU.cjs.map +1 -0
- package/dist/{management-D46KlXts.js → management-WAtKH6Tu.js} +31 -6
- package/dist/management-WAtKH6Tu.js.map +1 -0
- package/dist/metastore/index.cjs +1 -1
- package/dist/metastore/index.d.cts +1 -1
- package/dist/metastore/index.d.ts +1 -1
- package/dist/metastore/index.js +1 -1
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/{metastore-_OskcLGz.js → metastore-D0C6uaPX.js} +4 -4
- package/dist/{metastore-_OskcLGz.js.map → metastore-D0C6uaPX.js.map} +1 -1
- package/dist/{metastore-DwMFlP2d.cjs → metastore-YPHUK3jJ.cjs} +4 -4
- package/dist/{metastore-DwMFlP2d.cjs.map → metastore-YPHUK3jJ.cjs.map} +1 -1
- package/dist/microsoftGraph/index.cjs +2 -2
- package/dist/microsoftGraph/index.js +2 -2
- package/dist/{middleware-xhg2r2fE.cjs → middleware-D_p5TctO.cjs} +2 -2
- package/dist/{middleware-xhg2r2fE.cjs.map → middleware-D_p5TctO.cjs.map} +1 -1
- package/dist/{middleware-Drbo_UIZ.js → middleware-DmR6OhTY.js} +2 -2
- package/dist/{middleware-Drbo_UIZ.js.map → middleware-DmR6OhTY.js.map} +1 -1
- package/dist/notifications/index.cjs +3 -3
- package/dist/notifications/index.js +3 -3
- package/dist/oauth/index.cjs +1 -1
- package/dist/oauth/index.js +1 -1
- package/dist/{oauth-TWwAv-va.js → oauth-Ck_Fe14o.js} +5 -5
- package/dist/{oauth-TWwAv-va.js.map → oauth-Ck_Fe14o.js.map} +1 -1
- package/dist/{oauth-L0Uic3YA.cjs → oauth-DyUwTqHJ.cjs} +5 -5
- package/dist/{oauth-L0Uic3YA.cjs.map → oauth-DyUwTqHJ.cjs.map} +1 -1
- package/dist/omnisearch/index.cjs +2 -2
- package/dist/omnisearch/index.js +2 -2
- package/dist/queryService/index.cjs +1 -1
- package/dist/queryService/index.d.cts +1 -1
- package/dist/queryService/index.d.ts +1 -1
- package/dist/queryService/index.js +1 -1
- package/dist/{queryService-Drvy1ztW.js → queryService-Blfz59Ms.js} +6 -6
- package/dist/{queryService-Drvy1ztW.js.map → queryService-Blfz59Ms.js.map} +1 -1
- package/dist/{queryService-DSww_TJp.cjs → queryService-RlNYw7LG.cjs} +6 -6
- package/dist/{queryService-DSww_TJp.cjs.map → queryService-RlNYw7LG.cjs.map} +1 -1
- package/dist/queue/index.cjs +1 -1
- package/dist/queue/index.d.cts +8 -2
- package/dist/queue/index.d.ts +8 -2
- package/dist/queue/index.js +1 -1
- package/dist/queue/types.d.cts +1 -1
- package/dist/queue/types.d.ts +1 -1
- package/dist/{queue-DpMvv8C-.cjs → queue-BrgRdtOr.cjs} +5 -5
- package/dist/{queue-DpMvv8C-.cjs.map → queue-BrgRdtOr.cjs.map} +1 -1
- package/dist/{queue-Ci_f_5TI.js → queue-CNvR-M23.js} +5 -5
- package/dist/{queue-Ci_f_5TI.js.map → queue-CNvR-M23.js.map} +1 -1
- package/dist/scheduler/index.cjs +3 -3
- package/dist/scheduler/index.js +3 -3
- package/dist/sdk/configurations/index.d.cts +3 -3
- package/dist/sdk/configurations/index.d.ts +3 -3
- package/dist/sdk/developerPortal/index.cjs +3 -3
- package/dist/sdk/developerPortal/index.js +3 -3
- package/dist/sdk/kaiMemory/index.cjs +1 -1
- package/dist/sdk/kaiMemory/index.d.cts +1 -1
- package/dist/sdk/kaiMemory/index.d.ts +1 -1
- package/dist/sdk/kaiMemory/index.js +1 -1
- package/dist/sdk/kaiMemory/types.d.cts +1 -1
- package/dist/sdk/kaiMemory/types.d.ts +1 -1
- package/dist/sdk/queryService/index.cjs +1 -1
- package/dist/sdk/queryService/index.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/queryService/index.js +1 -1
- package/dist/sdk/semanticLayer/index.cjs +1 -2
- package/dist/sdk/semanticLayer/index.d.cts +3 -20
- package/dist/sdk/semanticLayer/index.d.ts +3 -20
- package/dist/sdk/semanticLayer/index.js +2 -2
- package/dist/sdk/semanticLayer/types.d.cts +2 -2
- package/dist/sdk/semanticLayer/types.d.ts +2 -2
- package/dist/sdk/storage/index.d.cts +1 -1
- package/dist/sdk/storage/index.d.ts +1 -1
- package/dist/sdk/tag/index.d.cts +2 -2
- package/dist/sdk/tag/index.d.ts +2 -2
- package/dist/sdk/tag/types.d.cts +1 -1
- package/dist/sdk/tag/types.d.ts +1 -1
- package/dist/sdk/vault/index.d.cts +1 -1
- package/dist/sdk/vault/index.d.ts +1 -1
- package/dist/{semanticLayer-D3NDh_QH.cjs → semanticLayer-7BejcMj_.cjs} +10 -84
- package/dist/semanticLayer-7BejcMj_.cjs.map +1 -0
- package/dist/{semanticLayer-Ddg0LSnt.js → semanticLayer-DvjS_nzo.js} +11 -79
- package/dist/semanticLayer-DvjS_nzo.js.map +1 -0
- package/dist/{serviceIds-DC-H6ZD9.d.ts → serviceIds-DRcoTnSd.d.cts} +1 -2
- package/dist/{serviceIds-DC-H6ZD9.d.cts → serviceIds-DRcoTnSd.d.ts} +1 -2
- package/dist/status/index.cjs +1 -1
- package/dist/status/index.js +1 -1
- package/dist/storage/index.cjs +4 -4
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +4 -4
- package/dist/storage/types.d.cts +3 -3
- package/dist/storage/types.d.ts +3 -3
- package/dist/{storage-DAJquqEw.cjs → storage-76Sf_z_H.cjs} +35 -24
- package/dist/storage-76Sf_z_H.cjs.map +1 -0
- package/dist/{storage-C-lyo_iX.js → storage-RkNaOFJ-.js} +35 -24
- package/dist/storage-RkNaOFJ-.js.map +1 -0
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.js +3 -3
- package/dist/syncActions/index.cjs +1 -1
- package/dist/syncActions/index.js +1 -1
- package/dist/{syncActions-BQ8kMgL6.js → syncActions-BvFUa9xV.js} +5 -5
- package/dist/{syncActions-BQ8kMgL6.js.map → syncActions-BvFUa9xV.js.map} +1 -1
- package/dist/{syncActions-DyxNmbUR.cjs → syncActions-DlNPhZY4.cjs} +5 -5
- package/dist/{syncActions-DyxNmbUR.cjs.map → syncActions-DlNPhZY4.cjs.map} +1 -1
- package/dist/telemetry/index.cjs +3 -3
- package/dist/telemetry/index.js +3 -3
- package/dist/{types-DwVSj-Da.d.ts → types-9SEE4icc.d.ts} +29 -2
- package/dist/{types-CwZgZqrA.d.ts → types-B-5ya_L5.d.ts} +12 -1
- package/dist/{types-DUMal2E-.d.cts → types-BjR8Yodc.d.cts} +29 -2
- package/dist/{types-CigD_EF5.d.ts → types-CABWhTa9.d.ts} +4 -8
- package/dist/{types-B3i04d_A.d.cts → types-CGm2fQKK.d.cts} +183 -5
- package/dist/{types-BgVt8SUY.d.cts → types-CLHaZv9f.d.cts} +17 -13
- package/dist/{types-04GTqleJ.d.cts → types-CalDJHCX.d.cts} +3 -3
- package/dist/{types-BgHtMe8s.d.cts → types-Ccd9O6ca.d.cts} +3 -3
- package/dist/{types-BzPuxmaR.d.cts → types-D1A4mAG0.d.cts} +2 -2
- package/dist/{types-C0rVtqz2.d.ts → types-D8pGSkRe.d.ts} +17 -13
- package/dist/{types-QSchmyvO.d.ts → types-DVZpKGBJ.d.ts} +3 -3
- package/dist/{types-BWmLo73i.d.cts → types-DVt0qlzI.d.cts} +14 -3
- package/dist/{types-R3AFJD6r.d.ts → types-DazRtukc.d.ts} +14 -3
- package/dist/{types-DyArI_Jq.d.cts → types-DdsYv2WG.d.cts} +4 -8
- package/dist/{types-2Do0DZ60.d.ts → types-DxN2siRW.d.ts} +2 -2
- package/dist/{types-B3P5yAuI.d.ts → types-Fs4a3mVs.d.ts} +183 -5
- package/dist/{types-CAAgCRmE.d.cts → types-tgU8XvPs.d.cts} +12 -1
- package/dist/{types-CV7jmgtX.d.ts → types-z82gSTx8.d.ts} +3 -3
- package/dist/{validateConnectionStatus-gFsBi5FV.js → validateConnectionStatus-CdTV3gsP.js} +3 -3
- package/dist/{validateConnectionStatus-gFsBi5FV.js.map → validateConnectionStatus-CdTV3gsP.js.map} +1 -1
- package/dist/{validateConnectionStatus-Ca1uEizv.cjs → validateConnectionStatus-DR-0h35y.cjs} +3 -3
- package/dist/{validateConnectionStatus-Ca1uEizv.cjs.map → validateConnectionStatus-DR-0h35y.cjs.map} +1 -1
- package/dist/vault/index.cjs +4 -4
- package/dist/vault/index.js +4 -4
- package/package.json +1 -27
- package/surface/dataScience.md +1 -0
- package/surface/management.md +2 -0
- package/surface/queue.md +7 -7
- package/surface/storage.md +7 -7
- package/dist/businessWorkspaceApi/index.cjs +0 -3
- package/dist/businessWorkspaceApi/index.d.cts +0 -2
- package/dist/businessWorkspaceApi/index.d.ts +0 -2
- package/dist/businessWorkspaceApi/index.js +0 -2
- package/dist/businessWorkspaceApi/types.cjs +0 -0
- package/dist/businessWorkspaceApi/types.d.cts +0 -2
- package/dist/businessWorkspaceApi/types.d.ts +0 -2
- package/dist/businessWorkspaceApi/types.js +0 -1
- package/dist/businessWorkspaceApi-DFky1k61.js +0 -61
- package/dist/businessWorkspaceApi-DFky1k61.js.map +0 -1
- package/dist/businessWorkspaceApi-Uzqu0PJM.cjs +0 -66
- package/dist/businessWorkspaceApi-Uzqu0PJM.cjs.map +0 -1
- package/dist/businessWorkspaceApiClient-BHDJlHFo.d.cts +0 -529
- package/dist/businessWorkspaceApiClient-DI-z1VIH.d.ts +0 -529
- package/dist/constants-C2tYAJSj.js.map +0 -1
- package/dist/constants-C6xku_Vx.cjs.map +0 -1
- package/dist/createFetchClient-BgihytBn.cjs.map +0 -1
- package/dist/createFetchClient-cgWkwgAQ.js.map +0 -1
- package/dist/dataScience-BoS8Xfvx.cjs.map +0 -1
- package/dist/dataScience-BxRoGfnG.js.map +0 -1
- package/dist/management-5597SiC7.cjs.map +0 -1
- package/dist/management-D46KlXts.js.map +0 -1
- package/dist/semanticLayer-D3NDh_QH.cjs.map +0 -1
- package/dist/semanticLayer-Ddg0LSnt.js.map +0 -1
- package/dist/storage-C-lyo_iX.js.map +0 -1
- package/dist/storage-DAJquqEw.cjs.map +0 -1
- package/surface/businessWorkspaceApi.md +0 -12
package/surface/queue.md
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
6
|
|
|
7
|
-
- `api.queue.createJob(body: { component: string; mode?: "run" | "debug" | "forceRun" | undefined; config?: string | undefined; configRowIds?: string[] | undefined; configData?: Record<string, never> | undefined; tag?: string | undefined; branchId?: string | undefined; variableValuesId?: string | undefined; variableValuesData?: { values: { name: string; value: string; }[]; } | undefined; backend?: { type: "small" | "medium" | "large" | "xsmall"; context?: string | undefined; } | undefined; executor?: "dind" | "k8sContainers" | undefined; delayedStartTime?: string | undefined; delay?: number | undefined; onlyFlowTaskIds?: string[] | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; }, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }>`
|
|
8
|
-
- `api.queue.getJob(jobId: string, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }>`
|
|
7
|
+
- `api.queue.createJob(body: { component: string; mode?: "run" | "debug" | "forceRun" | undefined; config?: string | undefined; configRowIds?: string[] | undefined; configData?: Record<string, never> | undefined; tag?: string | undefined; branchId?: string | undefined; variableValuesId?: string | undefined; variableValuesData?: { values: { name: string; value: string; }[]; } | undefined; backend?: { type: "small" | "medium" | "large" | "xsmall"; context?: string | undefined; } | undefined; executor?: "dind" | "k8sContainers" | undefined; delayedStartTime?: string | undefined; delay?: number | undefined; onlyFlowTaskIds?: string[] | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; }, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; isSuccess: boolean | null; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }>`
|
|
8
|
+
- `api.queue.getJob(jobId: string, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; isSuccess: boolean | null; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }>`
|
|
9
9
|
- `api.queue.getOrchestrationRerunPlan(jobId: string, signal?: AbortSignal | undefined): Promise<{ jobId?: string | undefined; configId?: string | null | undefined; matchedTasks?: { taskId?: string | undefined; matched?: boolean | undefined; jobId?: string | null | undefined; componentId?: string | null | undefined; configId?: string | null | undefined; status?: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled" | undefined; }[] | undefined; }>`
|
|
10
10
|
- `api.queue.healthCheck(signal?: AbortSignal | undefined): Promise<unknown>`
|
|
11
|
-
- `api.queue.killJob(jobId: string, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }>`
|
|
12
|
-
- `api.queue.poller({ id, component }: { id: string; component: string; }, { interval, maxAttempts, timeout, signal }?: QueueJobPollOptions): Poller<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }>`
|
|
13
|
-
- `api.queue.searchAllJobs(query: { branchId?: string[] | undefined; runId?: string[] | undefined; mode?: ("run" | "debug")[] | undefined; componentId?: string[] | undefined; configId?: string[] | undefined; id?: string[] | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; config?: string[] | undefined; component?: string[] | undefined; tokenId?: string[] | undefined; tokenDescription?: string[] | undefined; configRowIds?: string[] | undefined; status?: ("error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled")[] | undefined; componentProps?: { type?: string | undefined; } | undefined; createdTimeFrom?: string | undefined; createdTimeTo?: string | undefined; startTimeFrom?: string | undefined; startTimeTo?: string | undefined; endTimeFrom?: string | undefined; endTimeTo?: string | undefined; durationSecondsFrom?: number | undefined; durationSecondsTo?: number | undefined; limit?: number | undefined; sortBy?: "branchId" | "runId" | "componentId" | "projectId" | "configId" | "id" | "tokenDescription" | "status" | "createdTime" | "durationSeconds" | "startTime" | "endTime" | "updatedTime" | undefined; sortOrder?: "asc" | "desc" | undefined; parentRunId?: string | undefined; }, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }[]>`
|
|
14
|
-
- `api.queue.searchGroupedJobs(query: { groupBy: ("branchId" | "componentId" | "projectId" | "configId")[]; jobsPerGroup?: number | undefined; sortBy?: "branchId" | "runId" | "componentId" | "projectId" | "configId" | "id" | "tokenDescription" | "status" | "createdTime" | "durationSeconds" | "startTime" | "endTime" | "updatedTime" | undefined; sortOrder?: "asc" | "desc" | undefined; limit?: number | undefined; id?: number[] | undefined; runId?: string[] | undefined; branchId?: string[] | undefined; configId?: string[] | undefined; config?: string[] | undefined; configRowIds?: string[] | undefined; projectId?: string[] | undefined; tokenId?: string[] | undefined; tokenDescription?: string[] | undefined; componentId?: string[] | undefined; component?: string[] | undefined; status?: string[] | undefined; desiredStatus?: string[] | undefined; mode?: string[] | undefined; tag?: string[] | undefined; startTimeFrom?: string | undefined; startTimeTo?: string | undefined; createdTimeFrom?: string | undefined; createdTimeTo?: string | undefined; endTimeFrom?: string | undefined; endTimeTo?: string | undefined; durationSecondsFrom?: number | undefined; durationSecondsTo?: number | undefined; variableValuesId?: string[] | undefined; parentRunId?: string[] | undefined; type?: string[] | undefined; componentProps?: { type?: string | undefined; } | undefined; }, signal?: AbortSignal | undefined): Promise<{ group?: { [key: string]: string; } | undefined; jobs?: { id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }[] | undefined; }[]>`
|
|
15
|
-
- `api.queue.searchJobs(query?: { id?: string[] | undefined; runId?: string[] | undefined; branchId?: string[] | undefined; tokenId?: string[] | undefined; tokenDescription?: string[] | undefined; componentId?: string[] | undefined; component?: string[] | undefined; configId?: string[] | undefined; config?: string[] | undefined; configRowIds?: string[] | undefined; mode?: ("run" | "debug")[] | undefined; status?: ("error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled")[] | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; componentProps?: { type?: string | undefined; } | undefined; createdTimeFrom?: string | undefined; createdTimeTo?: string | undefined; startTimeFrom?: string | undefined; startTimeTo?: string | undefined; endTimeFrom?: string | undefined; endTimeTo?: string | undefined; durationSecondsFrom?: number | undefined; durationSecondsTo?: number | undefined; offset?: number | undefined; limit?: number | undefined; sortBy?: "branchId" | "runId" | "componentId" | "projectId" | "configId" | "id" | "tokenDescription" | "status" | "createdTime" | "durationSeconds" | "startTime" | "endTime" | "updatedTime" | undefined; sortOrder?: "asc" | "desc" | undefined; parentRunId?: string | undefined; } | undefined, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }[]>`
|
|
11
|
+
- `api.queue.killJob(jobId: string, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; isSuccess: boolean | null; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }>`
|
|
12
|
+
- `api.queue.poller({ id, component }: { id: string; component: string; }, { interval, maxAttempts, timeout, signal }?: QueueJobPollOptions): Poller<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; isSuccess: boolean | null; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }>`
|
|
13
|
+
- `api.queue.searchAllJobs(query: { branchId?: string[] | undefined; runId?: string[] | undefined; mode?: ("run" | "debug")[] | undefined; componentId?: string[] | undefined; configId?: string[] | undefined; id?: string[] | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; config?: string[] | undefined; component?: string[] | undefined; tokenId?: string[] | undefined; tokenDescription?: string[] | undefined; configRowIds?: string[] | undefined; status?: ("error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled")[] | undefined; componentProps?: { type?: string | undefined; } | undefined; createdTimeFrom?: string | undefined; createdTimeTo?: string | undefined; startTimeFrom?: string | undefined; startTimeTo?: string | undefined; endTimeFrom?: string | undefined; endTimeTo?: string | undefined; durationSecondsFrom?: number | undefined; durationSecondsTo?: number | undefined; limit?: number | undefined; sortBy?: "branchId" | "runId" | "componentId" | "projectId" | "configId" | "id" | "tokenDescription" | "status" | "createdTime" | "durationSeconds" | "startTime" | "endTime" | "updatedTime" | undefined; sortOrder?: "asc" | "desc" | undefined; parentRunId?: string | undefined; }, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; isSuccess: boolean | null; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }[]>`
|
|
14
|
+
- `api.queue.searchGroupedJobs(query: { groupBy: ("branchId" | "componentId" | "projectId" | "configId")[]; jobsPerGroup?: number | undefined; sortBy?: "branchId" | "runId" | "componentId" | "projectId" | "configId" | "id" | "tokenDescription" | "status" | "createdTime" | "durationSeconds" | "startTime" | "endTime" | "updatedTime" | undefined; sortOrder?: "asc" | "desc" | undefined; limit?: number | undefined; id?: number[] | undefined; runId?: string[] | undefined; branchId?: string[] | undefined; configId?: string[] | undefined; config?: string[] | undefined; configRowIds?: string[] | undefined; projectId?: string[] | undefined; tokenId?: string[] | undefined; tokenDescription?: string[] | undefined; componentId?: string[] | undefined; component?: string[] | undefined; status?: string[] | undefined; desiredStatus?: string[] | undefined; mode?: string[] | undefined; tag?: string[] | undefined; startTimeFrom?: string | undefined; startTimeTo?: string | undefined; createdTimeFrom?: string | undefined; createdTimeTo?: string | undefined; endTimeFrom?: string | undefined; endTimeTo?: string | undefined; durationSecondsFrom?: number | undefined; durationSecondsTo?: number | undefined; variableValuesId?: string[] | undefined; parentRunId?: string[] | undefined; type?: string[] | undefined; componentProps?: { type?: string | undefined; } | undefined; }, signal?: AbortSignal | undefined): Promise<{ group?: { [key: string]: string; } | undefined; jobs?: { id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; isSuccess: boolean | null; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }[] | undefined; }[]>`
|
|
15
|
+
- `api.queue.searchJobs(query?: { id?: string[] | undefined; runId?: string[] | undefined; branchId?: string[] | undefined; tokenId?: string[] | undefined; tokenDescription?: string[] | undefined; componentId?: string[] | undefined; component?: string[] | undefined; configId?: string[] | undefined; config?: string[] | undefined; configRowIds?: string[] | undefined; mode?: ("run" | "debug")[] | undefined; status?: ("error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled")[] | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; componentProps?: { type?: string | undefined; } | undefined; createdTimeFrom?: string | undefined; createdTimeTo?: string | undefined; startTimeFrom?: string | undefined; startTimeTo?: string | undefined; endTimeFrom?: string | undefined; endTimeTo?: string | undefined; durationSecondsFrom?: number | undefined; durationSecondsTo?: number | undefined; offset?: number | undefined; limit?: number | undefined; sortBy?: "branchId" | "runId" | "componentId" | "projectId" | "configId" | "id" | "tokenDescription" | "status" | "createdTime" | "durationSeconds" | "startTime" | "endTime" | "updatedTime" | undefined; sortOrder?: "asc" | "desc" | undefined; parentRunId?: string | undefined; } | undefined, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; isSuccess: boolean | null; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; onlyFlowTaskIds?: string[] | null | undefined; }[]>`
|
package/surface/storage.md
CHANGED
|
@@ -138,13 +138,13 @@ Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
|
138
138
|
|
|
139
139
|
### `api.storage.files`
|
|
140
140
|
|
|
141
|
-
- `api.storage.files.addFileTag({ fileId, ...body }: AddFileTagInput): Promise<void>`
|
|
142
|
-
- `api.storage.files.deleteFile(fileId: number): Promise<void>`
|
|
143
|
-
- `api.storage.files.deleteFileTag(path: { fileId: number; tagName: string; }): Promise<void>`
|
|
144
|
-
- `api.storage.files.getFile(fileId: number, signal?: AbortSignal | undefined): Promise<File>`
|
|
145
|
-
- `api.storage.files.getFileContent(fileId: number, signal?: AbortSignal | undefined): Promise<string>`
|
|
146
|
-
- `api.storage.files.getFiles(
|
|
147
|
-
- `api.storage.files.prepareFile(body:
|
|
141
|
+
- `api.storage.files.addFileTag({ branchId, fileId, ...body }: AddFileTagInput): Promise<void>`
|
|
142
|
+
- `api.storage.files.deleteFile(path: { fileId: number; branchId: string; }): Promise<void>`
|
|
143
|
+
- `api.storage.files.deleteFileTag(path: { fileId: number; tagName: string; branchId: string; }): Promise<void>`
|
|
144
|
+
- `api.storage.files.getFile(path: { fileId: number; branchId: string; }, signal?: AbortSignal | undefined): Promise<File>`
|
|
145
|
+
- `api.storage.files.getFileContent(path: { fileId: number; branchId: string; }, signal?: AbortSignal | undefined): Promise<string>`
|
|
146
|
+
- `api.storage.files.getFiles({ branchId, ...query }: GetFilesInput, signal?: AbortSignal | undefined): Promise<File[]>`
|
|
147
|
+
- `api.storage.files.prepareFile({ branchId, ...body }: PrepareFileInput, signal?: AbortSignal | undefined): Promise<{ id: number; created: string; isPublic: boolean; isSliced: boolean; isEncrypted: boolean; name: string; fileType: string; url: string; provider: "aws" | "azure" | "gcp"; region: string; sizeBytes?: number | null | undefined; tags: string[]; maxAgeDays?: number | null | undefined; runId?: string | null | undefined; runIds: string[]; creatorToken: { id?: number | undefined; description?: string | undefined; }; } & { uploadParams?: { key?: string | undefined; bucket?: string | undefined; acl?: "private" | "public-read" | undefined; credentials?: { AccessKeyId?: string | undefined; SecretAccessKey?: string | undefined; SessionToken?: string | undefined; Expiration?: string | undefined; } | undefined; 'x-amz-server-side-encryption'?: string | undefined; } | null | undefined; absUploadParams?: { blobName?: string | undefined; accountName?: string | undefined; container?: string | undefined; absCredentials?: { SASConnectionString?: string | undefined; expiration?: string | undefined; } | undefined; } | null | undefined; gcsUploadParams?: { projectId?: string | undefined; bucket?: string | undefined; key?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; token_type?: string | undefined; } | null | undefined; }>`
|
|
148
148
|
|
|
149
149
|
### `api.storage.jobs`
|
|
150
150
|
|
|
File without changes
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as DashboardId, i as BusinessWorkspaceDashboardSummary, o as DashboardInput, r as BusinessWorkspaceDashboard, t as BusinessWorkspaceApiClient } from "../businessWorkspaceApiClient-BHDJlHFo.cjs";
|
|
2
|
-
export { type BusinessWorkspaceApiClient, BusinessWorkspaceDashboard, BusinessWorkspaceDashboardSummary, DashboardId, DashboardInput };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as DashboardId, i as BusinessWorkspaceDashboardSummary, o as DashboardInput, r as BusinessWorkspaceDashboard, t as BusinessWorkspaceApiClient } from "../businessWorkspaceApiClient-DI-z1VIH.js";
|
|
2
|
-
export { type BusinessWorkspaceApiClient, BusinessWorkspaceDashboard, BusinessWorkspaceDashboardSummary, DashboardId, DashboardInput };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-BxcLLU_N.js";
|
|
2
|
-
import { t as createAuthHeaders } from "./auth-DUHTJTwS.js";
|
|
3
|
-
//#region src/clients/businessWorkspaceApi/businessWorkspaceApiClient.ts
|
|
4
|
-
/**
|
|
5
|
-
* Client for `business-workspace-api` — per-user, cross-project Business Workspace dashboards.
|
|
6
|
-
*
|
|
7
|
-
* - Every dashboard call carries the caller's Storage token; the service scopes rows to the
|
|
8
|
-
* verified user.
|
|
9
|
-
* - `/health` is public: it goes through `publicMiddlewares` (no token-attaching middleware) and
|
|
10
|
-
* carries no auth headers.
|
|
11
|
-
* - A dashboard owned by another user is a 404, never a 403.
|
|
12
|
-
*/
|
|
13
|
-
const createBusinessWorkspaceApiClient = ({ baseUrl, middlewares, publicMiddlewares = [], auth }) => {
|
|
14
|
-
const client = createOpenapiFetchClient({
|
|
15
|
-
baseUrl,
|
|
16
|
-
middlewares,
|
|
17
|
-
headers: createAuthHeaders(auth)
|
|
18
|
-
});
|
|
19
|
-
const publicClient = createOpenapiFetchClient({
|
|
20
|
-
baseUrl,
|
|
21
|
-
middlewares: publicMiddlewares
|
|
22
|
-
});
|
|
23
|
-
const healthCheck = async (signal) => {
|
|
24
|
-
const { data } = await publicClient.get("/health", {}, { signal });
|
|
25
|
-
return data;
|
|
26
|
-
};
|
|
27
|
-
const getDashboards = async (signal) => {
|
|
28
|
-
const { data } = await client.get("/api/dashboards", {}, { signal });
|
|
29
|
-
return data;
|
|
30
|
-
};
|
|
31
|
-
const getDashboard = async (id, signal) => {
|
|
32
|
-
const { data } = await client.get("/api/dashboards/{id}", { path: { id } }, { signal });
|
|
33
|
-
return data;
|
|
34
|
-
};
|
|
35
|
-
const createDashboard = async (input, signal) => {
|
|
36
|
-
const { data } = await client.post("/api/dashboards", { body: input }, { signal });
|
|
37
|
-
return data;
|
|
38
|
-
};
|
|
39
|
-
const updateDashboard = async (id, input, signal) => {
|
|
40
|
-
const { data } = await client.put("/api/dashboards/{id}", {
|
|
41
|
-
path: { id },
|
|
42
|
-
body: input
|
|
43
|
-
}, { signal });
|
|
44
|
-
return data;
|
|
45
|
-
};
|
|
46
|
-
const deleteDashboard = async (id, signal) => {
|
|
47
|
-
await client.delete("/api/dashboards/{id}", { path: { id } }, { signal });
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
healthCheck,
|
|
51
|
-
getDashboards,
|
|
52
|
-
getDashboard,
|
|
53
|
-
createDashboard,
|
|
54
|
-
updateDashboard,
|
|
55
|
-
deleteDashboard
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
export { createBusinessWorkspaceApiClient as t };
|
|
60
|
-
|
|
61
|
-
//# sourceMappingURL=businessWorkspaceApi-DFky1k61.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"businessWorkspaceApi-DFky1k61.js","names":[],"sources":["../src/clients/businessWorkspaceApi/businessWorkspaceApiClient.ts"],"sourcesContent":["import { createOpenapiFetchClient, type MiddlewareFn } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type { DashboardId, DashboardInput } from './types';\n\n/**\n * Client for `business-workspace-api` — per-user, cross-project Business Workspace dashboards.\n *\n * - Every dashboard call carries the caller's Storage token; the service scopes rows to the\n * verified user.\n * - `/health` is public: it goes through `publicMiddlewares` (no token-attaching middleware) and\n * carries no auth headers.\n * - A dashboard owned by another user is a 404, never a 403.\n */\nexport const createBusinessWorkspaceApiClient = ({\n baseUrl,\n middlewares,\n publicMiddlewares = [],\n auth,\n}: ClientInitOptions & { publicMiddlewares?: MiddlewareFn[] }) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const publicClient = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares: publicMiddlewares,\n });\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await publicClient.get('/health', {}, { signal });\n return data;\n };\n\n const getDashboards = async (signal?: AbortSignal) => {\n const { data } = await client.get('/api/dashboards', {}, { signal });\n return data;\n };\n\n const getDashboard = async (id: DashboardId, signal?: AbortSignal) => {\n const { data } = await client.get('/api/dashboards/{id}', { path: { id } }, { signal });\n return data;\n };\n\n const createDashboard = async (input: DashboardInput, signal?: AbortSignal) => {\n const { data } = await client.post('/api/dashboards', { body: input }, { signal });\n return data;\n };\n\n const updateDashboard = async (id: DashboardId, input: DashboardInput, signal?: AbortSignal) => {\n const { data } = await client.put(\n '/api/dashboards/{id}',\n { path: { id }, body: input },\n { signal },\n );\n return data;\n };\n\n const deleteDashboard = async (id: DashboardId, signal?: AbortSignal) => {\n await client.delete('/api/dashboards/{id}', { path: { id } }, { signal });\n };\n\n return {\n healthCheck,\n getDashboards,\n getDashboard,\n createDashboard,\n updateDashboard,\n deleteDashboard,\n };\n};\n\nexport type BusinessWorkspaceApiClient = ReturnType<typeof createBusinessWorkspaceApiClient>;\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,oCAAoC,EAC/C,SACA,aACA,oBAAoB,CAAC,GACrB,WACgE;CAChE,MAAM,SAAS,yBAAgC;EAC7C;EACA;EACA,SAAS,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,eAAe,yBAAgC;EACnD;EACA,aAAa;CACf,CAAC;CAED,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,aAAa,IAAI,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC;EACjE,OAAO;CACT;CAEA,MAAM,gBAAgB,OAAO,WAAyB;EACpD,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,mBAAmB,CAAC,GAAG,EAAE,OAAO,CAAC;EACnE,OAAO;CACT;CAEA,MAAM,eAAe,OAAO,IAAiB,WAAyB;EACpE,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,wBAAwB,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC;EACtF,OAAO;CACT;CAEA,MAAM,kBAAkB,OAAO,OAAuB,WAAyB;EAC7E,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,mBAAmB,EAAE,MAAM,MAAM,GAAG,EAAE,OAAO,CAAC;EACjF,OAAO;CACT;CAEA,MAAM,kBAAkB,OAAO,IAAiB,OAAuB,WAAyB;EAC9F,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,wBACA;GAAE,MAAM,EAAE,GAAG;GAAG,MAAM;EAAM,GAC5B,EAAE,OAAO,CACX;EACA,OAAO;CACT;CAEA,MAAM,kBAAkB,OAAO,IAAiB,WAAyB;EACvE,MAAM,OAAO,OAAO,wBAAwB,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC;CAC1E;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-DY5s-aH6.cjs");
|
|
2
|
-
const require_auth = require("./auth-zfI04oj7.cjs");
|
|
3
|
-
//#region src/clients/businessWorkspaceApi/businessWorkspaceApiClient.ts
|
|
4
|
-
/**
|
|
5
|
-
* Client for `business-workspace-api` — per-user, cross-project Business Workspace dashboards.
|
|
6
|
-
*
|
|
7
|
-
* - Every dashboard call carries the caller's Storage token; the service scopes rows to the
|
|
8
|
-
* verified user.
|
|
9
|
-
* - `/health` is public: it goes through `publicMiddlewares` (no token-attaching middleware) and
|
|
10
|
-
* carries no auth headers.
|
|
11
|
-
* - A dashboard owned by another user is a 404, never a 403.
|
|
12
|
-
*/
|
|
13
|
-
const createBusinessWorkspaceApiClient = ({ baseUrl, middlewares, publicMiddlewares = [], auth }) => {
|
|
14
|
-
const client = require_createOpenapiFetchClient.createOpenapiFetchClient({
|
|
15
|
-
baseUrl,
|
|
16
|
-
middlewares,
|
|
17
|
-
headers: require_auth.createAuthHeaders(auth)
|
|
18
|
-
});
|
|
19
|
-
const publicClient = require_createOpenapiFetchClient.createOpenapiFetchClient({
|
|
20
|
-
baseUrl,
|
|
21
|
-
middlewares: publicMiddlewares
|
|
22
|
-
});
|
|
23
|
-
const healthCheck = async (signal) => {
|
|
24
|
-
const { data } = await publicClient.get("/health", {}, { signal });
|
|
25
|
-
return data;
|
|
26
|
-
};
|
|
27
|
-
const getDashboards = async (signal) => {
|
|
28
|
-
const { data } = await client.get("/api/dashboards", {}, { signal });
|
|
29
|
-
return data;
|
|
30
|
-
};
|
|
31
|
-
const getDashboard = async (id, signal) => {
|
|
32
|
-
const { data } = await client.get("/api/dashboards/{id}", { path: { id } }, { signal });
|
|
33
|
-
return data;
|
|
34
|
-
};
|
|
35
|
-
const createDashboard = async (input, signal) => {
|
|
36
|
-
const { data } = await client.post("/api/dashboards", { body: input }, { signal });
|
|
37
|
-
return data;
|
|
38
|
-
};
|
|
39
|
-
const updateDashboard = async (id, input, signal) => {
|
|
40
|
-
const { data } = await client.put("/api/dashboards/{id}", {
|
|
41
|
-
path: { id },
|
|
42
|
-
body: input
|
|
43
|
-
}, { signal });
|
|
44
|
-
return data;
|
|
45
|
-
};
|
|
46
|
-
const deleteDashboard = async (id, signal) => {
|
|
47
|
-
await client.delete("/api/dashboards/{id}", { path: { id } }, { signal });
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
healthCheck,
|
|
51
|
-
getDashboards,
|
|
52
|
-
getDashboard,
|
|
53
|
-
createDashboard,
|
|
54
|
-
updateDashboard,
|
|
55
|
-
deleteDashboard
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
Object.defineProperty(exports, "createBusinessWorkspaceApiClient", {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function() {
|
|
62
|
-
return createBusinessWorkspaceApiClient;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=businessWorkspaceApi-Uzqu0PJM.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"businessWorkspaceApi-Uzqu0PJM.cjs","names":["createOpenapiFetchClient","createAuthHeaders"],"sources":["../src/clients/businessWorkspaceApi/businessWorkspaceApiClient.ts"],"sourcesContent":["import { createOpenapiFetchClient, type MiddlewareFn } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type { DashboardId, DashboardInput } from './types';\n\n/**\n * Client for `business-workspace-api` — per-user, cross-project Business Workspace dashboards.\n *\n * - Every dashboard call carries the caller's Storage token; the service scopes rows to the\n * verified user.\n * - `/health` is public: it goes through `publicMiddlewares` (no token-attaching middleware) and\n * carries no auth headers.\n * - A dashboard owned by another user is a 404, never a 403.\n */\nexport const createBusinessWorkspaceApiClient = ({\n baseUrl,\n middlewares,\n publicMiddlewares = [],\n auth,\n}: ClientInitOptions & { publicMiddlewares?: MiddlewareFn[] }) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const publicClient = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares: publicMiddlewares,\n });\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await publicClient.get('/health', {}, { signal });\n return data;\n };\n\n const getDashboards = async (signal?: AbortSignal) => {\n const { data } = await client.get('/api/dashboards', {}, { signal });\n return data;\n };\n\n const getDashboard = async (id: DashboardId, signal?: AbortSignal) => {\n const { data } = await client.get('/api/dashboards/{id}', { path: { id } }, { signal });\n return data;\n };\n\n const createDashboard = async (input: DashboardInput, signal?: AbortSignal) => {\n const { data } = await client.post('/api/dashboards', { body: input }, { signal });\n return data;\n };\n\n const updateDashboard = async (id: DashboardId, input: DashboardInput, signal?: AbortSignal) => {\n const { data } = await client.put(\n '/api/dashboards/{id}',\n { path: { id }, body: input },\n { signal },\n );\n return data;\n };\n\n const deleteDashboard = async (id: DashboardId, signal?: AbortSignal) => {\n await client.delete('/api/dashboards/{id}', { path: { id } }, { signal });\n };\n\n return {\n healthCheck,\n getDashboards,\n getDashboard,\n createDashboard,\n updateDashboard,\n deleteDashboard,\n };\n};\n\nexport type BusinessWorkspaceApiClient = ReturnType<typeof createBusinessWorkspaceApiClient>;\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,oCAAoC,EAC/C,SACA,aACA,oBAAoB,CAAC,GACrB,WACgE;CAChE,MAAM,SAASA,iCAAAA,yBAAgC;EAC7C;EACA;EACA,SAASC,aAAAA,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,eAAeD,iCAAAA,yBAAgC;EACnD;EACA,aAAa;CACf,CAAC;CAED,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,aAAa,IAAI,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC;EACjE,OAAO;CACT;CAEA,MAAM,gBAAgB,OAAO,WAAyB;EACpD,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,mBAAmB,CAAC,GAAG,EAAE,OAAO,CAAC;EACnE,OAAO;CACT;CAEA,MAAM,eAAe,OAAO,IAAiB,WAAyB;EACpE,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,wBAAwB,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC;EACtF,OAAO;CACT;CAEA,MAAM,kBAAkB,OAAO,OAAuB,WAAyB;EAC7E,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,mBAAmB,EAAE,MAAM,MAAM,GAAG,EAAE,OAAO,CAAC;EACjF,OAAO;CACT;CAEA,MAAM,kBAAkB,OAAO,IAAiB,OAAuB,WAAyB;EAC9F,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,wBACA;GAAE,MAAM,EAAE,GAAG;GAAG,MAAM;EAAM,GAC5B,EAAE,OAAO,CACX;EACA,OAAO;CACT;CAEA,MAAM,kBAAkB,OAAO,IAAiB,WAAyB;EACvE,MAAM,OAAO,OAAO,wBAAwB,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC;CAC1E;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|