@keboola/api-client 44.0.0 → 46.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/CHANGELOG.md +32 -0
- package/dist/ManagementSessionMintError-5FFyvBZi.js +36 -0
- package/dist/ManagementSessionMintError-5FFyvBZi.js.map +1 -0
- package/dist/ManagementSessionMintError-Bm8s6yDB.cjs +47 -0
- package/dist/ManagementSessionMintError-Bm8s6yDB.cjs.map +1 -0
- package/dist/ai/index.d.cts +2 -2
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/types.d.cts +1 -1
- package/dist/ai/types.d.ts +1 -1
- package/dist/{appLogs-BS6ViVGR.d.ts → appLogs-DGIctwbb.d.ts} +2 -2
- package/dist/{appLogs-C9YlJ2g8.d.cts → appLogs-Dl0v684o.d.cts} +2 -2
- package/dist/apps/index.d.cts +3 -3
- package/dist/apps/index.d.ts +3 -3
- package/dist/apps/types.d.cts +2 -2
- package/dist/apps/types.d.ts +2 -2
- package/dist/assets/index.d.cts +1 -1
- package/dist/assets/index.d.ts +1 -1
- package/dist/auth/index.d.cts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/types.d.cts +1 -1
- package/dist/auth/types.d.ts +1 -1
- package/dist/{authClient-CBVAT3v9.d.cts → authClient-DSa5t2Ft.d.cts} +27 -33
- package/dist/{authClient-CRumc934.d.ts → authClient-ZiaKSKpp.d.ts} +27 -33
- package/dist/billing/index.d.cts +1 -1
- package/dist/billing/index.d.ts +1 -1
- package/dist/billing/types.d.cts +1 -1
- package/dist/billing/types.d.ts +1 -1
- package/dist/chat/index.d.cts +2 -2
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat/types.d.cts +1 -1
- package/dist/chat/types.d.ts +1 -1
- package/dist/dataScience/index.d.cts +2 -2
- package/dist/dataScience/index.d.ts +2 -2
- package/dist/dataScience/types.d.cts +2 -2
- package/dist/dataScience/types.d.ts +2 -2
- package/dist/developerPortal/index.d.cts +2 -2
- package/dist/developerPortal/index.d.ts +2 -2
- package/dist/developerPortal/types.d.cts +1 -1
- package/dist/developerPortal/types.d.ts +1 -1
- package/dist/domain/permissions/index.cjs +1 -1
- package/dist/domain/permissions/index.d.cts +2 -2
- package/dist/domain/permissions/index.d.ts +2 -2
- package/dist/domain/permissions/index.js +1 -1
- package/dist/editor/index.d.cts +2 -2
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/types.d.cts +1 -1
- package/dist/editor/types.d.ts +1 -1
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/import/index.d.cts +3 -3
- package/dist/import/index.d.ts +3 -3
- package/dist/{index-DzGmgUvQ.d.ts → index-BP3choXr.d.ts} +578 -526
- package/dist/{index-04pgr-EO.d.cts → index-BhDxP0x4.d.cts} +4 -4
- package/dist/{index-zyxZVJnd.d.ts → index-BnPYPXGQ.d.ts} +3 -3
- package/dist/{index-D9UsQOuT.d.cts → index-Bt43tKyu.d.cts} +5 -5
- package/dist/{index-BVhHt5lx.d.cts → index-BzhLY7el.d.cts} +15 -2
- package/dist/{index-CWPi7lBF.d.ts → index-CH5Sg3rk.d.ts} +6 -6
- package/dist/{index-Cvkrjh--.d.cts → index-CTKC-mwi.d.cts} +30 -4
- package/dist/{index-DkCXaYsn.d.cts → index-CiwWDu-q.d.cts} +3 -3
- package/dist/{index-DINB7vsV.d.cts → index-D-4TT5yW.d.cts} +4 -4
- package/dist/{index-Bf8dr2KQ.d.ts → index-DCAnnlcL.d.ts} +3 -3
- package/dist/{index-CA6QxbhZ.d.ts → index-DCxVLGHH.d.ts} +239 -236
- package/dist/{index-Dd40ojPr.d.cts → index-DQwjlSJi.d.cts} +6 -6
- package/dist/{index-BCgmwncs.d.ts → index-DRaVzOLM.d.ts} +5 -5
- package/dist/{index-BMiZx-4_.d.cts → index-DS6O4UDB.d.cts} +4 -4
- package/dist/{index-B72LTF-k.d.ts → index-DWFxcmVD.d.ts} +4 -4
- package/dist/{index-CGCXR_6Q.d.ts → index-DXcTukgn.d.ts} +4 -4
- package/dist/{index-DkvrbR2i.d.cts → index-GVxpBH6j.d.cts} +239 -236
- package/dist/{index-BgR5zcjJ.d.ts → index-PyTPrtaL.d.ts} +15 -2
- package/dist/{index-R-w0Zncz.d.ts → index-se5ee8U1.d.ts} +4 -4
- package/dist/{index-DZcQUZaO.d.cts → index-syAYY5LC.d.cts} +578 -526
- package/dist/{index-BHWTa4YN.d.cts → index-x8ET_BTN.d.cts} +3 -3
- package/dist/{index-CX8GAP2g.d.ts → index-yJ0HrxY6.d.ts} +30 -4
- package/dist/index.cjs +36 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +33 -9
- package/dist/index.js.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.d.cts +2 -2
- package/dist/kaiAgent/index.d.ts +2 -2
- package/dist/kaiAgent/types.d.cts +1 -1
- package/dist/kaiAgent/types.d.ts +1 -1
- package/dist/management/index.cjs +2 -1
- package/dist/management/index.d.cts +2 -2
- package/dist/management/index.d.ts +2 -2
- package/dist/management/index.js +2 -2
- package/dist/management/types.d.cts +1 -1
- package/dist/management/types.d.ts +1 -1
- package/dist/{management-C5lf9nsU.cjs → management-0cWVLHei.cjs} +25 -6
- package/dist/management-0cWVLHei.cjs.map +1 -0
- package/dist/{management-WAtKH6Tu.js → management-eg4Ig-Cx.js} +18 -5
- package/dist/management-eg4Ig-Cx.js.map +1 -0
- package/dist/metastore/index.d.cts +1 -1
- package/dist/metastore/index.d.ts +1 -1
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/microsoftGraph/index.d.cts +3 -3
- package/dist/microsoftGraph/index.d.ts +3 -3
- package/dist/microsoftGraph/types.d.cts +2 -2
- package/dist/microsoftGraph/types.d.ts +2 -2
- package/dist/notifications/index.d.cts +2 -2
- package/dist/notifications/index.d.ts +2 -2
- package/dist/notifications/types.d.cts +1 -1
- package/dist/notifications/types.d.ts +1 -1
- package/dist/oauth/index.d.cts +2 -2
- package/dist/oauth/index.d.ts +2 -2
- package/dist/oauth/types.d.cts +1 -1
- package/dist/oauth/types.d.ts +1 -1
- package/dist/omnisearch/index.d.cts +2 -2
- package/dist/omnisearch/index.d.ts +2 -2
- package/dist/omnisearch/types.d.cts +1 -1
- package/dist/omnisearch/types.d.ts +1 -1
- package/dist/{project-B8wtlstY.d.cts → project-BN7YRWFS.d.cts} +8 -2
- package/dist/{project-DWwZv66D.js → project-BXLFrWJ6.js} +7 -1
- package/dist/project-BXLFrWJ6.js.map +1 -0
- package/dist/{project-BCc3mpAy.d.ts → project-BpWTnoQ_.d.ts} +8 -2
- package/dist/{project-BvFi19K_.cjs → project-CpgplgCr.cjs} +7 -1
- package/dist/project-CpgplgCr.cjs.map +1 -0
- 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/types.d.cts +1 -1
- package/dist/queryService/types.d.ts +1 -1
- package/dist/{queryService-OgdbrBjA.js → queryService-Blfz59Ms.js} +2 -2
- package/dist/{queryService-OgdbrBjA.js.map → queryService-Blfz59Ms.js.map} +1 -1
- package/dist/{queryService-e2ql5eev.cjs → queryService-RlNYw7LG.cjs} +2 -2
- package/dist/{queryService-e2ql5eev.cjs.map → queryService-RlNYw7LG.cjs.map} +1 -1
- package/dist/queue/index.cjs +1 -1
- package/dist/queue/index.d.cts +9 -3
- package/dist/queue/index.d.ts +9 -3
- 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-DGoMbK1X.cjs → queue-BrgRdtOr.cjs} +2 -2
- package/dist/{queue-DGoMbK1X.cjs.map → queue-BrgRdtOr.cjs.map} +1 -1
- package/dist/{queue-BZwZuZZx.js → queue-CNvR-M23.js} +2 -2
- package/dist/{queue-BZwZuZZx.js.map → queue-CNvR-M23.js.map} +1 -1
- package/dist/scheduler/index.d.cts +2 -2
- package/dist/scheduler/index.d.ts +2 -2
- package/dist/scheduler/types.d.cts +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/{schema-DJa9WBjR.d.cts → schema-BUyMwQnM.d.cts} +7 -1
- package/dist/{schema-DJa9WBjR.d.ts → schema-BUyMwQnM.d.ts} +7 -1
- package/dist/sdk/configurations/index.d.cts +4 -4
- package/dist/sdk/configurations/index.d.ts +4 -4
- package/dist/sdk/developerPortal/index.d.cts +29 -3
- package/dist/sdk/developerPortal/index.d.ts +29 -3
- package/dist/sdk/kaiMemory/index.d.cts +1 -1
- package/dist/sdk/kaiMemory/index.d.ts +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-Cz22bIjd.cjs → semanticLayer-7BejcMj_.cjs} +10 -84
- package/dist/semanticLayer-7BejcMj_.cjs.map +1 -0
- package/dist/{semanticLayer-JSE51K68.js → semanticLayer-DvjS_nzo.js} +11 -79
- package/dist/semanticLayer-DvjS_nzo.js.map +1 -0
- package/dist/status/index.d.cts +1 -1
- package/dist/status/index.d.ts +1 -1
- package/dist/storage/index.cjs +4 -3
- package/dist/storage/index.d.cts +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +3 -3
- package/dist/storage/types.d.cts +2 -2
- package/dist/storage/types.d.ts +2 -2
- package/dist/{storage-B4AnXas_.cjs → storage-76Sf_z_H.cjs} +2 -2
- package/dist/{storage-B4AnXas_.cjs.map → storage-76Sf_z_H.cjs.map} +1 -1
- package/dist/{storage-CsdA47AL.js → storage-RkNaOFJ-.js} +2 -2
- package/dist/{storage-CsdA47AL.js.map → storage-RkNaOFJ-.js.map} +1 -1
- package/dist/stream/index.d.cts +2 -2
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/types.d.cts +1 -1
- package/dist/stream/types.d.ts +1 -1
- package/dist/syncActions/index.d.cts +2 -2
- package/dist/syncActions/index.d.ts +2 -2
- package/dist/syncActions/types.d.cts +1 -1
- package/dist/syncActions/types.d.ts +1 -1
- package/dist/telemetry/index.d.cts +2 -2
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/types.d.cts +1 -1
- package/dist/telemetry/types.d.ts +1 -1
- package/dist/{types-DgPt4LY_.d.cts → types--owScV0r.d.cts} +183 -77
- package/dist/{types-CLHaZv9f.d.cts → types-1B3ioN33.d.cts} +3 -3
- package/dist/{types-CAAgCRmE.d.cts → types-5HdT1rSH.d.cts} +13 -2
- package/dist/{types-DaMmgW-O.d.ts → types-B1GN_I06.d.ts} +2 -2
- package/dist/{types-CoJVrRAD.d.ts → types-B5kkD7h4.d.cts} +2 -2
- package/dist/{types-D9axmt5o.d.cts → types-BE7mRarT.d.ts} +8 -2
- package/dist/{types-CcYxlqtB.d.cts → types-BGICH80a.d.cts} +2 -2
- package/dist/{types-BaSlU0uo.d.ts → types-BHxsCu0f.d.ts} +2 -2
- package/dist/{types-CV7jmgtX.d.ts → types-BMWeCO5M.d.ts} +3 -3
- package/dist/{types-CGm2fQKK.d.cts → types-BRvs3fXN.d.cts} +64 -5
- package/dist/{types-CwZgZqrA.d.ts → types-BTqxM-IN.d.ts} +13 -2
- package/dist/{types-DxN2siRW.d.ts → types-BjIuVrAZ.d.ts} +3 -3
- package/dist/{types-DoZtE9tz.d.cts → types-BksK2Eo0.d.cts} +2 -2
- package/dist/{types-DicSaNwq.d.ts → types-BoNqe_Lz.d.ts} +2 -2
- package/dist/{types-CAp1VexS.d.ts → types-Br04cEri.d.ts} +16 -4
- package/dist/{types-CN6huo55.d.ts → types-BtII5RSD.d.ts} +183 -77
- package/dist/types-Btb8r9iw.d.ts +1467 -0
- package/dist/{types-B2w2TtSA.d.ts → types-BuKviWct.d.ts} +2 -2
- package/dist/{types-04GTqleJ.d.cts → types-C05ALlV6.d.cts} +3 -3
- package/dist/{types-DzV6LaZq.d.ts → types-C4yryy-R.d.ts} +132 -5
- package/dist/{types-DyArI_Jq.d.cts → types-C8oZX0oP.d.cts} +4 -8
- package/dist/{types-BhEx9iRx.d.ts → types-CESP1ONj.d.ts} +1364 -1316
- package/dist/{types-ByLH46Dt.d.cts → types-CFurl1xe.d.cts} +2 -2
- package/dist/{types-DUMal2E-.d.cts → types-CGhu0tID.d.cts} +30 -3
- package/dist/{types-QSchmyvO.d.ts → types-CaBhH99H.d.ts} +3 -3
- package/dist/{types-D1A4mAG0.d.cts → types-CclheyE7.d.cts} +3 -3
- package/dist/{types-DrvKfXXd.d.cts → types-CoQET4Ep.d.ts} +2 -2
- package/dist/{types-BiEh5c_t.d.cts → types-Csmy6qFk.d.cts} +132 -5
- package/dist/{types-CgBzm1YR.d.cts → types-CyO8qCKl.d.cts} +2 -2
- package/dist/{types-DlQw6FCi.d.ts → types-DDjp9lXD.d.ts} +2 -2
- package/dist/{types-CBPKpLTf.d.cts → types-DGu-wPPm.d.cts} +169 -2
- package/dist/{types-BgHtMe8s.d.cts → types-DHdXufVf.d.cts} +3 -3
- package/dist/{types-BPy5Ozee.d.cts → types-DMWfdZ5C.d.cts} +2 -2
- package/dist/{types-WZBztugL.d.ts → types-DQauEri3.d.ts} +2 -2
- package/dist/{types-BZDV8DZk.d.ts → types-DSv1XS7s.d.ts} +11 -6
- package/dist/{types-YHUEArkR.d.cts → types-DUDQg4ry.d.cts} +2 -2
- package/dist/{types-CigD_EF5.d.ts → types-DiE081mn.d.ts} +4 -8
- package/dist/{types-CZJlLCbA.d.ts → types-Dvysi2Eo.d.ts} +2 -2
- package/dist/{types-sV9OaqTI.d.cts → types-GaOcVZ3d.d.cts} +1364 -1316
- package/dist/{types-Bydx6ga_.d.cts → types-LxDyOfdY.d.cts} +2 -2
- package/dist/{types-D8pGSkRe.d.ts → types-M9vU_ONp.d.ts} +3 -3
- package/dist/{types-CfwqVkEA.d.ts → types-Nwq1QtYe.d.ts} +2 -2
- package/dist/{types-DwVSj-Da.d.ts → types-P_61P9Nd.d.ts} +30 -3
- package/dist/{types-pvQzbgNE.d.cts → types-QroFANIW.d.cts} +11 -6
- package/dist/{types-Fs4a3mVs.d.ts → types-UI2aZ74n.d.ts} +64 -5
- package/dist/{types-Dd31Lw4S.d.cts → types-XHNJRi3-.d.cts} +2 -2
- package/dist/{types-BBUZ9EHs.d.ts → types-YdE2VJzw.d.cts} +8 -2
- package/dist/{types-DazRtukc.d.ts → types-fAqPUl-a.d.ts} +521 -270
- package/dist/{types-c_bsDkV6.d.cts → types-ggpJFEWZ.d.cts} +16 -4
- package/dist/{types-CaOtNjSZ.d.ts → types-j30rKMe6.d.ts} +2 -2
- package/dist/{types-ePSqbXRr.d.cts → types-q5lgElyc.d.cts} +2 -2
- package/dist/{types-AYX7VtS6.d.ts → types-qGMVZGSB.d.ts} +169 -2
- package/dist/{types-D3wcs4tp.d.ts → types-qWA5iU0j.d.ts} +2 -2
- package/dist/{types-DVt0qlzI.d.cts → types-sI3K5t3w.d.cts} +521 -270
- package/dist/types-sg2xnYlr.d.cts +1467 -0
- package/dist/{types-B8N_k79M.d.cts → types-tJLoKlMX.d.cts} +2 -2
- package/dist/vault/index.d.cts +1 -1
- package/dist/vault/index.d.ts +1 -1
- package/dist/vault/types.d.cts +1 -1
- package/dist/vault/types.d.ts +1 -1
- package/package.json +1 -1
- package/surface/auth.md +19 -19
- package/surface/kaiAgent.md +1 -1
- package/surface/management.md +41 -41
- package/surface/queue.md +7 -7
- package/surface/storage.md +21 -21
- package/dist/ManagementClientAuthError-BcPYxAWZ.js +0 -16
- package/dist/ManagementClientAuthError-BcPYxAWZ.js.map +0 -1
- package/dist/ManagementClientAuthError-DHuykEPF.cjs +0 -21
- package/dist/ManagementClientAuthError-DHuykEPF.cjs.map +0 -1
- package/dist/management-C5lf9nsU.cjs.map +0 -1
- package/dist/management-WAtKH6Tu.js.map +0 -1
- package/dist/project-BvFi19K_.cjs.map +0 -1
- package/dist/project-DWwZv66D.js.map +0 -1
- package/dist/semanticLayer-Cz22bIjd.cjs.map +0 -1
- package/dist/semanticLayer-JSE51K68.js.map +0 -1
- package/dist/types-BhOUS9j1.d.cts +0 -749
- package/dist/types-gcAb6olM.d.ts +0 -749
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as OpenapiReturnType } from "../index-
|
|
2
|
-
import { n as paths } from "../schema-
|
|
1
|
+
import { c as OpenapiReturnType } from "../index-BzhLY7el.cjs";
|
|
2
|
+
import { n as paths } from "../schema-BUyMwQnM.cjs";
|
|
3
3
|
//#region src/clients/microsoftGraph/types.d.ts
|
|
4
4
|
type User = OpenapiReturnType<paths['/me']['get']>;
|
|
5
5
|
type Drive = OpenapiReturnType<paths['/me/drive']['get']>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as OpenapiReturnType } from "../index-
|
|
2
|
-
import { n as paths } from "../schema-
|
|
1
|
+
import { c as OpenapiReturnType } from "../index-PyTPrtaL.js";
|
|
2
|
+
import { n as paths } from "../schema-BUyMwQnM.js";
|
|
3
3
|
//#region src/clients/microsoftGraph/types.d.ts
|
|
4
4
|
type User = OpenapiReturnType<paths['/me']['get']>;
|
|
5
5
|
type Drive = OpenapiReturnType<paths['/me/drive']['get']>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "../types-
|
|
2
|
-
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-
|
|
1
|
+
import { n as ClientInitOptions } from "../types-BksK2Eo0.cjs";
|
|
2
|
+
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-XHNJRi3-.cjs";
|
|
3
3
|
//#region src/clients/notifications/notificationsClient.d.ts
|
|
4
4
|
declare const createNotificationsClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
5
5
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "../types-
|
|
2
|
-
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-
|
|
1
|
+
import { n as ClientInitOptions } from "../types-BuKviWct.js";
|
|
2
|
+
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-qWA5iU0j.js";
|
|
3
3
|
//#region src/clients/notifications/notificationsClient.d.ts
|
|
4
4
|
declare const createNotificationsClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
5
5
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SubscriptionId, i as SubscriptionFilter, n as ListSubscriptionsQuery, o as SubscriptionRecipient, r as ProjectSubscription, t as CreateSubscriptionBody } from "../types-
|
|
1
|
+
import { a as SubscriptionId, i as SubscriptionFilter, n as ListSubscriptionsQuery, o as SubscriptionRecipient, r as ProjectSubscription, t as CreateSubscriptionBody } from "../types-XHNJRi3-.cjs";
|
|
2
2
|
export { CreateSubscriptionBody, ListSubscriptionsQuery, ProjectSubscription, SubscriptionFilter, SubscriptionId, SubscriptionRecipient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SubscriptionId, i as SubscriptionFilter, n as ListSubscriptionsQuery, o as SubscriptionRecipient, r as ProjectSubscription, t as CreateSubscriptionBody } from "../types-
|
|
1
|
+
import { a as SubscriptionId, i as SubscriptionFilter, n as ListSubscriptionsQuery, o as SubscriptionRecipient, r as ProjectSubscription, t as CreateSubscriptionBody } from "../types-qWA5iU0j.js";
|
|
2
2
|
export { CreateSubscriptionBody, ListSubscriptionsQuery, ProjectSubscription, SubscriptionFilter, SubscriptionId, SubscriptionRecipient };
|
package/dist/oauth/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "../types-
|
|
2
|
-
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-
|
|
1
|
+
import { n as ClientInitOptions } from "../types-BksK2Eo0.cjs";
|
|
2
|
+
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-sg2xnYlr.cjs";
|
|
3
3
|
//#region src/clients/oauth/oauthClient.d.ts
|
|
4
4
|
declare const createOauthClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
5
5
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
package/dist/oauth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "../types-
|
|
2
|
-
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-
|
|
1
|
+
import { n as ClientInitOptions } from "../types-BuKviWct.js";
|
|
2
|
+
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-Btb8r9iw.js";
|
|
3
3
|
//#region src/clients/oauth/oauthClient.d.ts
|
|
4
4
|
declare const createOauthClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
5
5
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
package/dist/oauth/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CredentialInput, i as Credential, n as CreateCredentialBody, o as CredentialPath, r as CreateCredentialInput, s as GetCredentialsInput, t as ComponentPath } from "../types-
|
|
1
|
+
import { a as CredentialInput, i as Credential, n as CreateCredentialBody, o as CredentialPath, r as CreateCredentialInput, s as GetCredentialsInput, t as ComponentPath } from "../types-sg2xnYlr.cjs";
|
|
2
2
|
export { ComponentPath, CreateCredentialBody, CreateCredentialInput, Credential, CredentialInput, CredentialPath, type GetCredentialsInput };
|
package/dist/oauth/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CredentialInput, i as Credential, n as CreateCredentialBody, o as CredentialPath, r as CreateCredentialInput, s as GetCredentialsInput, t as ComponentPath } from "../types-
|
|
1
|
+
import { a as CredentialInput, i as Credential, n as CreateCredentialBody, o as CredentialPath, r as CreateCredentialInput, s as GetCredentialsInput, t as ComponentPath } from "../types-Btb8r9iw.js";
|
|
2
2
|
export { ComponentPath, CreateCredentialBody, CreateCredentialInput, Credential, CredentialInput, CredentialPath, type GetCredentialsInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "../types-
|
|
2
|
-
import { h as components, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "../types-
|
|
1
|
+
import { n as ClientInitOptions } from "../types-BksK2Eo0.cjs";
|
|
2
|
+
import { h as components, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "../types-ggpJFEWZ.cjs";
|
|
3
3
|
//#region src/clients/omnisearch/omnisearchClient.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Omnisearch — data lineage.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "../types-
|
|
2
|
-
import { h as components, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "../types-
|
|
1
|
+
import { n as ClientInitOptions } from "../types-BuKviWct.js";
|
|
2
|
+
import { h as components, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "../types-Br04cEri.js";
|
|
3
3
|
//#region src/clients/omnisearch/omnisearchClient.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Omnisearch — data lineage.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LineageMetadata, c as LineageTable, d as ProjectsLineageResponse, f as TableLineageRelation, i as LineageConfiguration, l as ProjectLineageRelation, m as TablesLineageResponse, n as GetTablesLineageQuery, o as LineageProject, p as TablesLineage, r as LineageBucket, s as LineageSource, t as GetProjectsLineageQuery, u as ProjectsLineage } from "../types-
|
|
1
|
+
import { a as LineageMetadata, c as LineageTable, d as ProjectsLineageResponse, f as TableLineageRelation, i as LineageConfiguration, l as ProjectLineageRelation, m as TablesLineageResponse, n as GetTablesLineageQuery, o as LineageProject, p as TablesLineage, r as LineageBucket, s as LineageSource, t as GetProjectsLineageQuery, u as ProjectsLineage } from "../types-ggpJFEWZ.cjs";
|
|
2
2
|
export { GetProjectsLineageQuery, GetTablesLineageQuery, LineageBucket, LineageConfiguration, LineageMetadata, LineageProject, LineageSource, LineageTable, ProjectLineageRelation, ProjectsLineage, ProjectsLineageResponse, TableLineageRelation, TablesLineage, TablesLineageResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LineageMetadata, c as LineageTable, d as ProjectsLineageResponse, f as TableLineageRelation, i as LineageConfiguration, l as ProjectLineageRelation, m as TablesLineageResponse, n as GetTablesLineageQuery, o as LineageProject, p as TablesLineage, r as LineageBucket, s as LineageSource, t as GetProjectsLineageQuery, u as ProjectsLineage } from "../types-
|
|
1
|
+
import { a as LineageMetadata, c as LineageTable, d as ProjectsLineageResponse, f as TableLineageRelation, i as LineageConfiguration, l as ProjectLineageRelation, m as TablesLineageResponse, n as GetTablesLineageQuery, o as LineageProject, p as TablesLineage, r as LineageBucket, s as LineageSource, t as GetProjectsLineageQuery, u as ProjectsLineage } from "../types-Br04cEri.js";
|
|
2
2
|
export { GetProjectsLineageQuery, GetTablesLineageQuery, LineageBucket, LineageConfiguration, LineageMetadata, LineageProject, LineageSource, LineageTable, ProjectLineageRelation, ProjectsLineage, ProjectsLineageResponse, TableLineageRelation, TablesLineage, TablesLineageResponse };
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { l as StorageToken } from "./types-
|
|
1
|
+
import { l as StorageToken } from "./types-GaOcVZ3d.cjs";
|
|
2
2
|
import { t as Backend } from "./backends-DKBz5OxE.cjs";
|
|
3
3
|
//#region src/domain/project.d.ts
|
|
4
4
|
type Options = {
|
|
5
5
|
sapiToken: StorageToken;
|
|
6
6
|
};
|
|
7
7
|
declare const hasFeature: (token: StorageToken, ...feature: string[]) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The admin's features as the Storage token carries them.
|
|
10
|
+
*
|
|
11
|
+
* - The same list `createAdminAccount` reads from the Manage token: Connection serialises both
|
|
12
|
+
* from the admin row, so prefer the account where one is at hand — it also knows `isSuperAdmin`.
|
|
13
|
+
*/
|
|
8
14
|
declare const hasAdminFeature: (token: StorageToken, ...feature: string[]) => boolean;
|
|
9
15
|
declare const createProject: ({ sapiToken }: Options) => {
|
|
10
16
|
hasFeature: (...feature: string[]) => boolean;
|
|
@@ -15,4 +21,4 @@ declare const createProject: ({ sapiToken }: Options) => {
|
|
|
15
21
|
type Project = ReturnType<typeof createProject>;
|
|
16
22
|
//#endregion
|
|
17
23
|
export { hasAdminFeature as n, hasFeature as r, Project as t };
|
|
18
|
-
//# sourceMappingURL=project-
|
|
24
|
+
//# sourceMappingURL=project-BN7YRWFS.d.cts.map
|
|
@@ -4,6 +4,12 @@ const hasFeature = (token, ...feature) => {
|
|
|
4
4
|
const projectFeatureSet = new Set(token.owner.features);
|
|
5
5
|
return feature.every((x) => projectFeatureSet.has(x));
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* The admin's features as the Storage token carries them.
|
|
9
|
+
*
|
|
10
|
+
* - The same list `createAdminAccount` reads from the Manage token: Connection serialises both
|
|
11
|
+
* from the admin row, so prefer the account where one is at hand — it also knows `isSuperAdmin`.
|
|
12
|
+
*/
|
|
7
13
|
const hasAdminFeature = (token, ...feature) => {
|
|
8
14
|
if (feature.length === 0) return false;
|
|
9
15
|
const adminFeatureSet = new Set(token.admin?.features ?? []);
|
|
@@ -36,4 +42,4 @@ const createProject = ({ sapiToken }) => {
|
|
|
36
42
|
//#endregion
|
|
37
43
|
export { hasAdminFeature as n, hasFeature as r, createProject as t };
|
|
38
44
|
|
|
39
|
-
//# sourceMappingURL=project-
|
|
45
|
+
//# sourceMappingURL=project-BXLFrWJ6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-BXLFrWJ6.js","names":[],"sources":["../src/domain/project.ts"],"sourcesContent":["import type { Backend, StorageToken } from '../clients/storage/tokens/types';\n\ntype Options = {\n sapiToken: StorageToken;\n};\n\nexport const hasFeature = (token: StorageToken, ...feature: string[]): boolean => {\n if (feature.length === 0) return false;\n const projectFeatureSet = new Set(token.owner.features);\n return feature.every((x) => projectFeatureSet.has(x));\n};\n\n/**\n * The admin's features as the Storage token carries them.\n *\n * - The same list `createAdminAccount` reads from the Manage token: Connection serialises both\n * from the admin row, so prefer the account where one is at hand — it also knows `isSuperAdmin`.\n */\nexport const hasAdminFeature = (token: StorageToken, ...feature: string[]): boolean => {\n if (feature.length === 0) return false;\n const adminFeatureSet = new Set(token.admin?.features ?? []);\n return feature.every((x) => adminFeatureSet.has(x));\n};\n\nexport const createProject = ({ sapiToken }: Options) => {\n const { owner, admin } = sapiToken;\n const projectFeatureSet = new Set(owner.features);\n // `verify` omits `admin` for a token created via `POST /v2/storage/tokens`, even though the type\n // declares it: an admin-less token holds no admin features, rather than failing to build at all.\n const adminFeatureSet = new Set(admin?.features ?? []);\n\n const hasFeature = (...feature: string[]) => {\n if (feature.length === 0) return false;\n return feature.every((x) => projectFeatureSet.has(x));\n };\n\n // Same list as `createAdminAccount`'s; prefer the account where one is at hand.\n const hasAdminFeature = (...feature: string[]) => {\n if (feature.length === 0) return false;\n return feature.every((x) => adminFeatureSet.has(x));\n };\n\n const hasBackend = (backend: Backend): boolean => {\n if (backend === 'bigquery') return owner.hasBigquery;\n if (backend === 'snowflake') return owner.hasSnowflake;\n return false;\n };\n\n return {\n hasFeature,\n hasAdminFeature,\n hasBackend,\n sapiToken,\n };\n};\n\nexport type Project = ReturnType<typeof createProject>;\n"],"mappings":";AAMA,MAAa,cAAc,OAAqB,GAAG,YAA+B;CAChF,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,MAAM,oBAAoB,IAAI,IAAI,MAAM,MAAM,QAAQ;CACtD,OAAO,QAAQ,OAAO,MAAM,kBAAkB,IAAI,CAAC,CAAC;AACtD;;;;;;;AAQA,MAAa,mBAAmB,OAAqB,GAAG,YAA+B;CACrF,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,MAAM,kBAAkB,IAAI,IAAI,MAAM,OAAO,YAAY,CAAC,CAAC;CAC3D,OAAO,QAAQ,OAAO,MAAM,gBAAgB,IAAI,CAAC,CAAC;AACpD;AAEA,MAAa,iBAAiB,EAAE,gBAAyB;CACvD,MAAM,EAAE,OAAO,UAAU;CACzB,MAAM,oBAAoB,IAAI,IAAI,MAAM,QAAQ;CAGhD,MAAM,kBAAkB,IAAI,IAAI,OAAO,YAAY,CAAC,CAAC;CAErD,MAAM,cAAc,GAAG,YAAsB;EAC3C,IAAI,QAAQ,WAAW,GAAG,OAAO;EACjC,OAAO,QAAQ,OAAO,MAAM,kBAAkB,IAAI,CAAC,CAAC;CACtD;CAGA,MAAM,mBAAmB,GAAG,YAAsB;EAChD,IAAI,QAAQ,WAAW,GAAG,OAAO;EACjC,OAAO,QAAQ,OAAO,MAAM,gBAAgB,IAAI,CAAC,CAAC;CACpD;CAEA,MAAM,cAAc,YAA8B;EAChD,IAAI,YAAY,YAAY,OAAO,MAAM;EACzC,IAAI,YAAY,aAAa,OAAO,MAAM;EAC1C,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { l as StorageToken } from "./types-
|
|
1
|
+
import { l as StorageToken } from "./types-CESP1ONj.js";
|
|
2
2
|
import { t as Backend } from "./backends-DKBz5OxE.js";
|
|
3
3
|
//#region src/domain/project.d.ts
|
|
4
4
|
type Options = {
|
|
5
5
|
sapiToken: StorageToken;
|
|
6
6
|
};
|
|
7
7
|
declare const hasFeature: (token: StorageToken, ...feature: string[]) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The admin's features as the Storage token carries them.
|
|
10
|
+
*
|
|
11
|
+
* - The same list `createAdminAccount` reads from the Manage token: Connection serialises both
|
|
12
|
+
* from the admin row, so prefer the account where one is at hand — it also knows `isSuperAdmin`.
|
|
13
|
+
*/
|
|
8
14
|
declare const hasAdminFeature: (token: StorageToken, ...feature: string[]) => boolean;
|
|
9
15
|
declare const createProject: ({ sapiToken }: Options) => {
|
|
10
16
|
hasFeature: (...feature: string[]) => boolean;
|
|
@@ -15,4 +21,4 @@ declare const createProject: ({ sapiToken }: Options) => {
|
|
|
15
21
|
type Project = ReturnType<typeof createProject>;
|
|
16
22
|
//#endregion
|
|
17
23
|
export { hasAdminFeature as n, hasFeature as r, Project as t };
|
|
18
|
-
//# sourceMappingURL=project-
|
|
24
|
+
//# sourceMappingURL=project-BpWTnoQ_.d.ts.map
|
|
@@ -4,6 +4,12 @@ const hasFeature = (token, ...feature) => {
|
|
|
4
4
|
const projectFeatureSet = new Set(token.owner.features);
|
|
5
5
|
return feature.every((x) => projectFeatureSet.has(x));
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* The admin's features as the Storage token carries them.
|
|
9
|
+
*
|
|
10
|
+
* - The same list `createAdminAccount` reads from the Manage token: Connection serialises both
|
|
11
|
+
* from the admin row, so prefer the account where one is at hand — it also knows `isSuperAdmin`.
|
|
12
|
+
*/
|
|
7
13
|
const hasAdminFeature = (token, ...feature) => {
|
|
8
14
|
if (feature.length === 0) return false;
|
|
9
15
|
const adminFeatureSet = new Set(token.admin?.features ?? []);
|
|
@@ -53,4 +59,4 @@ Object.defineProperty(exports, "hasFeature", {
|
|
|
53
59
|
}
|
|
54
60
|
});
|
|
55
61
|
|
|
56
|
-
//# sourceMappingURL=project-
|
|
62
|
+
//# sourceMappingURL=project-CpgplgCr.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-CpgplgCr.cjs","names":[],"sources":["../src/domain/project.ts"],"sourcesContent":["import type { Backend, StorageToken } from '../clients/storage/tokens/types';\n\ntype Options = {\n sapiToken: StorageToken;\n};\n\nexport const hasFeature = (token: StorageToken, ...feature: string[]): boolean => {\n if (feature.length === 0) return false;\n const projectFeatureSet = new Set(token.owner.features);\n return feature.every((x) => projectFeatureSet.has(x));\n};\n\n/**\n * The admin's features as the Storage token carries them.\n *\n * - The same list `createAdminAccount` reads from the Manage token: Connection serialises both\n * from the admin row, so prefer the account where one is at hand — it also knows `isSuperAdmin`.\n */\nexport const hasAdminFeature = (token: StorageToken, ...feature: string[]): boolean => {\n if (feature.length === 0) return false;\n const adminFeatureSet = new Set(token.admin?.features ?? []);\n return feature.every((x) => adminFeatureSet.has(x));\n};\n\nexport const createProject = ({ sapiToken }: Options) => {\n const { owner, admin } = sapiToken;\n const projectFeatureSet = new Set(owner.features);\n // `verify` omits `admin` for a token created via `POST /v2/storage/tokens`, even though the type\n // declares it: an admin-less token holds no admin features, rather than failing to build at all.\n const adminFeatureSet = new Set(admin?.features ?? []);\n\n const hasFeature = (...feature: string[]) => {\n if (feature.length === 0) return false;\n return feature.every((x) => projectFeatureSet.has(x));\n };\n\n // Same list as `createAdminAccount`'s; prefer the account where one is at hand.\n const hasAdminFeature = (...feature: string[]) => {\n if (feature.length === 0) return false;\n return feature.every((x) => adminFeatureSet.has(x));\n };\n\n const hasBackend = (backend: Backend): boolean => {\n if (backend === 'bigquery') return owner.hasBigquery;\n if (backend === 'snowflake') return owner.hasSnowflake;\n return false;\n };\n\n return {\n hasFeature,\n hasAdminFeature,\n hasBackend,\n sapiToken,\n };\n};\n\nexport type Project = ReturnType<typeof createProject>;\n"],"mappings":";AAMA,MAAa,cAAc,OAAqB,GAAG,YAA+B;CAChF,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,MAAM,oBAAoB,IAAI,IAAI,MAAM,MAAM,QAAQ;CACtD,OAAO,QAAQ,OAAO,MAAM,kBAAkB,IAAI,CAAC,CAAC;AACtD;;;;;;;AAQA,MAAa,mBAAmB,OAAqB,GAAG,YAA+B;CACrF,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,MAAM,kBAAkB,IAAI,IAAI,MAAM,OAAO,YAAY,CAAC,CAAC;CAC3D,OAAO,QAAQ,OAAO,MAAM,gBAAgB,IAAI,CAAC,CAAC;AACpD;AAEA,MAAa,iBAAiB,EAAE,gBAAyB;CACvD,MAAM,EAAE,OAAO,UAAU;CACzB,MAAM,oBAAoB,IAAI,IAAI,MAAM,QAAQ;CAGhD,MAAM,kBAAkB,IAAI,IAAI,OAAO,YAAY,CAAC,CAAC;CAErD,MAAM,cAAc,GAAG,YAAsB;EAC3C,IAAI,QAAQ,WAAW,GAAG,OAAO;EACjC,OAAO,QAAQ,OAAO,MAAM,kBAAkB,IAAI,CAAC,CAAC;CACtD;CAGA,MAAM,mBAAmB,GAAG,YAAsB;EAChD,IAAI,QAAQ,WAAW,GAAG,OAAO;EACjC,OAAO,QAAQ,OAAO,MAAM,gBAAgB,IAAI,CAAC,CAAC;CACpD;CAEA,MAAM,cAAc,YAA8B;EAChD,IAAI,YAAY,YAAY,OAAO,MAAM;EACzC,IAAI,YAAY,aAAa,OAAO,MAAM;EAC1C,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_queryService = require("../queryService-
|
|
2
|
+
const require_queryService = require("../queryService-RlNYw7LG.cjs");
|
|
3
3
|
exports.createQueryServiceClient = require_queryService.createQueryServiceClient;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createQueryServiceClient } from "../index-
|
|
1
|
+
import { t as createQueryServiceClient } from "../index-syAYY5LC.cjs";
|
|
2
2
|
export { createQueryServiceClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createQueryServiceClient } from "../index-
|
|
1
|
+
import { t as createQueryServiceClient } from "../index-BP3choXr.js";
|
|
2
2
|
export { createQueryServiceClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createQueryServiceClient } from "../queryService-
|
|
1
|
+
import { t as createQueryServiceClient } from "../queryService-Blfz59Ms.js";
|
|
2
2
|
export { createQueryServiceClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, f as QueryJobStatus, i as GetQueriesPath, l as PostCancelQueryJobPath, m as Statements, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "../types-
|
|
1
|
+
import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, f as QueryJobStatus, i as GetQueriesPath, l as PostCancelQueryJobPath, m as Statements, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "../types-q5lgElyc.cjs";
|
|
2
2
|
export { ExportResultsResponse, GetExportResultsQuery, GetQueriesHistoryQuery, GetQueriesPath, GetQueryJobPath, GetQueryResultsPath, GetQueryResutsQuery, JobStatusResponse, PostCancelQueryJobPath, PostQueryBody, PostQueryPath, QueryJobStatus, QueryResult, Statements };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, f as QueryJobStatus, i as GetQueriesPath, l as PostCancelQueryJobPath, m as Statements, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "../types-
|
|
1
|
+
import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, f as QueryJobStatus, i as GetQueriesPath, l as PostCancelQueryJobPath, m as Statements, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "../types-j30rKMe6.js";
|
|
2
2
|
export { ExportResultsResponse, GetExportResultsQuery, GetQueriesHistoryQuery, GetQueriesPath, GetQueryJobPath, GetQueryResultsPath, GetQueryResutsQuery, JobStatusResponse, PostCancelQueryJobPath, PostQueryBody, PostQueryPath, QueryJobStatus, QueryResult, Statements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as poller, t as jobStatus } from "./jobStatus-
|
|
1
|
+
import { a as poller, t as jobStatus } from "./jobStatus-BJdbZ72V.js";
|
|
2
2
|
import { f as parseContentDispositionHeader, s as HttpHeader } from "./createFetchClient-DITkTV2k.js";
|
|
3
3
|
import { t as createGenericFetchClient } from "./createGenericFetchClient-KqiJhw8G.js";
|
|
4
4
|
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-wq8iGLZM.js";
|
|
@@ -111,4 +111,4 @@ const createQueryServiceClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
111
111
|
//#endregion
|
|
112
112
|
export { createQueryServiceClient as t };
|
|
113
113
|
|
|
114
|
-
//# sourceMappingURL=queryService-
|
|
114
|
+
//# sourceMappingURL=queryService-Blfz59Ms.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryService-
|
|
1
|
+
{"version":3,"file":"queryService-Blfz59Ms.js","names":[],"sources":["../src/clients/queryService/poller.ts","../src/clients/queryService/queryServiceClient.ts"],"sourcesContent":["import { jobStatus } from '../../domain/jobStatus';\nimport { poller } from '../../utils/async';\n\nimport type { GetQueryJobPath, JobStatusResponse } from './types';\n\nconst DEFAULT_POLL_INTERVAL = 2000;\n\ntype QueryJobPollOptions = {\n interval?: number;\n maxAttempts?: number;\n timeout?: number;\n signal?: AbortSignal;\n};\n\ntype GetQueryJob = (\n queryJobId: GetQueryJobPath['queryJobId'],\n signal?: AbortSignal,\n) => Promise<JobStatusResponse>;\n\n/**\n * Waits on a query job.\n *\n * - Takes the job rather than its id, so a caller hands over what `createQueryJob` gave it.\n * - The request reads the id off the key rather than out of a closure, which is what makes the key\n * the whole input.\n * - Terminal is the job's own terminal set, not its statements': a `completed` job can still hold a\n * statement that failed, and what that means is the caller's business.\n */\nexport const createJobPoller =\n ({ getQueryJob }: { getQueryJob: GetQueryJob }) =>\n (\n { id }: { id: GetQueryJobPath['queryJobId'] },\n { interval, maxAttempts, timeout, signal }: QueryJobPollOptions = {},\n ) =>\n poller({\n pollKey: ['queryService.job', { queryJobId: id }] as const,\n pollFn: ({ pollKey: [, params], signal: pollSignal }) =>\n getQueryJob(params.queryJobId, pollSignal),\n until: ({ data }) => jobStatus.query.isTerminal(data.status),\n backoff: { type: 'constant', interval: interval ?? DEFAULT_POLL_INTERVAL },\n maxAttempts,\n timeout,\n signal,\n });\n","import {\n createGenericFetchClient,\n createOpenapiFetchClient,\n HttpHeader,\n parseContentDispositionHeader,\n} from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { createJobPoller } from './poller';\nimport type {\n ExportResultsResponse,\n GetExportResultsQuery,\n GetQueriesHistoryQuery,\n GetQueriesPath,\n GetQueryJobPath,\n GetQueryResultsPath,\n GetQueryResutsQuery,\n PostCancelQueryJobPath,\n PostQueryBody,\n PostQueryPath,\n} from './types';\n\nexport const createQueryServiceClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const createQueryJob = async (\n branchId: PostQueryPath['branchId'],\n workspaceId: PostQueryPath['workspaceId'],\n body: PostQueryBody,\n ) => {\n const { data } = await client.post(\n '/api/v1/branches/{branchId}/workspaces/{workspaceId}/queries',\n { path: { branchId, workspaceId }, body },\n );\n\n return data;\n };\n\n const cancelQueryJob = async (queryJobId: PostCancelQueryJobPath['queryJobId']) => {\n const { data } = await client.post('/api/v1/queries/{queryJobId}/cancel', {\n path: { queryJobId },\n body: { reason: 'Cancelled by user' },\n });\n\n return data;\n };\n\n const getQueryJob = async (queryJobId: GetQueryJobPath['queryJobId'], signal?: AbortSignal) => {\n const { data } = await client.get(\n '/api/v1/queries/{queryJobId}',\n { path: { queryJobId } },\n { signal },\n );\n\n return data;\n };\n\n const getQueryResults = async (\n queryJobId: GetQueryResultsPath['queryJobId'],\n statementId: GetQueryResultsPath['statementId'],\n query?: GetQueryResutsQuery,\n ) => {\n const { data } = await client.get('/api/v1/queries/{queryJobId}/{statementId}/results', {\n path: { queryJobId, statementId },\n query,\n });\n\n return data;\n };\n\n const getQueryHistory = async (\n branchId: GetQueriesPath['branchId'],\n workspaceId: GetQueriesPath['workspaceId'],\n query?: GetQueriesHistoryQuery,\n ) => {\n const { data } = await client.get(\n '/api/v1/branches/{branchId}/workspaces/{workspaceId}/queries',\n {\n path: { branchId, workspaceId },\n query,\n },\n );\n\n return data;\n };\n\n const exportResults = async (\n queryJobId: GetQueryResultsPath['queryJobId'],\n statementId: GetQueryResultsPath['statementId'],\n query: GetExportResultsQuery,\n signal?: AbortSignal,\n ): Promise<ExportResultsResponse> => {\n const { data, response } = await client.get(\n '/api/v1/queries/{queryJobId}/{statementId}/export',\n {\n path: { queryJobId, statementId },\n query,\n },\n { signal },\n );\n\n const mimeType = response.headers.get(HttpHeader.CONTENT_TYPE) ?? 'text/csv';\n const contentDisposition = parseContentDispositionHeader(\n response.headers.get(HttpHeader.CONTENT_DISPOSITION),\n );\n\n return {\n mimeType,\n content: data,\n fileName: contentDisposition?.filename ?? 'export.csv',\n };\n };\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health-check', {}, { signal });\n\n return data;\n };\n\n // Every wait on a query job is the same wait, so it is the client's rather than a caller's.\n const poller = createJobPoller({ getQueryJob });\n\n return {\n healthCheck,\n poller,\n createQueryJob,\n cancelQueryJob,\n getQueryJob,\n getQueryResults,\n getQueryHistory,\n exportResults,\n };\n};\n"],"mappings":";;;;;;AAKA,MAAM,wBAAwB;;;;;;;;;;AAuB9B,MAAa,mBACV,EAAE,mBAED,EAAE,MACF,EAAE,UAAU,aAAa,SAAS,WAAgC,CAAC,MAEnE,OAAO;CACL,SAAS,CAAC,oBAAoB,EAAE,YAAY,GAAG,CAAC;CAChD,SAAS,EAAE,SAAS,GAAG,SAAS,QAAQ,iBACtC,YAAY,OAAO,YAAY,UAAU;CAC3C,QAAQ,EAAE,WAAW,UAAU,MAAM,WAAW,KAAK,MAAM;CAC3D,SAAS;EAAE,MAAM;EAAY,UAAU,YAAY;CAAsB;CACzE;CACA;CACA;AACF,CAAC;;;ACnBL,MAAa,4BAA4B,EAAE,SAAS,aAAa,WAA8B;CAC7F,MAAM,SAAS,yBAAgC;EAC7C;EACA;EACA,SAAS,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,gBAAgB,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,iBAAiB,OACrB,UACA,aACA,SACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,KAC5B,gEACA;GAAE,MAAM;IAAE;IAAU;GAAY;GAAG;EAAK,CAC1C;EAEA,OAAO;CACT;CAEA,MAAM,iBAAiB,OAAO,eAAqD;EACjF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,uCAAuC;GACxE,MAAM,EAAE,WAAW;GACnB,MAAM,EAAE,QAAQ,oBAAoB;EACtC,CAAC;EAED,OAAO;CACT;CAEA,MAAM,cAAc,OAAO,YAA2C,WAAyB;EAC7F,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,gCACA,EAAE,MAAM,EAAE,WAAW,EAAE,GACvB,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,kBAAkB,OACtB,YACA,aACA,UACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,sDAAsD;GACtF,MAAM;IAAE;IAAY;GAAY;GAChC;EACF,CAAC;EAED,OAAO;CACT;CAEA,MAAM,kBAAkB,OACtB,UACA,aACA,UACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,gEACA;GACE,MAAM;IAAE;IAAU;GAAY;GAC9B;EACF,CACF;EAEA,OAAO;CACT;CAEA,MAAM,gBAAgB,OACpB,YACA,aACA,OACA,WACmC;EACnC,MAAM,EAAE,MAAM,aAAa,MAAM,OAAO,IACtC,qDACA;GACE,MAAM;IAAE;IAAY;GAAY;GAChC;EACF,GACA,EAAE,OAAO,CACX;EAOA,OAAO;GACL,UANe,SAAS,QAAQ,IAAI,WAAW,YAAY,KAAK;GAOhE,SAAS;GACT,UAPyB,8BACzB,SAAS,QAAQ,IAAI,WAAW,mBAAmB,CAMxB,CAAC,EAAE,YAAY;EAC5C;CACF;CAEA,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAKA,OAAO;EACL;EACA,QAJa,gBAAgB,EAAE,YAAY,CAItC;EACL;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_jobStatus = require("./jobStatus-
|
|
1
|
+
const require_jobStatus = require("./jobStatus-B0E-MZ9I.cjs");
|
|
2
2
|
const require_createFetchClient = require("./createFetchClient-ClWD4ua3.cjs");
|
|
3
3
|
const require_createGenericFetchClient = require("./createGenericFetchClient-B81Iezpb.cjs");
|
|
4
4
|
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-CioTX11-.cjs");
|
|
@@ -116,4 +116,4 @@ Object.defineProperty(exports, "createQueryServiceClient", {
|
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
//# sourceMappingURL=queryService-
|
|
119
|
+
//# sourceMappingURL=queryService-RlNYw7LG.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryService-
|
|
1
|
+
{"version":3,"file":"queryService-RlNYw7LG.cjs","names":["poller","jobStatus","createOpenapiFetchClient","createAuthHeaders","createGenericFetchClient","HttpHeader","parseContentDispositionHeader"],"sources":["../src/clients/queryService/poller.ts","../src/clients/queryService/queryServiceClient.ts"],"sourcesContent":["import { jobStatus } from '../../domain/jobStatus';\nimport { poller } from '../../utils/async';\n\nimport type { GetQueryJobPath, JobStatusResponse } from './types';\n\nconst DEFAULT_POLL_INTERVAL = 2000;\n\ntype QueryJobPollOptions = {\n interval?: number;\n maxAttempts?: number;\n timeout?: number;\n signal?: AbortSignal;\n};\n\ntype GetQueryJob = (\n queryJobId: GetQueryJobPath['queryJobId'],\n signal?: AbortSignal,\n) => Promise<JobStatusResponse>;\n\n/**\n * Waits on a query job.\n *\n * - Takes the job rather than its id, so a caller hands over what `createQueryJob` gave it.\n * - The request reads the id off the key rather than out of a closure, which is what makes the key\n * the whole input.\n * - Terminal is the job's own terminal set, not its statements': a `completed` job can still hold a\n * statement that failed, and what that means is the caller's business.\n */\nexport const createJobPoller =\n ({ getQueryJob }: { getQueryJob: GetQueryJob }) =>\n (\n { id }: { id: GetQueryJobPath['queryJobId'] },\n { interval, maxAttempts, timeout, signal }: QueryJobPollOptions = {},\n ) =>\n poller({\n pollKey: ['queryService.job', { queryJobId: id }] as const,\n pollFn: ({ pollKey: [, params], signal: pollSignal }) =>\n getQueryJob(params.queryJobId, pollSignal),\n until: ({ data }) => jobStatus.query.isTerminal(data.status),\n backoff: { type: 'constant', interval: interval ?? DEFAULT_POLL_INTERVAL },\n maxAttempts,\n timeout,\n signal,\n });\n","import {\n createGenericFetchClient,\n createOpenapiFetchClient,\n HttpHeader,\n parseContentDispositionHeader,\n} from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { createJobPoller } from './poller';\nimport type {\n ExportResultsResponse,\n GetExportResultsQuery,\n GetQueriesHistoryQuery,\n GetQueriesPath,\n GetQueryJobPath,\n GetQueryResultsPath,\n GetQueryResutsQuery,\n PostCancelQueryJobPath,\n PostQueryBody,\n PostQueryPath,\n} from './types';\n\nexport const createQueryServiceClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const createQueryJob = async (\n branchId: PostQueryPath['branchId'],\n workspaceId: PostQueryPath['workspaceId'],\n body: PostQueryBody,\n ) => {\n const { data } = await client.post(\n '/api/v1/branches/{branchId}/workspaces/{workspaceId}/queries',\n { path: { branchId, workspaceId }, body },\n );\n\n return data;\n };\n\n const cancelQueryJob = async (queryJobId: PostCancelQueryJobPath['queryJobId']) => {\n const { data } = await client.post('/api/v1/queries/{queryJobId}/cancel', {\n path: { queryJobId },\n body: { reason: 'Cancelled by user' },\n });\n\n return data;\n };\n\n const getQueryJob = async (queryJobId: GetQueryJobPath['queryJobId'], signal?: AbortSignal) => {\n const { data } = await client.get(\n '/api/v1/queries/{queryJobId}',\n { path: { queryJobId } },\n { signal },\n );\n\n return data;\n };\n\n const getQueryResults = async (\n queryJobId: GetQueryResultsPath['queryJobId'],\n statementId: GetQueryResultsPath['statementId'],\n query?: GetQueryResutsQuery,\n ) => {\n const { data } = await client.get('/api/v1/queries/{queryJobId}/{statementId}/results', {\n path: { queryJobId, statementId },\n query,\n });\n\n return data;\n };\n\n const getQueryHistory = async (\n branchId: GetQueriesPath['branchId'],\n workspaceId: GetQueriesPath['workspaceId'],\n query?: GetQueriesHistoryQuery,\n ) => {\n const { data } = await client.get(\n '/api/v1/branches/{branchId}/workspaces/{workspaceId}/queries',\n {\n path: { branchId, workspaceId },\n query,\n },\n );\n\n return data;\n };\n\n const exportResults = async (\n queryJobId: GetQueryResultsPath['queryJobId'],\n statementId: GetQueryResultsPath['statementId'],\n query: GetExportResultsQuery,\n signal?: AbortSignal,\n ): Promise<ExportResultsResponse> => {\n const { data, response } = await client.get(\n '/api/v1/queries/{queryJobId}/{statementId}/export',\n {\n path: { queryJobId, statementId },\n query,\n },\n { signal },\n );\n\n const mimeType = response.headers.get(HttpHeader.CONTENT_TYPE) ?? 'text/csv';\n const contentDisposition = parseContentDispositionHeader(\n response.headers.get(HttpHeader.CONTENT_DISPOSITION),\n );\n\n return {\n mimeType,\n content: data,\n fileName: contentDisposition?.filename ?? 'export.csv',\n };\n };\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health-check', {}, { signal });\n\n return data;\n };\n\n // Every wait on a query job is the same wait, so it is the client's rather than a caller's.\n const poller = createJobPoller({ getQueryJob });\n\n return {\n healthCheck,\n poller,\n createQueryJob,\n cancelQueryJob,\n getQueryJob,\n getQueryResults,\n getQueryHistory,\n exportResults,\n };\n};\n"],"mappings":";;;;;;AAKA,MAAM,wBAAwB;;;;;;;;;;AAuB9B,MAAa,mBACV,EAAE,mBAED,EAAE,MACF,EAAE,UAAU,aAAa,SAAS,WAAgC,CAAC,MAEnEA,kBAAAA,OAAO;CACL,SAAS,CAAC,oBAAoB,EAAE,YAAY,GAAG,CAAC;CAChD,SAAS,EAAE,SAAS,GAAG,SAAS,QAAQ,iBACtC,YAAY,OAAO,YAAY,UAAU;CAC3C,QAAQ,EAAE,WAAWC,kBAAAA,UAAU,MAAM,WAAW,KAAK,MAAM;CAC3D,SAAS;EAAE,MAAM;EAAY,UAAU,YAAY;CAAsB;CACzE;CACA;CACA;AACF,CAAC;;;ACnBL,MAAa,4BAA4B,EAAE,SAAS,aAAa,WAA8B;CAC7F,MAAM,SAASC,iCAAAA,yBAAgC;EAC7C;EACA;EACA,SAASC,aAAAA,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,gBAAgBC,iCAAAA,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,iBAAiB,OACrB,UACA,aACA,SACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,KAC5B,gEACA;GAAE,MAAM;IAAE;IAAU;GAAY;GAAG;EAAK,CAC1C;EAEA,OAAO;CACT;CAEA,MAAM,iBAAiB,OAAO,eAAqD;EACjF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,uCAAuC;GACxE,MAAM,EAAE,WAAW;GACnB,MAAM,EAAE,QAAQ,oBAAoB;EACtC,CAAC;EAED,OAAO;CACT;CAEA,MAAM,cAAc,OAAO,YAA2C,WAAyB;EAC7F,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,gCACA,EAAE,MAAM,EAAE,WAAW,EAAE,GACvB,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,kBAAkB,OACtB,YACA,aACA,UACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,sDAAsD;GACtF,MAAM;IAAE;IAAY;GAAY;GAChC;EACF,CAAC;EAED,OAAO;CACT;CAEA,MAAM,kBAAkB,OACtB,UACA,aACA,UACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,gEACA;GACE,MAAM;IAAE;IAAU;GAAY;GAC9B;EACF,CACF;EAEA,OAAO;CACT;CAEA,MAAM,gBAAgB,OACpB,YACA,aACA,OACA,WACmC;EACnC,MAAM,EAAE,MAAM,aAAa,MAAM,OAAO,IACtC,qDACA;GACE,MAAM;IAAE;IAAY;GAAY;GAChC;EACF,GACA,EAAE,OAAO,CACX;EAOA,OAAO;GACL,UANe,SAAS,QAAQ,IAAIC,0BAAAA,WAAW,YAAY,KAAK;GAOhE,SAAS;GACT,UAPyBC,0BAAAA,8BACzB,SAAS,QAAQ,IAAID,0BAAAA,WAAW,mBAAmB,CAMxB,CAAC,EAAE,YAAY;EAC5C;CACF;CAEA,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAKA,OAAO;EACL;EACA,QAJa,gBAAgB,EAAE,YAAY,CAItC;EACL;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
package/dist/queue/index.cjs
CHANGED
package/dist/queue/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ClientInitOptions } from "../types-
|
|
3
|
-
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components, r as KillJobPath, t as CreateJobBody } from "../types-
|
|
1
|
+
import { kt as Poller } from "../index-syAYY5LC.cjs";
|
|
2
|
+
import { n as ClientInitOptions } from "../types-BksK2Eo0.cjs";
|
|
3
|
+
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components, r as KillJobPath, t as CreateJobBody } from "../types-CGhu0tID.cjs";
|
|
4
4
|
//#region src/clients/queue/queueClient.d.ts
|
|
5
5
|
declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
6
6
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -45,6 +45,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
45
45
|
delayedStartTime?: string | null;
|
|
46
46
|
durationSeconds?: number | null;
|
|
47
47
|
isFinished: boolean;
|
|
48
|
+
isSuccess: boolean | null;
|
|
48
49
|
url: string;
|
|
49
50
|
variableValuesId?: string | null;
|
|
50
51
|
variableValuesData?: {
|
|
@@ -108,6 +109,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
108
109
|
delayedStartTime?: string | null;
|
|
109
110
|
durationSeconds?: number | null;
|
|
110
111
|
isFinished: boolean;
|
|
112
|
+
isSuccess: boolean | null;
|
|
111
113
|
url: string;
|
|
112
114
|
variableValuesId?: string | null;
|
|
113
115
|
variableValuesData?: {
|
|
@@ -171,6 +173,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
171
173
|
delayedStartTime?: string | null;
|
|
172
174
|
durationSeconds?: number | null;
|
|
173
175
|
isFinished: boolean;
|
|
176
|
+
isSuccess: boolean | null;
|
|
174
177
|
url: string;
|
|
175
178
|
variableValuesId?: string | null;
|
|
176
179
|
variableValuesData?: {
|
|
@@ -234,6 +237,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
234
237
|
delayedStartTime?: string | null;
|
|
235
238
|
durationSeconds?: number | null;
|
|
236
239
|
isFinished: boolean;
|
|
240
|
+
isSuccess: boolean | null;
|
|
237
241
|
url: string;
|
|
238
242
|
variableValuesId?: string | null;
|
|
239
243
|
variableValuesData?: {
|
|
@@ -297,6 +301,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
297
301
|
delayedStartTime?: string | null;
|
|
298
302
|
durationSeconds?: number | null;
|
|
299
303
|
isFinished: boolean;
|
|
304
|
+
isSuccess: boolean | null;
|
|
300
305
|
url: string;
|
|
301
306
|
variableValuesId?: string | null;
|
|
302
307
|
variableValuesData?: {
|
|
@@ -360,6 +365,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
360
365
|
delayedStartTime?: string | null;
|
|
361
366
|
durationSeconds?: number | null;
|
|
362
367
|
isFinished: boolean;
|
|
368
|
+
isSuccess: boolean | null;
|
|
363
369
|
url: string;
|
|
364
370
|
variableValuesId?: string | null;
|
|
365
371
|
variableValuesData?: {
|
package/dist/queue/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ClientInitOptions } from "../types-
|
|
3
|
-
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components, r as KillJobPath, t as CreateJobBody } from "../types-
|
|
1
|
+
import { kt as Poller } from "../index-BP3choXr.js";
|
|
2
|
+
import { n as ClientInitOptions } from "../types-BuKviWct.js";
|
|
3
|
+
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components, r as KillJobPath, t as CreateJobBody } from "../types-P_61P9Nd.js";
|
|
4
4
|
//#region src/clients/queue/queueClient.d.ts
|
|
5
5
|
declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
6
6
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -45,6 +45,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
45
45
|
delayedStartTime?: string | null;
|
|
46
46
|
durationSeconds?: number | null;
|
|
47
47
|
isFinished: boolean;
|
|
48
|
+
isSuccess: boolean | null;
|
|
48
49
|
url: string;
|
|
49
50
|
variableValuesId?: string | null;
|
|
50
51
|
variableValuesData?: {
|
|
@@ -108,6 +109,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
108
109
|
delayedStartTime?: string | null;
|
|
109
110
|
durationSeconds?: number | null;
|
|
110
111
|
isFinished: boolean;
|
|
112
|
+
isSuccess: boolean | null;
|
|
111
113
|
url: string;
|
|
112
114
|
variableValuesId?: string | null;
|
|
113
115
|
variableValuesData?: {
|
|
@@ -171,6 +173,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
171
173
|
delayedStartTime?: string | null;
|
|
172
174
|
durationSeconds?: number | null;
|
|
173
175
|
isFinished: boolean;
|
|
176
|
+
isSuccess: boolean | null;
|
|
174
177
|
url: string;
|
|
175
178
|
variableValuesId?: string | null;
|
|
176
179
|
variableValuesData?: {
|
|
@@ -234,6 +237,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
234
237
|
delayedStartTime?: string | null;
|
|
235
238
|
durationSeconds?: number | null;
|
|
236
239
|
isFinished: boolean;
|
|
240
|
+
isSuccess: boolean | null;
|
|
237
241
|
url: string;
|
|
238
242
|
variableValuesId?: string | null;
|
|
239
243
|
variableValuesData?: {
|
|
@@ -297,6 +301,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
297
301
|
delayedStartTime?: string | null;
|
|
298
302
|
durationSeconds?: number | null;
|
|
299
303
|
isFinished: boolean;
|
|
304
|
+
isSuccess: boolean | null;
|
|
300
305
|
url: string;
|
|
301
306
|
variableValuesId?: string | null;
|
|
302
307
|
variableValuesData?: {
|
|
@@ -360,6 +365,7 @@ declare const createQueueClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
360
365
|
delayedStartTime?: string | null;
|
|
361
366
|
durationSeconds?: number | null;
|
|
362
367
|
isFinished: boolean;
|
|
368
|
+
isSuccess: boolean | null;
|
|
363
369
|
url: string;
|
|
364
370
|
variableValuesId?: string | null;
|
|
365
371
|
variableValuesData?: {
|
package/dist/queue/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createQueueClient } from "../queue-
|
|
1
|
+
import { t as createQueueClient } from "../queue-CNvR-M23.js";
|
|
2
2
|
export { createQueueClient };
|
package/dist/queue/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, f as SearchJobsResponse, i as OrchestrationRerunPlan, l as SearchGroupedJobsQuery, n as GetQueueJobPath, o as QueueJob, r as KillJobPath, s as QueueJobStatus, t as CreateJobBody, u as SearchGroupedJobsResponse } from "../types-
|
|
1
|
+
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, f as SearchJobsResponse, i as OrchestrationRerunPlan, l as SearchGroupedJobsQuery, n as GetQueueJobPath, o as QueueJob, r as KillJobPath, s as QueueJobStatus, t as CreateJobBody, u as SearchGroupedJobsResponse } from "../types-CGhu0tID.cjs";
|
|
2
2
|
export { CreateJobBody, GetQueueJobPath, KillJobPath, OrchestrationRerunPlan, OrchestrationRerunPlanPath, QueueJob, QueueJobStatus, SearchAllJobsQuery, SearchGroupedJobsQuery, SearchGroupedJobsResponse, SearchJobsQuery, SearchJobsResponse };
|
package/dist/queue/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, f as SearchJobsResponse, i as OrchestrationRerunPlan, l as SearchGroupedJobsQuery, n as GetQueueJobPath, o as QueueJob, r as KillJobPath, s as QueueJobStatus, t as CreateJobBody, u as SearchGroupedJobsResponse } from "../types-
|
|
1
|
+
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, f as SearchJobsResponse, i as OrchestrationRerunPlan, l as SearchGroupedJobsQuery, n as GetQueueJobPath, o as QueueJob, r as KillJobPath, s as QueueJobStatus, t as CreateJobBody, u as SearchGroupedJobsResponse } from "../types-P_61P9Nd.js";
|
|
2
2
|
export { CreateJobBody, GetQueueJobPath, KillJobPath, OrchestrationRerunPlan, OrchestrationRerunPlanPath, QueueJob, QueueJobStatus, SearchAllJobsQuery, SearchGroupedJobsQuery, SearchGroupedJobsResponse, SearchJobsQuery, SearchJobsResponse };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_collect = require("./collect-B5TCNiT1.cjs");
|
|
2
|
-
const require_jobStatus = require("./jobStatus-
|
|
2
|
+
const require_jobStatus = require("./jobStatus-B0E-MZ9I.cjs");
|
|
3
3
|
const require_createGenericFetchClient = require("./createGenericFetchClient-B81Iezpb.cjs");
|
|
4
4
|
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-CioTX11-.cjs");
|
|
5
5
|
const require_auth = require("./auth-C9o_0bft.cjs");
|
|
@@ -100,4 +100,4 @@ Object.defineProperty(exports, "createQueueClient", {
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
//# sourceMappingURL=queue-
|
|
103
|
+
//# sourceMappingURL=queue-BrgRdtOr.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue-
|
|
1
|
+
{"version":3,"file":"queue-BrgRdtOr.cjs","names":["poller","jobStatus","createOpenapiFetchClient","createAuthHeaders","createGenericFetchClient","collect"],"sources":["../src/clients/queue/poller.ts","../src/clients/queue/queueClient.ts"],"sourcesContent":["import { jobStatus } from '../../domain/jobStatus';\nimport { poller } from '../../utils/async';\n\nimport type { GetQueueJobPath, QueueJob } from './types';\n\nconst DEFAULT_POLL_INTERVAL = 2000;\n\ntype QueueJobPollOptions = {\n interval?: number;\n maxAttempts?: number;\n timeout?: number;\n signal?: AbortSignal;\n};\n\ntype GetJob = (jobId: GetQueueJobPath['jobId'], signal?: AbortSignal) => Promise<QueueJob>;\n\n/**\n * Waits on a queue job.\n *\n * - Takes the job, not its id: the component makes the poll legible in dev tools.\n * - `pollFn` reads the id off the key, so the key is the whole input.\n * - A job that ended as `error` is a `done` poll; interpreting it is the caller's job.\n */\nexport const createJobPoller =\n ({ getJob }: { getJob: GetJob }) =>\n (\n { id, component }: { id: GetQueueJobPath['jobId']; component: string },\n { interval, maxAttempts, timeout, signal }: QueueJobPollOptions = {},\n ) =>\n poller({\n pollKey: ['queue.job', { jobId: id, component }] as const,\n pollFn: ({ pollKey: [, params], signal: pollSignal }) => getJob(params.jobId, pollSignal),\n until: ({ data }) => jobStatus.queue.isTerminal(data.status),\n backoff: { type: 'constant', interval: interval ?? DEFAULT_POLL_INTERVAL },\n maxAttempts,\n timeout,\n signal,\n });\n","import { createGenericFetchClient, createOpenapiFetchClient } from '../../fetchClient';\nimport { collect } from '../../utils';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { createJobPoller } from './poller';\nimport type {\n CreateJobBody,\n GetQueueJobPath,\n KillJobPath,\n OrchestrationRerunPlanPath,\n SearchAllJobsQuery,\n SearchGroupedJobsQuery,\n SearchJobsQuery,\n} from './types';\n\nexport const createQueueClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const getJob = async (jobId: GetQueueJobPath['jobId'], signal?: AbortSignal) => {\n const { data } = await client.get(\n '/jobs/{jobId}',\n {\n path: { jobId },\n },\n { signal },\n );\n\n return data;\n };\n\n const searchJobs = async (query?: SearchJobsQuery, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/search/jobs',\n {\n query,\n },\n { signal },\n );\n\n return data;\n };\n\n const searchAllJobs = (query: SearchAllJobsQuery, signal?: AbortSignal) => {\n return collect({\n pageSize: query.limit,\n signal,\n fetchFrom: (offset, pageSize, batchSignal) => {\n return searchJobs({ ...query, limit: pageSize, offset }, batchSignal);\n },\n });\n };\n\n const createJob = async (body: CreateJobBody, signal?: AbortSignal) => {\n const { data } = await client.post('/jobs', { body }, { signal });\n\n return data;\n };\n\n const killJob = async (jobId: KillJobPath['jobId'], signal?: AbortSignal) => {\n const { data } = await client.post(\n '/jobs/{jobId}/kill',\n {\n path: { jobId },\n },\n { signal },\n );\n\n return data;\n };\n\n const searchGroupedJobs = async (query: SearchGroupedJobsQuery, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/search/grouped-jobs',\n {\n query,\n },\n { signal },\n );\n\n return data;\n };\n\n const getOrchestrationRerunPlan = async (\n jobId: OrchestrationRerunPlanPath['jobId'],\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get(\n '/orchestration-rerun-plan/{jobId}',\n {\n path: { jobId },\n },\n { signal },\n );\n\n return data;\n };\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health-check', {}, { signal });\n\n return data;\n };\n\n // Every wait on a queue job is the same wait, so it is the client's rather than a caller's.\n const poller = createJobPoller({ getJob });\n\n return {\n healthCheck,\n poller,\n getJob,\n searchJobs,\n searchAllJobs,\n createJob,\n killJob,\n searchGroupedJobs,\n getOrchestrationRerunPlan,\n };\n};\n"],"mappings":";;;;;;AAKA,MAAM,wBAAwB;;;;;;;;AAkB9B,MAAa,mBACV,EAAE,cAED,EAAE,IAAI,aACN,EAAE,UAAU,aAAa,SAAS,WAAgC,CAAC,MAEnEA,kBAAAA,OAAO;CACL,SAAS,CAAC,aAAa;EAAE,OAAO;EAAI;CAAU,CAAC;CAC/C,SAAS,EAAE,SAAS,GAAG,SAAS,QAAQ,iBAAiB,OAAO,OAAO,OAAO,UAAU;CACxF,QAAQ,EAAE,WAAWC,kBAAAA,UAAU,MAAM,WAAW,KAAK,MAAM;CAC3D,SAAS;EAAE,MAAM;EAAY,UAAU,YAAY;CAAsB;CACzE;CACA;CACA;AACF,CAAC;;;ACpBL,MAAa,qBAAqB,EAAE,SAAS,aAAa,WAA8B;CACtF,MAAM,SAASC,iCAAAA,yBAAgC;EAC7C;EACA;EACA,SAASC,aAAAA,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,gBAAgBC,iCAAAA,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,SAAS,OAAO,OAAiC,WAAyB;EAC9E,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,iBACA,EACE,MAAM,EAAE,MAAM,EAChB,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,aAAa,OAAO,OAAyB,WAAyB;EAC1E,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,gBACA,EACE,MACF,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,iBAAiB,OAA2B,WAAyB;EACzE,OAAOC,gBAAAA,QAAQ;GACb,UAAU,MAAM;GAChB;GACA,YAAY,QAAQ,UAAU,gBAAgB;IAC5C,OAAO,WAAW;KAAE,GAAG;KAAO,OAAO;KAAU;IAAO,GAAG,WAAW;GACtE;EACF,CAAC;CACH;CAEA,MAAM,YAAY,OAAO,MAAqB,WAAyB;EACrE,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EAEhE,OAAO;CACT;CAEA,MAAM,UAAU,OAAO,OAA6B,WAAyB;EAC3E,MAAM,EAAE,SAAS,MAAM,OAAO,KAC5B,sBACA,EACE,MAAM,EAAE,MAAM,EAChB,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,oBAAoB,OAAO,OAA+B,WAAyB;EACvF,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,wBACA,EACE,MACF,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,4BAA4B,OAChC,OACA,WACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,qCACA,EACE,MAAM,EAAE,MAAM,EAChB,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAKA,OAAO;EACL;EACA,QAJa,gBAAgB,EAAE,OAAO,CAIjC;EACL;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as collect } from "./collect-97WhfEpt.js";
|
|
2
|
-
import { a as poller, t as jobStatus } from "./jobStatus-
|
|
2
|
+
import { a as poller, t as jobStatus } from "./jobStatus-BJdbZ72V.js";
|
|
3
3
|
import { t as createGenericFetchClient } from "./createGenericFetchClient-KqiJhw8G.js";
|
|
4
4
|
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-wq8iGLZM.js";
|
|
5
5
|
import { t as createAuthHeaders } from "./auth-C6cHWIWx.js";
|
|
@@ -95,4 +95,4 @@ const createQueueClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
95
95
|
//#endregion
|
|
96
96
|
export { createQueueClient as t };
|
|
97
97
|
|
|
98
|
-
//# sourceMappingURL=queue-
|
|
98
|
+
//# sourceMappingURL=queue-CNvR-M23.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue-
|
|
1
|
+
{"version":3,"file":"queue-CNvR-M23.js","names":[],"sources":["../src/clients/queue/poller.ts","../src/clients/queue/queueClient.ts"],"sourcesContent":["import { jobStatus } from '../../domain/jobStatus';\nimport { poller } from '../../utils/async';\n\nimport type { GetQueueJobPath, QueueJob } from './types';\n\nconst DEFAULT_POLL_INTERVAL = 2000;\n\ntype QueueJobPollOptions = {\n interval?: number;\n maxAttempts?: number;\n timeout?: number;\n signal?: AbortSignal;\n};\n\ntype GetJob = (jobId: GetQueueJobPath['jobId'], signal?: AbortSignal) => Promise<QueueJob>;\n\n/**\n * Waits on a queue job.\n *\n * - Takes the job, not its id: the component makes the poll legible in dev tools.\n * - `pollFn` reads the id off the key, so the key is the whole input.\n * - A job that ended as `error` is a `done` poll; interpreting it is the caller's job.\n */\nexport const createJobPoller =\n ({ getJob }: { getJob: GetJob }) =>\n (\n { id, component }: { id: GetQueueJobPath['jobId']; component: string },\n { interval, maxAttempts, timeout, signal }: QueueJobPollOptions = {},\n ) =>\n poller({\n pollKey: ['queue.job', { jobId: id, component }] as const,\n pollFn: ({ pollKey: [, params], signal: pollSignal }) => getJob(params.jobId, pollSignal),\n until: ({ data }) => jobStatus.queue.isTerminal(data.status),\n backoff: { type: 'constant', interval: interval ?? DEFAULT_POLL_INTERVAL },\n maxAttempts,\n timeout,\n signal,\n });\n","import { createGenericFetchClient, createOpenapiFetchClient } from '../../fetchClient';\nimport { collect } from '../../utils';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { createJobPoller } from './poller';\nimport type {\n CreateJobBody,\n GetQueueJobPath,\n KillJobPath,\n OrchestrationRerunPlanPath,\n SearchAllJobsQuery,\n SearchGroupedJobsQuery,\n SearchJobsQuery,\n} from './types';\n\nexport const createQueueClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const getJob = async (jobId: GetQueueJobPath['jobId'], signal?: AbortSignal) => {\n const { data } = await client.get(\n '/jobs/{jobId}',\n {\n path: { jobId },\n },\n { signal },\n );\n\n return data;\n };\n\n const searchJobs = async (query?: SearchJobsQuery, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/search/jobs',\n {\n query,\n },\n { signal },\n );\n\n return data;\n };\n\n const searchAllJobs = (query: SearchAllJobsQuery, signal?: AbortSignal) => {\n return collect({\n pageSize: query.limit,\n signal,\n fetchFrom: (offset, pageSize, batchSignal) => {\n return searchJobs({ ...query, limit: pageSize, offset }, batchSignal);\n },\n });\n };\n\n const createJob = async (body: CreateJobBody, signal?: AbortSignal) => {\n const { data } = await client.post('/jobs', { body }, { signal });\n\n return data;\n };\n\n const killJob = async (jobId: KillJobPath['jobId'], signal?: AbortSignal) => {\n const { data } = await client.post(\n '/jobs/{jobId}/kill',\n {\n path: { jobId },\n },\n { signal },\n );\n\n return data;\n };\n\n const searchGroupedJobs = async (query: SearchGroupedJobsQuery, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/search/grouped-jobs',\n {\n query,\n },\n { signal },\n );\n\n return data;\n };\n\n const getOrchestrationRerunPlan = async (\n jobId: OrchestrationRerunPlanPath['jobId'],\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get(\n '/orchestration-rerun-plan/{jobId}',\n {\n path: { jobId },\n },\n { signal },\n );\n\n return data;\n };\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health-check', {}, { signal });\n\n return data;\n };\n\n // Every wait on a queue job is the same wait, so it is the client's rather than a caller's.\n const poller = createJobPoller({ getJob });\n\n return {\n healthCheck,\n poller,\n getJob,\n searchJobs,\n searchAllJobs,\n createJob,\n killJob,\n searchGroupedJobs,\n getOrchestrationRerunPlan,\n };\n};\n"],"mappings":";;;;;;AAKA,MAAM,wBAAwB;;;;;;;;AAkB9B,MAAa,mBACV,EAAE,cAED,EAAE,IAAI,aACN,EAAE,UAAU,aAAa,SAAS,WAAgC,CAAC,MAEnE,OAAO;CACL,SAAS,CAAC,aAAa;EAAE,OAAO;EAAI;CAAU,CAAC;CAC/C,SAAS,EAAE,SAAS,GAAG,SAAS,QAAQ,iBAAiB,OAAO,OAAO,OAAO,UAAU;CACxF,QAAQ,EAAE,WAAW,UAAU,MAAM,WAAW,KAAK,MAAM;CAC3D,SAAS;EAAE,MAAM;EAAY,UAAU,YAAY;CAAsB;CACzE;CACA;CACA;AACF,CAAC;;;ACpBL,MAAa,qBAAqB,EAAE,SAAS,aAAa,WAA8B;CACtF,MAAM,SAAS,yBAAgC;EAC7C;EACA;EACA,SAAS,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,gBAAgB,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,SAAS,OAAO,OAAiC,WAAyB;EAC9E,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,iBACA,EACE,MAAM,EAAE,MAAM,EAChB,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,aAAa,OAAO,OAAyB,WAAyB;EAC1E,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,gBACA,EACE,MACF,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,iBAAiB,OAA2B,WAAyB;EACzE,OAAO,QAAQ;GACb,UAAU,MAAM;GAChB;GACA,YAAY,QAAQ,UAAU,gBAAgB;IAC5C,OAAO,WAAW;KAAE,GAAG;KAAO,OAAO;KAAU;IAAO,GAAG,WAAW;GACtE;EACF,CAAC;CACH;CAEA,MAAM,YAAY,OAAO,MAAqB,WAAyB;EACrE,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EAEhE,OAAO;CACT;CAEA,MAAM,UAAU,OAAO,OAA6B,WAAyB;EAC3E,MAAM,EAAE,SAAS,MAAM,OAAO,KAC5B,sBACA,EACE,MAAM,EAAE,MAAM,EAChB,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,oBAAoB,OAAO,OAA+B,WAAyB;EACvF,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,wBACA,EACE,MACF,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,4BAA4B,OAChC,OACA,WACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,qCACA,EACE,MAAM,EAAE,MAAM,EAChB,GACA,EAAE,OAAO,CACX;EAEA,OAAO;CACT;CAEA,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAKA,OAAO;EACL;EACA,QAJa,gBAAgB,EAAE,OAAO,CAIjC;EACL;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|