@flowcore/sdk 1.9.3 → 1.10.1
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 +20 -0
- package/esm/commands/api-key/api-key.create.d.ts +15 -3
- package/esm/commands/api-key/api-key.create.d.ts.map +1 -1
- package/esm/commands/api-key/api-key.create.js +31 -11
- 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 +2 -2
- 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 +2 -2
- package/esm/commands/data-core/data-core.create.d.ts +6 -2
- package/esm/commands/data-core/data-core.create.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.create.js +12 -0
- package/esm/commands/data-core/data-core.delete-request.d.ts +6 -6
- package/esm/commands/data-core/data-core.delete-request.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.delete-request.js +7 -7
- package/esm/commands/data-core/data-core.fetch.d.ts +8 -4
- package/esm/commands/data-core/data-core.fetch.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.fetch.js +12 -1
- package/esm/commands/data-core/data-core.list.d.ts +2 -2
- package/esm/commands/data-core/data-core.list.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.update.d.ts +3 -3
- package/esm/commands/data-core/data-core.update.d.ts.map +1 -1
- package/esm/commands/data-core/data-core.update.js +1 -1
- package/esm/commands/event-type/event-type.create.d.ts +6 -2
- package/esm/commands/event-type/event-type.create.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.create.js +12 -0
- package/esm/commands/event-type/event-type.delete-request.d.ts +8 -4
- package/esm/commands/event-type/event-type.delete-request.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.delete-request.js +13 -4
- package/esm/commands/event-type/event-type.fetch.d.ts +7 -3
- package/esm/commands/event-type/event-type.fetch.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.fetch.js +12 -1
- package/esm/commands/event-type/event-type.list.d.ts +2 -2
- package/esm/commands/event-type/event-type.list.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.update.d.ts +1 -1
- package/esm/commands/event-type/event-type.update.d.ts.map +1 -1
- package/esm/commands/event-type/event-type.update.js +2 -2
- package/esm/commands/events/events.fetch-time-buckets-by-names.d.ts +1 -1
- package/esm/commands/events/events.fetch-time-buckets-by-names.d.ts.map +1 -1
- package/esm/commands/events/events.fetch-time-buckets-by-names.js +2 -1
- package/esm/commands/events/events.fetch.d.ts +1 -1
- package/esm/commands/events/events.fetch.d.ts.map +1 -1
- package/esm/commands/events/events.fetch.js +2 -2
- package/esm/commands/flow-type/flow-type.create.d.ts +6 -2
- package/esm/commands/flow-type/flow-type.create.d.ts.map +1 -1
- package/esm/commands/flow-type/flow-type.create.js +12 -0
- package/esm/commands/flow-type/flow-type.delete-request.d.ts +13 -6
- package/esm/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
- package/esm/commands/flow-type/flow-type.delete-request.js +13 -4
- package/esm/commands/flow-type/flow-type.fetch.d.ts +9 -5
- package/esm/commands/flow-type/flow-type.fetch.d.ts.map +1 -1
- package/esm/commands/flow-type/flow-type.fetch.js +12 -1
- package/esm/commands/flow-type/flow-type.list.d.ts +2 -2
- package/esm/commands/flow-type/flow-type.list.d.ts.map +1 -1
- package/esm/commands/flow-type/flow-type.update.d.ts +3 -3
- package/esm/commands/flow-type/flow-type.update.d.ts.map +1 -1
- package/esm/commands/flow-type/flow-type.update.js +1 -1
- 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 +2 -2
- 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 +2 -3
- 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 +2 -2
- package/esm/commands/tenant/tenant.fetch.d.ts +5 -6
- package/esm/commands/tenant/tenant.fetch.d.ts.map +1 -1
- package/esm/commands/tenant/tenant.fetch.js +7 -5
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/esm/common/command.d.ts +28 -6
- package/esm/common/command.d.ts.map +1 -1
- package/esm/common/command.js +43 -5
- package/esm/common/flowcore-client.d.ts.map +1 -1
- package/esm/common/flowcore-client.js +18 -11
- package/esm/exceptions/not-found.d.ts +1 -1
- package/esm/exceptions/not-found.d.ts.map +1 -1
- package/esm/exceptions/not-found.js +2 -2
- package/package.json +1 -1
- package/script/commands/api-key/api-key.create.d.ts +15 -3
- package/script/commands/api-key/api-key.create.d.ts.map +1 -1
- package/script/commands/api-key/api-key.create.js +31 -11
- 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/data-core/data-core.create.d.ts +6 -2
- package/script/commands/data-core/data-core.create.d.ts.map +1 -1
- package/script/commands/data-core/data-core.create.js +12 -0
- package/script/commands/data-core/data-core.delete-request.d.ts +6 -6
- package/script/commands/data-core/data-core.delete-request.d.ts.map +1 -1
- package/script/commands/data-core/data-core.delete-request.js +7 -7
- package/script/commands/data-core/data-core.fetch.d.ts +8 -4
- package/script/commands/data-core/data-core.fetch.d.ts.map +1 -1
- package/script/commands/data-core/data-core.fetch.js +12 -1
- package/script/commands/data-core/data-core.list.d.ts +2 -2
- package/script/commands/data-core/data-core.list.d.ts.map +1 -1
- package/script/commands/data-core/data-core.update.d.ts +3 -3
- package/script/commands/data-core/data-core.update.d.ts.map +1 -1
- package/script/commands/data-core/data-core.update.js +1 -1
- package/script/commands/event-type/event-type.create.d.ts +6 -2
- package/script/commands/event-type/event-type.create.d.ts.map +1 -1
- package/script/commands/event-type/event-type.create.js +12 -0
- package/script/commands/event-type/event-type.delete-request.d.ts +8 -4
- package/script/commands/event-type/event-type.delete-request.d.ts.map +1 -1
- package/script/commands/event-type/event-type.delete-request.js +13 -4
- package/script/commands/event-type/event-type.fetch.d.ts +7 -3
- package/script/commands/event-type/event-type.fetch.d.ts.map +1 -1
- package/script/commands/event-type/event-type.fetch.js +12 -1
- package/script/commands/event-type/event-type.list.d.ts +2 -2
- package/script/commands/event-type/event-type.list.d.ts.map +1 -1
- package/script/commands/event-type/event-type.update.d.ts +1 -1
- package/script/commands/event-type/event-type.update.d.ts.map +1 -1
- package/script/commands/event-type/event-type.update.js +2 -2
- package/script/commands/events/events.fetch-time-buckets-by-names.d.ts +1 -1
- package/script/commands/events/events.fetch-time-buckets-by-names.d.ts.map +1 -1
- package/script/commands/events/events.fetch-time-buckets-by-names.js +2 -1
- package/script/commands/events/events.fetch.d.ts +1 -1
- package/script/commands/events/events.fetch.d.ts.map +1 -1
- package/script/commands/events/events.fetch.js +2 -2
- package/script/commands/flow-type/flow-type.create.d.ts +6 -2
- package/script/commands/flow-type/flow-type.create.d.ts.map +1 -1
- package/script/commands/flow-type/flow-type.create.js +12 -0
- package/script/commands/flow-type/flow-type.delete-request.d.ts +13 -6
- package/script/commands/flow-type/flow-type.delete-request.d.ts.map +1 -1
- package/script/commands/flow-type/flow-type.delete-request.js +13 -4
- package/script/commands/flow-type/flow-type.fetch.d.ts +9 -5
- package/script/commands/flow-type/flow-type.fetch.d.ts.map +1 -1
- package/script/commands/flow-type/flow-type.fetch.js +12 -1
- package/script/commands/flow-type/flow-type.list.d.ts +2 -2
- package/script/commands/flow-type/flow-type.list.d.ts.map +1 -1
- package/script/commands/flow-type/flow-type.update.d.ts +3 -3
- package/script/commands/flow-type/flow-type.update.d.ts.map +1 -1
- package/script/commands/flow-type/flow-type.update.js +1 -1
- 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 -3
- 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.fetch.d.ts +5 -6
- package/script/commands/tenant/tenant.fetch.d.ts.map +1 -1
- package/script/commands/tenant/tenant.fetch.js +7 -5
- 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.d.ts +28 -6
- package/script/common/command.d.ts.map +1 -1
- package/script/common/command.js +43 -5
- package/script/common/flowcore-client.d.ts.map +1 -1
- package/script/common/flowcore-client.js +18 -11
- package/script/exceptions/not-found.d.ts +1 -1
- package/script/exceptions/not-found.d.ts.map +1 -1
- package/script/exceptions/not-found.js +2 -2
|
@@ -51,6 +51,15 @@ class FlowTypeDeleteRequestCommand extends command_js_1.GraphQlCommand {
|
|
|
51
51
|
...input,
|
|
52
52
|
waitForDelete: input.waitForDelete ?? true,
|
|
53
53
|
});
|
|
54
|
+
/**
|
|
55
|
+
* Whether the command should retry on failure
|
|
56
|
+
*/
|
|
57
|
+
Object.defineProperty(this, "retryOnFailure", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
configurable: true,
|
|
60
|
+
writable: true,
|
|
61
|
+
value: false
|
|
62
|
+
});
|
|
54
63
|
/**
|
|
55
64
|
* The allowed modes for the command
|
|
56
65
|
*/
|
|
@@ -70,7 +79,7 @@ class FlowTypeDeleteRequestCommand extends command_js_1.GraphQlCommand {
|
|
|
70
79
|
throw new command_error_js_1.CommandError(this.constructor.name, parsedResponse.errors[0].message);
|
|
71
80
|
}
|
|
72
81
|
if (!parsedResponse.data?.datacore?.flowtype?.requestDelete) {
|
|
73
|
-
throw new not_found_js_1.NotFoundException("FlowType", this.input.flowTypeId);
|
|
82
|
+
throw new not_found_js_1.NotFoundException("FlowType", { id: this.input.flowTypeId });
|
|
74
83
|
}
|
|
75
84
|
return parsedResponse.data.datacore.flowtype.requestDelete.deleting;
|
|
76
85
|
}
|
|
@@ -94,15 +103,15 @@ class FlowTypeDeleteRequestCommand extends command_js_1.GraphQlCommand {
|
|
|
94
103
|
* Get the body for the request
|
|
95
104
|
*/
|
|
96
105
|
getBody() {
|
|
97
|
-
return
|
|
106
|
+
return {
|
|
98
107
|
query: graphQlQuery,
|
|
99
108
|
variables: this.input,
|
|
100
|
-
}
|
|
109
|
+
};
|
|
101
110
|
}
|
|
102
111
|
/**
|
|
103
112
|
* Wait for the response (timeout: 25 seconds)
|
|
104
113
|
*/
|
|
105
|
-
async
|
|
114
|
+
async processResponse(client, response) {
|
|
106
115
|
if (!this.input.waitForDelete) {
|
|
107
116
|
return response;
|
|
108
117
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { Command } from "../../common/command.js";
|
|
2
2
|
import { type FlowType } from "../../contracts/flow-type.js";
|
|
3
|
+
import type { ClientError } from "../../exceptions/client-error.js";
|
|
3
4
|
/**
|
|
4
5
|
* The input for the flow type fetch by name command
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
export interface FlowTypeFetchByNameInput {
|
|
7
8
|
/** The id of the data core */
|
|
8
9
|
dataCoreId: string;
|
|
9
10
|
/** The name of the flow type */
|
|
10
11
|
flowType: string;
|
|
11
12
|
/** The id of the flow type */
|
|
12
13
|
flowTypeId?: never;
|
|
13
|
-
}
|
|
14
|
+
}
|
|
14
15
|
/**
|
|
15
16
|
* The input for the flow type fetch by id command
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
+
export interface FlowTypeFetchByIdInput {
|
|
18
19
|
/** The id of the flow type */
|
|
19
20
|
flowTypeId: string;
|
|
20
21
|
/** The id of the data core */
|
|
21
22
|
dataCoreId?: never;
|
|
22
23
|
/** The name of the flow type */
|
|
23
24
|
flowType?: never;
|
|
24
|
-
}
|
|
25
|
+
}
|
|
25
26
|
/**
|
|
26
27
|
* The input for the flow type fetch command
|
|
27
28
|
*/
|
|
@@ -46,6 +47,9 @@ export declare class FlowTypeFetchCommand extends Command<FlowTypeFetchInput, Fl
|
|
|
46
47
|
* Parse the response
|
|
47
48
|
*/
|
|
48
49
|
protected parseResponse(rawResponse: unknown): FlowType;
|
|
50
|
+
/**
|
|
51
|
+
* Handle the client error
|
|
52
|
+
*/
|
|
53
|
+
protected handleClientError(error: ClientError): void;
|
|
49
54
|
}
|
|
50
|
-
export {};
|
|
51
55
|
//# sourceMappingURL=flow-type.fetch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-type.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"flow-type.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.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,wBAAwB;IACvC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,wBAAwB,CAAA;AAElF;;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;IAUpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;IAYhE;;OAEG;cACgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAQ/D"}
|
|
@@ -44,9 +44,20 @@ class FlowTypeFetchCommand extends command_js_1.Command {
|
|
|
44
44
|
}
|
|
45
45
|
const response = (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(flow_type_js_1.FlowTypeSchema), rawResponse);
|
|
46
46
|
if (response.length === 0) {
|
|
47
|
-
throw new not_found_js_1.NotFoundException("FlowType", this.input.flowType);
|
|
47
|
+
throw new not_found_js_1.NotFoundException("FlowType", { name: this.input.flowType });
|
|
48
48
|
}
|
|
49
49
|
return response[0];
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Handle the client error
|
|
53
|
+
*/
|
|
54
|
+
handleClientError(error) {
|
|
55
|
+
if (error.status === 404) {
|
|
56
|
+
throw new not_found_js_1.NotFoundException("FlowType", {
|
|
57
|
+
[this.input.flowTypeId ? "id" : "name"]: this.input.flowTypeId ?? this.input.flowType,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
51
62
|
}
|
|
52
63
|
exports.FlowTypeFetchCommand = FlowTypeFetchCommand;
|
|
@@ -3,10 +3,10 @@ import { type FlowType } from "../../contracts/flow-type.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* The input for the flow type list command
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export interface FlowTypeListInput {
|
|
7
7
|
/** the data core id */
|
|
8
8
|
dataCoreId: string;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
10
|
/**
|
|
11
11
|
* Fetch all flow types for a data core
|
|
12
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-type.list.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"flow-type.list.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IAC7E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAMpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,EAAE;CAInE"}
|
|
@@ -3,12 +3,12 @@ import { type FlowType } from "../../contracts/flow-type.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* The input for the flow type update command
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export interface FlowTypeUpdateInput {
|
|
7
7
|
/** The id of the data core */
|
|
8
8
|
flowTypeId: string;
|
|
9
9
|
/** The description of the flow type */
|
|
10
10
|
description?: string;
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
/**
|
|
13
13
|
* Update a flow type
|
|
14
14
|
*/
|
|
@@ -28,7 +28,7 @@ export declare class FlowTypeUpdateCommand extends Command<FlowTypeUpdateInput,
|
|
|
28
28
|
/**
|
|
29
29
|
* Get the body for the request
|
|
30
30
|
*/
|
|
31
|
-
protected getBody(): string
|
|
31
|
+
protected getBody(): Record<string, unknown>;
|
|
32
32
|
/**
|
|
33
33
|
* Parse the response
|
|
34
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-type.update.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"flow-type.update.d.ts","sourceRoot":"","sources":["../../../src/commands/flow-type/flow-type.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,8BAA8B,CAAA;AAG5E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/E;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAKrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;CAGjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret.create.d.ts","sourceRoot":"","sources":["../../../src/commands/secret/secret.create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAA;CACd;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;
|
|
1
|
+
{"version":3,"file":"secret.create.d.ts","sourceRoot":"","sources":["../../../src/commands/secret/secret.create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAA;CACd;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"}
|
|
@@ -55,10 +55,10 @@ class SecretCreateCommand extends command_js_1.GraphQlCommand {
|
|
|
55
55
|
* Get the body for the request
|
|
56
56
|
*/
|
|
57
57
|
getBody() {
|
|
58
|
-
return
|
|
58
|
+
return {
|
|
59
59
|
query: graphQlQueryById,
|
|
60
60
|
variables: this.input,
|
|
61
|
-
}
|
|
61
|
+
};
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
exports.SecretCreateCommand = SecretCreateCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/secret/secret.delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAA;CACZ;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;
|
|
1
|
+
{"version":3,"file":"secret.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/secret/secret.delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAA;CACZ;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"}
|
|
@@ -42,7 +42,6 @@ class SecretDeleteCommand extends command_js_1.GraphQlCommand {
|
|
|
42
42
|
* Parse the response
|
|
43
43
|
*/
|
|
44
44
|
parseResponse(rawResponse) {
|
|
45
|
-
console.log("rawResponse", rawResponse);
|
|
46
45
|
const response = (0, parse_response_helper_js_1.parseResponseHelper)(responseSchema, rawResponse);
|
|
47
46
|
if (response.errors) {
|
|
48
47
|
throw new command_error_js_1.CommandError(this.constructor.name, response.errors[0].message);
|
|
@@ -56,10 +55,10 @@ class SecretDeleteCommand extends command_js_1.GraphQlCommand {
|
|
|
56
55
|
* Get the body for the request
|
|
57
56
|
*/
|
|
58
57
|
getBody() {
|
|
59
|
-
return
|
|
58
|
+
return {
|
|
60
59
|
query: graphQlQueryById,
|
|
61
60
|
variables: this.input,
|
|
62
|
-
}
|
|
61
|
+
};
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
exports.SecretDeleteCommand = SecretDeleteCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret.list.d.ts","sourceRoot":"","sources":["../../../src/commands/secret/secret.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AA4BD;;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;IAWhE;;OAEG;cACgB,OAAO,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"secret.list.d.ts","sourceRoot":"","sources":["../../../src/commands/secret/secret.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AA4BD;;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;IAWhE;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
|
|
@@ -58,10 +58,10 @@ class SecretListCommand extends command_js_1.GraphQlCommand {
|
|
|
58
58
|
* Get the body for the request
|
|
59
59
|
*/
|
|
60
60
|
getBody() {
|
|
61
|
-
return
|
|
61
|
+
return {
|
|
62
62
|
query: graphQlQueryById,
|
|
63
63
|
variables: this.input,
|
|
64
|
-
}
|
|
64
|
+
};
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
exports.SecretListCommand = SecretListCommand;
|
|
@@ -3,21 +3,21 @@ import { type Tenant } from "../../contracts/tenant.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* The input for the tenant fetch by id command
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
export interface TenantFetchByIdInput {
|
|
7
7
|
/** The id of the tenant */
|
|
8
8
|
tenantId: string;
|
|
9
9
|
/** The name of the tenant */
|
|
10
10
|
tenant?: never;
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
/**
|
|
13
13
|
* The input for the tenant fetch by name command
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
export interface TenantFetchByNameInput {
|
|
16
16
|
/** The name of the tenant */
|
|
17
17
|
tenant: string;
|
|
18
18
|
/** The id of the tenant */
|
|
19
19
|
tenantId?: never;
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
21
|
/**
|
|
22
22
|
* The input for the tenant fetch command
|
|
23
23
|
*/
|
|
@@ -37,7 +37,6 @@ export declare class TenantFetchCommand extends GraphQlCommand<TenantFetchInput,
|
|
|
37
37
|
/**
|
|
38
38
|
* Get the body for the request
|
|
39
39
|
*/
|
|
40
|
-
protected getBody(): string
|
|
40
|
+
protected getBody(): Record<string, unknown>;
|
|
41
41
|
}
|
|
42
|
-
export {};
|
|
43
42
|
//# 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":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,KAAK,MAAM,EAAoC,MAAM,2BAA2B,CAAA;AAIzF;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"tenant.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/tenant/tenant.fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,KAAK,MAAM,EAAoC,MAAM,2BAA2B,CAAA;AAIzF;;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;AAmC5E;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAC9E;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM;IAU9D;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAYtD"}
|
|
@@ -58,7 +58,9 @@ class TenantFetchCommand extends command_js_1.GraphQlCommand {
|
|
|
58
58
|
parseResponse(rawResponse) {
|
|
59
59
|
const response = (0, parse_response_helper_js_1.parseResponseHelper)(responseSchema, rawResponse);
|
|
60
60
|
if (!response.data.organization) {
|
|
61
|
-
throw new not_found_js_1.NotFoundException("Tenant",
|
|
61
|
+
throw new not_found_js_1.NotFoundException("Tenant", {
|
|
62
|
+
[this.input.tenantId ? "id" : "name"]: this.input.tenantId ?? this.input.tenant,
|
|
63
|
+
});
|
|
62
64
|
}
|
|
63
65
|
return (0, tenant_js_1.tenantV0ToTenant)(response.data.organization);
|
|
64
66
|
}
|
|
@@ -67,15 +69,15 @@ class TenantFetchCommand extends command_js_1.GraphQlCommand {
|
|
|
67
69
|
*/
|
|
68
70
|
getBody() {
|
|
69
71
|
if ("tenantId" in this.input) {
|
|
70
|
-
return
|
|
72
|
+
return {
|
|
71
73
|
query: graphQlQueryById,
|
|
72
74
|
variables: this.input,
|
|
73
|
-
}
|
|
75
|
+
};
|
|
74
76
|
}
|
|
75
|
-
return
|
|
77
|
+
return {
|
|
76
78
|
query: graphQlQueryByName,
|
|
77
79
|
variables: this.input,
|
|
78
|
-
}
|
|
80
|
+
};
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
exports.TenantFetchCommand = TenantFetchCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.list.d.ts","sourceRoot":"","sources":["../../../src/commands/tenant/tenant.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAoC,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AA+BrG;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAChG;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;IAQ5E;;OAEG;cACgB,OAAO,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"tenant.list.d.ts","sourceRoot":"","sources":["../../../src/commands/tenant/tenant.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAoC,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AA+BrG;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAChG;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kBAAkB,EAAE;IAQ5E;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAKtD"}
|
|
@@ -61,9 +61,9 @@ class TenantListCommand extends command_js_1.GraphQlCommand {
|
|
|
61
61
|
* Get the body for the request
|
|
62
62
|
*/
|
|
63
63
|
getBody() {
|
|
64
|
-
return
|
|
64
|
+
return {
|
|
65
65
|
query: graphQlQueryById,
|
|
66
|
-
}
|
|
66
|
+
};
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
exports.TenantListCommand = TenantListCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.create.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAG3D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;CACd;AA4BD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IACtF;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;IAchE;;OAEG;cACgB,OAAO,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"variable.create.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAG3D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;CACd;AA4BD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IACtF;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;IAchE;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
|
|
@@ -61,10 +61,10 @@ class VariableCreateCommand extends command_js_1.GraphQlCommand {
|
|
|
61
61
|
* Get the body for the request
|
|
62
62
|
*/
|
|
63
63
|
getBody() {
|
|
64
|
-
return
|
|
64
|
+
return {
|
|
65
65
|
query: graphQlQueryById,
|
|
66
66
|
variables: this.input,
|
|
67
|
-
}
|
|
67
|
+
};
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
exports.VariableCreateCommand = VariableCreateCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAA;CACZ;AA4BD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACrF;;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;
|
|
1
|
+
{"version":3,"file":"variable.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAA;CACZ;AA4BD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACrF;;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"}
|
|
@@ -58,10 +58,10 @@ class VariableDeleteCommand extends command_js_1.GraphQlCommand {
|
|
|
58
58
|
* Get the body for the request
|
|
59
59
|
*/
|
|
60
60
|
getBody() {
|
|
61
|
-
return
|
|
61
|
+
return {
|
|
62
62
|
query: graphQlQueryById,
|
|
63
63
|
variables: this.input,
|
|
64
|
-
}
|
|
64
|
+
};
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
exports.VariableDeleteCommand = VariableDeleteCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.list.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAG3D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAkCD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IACpF;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,EAAE;IAWlE;;OAEG;cACgB,OAAO,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"variable.list.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAG3D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAkCD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IACpF;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,EAAE;IAWlE;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtD"}
|
|
@@ -64,10 +64,10 @@ class VariableListCommand extends command_js_1.GraphQlCommand {
|
|
|
64
64
|
* Get the body for the request
|
|
65
65
|
*/
|
|
66
66
|
getBody() {
|
|
67
|
-
return
|
|
67
|
+
return {
|
|
68
68
|
query: graphQlQueryById,
|
|
69
69
|
variables: this.input,
|
|
70
|
-
}
|
|
70
|
+
};
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
exports.VariableListCommand = VariableListCommand;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import type { ClientError } from "../exceptions/client-error.js";
|
|
1
2
|
import type { FlowcoreClient } from "./flowcore-client.js";
|
|
2
3
|
/**
|
|
3
4
|
* Abstract command for executing requests
|
|
4
5
|
*/
|
|
5
6
|
export declare abstract class Command<Input, Output> {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the command should retry on failure
|
|
9
|
+
*/
|
|
10
|
+
protected readonly retryOnFailure: boolean;
|
|
6
11
|
/**
|
|
7
12
|
* The allowed modes for the command
|
|
8
13
|
*/
|
|
@@ -27,7 +32,7 @@ export declare abstract class Command<Input, Output> {
|
|
|
27
32
|
/**
|
|
28
33
|
* Get the body for the request
|
|
29
34
|
*/
|
|
30
|
-
protected getBody(): string | undefined;
|
|
35
|
+
protected getBody(): Record<string, unknown> | Array<unknown> | undefined;
|
|
31
36
|
/**
|
|
32
37
|
* Get the headers for the request
|
|
33
38
|
*/
|
|
@@ -35,29 +40,46 @@ export declare abstract class Command<Input, Output> {
|
|
|
35
40
|
/**
|
|
36
41
|
* Parse the response
|
|
37
42
|
*/
|
|
38
|
-
protected abstract parseResponse(response: unknown
|
|
43
|
+
protected abstract parseResponse(response: unknown): Output;
|
|
44
|
+
/**
|
|
45
|
+
* Handle the client error
|
|
46
|
+
*/
|
|
47
|
+
protected handleClientError(error: ClientError): void;
|
|
39
48
|
/**
|
|
40
49
|
* Get the request object
|
|
41
50
|
*/
|
|
42
51
|
getRequest(_client: FlowcoreClient): Promise<{
|
|
43
52
|
allowedModes: ("apiKey" | "bearer")[];
|
|
44
|
-
body: string | undefined;
|
|
53
|
+
body: string | Record<string, unknown> | Array<unknown> | undefined;
|
|
45
54
|
headers: Record<string, string>;
|
|
46
55
|
baseUrl: string;
|
|
47
56
|
path: string;
|
|
48
57
|
method: string;
|
|
49
|
-
parseResponse: (response: unknown
|
|
50
|
-
|
|
58
|
+
parseResponse: (response: unknown) => Output | Promise<Output>;
|
|
59
|
+
processResponse: (client: FlowcoreClient, response: Output) => Promise<Output>;
|
|
60
|
+
handleClientError: (error: ClientError) => void;
|
|
61
|
+
retryOnFailure: boolean;
|
|
51
62
|
}>;
|
|
52
63
|
/**
|
|
53
64
|
* Wait for the response
|
|
54
65
|
*/
|
|
55
|
-
protected
|
|
66
|
+
protected processResponse(_client: FlowcoreClient, response: Output): Promise<Output>;
|
|
56
67
|
}
|
|
57
68
|
/**
|
|
58
69
|
* Abstract command for executing GraphQL requests
|
|
59
70
|
*/
|
|
60
71
|
export declare abstract class GraphQlCommand<Input, Output> extends Command<Input, Output> {
|
|
72
|
+
/**
|
|
73
|
+
* The allowed modes for the command
|
|
74
|
+
*/
|
|
75
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
76
|
+
/**
|
|
77
|
+
* Get the base URL for the request
|
|
78
|
+
*/
|
|
61
79
|
protected getBaseUrl(): string;
|
|
80
|
+
/**
|
|
81
|
+
* Get the path for the request
|
|
82
|
+
*/
|
|
83
|
+
protected getPath(): string;
|
|
62
84
|
}
|
|
63
85
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/common/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;GAEG;AACH,8BAAsB,OAAO,CAAC,KAAK,EAAE,MAAM;IACzC;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAuB;IAE/E;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;gBAEnB,KAAK,EAAE,KAAK;IAOxB;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,UAAU,IAAI,MAAM;IAEvC;;OAEG;IACH,SAAS,CAAC,SAAS,IAAI,MAAM;IAI7B;;OAEG;IACH,SAAS,CAAC,OAAO,IAAI,MAAM;IAI3B;;OAEG;IACH,SAAS,CAAC,OAAO,IAAI,MAAM,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/common/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;GAEG;AACH,8BAAsB,OAAO,CAAC,KAAK,EAAE,MAAM;IACzC;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAO;IAEjD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAuB;IAE/E;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;gBAEnB,KAAK,EAAE,KAAK;IAOxB;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,UAAU,IAAI,MAAM;IAEvC;;OAEG;IACH,SAAS,CAAC,SAAS,IAAI,MAAM;IAI7B;;OAEG;IACH,SAAS,CAAC,OAAO,IAAI,MAAM;IAI3B;;OAEG;IACH,SAAS,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,SAAS;IAOzE;;OAEG;IACH,SAAS,CAAC,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQ9C;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM;IAE3D;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAIrD;;OAEG;IAEU,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC;QACxD,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAA;QACrC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,SAAS,CAAA;QACnE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC/B,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;QAC9D,eAAe,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;QAC9E,iBAAiB,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAA;QAC/C,cAAc,EAAE,OAAO,CAAA;KACxB,CAAC;IAeF;;OAEG;cAEa,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAG5F;AAED;;GAEG;AACH,8BAAsB,cAAc,CAAC,KAAK,EAAE,MAAM,CAAE,SAAQ,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;IAChF;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;CAGrC"}
|