@checkstack/backend-api 0.9.0 → 0.10.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 +25 -0
- package/package.json +1 -1
- package/src/schema-utils.ts +3 -0
- package/src/zod-config.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @checkstack/backend-api
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 23c80bc: ### Jira Data Center Support
|
|
8
|
+
|
|
9
|
+
Added support for on-premise Jira Data Center installations alongside existing Jira Cloud support:
|
|
10
|
+
|
|
11
|
+
- **Authentication mode switching**: New `authMode` field (`cloud` | `datacenter`) on connection configuration. Cloud uses Basic Auth (email + API token), Data Center uses Bearer Auth (Personal Access Token).
|
|
12
|
+
- **API version routing**: Automatically selects REST API v3 for Cloud and v2 for Data Center.
|
|
13
|
+
- **Description format**: Cloud uses Atlassian Document Format (ADF), Data Center uses plain text.
|
|
14
|
+
- **Connection schema v2**: Backward-compatible — defaults to `cloud` mode for existing connections.
|
|
15
|
+
|
|
16
|
+
### DynamicForm `x-hidden-when` Conditional Visibility
|
|
17
|
+
|
|
18
|
+
New generic platform feature for conditionally hiding form fields based on sibling field values:
|
|
19
|
+
|
|
20
|
+
- Added `x-hidden-when` metadata extension to `ConfigMeta` and `JsonSchemaProperty`.
|
|
21
|
+
- DynamicForm automatically hides fields and skips their validation when conditions match.
|
|
22
|
+
- Used by Jira integration to hide the email field when `authMode` is `datacenter`.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- @checkstack/queue-api@0.2.9
|
|
27
|
+
|
|
3
28
|
## 0.9.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/package.json
CHANGED
package/src/schema-utils.ts
CHANGED
|
@@ -67,6 +67,9 @@ function addSchemaMetadata(
|
|
|
67
67
|
if (meta["x-editor-types"]) {
|
|
68
68
|
jsonField["x-editor-types"] = meta["x-editor-types"];
|
|
69
69
|
}
|
|
70
|
+
if (meta["x-hidden-when"]) {
|
|
71
|
+
jsonField["x-hidden-when"] = meta["x-hidden-when"];
|
|
72
|
+
}
|
|
70
73
|
if (meta["x-options-resolver"]) {
|
|
71
74
|
jsonField["x-options-resolver"] = meta["x-options-resolver"];
|
|
72
75
|
if (meta["x-depends-on"])
|
package/src/zod-config.ts
CHANGED
|
@@ -22,6 +22,13 @@ export interface ConfigMeta {
|
|
|
22
22
|
"x-depends-on"?: string[];
|
|
23
23
|
/** If true, renders a searchable/filterable dropdown */
|
|
24
24
|
"x-searchable"?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Conditionally hide this field based on sibling field values.
|
|
27
|
+
* Keys are sibling field names, values are arrays of values that trigger hiding.
|
|
28
|
+
* The field is hidden when any condition matches.
|
|
29
|
+
* @example { authMode: ["datacenter"] } — hides this field when authMode is "datacenter"
|
|
30
|
+
*/
|
|
31
|
+
"x-hidden-when"?: Record<string, string[]>;
|
|
25
32
|
/**
|
|
26
33
|
* Available editor types for this field. Renders a dropdown to select editor mode.
|
|
27
34
|
* When templateProperties are provided to DynamicForm, autocomplete works in all types.
|