@flowcore/sdk 1.52.0 → 1.54.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +2 -2
  3. package/esm/commands/api-key/api-key.create.d.ts +20 -23
  4. package/esm/commands/api-key/api-key.create.d.ts.map +1 -1
  5. package/esm/commands/api-key/api-key.create.js +21 -62
  6. package/esm/commands/api-key/api-key.delete.d.ts +22 -12
  7. package/esm/commands/api-key/api-key.delete.d.ts.map +1 -1
  8. package/esm/commands/api-key/api-key.delete.js +27 -41
  9. package/esm/commands/api-key/api-key.edit.d.ts +41 -0
  10. package/esm/commands/api-key/api-key.edit.d.ts.map +1 -0
  11. package/esm/commands/api-key/api-key.edit.js +40 -0
  12. package/esm/commands/api-key/api-key.list.d.ts +20 -8
  13. package/esm/commands/api-key/api-key.list.d.ts.map +1 -1
  14. package/esm/commands/api-key/api-key.list.js +27 -36
  15. package/esm/commands/index.d.ts +3 -0
  16. package/esm/commands/index.d.ts.map +1 -1
  17. package/esm/commands/index.js +3 -0
  18. package/esm/commands/secret/secret.create.d.ts +23 -8
  19. package/esm/commands/secret/secret.create.d.ts.map +1 -1
  20. package/esm/commands/secret/secret.create.js +27 -39
  21. package/esm/commands/secret/secret.delete.d.ts +20 -8
  22. package/esm/commands/secret/secret.delete.d.ts.map +1 -1
  23. package/esm/commands/secret/secret.delete.js +27 -41
  24. package/esm/commands/secret/secret.edit.d.ts +45 -0
  25. package/esm/commands/secret/secret.edit.d.ts.map +1 -0
  26. package/esm/commands/secret/secret.edit.js +40 -0
  27. package/esm/commands/secret/secret.list.d.ts +20 -7
  28. package/esm/commands/secret/secret.list.d.ts.map +1 -1
  29. package/esm/commands/secret/secret.list.js +27 -41
  30. package/esm/commands/variable/variable.create.d.ts +21 -7
  31. package/esm/commands/variable/variable.create.d.ts.map +1 -1
  32. package/esm/commands/variable/variable.create.js +26 -44
  33. package/esm/commands/variable/variable.delete.d.ts +20 -8
  34. package/esm/commands/variable/variable.delete.d.ts.map +1 -1
  35. package/esm/commands/variable/variable.delete.js +27 -44
  36. package/esm/commands/variable/variable.edit.d.ts +45 -0
  37. package/esm/commands/variable/variable.edit.d.ts.map +1 -0
  38. package/esm/commands/variable/variable.edit.js +40 -0
  39. package/esm/commands/variable/variable.list.d.ts +19 -7
  40. package/esm/commands/variable/variable.list.d.ts.map +1 -1
  41. package/esm/commands/variable/variable.list.js +27 -47
  42. package/esm/contracts/api-key.d.ts +22 -1
  43. package/esm/contracts/api-key.d.ts.map +1 -1
  44. package/esm/contracts/api-key.js +17 -0
  45. package/esm/contracts/secret.d.ts +16 -0
  46. package/esm/contracts/secret.d.ts.map +1 -0
  47. package/esm/contracts/secret.js +11 -0
  48. package/esm/contracts/variable.d.ts +5 -1
  49. package/esm/contracts/variable.d.ts.map +1 -1
  50. package/esm/contracts/variable.js +4 -0
  51. package/package.json +1 -1
  52. package/script/commands/api-key/api-key.create.d.ts +20 -23
  53. package/script/commands/api-key/api-key.create.d.ts.map +1 -1
  54. package/script/commands/api-key/api-key.create.js +21 -62
  55. package/script/commands/api-key/api-key.delete.d.ts +22 -12
  56. package/script/commands/api-key/api-key.delete.d.ts.map +1 -1
  57. package/script/commands/api-key/api-key.delete.js +27 -41
  58. package/script/commands/api-key/api-key.edit.d.ts +41 -0
  59. package/script/commands/api-key/api-key.edit.d.ts.map +1 -0
  60. package/script/commands/api-key/api-key.edit.js +44 -0
  61. package/script/commands/api-key/api-key.list.d.ts +20 -8
  62. package/script/commands/api-key/api-key.list.d.ts.map +1 -1
  63. package/script/commands/api-key/api-key.list.js +27 -36
  64. package/script/commands/index.d.ts +3 -0
  65. package/script/commands/index.d.ts.map +1 -1
  66. package/script/commands/index.js +3 -0
  67. package/script/commands/secret/secret.create.d.ts +23 -8
  68. package/script/commands/secret/secret.create.d.ts.map +1 -1
  69. package/script/commands/secret/secret.create.js +27 -39
  70. package/script/commands/secret/secret.delete.d.ts +20 -8
  71. package/script/commands/secret/secret.delete.d.ts.map +1 -1
  72. package/script/commands/secret/secret.delete.js +27 -41
  73. package/script/commands/secret/secret.edit.d.ts +45 -0
  74. package/script/commands/secret/secret.edit.d.ts.map +1 -0
  75. package/script/commands/secret/secret.edit.js +44 -0
  76. package/script/commands/secret/secret.list.d.ts +20 -7
  77. package/script/commands/secret/secret.list.d.ts.map +1 -1
  78. package/script/commands/secret/secret.list.js +27 -41
  79. package/script/commands/variable/variable.create.d.ts +21 -7
  80. package/script/commands/variable/variable.create.d.ts.map +1 -1
  81. package/script/commands/variable/variable.create.js +26 -44
  82. package/script/commands/variable/variable.delete.d.ts +20 -8
  83. package/script/commands/variable/variable.delete.d.ts.map +1 -1
  84. package/script/commands/variable/variable.delete.js +27 -44
  85. package/script/commands/variable/variable.edit.d.ts +45 -0
  86. package/script/commands/variable/variable.edit.d.ts.map +1 -0
  87. package/script/commands/variable/variable.edit.js +44 -0
  88. package/script/commands/variable/variable.list.d.ts +19 -7
  89. package/script/commands/variable/variable.list.d.ts.map +1 -1
  90. package/script/commands/variable/variable.list.js +27 -47
  91. package/script/contracts/api-key.d.ts +22 -1
  92. package/script/contracts/api-key.d.ts.map +1 -1
  93. package/script/contracts/api-key.js +18 -1
  94. package/script/contracts/secret.d.ts +16 -0
  95. package/script/contracts/secret.d.ts.map +1 -0
  96. package/script/contracts/secret.js +14 -0
  97. package/script/contracts/variable.d.ts +5 -1
  98. package/script/contracts/variable.d.ts.map +1 -1
  99. package/script/contracts/variable.js +4 -0
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VariableEditCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
5
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
6
+ const variable_js_1 = require("../../contracts/variable.js");
7
+ /**
8
+ * Edit a variable
9
+ */
10
+ class VariableEditCommand extends command_js_1.Command {
11
+ /**
12
+ * Whether the command should retry on failure
13
+ */
14
+ retryOnFailure = false;
15
+ /**
16
+ * Get the method
17
+ */
18
+ getMethod() {
19
+ return "PATCH";
20
+ }
21
+ /**
22
+ * Get the base url
23
+ */
24
+ getBaseUrl() {
25
+ return "https://tenant-store.api.flowcore.io";
26
+ }
27
+ /**
28
+ * Get the path
29
+ */
30
+ getPath() {
31
+ return `/api/v1/tenants/${this.input.tenantId}/variables/${this.input.key}`;
32
+ }
33
+ /**
34
+ * The allowed modes for the command
35
+ */
36
+ allowedModes = ["bearer"];
37
+ /**
38
+ * Parse the response
39
+ */
40
+ parseResponse(rawResponse) {
41
+ return (0, parse_response_helper_js_1.parseResponseHelper)(variable_js_1.VariableSchema, rawResponse);
42
+ }
43
+ }
44
+ exports.VariableEditCommand = VariableEditCommand;
@@ -1,5 +1,5 @@
1
- import { GraphQlCommand } from "../../common/command-graphql.js";
2
- import type { Variable } from "../../contracts/variable.js";
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 GraphQlCommand<VariableListInput, Variable[]> {
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":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE,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"}
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,40 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VariableListCommand = void 0;
4
- const typebox_1 = require("@sinclair/typebox");
5
- const command_graphql_js_1 = require("../../common/command-graphql.js");
4
+ const command_js_1 = require("../../common/command.js");
6
5
  const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
