@flowcore/sdk 1.19.1 → 1.21.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 +30 -0
- package/esm/commands/data-core/data-core.request-delete.d.ts +6 -0
- package/esm/commands/data-core/data-core.request-delete.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.request-delete.js +12 -0
- package/esm/commands/event-type/event-type.info.d.ts +2 -0
- package/esm/commands/event-type/event-type.info.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.info.js +3 -0
- package/esm/commands/event-type/event-type.request-delete.d.ts +6 -0
- package/esm/commands/event-type/event-type.request-delete.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.request-delete.js +12 -0
- package/esm/commands/event-type/event-type.request-truncate.d.ts +7 -1
- package/esm/commands/event-type/event-type.request-truncate.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.request-truncate.js +12 -0
- package/esm/commands/events/event.list.d.ts +6 -0
- package/esm/commands/events/event.list.d.ts.map +1 -1
- package/esm/commands/events/event.list.js +12 -0
- package/esm/commands/events/events.fetch-time-buckets-by-names.d.ts +4 -0
- package/esm/commands/events/events.fetch-time-buckets-by-names.d.ts.map +1 -1
- package/esm/commands/events/events.fetch-time-buckets-by-names.js +13 -1
- package/esm/commands/events/events.fetch.d.ts +4 -0
- package/esm/commands/events/events.fetch.d.ts.map +1 -1
- package/esm/commands/events/events.fetch.js +12 -0
- package/esm/commands/events/time-bucket.list.d.ts +6 -0
- package/esm/commands/events/time-bucket.list.d.ts.map +1 -1
- package/esm/commands/events/time-bucket.list.js +13 -1
- package/esm/commands/flow-type/flow-type.request-delete.d.ts +7 -1
- package/esm/commands/flow-type/flow-type.request-delete.d.ts.map +1 -1
- package/esm/commands/flow-type/flow-type.request-delete.js +12 -0
- package/esm/commands/index.d.ts +1 -0
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +1 -0
- package/esm/commands/security/pat.exchange.d.ts.map +1 -1
- package/esm/commands/security/permissions.list.d.ts +28 -0
- package/esm/commands/security/permissions.list.d.ts.map +1 -0
- package/esm/commands/security/permissions.list.js +38 -0
- package/esm/commands/tenant/tenant.translate-name-to-id.d.ts.map +1 -1
- package/esm/common/command.d.ts +9 -1
- package/esm/common/command.d.ts.map +1 -1
- package/esm/common/command.js +39 -3
- package/esm/common/flowcore-client.d.ts +9 -0
- package/esm/common/flowcore-client.d.ts.map +1 -1
- package/esm/common/flowcore-client.js +23 -1
- package/esm/common/tenant.cache.d.ts +17 -0
- package/esm/common/tenant.cache.d.ts.map +1 -0
- package/esm/common/tenant.cache.js +2 -0
- package/esm/contracts/pat.d.ts.map +1 -1
- package/esm/contracts/permission.d.ts +21 -0
- package/esm/contracts/permission.d.ts.map +1 -0
- package/esm/contracts/permission.js +16 -0
- package/esm/utils/local-cache.d.ts +11 -0
- package/esm/utils/local-cache.d.ts.map +1 -0
- package/esm/utils/local-cache.js +45 -0
- package/esm/utils/try-catch.d.ts +12 -0
- package/esm/utils/try-catch.d.ts.map +1 -0
- package/esm/utils/try-catch.js +10 -0
- package/package.json +1 -1
- package/script/commands/data-core/data-core.request-delete.d.ts +6 -0
- package/script/commands/data-core/data-core.request-delete.d.ts.map +1 -1
- package/script/commands/data-core/data-core.request-delete.js +12 -0
- package/script/commands/event-type/event-type.info.d.ts +2 -0
- package/script/commands/event-type/event-type.info.d.ts.map +1 -1
- package/script/commands/event-type/event-type.info.js +3 -0
- package/script/commands/event-type/event-type.request-delete.d.ts +6 -0
- package/script/commands/event-type/event-type.request-delete.d.ts.map +1 -1
- package/script/commands/event-type/event-type.request-delete.js +12 -0
- package/script/commands/event-type/event-type.request-truncate.d.ts +7 -1
- package/script/commands/event-type/event-type.request-truncate.d.ts.map +1 -1
- package/script/commands/event-type/event-type.request-truncate.js +12 -0
- package/script/commands/events/event.list.d.ts +6 -0
- package/script/commands/events/event.list.d.ts.map +1 -1
- package/script/commands/events/event.list.js +12 -0
- package/script/commands/events/events.fetch-time-buckets-by-names.d.ts +4 -0
- package/script/commands/events/events.fetch-time-buckets-by-names.d.ts.map +1 -1
- package/script/commands/events/events.fetch-time-buckets-by-names.js +13 -1
- package/script/commands/events/events.fetch.d.ts +4 -0
- package/script/commands/events/events.fetch.d.ts.map +1 -1
- package/script/commands/events/events.fetch.js +12 -0
- package/script/commands/events/time-bucket.list.d.ts +6 -0
- package/script/commands/events/time-bucket.list.d.ts.map +1 -1
- package/script/commands/events/time-bucket.list.js +13 -1
- package/script/commands/flow-type/flow-type.request-delete.d.ts +7 -1
- package/script/commands/flow-type/flow-type.request-delete.d.ts.map +1 -1
- package/script/commands/flow-type/flow-type.request-delete.js +12 -0
- package/script/commands/index.d.ts +1 -0
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +1 -0
- package/script/commands/security/pat.exchange.d.ts.map +1 -1
- package/script/commands/security/permissions.list.d.ts +28 -0
- package/script/commands/security/permissions.list.d.ts.map +1 -0
- package/script/commands/security/permissions.list.js +42 -0
- package/script/commands/tenant/tenant.translate-name-to-id.d.ts.map +1 -1
- package/script/common/command.d.ts +9 -1
- package/script/common/command.d.ts.map +1 -1
- package/script/common/command.js +39 -3
- package/script/common/flowcore-client.d.ts +9 -0
- package/script/common/flowcore-client.d.ts.map +1 -1
- package/script/common/flowcore-client.js +23 -1
- package/script/common/tenant.cache.d.ts +17 -0
- package/script/common/tenant.cache.d.ts.map +1 -0
- package/script/common/tenant.cache.js +5 -0
- package/script/contracts/pat.d.ts.map +1 -1
- package/script/contracts/permission.d.ts +21 -0
- package/script/contracts/permission.d.ts.map +1 -0
- package/script/contracts/permission.js +19 -0
- package/script/utils/local-cache.d.ts +11 -0
- package/script/utils/local-cache.d.ts.map +1 -0
- package/script/utils/local-cache.js +49 -0
- package/script/utils/try-catch.d.ts +12 -0
- package/script/utils/try-catch.d.ts.map +1 -0
- package/script/utils/try-catch.js +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.21.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.20.0...v1.21.0) (2025-03-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add permissions list command ([8c0bb59](https://github.com/flowcore-io/flowcore-sdk/commit/8c0bb594d9110f69209047ad252bf5e7a1a1a483))
|
|
9
|
+
* add permissions list command ([66c4f75](https://github.com/flowcore-io/flowcore-sdk/commit/66c4f75033a42458c5b4db7403b69188fd46b8e3))
|
|
10
|
+
* rework dedicated tenant ([45e1887](https://github.com/flowcore-io/flowcore-sdk/commit/45e1887e4468db9ba18964ebac0cdf326e1763fa))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add explicit type for permission schema ([d541a83](https://github.com/flowcore-io/flowcore-sdk/commit/d541a8321a7c238df7ea29cc344e99d1f8a7ae44))
|
|
16
|
+
* fix eventtypeinfo command ([72e04e2](https://github.com/flowcore-io/flowcore-sdk/commit/72e04e2290913a10660dd4c872e5b9ec4c50067f))
|
|
17
|
+
* remove node-cache ([ddc409d](https://github.com/flowcore-io/flowcore-sdk/commit/ddc409d22100a12252968d8afdd5bf66a0eff28d))
|
|
18
|
+
|
|
19
|
+
## [1.20.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.19.1...v1.20.0) (2025-03-21)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **command:** :sparkles: add support for dedicated URLs in command structure ([d80d56c](https://github.com/flowcore-io/flowcore-sdk/commit/d80d56cd4cea37e886315812fa85569d7ffa39f8))
|
|
25
|
+
* **commands:** :sparkles: add support for dedicated URLs in multiple command classes ([0d26cb5](https://github.com/flowcore-io/flowcore-sdk/commit/0d26cb5bad1bd9c75c186265dc09472cdc1c5493))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **flowcore-client:** :art: update import statement for Tenant type to use type-only import ([448580e](https://github.com/flowcore-io/flowcore-sdk/commit/448580ef38dc8130178ed2df55e2c976ea6740f0))
|
|
31
|
+
* **tests:** :bug: Fix memory leaks in NodeCache timers by adding close() method ([407d348](https://github.com/flowcore-io/flowcore-sdk/commit/407d348f2d9eaec79fa8cb15229224b13d562f90))
|
|
32
|
+
|
|
3
33
|
## [1.19.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.19.0...v1.19.1) (2025-03-17)
|
|
4
34
|
|
|
5
35
|
|
|
@@ -5,6 +5,8 @@ import type { FlowcoreClient } from "../../common/flowcore-client.js";
|
|
|
5
5
|
* The input for the data core request delete command
|
|
6
6
|
*/
|
|
7
7
|
export interface DataCoreRequestDeleteInput {
|
|
8
|
+
/** The tenant */
|
|
9
|
+
tenant: string;
|
|
8
10
|
/** The id of the data core */
|
|
9
11
|
dataCoreId: string;
|
|
10
12
|
/** Wait for the data core to be deleted (default: false) */
|
|
@@ -21,6 +23,10 @@ export interface DataCoreRequestDeleteOutput {
|
|
|
21
23
|
* Request to delete a data core
|
|
22
24
|
*/
|
|
23
25
|
export declare class DataCoreRequestDeleteCommand extends Command<DataCoreRequestDeleteInput, DataCoreRequestDeleteOutput> {
|
|
26
|
+
/**
|
|
27
|
+
* The dedicated subdomain for the command
|
|
28
|
+
*/
|
|
29
|
+
protected dedicatedSubdomain: string;
|
|
24
30
|
/**
|
|
25
31
|
* Get the method
|
|
26
32
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-core.request-delete.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.request-delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGrE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,OAAO,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;IAChH;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,2BAA2B;IAUnF;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAS9D;;OAEG;cACsB,eAAe,CACtC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,2BAA2B,GACpC,OAAO,CAAC,2BAA2B,CAAC;CAkBxC"}
|
|
1
|
+
{"version":3,"file":"data-core.request-delete.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.request-delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGrE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,OAAO,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;IAChH;;OAEG;IACH,UAAmB,kBAAkB,EAAE,MAAM,CAAmB;IAEhE;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,2BAA2B;IAUnF;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAS9D;;OAEG;cACsB,eAAe,CACtC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,2BAA2B,GACpC,OAAO,CAAC,2BAA2B,CAAC;CAkBxC"}
|
|
@@ -7,6 +7,18 @@ import { DataCoreExistsCommand } from "./data-core.exists.js";
|
|
|
7
7
|
* Request to delete a data core
|
|
8
8
|
*/
|
|
9
9
|
export class DataCoreRequestDeleteCommand extends Command {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/**
|
|
13
|
+
* The dedicated subdomain for the command
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: "delete-manager"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
10
22
|
/**
|
|
11
23
|
* Get the method
|
|
12
24
|
*/
|
|
@@ -5,6 +5,8 @@ import type { FlowcoreEvent } from "../../contracts/event.js";
|
|
|
5
5
|
* The input for the events fetch info command
|
|
6
6
|
*/
|
|
7
7
|
export interface EventTypeInfoInput {
|
|
8
|
+
/** the tenant */
|
|
9
|
+
tenant: string;
|
|
8
10
|
/** the event type id or ids */
|
|
9
11
|
eventTypeId: [string, ...string[]] | string;
|
|
10
12
|
/** the limit for the number of last events to fetch (default is 5) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-type.info.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAI7D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,+BAA+B;IAC/B,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAA;IAC3C,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,4BAA4B;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sBAAsB;IACtB,UAAU,EAAE,aAAa,EAAE,CAAA;CAC5B;AAED;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,aAAa,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IAC9F;;OAEG;cACsB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"event-type.info.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAI7D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,+BAA+B;IAC/B,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAA;IAC3C,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,4BAA4B;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sBAAsB;IACtB,UAAU,EAAE,aAAa,EAAE,CAAA;CAC5B;AAED;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,aAAa,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IAC9F;;OAEG;cACsB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAsD7F"}
|
|
@@ -13,11 +13,13 @@ export class EventTypeInfoCommand extends CustomCommand {
|
|
|
13
13
|
async customExecute(client) {
|
|
14
14
|
const lastEventsLimit = this.input.limit ?? 5;
|
|
15
15
|
const firstTimeBucketCommand = new TimeBucketListCommand({
|
|
16
|
+
tenant: this.input.tenant,
|
|
16
17
|
eventTypeId: this.input.eventTypeId,
|
|
17
18
|
order: "asc",
|
|
18
19
|
pageSize: 1,
|
|
19
20
|
});
|
|
20
21
|
const lastTimeBucketCommand = new TimeBucketListCommand({
|
|
22
|
+
tenant: this.input.tenant,
|
|
21
23
|
eventTypeId: this.input.eventTypeId,
|
|
22
24
|
order: "desc",
|
|
23
25
|
pageSize: lastEventsLimit,
|
|
@@ -38,6 +40,7 @@ export class EventTypeInfoCommand extends CustomCommand {
|
|
|
38
40
|
const lastEvents = [];
|
|
39
41
|
for (const timeBucket of lastTimeBucketResponse.timeBuckets) {
|
|
40
42
|
const eventListCommand = new EventListCommand({
|
|
43
|
+
tenant: this.input.tenant,
|
|
41
44
|
eventTypeId: this.input.eventTypeId,
|
|
42
45
|
timeBucket,
|
|
43
46
|
pageSize: lastEventsLimit - lastEvents.length,
|
|
@@ -5,6 +5,8 @@ import type { FlowcoreClient } from "../../common/flowcore-client.js";
|
|
|
5
5
|
* The input for the event type request delete command
|
|
6
6
|
*/
|
|
7
7
|
export interface EventTypeRequestDeleteInput {
|
|
8
|
+
/** The tenant */
|
|
9
|
+
tenant: string;
|
|
8
10
|
/** The id of the event type */
|
|
9
11
|
eventTypeId: string;
|
|
10
12
|
/** Wait for the event type to be deleted (default: false) */
|
|
@@ -20,6 +22,10 @@ export interface EventTypeRequestDeleteOutput {
|
|
|
20
22
|
* Request to delete an event type
|
|
21
23
|
*/
|
|
22
24
|
export declare class EventTypeRequestDeleteCommand extends Command<EventTypeRequestDeleteInput, EventTypeRequestDeleteOutput> {
|
|
25
|
+
/**
|
|
26
|
+
* The dedicated subdomain for the command
|
|
27
|
+
*/
|
|
28
|
+
protected dedicatedSubdomain: string;
|
|
23
29
|
/**
|
|
24
30
|
* Get the method
|
|
25
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-type.request-delete.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.request-delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,OAAO,CAAC,2BAA2B,EAAE,4BAA4B,CAAC;IACnH;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,4BAA4B;IAUpF;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAS9D;;OAEG;cACsB,eAAe,CACtC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,4BAA4B,GACrC,OAAO,CAAC,4BAA4B,CAAC;CAkBzC"}
|
|
1
|
+
{"version":3,"file":"event-type.request-delete.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.request-delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,OAAO,CAAC,2BAA2B,EAAE,4BAA4B,CAAC;IACnH;;OAEG;IACH,UAAmB,kBAAkB,EAAE,MAAM,CAAmB;IAEhE;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,4BAA4B;IAUpF;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAS9D;;OAEG;cACsB,eAAe,CACtC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,4BAA4B,GACrC,OAAO,CAAC,4BAA4B,CAAC;CAkBzC"}
|
|
@@ -7,6 +7,18 @@ import { EventTypeExistsCommand } from "./event-type.exists.js";
|
|
|
7
7
|
* Request to delete an event type
|
|
8
8
|
*/
|
|
9
9
|
export class EventTypeRequestDeleteCommand extends Command {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/**
|
|
13
|
+
* The dedicated subdomain for the command
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: "delete-manager"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
10
22
|
/**
|
|
11
23
|
* Get the method
|
|
12
24
|
*/
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Command } from "../../common/command.js";
|
|
2
|
-
import type { ClientError } from "../../exceptions/client-error.js";
|
|
3
2
|
import type { FlowcoreClient } from "../../common/flowcore-client.js";
|
|
3
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
4
4
|
/**
|
|
5
5
|
* The input for the event type request truncate command
|
|
6
6
|
*/
|
|
7
7
|
export interface EventTypeRequestTruncateInput {
|
|
8
|
+
/** The tenant */
|
|
9
|
+
tenant: string;
|
|
8
10
|
/** The id of the event type */
|
|
9
11
|
eventTypeId: string;
|
|
10
12
|
/** Wait for the event type to be truncated (default: false) */
|
|
@@ -20,6 +22,10 @@ export interface EventTypeRequestTruncateOutput {
|
|
|
20
22
|
* Request to truncate an event type
|
|
21
23
|
*/
|
|
22
24
|
export declare class EventTypeRequestTruncateCommand extends Command<EventTypeRequestTruncateInput, EventTypeRequestTruncateOutput> {
|
|
25
|
+
/**
|
|
26
|
+
* The dedicated subdomain for the command
|
|
27
|
+
*/
|
|
28
|
+
protected dedicatedSubdomain: string;
|
|
23
29
|
/**
|
|
24
30
|
* Get the method
|
|
25
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-type.request-truncate.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.request-truncate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"event-type.request-truncate.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.request-truncate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAKnE;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,+DAA+D;IAC/D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,+BACX,SAAQ,OAAO,CAAC,6BAA6B,EAAE,8BAA8B,CAAC;IAC9E;;OAEG;IACH,UAAmB,kBAAkB,EAAE,MAAM,CAAmB;IAEhE;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,8BAA8B;IAUtF;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAS9D;;OAEG;cACsB,eAAe,CACtC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,8BAA8B,GACvC,OAAO,CAAC,8BAA8B,CAAC;CAmB3C"}
|
|
@@ -7,6 +7,18 @@ import { EventTypeFetchCommand } from "./event-type.fetch.js";
|
|
|
7
7
|
* Request to truncate an event type
|
|
8
8
|
*/
|
|
9
9
|
export class EventTypeRequestTruncateCommand extends Command {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/**
|
|
13
|
+
* The dedicated subdomain for the command
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: "delete-manager"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
10
22
|
/**
|
|
11
23
|
* Get the method
|
|
12
24
|
*/
|
|
@@ -4,6 +4,8 @@ import { type FlowcoreEvent } from "../../contracts/event.js";
|
|
|
4
4
|
* The input for the events fetch indexes command
|
|
5
5
|
*/
|
|
6
6
|
export interface EventListInput {
|
|
7
|
+
/** The tenant */
|
|
8
|
+
tenant: string;
|
|
7
9
|
/** the event type id or ids */
|
|
8
10
|
eventTypeId: [string, ...string[]] | string;
|
|
9
11
|
/** the time bucket */
|
|
@@ -42,6 +44,10 @@ export interface EventListOutput {
|
|
|
42
44
|
* Fetch time buckets for an event type
|
|
43
45
|
*/
|
|
44
46
|
export declare class EventListCommand extends Command<EventListInput, EventListOutput> {
|
|
47
|
+
/**
|
|
48
|
+
* The dedicated subdomain for the command
|
|
49
|
+
*/
|
|
50
|
+
protected dedicatedSubdomain: string;
|
|
45
51
|
/**
|
|
46
52
|
* Get the method for the request
|
|
47
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.list.d.ts","sourceRoot":"","sources":["../../../src/commands/events/event.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,0BAA0B,CAAA;AAElF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,+BAA+B;IAC/B,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAA;IAC3C,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,iBAAiB;IACjB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAUD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,cAAc,EAAE,eAAe,CAAC;IAC5E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAgBpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,eAAe;CAIxE"}
|
|
1
|
+
{"version":3,"file":"event.list.d.ts","sourceRoot":"","sources":["../../../src/commands/events/event.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,0BAA0B,CAAA;AAElF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,+BAA+B;IAC/B,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAA;IAC3C,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,iBAAiB;IACjB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAUD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,cAAc,EAAE,eAAe,CAAC;IAC5E;;OAEG;IACH,UAAmB,kBAAkB,EAAE,MAAM,CAAiB;IAE9D;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAgBpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,eAAe;CAIxE"}
|
|
@@ -13,6 +13,18 @@ const responseSchema = Type.Object({
|
|
|
13
13
|
* Fetch time buckets for an event type
|
|
14
14
|
*/
|
|
15
15
|
export class EventListCommand extends Command {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
/**
|
|
19
|
+
* The dedicated subdomain for the command
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: "event-source"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
16
28
|
/**
|
|
17
29
|
* Get the method for the request
|
|
18
30
|
*/
|
|
@@ -33,6 +33,10 @@ export interface EventsFetchTimeBucketsByNamesOutput {
|
|
|
33
33
|
* Fetch time buckets for an event type
|
|
34
34
|
*/
|
|
35
35
|
export declare class EventsFetchTimeBucketsByNamesCommand extends Command<EventsFetchTimeBucketsByNamesInput, EventsFetchTimeBucketsByNamesOutput> {
|
|
36
|
+
/**
|
|
37
|
+
* The dedicated subdomain for the command
|
|
38
|
+
*/
|
|
39
|
+
protected dedicatedSubdomain: string;
|
|
36
40
|
/**
|
|
37
41
|
* Get the base url for the request
|
|
38
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.fetch-time-buckets-by-names.d.ts","sourceRoot":"","sources":["../../../src/commands/events/events.fetch-time-buckets-by-names.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.fetch-time-buckets-by-names.d.ts","sourceRoot":"","sources":["../../../src/commands/events/events.fetch-time-buckets-by-names.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,2BAA2B;IAC3B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,uBAAuB;IACvB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAUD;;GAEG;AACH,qBAAa,oCAAqC,SAAQ,OAAO,CAC/D,kCAAkC,EAClC,mCAAmC,CACpC;IACC;;OAEG;IACH,UAAmB,kBAAkB,EAAE,MAAM,CAAiB;IAE9D;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAGpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,mCAAmC;IAK3F;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAItD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
3
2
|
import { Command } from "../../common/command.js";
|
|
3
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
4
|
/**
|
|
5
5
|
* The response schema for the events fetch time buckets by names command
|
|
6
6
|
*/
|
|
@@ -12,6 +12,18 @@ const responseSchema = Type.Object({
|
|
|
12
12
|
* Fetch time buckets for an event type
|
|
13
13
|
*/
|
|
14
14
|
export class EventsFetchTimeBucketsByNamesCommand extends Command {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* The dedicated subdomain for the command
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: "event-source"
|
|
25
|
+
});
|
|
26
|
+
}
|
|
15
27
|
/**
|
|
16
28
|
* Get the base url for the request
|
|
17
29
|
*/
|
|
@@ -38,6 +38,10 @@ export interface EventsFetchEventsOutput {
|
|
|
38
38
|
* Fetch time buckets for an event type
|
|
39
39
|
*/
|
|
40
40
|
export declare class EventsFetchCommand extends Command<EventsFetchEventsInput, EventsFetchEventsOutput> {
|
|
41
|
+
/**
|
|
42
|
+
* The dedicated subdomain for the command
|
|
43
|
+
*/
|
|
44
|
+
protected dedicatedSubdomain: string;
|
|
41
45
|
/**
|
|
42
46
|
* Get the base url for the request
|
|
43
47
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/events/events.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,0BAA0B,CAAA;AAElF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,2BAA2B;IAC3B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,iBAAiB;IACjB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAUD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,OAAO,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;IAC9F;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAUpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,uBAAuB;IAK/E;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAStD"}
|
|
1
|
+
{"version":3,"file":"events.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/events/events.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,0BAA0B,CAAA;AAElF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,2BAA2B;IAC3B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,iBAAiB;IACjB,MAAM,EAAE,aAAa,EAAE,CAAA;IACvB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAUD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,OAAO,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;IAC9F;;OAEG;IACH,UAAmB,kBAAkB,EAAE,MAAM,CAAiB;IAE9D;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAUpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,uBAAuB;IAK/E;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAStD"}
|
|
@@ -13,6 +13,18 @@ const responseSchema = Type.Object({
|
|
|
13
13
|
* Fetch time buckets for an event type
|
|
14
14
|
*/
|
|
15
15
|
export class EventsFetchCommand extends Command {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
/**
|
|
19
|
+
* The dedicated subdomain for the command
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: "event-source"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
16
28
|
/**
|
|
17
29
|
* Get the base url for the request
|
|
18
30
|
*/
|
|
@@ -3,6 +3,8 @@ import { Command } from "../../common/command.js";
|
|
|
3
3
|
* The input for the events fetch indexes command
|
|
4
4
|
*/
|
|
5
5
|
export interface TimeBucketListInput {
|
|
6
|
+
/** the tenant */
|
|
7
|
+
tenant: string;
|
|
6
8
|
/** the event type ids */
|
|
7
9
|
eventTypeId: [string, ...string[]] | string;
|
|
8
10
|
/** the start time */
|
|
@@ -29,6 +31,10 @@ export interface TimeBucketListOutput {
|
|
|
29
31
|
* Fetch time buckets for an event type
|
|
30
32
|
*/
|
|
31
33
|
export declare class TimeBucketListCommand extends Command<TimeBucketListInput, TimeBucketListOutput> {
|
|
34
|
+
/**
|
|
35
|
+
* The dedicated subdomain for the command
|
|
36
|
+
*/
|
|
37
|
+
protected dedicatedSubdomain: string;
|
|
32
38
|
/**
|
|
33
39
|
* Get the method for the request
|
|
34
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-bucket.list.d.ts","sourceRoot":"","sources":["../../../src/commands/events/time-bucket.list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-bucket.list.d.ts","sourceRoot":"","sources":["../../../src/commands/events/time-bucket.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,yBAAyB;IACzB,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,MAAM,CAAA;IAC3C,qBAAqB;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB;IAChB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,uBAAuB;IACvB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAUD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAChD,mBAAmB,EACnB,oBAAoB,CACrB;IACC;;OAEG;IACH,UAAmB,kBAAkB,EAAE,MAAM,CAAiB;IAE9D;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAepC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,oBAAoB;CAI7E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
3
2
|
import { Command } from "../../common/command.js";
|
|
3
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
4
|
/**
|
|
5
5
|
* The response schema for the events fetch time buckets by names command
|
|
6
6
|
*/
|
|
@@ -12,6 +12,18 @@ const responseSchema = Type.Object({
|
|
|
12
12
|
* Fetch time buckets for an event type
|
|
13
13
|
*/
|
|
14
14
|
export class TimeBucketListCommand extends Command {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* The dedicated subdomain for the command
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: "event-source"
|
|
25
|
+
});
|
|
26
|
+
}
|
|
15
27
|
/**
|
|
16
28
|
* Get the method for the request
|
|
17
29
|
*/
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Command } from "../../common/command.js";
|
|
2
|
-
import type { ClientError } from "../../exceptions/client-error.js";
|
|
3
2
|
import type { FlowcoreClient } from "../../common/flowcore-client.js";
|
|
3
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
4
4
|
/**
|
|
5
5
|
* The input for the flow type request delete command
|
|
6
6
|
*/
|
|
7
7
|
export interface FlowTypeRequestDeleteInput {
|
|
8
|
+
/** The tenant */
|
|
9
|
+
tenant: string;
|
|
8
10
|
/** The id of the flow type */
|
|
9
11
|
flowTypeId: string;
|
|
10
12
|
/** Wait for the flow type to be deleted (default: false) */
|
|
@@ -20,6 +22,10 @@ export interface FlowTypeRequestDeleteOutput {
|
|
|
20
22
|
* Request to delete a flow type
|
|
21
23
|
*/
|
|
22
24
|
export declare class FlowTypeRequestDeleteCommand extends Command<FlowTypeRequestDeleteInput, FlowTypeRequestDeleteOutput> {
|
|
25
|
+
/**
|
|
26
|
+
* The dedicated subdomain for the command
|
|
27
|
+
*/
|
|
28
|
+
protected dedicatedSubdomain: string;
|
|
23
29
|
/**
|
|
24
30
|
* Get the method
|
|
25
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-type.request-delete.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.request-delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"flow-type.request-delete.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.request-delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAKnE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,OAAO,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;IAChH;;OAEG;IACH,UAAmB,kBAAkB,EAAE,MAAM,CAAmB;IAEhE;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,2BAA2B;IAUnF;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAS9D;;OAEG;cACsB,eAAe,CACtC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,2BAA2B,GACpC,OAAO,CAAC,2BAA2B,CAAC;CAkBxC"}
|
|
@@ -7,6 +7,18 @@ import { FlowTypeExistsCommand } from "./flow-type.exists.js";
|
|
|
7
7
|
* Request to delete a flow type
|
|
8
8
|
*/
|
|
9
9
|
export class FlowTypeRequestDeleteCommand extends Command {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/**
|
|
13
|
+
* The dedicated subdomain for the command
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(this, "dedicatedSubdomain", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: "delete-manager"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
10
22
|
/**
|
|
11
23
|
* Get the method
|
|
12
24
|
*/
|
package/esm/commands/index.d.ts
CHANGED
|
@@ -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,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"}
|
|
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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pat.exchange.d.ts","sourceRoot":"","sources":["../../../src/commands/security/pat.exchange.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,2BAA2B;IAC1C,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,OAAO,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;IACvG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;cAIpB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAMvD;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,2BAA2B;
|
|
1
|
+
{"version":3,"file":"pat.exchange.d.ts","sourceRoot":"","sources":["../../../src/commands/security/pat.exchange.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,2BAA2B;IAC1C,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,OAAO,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;IACvG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;cAIpB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAMvD;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,2BAA2B;CAQpF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type Permission } from "../../contracts/permission.js";
|
|
3
|
+
export interface PermissionsListInput {
|
|
4
|
+
/** Filter by the type of the frn */
|
|
5
|
+
type?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Fetch an event type
|
|
9
|
+
*/
|
|
10
|
+
export declare class PermissionsListCommand extends Command<PermissionsListInput, Permission[]> {
|
|
11
|
+
/**
|
|
12
|
+
* Get the method
|
|
13
|
+
*/
|
|
14
|
+
protected getMethod(): string;
|
|
15
|
+
/**
|
|
16
|
+
* Get the base url
|
|
17
|
+
*/
|
|
18
|
+
protected getBaseUrl(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Get the path
|
|
21
|
+
*/
|
|
22
|
+
protected getPath(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Parse the response
|
|
25
|
+
*/
|
|
26
|
+
protected parseResponse(rawResponse: unknown): Permission[];
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=permissions.list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.list.d.ts","sourceRoot":"","sources":["../../../src/commands/security/permissions.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,+BAA+B,CAAA;AAEjF,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,UAAU,EAAE,CAAC;IACrF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAQpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,UAAU,EAAE;CAIrE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { Command } from "../../common/command.js";
|
|
3
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
|
+
import { PermissionSchema } from "../../contracts/permission.js";
|
|
5
|
+
/**
|
|
6
|
+
* Fetch an event type
|
|
7
|
+
*/
|
|
8
|
+
export class PermissionsListCommand extends Command {
|
|
9
|
+
/**
|
|
10
|
+
* Get the method
|
|
11
|
+
*/
|
|
12
|
+
getMethod() {
|
|
13
|
+
return "GET";
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get the base url
|
|
17
|
+
*/
|
|
18
|
+
getBaseUrl() {
|
|
19
|
+
return "https://iam.api.flowcore.io";
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get the path
|
|
23
|
+
*/
|
|
24
|
+
getPath() {
|
|
25
|
+
const queryParams = new URLSearchParams();
|
|
26
|
+
if (this.input.type) {
|
|
27
|
+
queryParams.set("type", this.input.type);
|
|
28
|
+
}
|
|
29
|
+
return `/api/v1/permissions?${queryParams.toString()}`;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Parse the response
|
|
33
|
+
*/
|
|
34
|
+
parseResponse(rawResponse) {
|
|
35
|
+
const response = parseResponseHelper(Type.Array(PermissionSchema), rawResponse);
|
|
36
|
+
return response;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.translate-name-to-id.d.ts","sourceRoot":"","sources":["../../../src/commands/tenant/tenant.translate-name-to-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"tenant.translate-name-to-id.d.ts","sourceRoot":"","sources":["../../../src/commands/tenant/tenant.translate-name-to-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,OAAO,CAAC;IAClD,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;CACd,CAGC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAElF;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,4BAA4B,EAAE,uBAAuB,CAAC;IAChH;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,uBAAuB;IAK/E;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAQ/D"}
|
package/esm/common/command.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export declare abstract class Command<Input, Output> {
|
|
|
8
8
|
* Whether the command should retry on failure
|
|
9
9
|
*/
|
|
10
10
|
protected readonly retryOnFailure: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The dedicated subdomain for the command
|
|
13
|
+
*/
|
|
14
|
+
protected readonly dedicatedSubdomain?: string;
|
|
11
15
|
/**
|
|
12
16
|
* The allowed modes for the command
|
|
13
17
|
*/
|
|
@@ -17,6 +21,10 @@ export declare abstract class Command<Input, Output> {
|
|
|
17
21
|
*/
|
|
18
22
|
protected readonly input: Input;
|
|
19
23
|
constructor(input: Input);
|
|
24
|
+
/**
|
|
25
|
+
* Get the dedicated base URL
|
|
26
|
+
*/
|
|
27
|
+
protected getDedicatedBaseUrl(client: FlowcoreClient): Promise<string | null>;
|
|
20
28
|
/**
|
|
21
29
|
* Get the base URL for the request
|
|
22
30
|
*/
|
|
@@ -48,7 +56,7 @@ export declare abstract class Command<Input, Output> {
|
|
|
48
56
|
/**
|
|
49
57
|
* Get the request object
|
|
50
58
|
*/
|
|
51
|
-
getRequest(
|
|
59
|
+
getRequest(client: FlowcoreClient): Promise<{
|
|
52
60
|
allowedModes: ("apiKey" | "bearer")[];
|
|
53
61
|
body: string | Record<string, unknown> | Array<unknown> | undefined;
|
|
54
62
|
headers: Record<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/common/command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/common/command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D;;GAEG;AACH,8BAAsB,OAAO,CAAC,KAAK,EAAE,MAAM;IACzC;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAO;IAEjD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE9C;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAuB;IAE/E;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;gBAEnB,KAAK,EAAE,KAAK;IAOxB;;OAEG;cACa,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA6BnF;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,UAAU,IAAI,MAAM;IAEvC;;OAEG;IACH,SAAS,CAAC,SAAS,IAAI,MAAM;IAI7B;;OAEG;IACH,SAAS,CAAC,OAAO,IAAI,MAAM;IAI3B;;OAEG;IACH,SAAS,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,SAAS;IAOzE;;OAEG;IACH,SAAS,CAAC,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQ9C;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM;IAE3D;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAIrD;;OAEG;IACU,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC;QACvD,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAA;QACrC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,SAAS,CAAA;QACnE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC/B,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;QAC9D,eAAe,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;QAC9E,iBAAiB,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAA;QAC/C,cAAc,EAAE,OAAO,CAAA;QACvB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;KAC7D,CAAC;IAeF;;OAEG;cAEa,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAG5F"}
|