@flowcore/sdk 1.11.9 → 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 +23 -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/common/notification-client.d.ts +12 -3
- package/esm/common/notification-client.d.ts.map +1 -1
- package/esm/common/notification-client.js +22 -9
- 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/common/notification-client.d.ts +12 -3
- package/script/common/notification-client.d.ts.map +1 -1
- package/script/common/notification-client.js +22 -9
- 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
|
@@ -13,22 +13,22 @@ export class NotificationClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates a new NotificationClient instance
|
|
15
15
|
* @param observer - RxJS Subject for emitting notification events
|
|
16
|
-
* @param
|
|
16
|
+
* @param authOptions - Auth options for the client
|
|
17
17
|
* @param subscriptionSpec - Specification for what notifications to subscribe to
|
|
18
18
|
* @param options - Configuration options for the client
|
|
19
19
|
*/
|
|
20
|
-
constructor(observer,
|
|
20
|
+
constructor(observer, authOptions, subscriptionSpec, options) {
|
|
21
21
|
Object.defineProperty(this, "observer", {
|
|
22
22
|
enumerable: true,
|
|
23
23
|
configurable: true,
|
|
24
24
|
writable: true,
|
|
25
25
|
value: observer
|
|
26
26
|
});
|
|
27
|
-
Object.defineProperty(this, "
|
|
27
|
+
Object.defineProperty(this, "authOptions", {
|
|
28
28
|
enumerable: true,
|
|
29
29
|
configurable: true,
|
|
30
30
|
writable: true,
|
|
31
|
-
value:
|
|
31
|
+
value: authOptions
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(this, "subscriptionSpec", {
|
|
34
34
|
enumerable: true,
|
|
@@ -118,10 +118,23 @@ export class NotificationClient {
|
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
this._isConnecting = true;
|
|
121
|
-
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
let flowcoreClient = null;
|
|
122
|
+
const urlParams = new URLSearchParams();
|
|
123
|
+
if ("oidcClient" in this.authOptions) {
|
|
124
|
+
const oidcClient = this.authOptions.oidcClient;
|
|
125
|
+
flowcoreClient = new FlowcoreClient({
|
|
126
|
+
getBearerToken: async () => (await oidcClient.getToken()).accessToken,
|
|
127
|
+
});
|
|
128
|
+
urlParams.set("token", (await oidcClient.getToken()).accessToken);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
flowcoreClient = new FlowcoreClient({
|
|
132
|
+
apiKey: this.authOptions.apiKey,
|
|
133
|
+
apiKeyId: this.authOptions.apiKeyId,
|
|
134
|
+
});
|
|
135
|
+
urlParams.set("api_key", this.authOptions.apiKey);
|
|
136
|
+
urlParams.set("api_key_id", this.authOptions.apiKeyId);
|
|
137
|
+
}
|
|
125
138
|
const tenant = await flowcoreClient.execute(new TenantFetchCommand({
|
|
126
139
|
tenant: this.subscriptionSpec.tenant,
|
|
127
140
|
}));
|
|
@@ -143,7 +156,7 @@ export class NotificationClient {
|
|
|
143
156
|
}));
|
|
144
157
|
}
|
|
145
158
|
}
|
|
146
|
-
this.webSocket = new dntShim.WebSocket(`${this.url}
|
|
159
|
+
this.webSocket = new dntShim.WebSocket(`${this.url}?${urlParams.toString()}`);
|
|
147
160
|
this.webSocket.onopen = () => {
|
|
148
161
|
this._isOpen = true;
|
|
149
162
|
this._isConnecting = false;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Static, type TArray, type TObject, type TOptional, type TString } from "@sinclair/typebox";
|
|
2
|
+
/**
|
|
3
|
+
* the schema for a container
|
|
4
|
+
*/
|
|
5
|
+
export declare const ContainerRegistrySchema: TObject<{
|
|
6
|
+
tenantId: TString;
|
|
7
|
+
name: TString;
|
|
8
|
+
description: TOptional<TString>;
|
|
9
|
+
username: TOptional<TString>;
|
|
10
|
+
id: TString;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const ContainerRegistryCreateSchema: TObject<{
|
|
13
|
+
id: TString;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const ContainerRegistryDeleteSchema: TObject<{
|
|
16
|
+
id: TString;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const ContainerRegistryListSchema: TArray;
|
|
19
|
+
export type ContainerRegistry = Static<typeof ContainerRegistrySchema>;
|
|
20
|
+
export type ContainerRegistryList = Static<typeof ContainerRegistryListSchema>;
|
|
21
|
+
export type ContainerRegistryCreate = Static<typeof ContainerRegistryCreateSchema>;
|
|
22
|
+
export type ContainerRegistryDelete = Static<typeof ContainerRegistryDeleteSchema>;
|
|
23
|
+
//# sourceMappingURL=container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/contracts/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAE9G;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC;IAC5C,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC/B,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC5B,EAAE,EAAE,OAAO,CAAA;CACZ,CAMC,CAAA;AAEF,eAAO,MAAM,6BAA6B,EAAE,OAAO,CAAC;IAClD,EAAE,EAAE,OAAO,CAAA;CACZ,CAEC,CAAA;AAEF,eAAO,MAAM,6BAA6B;QALpC,OAAO;EAK6D,CAAA;AAE1E,eAAO,MAAM,2BAA2B,EAAE,MAA4C,CAAA;AAEtF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACtE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC9E,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAClF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
/**
|
|
3
|
+
* the schema for a container
|
|
4
|
+
*/
|
|
5
|
+
export const ContainerRegistrySchema = Type.Object({
|
|
6
|
+
tenantId: Type.String(),
|
|
7
|
+
name: Type.String(),
|
|
8
|
+
description: Type.Optional(Type.String()),
|
|
9
|
+
username: Type.Optional(Type.String()),
|
|
10
|
+
id: Type.String(),
|
|
11
|
+
});
|
|
12
|
+
export const ContainerRegistryCreateSchema = Type.Object({
|
|
13
|
+
id: Type.String(),
|
|
14
|
+
});
|
|
15
|
+
export const ContainerRegistryDeleteSchema = ContainerRegistryCreateSchema;
|
|
16
|
+
export const ContainerRegistryListSchema = Type.Array(ContainerRegistrySchema);
|
|
@@ -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"}
|