@flowcore/sdk 1.15.0 → 1.17.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 +29 -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/data-core/data-core.fetch.d.ts +22 -5
- package/esm/commands/data-core/data-core.fetch.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.fetch.js +32 -7
- 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/contracts/data-core.d.ts +2 -24
- package/esm/contracts/data-core.d.ts.map +1 -1
- package/esm/contracts/data-core.js +1 -29
- package/esm/contracts/event-type.d.ts +1 -19
- package/esm/contracts/event-type.d.ts.map +1 -1
- package/esm/contracts/event-type.js +1 -26
- package/esm/contracts/flow-type.d.ts +1 -18
- package/esm/contracts/flow-type.d.ts.map +1 -1
- package/esm/contracts/flow-type.js +1 -23
- 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/data-core/data-core.fetch.d.ts +22 -5
- package/script/commands/data-core/data-core.fetch.d.ts.map +1 -1
- package/script/commands/data-core/data-core.fetch.js +32 -7
- 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/contracts/data-core.d.ts +2 -24
- package/script/contracts/data-core.d.ts.map +1 -1
- package/script/contracts/data-core.js +2 -31
- package/script/contracts/event-type.d.ts +1 -19
- package/script/contracts/event-type.d.ts.map +1 -1
- package/script/contracts/event-type.js +1 -27
- package/script/contracts/flow-type.d.ts +1 -18
- package/script/contracts/flow-type.d.ts.map +1 -1
- package/script/contracts/flow-type.js +1 -24
- 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,10 +1,11 @@
|
|
|
1
|
-
import { type Static, type
|
|
1
|
+
import { type Static, type TBoolean, type TLiteral, type TObject, type TString, type TUnion } from "@sinclair/typebox";
|
|
2
2
|
/**
|
|
3
3
|
* The schema for a data core
|
|
4
4
|
*/
|
|
5
5
|
export declare const DataCoreSchema: TObject<{
|
|
6
6
|
id: TString;
|
|
7
7
|
tenantId: TString;
|
|
8
|
+
tenant: TString;
|
|
8
9
|
name: TString;
|
|
9
10
|
description: TString;
|
|
10
11
|
accessControl: TUnion<[TLiteral<"public">, TLiteral<"private">]>;
|
|
@@ -15,27 +16,4 @@ export declare const DataCoreSchema: TObject<{
|
|
|
15
16
|
* The type for a data core
|
|
16
17
|
*/
|
|
17
18
|
export type DataCore = Static<typeof DataCoreSchema>;
|
|
18
|
-
/**
|
|
19
|
-
* The schema for a data core v0
|
|
20
|
-
*/
|
|
21
|
-
export declare const DataCoreV0Schema: TObject<{
|
|
22
|
-
id: TString;
|
|
23
|
-
name: TString;
|
|
24
|
-
description: TUnion<[TString, TNull]>;
|
|
25
|
-
isPublic: TBoolean;
|
|
26
|
-
configuration: TOptional<TArray<TObject<{
|
|
27
|
-
key: TLiteral<"DELETE_PROTECTION_ENABLED">;
|
|
28
|
-
value: TUnion<[TLiteral<"true">, TLiteral<"false">]>;
|
|
29
|
-
}>>>;
|
|
30
|
-
truncating: TBoolean;
|
|
31
|
-
deleting: TBoolean;
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* The type for a data core v0
|
|
35
|
-
*/
|
|
36
|
-
export type DataCoreV0 = Static<typeof DataCoreV0Schema>;
|
|
37
|
-
/**
|
|
38
|
-
* Convert a data core v0 to a data core
|
|
39
|
-
*/
|
|
40
|
-
export declare const dataCoreV0ToDataCore: (dataCoreV0: DataCoreV0, organizationId: string) => DataCore;
|
|
41
19
|
//# sourceMappingURL=data-core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-core.d.ts","sourceRoot":"","sources":["../../src/contracts/data-core.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,
|
|
1
|
+
{"version":3,"file":"data-core.d.ts","sourceRoot":"","sources":["../../src/contracts/data-core.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IAChE,gBAAgB,EAAE,QAAQ,CAAA;IAC1B,UAAU,EAAE,QAAQ,CAAA;CACrB,CASC,CAAA;AACF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -5,38 +5,10 @@ import { Type, } from "@sinclair/typebox";
|
|
|
5
5
|
export const DataCoreSchema = Type.Object({
|
|
6
6
|
id: Type.String(),
|
|
7
7
|
tenantId: Type.String(),
|
|
8
|
+
tenant: Type.String(),
|
|
8
9
|
name: Type.String(),
|
|
9
10
|
description: Type.String(),
|
|
10
11
|
accessControl: Type.Union([Type.Literal("public"), Type.Literal("private")]),
|
|
11
12
|
deleteProtection: Type.Boolean(),
|
|
12
13
|
isDeleting: Type.Boolean(),
|
|
13
14
|
});
|
|
14
|
-
/**
|
|
15
|
-
* The schema for a data core v0
|
|
16
|
-
*/
|
|
17
|
-
export const DataCoreV0Schema = Type.Object({
|
|
18
|
-
id: Type.String(),
|
|
19
|
-
name: Type.String(),
|
|
20
|
-
description: Type.Union([Type.String(), Type.Null()]),
|
|
21
|
-
isPublic: Type.Boolean(),
|
|
22
|
-
configuration: Type.Optional(Type.Array(Type.Object({
|
|
23
|
-
key: Type.Literal("DELETE_PROTECTION_ENABLED"),
|
|
24
|
-
value: Type.Union([Type.Literal("true"), Type.Literal("false")]),
|
|
25
|
-
}), { minItems: 0, maxItems: 1 })),
|
|
26
|
-
truncating: Type.Boolean(),
|
|
27
|
-
deleting: Type.Boolean(),
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* Convert a data core v0 to a data core
|
|
31
|
-
*/
|
|
32
|
-
export const dataCoreV0ToDataCore = (dataCoreV0, organizationId) => {
|
|
33
|
-
return {
|
|
34
|
-
id: dataCoreV0.id,
|
|
35
|
-
tenantId: organizationId,
|
|
36
|
-
name: dataCoreV0.name,
|
|
37
|
-
description: dataCoreV0.description ?? "",
|
|
38
|
-
accessControl: dataCoreV0.isPublic ? "public" : "private",
|
|
39
|
-
deleteProtection: dataCoreV0.configuration?.[0]?.value === "true",
|
|
40
|
-
isDeleting: dataCoreV0.deleting,
|
|
41
|
-
};
|
|
42
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Static, type TBoolean, type
|
|
1
|
+
import { type Static, type TBoolean, type TObject, type TString } from "@sinclair/typebox";
|
|
2
2
|
/**
|
|
3
3
|
* The schema for an event type
|
|
4
4
|
*/
|
|
@@ -16,22 +16,4 @@ export declare const EventTypeSchema: TObject<{
|
|
|
16
16
|
* The type for an event type
|
|
17
17
|
*/
|
|
18
18
|
export type EventType = Static<typeof EventTypeSchema>;
|
|
19
|
-
/**
|
|
20
|
-
* The schema for an event type v0
|
|
21
|
-
*/
|
|
22
|
-
export declare const EventTypeV0Schema: TObject<{
|
|
23
|
-
id: TString;
|
|
24
|
-
name: TString;
|
|
25
|
-
description: TUnion<[TString, TNull]>;
|
|
26
|
-
truncating: TBoolean;
|
|
27
|
-
deleting: TBoolean;
|
|
28
|
-
}>;
|
|
29
|
-
/**
|
|
30
|
-
* The type for an event type v0
|
|
31
|
-
*/
|
|
32
|
-
export type EventTypeV0 = Static<typeof EventTypeV0Schema>;
|
|
33
|
-
/**
|
|
34
|
-
* Convert an event type v0 to an event type
|
|
35
|
-
*/
|
|
36
|
-
export declare const eventTypeV0ToEventType: (eventTypeV0: EventTypeV0, organizationId: string, dataCoreId: string, flowTypeId: string) => EventType;
|
|
37
19
|
//# sourceMappingURL=event-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,QAAQ,CAAA;IACtB,UAAU,EAAE,QAAQ,CAAA;CACrB,CASC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
2
|
/**
|
|
3
3
|
* The schema for an event type
|
|
4
4
|
*/
|
|
@@ -12,28 +12,3 @@ export const EventTypeSchema = Type.Object({
|
|
|
12
12
|
isTruncating: Type.Boolean(),
|
|
13
13
|
isDeleting: Type.Boolean(),
|
|
14
14
|
});
|
|
15
|
-
/**
|
|
16
|
-
* The schema for an event type v0
|
|
17
|
-
*/
|
|
18
|
-
export const EventTypeV0Schema = Type.Object({
|
|
19
|
-
id: Type.String(),
|
|
20
|
-
name: Type.String(),
|
|
21
|
-
description: Type.Union([Type.String(), Type.Null()]),
|
|
22
|
-
truncating: Type.Boolean(),
|
|
23
|
-
deleting: Type.Boolean(),
|
|
24
|
-
});
|
|
25
|
-
/**
|
|
26
|
-
* Convert an event type v0 to an event type
|
|
27
|
-
*/
|
|
28
|
-
export const eventTypeV0ToEventType = (eventTypeV0, organizationId, dataCoreId, flowTypeId) => {
|
|
29
|
-
return {
|
|
30
|
-
id: eventTypeV0.id,
|
|
31
|
-
tenantId: organizationId,
|
|
32
|
-
dataCoreId,
|
|
33
|
-
flowTypeId,
|
|
34
|
-
name: eventTypeV0.name,
|
|
35
|
-
description: eventTypeV0.description ?? "",
|
|
36
|
-
isTruncating: eventTypeV0.truncating,
|
|
37
|
-
isDeleting: eventTypeV0.deleting,
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Static, type TBoolean, type
|
|
1
|
+
import { type Static, type TBoolean, type TObject, type TString } from "@sinclair/typebox";
|
|
2
2
|
/**
|
|
3
3
|
* The schema for a flow type
|
|
4
4
|
*/
|
|
@@ -14,21 +14,4 @@ export declare const FlowTypeSchema: TObject<{
|
|
|
14
14
|
* The type for a flow type
|
|
15
15
|
*/
|
|
16
16
|
export type FlowType = Static<typeof FlowTypeSchema>;
|
|
17
|
-
/**
|
|
18
|
-
* The schema for a flow type v0
|
|
19
|
-
*/
|
|
20
|
-
export declare const FlowTypeV0Schema: TObject<{
|
|
21
|
-
id: TString;
|
|
22
|
-
aggregator: TString;
|
|
23
|
-
description: TUnion<[TString, TNull]>;
|
|
24
|
-
deleting: TBoolean;
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* The type for a flow type v0
|
|
28
|
-
*/
|
|
29
|
-
export type FlowTypeV0 = Static<typeof FlowTypeV0Schema>;
|
|
30
|
-
/**
|
|
31
|
-
* Convert a flow type v0 to a flow type
|
|
32
|
-
*/
|
|
33
|
-
export declare const flowTypeV0ToFlowType: (flowTypeV0: FlowTypeV0, organizationId: string, dataCoreId: string) => FlowType;
|
|
34
17
|
//# sourceMappingURL=flow-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-type.d.ts","sourceRoot":"","sources":["../../src/contracts/flow-type.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"flow-type.d.ts","sourceRoot":"","sources":["../../src/contracts/flow-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,QAAQ,CAAA;CACrB,CAOC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
2
|
/**
|
|
3
3
|
* The schema for a flow type
|
|
4
4
|
*/
|
|
@@ -10,25 +10,3 @@ export const FlowTypeSchema = Type.Object({
|
|
|
10
10
|
description: Type.String(),
|
|
11
11
|
isDeleting: Type.Boolean(),
|
|
12
12
|
});
|
|
13
|
-
/**
|
|
14
|
-
* The schema for a flow type v0
|
|
15
|
-
*/
|
|
16
|
-
export const FlowTypeV0Schema = Type.Object({
|
|
17
|
-
id: Type.String(),
|
|
18
|
-
aggregator: Type.String(),
|
|
19
|
-
description: Type.Union([Type.String(), Type.Null()]),
|
|
20
|
-
deleting: Type.Boolean(),
|
|
21
|
-
});
|
|
22
|
-
/**
|
|
23
|
-
* Convert a flow type v0 to a flow type
|
|
24
|
-
*/
|
|
25
|
-
export const flowTypeV0ToFlowType = (flowTypeV0, organizationId, dataCoreId) => {
|
|
26
|
-
return {
|
|
27
|
-
id: flowTypeV0.id,
|
|
28
|
-
tenantId: organizationId,
|
|
29
|
-
dataCoreId,
|
|
30
|
-
name: flowTypeV0.aggregator,
|
|
31
|
-
description: flowTypeV0.description ?? "",
|
|
32
|
-
isDeleting: flowTypeV0.deleting,
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare class ClientError extends Error {
|
|
5
5
|
readonly status: number;
|
|
6
|
+
readonly command: string;
|
|
6
7
|
readonly body?: unknown | undefined;
|
|
7
|
-
constructor(message: string, status: number, body?: unknown | undefined);
|
|
8
|
+
constructor(message: string, status: number, command: string, body?: unknown | undefined);
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=client-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-error.d.ts","sourceRoot":"","sources":["../../src/exceptions/client-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"client-error.d.ts","sourceRoot":"","sources":["../../src/exceptions/client-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;aAGlB,MAAM,EAAE,MAAM;aACd,OAAO,EAAE,MAAM;aACf,IAAI,CAAC,EAAE,OAAO;gBAH9B,OAAO,EAAE,MAAM,EACC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,OAAO,YAAA;CAIjC"}
|
|
@@ -2,14 +2,20 @@
|
|
|
2
2
|
* An error thrown when the client request fails
|
|
3
3
|
*/
|
|
4
4
|
export class ClientError extends Error {
|
|
5
|
-
constructor(message, status, body) {
|
|
6
|
-
super(
|
|
5
|
+
constructor(message, status, command, body) {
|
|
6
|
+
super(`${command} failed with ${status}: ${body ? JSON.stringify(body) : message}`);
|
|
7
7
|
Object.defineProperty(this, "status", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
configurable: true,
|
|
10
10
|
writable: true,
|
|
11
11
|
value: status
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(this, "command", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: command
|
|
18
|
+
});
|
|
13
19
|
Object.defineProperty(this, "body", {
|
|
14
20
|
enumerable: true,
|
|
15
21
|
configurable: true,
|
package/esm/mod.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./commands/index.js";
|
|
2
2
|
export * from "./common/command.js";
|
|
3
|
+
export * from "./common/command-custom.js";
|
|
4
|
+
export * from "./common/command-graphql.js";
|
|
3
5
|
export * from "./common/flowcore-client.js";
|
|
4
6
|
export * from "./common/notification-client.js";
|
|
5
7
|
export * from "./contracts/index.js";
|
package/esm/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kCAAkC,CAAA"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kCAAkC,CAAA"}
|
package/esm/mod.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./commands/index.js";
|
|
2
2
|
export * from "./common/command.js";
|
|
3
|
+
export * from "./common/command-custom.js";
|
|
4
|
+
export * from "./common/command-graphql.js";
|
|
3
5
|
export * from "./common/flowcore-client.js";
|
|
4
6
|
export * from "./common/notification-client.js";
|
|
5
7
|
export * from "./contracts/index.js";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.create.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"api-key.create.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAIrE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAA;CACb;AA4BD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;IACpG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAC9B,WAAW,EAAE,OAAO,GACnB,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;IAiB7B;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOrD;;OAEG;cACsB,eAAe,CACtC,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GACnC,OAAO,CAAC,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAevC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ApiKeyCreateCommand = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const
|
|
5
|
+
const command_graphql_js_1 = require("../../common/command-graphql.js");
|
|
6
6
|
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
7
|
const api_key_list_js_1 = require("./api-key.list.js");
|
|
8
8
|
const command_error_js_1 = require("../../exceptions/command-error.js");
|
|
@@ -29,7 +29,7 @@ const responseSchema = typebox_1.Type.Object({
|
|
|
29
29
|
/**
|
|
30
30
|
* Create an API key
|
|
31
31
|
*/
|
|
32
|
-
class ApiKeyCreateCommand extends
|
|
32
|
+
class ApiKeyCreateCommand extends command_graphql_js_1.GraphQlCommand {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"api-key.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAIhE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAyBD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACjF;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO;IAW/D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ApiKeyDeleteCommand = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const
|
|
5
|
+
const command_graphql_js_1 = require("../../common/command-graphql.js");
|
|
6
6
|
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
7
|
const command_error_js_1 = require("../../exceptions/command-error.js");
|
|
8
8
|
const graphQlQueryById = `
|
|
@@ -25,7 +25,7 @@ const responseSchema = typebox_1.Type.Object({
|
|
|
25
25
|
/**
|
|
26
26
|
* Delete an API key
|
|
27
27
|
*/
|
|
28
|
-
class ApiKeyDeleteCommand extends
|
|
28
|
+
class ApiKeyDeleteCommand extends command_graphql_js_1.GraphQlCommand {
|
|
29
29
|
constructor() {
|
|
30
30
|
super(...arguments);
|
|
31
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.list.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"api-key.list.d.ts","sourceRoot":"","sources":["../../../src/commands/api-key/api-key.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AA0BD;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC9E;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,EAAE;IAKhE;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ApiKeyListCommand = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const
|
|
5
|
+
const command_graphql_js_1 = require("../../common/command-graphql.js");
|
|
6
6
|
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
7
|
const graphQlQueryById = `
|
|
8
8
|
query FLOWCORE_SDK_API_KEY_LIST($tenantId: ID!) {
|
|
@@ -29,7 +29,7 @@ const responseSchema = typebox_1.Type.Object({
|
|
|
29
29
|
/**
|
|
30
30
|
* List api keys
|
|
31
31
|
*/
|
|
32
|
-
class ApiKeyListCommand extends
|
|
32
|
+
class ApiKeyListCommand extends command_graphql_js_1.GraphQlCommand {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
35
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
1
2
|
import { type ContainerRegistryDelete } from "../../contracts/container.js";
|
|
2
|
-
import { Command } from "../../mod.js";
|
|
3
3
|
export interface ContainerRegistryDeleteInput {
|
|
4
4
|
/** The id of the new container-registry */
|
|
5
5
|
containerId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-registry.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"container-registry.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,uBAAuB,EAAiC,MAAM,8BAA8B,CAAA;AAG1G,MAAM,WAAW,4BAA4B;IAC3C,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,4BAA4B,EAAE,uBAAuB,CAAC;cAC7F,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,uBAAuB;CAG7E"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContainerRegistryDeleteCommand = void 0;
|
|
4
|
+
const command_js_1 = require("../../common/command.js");
|
|
4
5
|
const container_js_1 = require("../../contracts/container.js");
|
|
5
|
-
const
|
|
6
|
-
class ContainerRegistryDeleteCommand extends
|
|
6
|
+
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
|
+
class ContainerRegistryDeleteCommand extends command_js_1.Command {
|
|
7
8
|
getMethod() {
|
|
8
9
|
return "DELETE";
|
|
9
10
|
}
|
|
@@ -23,7 +24,7 @@ class ContainerRegistryDeleteCommand extends mod_js_1.Command {
|
|
|
23
24
|
* Parse the response
|
|
24
25
|
*/
|
|
25
26
|
parseResponse(response) {
|
|
26
|
-
return (0,
|
|
27
|
+
return (0, parse_response_helper_js_1.parseResponseHelper)(container_js_1.ContainerRegistryDeleteSchema, response);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
exports.ContainerRegistryDeleteCommand = ContainerRegistryDeleteCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-registry.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"container-registry.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD,MAAM,WAAW,2BAA2B;IAC1C,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,6BAA8B,SAAQ,OAAO,CAAC,2BAA2B,EAAE,iBAAiB,CAAC;cACrF,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,iBAAiB;CAGvE"}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContainerRegistryFetchCommand = void 0;
|
|
4
4
|
const container_js_1 = require("../../contracts/container.js");
|
|
5
|
-
const
|
|
6
|
-
|
|
5
|
+
const command_js_1 = require("../../common/command.js");
|
|
6
|
+
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
|
+
class ContainerRegistryFetchCommand extends command_js_1.Command {
|
|
7
8
|
getMethod() {
|
|
8
9
|
return "GET";
|
|
9
10
|
}
|
|
@@ -23,7 +24,7 @@ class ContainerRegistryFetchCommand extends mod_js_1.Command {
|
|
|
23
24
|
* Parse the response
|
|
24
25
|
*/
|
|
25
26
|
parseResponse(response) {
|
|
26
|
-
return (0,
|
|
27
|
+
return (0, parse_response_helper_js_1.parseResponseHelper)(container_js_1.ContainerRegistrySchema, response);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
exports.ContainerRegistryFetchCommand = ContainerRegistryFetchCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-registry.list.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"container-registry.list.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,qBAAqB,EAA+B,MAAM,8BAA8B,CAAA;AAGtG,MAAM,WAAW,iCAAiC;IAChD,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,0BAA2B,SAAQ,OAAO,CAAC,iCAAiC,EAAE,qBAAqB,CAAC;cAC5F,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAGvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,qBAAqB;CAG3E"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContainerRegistListCommand = void 0;
|
|
4
|
+
const command_js_1 = require("../../common/command.js");
|
|
4
5
|
const container_js_1 = require("../../contracts/container.js");
|
|
5
|
-
const
|
|
6
|
-
class ContainerRegistListCommand extends
|
|
6
|
+
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
|
+
class ContainerRegistListCommand extends command_js_1.Command {
|
|
7
8
|
getMethod() {
|
|
8
9
|
return "GET";
|
|
9
10
|
}
|
|
@@ -23,7 +24,7 @@ class ContainerRegistListCommand extends mod_js_1.Command {
|
|
|
23
24
|
* Parse the response
|
|
24
25
|
*/
|
|
25
26
|
parseResponse(response) {
|
|
26
|
-
return (0,
|
|
27
|
+
return (0, parse_response_helper_js_1.parseResponseHelper)(container_js_1.ContainerRegistryListSchema, response);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
exports.ContainerRegistListCommand = ContainerRegistListCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-core.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"data-core.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAKhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AA4BD;;;GAGG;AACH,qBAAa,4BAA6B,SAAQ,cAAc,CAAC,0BAA0B,EAAE,OAAO,CAAC;IACnG;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;gBACS,KAAK,EAAE,0BAA0B;IAO7C;;OAEG;cACgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAW5D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOrD;;OAEG;cACsB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAkBtG"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataCoreDeleteRequestCommand = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const
|
|
5
|
+
const command_graphql_js_1 = require("../../common/command-graphql.js");
|
|
6
6
|
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
7
|
const command_error_js_1 = require("../../exceptions/command-error.js");
|
|
8
8
|
const not_found_js_1 = require("../../exceptions/not-found.js");
|
|
@@ -35,7 +35,7 @@ const responseSchema = typebox_1.Type.Object({
|
|
|
35
35
|
* Request to delete a data core
|
|
36
36
|
* @deprecated Use `DataCoreRequestDeleteCommand` instead
|
|
37
37
|
*/
|
|
38
|
-
class DataCoreDeleteRequestCommand extends
|
|
38
|
+
class DataCoreDeleteRequestCommand extends command_graphql_js_1.GraphQlCommand {
|
|
39
39
|
/**
|
|
40
40
|
* Create a new data core delete request command
|
|
41
41
|
*/
|
|
@@ -7,17 +7,34 @@ import type { ClientError } from "../../exceptions/client-error.js";
|
|
|
7
7
|
export interface DataCoreFetchByIdInput {
|
|
8
8
|
/** The id of the data core */
|
|
9
9
|
dataCoreId: string;
|
|
10
|
-
/** The name of the data core */
|
|
11
|
-
dataCore?: never;
|
|
12
10
|
/** The tenant id */
|
|
13
11
|
tenantId?: never;
|
|
12
|
+
/** The tenant */
|
|
13
|
+
tenant?: never;
|
|
14
|
+
/** The name of the data core */
|
|
15
|
+
dataCore?: never;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
|
-
* The input for the data core fetch by name command
|
|
18
|
+
* The input for the data core fetch by name and tenant id command
|
|
17
19
|
*/
|
|
18
|
-
export interface
|
|
20
|
+
export interface DataCoreFetchByNameAndTenantIdInput {
|
|
19
21
|
/** The tenant id */
|
|
20
22
|
tenantId: string;
|
|
23
|
+
/** The tenant */
|
|
24
|
+
tenant?: never;
|
|
25
|
+
/** The name of the data core */
|
|
26
|
+
dataCore: string;
|
|
27
|
+
/** The id of the data core */
|
|
28
|
+
dataCoreId?: never;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The input for the data core fetch by name and tenant command
|
|
32
|
+
*/
|
|
33
|
+
export interface DataCoreFetchByNameAndTenantInput {
|
|
34
|
+
/** The tenant id */
|
|
35
|
+
tenantId?: never;
|
|
36
|
+
/** The tenant */
|
|
37
|
+
tenant: string;
|
|
21
38
|
/** The name of the data core */
|
|
22
39
|
dataCore: string;
|
|
23
40
|
/** The id of the data core */
|
|
@@ -26,7 +43,7 @@ export interface DataCoreFetchByNameInput {
|
|
|
26
43
|
/**
|
|
27
44
|
* The input for the data core fetch command
|
|
28
45
|
*/
|
|
29
|
-
export type DataCoreFetchInput = DataCoreFetchByIdInput |
|
|
46
|
+
export type DataCoreFetchInput = DataCoreFetchByIdInput | DataCoreFetchByNameAndTenantIdInput | DataCoreFetchByNameAndTenantInput;
|
|
30
47
|
/**
|
|
31
48
|
* Fetch a data core
|
|
32
49
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-core.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,
|
|
1
|
+
{"version":3,"file":"data-core.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/data-core/data-core.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,iBAAiB;IACjB,MAAM,CAAC,EAAE,KAAK,CAAA;IACd,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,iBAAiB;IACjB,MAAM,CAAC,EAAE,KAAK,CAAA;IACd,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;CACnB;AAgBD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,sBAAsB,GACtB,mCAAmC,GACnC,iCAAiC,CAAA;AAErC;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,kBAAkB,EAAE,QAAQ,CAAC;IAC7E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAepC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;IAgBhE;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAY/D"}
|