@flowcore/sdk 1.11.5 → 1.11.7
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 +14 -0
- package/esm/commands/events/events.fetch-time-buckets-by-names.d.ts +1 -1
- package/esm/commands/events/events.fetch-time-buckets-by-names.js +1 -1
- package/esm/exceptions/invalid-response.d.ts.map +1 -1
- package/esm/exceptions/invalid-response.js +2 -1
- package/package.json +1 -1
- package/script/commands/events/events.fetch-time-buckets-by-names.d.ts +1 -1
- package/script/commands/events/events.fetch-time-buckets-by-names.js +1 -1
- package/script/exceptions/invalid-response.d.ts.map +1 -1
- package/script/exceptions/invalid-response.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.11.7](https://github.com/flowcore-io/flowcore-sdk/compare/v1.11.6...v1.11.7) (2025-02-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* next cursor in timebuckets is a number ([4cfb89f](https://github.com/flowcore-io/flowcore-sdk/commit/4cfb89f58bf69898df3e7dd9bbe2c28ff93078de))
|
|
9
|
+
|
|
10
|
+
## [1.11.6](https://github.com/flowcore-io/flowcore-sdk/compare/v1.11.5...v1.11.6) (2025-02-13)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* limit invalid response to 1000 chars and add test ([93a8dfe](https://github.com/flowcore-io/flowcore-sdk/commit/93a8dfe75e68617e85c30d75c171a9713b8f5730))
|
|
16
|
+
|
|
3
17
|
## [1.11.5](https://github.com/flowcore-io/flowcore-sdk/compare/v1.11.4...v1.11.5) (2025-02-13)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -6,7 +6,7 @@ import { Command } from "../../common/command.js";
|
|
|
6
6
|
*/
|
|
7
7
|
const responseSchema = Type.Object({
|
|
8
8
|
timeBuckets: Type.Array(Type.String()),
|
|
9
|
-
nextCursor: Type.Optional(Type.
|
|
9
|
+
nextCursor: Type.Optional(Type.Number()),
|
|
10
10
|
});
|
|
11
11
|
/**
|
|
12
12
|
* Fetch time buckets for an event type
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAK5E"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export class InvalidResponseException extends Error {
|
|
5
5
|
constructor(message, errors) {
|
|
6
|
-
|
|
6
|
+
const errorString = JSON.stringify(errors);
|
|
7
|
+
super(`${message}: ${errorString.slice(0, 1000)}`);
|
|
7
8
|
Object.defineProperty(this, "errors", {
|
|
8
9
|
enumerable: true,
|
|
9
10
|
configurable: true,
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ const command_js_1 = require("../../common/command.js");
|
|
|
9
9
|
*/
|
|
10
10
|
const responseSchema = typebox_1.Type.Object({
|
|
11
11
|
timeBuckets: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
12
|
-
nextCursor: typebox_1.Type.Optional(typebox_1.Type.
|
|
12
|
+
nextCursor: typebox_1.Type.Optional(typebox_1.Type.Number()),
|
|
13
13
|
});
|
|
14
14
|
/**
|
|
15
15
|
* Fetch time buckets for an event type
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"invalid-response.d.ts","sourceRoot":"","sources":["../../src/exceptions/invalid-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aACJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;gBAA/D,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAK5E"}
|
|
@@ -6,7 +6,8 @@ exports.InvalidResponseException = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
class InvalidResponseException extends Error {
|
|
8
8
|
constructor(message, errors) {
|
|
9
|
-
|
|
9
|
+
const errorString = JSON.stringify(errors);
|
|
10
|
+
super(`${message}: ${errorString.slice(0, 1000)}`);
|
|
10
11
|
Object.defineProperty(this, "errors", {
|
|
11
12
|
enumerable: true,
|
|
12
13
|
configurable: true,
|