@flowcore/sdk 1.22.1 → 1.22.2
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 +7 -0
- package/esm/commands/data-core/data-core.list.d.ts +5 -3
- package/esm/commands/data-core/data-core.list.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.list.js +9 -2
- package/esm/commands/index.d.ts +0 -1
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +0 -1
- package/package.json +1 -1
- package/script/commands/data-core/data-core.list.d.ts +5 -3
- package/script/commands/data-core/data-core.list.d.ts.map +1 -1
- package/script/commands/data-core/data-core.list.js +8 -1
- package/script/commands/index.d.ts +0 -1
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +0 -1
- package/esm/commands/data-core/data-core.list-new.d.ts +0 -35
- package/esm/commands/data-core/data-core.list-new.d.ts.map +0 -1
- package/esm/commands/data-core/data-core.list-new.js +0 -47
- package/script/commands/data-core/data-core.list-new.d.ts +0 -35
- package/script/commands/data-core/data-core.list-new.d.ts.map +0 -1
- package/script/commands/data-core/data-core.list-new.js +0 -51
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.22.2](https://github.com/flowcore-io/flowcore-sdk/compare/v1.22.1...v1.22.2) (2025-03-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* change datacore list command ([5b75ed9](https://github.com/flowcore-io/flowcore-sdk/commit/5b75ed9a11410404e585800d782951c3a96451f6))
|
|
9
|
+
|
|
3
10
|
## [1.22.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.22.0...v1.22.1) (2025-03-27)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from "../../common/command.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type DataCoreWithAccess } from "../../contracts/data-core.js";
|
|
3
3
|
/**
|
|
4
4
|
* The input for the data core fetch by name command
|
|
5
5
|
*/
|
|
@@ -8,11 +8,13 @@ export interface DataCoreListInput {
|
|
|
8
8
|
tenantId?: string;
|
|
9
9
|
/** The tenant name */
|
|
10
10
|
tenant?: string;
|
|
11
|
+
/** The data core name */
|
|
12
|
+
name?: string;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Fetch all data cores for a tenant
|
|
14
16
|
*/
|
|
15
|
-
export declare class DataCoreListCommand extends Command<DataCoreListInput,
|
|
17
|
+
export declare class DataCoreListCommand extends Command<DataCoreListInput, DataCoreWithAccess[]> {
|
|
16
18
|
/**
|
|
17
19
|
* Get the method
|
|
18
20
|
*/
|
|
@@ -28,6 +30,6 @@ export declare class DataCoreListCommand extends Command<DataCoreListInput, Data
|
|
|
28
30
|
/**
|
|
29
31
|
* Parse the response
|
|
30
32
|
*/
|
|
31
|
-
protected parseResponse(rawResponse: unknown):
|
|
33
|
+
protected parseResponse(rawResponse: unknown): DataCoreWithAccess[];
|
|
32
34
|
}
|
|
33
35
|
//# sourceMappingURL=data-core.list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-core.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"data-core.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,8BAA8B,CAAA;AAGhG;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;IACvF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAcpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;CAG7E"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
2
|
import { Command } from "../../common/command.js";
|
|
3
|
-
import {
|
|
3
|
+
import { DataCoreWithAccessSchema } from "../../contracts/data-core.js";
|
|
4
4
|
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
5
|
+
const responseSchema = Type.Object({
|
|
6
|
+
...DataCoreWithAccessSchema.properties,
|
|
7
|
+
access: Type.Array(Type.String()),
|
|
8
|
+
});
|
|
5
9
|
/**
|
|
6
10
|
* Fetch all data cores for a tenant
|
|
7
11
|
*/
|
|
@@ -29,12 +33,15 @@ export class DataCoreListCommand extends Command {
|
|
|
29
33
|
if (this.input.tenant) {
|
|
30
34
|
queryParams.set("tenant", this.input.tenant);
|
|
31
35
|
}
|
|
36
|
+
if (this.input.name) {
|
|
37
|
+
queryParams.set("name", this.input.name);
|
|
38
|
+
}
|
|
32
39
|
return `/api/v1/data-cores?${queryParams.toString()}`;
|
|
33
40
|
}
|
|
34
41
|
/**
|
|
35
42
|
* Parse the response
|
|
36
43
|
*/
|
|
37
44
|
parseResponse(rawResponse) {
|
|
38
|
-
return parseResponseHelper(Type.Array(
|
|
45
|
+
return parseResponseHelper(Type.Array(responseSchema), rawResponse);
|
|
39
46
|
}
|
|
40
47
|
}
|
package/esm/commands/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export * from "./data-core/data-core.delete-request.js";
|
|
|
15
15
|
export * from "./data-core/data-core.exists.js";
|
|
16
16
|
export * from "./data-core/data-core.fetch.js";
|
|
17
17
|
export * from "./data-core/data-core.list.js";
|
|
18
|
-
export * from "./data-core/data-core.list-new.js";
|
|
19
18
|
export * from "./data-core/data-core.request-delete.js";
|
|
20
19
|
export * from "./data-core/data-core.update.js";
|
|
21
20
|
export * from "./flow-type/flow-type.create.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,2CAA2C,CAAA;AACzD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mCAAmC,CAAA;AACjD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,gDAAgD,CAAA;AAC9D,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAG5C,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mDAAmD,CAAA;AAGjE,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA"}
|
package/esm/commands/index.js
CHANGED
|
@@ -20,7 +20,6 @@ export * from "./data-core/data-core.delete-request.js";
|
|
|
20
20
|
export * from "./data-core/data-core.exists.js";
|
|
21
21
|
export * from "./data-core/data-core.fetch.js";
|
|
22
22
|
export * from "./data-core/data-core.list.js";
|
|
23
|
-
export * from "./data-core/data-core.list-new.js";
|
|
24
23
|
export * from "./data-core/data-core.request-delete.js";
|
|
25
24
|
export * from "./data-core/data-core.update.js";
|
|
26
25
|
// Flow Types
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from "../../common/command.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type DataCoreWithAccess } from "../../contracts/data-core.js";
|
|
3
3
|
/**
|
|
4
4
|
* The input for the data core fetch by name command
|
|
5
5
|
*/
|
|
@@ -8,11 +8,13 @@ export interface DataCoreListInput {
|
|
|
8
8
|
tenantId?: string;
|
|
9
9
|
/** The tenant name */
|
|
10
10
|
tenant?: string;
|
|
11
|
+
/** The data core name */
|
|
12
|
+
name?: string;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Fetch all data cores for a tenant
|
|
14
16
|
*/
|
|
15
|
-
export declare class DataCoreListCommand extends Command<DataCoreListInput,
|
|
17
|
+
export declare class DataCoreListCommand extends Command<DataCoreListInput, DataCoreWithAccess[]> {
|
|
16
18
|
/**
|
|
17
19
|
* Get the method
|
|
18
20
|
*/
|
|
@@ -28,6 +30,6 @@ export declare class DataCoreListCommand extends Command<DataCoreListInput, Data
|
|
|
28
30
|
/**
|
|
29
31
|
* Parse the response
|
|
30
32
|
*/
|
|
31
|
-
protected parseResponse(rawResponse: unknown):
|
|
33
|
+
protected parseResponse(rawResponse: unknown): DataCoreWithAccess[];
|
|
32
34
|
}
|
|
33
35
|
//# sourceMappingURL=data-core.list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-core.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"data-core.list.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,8BAA8B,CAAA;AAGhG;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;IACvF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAcpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;CAG7E"}
|
|
@@ -5,6 +5,10 @@ const typebox_1 = require("@sinclair/typebox");
|
|
|
5
5
|
const command_js_1 = require("../../common/command.js");
|
|
6
6
|
const data_core_js_1 = require("../../contracts/data-core.js");
|
|
7
7
|
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
8
|
+
const responseSchema = typebox_1.Type.Object({
|
|
9
|
+
...data_core_js_1.DataCoreWithAccessSchema.properties,
|
|
10
|
+
access: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
11
|
+
});
|
|
8
12
|
/**
|
|
9
13
|
* Fetch all data cores for a tenant
|
|
10
14
|
*/
|
|
@@ -32,13 +36,16 @@ class DataCoreListCommand extends command_js_1.Command {
|
|
|
32
36
|
if (this.input.tenant) {
|
|
33
37
|
queryParams.set("tenant", this.input.tenant);
|
|
34
38
|
}
|
|
39
|
+
if (this.input.name) {
|
|
40
|
+
queryParams.set("name", this.input.name);
|
|
41
|
+
}
|
|
35
42
|
return `/api/v1/data-cores?${queryParams.toString()}`;
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* Parse the response
|
|
39
46
|
*/
|
|
40
47
|
parseResponse(rawResponse) {
|
|
41
|
-
return (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(
|
|
48
|
+
return (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(responseSchema), rawResponse);
|
|
42
49
|
}
|
|
43
50
|
}
|
|
44
51
|
exports.DataCoreListCommand = DataCoreListCommand;
|
|
@@ -15,7 +15,6 @@ export * from "./data-core/data-core.delete-request.js";
|
|
|
15
15
|
export * from "./data-core/data-core.exists.js";
|
|
16
16
|
export * from "./data-core/data-core.fetch.js";
|
|
17
17
|
export * from "./data-core/data-core.list.js";
|
|
18
|
-
export * from "./data-core/data-core.list-new.js";
|
|
19
18
|
export * from "./data-core/data-core.request-delete.js";
|
|
20
19
|
export * from "./data-core/data-core.update.js";
|
|
21
20
|
export * from "./flow-type/flow-type.create.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,2CAA2C,CAAA;AACzD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mCAAmC,CAAA;AACjD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,gDAAgD,CAAA;AAC9D,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAG5C,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mDAAmD,CAAA;AAGjE,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA"}
|
package/script/commands/index.js
CHANGED
|
@@ -36,7 +36,6 @@ __exportStar(require("./data-core/data-core.delete-request.js"), exports);
|
|
|
36
36
|
__exportStar(require("./data-core/data-core.exists.js"), exports);
|
|
37
37
|
__exportStar(require("./data-core/data-core.fetch.js"), exports);
|
|
38
38
|
__exportStar(require("./data-core/data-core.list.js"), exports);
|
|
39
|
-
__exportStar(require("./data-core/data-core.list-new.js"), exports);
|
|
40
39
|
__exportStar(require("./data-core/data-core.request-delete.js"), exports);
|
|
41
40
|
__exportStar(require("./data-core/data-core.update.js"), exports);
|
|
42
41
|
// Flow Types
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Command } from "../../common/command.js";
|
|
2
|
-
import { type DataCoreWithAccess } from "../../contracts/data-core.js";
|
|
3
|
-
/**
|
|
4
|
-
* The input for the data core fetch by name command
|
|
5
|
-
*/
|
|
6
|
-
export interface DataCoreListNewInput {
|
|
7
|
-
/** The tenant id */
|
|
8
|
-
tenantId?: string;
|
|
9
|
-
/** The tenant name */
|
|
10
|
-
tenant?: string;
|
|
11
|
-
/** The data core name */
|
|
12
|
-
name?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Fetch all data cores for a tenant
|
|
16
|
-
*/
|
|
17
|
-
export declare class DataCoreListNewCommand extends Command<DataCoreListNewInput, DataCoreWithAccess[]> {
|
|
18
|
-
/**
|
|
19
|
-
* Get the method
|
|
20
|
-
*/
|
|
21
|
-
protected getMethod(): string;
|
|
22
|
-
/**
|
|
23
|
-
* Get the base url
|
|
24
|
-
*/
|
|
25
|
-
protected getBaseUrl(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Get the path
|
|
28
|
-
*/
|
|
29
|
-
protected getPath(): string;
|
|
30
|
-
/**
|
|
31
|
-
* Parse the response
|
|
32
|
-
*/
|
|
33
|
-
protected parseResponse(rawResponse: unknown): DataCoreWithAccess[];
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=data-core.list-new.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-core.list-new.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list-new.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,8BAA8B,CAAA;AAGhG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAC7F;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAcpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;CAG7E"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import { Command } from "../../common/command.js";
|
|
3
|
-
import { DataCoreWithAccessSchema } from "../../contracts/data-core.js";
|
|
4
|
-
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
5
|
-
const responseSchema = Type.Object({
|
|
6
|
-
...DataCoreWithAccessSchema.properties,
|
|
7
|
-
access: Type.Array(Type.String()),
|
|
8
|
-
});
|
|
9
|
-
/**
|
|
10
|
-
* Fetch all data cores for a tenant
|
|
11
|
-
*/
|
|
12
|
-
export class DataCoreListNewCommand extends Command {
|
|
13
|
-
/**
|
|
14
|
-
* Get the method
|
|
15
|
-
*/
|
|
16
|
-
getMethod() {
|
|
17
|
-
return "GET";
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get the base url
|
|
21
|
-
*/
|
|
22
|
-
getBaseUrl() {
|
|
23
|
-
return "https://data-core-2.api.flowcore.io";
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Get the path
|
|
27
|
-
*/
|
|
28
|
-
getPath() {
|
|
29
|
-
const queryParams = new URLSearchParams();
|
|
30
|
-
if (this.input.tenantId) {
|
|
31
|
-
queryParams.set("tenantId", this.input.tenantId);
|
|
32
|
-
}
|
|
33
|
-
if (this.input.tenant) {
|
|
34
|
-
queryParams.set("tenant", this.input.tenant);
|
|
35
|
-
}
|
|
36
|
-
if (this.input.name) {
|
|
37
|
-
queryParams.set("name", this.input.name);
|
|
38
|
-
}
|
|
39
|
-
return `/api/v1/data-cores/new?${queryParams.toString()}`;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Parse the response
|
|
43
|
-
*/
|
|
44
|
-
parseResponse(rawResponse) {
|
|
45
|
-
return parseResponseHelper(Type.Array(responseSchema), rawResponse);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Command } from "../../common/command.js";
|
|
2
|
-
import { type DataCoreWithAccess } from "../../contracts/data-core.js";
|
|
3
|
-
/**
|
|
4
|
-
* The input for the data core fetch by name command
|
|
5
|
-
*/
|
|
6
|
-
export interface DataCoreListNewInput {
|
|
7
|
-
/** The tenant id */
|
|
8
|
-
tenantId?: string;
|
|
9
|
-
/** The tenant name */
|
|
10
|
-
tenant?: string;
|
|
11
|
-
/** The data core name */
|
|
12
|
-
name?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Fetch all data cores for a tenant
|
|
16
|
-
*/
|
|
17
|
-
export declare class DataCoreListNewCommand extends Command<DataCoreListNewInput, DataCoreWithAccess[]> {
|
|
18
|
-
/**
|
|
19
|
-
* Get the method
|
|
20
|
-
*/
|
|
21
|
-
protected getMethod(): string;
|
|
22
|
-
/**
|
|
23
|
-
* Get the base url
|
|
24
|
-
*/
|
|
25
|
-
protected getBaseUrl(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Get the path
|
|
28
|
-
*/
|
|
29
|
-
protected getPath(): string;
|
|
30
|
-
/**
|
|
31
|
-
* Parse the response
|
|
32
|
-
*/
|
|
33
|
-
protected parseResponse(rawResponse: unknown): DataCoreWithAccess[];
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=data-core.list-new.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-core.list-new.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.list-new.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,8BAA8B,CAAA;AAGhG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAOD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAC7F;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAcpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;CAG7E"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataCoreListNewCommand = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const command_js_1 = require("../../common/command.js");
|
|
6
|
-
const data_core_js_1 = require("../../contracts/data-core.js");
|
|
7
|
-
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
8
|
-
const responseSchema = typebox_1.Type.Object({
|
|
9
|
-
...data_core_js_1.DataCoreWithAccessSchema.properties,
|
|
10
|
-
access: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
11
|
-
});
|
|
12
|
-
/**
|
|
13
|
-
* Fetch all data cores for a tenant
|
|
14
|
-
*/
|
|
15
|
-
class DataCoreListNewCommand extends command_js_1.Command {
|
|
16
|
-
/**
|
|
17
|
-
* Get the method
|
|
18
|
-
*/
|
|
19
|
-
getMethod() {
|
|
20
|
-
return "GET";
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get the base url
|
|
24
|
-
*/
|
|
25
|
-
getBaseUrl() {
|
|
26
|
-
return "https://data-core-2.api.flowcore.io";
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get the path
|
|
30
|
-
*/
|
|
31
|
-
getPath() {
|
|
32
|
-
const queryParams = new URLSearchParams();
|
|
33
|
-
if (this.input.tenantId) {
|
|
34
|
-
queryParams.set("tenantId", this.input.tenantId);
|
|
35
|
-
}
|
|
36
|
-
if (this.input.tenant) {
|
|
37
|
-
queryParams.set("tenant", this.input.tenant);
|
|
38
|
-
}
|
|
39
|
-
if (this.input.name) {
|
|
40
|
-
queryParams.set("name", this.input.name);
|
|
41
|
-
}
|
|
42
|
-
return `/api/v1/data-cores/new?${queryParams.toString()}`;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Parse the response
|
|
46
|
-
*/
|
|
47
|
-
parseResponse(rawResponse) {
|
|
48
|
-
return (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(responseSchema), rawResponse);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.DataCoreListNewCommand = DataCoreListNewCommand;
|