@superblocksteam/library 2.0.3-next.108 → 2.0.3-next.110

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.
Files changed (23) hide show
  1. package/dist/{allPaths-BBpqcjjE.js → allPaths-BbYIeM33.js} +2 -2
  2. package/dist/{allPaths-BBpqcjjE.js.map → allPaths-BbYIeM33.js.map} +1 -1
  3. package/dist/{allPaths-BsahO6Fi.js → allPaths-KuT3i1zY.js} +2 -2
  4. package/dist/{allPaths-BsahO6Fi.js.map → allPaths-KuT3i1zY.js.map} +1 -1
  5. package/dist/{allPathsLoader-BZuVRUkZ.js → allPathsLoader--z2GO20T.js} +3 -3
  6. package/dist/{allPathsLoader-BZuVRUkZ.js.map → allPathsLoader--z2GO20T.js.map} +1 -1
  7. package/dist/{allPathsLoader-CDtb0W2A.js → allPathsLoader-CDaGqynd.js} +3 -3
  8. package/dist/{allPathsLoader-CDtb0W2A.js.map → allPathsLoader-CDaGqynd.js.map} +1 -1
  9. package/dist/{index-B9ibI377.js → index-DEfChqth.js} +81 -30
  10. package/dist/{index-B9ibI377.js.map → index-DEfChqth.js.map} +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{splitPathsBySizeLoader-B9AycY0i.js → splitPathsBySizeLoader-Cq7WZdnC.js} +2 -2
  13. package/dist/{splitPathsBySizeLoader-B9AycY0i.js.map → splitPathsBySizeLoader-Cq7WZdnC.js.map} +1 -1
  14. package/dist/{splitPathsBySizeLoader-D_MwylYU.js → splitPathsBySizeLoader-tnYhCeAp.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-D_MwylYU.js.map → splitPathsBySizeLoader-tnYhCeAp.js.map} +1 -1
  16. package/dist-types/lib/internal-details/lib/features/api-store.d.ts +4 -0
  17. package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +5 -5
  18. package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +4 -4
  19. package/dist-types/lib/triggers/registry.d.ts +5 -5
  20. package/dist-types/lib/triggers/run-event-handlers.d.ts +2 -1
  21. package/dist-types/lib/user-facing/entities/api/props.d.ts +6 -1
  22. package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -4
  23. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as clientExports } from "./index-B9ibI377.js";
2
- import { U, V, O, W, X, Y, Z, $, a0, a1, y, a2, a3, a4, a5, a6, R, a7, P, a8, a9, aa, ab, Q, x, S, o, d, e, m, q, l, L, z, t, u, f, n, i, g, y as y2, c, j, s, k, h, w, v, A, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, B, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, K, aR, aS, aT, aU, aV, aW, E, aX, aY, aZ, a_, a$, G, b0, b1, C, b2, b3, b4, r, J, H, b5, b6, b7, N, D, F, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, M, bF } from "./index-B9ibI377.js";
1
+ import { T as clientExports } from "./index-DEfChqth.js";
2
+ import { U, V, O, W, X, Y, Z, $, a0, a1, y, a2, a3, a4, a5, a6, R, a7, P, a8, a9, aa, ab, Q, x, S, o, d, e, m, q, l, L, z, t, u, f, n, i, g, y as y2, c, j, s, k, h, w, v, A, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, B, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, K, aR, aS, aT, aU, aV, aW, E, aX, aY, aZ, a_, a$, G, b0, b1, C, b2, b3, b4, r, J, H, b5, b6, b7, N, D, F, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, M, bF } from "./index-DEfChqth.js";
3
3
  const createRoot = clientExports.createRoot;
