@flowcore/sdk 1.12.0 → 1.13.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 +22 -0
- package/esm/commands/container-registry/container-registry.delete.d.ts.map +1 -1
- package/esm/commands/container-registry/container-registry.delete.js +0 -1
- package/esm/commands/container-registry/container-registry.update.d.ts.map +1 -1
- package/esm/commands/container-registry/container-registry.update.js +0 -1
- package/esm/commands/data-core/data-core.delete-request.d.ts +1 -0
- 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 -0
- package/esm/commands/data-core/data-core.request-delete.d.ts +49 -0
- package/esm/commands/data-core/data-core.request-delete.d.ts.map +1 -0
- package/esm/commands/data-core/data-core.request-delete.js +67 -0
- package/esm/commands/event-type/event-type.delete-request.d.ts +1 -0
- 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 -0
- package/esm/commands/event-type/event-type.request-delete.d.ts +48 -0
- package/esm/commands/event-type/event-type.request-delete.d.ts.map +1 -0
- package/esm/commands/event-type/event-type.request-delete.js +67 -0
- package/esm/commands/event-type/event-type.request-truncate.d.ts +48 -0
- package/esm/commands/event-type/event-type.request-truncate.d.ts.map +1 -0
- package/esm/commands/event-type/event-type.request-truncate.js +68 -0
- package/esm/commands/event-type/event-type.truncate-request.d.ts +1 -0
- 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 -0
- package/esm/commands/flow-type/flow-type.delete-request.d.ts +1 -0
- 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 -0
- package/esm/commands/flow-type/flow-type.request-delete.d.ts +48 -0
- package/esm/commands/flow-type/flow-type.request-delete.d.ts.map +1 -0
- package/esm/commands/flow-type/flow-type.request-delete.js +67 -0
- package/esm/commands/index.d.ts +4 -0
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +4 -0
- package/esm/common/flowcore-client.js +1 -1
- package/esm/contracts/container.d.ts +2 -2
- package/esm/contracts/container.d.ts.map +1 -1
- package/esm/contracts/container.js +4 -2
- package/esm/contracts/tenant.d.ts +1 -3
- package/esm/contracts/tenant.d.ts.map +1 -1
- package/esm/contracts/tenant.js +1 -3
- package/esm/exceptions/client-error.js +1 -1
- package/package.json +1 -1
- package/script/commands/container-registry/container-registry.delete.d.ts.map +1 -1
- package/script/commands/container-registry/container-registry.delete.js +0 -1
- package/script/commands/container-registry/container-registry.update.d.ts.map +1 -1
- package/script/commands/container-registry/container-registry.update.js +0 -1
- package/script/commands/data-core/data-core.delete-request.d.ts +1 -0
- package/script/commands/data-core/data-core.delete-request.d.ts.map +1 -1
- package/script/commands/data-core/data-core.delete-request.js +1 -0
- package/script/commands/data-core/data-core.request-delete.d.ts +49 -0
- package/script/commands/data-core/data-core.request-delete.d.ts.map +1 -0
- package/script/commands/data-core/data-core.request-delete.js +71 -0
- package/script/commands/event-type/event-type.delete-request.d.ts +1 -0
- package/script/commands/event-type/event-type.delete-request.d.ts.map +1 -1
- package/script/commands/event-type/event-type.delete-request.js +1 -0
- package/script/commands/event-type/event-type.request-delete.d.ts +48 -0
- package/script/commands/event-type/event-type.request-delete.d.ts.map +1 -0
- package/script/commands/event-type/event-type.request-delete.js +71 -0
- package/script/commands/event-type/event-type.request-truncate.d.ts +48 -0
- package/script/commands/event-type/event-type.request-truncate.d.ts.map +1 -0
- package/script/commands/event-type/event-type.request-truncate.js +72 -0
- package/script/commands/event-type/event-type.truncate-request.d.ts +1 -0
- package/script/commands/event-type/event-type.truncate-request.d.ts.map +1 -1
- package/script/commands/event-type/event-type.truncate-request.js +1 -0
- package/script/commands/flow-type/flow-type.delete-request.d.ts +1 -0
- package/script/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
- package/script/commands/flow-type/flow-type.delete-request.js +1 -0
- package/script/commands/flow-type/flow-type.request-delete.d.ts +48 -0
- package/script/commands/flow-type/flow-type.request-delete.d.ts.map +1 -0
- package/script/commands/flow-type/flow-type.request-delete.js +71 -0
- package/script/commands/index.d.ts +4 -0
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +4 -0
- package/script/common/flowcore-client.js +1 -1
- package/script/contracts/container.d.ts +2 -2
- package/script/contracts/container.d.ts.map +1 -1
- package/script/contracts/container.js +3 -1
- package/script/contracts/tenant.d.ts +1 -3
- package/script/contracts/tenant.d.ts.map +1 -1
- package/script/contracts/tenant.js +1 -3
- package/script/exceptions/client-error.js +1 -1
|
@@ -12,6 +12,7 @@ export interface FlowTypeDeleteRequestInput {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Request to delete a flow type
|
|
15
|
+
* @deprecated Use `FlowTypeRequestDeleteCommand` instead
|
|
15
16
|
*/
|
|
16
17
|
export declare class FlowTypeDeleteRequestCommand extends GraphQlCommand<FlowTypeDeleteRequestInput, boolean> {
|
|
17
18
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-type.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAmCD
|
|
1
|
+
{"version":3,"file":"flow-type.delete-request.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.delete-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,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O,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"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
3
|
+
import type { FlowcoreClient } from "../../common/flowcore-client.js";
|
|
4
|
+
/**
|
|
5
|
+
* The input for the flow type request delete command
|
|
6
|
+
*/
|
|
7
|
+
export interface FlowTypeRequestDeleteInput {
|
|
8
|
+
/** The id of the flow type */
|
|
9
|
+
flowTypeId: string;
|
|
10
|
+
/** Wait for the flow type to be deleted (default: false) */
|
|
11
|
+
waitForDelete?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The output for the flow type request delete command
|
|
15
|
+
*/
|
|
16
|
+
export interface FlowTypeRequestDeleteOutput {
|
|
17
|
+
success: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Request to delete a flow type
|
|
21
|
+
*/
|
|
22
|
+
export declare class FlowTypeRequestDeleteCommand extends Command<FlowTypeRequestDeleteInput, FlowTypeRequestDeleteOutput> {
|
|
23
|
+
/**
|
|
24
|
+
* Get the method
|
|
25
|
+
*/
|
|
26
|
+
protected getMethod(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Get the base url
|
|
29
|
+
*/
|
|
30
|
+
protected getBaseUrl(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Get the path
|
|
33
|
+
*/
|
|
34
|
+
protected getPath(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Parse the response
|
|
37
|
+
*/
|
|
38
|
+
protected parseResponse(rawResponse: unknown): FlowTypeRequestDeleteOutput;
|
|
39
|
+
/**
|
|
40
|
+
* Handle the client error
|
|
41
|
+
*/
|
|
42
|
+
protected handleClientError(error: ClientError): void;
|
|
43
|
+
/**
|
|
44
|
+
* Wait for the response (timeout: 25 seconds)
|
|
45
|
+
*/
|
|
46
|
+
protected processResponse(client: FlowcoreClient, response: FlowTypeRequestDeleteOutput): Promise<FlowTypeRequestDeleteOutput>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=flow-type.request-delete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-type.request-delete.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.request-delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGrE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,OAAO,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;IAChH;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,2BAA2B;IAUnF;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAS9D;;OAEG;cACsB,eAAe,CACtC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,2BAA2B,GACpC,OAAO,CAAC,2BAA2B,CAAC;CAkBxC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlowTypeRequestDeleteCommand = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const command_js_1 = require("../../common/command.js");
|
|
6
|
+
const not_found_js_1 = require("../../exceptions/not-found.js");
|
|
7
|
+
const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
|
|
8
|
+
const flow_type_exists_js_1 = require("./flow-type.exists.js");
|
|
9
|
+
/**
|
|
10
|
+
* Request to delete a flow type
|
|
11
|
+
*/
|
|
12
|
+
class FlowTypeRequestDeleteCommand extends command_js_1.Command {
|
|
13
|
+
/**
|
|
14
|
+
* Get the method
|
|
15
|
+
*/
|
|
16
|
+
getMethod() {
|
|
17
|
+
return "DELETE";
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get the base url
|
|
21
|
+
*/
|
|
22
|
+
getBaseUrl() {
|
|
23
|
+
return "https://delete-manager.api.flowcore.io";
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get the path
|
|
27
|
+
*/
|
|
28
|
+
getPath() {
|
|
29
|
+
return `/api/v1/flow-types/${this.input.flowTypeId}/request-delete`;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Parse the response
|
|
33
|
+
*/
|
|
34
|
+
parseResponse(rawResponse) {
|
|
35
|
+
const response = (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Object({
|
|
36
|
+
success: typebox_1.Type.Boolean(),
|
|
37
|
+
}), rawResponse);
|
|
38
|
+
return response;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Handle the client error
|
|
42
|
+
*/
|
|
43
|
+
handleClientError(error) {
|
|
44
|
+
if (error.status === 404) {
|
|
45
|
+
throw new not_found_js_1.NotFoundException("FlowType", {
|
|
46
|
+
"id": this.input.flowTypeId,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
throw error;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Wait for the response (timeout: 25 seconds)
|
|
53
|
+
*/
|
|
54
|
+
async processResponse(client, response) {
|
|
55
|
+
if (!this.input.waitForDelete) {
|
|
56
|
+
return response;
|
|
57
|
+
}
|
|
58
|
+
const start = Date.now();
|
|
59
|
+
while (Date.now() - start < 25_000) {
|
|
60
|
+
const response = await client.execute(new flow_type_exists_js_1.FlowTypeExistsCommand({
|
|
61
|
+
flowTypeId: this.input.flowTypeId,
|
|
62
|
+
}));
|
|
63
|
+
if (!response.exists) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
67
|
+
}
|
|
68
|
+
return response;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.FlowTypeRequestDeleteCommand = FlowTypeRequestDeleteCommand;
|
|
@@ -15,12 +15,14 @@ export * from "./data-core/data-core.list.js";
|
|
|
15
15
|
export * from "./data-core/data-core.create.js";
|
|
16
16
|
export * from "./data-core/data-core.update.js";
|
|
17
17
|
export * from "./data-core/data-core.delete-request.js";
|
|
18
|
+
export * from "./data-core/data-core.request-delete.js";
|
|
18
19
|
export * from "./flow-type/flow-type.exists.js";
|
|
19
20
|
export * from "./flow-type/flow-type.fetch.js";
|
|
20
21
|
export * from "./flow-type/flow-type.list.js";
|
|
21
22
|
export * from "./flow-type/flow-type.create.js";
|
|
22
23
|
export * from "./flow-type/flow-type.update.js";
|
|
23
24
|
export * from "./flow-type/flow-type.delete-request.js";
|
|
25
|
+
export * from "./flow-type/flow-type.request-delete.js";
|
|
24
26
|
export * from "./event-type/event-type.exists.js";
|
|
25
27
|
export * from "./event-type/event-type.fetch.js";
|
|
26
28
|
export * from "./event-type/event-type.list.js";
|
|
@@ -28,6 +30,8 @@ export * from "./event-type/event-type.create.js";
|
|
|
28
30
|
export * from "./event-type/event-type.update.js";
|
|
29
31
|
export * from "./event-type/event-type.delete-request.js";
|
|
30
32
|
export * from "./event-type/event-type.truncate-request.js";
|
|
33
|
+
export * from "./event-type/event-type.request-truncate.js";
|
|
34
|
+
export * from "./event-type/event-type.request-delete.js";
|
|
31
35
|
export * from "./events/events.fetch.js";
|
|
32
36
|
export * from "./events/events.fetch-time-buckets-by-names.js";
|
|
33
37
|
export * from "./container-registry/container-registry.create.js";
|
|
@@ -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;
|
|
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;AACvD,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;AACvD,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;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,2CAA2C,CAAA;AAGzD,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
|
@@ -36,6 +36,7 @@ __exportStar(require("./data-core/data-core.list.js"), exports);
|
|
|
36
36
|
__exportStar(require("./data-core/data-core.create.js"), exports);
|
|
37
37
|
__exportStar(require("./data-core/data-core.update.js"), exports);
|
|
38
38
|
__exportStar(require("./data-core/data-core.delete-request.js"), exports);
|
|
39
|
+
__exportStar(require("./data-core/data-core.request-delete.js"), exports);
|
|
39
40
|
// Flow Types
|
|
40
41
|
__exportStar(require("./flow-type/flow-type.exists.js"), exports);
|
|
41
42
|
__exportStar(require("./flow-type/flow-type.fetch.js"), exports);
|
|
@@ -43,6 +44,7 @@ __exportStar(require("./flow-type/flow-type.list.js"), exports);
|
|
|
43
44
|
__exportStar(require("./flow-type/flow-type.create.js"), exports);
|
|
44
45
|
__exportStar(require("./flow-type/flow-type.update.js"), exports);
|
|
45
46
|
__exportStar(require("./flow-type/flow-type.delete-request.js"), exports);
|
|
47
|
+
__exportStar(require("./flow-type/flow-type.request-delete.js"), exports);
|
|
46
48
|
// Event Types
|
|
47
49
|
__exportStar(require("./event-type/event-type.exists.js"), exports);
|
|
48
50
|
__exportStar(require("./event-type/event-type.fetch.js"), exports);
|
|
@@ -51,6 +53,8 @@ __exportStar(require("./event-type/event-type.create.js"), exports);
|
|
|
51
53
|
__exportStar(require("./event-type/event-type.update.js"), exports);
|
|
52
54
|
__exportStar(require("./event-type/event-type.delete-request.js"), exports);
|
|
53
55
|
__exportStar(require("./event-type/event-type.truncate-request.js"), exports);
|
|
56
|
+
__exportStar(require("./event-type/event-type.request-truncate.js"), exports);
|
|
57
|
+
__exportStar(require("./event-type/event-type.request-delete.js"), exports);
|
|
54
58
|
// Events
|
|
55
59
|
__exportStar(require("./events/events.fetch.js"), exports);
|
|
56
60
|
__exportStar(require("./events/events.fetch-time-buckets-by-names.js"), exports);
|
|
@@ -110,7 +110,7 @@ class FlowcoreClient {
|
|
|
110
110
|
const error = new client_error_js_1.ClientError(`${commandName} failed with ${response.status}: ${response.statusText}`, response.status, body);
|
|
111
111
|
request.handleClientError(error);
|
|
112
112
|
}
|
|
113
|
-
const responseBody = await response.json();
|
|
113
|
+
const responseBody = response.status === 204 ? { status: response.status } : await response.json();
|
|
114
114
|
const parsedBody = await request.parseResponse(responseBody);
|
|
115
115
|
return request.processResponse(this, parsedBody);
|
|
116
116
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Static, type TArray, type TObject, type TOptional, type TString } from "@sinclair/typebox";
|
|
1
|
+
import { type Static, type TArray, type TNumber, type TObject, type TOptional, type TString } from "@sinclair/typebox";
|
|
2
2
|
/**
|
|
3
3
|
* the schema for a container
|
|
4
4
|
*/
|
|
@@ -13,7 +13,7 @@ export declare const ContainerRegistryCreateSchema: TObject<{
|
|
|
13
13
|
id: TString;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const ContainerRegistryDeleteSchema: TObject<{
|
|
16
|
-
|
|
16
|
+
status: TNumber;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const ContainerRegistryListSchema: TArray;
|
|
19
19
|
export type ContainerRegistry = Static<typeof ContainerRegistrySchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/contracts/container.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/contracts/container.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,mBAAmB,CAAA;AAE1B;;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,EAAE,OAAO,CAAC;IAClD,MAAM,EAAE,OAAO,CAAA;CAChB,CAEC,CAAA;AAEF,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"}
|
|
@@ -15,5 +15,7 @@ exports.ContainerRegistrySchema = typebox_1.Type.Object({
|
|
|
15
15
|
exports.ContainerRegistryCreateSchema = typebox_1.Type.Object({
|
|
16
16
|
id: typebox_1.Type.String(),
|
|
17
17
|
});
|
|
18
|
-
exports.ContainerRegistryDeleteSchema =
|
|
18
|
+
exports.ContainerRegistryDeleteSchema = typebox_1.Type.Object({
|
|
19
|
+
status: typebox_1.Type.Number(),
|
|
20
|
+
});
|
|
19
21
|
exports.ContainerRegistryListSchema = typebox_1.Type.Array(exports.ContainerRegistrySchema);
|
|
@@ -1 +1 @@
|
|
|
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,GA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,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,MAAM,EAAE,OAAO,CAAA;gBACf,oBAAoB,EAAE,OAAO,CAAA;aAC9B,CAAC,CAAA;SACH,CAAC;KACH,CAAC,CAAA;CACH,CAqBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -21,9 +21,7 @@ exports.TenantSchema = typebox_1.Type.Object({
|
|
|
21
21
|
typebox_1.Type.Literal("offline"),
|
|
22
22
|
]),
|
|
23
23
|
configuration: typebox_1.Type.Object({
|
|
24
|
-
|
|
25
|
-
eventSourceUrl: typebox_1.Type.String(),
|
|
26
|
-
deleteManagerUrl: typebox_1.Type.String(),
|
|
24
|
+
domain: typebox_1.Type.String(),
|
|
27
25
|
configurationRepoUrl: typebox_1.Type.String(),
|
|
28
26
|
}),
|
|
29
27
|
}),
|
|
@@ -6,7 +6,7 @@ exports.ClientError = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
class ClientError extends Error {
|
|
8
8
|
constructor(message, status, body) {
|
|
9
|
-
super(`Client failed with ${status}: ${message}`);
|
|
9
|
+
super(`Client failed with ${status}: ${body ? JSON.stringify(body) : message}`);
|
|
10
10
|
Object.defineProperty(this, "status", {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
configurable: true,
|