@flowcore/sdk 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/esm/commands/api-key/api-key.create.d.ts +1 -1
- package/esm/commands/api-key/api-key.create.d.ts.map +1 -1
- package/esm/commands/api-key/api-key.create.js +1 -1
- package/esm/commands/api-key/api-key.delete.d.ts +1 -1
- package/esm/commands/api-key/api-key.delete.d.ts.map +1 -1
- package/esm/commands/api-key/api-key.delete.js +1 -1
- package/esm/commands/api-key/api-key.list.d.ts +1 -1
- package/esm/commands/api-key/api-key.list.d.ts.map +1 -1
- package/esm/commands/api-key/api-key.list.js +1 -1
- package/esm/commands/container-registry/container-registry.delete.d.ts +1 -1
- package/esm/commands/container-registry/container-registry.delete.d.ts.map +1 -1
- package/esm/commands/container-registry/container-registry.delete.js +2 -1
- package/esm/commands/container-registry/container-registry.fetch.d.ts +1 -1
- package/esm/commands/container-registry/container-registry.fetch.d.ts.map +1 -1
- package/esm/commands/container-registry/container-registry.fetch.js +2 -1
- package/esm/commands/container-registry/container-registry.list.d.ts +1 -1
- package/esm/commands/container-registry/container-registry.list.d.ts.map +1 -1
- package/esm/commands/container-registry/container-registry.list.js +2 -1
- package/esm/commands/data-core/data-core.delete-request.d.ts +1 -1
- package/esm/commands/data-core/data-core.delete-request.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.delete-request.js +1 -1
- package/esm/commands/event-type/event-type.delete-request.d.ts +1 -1
- package/esm/commands/event-type/event-type.delete-request.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.delete-request.js +1 -1
- package/esm/commands/event-type/event-type.info.d.ts +35 -0
- package/esm/commands/event-type/event-type.info.d.ts.map +1 -0
- package/esm/commands/event-type/event-type.info.js +58 -0
- package/esm/commands/event-type/event-type.truncate-request.d.ts +1 -1
- package/esm/commands/event-type/event-type.truncate-request.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.truncate-request.js +1 -1
- package/esm/commands/events/event.list.d.ts +62 -0
- package/esm/commands/events/event.list.d.ts.map +1 -0
- package/esm/commands/events/event.list.js +53 -0
- package/esm/commands/events/time-bucket.list.d.ts +49 -0
- package/esm/commands/events/time-bucket.list.d.ts.map +1 -0
- package/esm/commands/events/time-bucket.list.js +50 -0
- package/esm/commands/flow-type/flow-type.delete-request.d.ts +1 -1
- package/esm/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
- package/esm/commands/flow-type/flow-type.delete-request.js +1 -1
- package/esm/commands/index.d.ts +3 -1
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +4 -2
- package/esm/commands/secret/secret.create.d.ts +1 -1
- package/esm/commands/secret/secret.create.d.ts.map +1 -1
- package/esm/commands/secret/secret.create.js +1 -1
- package/esm/commands/secret/secret.delete.d.ts +1 -1
- package/esm/commands/secret/secret.delete.d.ts.map +1 -1
- package/esm/commands/secret/secret.delete.js +1 -1
- package/esm/commands/secret/secret.list.d.ts +1 -1
- package/esm/commands/secret/secret.list.d.ts.map +1 -1
- package/esm/commands/secret/secret.list.js +1 -1
- package/esm/commands/tenant/tenant.list.d.ts +1 -1
- package/esm/commands/tenant/tenant.list.d.ts.map +1 -1
- package/esm/commands/tenant/tenant.list.js +1 -1
- package/esm/commands/variable/variable.create.d.ts +1 -1
- package/esm/commands/variable/variable.create.d.ts.map +1 -1
- package/esm/commands/variable/variable.create.js +1 -1
- package/esm/commands/variable/variable.delete.d.ts +1 -1
- package/esm/commands/variable/variable.delete.d.ts.map +1 -1
- package/esm/commands/variable/variable.delete.js +1 -1
- package/esm/commands/variable/variable.list.d.ts +1 -1
- package/esm/commands/variable/variable.list.d.ts.map +1 -1
- package/esm/commands/variable/variable.list.js +1 -1
- package/esm/common/command-custom.d.ts +36 -0
- package/esm/common/command-custom.d.ts.map +1 -0
- package/esm/common/command-custom.js +28 -0
- package/esm/common/command-graphql.d.ts +19 -0
- package/esm/common/command-graphql.d.ts.map +1 -0
- package/esm/common/command-graphql.js +30 -0
- package/esm/common/command.d.ts +1 -17
- package/esm/common/command.d.ts.map +1 -1
- package/esm/common/command.js +0 -29
- package/esm/common/flowcore-client.d.ts.map +1 -1
- package/esm/common/flowcore-client.js +5 -2
- package/esm/common/notification-client.d.ts.map +1 -1
- package/esm/common/notification-client.js +4 -1
- package/esm/exceptions/client-error.d.ts +2 -1
- package/esm/exceptions/client-error.d.ts.map +1 -1
- package/esm/exceptions/client-error.js +8 -2
- package/esm/mod.d.ts +2 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +2 -0
- package/package.json +1 -1
- package/script/commands/api-key/api-key.create.d.ts +1 -1
- package/script/commands/api-key/api-key.create.d.ts.map +1 -1
- package/script/commands/api-key/api-key.create.js +2 -2
- package/script/commands/api-key/api-key.delete.d.ts +1 -1
- package/script/commands/api-key/api-key.delete.d.ts.map +1 -1
- package/script/commands/api-key/api-key.delete.js +2 -2
- package/script/commands/api-key/api-key.list.d.ts +1 -1
- package/script/commands/api-key/api-key.list.d.ts.map +1 -1
- package/script/commands/api-key/api-key.list.js +2 -2
- package/script/commands/container-registry/container-registry.delete.d.ts +1 -1
- package/script/commands/container-registry/container-registry.delete.d.ts.map +1 -1
- package/script/commands/container-registry/container-registry.delete.js +4 -3
- package/script/commands/container-registry/container-registry.fetch.d.ts +1 -1
- package/script/commands/container-registry/container-registry.fetch.d.ts.map +1 -1
- package/script/commands/container-registry/container-registry.fetch.js +4 -3
- package/script/commands/container-registry/container-registry.list.d.ts +1 -1
- package/script/commands/container-registry/container-registry.list.d.ts.map +1 -1
- package/script/commands/container-registry/container-registry.list.js +4 -3
- package/script/commands/data-core/data-core.delete-request.d.ts +1 -1
- package/script/commands/data-core/data-core.delete-request.d.ts.map +1 -1
- package/script/commands/data-core/data-core.delete-request.js +2 -2
- package/script/commands/event-type/event-type.delete-request.d.ts +1 -1
- package/script/commands/event-type/event-type.delete-request.d.ts.map +1 -1
- package/script/commands/event-type/event-type.delete-request.js +2 -2
- package/script/commands/event-type/event-type.info.d.ts +35 -0
- package/script/commands/event-type/event-type.info.d.ts.map +1 -0
- package/script/commands/event-type/event-type.info.js +62 -0
- package/script/commands/event-type/event-type.truncate-request.d.ts +1 -1
- package/script/commands/event-type/event-type.truncate-request.d.ts.map +1 -1
- package/script/commands/event-type/event-type.truncate-request.js +2 -2
- package/script/commands/events/event.list.d.ts +62 -0
- package/script/commands/events/event.list.d.ts.map +1 -0
- package/script/commands/events/event.list.js +57 -0
- package/script/commands/events/time-bucket.list.d.ts +49 -0
- package/script/commands/events/time-bucket.list.d.ts.map +1 -0
- package/script/commands/events/time-bucket.list.js +54 -0
- package/script/commands/flow-type/flow-type.delete-request.d.ts +1 -1
- package/script/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
- package/script/commands/flow-type/flow-type.delete-request.js +2 -2
- package/script/commands/index.d.ts +3 -1
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +4 -2
- package/script/commands/secret/secret.create.d.ts +1 -1
- package/script/commands/secret/secret.create.d.ts.map +1 -1
- package/script/commands/secret/secret.create.js +2 -2
- package/script/commands/secret/secret.delete.d.ts +1 -1
- package/script/commands/secret/secret.delete.d.ts.map +1 -1
- package/script/commands/secret/secret.delete.js +2 -2
- package/script/commands/secret/secret.list.d.ts +1 -1
- package/script/commands/secret/secret.list.d.ts.map +1 -1
- package/script/commands/secret/secret.list.js +2 -2
- package/script/commands/tenant/tenant.list.d.ts +1 -1
- package/script/commands/tenant/tenant.list.d.ts.map +1 -1
- package/script/commands/tenant/tenant.list.js +2 -2
- package/script/commands/variable/variable.create.d.ts +1 -1
- package/script/commands/variable/variable.create.d.ts.map +1 -1
- package/script/commands/variable/variable.create.js +2 -2
- package/script/commands/variable/variable.delete.d.ts +1 -1
- package/script/commands/variable/variable.delete.d.ts.map +1 -1
- package/script/commands/variable/variable.delete.js +2 -2
- package/script/commands/variable/variable.list.d.ts +1 -1
- package/script/commands/variable/variable.list.d.ts.map +1 -1
- package/script/commands/variable/variable.list.js +2 -2
- package/script/common/command-custom.d.ts +36 -0
- package/script/common/command-custom.d.ts.map +1 -0
- package/script/common/command-custom.js +32 -0
- package/script/common/command-graphql.d.ts +19 -0
- package/script/common/command-graphql.d.ts.map +1 -0
- package/script/common/command-graphql.js +34 -0
- package/script/common/command.d.ts +1 -17
- package/script/common/command.d.ts.map +1 -1
- package/script/common/command.js +1 -31
- package/script/common/flowcore-client.d.ts.map +1 -1
- package/script/common/flowcore-client.js +5 -2
- package/script/common/notification-client.d.ts.map +1 -1
- package/script/common/notification-client.js +8 -5
- package/script/exceptions/client-error.d.ts +2 -1
- package/script/exceptions/client-error.d.ts.map +1 -1
- package/script/exceptions/client-error.js +8 -2
- package/script/mod.d.ts +2 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +2 -0
- package/esm/commands/events/events.fetch-first-and-last-time-buckets.d.ts +0 -45
- package/esm/commands/events/events.fetch-first-and-last-time-buckets.d.ts.map +0 -1
- package/esm/commands/events/events.fetch-first-and-last-time-buckets.js +0 -40
- package/script/commands/events/events.fetch-first-and-last-time-buckets.d.ts +0 -45
- package/script/commands/events/events.fetch-first-and-last-time-buckets.d.ts.map +0 -1
- package/script/commands/events/events.fetch-first-and-last-time-buckets.js +0 -44
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Command } from "../../common/command.js";
|
|
2
|
-
/**
|
|
3
|
-
* The input for the events fetch indexes command
|
|
4
|
-
*/
|
|
5
|
-
export interface EventsFetchFirstAndLastTimeBucketsInput {
|
|
6
|
-
/** the tenant name */
|
|
7
|
-
tenant: string;
|
|
8
|
-
/** the data core id */
|
|
9
|
-
dataCoreId: string;
|
|
10
|
-
/** the flow type name */
|
|
11
|
-
flowType: string;
|
|
12
|
-
/** the event type name */
|
|
13
|
-
eventType: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* The output for the events fetch indexes command
|
|
17
|
-
*/
|
|
18
|
-
export interface EventsFetchFirstAndLastTimeBucketsOutput {
|
|
19
|
-
/** the first time bucket */
|
|
20
|
-
first?: string;
|
|
21
|
-
/** the last time bucket */
|
|
22
|
-
last?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Fetch time buckets for an event type
|
|
26
|
-
*/
|
|
27
|
-
export declare class EventsFetchFirstAndLastTimeBucketsCommand extends Command<EventsFetchFirstAndLastTimeBucketsInput, EventsFetchFirstAndLastTimeBucketsOutput> {
|
|
28
|
-
/**
|
|
29
|
-
* Get the method for the request
|
|
30
|
-
*/
|
|
31
|
-
protected getMethod(): string;
|
|
32
|
-
/**
|
|
33
|
-
* Get the base url for the request
|
|
34
|
-
*/
|
|
35
|
-
protected getBaseUrl(): string;
|
|
36
|
-
/**
|
|
37
|
-
* Get the path for the request
|
|
38
|
-
*/
|
|
39
|
-
protected getPath(): string;
|
|
40
|
-
/**
|
|
41
|
-
* Parse the response
|
|
42
|
-
*/
|
|
43
|
-
protected parseResponse(rawResponse: unknown): EventsFetchFirstAndLastTimeBucketsOutput;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=events.fetch-first-and-last-time-buckets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.fetch-first-and-last-time-buckets.d.ts","sourceRoot":"","sources":["../../../src/commands/events/events.fetch-first-and-last-time-buckets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAUD;;GAEG;AACH,qBAAa,yCAA0C,SAAQ,OAAO,CACpE,uCAAuC,EACvC,wCAAwC,CACzC;IACC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAGpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,wCAAwC;CAIjG"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
3
|
-
import { Command } from "../../common/command.js";
|
|
4
|
-
/**
|
|
5
|
-
* The response schema for the events fetch time buckets by names command
|
|
6
|
-
*/
|
|
7
|
-
const responseSchema = Type.Object({
|
|
8
|
-
first: Type.Optional(Type.String()),
|
|
9
|
-
last: Type.Optional(Type.String()),
|
|
10
|
-
});
|
|
11
|
-
/**
|
|
12
|
-
* Fetch time buckets for an event type
|
|
13
|
-
*/
|
|
14
|
-
export class EventsFetchFirstAndLastTimeBucketsCommand extends Command {
|
|
15
|
-
/**
|
|
16
|
-
* Get the method for the request
|
|
17
|
-
*/
|
|
18
|
-
getMethod() {
|
|
19
|
-
return "GET";
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Get the base url for the request
|
|
23
|
-
*/
|
|
24
|
-
getBaseUrl() {
|
|
25
|
-
return "https://event-source.api.flowcore.io";
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Get the path for the request
|
|
29
|
-
*/
|
|
30
|
-
getPath() {
|
|
31
|
-
return `/api/v1/time-buckets/first-and-last/${this.input.tenant}/${this.input.dataCoreId}/${this.input.flowType}/${this.input.eventType}`;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Parse the response
|
|
35
|
-
*/
|
|
36
|
-
parseResponse(rawResponse) {
|
|
37
|
-
const response = parseResponseHelper(responseSchema, rawResponse);
|
|
38
|
-
return response;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Command } from "../../common/command.js";
|
|
2
|
-
/**
|
|
3
|
-
* The input for the events fetch indexes command
|
|
4
|
-
*/
|
|
5
|
-
export interface EventsFetchFirstAndLastTimeBucketsInput {
|
|
6
|
-
/** the tenant name */
|
|
7
|
-
tenant: string;
|
|
8
|
-
/** the data core id */
|
|
9
|
-
dataCoreId: string;
|
|
10
|
-
/** the flow type name */
|
|
11
|
-
flowType: string;
|
|
12
|
-
/** the event type name */
|
|
13
|
-
eventType: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* The output for the events fetch indexes command
|
|
17
|
-
*/
|
|
18
|
-
export interface EventsFetchFirstAndLastTimeBucketsOutput {
|
|
19
|
-
/** the first time bucket */
|
|
20
|
-
first?: string;
|
|
21
|
-
/** the last time bucket */
|
|
22
|
-
last?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Fetch time buckets for an event type
|
|
26
|
-
*/
|
|
27
|
-
export declare class EventsFetchFirstAndLastTimeBucketsCommand extends Command<EventsFetchFirstAndLastTimeBucketsInput, EventsFetchFirstAndLastTimeBucketsOutput> {
|
|
28
|
-
/**
|
|
29
|
-
* Get the method for the request
|
|
30
|
-
*/
|
|
31
|
-
protected getMethod(): string;
|
|
32
|
-
/**
|
|
33
|
-
* Get the base url for the request
|
|
34
|
-
*/
|
|
35
|
-
protected getBaseUrl(): string;
|
|
36
|
-
/**
|
|
37
|
-
* Get the path for the request
|
|
38
|
-
*/
|
|
39
|
-
protected getPath(): string;
|
|
40
|
-
/**
|
|
41
|
-
* Parse the response
|
|
42
|
-
*/
|
|
43
|
-
protected parseResponse(rawResponse: unknown): EventsFetchFirstAndLastTimeBucketsOutput;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=events.fetch-first-and-last-time-buckets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.fetch-first-and-last-time-buckets.d.ts","sourceRoot":"","sources":["../../../src/commands/events/events.fetch-first-and-last-time-buckets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAUD;;GAEG;AACH,qBAAa,yCAA0C,SAAQ,OAAO,CACpE,uCAAuC,EACvC,wCAAwC,CACzC;IACC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAGpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,wCAAwC;CAIjG"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventsFetchFirstAndLastTimeBucketsCommand = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
6
|
-
const command_js_1 = require("../../common/command.js");
|
|
7
|
-
/**
|
|
8
|
-
* The response schema for the events fetch time buckets by names command
|
|
9
|
-
*/
|
|
10
|
-
const responseSchema = typebox_1.Type.Object({
|
|
11
|
-
first: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
12
|
-
last: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
13
|
-
});
|
|
14
|
-
/**
|
|
15
|
-
* Fetch time buckets for an event type
|
|
16
|
-
*/
|
|
17
|
-
class EventsFetchFirstAndLastTimeBucketsCommand extends command_js_1.Command {
|
|
18
|
-
/**
|
|
19
|
-
* Get the method for the request
|
|
20
|
-
*/
|
|
21
|
-
getMethod() {
|
|
22
|
-
return "GET";
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Get the base url for the request
|
|
26
|
-
*/
|
|
27
|
-
getBaseUrl() {
|
|
28
|
-
return "https://event-source.api.flowcore.io";
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Get the path for the request
|
|
32
|
-
*/
|
|
33
|
-
getPath() {
|
|
34
|
-
return `/api/v1/time-buckets/first-and-last/${this.input.tenant}/${this.input.dataCoreId}/${this.input.flowType}/${this.input.eventType}`;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Parse the response
|
|
38
|
-
*/
|
|
39
|
-
parseResponse(rawResponse) {
|
|
40
|
-
const response = (0, parse_response_helper_js_1.parseResponseHelper)(responseSchema, rawResponse);
|
|
41
|
-
return response;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.EventsFetchFirstAndLastTimeBucketsCommand = EventsFetchFirstAndLastTimeBucketsCommand;
|