@flowcore/sdk 1.68.0 → 1.69.1
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 +22 -0
- package/esm/commands/data-pathways/assignment.complete.d.ts +16 -0
- package/esm/commands/data-pathways/assignment.complete.d.ts.map +1 -0
- package/esm/commands/data-pathways/assignment.complete.js +18 -0
- package/esm/commands/data-pathways/assignment.expire-leases.d.ts +12 -0
- package/esm/commands/data-pathways/assignment.expire-leases.d.ts.map +1 -0
- package/esm/commands/data-pathways/assignment.expire-leases.js +19 -0
- package/esm/commands/data-pathways/assignment.fetch.d.ts +15 -0
- package/esm/commands/data-pathways/assignment.fetch.d.ts.map +1 -0
- package/esm/commands/data-pathways/assignment.fetch.js +25 -0
- package/esm/commands/data-pathways/assignment.heartbeat.d.ts +22 -0
- package/esm/commands/data-pathways/assignment.heartbeat.d.ts.map +1 -0
- package/esm/commands/data-pathways/assignment.heartbeat.js +18 -0
- package/esm/commands/data-pathways/assignment.list.d.ts +17 -0
- package/esm/commands/data-pathways/assignment.list.d.ts.map +1 -0
- package/esm/commands/data-pathways/assignment.list.js +30 -0
- package/esm/commands/data-pathways/assignment.next.d.ts +14 -0
- package/esm/commands/data-pathways/assignment.next.d.ts.map +1 -0
- package/esm/commands/data-pathways/assignment.next.js +16 -0
- package/esm/commands/data-pathways/capacity.fetch.d.ts +11 -0
- package/esm/commands/data-pathways/capacity.fetch.d.ts.map +1 -0
- package/esm/commands/data-pathways/capacity.fetch.js +18 -0
- package/esm/commands/data-pathways/command.dispatch-restart.d.ts +24 -0
- package/esm/commands/data-pathways/command.dispatch-restart.d.ts.map +1 -0
- package/esm/commands/data-pathways/command.dispatch-restart.js +27 -0
- package/esm/commands/data-pathways/command.dispatch-stop.d.ts +20 -0
- package/esm/commands/data-pathways/command.dispatch-stop.d.ts.map +1 -0
- package/esm/commands/data-pathways/command.dispatch-stop.js +27 -0
- package/esm/commands/data-pathways/command.pending.d.ts +15 -0
- package/esm/commands/data-pathways/command.pending.d.ts.map +1 -0
- package/esm/commands/data-pathways/command.pending.js +25 -0
- package/esm/commands/data-pathways/command.update-status.d.ts +19 -0
- package/esm/commands/data-pathways/command.update-status.d.ts.map +1 -0
- package/esm/commands/data-pathways/command.update-status.js +30 -0
- package/esm/commands/data-pathways/index.d.ts +28 -0
- package/esm/commands/data-pathways/index.d.ts.map +1 -0
- package/esm/commands/data-pathways/index.js +35 -0
- package/esm/commands/data-pathways/pathway.create.d.ts +23 -0
- package/esm/commands/data-pathways/pathway.create.d.ts.map +1 -0
- package/esm/commands/data-pathways/pathway.create.js +23 -0
- package/esm/commands/data-pathways/pathway.disable.d.ts +18 -0
- package/esm/commands/data-pathways/pathway.disable.d.ts.map +1 -0
- package/esm/commands/data-pathways/pathway.disable.js +30 -0
- package/esm/commands/data-pathways/pathway.fetch.d.ts +15 -0
- package/esm/commands/data-pathways/pathway.fetch.d.ts.map +1 -0
- package/esm/commands/data-pathways/pathway.fetch.js +25 -0
- package/esm/commands/data-pathways/pathway.list.d.ts +18 -0
- package/esm/commands/data-pathways/pathway.list.d.ts.map +1 -0
- package/esm/commands/data-pathways/pathway.list.js +32 -0
- package/esm/commands/data-pathways/pump-state.fetch.d.ts +15 -0
- package/esm/commands/data-pathways/pump-state.fetch.d.ts.map +1 -0
- package/esm/commands/data-pathways/pump-state.fetch.js +25 -0
- package/esm/commands/data-pathways/pump-state.save.d.ts +19 -0
- package/esm/commands/data-pathways/pump-state.save.d.ts.map +1 -0
- package/esm/commands/data-pathways/pump-state.save.js +22 -0
- package/esm/commands/data-pathways/quota.fetch.d.ts +15 -0
- package/esm/commands/data-pathways/quota.fetch.d.ts.map +1 -0
- package/esm/commands/data-pathways/quota.fetch.js +25 -0
- package/esm/commands/data-pathways/quota.list.d.ts +11 -0
- package/esm/commands/data-pathways/quota.list.d.ts.map +1 -0
- package/esm/commands/data-pathways/quota.list.js +18 -0
- package/esm/commands/data-pathways/quota.set.d.ts +20 -0
- package/esm/commands/data-pathways/quota.set.d.ts.map +1 -0
- package/esm/commands/data-pathways/quota.set.js +23 -0
- package/esm/commands/data-pathways/restart.fetch.d.ts +15 -0
- package/esm/commands/data-pathways/restart.fetch.d.ts.map +1 -0
- package/esm/commands/data-pathways/restart.fetch.js +25 -0
- package/esm/commands/data-pathways/restart.request.d.ts +29 -0
- package/esm/commands/data-pathways/restart.request.d.ts.map +1 -0
- package/esm/commands/data-pathways/restart.request.js +16 -0
- package/esm/commands/data-pathways/slot.deregister.d.ts +17 -0
- package/esm/commands/data-pathways/slot.deregister.d.ts.map +1 -0
- package/esm/commands/data-pathways/slot.deregister.js +27 -0
- package/esm/commands/data-pathways/slot.fetch.d.ts +15 -0
- package/esm/commands/data-pathways/slot.fetch.d.ts.map +1 -0
- package/esm/commands/data-pathways/slot.fetch.js +25 -0
- package/esm/commands/data-pathways/slot.heartbeat.d.ts +16 -0
- package/esm/commands/data-pathways/slot.heartbeat.d.ts.map +1 -0
- package/esm/commands/data-pathways/slot.heartbeat.js +26 -0
- package/esm/commands/data-pathways/slot.list.d.ts +15 -0
- package/esm/commands/data-pathways/slot.list.d.ts.map +1 -0
- package/esm/commands/data-pathways/slot.list.js +26 -0
- package/esm/commands/data-pathways/slot.register.d.ts +17 -0
- package/esm/commands/data-pathways/slot.register.d.ts.map +1 -0
- package/esm/commands/data-pathways/slot.register.js +16 -0
- package/esm/commands/index.d.ts +1 -0
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +2 -0
- package/esm/contracts/data-pathways.d.ts +180 -0
- package/esm/contracts/data-pathways.d.ts.map +1 -0
- package/esm/contracts/data-pathways.js +164 -0
- package/esm/contracts/index.d.ts +1 -0
- package/esm/contracts/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/commands/data-pathways/assignment.complete.d.ts +16 -0
- package/script/commands/data-pathways/assignment.complete.d.ts.map +1 -0
- package/script/commands/data-pathways/assignment.complete.js +22 -0
- package/script/commands/data-pathways/assignment.expire-leases.d.ts +12 -0
- package/script/commands/data-pathways/assignment.expire-leases.d.ts.map +1 -0
- package/script/commands/data-pathways/assignment.expire-leases.js +23 -0
- package/script/commands/data-pathways/assignment.fetch.d.ts +15 -0
- package/script/commands/data-pathways/assignment.fetch.d.ts.map +1 -0
- package/script/commands/data-pathways/assignment.fetch.js +29 -0
- package/script/commands/data-pathways/assignment.heartbeat.d.ts +22 -0
- package/script/commands/data-pathways/assignment.heartbeat.d.ts.map +1 -0
- package/script/commands/data-pathways/assignment.heartbeat.js +22 -0
- package/script/commands/data-pathways/assignment.list.d.ts +17 -0
- package/script/commands/data-pathways/assignment.list.d.ts.map +1 -0
- package/script/commands/data-pathways/assignment.list.js +34 -0
- package/script/commands/data-pathways/assignment.next.d.ts +14 -0
- package/script/commands/data-pathways/assignment.next.d.ts.map +1 -0
- package/script/commands/data-pathways/assignment.next.js +20 -0
- package/script/commands/data-pathways/capacity.fetch.d.ts +11 -0
- package/script/commands/data-pathways/capacity.fetch.d.ts.map +1 -0
- package/script/commands/data-pathways/capacity.fetch.js +22 -0
- package/script/commands/data-pathways/command.dispatch-restart.d.ts +24 -0
- package/script/commands/data-pathways/command.dispatch-restart.d.ts.map +1 -0
- package/script/commands/data-pathways/command.dispatch-restart.js +31 -0
- package/script/commands/data-pathways/command.dispatch-stop.d.ts +20 -0
- package/script/commands/data-pathways/command.dispatch-stop.d.ts.map +1 -0
- package/script/commands/data-pathways/command.dispatch-stop.js +31 -0
- package/script/commands/data-pathways/command.pending.d.ts +15 -0
- package/script/commands/data-pathways/command.pending.d.ts.map +1 -0
- package/script/commands/data-pathways/command.pending.js +29 -0
- package/script/commands/data-pathways/command.update-status.d.ts +19 -0
- package/script/commands/data-pathways/command.update-status.d.ts.map +1 -0
- package/script/commands/data-pathways/command.update-status.js +34 -0
- package/script/commands/data-pathways/index.d.ts +28 -0
- package/script/commands/data-pathways/index.d.ts.map +1 -0
- package/script/commands/data-pathways/index.js +51 -0
- package/script/commands/data-pathways/pathway.create.d.ts +23 -0
- package/script/commands/data-pathways/pathway.create.d.ts.map +1 -0
- package/script/commands/data-pathways/pathway.create.js +27 -0
- package/script/commands/data-pathways/pathway.disable.d.ts +18 -0
- package/script/commands/data-pathways/pathway.disable.d.ts.map +1 -0
- package/script/commands/data-pathways/pathway.disable.js +34 -0
- package/script/commands/data-pathways/pathway.fetch.d.ts +15 -0
- package/script/commands/data-pathways/pathway.fetch.d.ts.map +1 -0
- package/script/commands/data-pathways/pathway.fetch.js +29 -0
- package/script/commands/data-pathways/pathway.list.d.ts +18 -0
- package/script/commands/data-pathways/pathway.list.d.ts.map +1 -0
- package/script/commands/data-pathways/pathway.list.js +36 -0
- package/script/commands/data-pathways/pump-state.fetch.d.ts +15 -0
- package/script/commands/data-pathways/pump-state.fetch.d.ts.map +1 -0
- package/script/commands/data-pathways/pump-state.fetch.js +29 -0
- package/script/commands/data-pathways/pump-state.save.d.ts +19 -0
- package/script/commands/data-pathways/pump-state.save.d.ts.map +1 -0
- package/script/commands/data-pathways/pump-state.save.js +26 -0
- package/script/commands/data-pathways/quota.fetch.d.ts +15 -0
- package/script/commands/data-pathways/quota.fetch.d.ts.map +1 -0
- package/script/commands/data-pathways/quota.fetch.js +29 -0
- package/script/commands/data-pathways/quota.list.d.ts +11 -0
- package/script/commands/data-pathways/quota.list.d.ts.map +1 -0
- package/script/commands/data-pathways/quota.list.js +22 -0
- package/script/commands/data-pathways/quota.set.d.ts +20 -0
- package/script/commands/data-pathways/quota.set.d.ts.map +1 -0
- package/script/commands/data-pathways/quota.set.js +27 -0
- package/script/commands/data-pathways/restart.fetch.d.ts +15 -0
- package/script/commands/data-pathways/restart.fetch.d.ts.map +1 -0
- package/script/commands/data-pathways/restart.fetch.js +29 -0
- package/script/commands/data-pathways/restart.request.d.ts +29 -0
- package/script/commands/data-pathways/restart.request.d.ts.map +1 -0
- package/script/commands/data-pathways/restart.request.js +20 -0
- package/script/commands/data-pathways/slot.deregister.d.ts +17 -0
- package/script/commands/data-pathways/slot.deregister.d.ts.map +1 -0
- package/script/commands/data-pathways/slot.deregister.js +31 -0
- package/script/commands/data-pathways/slot.fetch.d.ts +15 -0
- package/script/commands/data-pathways/slot.fetch.d.ts.map +1 -0
- package/script/commands/data-pathways/slot.fetch.js +29 -0
- package/script/commands/data-pathways/slot.heartbeat.d.ts +16 -0
- package/script/commands/data-pathways/slot.heartbeat.d.ts.map +1 -0
- package/script/commands/data-pathways/slot.heartbeat.js +30 -0
- package/script/commands/data-pathways/slot.list.d.ts +15 -0
- package/script/commands/data-pathways/slot.list.d.ts.map +1 -0
- package/script/commands/data-pathways/slot.list.js +30 -0
- package/script/commands/data-pathways/slot.register.d.ts +17 -0
- package/script/commands/data-pathways/slot.register.d.ts.map +1 -0
- package/script/commands/data-pathways/slot.register.js +20 -0
- package/script/commands/index.d.ts +1 -0
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +2 -0
- package/script/contracts/data-pathways.d.ts +180 -0
- package/script/contracts/data-pathways.d.ts.map +1 -0
- package/script/contracts/data-pathways.js +167 -0
- package/script/contracts/index.d.ts +1 -0
- package/script/contracts/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.69.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.69.0...v1.69.1) (2026-03-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* apply deno fmt to documentation files ([2c69a9c](https://github.com/flowcore-io/flowcore-sdk/commit/2c69a9c30ac9e9dc3ef45b7f4c31914eb7b0ae11))
|
|
9
|
+
|
|
10
|
+
## [1.69.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.68.0...v1.69.0) (2026-03-17)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add Data Pathways SDK commands ([cd6633c](https://github.com/flowcore-io/flowcore-sdk/commit/cd6633c8afc92572039470d7ed7ee07f65d508f2))
|
|
16
|
+
* add Data Pathways SDK commands ([e0e4f70](https://github.com/flowcore-io/flowcore-sdk/commit/e0e4f70ea181c727741342397c1a25ae28964de9))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* add explicit getMethod() override to POST commands ([aa0127e](https://github.com/flowcore-io/flowcore-sdk/commit/aa0127e0a7dd8a864ba45bce85d2e266eabdbb16))
|
|
22
|
+
* add explicit TypeBox type annotations for JSR no-slow-types lint ([a0182a9](https://github.com/flowcore-io/flowcore-sdk/commit/a0182a917f7dd5ac50d3fcbdb9e36972fe347d8e))
|
|
23
|
+
* apply deno fmt formatting ([b0780ba](https://github.com/flowcore-io/flowcore-sdk/commit/b0780baaf49eb704d6f7568d5d6670980e227cc3))
|
|
24
|
+
|
|
3
25
|
## [1.68.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.67.0...v1.68.0) (2026-03-04)
|
|
4
26
|
|
|
5
27
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
export interface DataPathwayAssignmentCompleteInput {
|
|
3
|
+
slotId: string;
|
|
4
|
+
assignmentId: string;
|
|
5
|
+
pathwayId: string;
|
|
6
|
+
outcome: "completed" | "failed" | "revoked";
|
|
7
|
+
}
|
|
8
|
+
export declare class DataPathwayAssignmentCompleteCommand extends Command<DataPathwayAssignmentCompleteInput, null> {
|
|
9
|
+
protected retryOnFailure: boolean;
|
|
10
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
11
|
+
protected getMethod(): string;
|
|
12
|
+
protected getBaseUrl(): string;
|
|
13
|
+
protected getPath(): string;
|
|
14
|
+
protected parseResponse(rawResponse: unknown): null;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=assignment.complete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignment.complete.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/assignment.complete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAA;CAC5C;AAED,qBAAa,oCAAqC,SAAQ,OAAO,CAAC,kCAAkC,EAAE,IAAI,CAAC;IACzG,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAClD,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,SAAS,IAAI,MAAM;cAInB,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAKjB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;CAG7D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
export class DataPathwayAssignmentCompleteCommand extends Command {
|
|
3
|
+
retryOnFailure = false;
|
|
4
|
+
allowedModes = ["apiKey"];
|
|
5
|
+
getMethod() {
|
|
6
|
+
return "POST";
|
|
7
|
+
}
|
|
8
|
+
getBaseUrl() {
|
|
9
|
+
return "https://data-pathways.api.flowcore.io";
|
|
10
|
+
}
|
|
11
|
+
getPath() {
|
|
12
|
+
return `/api/v1/assignments/complete`;
|
|
13
|
+
}
|
|
14
|
+
// deno-lint-ignore no-unused-vars
|
|
15
|
+
parseResponse(rawResponse) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayExpireLeasesResponse } from "../../contracts/data-pathways.js";
|
|
3
|
+
export type DataPathwayAssignmentExpireLeasesInput = Record<string, never>;
|
|
4
|
+
export declare class DataPathwayAssignmentExpireLeasesCommand extends Command<DataPathwayAssignmentExpireLeasesInput, DataPathwayExpireLeasesResponse> {
|
|
5
|
+
protected retryOnFailure: boolean;
|
|
6
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
7
|
+
protected getBaseUrl(): string;
|
|
8
|
+
protected getPath(): string;
|
|
9
|
+
protected getBody(): Record<string, unknown> | undefined;
|
|
10
|
+
protected parseResponse(rawResponse: unknown): DataPathwayExpireLeasesResponse;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=assignment.expire-leases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignment.expire-leases.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/assignment.expire-leases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EACL,KAAK,+BAA+B,EAErC,MAAM,kCAAkC,CAAA;AAGzC,MAAM,MAAM,sCAAsC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAE1E,qBAAa,wCACX,SAAQ,OAAO,CAAC,sCAAsC,EAAE,+BAA+B,CAAC;IACxF,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAClD,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;cAI9C,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,+BAA+B;CAGxF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayExpireLeasesResponseSchema, } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
|
+
export class DataPathwayAssignmentExpireLeasesCommand extends Command {
|
|
5
|
+
retryOnFailure = false;
|
|
6
|
+
allowedModes = ["apiKey"];
|
|
7
|
+
getBaseUrl() {
|
|
8
|
+
return "https://data-pathways.api.flowcore.io";
|
|
9
|
+
}
|
|
10
|
+
getPath() {
|
|
11
|
+
return `/api/v1/assignments/expire-leases`;
|
|
12
|
+
}
|
|
13
|
+
getBody() {
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
parseResponse(rawResponse) {
|
|
17
|
+
return parseResponseHelper(DataPathwayExpireLeasesResponseSchema, rawResponse);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayAssignment } from "../../contracts/data-pathways.js";
|
|
3
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
4
|
+
export interface DataPathwayAssignmentFetchInput {
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class DataPathwayAssignmentFetchCommand extends Command<DataPathwayAssignmentFetchInput, DataPathwayAssignment> {
|
|
8
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
9
|
+
protected getMethod(): string;
|
|
10
|
+
protected getBaseUrl(): string;
|
|
11
|
+
protected getPath(): string;
|
|
12
|
+
protected parseResponse(rawResponse: unknown): DataPathwayAssignment;
|
|
13
|
+
protected handleClientError(error: ClientError): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=assignment.fetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignment.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/assignment.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,qBAAqB,EAA+B,MAAM,kCAAkC,CAAA;AAC1G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE,MAAM,WAAW,+BAA+B;IAC9C,EAAE,EAAE,MAAM,CAAA;CACX;AAED,qBAAa,iCAAkC,SAAQ,OAAO,CAAC,+BAA+B,EAAE,qBAAqB,CAAC;IACpH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,SAAS,IAAI,MAAM;cAInB,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,qBAAqB;cAI1D,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAM/D"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayAssignmentSchema } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { NotFoundException } from "../../exceptions/not-found.js";
|
|
4
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
5
|
+
export class DataPathwayAssignmentFetchCommand extends Command {
|
|
6
|
+
allowedModes = ["bearer"];
|
|
7
|
+
getMethod() {
|
|
8
|
+
return "GET";
|
|
9
|
+
}
|
|
10
|
+
getBaseUrl() {
|
|
11
|
+
return "https://data-pathways.api.flowcore.io";
|
|
12
|
+
}
|
|
13
|
+
getPath() {
|
|
14
|
+
return `/api/v1/assignments/${this.input.id}`;
|
|
15
|
+
}
|
|
16
|
+
parseResponse(rawResponse) {
|
|
17
|
+
return parseResponseHelper(DataPathwayAssignmentSchema, rawResponse);
|
|
18
|
+
}
|
|
19
|
+
handleClientError(error) {
|
|
20
|
+
if (error.status === 404) {
|
|
21
|
+
throw new NotFoundException("DataPathwayAssignment", { id: this.input.id });
|
|
22
|
+
}
|
|
23
|
+
throw error;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
export interface DataPathwayAssignmentHeartbeatInput {
|
|
3
|
+
slotId: string;
|
|
4
|
+
assignmentId: string;
|
|
5
|
+
pathwayId: string;
|
|
6
|
+
metrics: {
|
|
7
|
+
eventsFetchedTotal?: number;
|
|
8
|
+
eventsDeliveredTotal?: number;
|
|
9
|
+
deliveryErrorsTotal?: number;
|
|
10
|
+
bufferDepth?: number;
|
|
11
|
+
lagSeconds?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare class DataPathwayAssignmentHeartbeatCommand extends Command<DataPathwayAssignmentHeartbeatInput, null> {
|
|
15
|
+
protected retryOnFailure: boolean;
|
|
16
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
17
|
+
protected getMethod(): string;
|
|
18
|
+
protected getBaseUrl(): string;
|
|
19
|
+
protected getPath(): string;
|
|
20
|
+
protected parseResponse(rawResponse: unknown): null;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=assignment.heartbeat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignment.heartbeat.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/assignment.heartbeat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,MAAM,WAAW,mCAAmC;IAClD,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE;QACP,kBAAkB,CAAC,EAAE,MAAM,CAAA;QAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAA;QAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;QAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;CACF;AAED,qBAAa,qCAAsC,SAAQ,OAAO,CAAC,mCAAmC,EAAE,IAAI,CAAC;IAC3G,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAClD,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,SAAS,IAAI,MAAM;cAInB,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAKjB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;CAG7D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
export class DataPathwayAssignmentHeartbeatCommand extends Command {
|
|
3
|
+
retryOnFailure = false;
|
|
4
|
+
allowedModes = ["apiKey"];
|
|
5
|
+
getMethod() {
|
|
6
|
+
return "POST";
|
|
7
|
+
}
|
|
8
|
+
getBaseUrl() {
|
|
9
|
+
return "https://data-pathways.api.flowcore.io";
|
|
10
|
+
}
|
|
11
|
+
getPath() {
|
|
12
|
+
return `/api/v1/assignments/heartbeat`;
|
|
13
|
+
}
|
|
14
|
+
// deno-lint-ignore no-unused-vars
|
|
15
|
+
parseResponse(rawResponse) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayAssignmentList } from "../../contracts/data-pathways.js";
|
|
3
|
+
export interface DataPathwayAssignmentListInput {
|
|
4
|
+
status?: "active" | "completed" | "failed" | "revoked" | "expired";
|
|
5
|
+
slotId?: string;
|
|
6
|
+
pathwayId?: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
offset?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class DataPathwayAssignmentListCommand extends Command<DataPathwayAssignmentListInput, DataPathwayAssignmentList> {
|
|
11
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
12
|
+
protected getMethod(): string;
|
|
13
|
+
protected getBaseUrl(): string;
|
|
14
|
+
protected getPath(): string;
|
|
15
|
+
protected parseResponse(rawResponse: unknown): DataPathwayAssignmentList;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=assignment.list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignment.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/assignment.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,yBAAyB,EAAmC,MAAM,kCAAkC,CAAA;AAGlH,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAA;IAClE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,qBAAa,gCACX,SAAQ,OAAO,CAAC,8BAA8B,EAAE,yBAAyB,CAAC;IAC1E,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,SAAS,IAAI,MAAM;cAInB,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAWjB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,yBAAyB;CAGlF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayAssignmentListSchema } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
|
+
export class DataPathwayAssignmentListCommand extends Command {
|
|
5
|
+
allowedModes = ["bearer"];
|
|
6
|
+
getMethod() {
|
|
7
|
+
return "GET";
|
|
8
|
+
}
|
|
9
|
+
getBaseUrl() {
|
|
10
|
+
return "https://data-pathways.api.flowcore.io";
|
|
11
|
+
}
|
|
12
|
+
getPath() {
|
|
13
|
+
const queryParams = new URLSearchParams();
|
|
14
|
+
if (this.input.status)
|
|
15
|
+
queryParams.set("status", this.input.status);
|
|
16
|
+
if (this.input.slotId)
|
|
17
|
+
queryParams.set("slotId", this.input.slotId);
|
|
18
|
+
if (this.input.pathwayId)
|
|
19
|
+
queryParams.set("pathwayId", this.input.pathwayId);
|
|
20
|
+
if (this.input.limit !== undefined)
|
|
21
|
+
queryParams.set("limit", String(this.input.limit));
|
|
22
|
+
if (this.input.offset !== undefined)
|
|
23
|
+
queryParams.set("offset", String(this.input.offset));
|
|
24
|
+
const qs = queryParams.toString();
|
|
25
|
+
return `/api/v1/assignments${qs ? `?${qs}` : ""}`;
|
|
26
|
+
}
|
|
27
|
+
parseResponse(rawResponse) {
|
|
28
|
+
return parseResponseHelper(DataPathwayAssignmentListSchema, rawResponse);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayAssignmentNext } from "../../contracts/data-pathways.js";
|
|
3
|
+
export interface DataPathwayAssignmentNextInput {
|
|
4
|
+
slotId: string;
|
|
5
|
+
class: "small" | "medium" | "high";
|
|
6
|
+
}
|
|
7
|
+
export declare class DataPathwayAssignmentNextCommand extends Command<DataPathwayAssignmentNextInput, DataPathwayAssignmentNext> {
|
|
8
|
+
protected retryOnFailure: boolean;
|
|
9
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
10
|
+
protected getBaseUrl(): string;
|
|
11
|
+
protected getPath(): string;
|
|
12
|
+
protected parseResponse(rawResponse: unknown): DataPathwayAssignmentNext;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=assignment.next.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignment.next.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/assignment.next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,yBAAyB,EAAmC,MAAM,kCAAkC,CAAA;AAGlH,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;CACnC;AAED,qBAAa,gCACX,SAAQ,OAAO,CAAC,8BAA8B,EAAE,yBAAyB,CAAC;IAC1E,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAClD,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,yBAAyB;CAGlF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayAssignmentNextSchema } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
|
+
export class DataPathwayAssignmentNextCommand extends Command {
|
|
5
|
+
retryOnFailure = false;
|
|
6
|
+
allowedModes = ["apiKey"];
|
|
7
|
+
getBaseUrl() {
|
|
8
|
+
return "https://data-pathways.api.flowcore.io";
|
|
9
|
+
}
|
|
10
|
+
getPath() {
|
|
11
|
+
return `/api/v1/assignments/next`;
|
|
12
|
+
}
|
|
13
|
+
parseResponse(rawResponse) {
|
|
14
|
+
return parseResponseHelper(DataPathwayAssignmentNextSchema, rawResponse);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayCapacity } from "../../contracts/data-pathways.js";
|
|
3
|
+
export type DataPathwayCapacityFetchInput = Record<string, never>;
|
|
4
|
+
export declare class DataPathwayCapacityFetchCommand extends Command<DataPathwayCapacityFetchInput, DataPathwayCapacity> {
|
|
5
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
6
|
+
protected getMethod(): string;
|
|
7
|
+
protected getBaseUrl(): string;
|
|
8
|
+
protected getPath(): string;
|
|
9
|
+
protected parseResponse(rawResponse: unknown): DataPathwayCapacity;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=capacity.fetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capacity.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/capacity.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,mBAAmB,EAA6B,MAAM,kCAAkC,CAAA;AAGtG,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEjE,qBAAa,+BAAgC,SAAQ,OAAO,CAAC,6BAA6B,EAAE,mBAAmB,CAAC;IAC9G,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,SAAS,IAAI,MAAM;cAInB,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,mBAAmB;CAG5E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayCapacitySchema } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
|
+
export class DataPathwayCapacityFetchCommand extends Command {
|
|
5
|
+
allowedModes = ["bearer"];
|
|
6
|
+
getMethod() {
|
|
7
|
+
return "GET";
|
|
8
|
+
}
|
|
9
|
+
getBaseUrl() {
|
|
10
|
+
return "https://data-pathways.api.flowcore.io";
|
|
11
|
+
}
|
|
12
|
+
getPath() {
|
|
13
|
+
return `/api/v1/capacity`;
|
|
14
|
+
}
|
|
15
|
+
parseResponse(rawResponse) {
|
|
16
|
+
return parseResponseHelper(DataPathwayCapacitySchema, rawResponse);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayCommandResponse } from "../../contracts/data-pathways.js";
|
|
3
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
4
|
+
export interface DataPathwayCommandDispatchRestartInput {
|
|
5
|
+
assignmentId: string;
|
|
6
|
+
restartRequestId?: string;
|
|
7
|
+
generation: number;
|
|
8
|
+
position?: {
|
|
9
|
+
timeBucket?: string;
|
|
10
|
+
eventId?: string;
|
|
11
|
+
};
|
|
12
|
+
stopAt?: string | null;
|
|
13
|
+
timeoutMs?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class DataPathwayCommandDispatchRestartCommand extends Command<DataPathwayCommandDispatchRestartInput, DataPathwayCommandResponse> {
|
|
16
|
+
protected retryOnFailure: boolean;
|
|
17
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
18
|
+
protected getBaseUrl(): string;
|
|
19
|
+
protected getPath(): string;
|
|
20
|
+
protected getBody(): Record<string, unknown>;
|
|
21
|
+
protected parseResponse(rawResponse: unknown): DataPathwayCommandResponse;
|
|
22
|
+
protected handleClientError(error: ClientError): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=command.dispatch-restart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.dispatch-restart.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/command.dispatch-restart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,0BAA0B,EAAoC,MAAM,kCAAkC,CAAA;AACpH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE,MAAM,WAAW,sCAAsC;IACrD,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE;QACT,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,qBAAa,wCACX,SAAQ,OAAO,CAAC,sCAAsC,EAAE,0BAA0B,CAAC;IACnF,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAClD,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAKlC,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,0BAA0B;cAI/D,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAM/D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayCommandResponseSchema } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { NotFoundException } from "../../exceptions/not-found.js";
|
|
4
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
5
|
+
export class DataPathwayCommandDispatchRestartCommand extends Command {
|
|
6
|
+
retryOnFailure = false;
|
|
7
|
+
allowedModes = ["bearer"];
|
|
8
|
+
getBaseUrl() {
|
|
9
|
+
return "https://data-pathways.api.flowcore.io";
|
|
10
|
+
}
|
|
11
|
+
getPath() {
|
|
12
|
+
return `/api/v1/assignments/${this.input.assignmentId}/commands/datapump-restart`;
|
|
13
|
+
}
|
|
14
|
+
getBody() {
|
|
15
|
+
const { assignmentId: _assignmentId, ...payload } = this.input;
|
|
16
|
+
return payload;
|
|
17
|
+
}
|
|
18
|
+
parseResponse(rawResponse) {
|
|
19
|
+
return parseResponseHelper(DataPathwayCommandResponseSchema, rawResponse);
|
|
20
|
+
}
|
|
21
|
+
handleClientError(error) {
|
|
22
|
+
if (error.status === 404) {
|
|
23
|
+
throw new NotFoundException("DataPathwayAssignment", { id: this.input.assignmentId });
|
|
24
|
+
}
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayCommandResponse } from "../../contracts/data-pathways.js";
|
|
3
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
4
|
+
export interface DataPathwayCommandDispatchStopInput {
|
|
5
|
+
assignmentId: string;
|
|
6
|
+
restartRequestId?: string;
|
|
7
|
+
generation: number;
|
|
8
|
+
reason?: string;
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class DataPathwayCommandDispatchStopCommand extends Command<DataPathwayCommandDispatchStopInput, DataPathwayCommandResponse> {
|
|
12
|
+
protected retryOnFailure: boolean;
|
|
13
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
14
|
+
protected getBaseUrl(): string;
|
|
15
|
+
protected getPath(): string;
|
|
16
|
+
protected getBody(): Record<string, unknown>;
|
|
17
|
+
protected parseResponse(rawResponse: unknown): DataPathwayCommandResponse;
|
|
18
|
+
protected handleClientError(error: ClientError): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=command.dispatch-stop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.dispatch-stop.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/command.dispatch-stop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,0BAA0B,EAAoC,MAAM,kCAAkC,CAAA;AACpH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE,MAAM,WAAW,mCAAmC;IAClD,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,qBAAa,qCACX,SAAQ,OAAO,CAAC,mCAAmC,EAAE,0BAA0B,CAAC;IAChF,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAClD,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAKlC,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,0BAA0B;cAI/D,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAM/D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayCommandResponseSchema } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { NotFoundException } from "../../exceptions/not-found.js";
|
|
4
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
5
|
+
export class DataPathwayCommandDispatchStopCommand extends Command {
|
|
6
|
+
retryOnFailure = false;
|
|
7
|
+
allowedModes = ["bearer"];
|
|
8
|
+
getBaseUrl() {
|
|
9
|
+
return "https://data-pathways.api.flowcore.io";
|
|
10
|
+
}
|
|
11
|
+
getPath() {
|
|
12
|
+
return `/api/v1/assignments/${this.input.assignmentId}/commands/stop`;
|
|
13
|
+
}
|
|
14
|
+
getBody() {
|
|
15
|
+
const { assignmentId: _assignmentId, ...payload } = this.input;
|
|
16
|
+
return payload;
|
|
17
|
+
}
|
|
18
|
+
parseResponse(rawResponse) {
|
|
19
|
+
return parseResponseHelper(DataPathwayCommandResponseSchema, rawResponse);
|
|
20
|
+
}
|
|
21
|
+
handleClientError(error) {
|
|
22
|
+
if (error.status === 404) {
|
|
23
|
+
throw new NotFoundException("DataPathwayAssignment", { id: this.input.assignmentId });
|
|
24
|
+
}
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayCommandList } from "../../contracts/data-pathways.js";
|
|
3
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
4
|
+
export interface DataPathwayCommandPendingInput {
|
|
5
|
+
assignmentId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class DataPathwayCommandPendingCommand extends Command<DataPathwayCommandPendingInput, DataPathwayCommandList> {
|
|
8
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
9
|
+
protected getMethod(): string;
|
|
10
|
+
protected getBaseUrl(): string;
|
|
11
|
+
protected getPath(): string;
|
|
12
|
+
protected parseResponse(rawResponse: unknown): DataPathwayCommandList;
|
|
13
|
+
protected handleClientError(error: ClientError): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=command.pending.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.pending.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/command.pending.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,sBAAsB,EAAgC,MAAM,kCAAkC,CAAA;AAC5G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,qBAAa,gCAAiC,SAAQ,OAAO,CAAC,8BAA8B,EAAE,sBAAsB,CAAC;IACnH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,SAAS,IAAI,MAAM;cAInB,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,sBAAsB;cAI3D,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAM/D"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayCommandListSchema } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { NotFoundException } from "../../exceptions/not-found.js";
|
|
4
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
5
|
+
export class DataPathwayCommandPendingCommand extends Command {
|
|
6
|
+
allowedModes = ["apiKey"];
|
|
7
|
+
getMethod() {
|
|
8
|
+
return "GET";
|
|
9
|
+
}
|
|
10
|
+
getBaseUrl() {
|
|
11
|
+
return "https://data-pathways.api.flowcore.io";
|
|
12
|
+
}
|
|
13
|
+
getPath() {
|
|
14
|
+
return `/api/v1/assignments/${this.input.assignmentId}/commands/pending`;
|
|
15
|
+
}
|
|
16
|
+
parseResponse(rawResponse) {
|
|
17
|
+
return parseResponseHelper(DataPathwayCommandListSchema, rawResponse);
|
|
18
|
+
}
|
|
19
|
+
handleClientError(error) {
|
|
20
|
+
if (error.status === 404) {
|
|
21
|
+
throw new NotFoundException("DataPathwayAssignment", { id: this.input.assignmentId });
|
|
22
|
+
}
|
|
23
|
+
throw error;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type DataPathwayCommandResponse } from "../../contracts/data-pathways.js";
|
|
3
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
4
|
+
export interface DataPathwayCommandUpdateStatusInput {
|
|
5
|
+
assignmentId: string;
|
|
6
|
+
commandId: string;
|
|
7
|
+
phase: "acknowledged" | "restarting" | "running" | "failed" | "timedOut";
|
|
8
|
+
details?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class DataPathwayCommandUpdateStatusCommand extends Command<DataPathwayCommandUpdateStatusInput, DataPathwayCommandResponse> {
|
|
11
|
+
protected retryOnFailure: boolean;
|
|
12
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
13
|
+
protected getBaseUrl(): string;
|
|
14
|
+
protected getPath(): string;
|
|
15
|
+
protected getBody(): Record<string, unknown>;
|
|
16
|
+
protected parseResponse(rawResponse: unknown): DataPathwayCommandResponse;
|
|
17
|
+
protected handleClientError(error: ClientError): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=command.update-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.update-status.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/command.update-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,0BAA0B,EAAoC,MAAM,kCAAkC,CAAA;AACpH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE,MAAM,WAAW,mCAAmC;IAClD,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,cAAc,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;IACxE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,qCACX,SAAQ,OAAO,CAAC,mCAAmC,EAAE,0BAA0B,CAAC;IAChF,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAClD,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;cAElD,UAAU,IAAI,MAAM;cAIpB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAKlC,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,0BAA0B;cAI/D,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAS/D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { DataPathwayCommandResponseSchema } from "../../contracts/data-pathways.js";
|
|
3
|
+
import { NotFoundException } from "../../exceptions/not-found.js";
|
|
4
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
5
|
+
export class DataPathwayCommandUpdateStatusCommand extends Command {
|
|
6
|
+
retryOnFailure = false;
|
|
7
|
+
allowedModes = ["apiKey"];
|
|
8
|
+
getBaseUrl() {
|
|
9
|
+
return "https://data-pathways.api.flowcore.io";
|
|
10
|
+
}
|
|
11
|
+
getPath() {
|
|
12
|
+
return `/api/v1/assignments/${this.input.assignmentId}/commands/${this.input.commandId}/status`;
|
|
13
|
+
}
|
|
14
|
+
getBody() {
|
|
15
|
+
const { assignmentId: _assignmentId, commandId: _commandId, ...payload } = this.input;
|
|
16
|
+
return payload;
|
|
17
|
+
}
|
|
18
|
+
parseResponse(rawResponse) {
|
|
19
|
+
return parseResponseHelper(DataPathwayCommandResponseSchema, rawResponse);
|
|
20
|
+
}
|
|
21
|
+
handleClientError(error) {
|
|
22
|
+
if (error.status === 404) {
|
|
23
|
+
throw new NotFoundException("DataPathwayCommand", {
|
|
24
|
+
assignmentId: this.input.assignmentId,
|
|
25
|
+
commandId: this.input.commandId,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
throw error;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from "./pathway.create.js";
|
|
2
|
+
export * from "./pathway.fetch.js";
|
|
3
|
+
export * from "./pathway.list.js";
|
|
4
|
+
export * from "./pathway.disable.js";
|
|
5
|
+
export * from "./slot.register.js";
|
|
6
|
+
export * from "./slot.list.js";
|
|
7
|
+
export * from "./slot.fetch.js";
|
|
8
|
+
export * from "./slot.deregister.js";
|
|
9
|
+
export * from "./slot.heartbeat.js";
|
|
10
|
+
export * from "./assignment.next.js";
|
|
11
|
+
export * from "./assignment.heartbeat.js";
|
|
12
|
+
export * from "./assignment.complete.js";
|
|
13
|
+
export * from "./assignment.list.js";
|
|
14
|
+
export * from "./assignment.fetch.js";
|
|
15
|
+
export * from "./assignment.expire-leases.js";
|
|
16
|
+
export * from "./command.pending.js";
|
|
17
|
+
export * from "./command.dispatch-restart.js";
|
|
18
|
+
export * from "./command.dispatch-stop.js";
|
|
19
|
+
export * from "./command.update-status.js";
|
|
20
|
+
export * from "./restart.request.js";
|
|
21
|
+
export * from "./restart.fetch.js";
|
|
22
|
+
export * from "./capacity.fetch.js";
|
|
23
|
+
export * from "./quota.set.js";
|
|
24
|
+
export * from "./quota.fetch.js";
|
|
25
|
+
export * from "./quota.list.js";
|
|
26
|
+
export * from "./pump-state.fetch.js";
|
|
27
|
+
export * from "./pump-state.save.js";
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/data-pathways/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AAGpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AAGnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAG7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAG1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAGlC,cAAc,qBAAqB,CAAA;AAGnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAG/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Pathways
|
|
2
|
+
export * from "./pathway.create.js";
|
|
3
|
+
export * from "./pathway.fetch.js";
|
|
4
|
+
export * from "./pathway.list.js";
|
|
5
|
+
export * from "./pathway.disable.js";
|
|
6
|
+
// Slots
|
|
7
|
+
export * from "./slot.register.js";
|
|
8
|
+
export * from "./slot.list.js";
|
|
9
|
+
export * from "./slot.fetch.js";
|
|
10
|
+
export * from "./slot.deregister.js";
|
|
11
|
+
export * from "./slot.heartbeat.js";
|
|
12
|
+
// Assignments
|
|
13
|
+
export * from "./assignment.next.js";
|
|
14
|
+
export * from "./assignment.heartbeat.js";
|
|
15
|
+
export * from "./assignment.complete.js";
|
|
16
|
+
export * from "./assignment.list.js";
|
|
17
|
+
export * from "./assignment.fetch.js";
|
|
18
|
+
export * from "./assignment.expire-leases.js";
|
|
19
|
+
// Commands
|
|
20
|
+
export * from "./command.pending.js";
|
|
21
|
+
export * from "./command.dispatch-restart.js";
|
|
22
|
+
export * from "./command.dispatch-stop.js";
|
|
23
|
+
export * from "./command.update-status.js";
|
|
24
|
+
// Restarts
|
|
25
|
+
export * from "./restart.request.js";
|
|
26
|
+
export * from "./restart.fetch.js";
|
|
27
|
+
// Capacity
|
|
28
|
+
export * from "./capacity.fetch.js";
|
|
29
|
+
// Quotas
|
|
30
|
+
export * from "./quota.set.js";
|
|
31
|
+
export * from "./quota.fetch.js";
|
|
32
|
+
export * from "./quota.list.js";
|
|
33
|
+
// Pump State
|
|
34
|
+
export * from "./pump-state.fetch.js";
|
|
35
|
+
export * from "./pump-state.save.js";
|