@flowcore/sdk 1.11.10 → 1.12.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/container-registry/container-registry.create.d.ts +39 -0
- package/esm/commands/container-registry/container-registry.create.d.ts.map +1 -0
- package/esm/commands/container-registry/container-registry.create.js +29 -0
- package/esm/commands/container-registry/container-registry.delete.d.ts +22 -0
- package/esm/commands/container-registry/container-registry.delete.d.ts.map +1 -0
- package/esm/commands/container-registry/container-registry.delete.js +26 -0
- package/esm/commands/container-registry/container-registry.fetch.d.ts +22 -0
- package/esm/commands/container-registry/container-registry.fetch.d.ts.map +1 -0
- package/esm/commands/container-registry/container-registry.fetch.js +25 -0
- package/esm/commands/container-registry/container-registry.list.d.ts +22 -0
- package/esm/commands/container-registry/container-registry.list.d.ts.map +1 -0
- package/esm/commands/container-registry/container-registry.list.js +25 -0
- package/esm/commands/container-registry/container-registry.update.d.ts +33 -0
- package/esm/commands/container-registry/container-registry.update.d.ts.map +1 -0
- package/esm/commands/container-registry/container-registry.update.js +27 -0
- package/esm/commands/index.d.ts +5 -0
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +6 -0
- package/esm/commands/tenant/tenant.fetch.d.ts +15 -6
- package/esm/commands/tenant/tenant.fetch.d.ts.map +1 -1
- package/esm/commands/tenant/tenant.fetch.js +32 -63
- package/esm/commands/tenant/tenant.list.d.ts +11 -3
- package/esm/commands/tenant/tenant.list.d.ts.map +1 -1
- package/esm/commands/tenant/tenant.list.js +12 -3
- package/esm/contracts/container.d.ts +23 -0
- package/esm/contracts/container.d.ts.map +1 -0
- package/esm/contracts/container.js +16 -0
- package/esm/contracts/tenant.d.ts +19 -26
- package/esm/contracts/tenant.d.ts.map +1 -1
- package/esm/contracts/tenant.js +19 -24
- package/package.json +1 -1
- package/script/commands/container-registry/container-registry.create.d.ts +39 -0
- package/script/commands/container-registry/container-registry.create.d.ts.map +1 -0
- package/script/commands/container-registry/container-registry.create.js +33 -0
- package/script/commands/container-registry/container-registry.delete.d.ts +22 -0
- package/script/commands/container-registry/container-registry.delete.d.ts.map +1 -0
- package/script/commands/container-registry/container-registry.delete.js +30 -0
- package/script/commands/container-registry/container-registry.fetch.d.ts +22 -0
- package/script/commands/container-registry/container-registry.fetch.d.ts.map +1 -0
- package/script/commands/container-registry/container-registry.fetch.js +29 -0
- package/script/commands/container-registry/container-registry.list.d.ts +22 -0
- package/script/commands/container-registry/container-registry.list.d.ts.map +1 -0
- package/script/commands/container-registry/container-registry.list.js +29 -0
- package/script/commands/container-registry/container-registry.update.d.ts +33 -0
- package/script/commands/container-registry/container-registry.update.d.ts.map +1 -0
- package/script/commands/container-registry/container-registry.update.js +31 -0
- package/script/commands/index.d.ts +5 -0
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +6 -0
- package/script/commands/tenant/tenant.fetch.d.ts +15 -6
- package/script/commands/tenant/tenant.fetch.d.ts.map +1 -1
- package/script/commands/tenant/tenant.fetch.js +31 -62
- package/script/commands/tenant/tenant.list.d.ts +11 -3
- package/script/commands/tenant/tenant.list.d.ts.map +1 -1
- package/script/commands/tenant/tenant.list.js +12 -3
- package/script/contracts/container.d.ts +23 -0
- package/script/contracts/container.d.ts.map +1 -0
- package/script/contracts/container.js +19 -0
- package/script/contracts/tenant.d.ts +19 -26
- package/script/contracts/tenant.d.ts.map +1 -1
- package/script/contracts/tenant.js +19 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Static, type TObject, type TString } from "@sinclair/typebox";
|
|
1
|
+
import { type Static, type TBoolean, type TLiteral, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
|
|
2
2
|
interface TenantById {
|
|
3
3
|
tenantId: string;
|
|
4
4
|
tenant?: never;
|
|
@@ -16,35 +16,28 @@ export declare const TenantSchema: TObject<{
|
|
|
16
16
|
name: TString;
|
|
17
17
|
displayName: TString;
|
|
18
18
|
description: TString;
|
|
19
|
-
|
|
19
|
+
websiteUrl: TString;
|
|
20
|
+
isDedicated: TBoolean;
|
|
21
|
+
dedicated: TUnion<[
|
|
22
|
+
TNull,
|
|
23
|
+
TObject<{
|
|
24
|
+
status: TUnion<[
|
|
25
|
+
TLiteral<"ready">,
|
|
26
|
+
TLiteral<"degraded">,
|
|
27
|
+
TLiteral<"offline">
|
|
28
|
+
]>;
|
|
29
|
+
configuration: TObject<{
|
|
30
|
+
webhookUrl: TString;
|
|
31
|
+
eventSourceUrl: TString;
|
|
32
|
+
deleteManagerUrl: TString;
|
|
33
|
+
configurationRepoUrl: TString;
|
|
34
|
+
}>;
|
|
35
|
+
}>
|
|
36
|
+
]>;
|
|
20
37
|
}>;
|
|
21
38
|
/**
|
|
22
39
|
* The type for a tenant
|
|
23
40
|
*/
|
|
24
41
|
export type Tenant = Static<typeof TenantSchema>;
|
|
25
|
-
/**
|
|
26
|
-
* The type for a tenant with a link type
|
|
27
|
-
*/
|
|
28
|
-
export type TenantWithLinkType = Tenant & {
|
|
29
|
-
linkType: "OWNER" | "COLLABORATOR";
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* The schema for a tenant v0
|
|
33
|
-
*/
|
|
34
|
-
export declare const TenantV0Schema: TObject<{
|
|
35
|
-
id: TString;
|
|
36
|
-
org: TString;
|
|
37
|
-
displayName: TString;
|
|
38
|
-
description: TString;
|
|
39
|
-
website: TString;
|
|
40
|
-
}>;
|
|
41
|
-
/**
|
|
42
|
-
* The type for a tenant v0
|
|
43
|
-
*/
|
|
44
|
-
export type TenantV0 = Static<typeof TenantV0Schema>;
|
|
45
|
-
/**
|
|
46
|
-
* Convert a data core v0 to a data core
|
|
47
|
-
*/
|
|
48
|
-
export declare const tenantV0ToTenant: (tenantV0: TenantV0) => Tenant;
|
|
49
42
|
export {};
|
|
50
43
|
//# sourceMappingURL=tenant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,KAAK,CAAA;CACf;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC;IACjC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,QAAQ,CAAA;IACrB,SAAS,EAAE,MAAM,CAAC;QAChB,KAAK;QACL,OAAO,CAAC;YACN,MAAM,EAAE,MAAM,CAAC;gBACb,QAAQ,CAAC,OAAO,CAAC;gBACjB,QAAQ,CAAC,UAAU,CAAC;gBACpB,QAAQ,CAAC,SAAS,CAAC;aACpB,CAAC,CAAA;YACF,aAAa,EAAE,OAAO,CAAC;gBACrB,UAAU,EAAE,OAAO,CAAA;gBACnB,cAAc,EAAE,OAAO,CAAA;gBACvB,gBAAgB,EAAE,OAAO,CAAA;gBACzB,oBAAoB,EAAE,OAAO,CAAA;aAC9B,CAAC,CAAA;SACH,CAAC;KACH,CAAC,CAAA;CACH,CAuBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
package/esm/contracts/tenant.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type } from "@sinclair/typebox";
|
|
1
|
+
import { Type, } from "@sinclair/typebox";
|
|
2
2
|
/**
|
|
3
3
|
* The schema for a tenant
|
|
4
4
|
*/
|
|
@@ -7,27 +7,22 @@ export const TenantSchema = Type.Object({
|
|
|
7
7
|
name: Type.String(),
|
|
8
8
|
displayName: Type.String(),
|
|
9
9
|
description: Type.String(),
|
|
10
|
-
|
|
10
|
+
websiteUrl: Type.String(),
|
|
11
|
+
isDedicated: Type.Boolean(),
|
|
12
|
+
dedicated: Type.Union([
|
|
13
|
+
Type.Null(),
|
|
14
|
+
Type.Object({
|
|
15
|
+
status: Type.Union([
|
|
16
|
+
Type.Literal("ready"),
|
|
17
|
+
Type.Literal("degraded"),
|
|
18
|
+
Type.Literal("offline"),
|
|
19
|
+
]),
|
|
20
|
+
configuration: Type.Object({
|
|
21
|
+
webhookUrl: Type.String(),
|
|
22
|
+
eventSourceUrl: Type.String(),
|
|
23
|
+
deleteManagerUrl: Type.String(),
|
|
24
|
+
configurationRepoUrl: Type.String(),
|
|
25
|
+
}),
|
|
26
|
+
}),
|
|
27
|
+
]),
|
|
11
28
|
});
|
|
12
|
-
/**
|
|
13
|
-
* The schema for a tenant v0
|
|
14
|
-
*/
|
|
15
|
-
export const TenantV0Schema = Type.Object({
|
|
16
|
-
id: Type.String(),
|
|
17
|
-
org: Type.String(),
|
|
18
|
-
displayName: Type.String(),
|
|
19
|
-
description: Type.String(),
|
|
20
|
-
website: Type.String(),
|
|
21
|
-
});
|
|
22
|
-
/**
|
|
23
|
-
* Convert a data core v0 to a data core
|
|
24
|
-
*/
|
|
25
|
-
export const tenantV0ToTenant = (tenantV0) => {
|
|
26
|
-
return {
|
|
27
|
-
id: tenantV0.id,
|
|
28
|
-
name: tenantV0.org,
|
|
29
|
-
displayName: tenantV0.displayName,
|
|
30
|
-
description: tenantV0.description,
|
|
31
|
-
website: tenantV0.website,
|
|
32
|
-
};
|
|
33
|
-
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import type { ContainerRegistryCreate } from "../../contracts/container.js";
|
|
3
|
+
export interface ContainerRegistryCreateInput {
|
|
4
|
+
/** The tenant id to add the container registry to*/
|
|
5
|
+
tenantId: string;
|
|
6
|
+
/** The name of the container registry */
|
|
7
|
+
name: string;
|
|
8
|
+
/**A description of the container registry */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** The URL of the container registry */
|
|
11
|
+
registryUrl: string;
|
|
12
|
+
/** The username to authenticate with the container registry */
|
|
13
|
+
username?: string;
|
|
14
|
+
/** The password to authenticate with the container registry */
|
|
15
|
+
password?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ContainerRegistryCreateOutput {
|
|
18
|
+
/** The id of the new container-registry */
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class ContainerRegistryCreateCommand extends Command<ContainerRegistryCreateInput, ContainerRegistryCreate> {
|
|
22
|
+
/**
|
|
23
|
+
* GET the method
|
|
24
|
+
*/
|
|
25
|
+
protected getMethod(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Get the base url
|
|
28
|
+
*/
|
|
29
|
+
protected getBaseUrl(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Get the path
|
|
32
|
+
*/
|
|
33
|
+
protected getPath(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Parse the response
|
|
36
|
+
*/
|
|
37
|
+
protected parseResponse(response: unknown): ContainerRegistryCreate;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=container-registry.create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-registry.create.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAG3E,MAAM,WAAW,4BAA4B;IAC3C,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAA;IAChB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,6BAA6B;IAC5C,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAA;CACX;AAED,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,4BAA4B,EAAE,uBAAuB,CAAC;IAChH;;OAEG;cACgB,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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContainerRegistryCreateCommand = void 0;
|
|
4
|
+
const command_js_1 = require("../../common/command.js");
|
|
5
|
+
const container_js_1 = require("../../contracts/container.js");
|
|
6
|
+
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
|
+
class ContainerRegistryCreateCommand extends command_js_1.Command {
|
|
8
|
+
/**
|
|
9
|
+
* GET the method
|
|
10
|
+
*/
|
|
11
|
+
getMethod() {
|
|
12
|
+
return "POST";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get the base url
|
|
16
|
+
*/
|
|
17
|
+
getBaseUrl() {
|
|
18
|
+
return "https://registry.api.flowcore.io";
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Get the path
|
|
22
|
+
*/
|
|
23
|
+
getPath() {
|
|
24
|
+
return `/api/v1/container`;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Parse the response
|
|
28
|
+
*/
|
|
29
|
+
parseResponse(response) {
|
|
30
|
+
return (0, parse_response_helper_js_1.parseResponseHelper)(container_js_1.ContainerRegistryCreateSchema, response);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ContainerRegistryCreateCommand = ContainerRegistryCreateCommand;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ContainerRegistryDelete } from "../../contracts/container.js";
|
|
2
|
+
import { Command } from "../../mod.js";
|
|
3
|
+
export interface ContainerRegistryDeleteInput {
|
|
4
|
+
/** The id of the new container-registry */
|
|
5
|
+
containerId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ContainerRegistryDeleteCommand extends Command<ContainerRegistryDeleteInput, ContainerRegistryDelete> {
|
|
8
|
+
protected getMethod(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Get the base url
|
|
11
|
+
*/
|
|
12
|
+
protected getBaseUrl(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Get the path
|
|
15
|
+
*/
|
|
16
|
+
protected getPath(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Parse the response
|
|
19
|
+
*/
|
|
20
|
+
protected parseResponse(response: unknown): ContainerRegistryDelete;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=container-registry.delete.d.ts.map
|
|
@@ -0,0 +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,KAAK,uBAAuB,EAAiC,MAAM,8BAA8B,CAAA;AAC1G,OAAO,EAAE,OAAO,EAAuB,MAAM,cAAc,CAAA;AAE3D,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;CAI7E"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContainerRegistryDeleteCommand = void 0;
|
|
4
|
+
const container_js_1 = require("../../contracts/container.js");
|
|
5
|
+
const mod_js_1 = require("../../mod.js");
|
|
6
|
+
class ContainerRegistryDeleteCommand extends mod_js_1.Command {
|
|
7
|
+
getMethod() {
|
|
8
|
+
return "DELETE";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get the base url
|
|
12
|
+
*/
|
|
13
|
+
getBaseUrl() {
|
|
14
|
+
return "https://registry.api.flowcore.io";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get the path
|
|
18
|
+
*/
|
|
19
|
+
getPath() {
|
|
20
|
+
return `/api/v1/container/${this.input.containerId}`;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Parse the response
|
|
24
|
+
*/
|
|
25
|
+
parseResponse(response) {
|
|
26
|
+
console.log(response);
|
|
27
|
+
return (0, mod_js_1.parseResponseHelper)(container_js_1.ContainerRegistryDeleteSchema, response);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ContainerRegistryDeleteCommand = ContainerRegistryDeleteCommand;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ContainerRegistry } from "../../contracts/container.js";
|
|
2
|
+
import { Command } from "../../mod.js";
|
|
3
|
+
export interface ContainerRegistryFetchInput {
|
|
4
|
+
/** The id of container */
|
|
5
|
+
containerId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ContainerRegistryFetchCommand extends Command<ContainerRegistryFetchInput, ContainerRegistry> {
|
|
8
|
+
protected getMethod(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Get the base url
|
|
11
|
+
*/
|
|
12
|
+
protected getBaseUrl(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Get the path
|
|
15
|
+
*/
|
|
16
|
+
protected getPath(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Parse the response
|
|
19
|
+
*/
|
|
20
|
+
protected parseResponse(response: unknown): ContainerRegistry;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=container-registry.fetch.d.ts.map
|
|
@@ -0,0 +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,EAAuB,MAAM,cAAc,CAAA;AAE3D,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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContainerRegistryFetchCommand = void 0;
|
|
4
|
+
const container_js_1 = require("../../contracts/container.js");
|
|
5
|
+
const mod_js_1 = require("../../mod.js");
|
|
6
|
+
class ContainerRegistryFetchCommand extends mod_js_1.Command {
|
|
7
|
+
getMethod() {
|
|
8
|
+
return "GET";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get the base url
|
|
12
|
+
*/
|
|
13
|
+
getBaseUrl() {
|
|
14
|
+
return "https://registry.api.flowcore.io";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get the path
|
|
18
|
+
*/
|
|
19
|
+
getPath() {
|
|
20
|
+
return `/api/v1/container/${this.input.containerId}`;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Parse the response
|
|
24
|
+
*/
|
|
25
|
+
parseResponse(response) {
|
|
26
|
+
return (0, mod_js_1.parseResponseHelper)(container_js_1.ContainerRegistrySchema, response);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.ContainerRegistryFetchCommand = ContainerRegistryFetchCommand;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ContainerRegistryList } from "../../contracts/container.js";
|
|
2
|
+
import { Command } from "../../mod.js";
|
|
3
|
+
export interface ContainerRegistryFetchTenantInput {
|
|
4
|
+
/** The tenant id */
|
|
5
|
+
tenantId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ContainerRegistListCommand extends Command<ContainerRegistryFetchTenantInput, ContainerRegistryList> {
|
|
8
|
+
protected getMethod(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Get the base url
|
|
11
|
+
*/
|
|
12
|
+
protected getBaseUrl(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Get the path
|
|
15
|
+
*/
|
|
16
|
+
protected getPath(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Parse the response
|
|
19
|
+
*/
|
|
20
|
+
protected parseResponse(response: unknown): ContainerRegistryList;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=container-registry.list.d.ts.map
|
|
@@ -0,0 +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,KAAK,qBAAqB,EAA+B,MAAM,8BAA8B,CAAA;AACtG,OAAO,EAAE,OAAO,EAAuB,MAAM,cAAc,CAAA;AAE3D,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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContainerRegistListCommand = void 0;
|
|
4
|
+
const container_js_1 = require("../../contracts/container.js");
|
|
5
|
+
const mod_js_1 = require("../../mod.js");
|
|
6
|
+
class ContainerRegistListCommand extends mod_js_1.Command {
|
|
7
|
+
getMethod() {
|
|
8
|
+
return "GET";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get the base url
|
|
12
|
+
*/
|
|
13
|
+
getBaseUrl() {
|
|
14
|
+
return "https://registry.api.flowcore.io";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get the path
|
|
18
|
+
*/
|
|
19
|
+
getPath() {
|
|
20
|
+
return `/api/v1/container/tenants/${this.input.tenantId}`;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Parse the response
|
|
24
|
+
*/
|
|
25
|
+
parseResponse(response) {
|
|
26
|
+
return (0, mod_js_1.parseResponseHelper)(container_js_1.ContainerRegistryListSchema, response);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.ContainerRegistListCommand = ContainerRegistListCommand;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type ContainerRegistry } from "../../contracts/container.js";
|
|
3
|
+
interface ContainerRegustryUpdateInput {
|
|
4
|
+
/** The id of the container-registry */
|
|
5
|
+
containerId: string;
|
|
6
|
+
/** The name of the container-registry */
|
|
7
|
+
name?: string;
|
|
8
|
+
/** The description */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** The registry url for the container */
|
|
11
|
+
registryUrl?: string;
|
|
12
|
+
/** The username for authentication */
|
|
13
|
+
username?: string;
|
|
14
|
+
/** The password for authentication */
|
|
15
|
+
password?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class ContainerRegistryUpdateCommand extends Command<ContainerRegustryUpdateInput, ContainerRegistry> {
|
|
18
|
+
protected getMethod(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Get the base url
|
|
21
|
+
*/
|
|
22
|
+
protected getBaseUrl(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Get the path
|
|
25
|
+
*/
|
|
26
|
+
protected getPath(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Parse the response
|
|
29
|
+
*/
|
|
30
|
+
protected parseResponse(response: unknown): ContainerRegistry;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=container-registry.update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-registry.update.d.ts","sourceRoot":"","sources":["../../../src/commands/container-registry/container-registry.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,8BAA8B,CAAA;AAG9F,UAAU,4BAA4B;IACpC,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sBAAsB;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,4BAA4B,EAAE,iBAAiB,CAAC;cACvF,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;CAIvE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContainerRegistryUpdateCommand = void 0;
|
|
4
|
+
const command_js_1 = require("../../common/command.js");
|
|
5
|
+
const container_js_1 = require("../../contracts/container.js");
|
|
6
|
+
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
7
|
+
class ContainerRegistryUpdateCommand extends command_js_1.Command {
|
|
8
|
+
getMethod() {
|
|
9
|
+
return "PATCH";
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get the base url
|
|
13
|
+
*/
|
|
14
|
+
getBaseUrl() {
|
|
15
|
+
return "https://registry.api.flowcore.io";
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get the path
|
|
19
|
+
*/
|
|
20
|
+
getPath() {
|
|
21
|
+
return `/api/v1/container/${this.input.containerId}`;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Parse the response
|
|
25
|
+
*/
|
|
26
|
+
parseResponse(response) {
|
|
27
|
+
//console.log(response)
|
|
28
|
+
return (0, parse_response_helper_js_1.parseResponseHelper)(container_js_1.ContainerRegistrySchema, response);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ContainerRegistryUpdateCommand = ContainerRegistryUpdateCommand;
|
|
@@ -30,4 +30,9 @@ export * from "./event-type/event-type.delete-request.js";
|
|
|
30
30
|
export * from "./event-type/event-type.truncate-request.js";
|
|
31
31
|
export * from "./events/events.fetch.js";
|
|
32
32
|
export * from "./events/events.fetch-time-buckets-by-names.js";
|
|
33
|
+
export * from "./container-registry/container-registry.create.js";
|
|
34
|
+
export * from "./container-registry/container-registry.fetch.js";
|
|
35
|
+
export * from "./container-registry/container-registry.list.js";
|
|
36
|
+
export * from "./container-registry/container-registry.update.js";
|
|
37
|
+
export * from "./container-registry/container-registry.delete.js";
|
|
33
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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;AAGvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AAGzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAG7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AAGvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AAGvD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAA;AACjD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAG3D,cAAc,0BAA0B,CAAA;AACxC,cAAc,gDAAgD,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AAGzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAG7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AAGvD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AAGvD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAA;AACjD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAG3D,cAAc,0BAA0B,CAAA;AACxC,cAAc,gDAAgD,CAAA;AAG9D,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA"}
|
package/script/commands/index.js
CHANGED
|
@@ -54,3 +54,9 @@ __exportStar(require("./event-type/event-type.truncate-request.js"), exports);
|
|
|
54
54
|
// Events
|
|
55
55
|
__exportStar(require("./events/events.fetch.js"), exports);
|
|
56
56
|
__exportStar(require("./events/events.fetch-time-buckets-by-names.js"), exports);
|
|
57
|
+
//Container
|
|
58
|
+
__exportStar(require("./container-registry/container-registry.create.js"), exports);
|
|
59
|
+
__exportStar(require("./container-registry/container-registry.fetch.js"), exports);
|
|
60
|
+
__exportStar(require("./container-registry/container-registry.list.js"), exports);
|
|
61
|
+
__exportStar(require("./container-registry/container-registry.update.js"), exports);
|
|
62
|
+
__exportStar(require("./container-registry/container-registry.delete.js"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
2
3
|
import { type Tenant } from "../../contracts/tenant.js";
|
|
3
4
|
/**
|
|
4
5
|
* The input for the tenant fetch by id command
|
|
@@ -25,18 +26,26 @@ export type TenantFetchInput = TenantFetchByIdInput | TenantFetchByNameInput;
|
|
|
25
26
|
/**
|
|
26
27
|
* Fetch a tenant
|
|
27
28
|
*/
|
|
28
|
-
export declare class TenantFetchCommand extends
|
|
29
|
+
export declare class TenantFetchCommand extends Command<TenantFetchInput, Tenant> {
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* Get the method
|
|
31
32
|
*/
|
|
32
|
-
protected
|
|
33
|
+
protected getMethod(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Get the base url
|
|
36
|
+
*/
|
|
37
|
+
protected getBaseUrl(): string;
|
|
38
|
+
/**
|
|
39
|
+
* Get the path
|
|
40
|
+
*/
|
|
41
|
+
protected getPath(): string;
|
|
33
42
|
/**
|
|
34
43
|
* Parse the response
|
|
35
44
|
*/
|
|
36
45
|
protected parseResponse(rawResponse: unknown): Tenant;
|
|
37
46
|
/**
|
|
38
|
-
*
|
|
47
|
+
* Handle the client error
|
|
39
48
|
*/
|
|
40
|
-
protected
|
|
49
|
+
protected handleClientError(error: ClientError): void;
|
|
41
50
|
}
|
|
42
51
|
//# sourceMappingURL=tenant.fetch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/tenant/tenant.fetch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tenant.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/tenant/tenant.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,2BAA2B,CAAA;AAErE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,sBAAsB,CAAA;AAE5E;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACvE;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAOpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM;IAK9D;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAQ/D"}
|
|
@@ -1,83 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TenantFetchCommand = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
4
|
const command_js_1 = require("../../common/command.js");
|
|
6
|
-
const tenant_js_1 = require("../../contracts/tenant.js");
|
|
7
5
|
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
8
6
|
const not_found_js_1 = require("../../exceptions/not-found.js");
|
|
9
|
-
const
|
|
10
|
-
query FLOWCORE_SDK_TENANT_FETCH($tenantId: ID!) {
|
|
11
|
-
organization(search: {id: $tenantId}) {
|
|
12
|
-
id
|
|
13
|
-
org
|
|
14
|
-
displayName
|
|
15
|
-
description
|
|
16
|
-
website
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
const graphQlQueryByName = `
|
|
21
|
-
query FLOWCORE_SDK_TENANT_FETCH($tenant: String) {
|
|
22
|
-
organization(search: {org: $tenant}) {
|
|
23
|
-
id
|
|
24
|
-
org
|
|
25
|
-
displayName
|
|
26
|
-
description
|
|
27
|
-
website
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
31
|
-
const responseSchema = typebox_1.Type.Object({
|
|
32
|
-
data: typebox_1.Type.Object({
|
|
33
|
-
organization: typebox_1.Type.Union([
|
|
34
|
-
tenant_js_1.TenantV0Schema,
|
|
35
|
-
typebox_1.Type.Null(),
|
|
36
|
-
]),
|
|
37
|
-
}),
|
|
38
|
-
});
|
|
7
|
+
const tenant_js_1 = require("../../contracts/tenant.js");
|
|
39
8
|
/**
|
|
40
9
|
* Fetch a tenant
|
|
41
10
|
*/
|
|
42
|
-
class TenantFetchCommand extends command_js_1.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
11
|
+
class TenantFetchCommand extends command_js_1.Command {
|
|
12
|
+
/**
|
|
13
|
+
* Get the method
|
|
14
|
+
*/
|
|
15
|
+
getMethod() {
|
|
16
|
+
return "GET";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the base url
|
|
20
|
+
*/
|
|
21
|
+
getBaseUrl() {
|
|
22
|
+
return "https://tenant.api.flowcore.io";
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get the path
|
|
26
|
+
*/
|
|
27
|
+
getPath() {
|
|
28
|
+
if ("tenantId" in this.input) {
|
|
29
|
+
return `/api/v1/tenants/by-id/${this.input.tenantId}`;
|
|
30
|
+
}
|
|
31
|
+
return `/api/v1/tenants/by-name/${this.input.tenant}`;
|
|
54
32
|
}
|
|
55
33
|
/**
|
|
56
34
|
* Parse the response
|
|
57
35
|
*/
|
|
58
36
|
parseResponse(rawResponse) {
|
|
59
|
-
const response = (0, parse_response_helper_js_1.parseResponseHelper)(
|
|
60
|
-
|
|
61
|
-
throw new not_found_js_1.NotFoundException("Tenant", {
|
|
62
|
-
[this.input.tenantId ? "id" : "name"]: this.input.tenantId ?? this.input.tenant,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return (0, tenant_js_1.tenantV0ToTenant)(response.data.organization);
|
|
37
|
+
const response = (0, parse_response_helper_js_1.parseResponseHelper)(tenant_js_1.TenantSchema, rawResponse);
|
|
38
|
+
return response;
|
|
66
39
|
}
|
|
67
40
|
/**
|
|
68
|
-
*
|
|
41
|
+
* Handle the client error
|
|
69
42
|
*/
|
|
70
|
-
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
43
|
+
handleClientError(error) {
|
|
44
|
+
if (error.status === 404) {
|
|
45
|
+
throw new not_found_js_1.NotFoundException("Tenant", {
|
|
46
|
+
[this.input.tenantId ? "id" : "name"]: this.input.tenantId ?? this.input.tenant,
|
|
47
|
+
});
|
|
76
48
|
}
|
|
77
|
-
|
|
78
|
-
query: graphQlQueryByName,
|
|
79
|
-
variables: this.input,
|
|
80
|
-
};
|
|
49
|
+
throw error;
|
|
81
50
|
}
|
|
82
51
|
}
|
|
83
52
|
exports.TenantFetchCommand = TenantFetchCommand;
|