4
4
  export {
5
5
  U as Await,
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-B9ibI377.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-DEfChqth.js";
2
2
  var splitPathsBySizeLoader = function(name, size) {
3
3
  return __awaiter(void 0, void 0, void 0, function() {
4
4
  var key, pathsRecord;
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
31
31
  export {
32
32
  splitPathsBySizeLoader
33
33
  };
34
- //# sourceMappingURL=splitPathsBySizeLoader-B9AycY0i.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-Cq7WZdnC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-B9AycY0i.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"splitPathsBySizeLoader-Cq7WZdnC.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-B9ibI377.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-DEfChqth.js";
2
2
  var splitPathsBySizeLoader = function(name, size) {
3
3
  return __awaiter(void 0, void 0, void 0, function() {
4
4
  var key, pathsRecord;
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
31
31
  export {
32
32
  splitPathsBySizeLoader
33
33
  };
34
- //# sourceMappingURL=splitPathsBySizeLoader-D_MwylYU.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-tnYhCeAp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-D_MwylYU.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"splitPathsBySizeLoader-tnYhCeAp.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
@@ -8,6 +8,7 @@ declare class ApiManager {
8
8
  private apisByName;
9
9
  private apiNameToDepCandidates;
10
10
  private apiNameToApiReferences;
11
+ private runningApiControllers;
11
12
  constructor(rootStore: RootStore);
12
13
  setTokens(token: string, accessToken: string): void;
13
14
  isInitialized(): boolean;
@@ -27,5 +28,8 @@ declare class ApiManager {
27
28
  runApi(apiName: string, { scopeId }: {
28
29
  scopeId: string;
29
30
  }): Promise<import("../types.js").ApiV2ExecutionResponse | undefined>;
31
+ cancelApi(apiName: string, { scopeId }: {
32
+ scopeId: string;
33
+ }): Promise<void>;
30
34
  }
31
35
  export default ApiManager;
@@ -1,18 +1,18 @@
1
- import { TriggerStepType } from "@superblocksteam/library-shared/types";
1
+ import { type SbApi, TriggerStepType } from "@superblocksteam/library-shared/types";
2
2
  import type { BaseStepDef } from "../../../sb-trigger.js";
3
3
  import type { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
4
4
  import type { ExecutionContext } from "../../base.js";
5
5
  export interface CancelApisStep extends BaseStepDef {
6
6
  type: typeof TriggerStepType.CANCEL_APIS;
7
- apiNames: string[];
7
+ apis: SbApi[];
8
8
  onCancel?: SbEventFlow;
9
9
  }
10
10
  export declare const CancelApisTrigger: {
11
11
  type: "cancelApi";
12
- execute(_context: ExecutionContext, step: CancelApisStep): Promise<void>;
13
- create(apiNames: string[], onCancel?: SbEventFlow): {
12
+ execute(context: ExecutionContext, step: CancelApisStep): Promise<void>;
13
+ create(apis: SbApi[], onCancel?: SbEventFlow): {
14
14
  type: "cancelApi";
15
- apiNames: string[];
15
+ apis: SbApi[];
16
16
  onCancel: SbEventFlow | undefined;
17
17
  };
18
18
  };
@@ -1,20 +1,20 @@
1
- import { TriggerStepType } from "@superblocksteam/library-shared/types";
1
+ import { TriggerStepType, type SbApi } from "@superblocksteam/library-shared/types";
2
2
  import type { ApiV2ExecutionResponse } from "../../../internal-details/lib/types.js";
3
3
  import type { BaseStepDef } from "../../../sb-trigger.js";
4
4
  import type { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
5
5
  import type { ExecutionContext } from "../../base.js";
6
6
  export interface RunApisStep extends BaseStepDef {
7
7
  type: typeof TriggerStepType.RUN_APIS;
8
- apiNames: string[];
8
+ apis: SbApi[];
9
9
  onSuccess?: SbEventFlow;
10
10
  onError?: SbEventFlow;
11
11
  }
12
12
  export declare const RunApisTrigger: {
13
13
  type: "executeApi";
14
14
  execute(context: ExecutionContext, step: RunApisStep, onFinish?: (responses: PromiseSettledResult<ApiV2ExecutionResponse | undefined>[]) => void): Promise<void>;
15
- create(apiNames: string[], onSuccess?: SbEventFlow, onError?: SbEventFlow): {
15
+ create(apis: SbApi[], onSuccess?: SbEventFlow, onError?: SbEventFlow): {
16
16
  type: "executeApi";
17
- apiNames: string[];
17
+ apis: SbApi[];
18
18
  onSuccess: SbEventFlow | undefined;
19
19
  onError: SbEventFlow | undefined;
20
20
  };
@@ -97,19 +97,19 @@ declare const EventRegistry: {
97
97
  readonly executeApi: {
98
98
  type: "executeApi";
99
99
  execute(context: import("./base.js").ExecutionContext, step: import("./implementations/apis/run-apis.js").RunApisStep, onFinish?: (responses: PromiseSettledResult<import("../internal-details/lib/types.js").ApiV2ExecutionResponse | undefined>[]) => void): Promise<void>;
100
- create(apiNames: string[], onSuccess?: import("../index.js").SbEventFlow, onError?: import("../index.js").SbEventFlow): {
100
+ create(apis: import("@superblocksteam/library-shared/types").SbApi[], onSuccess?: import("../index.js").SbEventFlow, onError?: import("../index.js").SbEventFlow): {
101
101
  type: "executeApi";
102
- apiNames: string[];
102
+ apis: import("@superblocksteam/library-shared/types").SbApi[];
103
103
  onSuccess: import("../index.js").SbEventFlow | undefined;
104
104
  onError: import("../index.js").SbEventFlow | undefined;
105
105
  };
106
106
  };
107
107
  readonly cancelApi: {
108
108
  type: "cancelApi";
109
- execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/apis/cancel-apis.js").CancelApisStep): Promise<void>;
110
- create(apiNames: string[], onCancel?: import("../index.js").SbEventFlow): {
109
+ execute(context: import("./base.js").ExecutionContext, step: import("./implementations/apis/cancel-apis.js").CancelApisStep): Promise<void>;
110
+ create(apis: import("@superblocksteam/library-shared/types").SbApi[], onCancel?: import("../index.js").SbEventFlow): {
111
111
  type: "cancelApi";
112
- apiNames: string[];
112
+ apis: import("@superblocksteam/library-shared/types").SbApi[];
113
113
  onCancel: import("../index.js").SbEventFlow | undefined;
114
114
  };
115
115
  };
@@ -2,10 +2,11 @@ import { TriggerStepType } from "@superblocksteam/shared";
2
2
  import { type Name } from "../internal-details/lib/evaluator/names.js";
3
3
  import type { ScopeId } from "../internal-details/lib/evaluator/base-entity-manager.js";
4
4
  import type { SbEventFlow } from "../user-facing/sb-event-flow.js";
5
+ import type { SbApi } from "@superblocksteam/library-shared/types";
5
6
  import type { ValidStepDef } from "@superblocksteam/shared";
6
7
  export declare function isApiStep(step: ValidStepDef): step is ValidStepDef & {
7
8
  type: typeof TriggerStepType.RUN_APIS;
8
- apiNames: string[];
9
+ apis: SbApi[];
9
10
  onSuccess?: SbEventFlow;
10
11
  onError?: SbEventFlow;
11
12
  };
@@ -1,4 +1,8 @@
1
- import { Section, Prop } from "../../properties-panel/props-builder.js";
1
+ import { Section, Prop, type InternalProps } from "../../properties-panel/props-builder.js";
2
+ export type ApiEntity = InternalProps<typeof propertiesDefinition> & {
3
+ run: () => void;
4
+ cancel: () => void;
5
+ };
2
6
  export declare const propertiesDefinition: {
3
7
  events: Section<Record<string, Prop<any, any>> & {
4
8
  onSuccess: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
@@ -11,5 +15,6 @@ export declare const propertiesDefinition: {
11
15
  }>;
12
16
  functions: Section<Record<string, Prop<any, any>> & {
13
17
  run: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
18
+ cancel: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
14
19
  }>;
15
20
  };
@@ -29,10 +29,10 @@ declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInp
29
29
  controlModal(modalId: string, action: "open" | "close"): this;
30
30
  static controlTimer(timerId: string, action: "start" | "stop" | "toggle"): SbEventFlow;
31
31
  controlTimer(timerId: string, action: "start" | "stop" | "toggle"): this;
32
- static runApis(apiNames: string[], onSuccess?: SbEventFlow, onError?: SbEventFlow): SbEventFlow;
33
- runApis(apiNames: string[], onSuccess?: SbEventFlow, onError?: SbEventFlow): this;
34
- static cancelApis(apiNames: string[], onCancel?: SbEventFlow): SbEventFlow;
35
- cancelApis(apiNames: string[], onCancel?: SbEventFlow): this;
32
+ static runApis(apis: any[], onSuccess?: SbEventFlow, onError?: SbEventFlow): SbEventFlow;
33
+ runApis(apis: any[], onSuccess?: SbEventFlow, onError?: SbEventFlow): this;
34
+ static cancelApis(apis: any[], onCancel?: SbEventFlow): SbEventFlow;
35
+ cancelApis(apis: any[], onCancel?: SbEventFlow): this;
36
36
  static resetComponent(widget: SelectedWidgetProps, propertyName: string, resetChildren: boolean): SbEventFlow;
37
37
  resetComponent(widget: SelectedWidgetProps, propertyName: string, resetChildren: boolean): this;
38
38
  static resetStateVar(state: SelectedStateVarProps): SbEventFlow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.3-next.108",
3
+ "version": "2.0.3-next.110",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -32,7 +32,7 @@
32
32
  "@react-hook/resize-observer": "1.2.6",
33
33
  "@superblocksteam/fast-deep-equal": "3.1.4",
34
34
  "@superblocksteam/iso-currency": "2.0.0",
35
- "@superblocksteam/library-shared": "2.0.3-next.108",
35
+ "@superblocksteam/library-shared": "2.0.3-next.110",
36
36
  "@superblocksteam/shared": "0.8939.0",
37
37
  "antd": "4.24.15",
38
38
  "apca-w3": "^0.1.9",