@yadsh/dsh-qa-integrations 0.8.0 → 0.8.2
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/lib/client/operator-card.js +30 -2
- package/lib/client/operator-card.js.map +1 -1
- package/lib/client/operator-controls.js +113 -46
- package/lib/client/operator-controls.js.map +1 -1
- package/lib/client/operator-drafts.js +62 -0
- package/lib/client/operator-drafts.js.map +1 -0
- package/lib/client.js +255 -114
- package/lib/client.js.map +1 -1
- package/lib/types/client/operator-controls.d.ts +20 -0
- package/lib/types/client/operator-drafts.d.ts +44 -0
- package/package.json +5 -5
|
@@ -96,17 +96,37 @@ export interface InstanceDraft {
|
|
|
96
96
|
readonly id: string;
|
|
97
97
|
readonly label: string;
|
|
98
98
|
readonly baseUrl: string;
|
|
99
|
+
/**
|
|
100
|
+
* Which product answers at the address, on the providers that distinguish a
|
|
101
|
+
* Cloud deployment from a self-hosted Server / Data Center one. Absent on
|
|
102
|
+
* every other provider, and on a row whose operator never touched the
|
|
103
|
+
* control — the Host resolver reads that as `cloud`.
|
|
104
|
+
*/
|
|
105
|
+
readonly deploymentType?: string | undefined;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* Deployment instances (GitLab, Confluence, Jira sites, Test IT, Weblate): a
|
|
102
109
|
* row edits id, label and address, and every committed edit writes the whole
|
|
103
110
|
* list, because a partially stored row would fail the resolvers anyway.
|
|
111
|
+
*
|
|
112
|
+
* The providers that host both a Cloud product and a self-hosted one pass
|
|
113
|
+
* `deployments` as well, and the row then carries a fourth control: the row is
|
|
114
|
+
* written with the key it selects, and a row nobody touched keeps the key out
|
|
115
|
+
* of the payload the other providers' rows must keep clean.
|
|
104
116
|
*/
|
|
105
117
|
export declare function InstanceListField(props: {
|
|
106
118
|
label: string;
|
|
107
119
|
hint?: string;
|
|
108
120
|
path: readonly string[];
|
|
109
121
|
instances: readonly InstanceDraft[];
|
|
122
|
+
/**
|
|
123
|
+
* Products a row may declare, first one being what the Host reads when the
|
|
124
|
+
* row names none. Absent for every provider without that distinction.
|
|
125
|
+
*/
|
|
126
|
+
deployments?: readonly {
|
|
127
|
+
readonly value: string;
|
|
128
|
+
readonly label: string;
|
|
129
|
+
}[];
|
|
110
130
|
disabled: boolean;
|
|
111
131
|
write: ConfigWrite;
|
|
112
132
|
unset: ConfigUnset;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Draft completeness of the operator card's list rows.
|
|
3
|
+
*
|
|
4
|
+
* Every list editor commits the whole array at its parent path, and the Host
|
|
5
|
+
* re-validates that array when it resolves the config: a profile without an id,
|
|
6
|
+
* an instance or a resource boundary fails `resolveManagedServiceCredentials`,
|
|
7
|
+
* and an instance without a usable address fails the provider's own resolver —
|
|
8
|
+
* so one unfinished row takes the *whole* write down with it. The card keeps a
|
|
9
|
+
* row that is not filled in yet as a local draft, says what it is still
|
|
10
|
+
* missing, and writes only the rows the Host can take.
|
|
11
|
+
* @module client/operator-drafts
|
|
12
|
+
*/
|
|
13
|
+
/** The fields an instance row needs before the Host takes it. */
|
|
14
|
+
export interface InstanceDraftLike {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly label?: string;
|
|
17
|
+
readonly baseUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* Which product answers at the address, on the deployments that distinguish
|
|
20
|
+
* one (Jira, Confluence). Deliberately not part of completeness: an absent
|
|
21
|
+
* value is what the Host resolver reads as `cloud`, so a row that names no
|
|
22
|
+
* product is still one the Host takes.
|
|
23
|
+
*/
|
|
24
|
+
readonly deploymentType?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
/** The fields a managed-credential profile row needs. */
|
|
27
|
+
export interface ProfileDraftLike {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly provider: string;
|
|
30
|
+
readonly instance: string;
|
|
31
|
+
readonly resources: ReadonlyArray<readonly [string, string]>;
|
|
32
|
+
}
|
|
33
|
+
/** What an instance row is still missing; empty when the Host would take it. */
|
|
34
|
+
export declare function instanceDraftMissing(row: InstanceDraftLike): readonly string[];
|
|
35
|
+
/** What a profile row is still missing; empty when the Host would take it. */
|
|
36
|
+
export declare function profileDraftMissing(row: ProfileDraftLike): readonly string[];
|
|
37
|
+
/**
|
|
38
|
+
* What the card says about a row it has not committed: the missing fields, or —
|
|
39
|
+
* when nothing is missing and the Host still did not take the row — that the
|
|
40
|
+
* write did not land, which is the one thing the operator must never be left
|
|
41
|
+
* guessing about.
|
|
42
|
+
*/
|
|
43
|
+
export declare function draftNote(missing: readonly string[]): string;
|
|
44
|
+
//# sourceMappingURL=operator-drafts.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yadsh/dsh-qa-integrations",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Principal-scoped, encrypted user integrations for DSH QA Surface",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"zod": "^4.4.3",
|
|
90
|
-
"@yadsh/dsh-plugin-log": "^0.4.0",
|
|
91
90
|
"@yadsh/dsh-plugin-kit": "^0.3.0",
|
|
92
|
-
"@yadsh/dsh-
|
|
91
|
+
"@yadsh/dsh-plugin-log": "^0.4.0",
|
|
92
|
+
"@yadsh/dsh-qa-surface": "^0.11.2"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
95
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
"typescript": "^7.0.2",
|
|
124
124
|
"vitest": "^4.1.11",
|
|
125
125
|
"@yadsh/dsh-config": "^0.0.0",
|
|
126
|
-
"@yadsh/dsh-
|
|
127
|
-
"@yadsh/dsh-
|
|
126
|
+
"@yadsh/dsh-test-kit": "^0.1.0",
|
|
127
|
+
"@yadsh/dsh-plugin-scripts": "^0.0.0"
|
|
128
128
|
},
|
|
129
129
|
"publishConfig": {
|
|
130
130
|
"access": "public",
|