@flowcore/sdk 1.52.0 → 1.53.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 +13 -0
- package/README.md +2 -2
- package/esm/commands/index.d.ts +2 -0
- package/esm/commands/index.d.ts.map +1 -1
- package/esm/commands/index.js +2 -0
- package/esm/commands/secret/secret.create.d.ts +23 -8
- package/esm/commands/secret/secret.create.d.ts.map +1 -1
- package/esm/commands/secret/secret.create.js +27 -39
- package/esm/commands/secret/secret.delete.d.ts +20 -8
- package/esm/commands/secret/secret.delete.d.ts.map +1 -1
- package/esm/commands/secret/secret.delete.js +27 -41
- package/esm/commands/secret/secret.edit.d.ts +45 -0
- package/esm/commands/secret/secret.edit.d.ts.map +1 -0
- package/esm/commands/secret/secret.edit.js +40 -0
- package/esm/commands/secret/secret.list.d.ts +20 -7
- package/esm/commands/secret/secret.list.d.ts.map +1 -1
- package/esm/commands/secret/secret.list.js +27 -41
- package/esm/commands/variable/variable.create.d.ts +21 -7
- package/esm/commands/variable/variable.create.d.ts.map +1 -1
- package/esm/commands/variable/variable.create.js +26 -44
- package/esm/commands/variable/variable.delete.d.ts +20 -8
- package/esm/commands/variable/variable.delete.d.ts.map +1 -1
- package/esm/commands/variable/variable.delete.js +27 -44
- package/esm/commands/variable/variable.edit.d.ts +45 -0
- package/esm/commands/variable/variable.edit.d.ts.map +1 -0
- package/esm/commands/variable/variable.edit.js +40 -0
- package/esm/commands/variable/variable.list.d.ts +19 -7
- package/esm/commands/variable/variable.list.d.ts.map +1 -1
- package/esm/commands/variable/variable.list.js +27 -47
- package/esm/contracts/secret.d.ts +16 -0
- package/esm/contracts/secret.d.ts.map +1 -0
- package/esm/contracts/secret.js +11 -0
- package/esm/contracts/variable.d.ts +5 -1
- package/esm/contracts/variable.d.ts.map +1 -1
- package/esm/contracts/variable.js +4 -0
- package/package.json +1 -1
- package/script/commands/index.d.ts +2 -0
- package/script/commands/index.d.ts.map +1 -1
- package/script/commands/index.js +2 -0
- package/script/commands/secret/secret.create.d.ts +23 -8
- package/script/commands/secret/secret.create.d.ts.map +1 -1
- package/script/commands/secret/secret.create.js +27 -39
- package/script/commands/secret/secret.delete.d.ts +20 -8
- package/script/commands/secret/secret.delete.d.ts.map +1 -1
- package/script/commands/secret/secret.delete.js +27 -41
- package/script/commands/secret/secret.edit.d.ts +45 -0
- package/script/commands/secret/secret.edit.d.ts.map +1 -0
- package/script/commands/secret/secret.edit.js +44 -0
- package/script/commands/secret/secret.list.d.ts +20 -7
- package/script/commands/secret/secret.list.d.ts.map +1 -1
- package/script/commands/secret/secret.list.js +27 -41
- package/script/commands/variable/variable.create.d.ts +21 -7
- package/script/commands/variable/variable.create.d.ts.map +1 -1
- package/script/commands/variable/variable.create.js +26 -44
- package/script/commands/variable/variable.delete.d.ts +20 -8
- package/script/commands/variable/variable.delete.d.ts.map +1 -1
- package/script/commands/variable/variable.delete.js +27 -44
- package/script/commands/variable/variable.edit.d.ts +45 -0
- package/script/commands/variable/variable.edit.d.ts.map +1 -0
- package/script/commands/variable/variable.edit.js +44 -0
- package/script/commands/variable/variable.list.d.ts +19 -7
- package/script/commands/variable/variable.list.d.ts.map +1 -1
- package/script/commands/variable/variable.list.js +27 -47
- package/script/contracts/secret.d.ts +16 -0
- package/script/contracts/secret.d.ts.map +1 -0
- package/script/contracts/secret.js +14 -0
- package/script/contracts/variable.d.ts +5 -1
- package/script/contracts/variable.d.ts.map +1 -1
- package/script/contracts/variable.js +4 -0
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GraphQlCommand } from "../../common/command-graphql.js";
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
3
2
|
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
|
-
import {
|
|
5
|
-
const graphQlQueryById = `
|
|
6
|
-
mutation FLOWCORE_SDK_VARIABLE_CREATE($tenantId: ID!, $key: String!, $value: String!) {
|
|
7
|
-
organization(id: $tenantId) {
|
|
8
|
-
createVariable(key: $key, value: $value)
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
const responseSchema = Type.Object({
|
|
13
|
-
errors: Type.Optional(Type.Array(Type.Object({
|
|
14
|
-
message: Type.String(),
|
|
15
|
-
}))),
|
|
16
|
-
data: Type.Union([
|
|
17
|
-
Type.Object({
|
|
18
|
-
organization: Type.Object({
|
|
19
|
-
createVariable: Type.Union([Type.Boolean(), Type.Null()]),
|
|
20
|
-
}),
|
|
21
|
-
}),
|
|
22
|
-
Type.Null(),
|
|
23
|
-
]),
|
|
24
|
-
});
|
|
3
|
+
import { VariableSchema } from "../../contracts/variable.js";
|
|
25
4
|
/**
|
|
26
5
|
* Create a variable
|
|
27
6
|
*/
|
|
28
|
-
export class VariableCreateCommand extends
|
|
7
|
+
export class VariableCreateCommand extends Command {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the command should retry on failure
|
|
10
|
+
*/
|
|
11
|
+
retryOnFailure = false;
|
|
12
|
+
/**
|
|
13
|
+
* Get the method
|
|
14
|
+
*/
|
|
15
|
+
getMethod() {
|
|
16
|
+
return "POST";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the base url
|
|
20
|
+
*/
|
|
21
|
+
getBaseUrl() {
|
|
22
|
+
return "https://tenant-store.api.flowcore.io";
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get the path
|
|
26
|
+
*/
|
|
27
|
+
getPath() {
|
|
28
|
+
return `/api/v1/tenants/${this.input.tenantId}/variables`;
|
|
29
|
+
}
|
|
29
30
|
/**
|
|
30
31
|
* The allowed modes for the command
|
|
31
32
|
*/
|
|
@@ -34,25 +35,6 @@ export class VariableCreateCommand extends GraphQlCommand {
|
|
|
34
35
|
* Parse the response
|
|
35
36
|
*/
|
|
36
37
|
parseResponse(rawResponse) {
|
|
37
|
-
|
|
38
|
-
if (response.errors) {
|
|
39
|
-
throw new CommandError(this.constructor.name, response.errors[0].message);
|
|
40
|
-
}
|
|
41
|
-
if (!response.data || response.data.organization.createVariable !== true) {
|
|
42
|
-
throw new CommandError(this.constructor.name, "Failed to create variable");
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
key: this.input.key,
|
|
46
|
-
value: this.input.value,
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Get the body for the request
|
|
51
|
-
*/
|
|
52
|
-
getBody() {
|
|
53
|
-
return {
|
|
54
|
-
query: graphQlQueryById,
|
|
55
|
-
variables: this.input,
|
|
56
|
-
};
|
|
38
|
+
return parseResponseHelper(VariableSchema, rawResponse);
|
|
57
39
|
}
|
|
58
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
2
|
/**
|
|
3
3
|
* The input for the variable delete command
|
|
4
4
|
*/
|
|
@@ -9,9 +9,25 @@ export interface VariableDeleteInput {
|
|
|
9
9
|
key: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Delete a variable
|
|
13
13
|
*/
|
|
14
|
-
export declare class VariableDeleteCommand extends
|
|
14
|
+
export declare class VariableDeleteCommand extends Command<VariableDeleteInput, boolean> {
|
|
15
|
+
/**
|
|
16
|
+
* Whether the command should retry on failure
|
|
17
|
+
*/
|
|
18
|
+
protected retryOnFailure: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Get the method
|
|
21
|
+
*/
|
|
22
|
+
protected getMethod(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Get the base url
|
|
25
|
+
*/
|
|
26
|
+
protected getBaseUrl(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Get the path
|
|
29
|
+
*/
|
|
30
|
+
protected getPath(): string;
|
|
15
31
|
/**
|
|
16
32
|
* The allowed modes for the command
|
|
17
33
|
*/
|
|
@@ -19,10 +35,6 @@ export declare class VariableDeleteCommand extends GraphQlCommand<VariableDelete
|
|
|
19
35
|
/**
|
|
20
36
|
* Parse the response
|
|
21
37
|
*/
|
|
22
|
-
protected parseResponse(
|
|
23
|
-
/**
|
|
24
|
-
* Get the body for the request
|
|
25
|
-
*/
|
|
26
|
-
protected getBody(): Record<string, unknown>;
|
|
38
|
+
protected parseResponse(): boolean;
|
|
27
39
|
}
|
|
28
40
|
//# sourceMappingURL=variable.delete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.delete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"variable.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAA;CACZ;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,OAAO,CAAC;IAC9E;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,IAAI,OAAO;CAG5C"}
|
|
@@ -1,55 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GraphQlCommand } from "../../common/command-graphql.js";
|
|
3
|
-
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
|
-
import { CommandError } from "../../exceptions/command-error.js";
|
|
5
|
-
const graphQlQueryById = `
|
|
6
|
-
mutation FLOWCORE_SDK_VARIABLE_DELETE($tenantId: ID!, $key: String!) {
|
|
7
|
-
organization(id: $tenantId) {
|
|
8
|
-
removeVariable(key: $key)
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
const responseSchema = Type.Object({
|
|
13
|
-
errors: Type.Optional(Type.Array(Type.Object({
|
|
14
|
-
message: Type.String(),
|
|
15
|
-
}))),
|
|
16
|
-
data: Type.Union([
|
|
17
|
-
Type.Object({
|
|
18
|
-
organization: Type.Object({
|
|
19
|
-
removeVariable: Type.Union([Type.Boolean(), Type.Null()]),
|
|
20
|
-
}),
|
|
21
|
-
}),
|
|
22
|
-
Type.Null(),
|
|
23
|
-
]),
|
|
24
|
-
});
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
25
2
|
/**
|
|
26
|
-
*
|
|
3
|
+
* Delete a variable
|
|
27
4
|
*/
|
|
28
|
-
export class VariableDeleteCommand extends
|
|
5
|
+
export class VariableDeleteCommand extends Command {
|
|
29
6
|
/**
|
|
30
|
-
*
|
|
7
|
+
* Whether the command should retry on failure
|
|
31
8
|
*/
|
|
32
|
-
|
|
9
|
+
retryOnFailure = false;
|
|
33
10
|
/**
|
|
34
|
-
*
|
|
11
|
+
* Get the method
|
|
35
12
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (response.errors) {
|
|
39
|
-
throw new CommandError(this.constructor.name, response.errors[0].message);
|
|
40
|
-
}
|
|
41
|
-
if (!response.data || response.data.organization.removeVariable !== true) {
|
|
42
|
-
throw new CommandError(this.constructor.name, "Failed to delete variable");
|
|
43
|
-
}
|
|
44
|
-
return response.data.organization.removeVariable;
|
|
13
|
+
getMethod() {
|
|
14
|
+
return "DELETE";
|
|
45
15
|
}
|
|
46
16
|
/**
|
|
47
|
-
* Get the
|
|
17
|
+
* Get the base url
|
|
18
|
+
*/
|
|
19
|
+
getBaseUrl() {
|
|
20
|
+
return "https://tenant-store.api.flowcore.io";
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get the path
|
|
24
|
+
*/
|
|
25
|
+
getPath() {
|
|
26
|
+
return `/api/v1/tenants/${this.input.tenantId}/variables/${this.input.key}`;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The allowed modes for the command
|
|
30
|
+
*/
|
|
31
|
+
allowedModes = ["bearer"];
|
|
32
|
+
/**
|
|
33
|
+
* Parse the response
|
|
48
34
|
*/
|
|
49
|
-
|
|
50
|
-
return
|
|
51
|
-
query: graphQlQueryById,
|
|
52
|
-
variables: this.input,
|
|
53
|
-
};
|
|
35
|
+
parseResponse() {
|
|
36
|
+
return true;
|
|
54
37
|
}
|
|
55
38
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type Variable } from "../../contracts/variable.js";
|
|
3
|
+
/**
|
|
4
|
+
* The input for the variable edit command
|
|
5
|
+
*/
|
|
6
|
+
export interface VariableEditInput {
|
|
7
|
+
/** The tenant id */
|
|
8
|
+
tenantId: string;
|
|
9
|
+
/** The key of the variable */
|
|
10
|
+
key: string;
|
|
11
|
+
/** The value of the variable */
|
|
12
|
+
value?: string;
|
|
13
|
+
/** The description of the variable */
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Edit a variable
|
|
18
|
+
*/
|
|
19
|
+
export declare class VariableEditCommand extends Command<VariableEditInput, Variable> {
|
|
20
|
+
/**
|
|
21
|
+
* Whether the command should retry on failure
|
|
22
|
+
*/
|
|
23
|
+
protected retryOnFailure: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Get the method
|
|
26
|
+
*/
|
|
27
|
+
protected getMethod(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Get the base url
|
|
30
|
+
*/
|
|
31
|
+
protected getBaseUrl(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Get the path
|
|
34
|
+
*/
|
|
35
|
+
protected getPath(): string;
|
|
36
|
+
/**
|
|
37
|
+
* The allowed modes for the command
|
|
38
|
+
*/
|
|
39
|
+
protected allowedModes: ("apiKey" | "bearer")[];
|
|
40
|
+
/**
|
|
41
|
+
* Parse the response
|
|
42
|
+
*/
|
|
43
|
+
protected parseResponse(rawResponse: unknown): Variable;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=variable.edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable.edit.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,6BAA6B,CAAA;AAE3E;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,QAAQ,CAAC;IAC3E;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;CAGjE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
3
|
+
import { VariableSchema } from "../../contracts/variable.js";
|
|
4
|
+
/**
|
|
5
|
+
* Edit a variable
|
|
6
|
+
*/
|
|
7
|
+
export class VariableEditCommand extends Command {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the command should retry on failure
|
|
10
|
+
*/
|
|
11
|
+
retryOnFailure = false;
|
|
12
|
+
/**
|
|
13
|
+
* Get the method
|
|
14
|
+
*/
|
|
15
|
+
getMethod() {
|
|
16
|
+
return "PATCH";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the base url
|
|
20
|
+
*/
|
|
21
|
+
getBaseUrl() {
|
|
22
|
+
return "https://tenant-store.api.flowcore.io";
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get the path
|
|
26
|
+
*/
|
|
27
|
+
getPath() {
|
|
28
|
+
return `/api/v1/tenants/${this.input.tenantId}/variables/${this.input.key}`;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The allowed modes for the command
|
|
32
|
+
*/
|
|
33
|
+
allowedModes = ["bearer"];
|
|
34
|
+
/**
|
|
35
|
+
* Parse the response
|
|
36
|
+
*/
|
|
37
|
+
parseResponse(rawResponse) {
|
|
38
|
+
return parseResponseHelper(VariableSchema, rawResponse);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type Variable } from "../../contracts/variable.js";
|
|
3
3
|
/**
|
|
4
4
|
* The input for the variable list command
|
|
5
5
|
*/
|
|
@@ -10,7 +10,23 @@ export interface VariableListInput {
|
|
|
10
10
|
/**
|
|
11
11
|
* List variables
|
|
12
12
|
*/
|
|
13
|
-
export declare class VariableListCommand extends
|
|
13
|
+
export declare class VariableListCommand extends Command<VariableListInput, Variable[]> {
|
|
14
|
+
/**
|
|
15
|
+
* Whether the command should retry on failure
|
|
16
|
+
*/
|
|
17
|
+
protected retryOnFailure: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Get the method
|
|
20
|
+
*/
|
|
21
|
+
protected getMethod(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Get the base url
|
|
24
|
+
*/
|
|
25
|
+
protected getBaseUrl(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Get the path
|
|
28
|
+
*/
|
|
29
|
+
protected getPath(): string;
|
|
14
30
|
/**
|
|
15
31
|
* The allowed modes for the command
|
|
16
32
|
*/
|
|
@@ -19,9 +35,5 @@ export declare class VariableListCommand extends GraphQlCommand<VariableListInpu
|
|
|
19
35
|
* Parse the response
|
|
20
36
|
*/
|
|
21
37
|
protected parseResponse(rawResponse: unknown): Variable[];
|
|
22
|
-
/**
|
|
23
|
-
* Get the body for the request
|
|
24
|
-
*/
|
|
25
|
-
protected getBody(): Record<string, unknown>;
|
|
26
38
|
}
|
|
27
39
|
//# sourceMappingURL=variable.list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.list.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"variable.list.d.ts","sourceRoot":"","sources":["../../../src/commands/variable/variable.list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,6BAA6B,CAAA;AAG3E;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IAC7E;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,EAAE;CAGnE"}
|
|
@@ -1,37 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GraphQlCommand } from "../../common/command-graphql.js";
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
3
2
|
import { parseResponseHelper } from "../../utils/parse-response-helper.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
query FLOWCORE_SDK_VARIABLE_LIST($tenantId: ID!) {
|
|
7
|
-
organization(search: {id: $tenantId}) {
|
|
8
|
-
variables {
|
|
9
|
-
key
|
|
10
|
-
value
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
15
|
-
const responseSchema = Type.Object({
|
|
16
|
-
errors: Type.Optional(Type.Array(Type.Object({
|
|
17
|
-
message: Type.String(),
|
|
18
|
-
}))),
|
|
19
|
-
data: Type.Union([
|
|
20
|
-
Type.Object({
|
|
21
|
-
organization: Type.Object({
|
|
22
|
-
variables: Type.Array(Type.Object({
|
|
23
|
-
key: Type.String(),
|
|
24
|
-
value: Type.String(),
|
|
25
|
-
})),
|
|
26
|
-
}),
|
|
27
|
-
}),
|
|
28
|
-
Type.Null(),
|
|
29
|
-
]),
|
|
30
|
-
});
|
|
3
|
+
import { VariableSchema } from "../../contracts/variable.js";
|
|
4
|
+
import { Type } from "@sinclair/typebox";
|
|
31
5
|
/**
|
|
32
6
|
* List variables
|
|
33
7
|
*/
|
|
34
|
-
export class VariableListCommand extends
|
|
8
|
+
export class VariableListCommand extends Command {
|
|
9
|
+
/**
|
|
10
|
+
* Whether the command should retry on failure
|
|
11
|
+
*/
|
|
12
|
+
retryOnFailure = false;
|
|
13
|
+
/**
|
|
14
|
+
* Get the method
|
|
15
|
+
*/
|
|
16
|
+
getMethod() {
|
|
17
|
+
return "GET";
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get the base url
|
|
21
|
+
*/
|
|
22
|
+
getBaseUrl() {
|
|
23
|
+
return "https://tenant-store.api.flowcore.io";
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get the path
|
|
27
|
+
*/
|
|
28
|
+
getPath() {
|
|
29
|
+
return `/api/v1/tenants/${this.input.tenantId}/variables`;
|
|
30
|
+
}
|
|
35
31
|
/**
|
|
36
32
|
* The allowed modes for the command
|
|
37
33
|
*/
|
|
@@ -40,22 +36,6 @@ export class VariableListCommand extends GraphQlCommand {
|
|
|
40
36
|
* Parse the response
|
|
41
37
|
*/
|
|
42
38
|
parseResponse(rawResponse) {
|
|
43
|
-
|
|
44
|
-
if (response.errors) {
|
|
45
|
-
throw new CommandError(this.constructor.name, response.errors[0].message);
|
|
46
|
-
}
|
|
47
|
-
if (!response.data) {
|
|
48
|
-
throw new CommandError(this.constructor.name, "Failed to list variables");
|
|
49
|
-
}
|
|
50
|
-
return response.data.organization.variables;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Get the body for the request
|
|
54
|
-
*/
|
|
55
|
-
getBody() {
|
|
56
|
-
return {
|
|
57
|
-
query: graphQlQueryById,
|
|
58
|
-
variables: this.input,
|
|
59
|
-
};
|
|
39
|
+
return parseResponseHelper(Type.Array(VariableSchema), rawResponse);
|
|
60
40
|
}
|
|
61
41
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Static, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
|
|
2
|
+
/**
|
|
3
|
+
* The schema for a secret
|
|
4
|
+
*/
|
|
5
|
+
export declare const SecretSchema: TObject<{
|
|
6
|
+
tenantId: TString;
|
|
7
|
+
key: TString;
|
|
8
|
+
description: TString;
|
|
9
|
+
createdAt: TString;
|
|
10
|
+
updatedAt: TUnion<[TString, TNull]>;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* The type for a secret
|
|
14
|
+
*/
|
|
15
|
+
export type Secret = Static<typeof SecretSchema>;
|
|
16
|
+
//# sourceMappingURL=secret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret.d.ts","sourceRoot":"","sources":["../../src/contracts/secret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAA;AAE1G;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAA;IACZ,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;CACpC,CAMC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
/**
|
|
3
|
+
* The schema for a secret
|
|
4
|
+
*/
|
|
5
|
+
export const SecretSchema = Type.Object({
|
|
6
|
+
tenantId: Type.String(),
|
|
7
|
+
key: Type.String(),
|
|
8
|
+
description: Type.String(),
|
|
9
|
+
createdAt: Type.String(),
|
|
10
|
+
updatedAt: Type.Union([Type.String(), Type.Null()]),
|
|
11
|
+
});
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { type Static, type TObject, type TString } from "@sinclair/typebox";
|
|
1
|
+
import { type Static, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
|
|
2
2
|
/**
|
|
3
3
|
* The schema for a variable
|
|
4
4
|
*/
|
|
5
5
|
export declare const VariableSchema: TObject<{
|
|
6
|
+
tenantId: TString;
|
|
6
7
|
key: TString;
|
|
8
|
+
description: TString;
|
|
7
9
|
value: TString;
|
|
10
|
+
createdAt: TString;
|
|
11
|
+
updatedAt: TUnion<[TString, TNull]>;
|
|
8
12
|
}>;
|
|
9
13
|
/**
|
|
10
14
|
* The type for a variable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../src/contracts/variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../src/contracts/variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAA;AAE1G;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAA;IACZ,WAAW,EAAE,OAAO,CAAA;IACpB,KAAK,EAAE,OAAO,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;CACpC,CAOC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -3,6 +3,10 @@ import { Type } from "@sinclair/typebox";
|
|
|
3
3
|
* The schema for a variable
|
|
4
4
|
*/
|
|
5
5
|
export const VariableSchema = Type.Object({
|
|
6
|
+
tenantId: Type.String(),
|
|
6
7
|
key: Type.String(),
|
|
8
|
+
description: Type.String(),
|
|
7
9
|
value: Type.String(),
|
|
10
|
+
createdAt: Type.String(),
|
|
11
|
+
updatedAt: Type.Union([Type.String(), Type.Null()]),
|
|
8
12
|
});
|
package/package.json
CHANGED
|
@@ -9,9 +9,11 @@ export * from "./api-key/api-key.delete.js";
|
|
|
9
9
|
export * from "./api-key/api-key.list.js";
|
|
10
10
|
export * from "./secret/secret.create.js";
|
|
11
11
|
export * from "./secret/secret.delete.js";
|
|
12
|
+
export * from "./secret/secret.edit.js";
|
|
12
13
|
export * from "./secret/secret.list.js";
|
|
13
14
|
export * from "./variable/variable.create.js";
|
|
14
15
|
export * from "./variable/variable.delete.js";
|
|
16
|
+
export * from "./variable/variable.edit.js";
|
|
15
17
|
export * from "./variable/variable.list.js";
|
|
16
18
|
export * from "./data-core/data-core.create.js";
|
|
17
19
|
export * from "./data-core/data-core.exists.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,4BAA4B,CAAA;AAG1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,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AAA;AAElD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,wDAAwD,CAAA;AACtE,cAAc,sDAAsD,CAAA;AACpE,cAAc,gDAAgD,CAAA;AAC9D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA;AAE/D,cAAc,0CAA0C,CAAA;AACxD,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,6CAA6C,CAAA;AAE3D,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAE7C,cAAc,gDAAgD,CAAA;AAE9D,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA"}
|
package/script/commands/index.js
CHANGED
|
@@ -29,10 +29,12 @@ __exportStar(require("./api-key/api-key.list.js"), exports);
|
|
|
29
29
|
// Secret
|
|
30
30
|
__exportStar(require("./secret/secret.create.js"), exports);
|
|
31
31
|
__exportStar(require("./secret/secret.delete.js"), exports);
|
|
32
|
+
__exportStar(require("./secret/secret.edit.js"), exports);
|
|
32
33
|
__exportStar(require("./secret/secret.list.js"), exports);
|
|
33
34
|
// Variable
|
|
34
35
|
__exportStar(require("./variable/variable.create.js"), exports);
|
|
35
36
|
__exportStar(require("./variable/variable.delete.js"), exports);
|
|
37
|
+
__exportStar(require("./variable/variable.edit.js"), exports);
|
|
36
38
|
__exportStar(require("./variable/variable.list.js"), exports);
|
|
37
39
|
// Data Core
|
|
38
40
|
__exportStar(require("./data-core/data-core.create.js"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Command } from "../../common/command.js";
|
|
2
|
+
import { type Secret } from "../../contracts/secret.js";
|
|
2
3
|
/**
|
|
3
4
|
* The input for the secret create command
|
|
4
5
|
*/
|
|
@@ -9,11 +10,29 @@ export interface SecretCreateInput {
|
|
|
9
10
|
key: string;
|
|
10
11
|
/** The value of the secret */
|
|
11
12
|
value: string;
|
|
13
|
+
/** The description of the secret */
|
|
14
|
+
description?: string;
|
|
12
15
|
}
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
17
|
+
* Create a secret
|
|
15
18
|
*/
|
|
16
|
-
export declare class SecretCreateCommand extends
|
|
19
|
+
export declare class SecretCreateCommand extends Command<SecretCreateInput, Secret> {
|
|
20
|
+
/**
|
|
21
|
+
* Whether the command should retry on failure
|
|
22
|
+
*/
|
|
23
|
+
protected retryOnFailure: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Get the method
|
|
26
|
+
*/
|
|
27
|
+
protected getMethod(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Get the base url
|
|
30
|
+
*/
|
|
31
|
+
protected getBaseUrl(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Get the path
|
|
34
|
+
*/
|
|
35
|
+
protected getPath(): string;
|
|
17
36
|
/**
|
|
18
37
|
* The allowed modes for the command
|
|
19
38
|
*/
|
|
@@ -21,10 +40,6 @@ export declare class SecretCreateCommand extends GraphQlCommand<SecretCreateInpu
|
|
|
21
40
|
/**
|
|
22
41
|
* Parse the response
|
|
23
42
|
*/
|
|
24
|
-
protected parseResponse(rawResponse: unknown):
|
|
25
|
-
/**
|
|
26
|
-
* Get the body for the request
|
|
27
|
-
*/
|
|
28
|
-
protected getBody(): Record<string, unknown>;
|
|
43
|
+
protected parseResponse(rawResponse: unknown): Secret;
|
|
29
44
|
}
|
|
30
45
|
//# sourceMappingURL=secret.create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret.create.d.ts","sourceRoot":"","sources":["../../../src/commands/secret/secret.create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secret.create.d.ts","sourceRoot":"","sources":["../../../src/commands/secret/secret.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,2BAA2B,CAAA;AAErE;;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;IACb,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACzE;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;IACH,UAAmB,YAAY,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAa;IAErE;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM;CAG/D"}
|