- const command_error_js_1 = require("../../exceptions/command-error.js");
8
- const graphQlQueryById = `
9
- query FLOWCORE_SDK_VARIABLE_LIST($tenantId: ID!) {
10
- organization(search: {id: $tenantId}) {
11
- variables {
12
- key
13
- value
14
- }
15
- }
16
- }
17
- `;
18
- const responseSchema = typebox_1.Type.Object({
19
- errors: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
20
- message: typebox_1.Type.String(),
21
- }))),
22
- data: typebox_1.Type.Union([
23
- typebox_1.Type.Object({
24
- organization: typebox_1.Type.Object({
25
- variables: typebox_1.Type.Array(typebox_1.Type.Object({
26
- key: typebox_1.Type.String(),
27
- value: typebox_1.Type.String(),
28
- })),
29
- }),
30
- }),
31
- typebox_1.Type.Null(),
32
- ]),
33
- });
6
+ const variable_js_1 = require("../../contracts/variable.js");
7
+ const typebox_1 = require("@sinclair/typebox");
34
8
  /**
35
9
  * List variables
36
10
  */
37
- class VariableListCommand extends command_graphql_js_1.GraphQlCommand {
11
+ class VariableListCommand extends command_js_1.Command {
12
+ /**
13
+ * Whether the command should retry on failure
14
+ */
15
+ retryOnFailure = false;
16
+ /**
17
+ * Get the method
18
+ */
19
+ getMethod() {
20
+ return "GET";
21
+ }
22
+ /**
23
+ * Get the base url
24
+ */
25
+ getBaseUrl() {
26
+ return "https://tenant-store.api.flowcore.io";
27
+ }
28
+ /**
29
+ * Get the path
30
+ */
31
+ getPath() {
32
+ return `/api/v1/tenants/${this.input.tenantId}/variables`;
33
+ }
38
34
  /**
39
35
  * The allowed modes for the command
40
36
  */
@@ -43,23 +39,7 @@ class VariableListCommand extends command_graphql_js_1.GraphQlCommand {
43
39
  * Parse the response
44
40
  */
45
41
  parseResponse(rawResponse) {
46
- const response = (0, parse_response_helper_js_1.parseResponseHelper)(responseSchema, rawResponse);
47
- if (response.errors) {
48
- throw new command_error_js_1.CommandError(this.constructor.name, response.errors[0].message);
49
- }
50
- if (!response.data) {
51
- throw new command_error_js_1.CommandError(this.constructor.name, "Failed to list variables");
52
- }
53
- return response.data.organization.variables;
54
- }
55
- /**
56
- * Get the body for the request
57
- */
58
- getBody() {
59
- return {
60
- query: graphQlQueryById,
61
- variables: this.input,
62
- };
42
+ return (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(variable_js_1.VariableSchema), rawResponse);
63
43
  }
64
44
  }
65
45
  exports.VariableListCommand = VariableListCommand;
@@ -1,14 +1,35 @@
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 an api key
4
4
  */
5
5
  export declare const ApiKeySchema: TObject<{
6
6
  id: TString;
7
+ tenantId: TString;
7
8
  name: TString;
9
+ description: TString;
10
+ maskedApiKey: TString;
8
11
  createdAt: TString;
12
+ lastUsedAt: TUnion<[TString, TNull]>;
9
13
  }>;
10
14
  /**
11
15
  * The type for an api key
12
16
  */
13
17
  export type ApiKey = Static<typeof ApiKeySchema>;
18
+ /**
19
+ * The schema for an api key with value
20
+ */
21
+ export declare const ApiKeyWithValueSchema: TObject<{
22
+ id: TString;
23
+ tenantId: TString;
24
+ name: TString;
25
+ description: TString;
26
+ maskedApiKey: TString;
27
+ createdAt: TString;
28
+ lastUsedAt: TUnion<[TString, TNull]>;
29
+ apiKey: TString;
30
+ }>;
31
+ /**
32
+ * The type for an api key with value
33
+ */
34
+ export type ApiKeyWithValue = Static<typeof ApiKeyWithValueSchema>;
14
35
  //# sourceMappingURL=api-key.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/contracts/api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC;IACjC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,EAAE,OAAO,CAAA;CACnB,CAIC,CAAA;AACF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA"}
1
+ {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/contracts/api-key.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,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;CACrC,CAQC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC;IAC1C,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;IACpC,MAAM,EAAE,OAAO,CAAA;CAChB,CASC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -1,12 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiKeySchema = void 0;
3
+ exports.ApiKeyWithValueSchema = exports.ApiKeySchema = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
5
  /**
6
6
  * The schema for an api key
7
7
  */
8
8
  exports.ApiKeySchema = typebox_1.Type.Object({
9
9
  id: typebox_1.Type.String(),
10
+ tenantId: typebox_1.Type.String(),
10
11
  name: typebox_1.Type.String(),
12
+ description: typebox_1.Type.String(),
13
+ maskedApiKey: typebox_1.Type.String(),
11
14
  createdAt: typebox_1.Type.String(),
15
+ lastUsedAt: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
16
+ });
17
+ /**
18
+ * The schema for an api key with value
19
+ */
20
+ exports.ApiKeyWithValueSchema = typebox_1.Type.Object({
21
+ id: typebox_1.Type.String(),
22
+ tenantId: typebox_1.Type.String(),
23
+ name: typebox_1.Type.String(),
24
+ description: typebox_1.Type.String(),
25
+ maskedApiKey: typebox_1.Type.String(),
26
+ createdAt: typebox_1.Type.String(),
27
+ lastUsedAt: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
28
+ apiKey: typebox_1.Type.String(),
12
29
  });
@@ -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,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecretSchema = void 0;
4
+ const typebox_1 = require("@sinclair/typebox");
5
+ /**
6
+ * The schema for a secret
7
+ */
8
+ exports.SecretSchema = typebox_1.Type.Object({
9
+ tenantId: typebox_1.Type.String(),
10
+ key: typebox_1.Type.String(),
11
+ description: typebox_1.Type.String(),
12
+ createdAt: typebox_1.Type.String(),
13
+ updatedAt: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
14
+ });
@@ -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;AAEjF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC;IACnC,GAAG,EAAE,OAAO,CAAA;IACZ,KAAK,EAAE,OAAO,CAAA;CACf,CAGC,CAAA;AACF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,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"}
@@ -6,6 +6,10 @@ const typebox_1 = require("@sinclair/typebox");
6
6
  * The schema for a variable
7
7
  */
8
8
  exports.VariableSchema = typebox_1.Type.Object({
9
+ tenantId: typebox_1.Type.String(),
9
10
  key: typebox_1.Type.String(),
11
+ description: typebox_1.Type.String(),
10
12
  value: typebox_1.Type.String(),
13
+ createdAt: typebox_1.Type.String(),
14
+ updatedAt: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
11
15
  });