@knkcs/importhub-ui 0.0.0-stage → 0.1.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 +8 -0
- package/LICENSE +30 -0
- package/README.md +101 -2
- package/dist/index.d.ts +209 -0
- package/dist/index.js +134 -0
- package/dist/index.js.map +1 -0
- package/dist/testing.d.ts +75 -0
- package/dist/testing.js +57 -0
- package/dist/testing.js.map +1 -0
- package/package.json +92 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 (2026-12-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **ui:** @knkcs/importhub-ui package and the Standalone App (F1) ([#82](https://github.com/knkCS/importhub/issues/82)) ([c44def1](https://github.com/knkCS/importhub/commit/c44def1e8e1e65b2514624160d276110fc335154))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Copyright (c) 2026 knk Gruppe (https://knk.de/)
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software and associated documentation files (the "Software") are the
|
|
6
|
+
proprietary property of knk Gruppe and its subsidiaries.
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted to employees and contractors of knk Gruppe and
|
|
9
|
+
its subsidiary companies to use, copy, modify, and distribute the Software
|
|
10
|
+
solely for internal business purposes within the knk group of companies.
|
|
11
|
+
|
|
12
|
+
The following restrictions apply:
|
|
13
|
+
|
|
14
|
+
1. The Software may not be used, copied, modified, merged, published,
|
|
15
|
+
distributed, sublicensed, or sold by any person or entity outside of
|
|
16
|
+
the knk group of companies without prior written consent from knk Gruppe.
|
|
17
|
+
|
|
18
|
+
2. The Software may not be incorporated into products or services offered
|
|
19
|
+
to third parties outside of the knk group of companies.
|
|
20
|
+
|
|
21
|
+
3. This license notice shall be included in all copies or substantial
|
|
22
|
+
portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,102 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @knkcs/importhub-ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
importhub's screens for knk hosts, built on [anker](https://github.com/knkCS/anker). They talk to [importhub](https://github.com/knkCS/importhub)'s Connect API. importhub's own Standalone App (`web/` in the repository) is built on this package, and another solution embeds it the same way (ADR 0005, amended).
|
|
4
|
+
|
|
5
|
+
The package exports **screens, not routes**. The host draws the page frame (anker's host contract, knkcms/core ADR 0003): a screen reports its title, breadcrumbs and header actions, reads the viewer and the active workspace from `@knkcs/anker/host`, and asks the host for everything only the host knows through `ImporthubHostProvider`. The package never navigates on its own.
|
|
6
|
+
|
|
7
|
+
So far it holds a start page per section (Imports, Import Profiles, Mappings, Entity Sets). The screens for Imports, the start flow, the Dry Run report, Profiles, Mappings with the Mapping editor and Mapping Test, Entity Sets and configuration history follow.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install @knkcs/importhub-ui
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Peer dependencies: `react` and `react-dom` 19, `@knkcs/anker` ^5.20, `@tanstack/react-query` 5, `i18next` 26, `react-i18next` 17, `@bufbuild/protobuf` 2, `@connectrpc/connect` 2, `@connectrpc/connect-web` 2 and `lucide-react`. `package.json` has the exact ranges. anker brings its own peers (Chakra UI 3, react-router, react-hook-form, …).
|
|
16
|
+
|
|
17
|
+
## Host contract
|
|
18
|
+
|
|
19
|
+
A host mounts the screens inside anker's `Provider` (or its own Chakra system) and `HostProvider`, a `QueryClientProvider`, an i18next instance that has the package's translations, and a router.
|
|
20
|
+
|
|
21
|
+
### Client
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { createConnectImporthubClient } from "@knkcs/importhub-ui";
|
|
25
|
+
|
|
26
|
+
// "" when importhub serves the page itself; the mount prefix when a host proxies it.
|
|
27
|
+
const client = createConnectImporthubClient({
|
|
28
|
+
baseUrl: "/api/importhub",
|
|
29
|
+
fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`createConnectImporthubClient({ baseUrl, fetch?, transport? })` returns an `ImporthubClient`. The screens depend on this interface, not on the generated Connect client, so they read domain types and a test can pass the stub from `./testing` instead.
|
|
34
|
+
|
|
35
|
+
### Workspace and identity
|
|
36
|
+
|
|
37
|
+
importhub takes the workspace from the caller's token, never from a request. The screens read the active workspace from anker's `useHostIdentity()` and key every query by it (`importhubKeys`), so a host that switches workspace (a new token and a new identity) shows the new workspace's data, never the old one's cache.
|
|
38
|
+
|
|
39
|
+
### Paths and the Change Set link
|
|
40
|
+
|
|
41
|
+
```tsx
|
|
42
|
+
import { ImporthubHostProvider, STANDALONE_IMPORTHUB_PATHS } from "@knkcs/importhub-ui";
|
|
43
|
+
|
|
44
|
+
<ImporthubHostProvider
|
|
45
|
+
host={{
|
|
46
|
+
// Where the host mounts each section's index: imports, profiles, mappings, entitySets.
|
|
47
|
+
paths: STANDALONE_IMPORTHUB_PATHS,
|
|
48
|
+
// Where a Change Set lives in contenthub, or null when the host has no contenthub to link to.
|
|
49
|
+
changeSetHref: (changeSetId) => `/change-sets/${changeSetId}`,
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
52
|
+
{routes}
|
|
53
|
+
</ImporthubHostProvider>;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
An Import fills one contenthub Change Set, and its page links out to it (`ChangeSetLink`) where `changeSetHref` says. Without a provider the screens use the Standalone App's paths and show no Change Set link.
|
|
57
|
+
|
|
58
|
+
### Screens
|
|
59
|
+
|
|
60
|
+
- `ImporthubStartPage({ client, section })`: a section's start page, until its screens exist.
|
|
61
|
+
|
|
62
|
+
### Translations
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
import { IMPORTHUB_UI_NS, i18nResources } from "@knkcs/importhub-ui";
|
|
66
|
+
|
|
67
|
+
i18n.init({
|
|
68
|
+
resources: { en: { [IMPORTHUB_UI_NS]: i18nResources.en[IMPORTHUB_UI_NS] }, de: { … } },
|
|
69
|
+
ns: [IMPORTHUB_UI_NS, …],
|
|
70
|
+
});
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Every string is under `IMPORTHUB_UI_NS`, in English and German (knkcms/core ADR 0005). List the constant, never the literal, so a rename fails the host's compile rather than rendering raw keys.
|
|
74
|
+
|
|
75
|
+
## Testing a host
|
|
76
|
+
|
|
77
|
+
`@knkcs/importhub-ui/testing` exports `createStubImporthubClient`, an `ImporthubClient` over in-memory workspaces seeded from its fixtures, and `stubIdentity()` for anker's `TestHost`:
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
import { TestHost } from "@knkcs/anker/host";
|
|
81
|
+
import { ImporthubStartPage } from "@knkcs/importhub-ui";
|
|
82
|
+
import { createStubImporthubClient, stubIdentity } from "@knkcs/importhub-ui/testing";
|
|
83
|
+
|
|
84
|
+
<TestHost identity={stubIdentity()}>
|
|
85
|
+
<ImporthubStartPage client={createStubImporthubClient()} section="imports" />
|
|
86
|
+
</TestHost>;
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`switchWorkspace(id)` makes the stub answer for another workspace, as a host's new token would.
|
|
90
|
+
|
|
91
|
+
## Develop
|
|
92
|
+
|
|
93
|
+
From the repository root, after `npm ci`:
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
npm run typecheck:ui
|
|
97
|
+
npm run lint:ui
|
|
98
|
+
npm run test:ui # node tests, and the screens in Chromium (vitest browser mode, Playwright)
|
|
99
|
+
npm run build:ui
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The screens' tests (`*.test.tsx`) run in a real Chromium; the checks that read files or need no DOM (`*.test.ts`: anker's rules, the translations, the clients) run in Node. `pretest` installs Playwright's Chromium when it is missing, as in anker and taskhub-ui.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { Transport } from '@connectrpc/connect';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The link out to a Change Set in contenthub, where the host says it is
|
|
8
|
+
* (`ImporthubHost.changeSetHref`). Nothing when the host has no address for
|
|
9
|
+
* it: a link to nowhere is worse than none.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ChangeSetLink({ changeSetId }: ChangeSetLinkProps): JSX.Element | null;
|
|
12
|
+
|
|
13
|
+
export declare interface ChangeSetLinkProps {
|
|
14
|
+
changeSetId: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The one call a host makes to talk to importhub (knkcms/core ADR 0003):
|
|
19
|
+
* an `ImporthubClient` over Connect.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createConnectImporthubClient(options: CreateConnectImporthubClientOptions): ImporthubClient;
|
|
22
|
+
|
|
23
|
+
export declare interface CreateConnectImporthubClientOptions {
|
|
24
|
+
/**
|
|
25
|
+
* Base URL on the host origin under which `/importhub.v1.…Service/…` is
|
|
26
|
+
* served: "" when importhub serves the page itself (the Standalone App),
|
|
27
|
+
* the mount prefix when a host proxies it.
|
|
28
|
+
*/
|
|
29
|
+
baseUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
* The fetch the transport calls, e.g. one that adds `credentials:
|
|
32
|
+
* "include"` so a session cookie travels, or a host's own token.
|
|
33
|
+
*/
|
|
34
|
+
fetch?: typeof fetch;
|
|
35
|
+
/** A pre-built transport (tests: `createRouterTransport`). Overrides baseUrl and fetch. */
|
|
36
|
+
transport?: Transport;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** An Entity Set, as a list names it: its draft's name. */
|
|
40
|
+
export declare interface EntitySetSummary {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** The package's bundled translations, keyed by language, then by namespace. */
|
|
46
|
+
export declare const i18nResources: {
|
|
47
|
+
en: {
|
|
48
|
+
"importhub-ui": {
|
|
49
|
+
section: {
|
|
50
|
+
imports: {
|
|
51
|
+
title: string;
|
|
52
|
+
empty: string;
|
|
53
|
+
};
|
|
54
|
+
profiles: {
|
|
55
|
+
title: string;
|
|
56
|
+
summary_zero: string;
|
|
57
|
+
summary_one: string;
|
|
58
|
+
summary_other: string;
|
|
59
|
+
};
|
|
60
|
+
mappings: {
|
|
61
|
+
title: string;
|
|
62
|
+
empty: string;
|
|
63
|
+
};
|
|
64
|
+
entitySets: {
|
|
65
|
+
title: string;
|
|
66
|
+
summary_zero: string;
|
|
67
|
+
summary_one: string;
|
|
68
|
+
summary_other: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
startPage: {
|
|
72
|
+
loading: string;
|
|
73
|
+
error: string;
|
|
74
|
+
};
|
|
75
|
+
changeSet: {
|
|
76
|
+
open: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
de: {
|
|
81
|
+
"importhub-ui": {
|
|
82
|
+
section: {
|
|
83
|
+
imports: {
|
|
84
|
+
title: string;
|
|
85
|
+
empty: string;
|
|
86
|
+
};
|
|
87
|
+
profiles: {
|
|
88
|
+
title: string;
|
|
89
|
+
summary_zero: string;
|
|
90
|
+
summary_one: string;
|
|
91
|
+
summary_other: string;
|
|
92
|
+
};
|
|
93
|
+
mappings: {
|
|
94
|
+
title: string;
|
|
95
|
+
empty: string;
|
|
96
|
+
};
|
|
97
|
+
entitySets: {
|
|
98
|
+
title: string;
|
|
99
|
+
summary_zero: string;
|
|
100
|
+
summary_one: string;
|
|
101
|
+
summary_other: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
startPage: {
|
|
105
|
+
loading: string;
|
|
106
|
+
error: string;
|
|
107
|
+
};
|
|
108
|
+
changeSet: {
|
|
109
|
+
open: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** Each section's icon, as the Standalone App's sidebar shows it too. */
|
|
116
|
+
export declare const IMPORTHUB_SECTION_ICONS: Record<ImporthubSection, LucideIcon>;
|
|
117
|
+
|
|
118
|
+
/** Every section, in the order a host lists them. */
|
|
119
|
+
export declare const IMPORTHUB_SECTIONS: readonly ImporthubSection[];
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The i18next namespace every string in this package is looked up under. A
|
|
123
|
+
* host merges `i18nResources` and lists this constant among its namespaces
|
|
124
|
+
* (knkcms/core ADR 0005), never the literal, so a rename fails the host's
|
|
125
|
+
* compile rather than rendering raw keys.
|
|
126
|
+
*/
|
|
127
|
+
export declare const IMPORTHUB_UI_NS = "importhub-ui";
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* What the screens ask of importhub. Every call acts on the caller's
|
|
131
|
+
* workspace, which importhub takes from the token's active workspace and
|
|
132
|
+
* never from an argument: a host switches workspace by switching the token.
|
|
133
|
+
*/
|
|
134
|
+
export declare interface ImporthubClient {
|
|
135
|
+
/** Every Import Profile of the workspace, by name. */
|
|
136
|
+
listImportProfiles(): Promise<ImportProfileSummary[]>;
|
|
137
|
+
/** Every Entity Set of the workspace, by name. */
|
|
138
|
+
listEntitySets(): Promise<EntitySetSummary[]>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export declare interface ImporthubHost {
|
|
142
|
+
/** Where the host mounts each section's index, for breadcrumbs and links. */
|
|
143
|
+
paths: ImporthubPaths;
|
|
144
|
+
/**
|
|
145
|
+
* The address of a Change Set in contenthub, which an Import's page links
|
|
146
|
+
* out to (follow-an-import:AC5). null when the host has no contenthub to
|
|
147
|
+
* link to: the screen then shows no link rather than a broken one.
|
|
148
|
+
*/
|
|
149
|
+
changeSetHref: (changeSetId: string) => string | null;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** Provides the host's decisions to every importhub screen beneath it. */
|
|
153
|
+
export declare function ImporthubHostProvider({ host, children }: ImporthubHostProviderProps): JSX.Element;
|
|
154
|
+
|
|
155
|
+
export declare interface ImporthubHostProviderProps {
|
|
156
|
+
host: ImporthubHost;
|
|
157
|
+
children: ReactNode;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export declare const importhubKeys: {
|
|
161
|
+
all: (workspaceId: string) => readonly ["importhub", string];
|
|
162
|
+
importProfiles: (workspaceId: string) => readonly ["importhub", string, "importProfiles"];
|
|
163
|
+
entitySets: (workspaceId: string) => readonly ["importhub", string, "entitySets"];
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/** Where the host mounts each section's index. */
|
|
167
|
+
export declare type ImporthubPaths = Record<ImporthubSection, string>;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* importhub's sections: Imports, the host's own work, and the configuration
|
|
171
|
+
* an admin manages (CONTEXT.md, "Configuration").
|
|
172
|
+
*/
|
|
173
|
+
export declare type ImporthubSection = "imports" | "profiles" | "mappings" | "entitySets";
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* A section's start page, until its screens exist: the section's
|
|
177
|
+
* title in the frame, and a body saying what the workspace holds of it. Where
|
|
178
|
+
* importhub can already list a section (Import Profiles, Entity Sets) it
|
|
179
|
+
* says how many there are, read for the host's active workspace; Imports and
|
|
180
|
+
* Mappings have nothing to read yet.
|
|
181
|
+
*/
|
|
182
|
+
export declare function ImporthubStartPage({ client, section }: ImporthubStartPageProps): JSX.Element;
|
|
183
|
+
|
|
184
|
+
export declare interface ImporthubStartPageProps {
|
|
185
|
+
client: ImporthubClient;
|
|
186
|
+
/** The section whose start page this is. */
|
|
187
|
+
section: ImporthubSection;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** An Import Profile, as a list names it. */
|
|
191
|
+
export declare interface ImportProfileSummary {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The Standalone App's paths: Imports at the top, the configuration under
|
|
198
|
+
* `/settings/<item>`, one page per item (odon's integration guide, "Sidebar
|
|
199
|
+
* layout").
|
|
200
|
+
*/
|
|
201
|
+
export declare const STANDALONE_IMPORTHUB_PATHS: ImporthubPaths;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The host's decisions; outside a provider, the Standalone App's paths and
|
|
205
|
+
* no Change Set links.
|
|
206
|
+
*/
|
|
207
|
+
export declare function useImporthubHost(): ImporthubHost;
|
|
208
|
+
|
|
209
|
+
export { }
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { createClient as G } from "@connectrpc/connect";
|
|
2
|
+
import { createConnectTransport as s } from "@connectrpc/connect-web";
|
|
3
|
+
import { fileDesc as e, serviceDesc as R } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { file_google_protobuf_timestamp as Z, file_google_protobuf_struct as S } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
import { jsx as t, jsxs as g, Fragment as d } from "react/jsx-runtime";
|
|
6
|
+
import { Link as A, Box as u, Spinner as r } from "@knkcs/anker/primitives";
|
|
7
|
+
import { ExternalLink as J, Ampersand as y, Waypoints as I, FileCog as B, FileUp as U } from "lucide-react";
|
|
8
|
+
import { useTranslation as b } from "react-i18next";
|
|
9
|
+
import { createContext as E, useContext as h } from "react";
|
|
10
|
+
import { EmptyState as Y } from "@knkcs/anker/atoms";
|
|
11
|
+
import { useHostIdentity as C } from "@knkcs/anker/host";
|
|
12
|
+
import { IndexPageTemplate as N } from "@knkcs/anker/templates";
|
|
13
|
+
import { useQuery as v } from "@tanstack/react-query";
|
|
14
|
+
const p = /* @__PURE__ */ e("CiBpbXBvcnRodWIvdjEvY29uZmlndXJhdGlvbi5wcm90bxIMaW1wb3J0aHViLnYxIkgKCFZhbGlkaXR5Eg0KBXZhbGlkGAEgASgIEi0KB3JlYXNvbnMYAiADKAsyHC5pbXBvcnRodWIudjEuVmFsaWRpdHlSZWFzb24iPQoOVmFsaWRpdHlSZWFzb24SDAoEcGF0aBgBIAEoCRIMCgRjb2RlGAIgASgJEg8KB21lc3NhZ2UYAyABKAkisAEKFUNvbmZpZ3VyYXRpb25SZXZpc2lvbhIKCgJpZBgBIAEoCRIQCghzYXZlZF9ieRgCIAEoCRIsCghzYXZlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASKAoIdmFsaWRpdHkYBCABKAsyFi5pbXBvcnRodWIudjEuVmFsaWRpdHkSIQoZcmVzdG9yZWRfZnJvbV9yZXZpc2lvbl9pZBgFIAEoCSKNAQoUQ29uZmlndXJhdGlvblJlbGVhc2USCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkSDgoGbnVtYmVyGAMgASgFEhMKC3JlbGVhc2VkX2J5GAQgASgJEi8KC3JlbGVhc2VkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCK/AQoSQ29uZmlndXJhdGlvblN0YXRlEhkKEWRyYWZ0X3JldmlzaW9uX2lkGAEgASgJEi4KDmRyYWZ0X3ZhbG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xldGVJbXBvcnRQcm9maWxlUmVxdWVzdBopLmltcG9ydGh1Yi52MS5EZWxldGVJbXBvcnRQcm9maWxlUmVzcG9uc2USdgoXQ3V0SW1wb3J0UHJvZmlsZVJlbGVhc2USLC5pbXBvcnRodWIudjEuQ3V0SW1wb3J0UHJvZmlsZVJlbGVhc2VSZXF1ZXN0Gi0uaW1wb3J0aHViLnYxLkN1dEltcG9ydFByb2ZpbGVSZWxlYXNlUmVzcG9uc2USeQoYTGlzdEltcG9ydFByb2ZpbGVIaXN0b3J5Ei0uaW1wb3J0aHViLnYxLkxpc3RJbXBvcnRQcm9maWxlSGlzdG9yeVJlcXVlc3QaLi5pbXBvcnRodWIudjEuTGlzdEltcG9ydFByb2ZpbGVIaXN0b3J5UmVzcG9uc2USiAEKHUNvbXBhcmVJbXBvcnRQcm9maWxlUmV2aXNpb25zEjIuaW1wb3J0aHViLnYxLkNvbXBhcmVJbXBvcnRQcm9maWxlUmV2aXNpb25zUmVxdWVzdBozLmltcG9ydGh1Yi52MS5Db21wYXJlSW1wb3J0UHJvZmlsZVJldmlzaW9uc1Jlc3BvbnNlEoUBChxSZXN0b3JlSW1wb3J0UHJvZmlsZVJldmlzaW9uEjEuaW1wb3J0aHViLnYxLlJlc3RvcmVJbXBvcnRQcm9maWxlUmV2aXNpb25SZXF1ZXN0GjIuaW1wb3J0aHViLnYxLlJlc3RvcmVJbXBvcnRQcm9maWxlUmV2aXNpb25SZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [S, Z, p]), x = /* @__PURE__ */ R(F, 0);
|
|
15
|
+
function Zl(l) {
|
|
16
|
+
const c = l.transport ?? s({ baseUrl: l.baseUrl, fetch: l.fetch }), o = G(x, c), m = G(z, c);
|
|
17
|
+
return {
|
|
18
|
+
async listImportProfiles() {
|
|
19
|
+
return (await o.listImportProfiles({})).importProfiles.map((n) => ({ id: n.id, name: n.content?.name ?? "" }));
|
|
20
|
+
},
|
|
21
|
+
async listEntitySets() {
|
|
22
|
+
return (await m.listEntitySets({})).entitySets.map((n) => ({ id: n.id, name: n.content?.name ?? "" }));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const H = { imports: { title: "Importe", empty: "In diesem Workspace gibt es noch keine Importe." }, profiles: { title: "Importprofile", summary_zero: "In diesem Workspace gibt es noch keine Importprofile.", summary_one: "In diesem Workspace gibt es ein Importprofil.", summary_other: "In diesem Workspace gibt es {{count}} Importprofile." }, mappings: { title: "Mappings", empty: "In diesem Workspace gibt es noch keine Mappings." }, entitySets: { title: "Entity Sets", summary_zero: "In diesem Workspace gibt es noch keine Entity Sets.", summary_one: "In diesem Workspace gibt es ein Entity Set.", summary_other: "In diesem Workspace gibt es {{count}} Entity Sets." } }, Q = { loading: "Wird geladen…", error: "Das konnte nicht geladen werden. Versuchen Sie es gleich noch einmal." }, w = { open: "Change Set in contenthub öffnen" }, k = {
|
|
27
|
+
section: H,
|
|
28
|
+
startPage: Q,
|
|
29
|
+
changeSet: w
|
|
30
|
+
}, K = { imports: { title: "Imports", empty: "No Imports in this workspace yet." }, profiles: { title: "Import Profiles", summary_zero: "No Import Profiles in this workspace yet.", summary_one: "This workspace has one Import Profile.", summary_other: "This workspace has {{count}} Import Profiles." }, mappings: { title: "Mappings", empty: "No Mappings in this workspace yet." }, entitySets: { title: "Entity Sets", summary_zero: "No Entity Sets in this workspace yet.", summary_one: "This workspace has one Entity Set.", summary_other: "This workspace has {{count}} Entity Sets." } }, f = { loading: "Loading…", error: "This could not be loaded. Try again in a moment." }, M = { open: "Open the Change Set in contenthub" }, T = {
|
|
31
|
+
section: K,
|
|
32
|
+
startPage: f,
|
|
33
|
+
changeSet: M
|
|
34
|
+
}, a = "importhub-ui", Gl = {
|
|
35
|
+
en: { [a]: T },
|
|
36
|
+
de: { [a]: k }
|
|
37
|
+
}, Xl = [
|
|
38
|
+
"imports",
|
|
39
|
+
"profiles",
|
|
40
|
+
"mappings",
|
|
41
|
+
"entitySets"
|
|
42
|
+
], j = {
|
|
43
|
+
imports: "/imports",
|
|
44
|
+
profiles: "/settings/import-profiles",
|
|
45
|
+
mappings: "/settings/mappings",
|
|
46
|
+
entitySets: "/settings/entity-sets"
|
|
47
|
+
}, D = {
|
|
48
|
+
paths: j,
|
|
49
|
+
changeSetHref: () => null
|
|
50
|
+
}, W = E(D);
|
|
51
|
+
function Rl({ host: l, children: c }) {
|
|
52
|
+
return /* @__PURE__ */ t(W.Provider, { value: l, children: c });
|
|
53
|
+
}
|
|
54
|
+
function _() {
|
|
55
|
+
return h(W);
|
|
56
|
+
}
|
|
57
|
+
function pl({ changeSetId: l }) {
|
|
58
|
+
const { t: c } = b(a), o = _().changeSetHref(l);
|
|
59
|
+
return o ? /* @__PURE__ */ g(A, { href: o, target: "_blank", rel: "noopener noreferrer", children: [
|
|
60
|
+
c("changeSet.open"),
|
|
61
|
+
/* @__PURE__ */ t(J, { size: 14, "aria-hidden": !0 })
|
|
62
|
+
] }) : null;
|
|
63
|
+
}
|
|
64
|
+
const i = {
|
|
65
|
+
all: (l) => ["importhub", l],
|
|
66
|
+
importProfiles: (l) => [...i.all(l), "importProfiles"],
|
|
67
|
+
entitySets: (l) => [...i.all(l), "entitySets"]
|
|
68
|
+
}, P = {
|
|
69
|
+
imports: U,
|
|
70
|
+
profiles: B,
|
|
71
|
+
mappings: I,
|
|
72
|
+
entitySets: y
|
|
73
|
+
};
|
|
74
|
+
function Wl({ client: l, section: c }) {
|
|
75
|
+
const { t: o } = b(a), m = P[c];
|
|
76
|
+
return /* @__PURE__ */ t(N, { title: o(`section.${c}.title`), children: /* @__PURE__ */ t(u, { px: "8", py: "6", children: /* @__PURE__ */ t(
|
|
77
|
+
Y,
|
|
78
|
+
{
|
|
79
|
+
icon: /* @__PURE__ */ t(m, { size: 32, "aria-hidden": !0 }),
|
|
80
|
+
header: o(`section.${c}.title`),
|
|
81
|
+
description: /* @__PURE__ */ t(O, { client: l, section: c })
|
|
82
|
+
}
|
|
83
|
+
) }) });
|
|
84
|
+
}
|
|
85
|
+
function O({ client: l, section: c }) {
|
|
86
|
+
switch (c) {
|
|
87
|
+
case "profiles":
|
|
88
|
+
return /* @__PURE__ */ t(
|
|
89
|
+
X,
|
|
90
|
+
{
|
|
91
|
+
section: c,
|
|
92
|
+
queryKey: i.importProfiles,
|
|
93
|
+
read: () => l.listImportProfiles()
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
case "entitySets":
|
|
97
|
+
return /* @__PURE__ */ t(
|
|
98
|
+
X,
|
|
99
|
+
{
|
|
100
|
+
section: c,
|
|
101
|
+
queryKey: i.entitySets,
|
|
102
|
+
read: () => l.listEntitySets()
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
default:
|
|
106
|
+
return /* @__PURE__ */ t(q, { section: c });
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function q({ section: l }) {
|
|
110
|
+
const { t: c } = b(a);
|
|
111
|
+
return /* @__PURE__ */ t(d, { children: c(`section.${l}.empty`) });
|
|
112
|
+
}
|
|
113
|
+
function X({
|
|
114
|
+
section: l,
|
|
115
|
+
queryKey: c,
|
|
116
|
+
read: o
|
|
117
|
+
}) {
|
|
118
|
+
const { t: m } = b(a), { workspaceId: V } = C(), n = v({ queryKey: c(V), queryFn: o });
|
|
119
|
+
return n.isPending ? /* @__PURE__ */ t(r, { size: "sm", "aria-label": m("startPage.loading") }) : n.isError ? /* @__PURE__ */ t(d, { children: m("startPage.error") }) : /* @__PURE__ */ t(d, { children: m(`section.${l}.summary`, { count: n.data.length }) });
|
|
120
|
+
}
|
|
121
|
+
export {
|
|
122
|
+
pl as ChangeSetLink,
|
|
123
|
+
Xl as IMPORTHUB_SECTIONS,
|
|
124
|
+
P as IMPORTHUB_SECTION_ICONS,
|
|
125
|
+
a as IMPORTHUB_UI_NS,
|
|
126
|
+
Rl as ImporthubHostProvider,
|
|
127
|
+
Wl as ImporthubStartPage,
|
|
128
|
+
j as STANDALONE_IMPORTHUB_PATHS,
|
|
129
|
+
Zl as createConnectImporthubClient,
|
|
130
|
+
Gl as i18nResources,
|
|
131
|
+
i as importhubKeys,
|
|
132
|
+
_ as useImporthubHost
|
|
133
|
+
};
|
|
134
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../gen/ts/importhub/v1/configuration_pb.ts","../../../gen/ts/importhub/v1/entity_set_pb.ts","../../../gen/ts/importhub/v1/import_profile_pb.ts","../src/client/connect-importhub-client.ts","../src/i18n/resources.ts","../src/common/host.tsx","../src/common/change-set-link.tsx","../src/common/query-keys.ts","../src/common/start-page.tsx"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts\"\n// @generated from file importhub/v1/configuration.proto (package importhub.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file importhub/v1/configuration.proto.\n */\nexport const file_importhub_v1_configuration: GenFile = /*@__PURE__*/\n fileDesc(\"CiBpbXBvcnRodWIvdjEvY29uZmlndXJhdGlvbi5wcm90bxIMaW1wb3J0aHViLnYxIkgKCFZhbGlkaXR5Eg0KBXZhbGlkGAEgASgIEi0KB3JlYXNvbnMYAiADKAsyHC5pbXBvcnRodWIudjEuVmFsaWRpdHlSZWFzb24iPQoOVmFsaWRpdHlSZWFzb24SDAoEcGF0aBgBIAEoCRIMCgRjb2RlGAIgASgJEg8KB21lc3NhZ2UYAyABKAkisAEKFUNvbmZpZ3VyYXRpb25SZXZpc2lvbhIKCgJpZBgBIAE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HUZJRUxEX0NPTVBBUklTT05fU1RBVFVTX0FEREVEEAISIwofRklFTERfQ09NUEFSSVNPTl9TVEFUVVNfUkVNT1ZFRBADEiMKH0ZJRUxEX0NPTVBBUklTT05fU1RBVFVTX0NIQU5HRUQQBEI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM\", [file_google_protobuf_timestamp]);\n\n/**\n * Validity says whether a Revision may be released, and if not, why. It is\n * decided when the Revision is saved, and decided again when a Release is\n * cut from it, so a Release never holds a Revision that is invalid by the\n * rules in force when it was cut.\n *\n * @generated from message importhub.v1.Validity\n */\nexport type Validity = Message<\"importhub.v1.Validity\"> & {\n /**\n * True when no reason was found.\n *\n * @generated from field: bool valid = 1;\n */\n valid: boolean;\n\n /**\n * Why the Revision is invalid; empty when it is valid. In a stable order:\n * the same data gives the same reasons in the same order.\n *\n * @generated from field: repeated importhub.v1.ValidityReason reasons = 2;\n */\n reasons: ValidityReason[];\n};\n\n/**\n * Describes the message importhub.v1.Validity.\n * Use `create(ValiditySchema)` to create a new message.\n */\nexport const ValiditySchema: GenMessage<Validity> = /*@__PURE__*/\n messageDesc(file_importhub_v1_configuration, 0);\n\n/**\n * ValidityReason is one thing that makes a Revision invalid.\n *\n * @generated from message importhub.v1.ValidityReason\n */\nexport type ValidityReason = Message<\"importhub.v1.ValidityReason\"> & {\n /**\n * Where in the configuration, as a JSON Pointer into its content (for\n * example `/entities/nbsp`); empty when it concerns the whole.\n *\n * @generated from field: string path = 1;\n */\n path: string;\n\n /**\n * A stable, machine-readable code, such as `no_entities`; the type's\n * service documents its codes.\n *\n * @generated from field: string code = 2;\n */\n code: string;\n\n /**\n * What is wrong, in English, for a person.\n *\n * @generated from field: string message = 3;\n */\n message: string;\n};\n\n/**\n * Describes the message importhub.v1.ValidityReason.\n * Use `create(ValidityReasonSchema)` to create a new message.\n */\nexport const ValidityReasonSchema: GenMessage<ValidityReason> = /*@__PURE__*/\n messageDesc(file_importhub_v1_configuration, 1);\n\n/**\n * ConfigurationRevision is one saved Revision of a configuration, as its\n * history lists it.\n *\n * @generated from message importhub.v1.ConfigurationRevision\n */\nexport type ConfigurationRevision = Message<\"importhub.v1.ConfigurationRevision\"> & {\n /**\n * The Revision's id.\n *\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The odon user id of the person who saved it.\n *\n * @generated from field: string saved_by = 2;\n */\n savedBy: string;\n\n /**\n * When it was saved.\n *\n * @generated from field: google.protobuf.Timestamp saved_at = 3;\n */\n savedAt?: Timestamp | undefined;\n\n /**\n * Whether it could be released, as decided when it was saved.\n *\n * @generated from field: importhub.v1.Validity validity = 4;\n */\n validity?: Validity | undefined;\n\n /**\n * The Revision it restored, when it was saved by a restore; empty for an\n * ordinary save.\n *\n * @generated from field: string restored_from_revision_id = 5;\n */\n restoredFromRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.ConfigurationRevision.\n * Use `create(ConfigurationRevisionSchema)` to create a new message.\n */\nexport const ConfigurationRevisionSchema: GenMessage<ConfigurationRevision> = /*@__PURE__*/\n messageDesc(file_importhub_v1_configuration, 2);\n\n/**\n * ConfigurationRelease is one Configuration Release: a Revision an admin\n * declared ready to run. A real Import runs only on Releases (ADR 0016).\n * A Release never changes.\n *\n * @generated from message importhub.v1.ConfigurationRelease\n */\nexport type ConfigurationRelease = Message<\"importhub.v1.ConfigurationRelease\"> & {\n /**\n * The Release's id.\n *\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The Revision it pins.\n *\n * @generated from field: string revision_id = 2;\n */\n revisionId: string;\n\n /**\n * Its place among the configuration's Releases: 1 for the first, counting\n * up, so a person can say \"Release 3\".\n *\n * @generated from field: int32 number = 3;\n */\n number: number;\n\n /**\n * The odon user id of the admin who cut it.\n *\n * @generated from field: string released_by = 4;\n */\n releasedBy: string;\n\n /**\n * When it was cut.\n *\n * @generated from field: google.protobuf.Timestamp released_at = 5;\n */\n releasedAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message importhub.v1.ConfigurationRelease.\n * Use `create(ConfigurationReleaseSchema)` to create a new message.\n */\nexport const ConfigurationReleaseSchema: GenMessage<ConfigurationRelease> = /*@__PURE__*/\n messageDesc(file_importhub_v1_configuration, 3);\n\n/**\n * ConfigurationState is where a configuration stands: its draft, and how the\n * draft compares with the latest Release (release-a-configuration:AC1).\n *\n * @generated from message importhub.v1.ConfigurationState\n */\nexport type ConfigurationState = Message<\"importhub.v1.ConfigurationState\"> & {\n /**\n * The draft: the head Revision, the one the next save builds on and a\n * Release would be cut from.\n *\n * @generated from field: string draft_revision_id = 1;\n */\n draftRevisionId: string;\n\n /**\n * Whether the draft may be released, as decided when it was saved.\n *\n * @generated from field: importhub.v1.Validity draft_validity = 2;\n */\n draftValidity?: Validity | undefined;\n\n /**\n * The latest Release; unset while the configuration has none.\n *\n * @generated from field: importhub.v1.ConfigurationRelease latest_release = 3;\n */\n latestRelease?: ConfigurationRelease | undefined;\n\n /**\n * True when the draft's content differs from the latest Release's, and\n * always true while there is no Release. A draft that restored the latest\n * Release's content does not differ, even though it is another Revision.\n *\n * @generated from field: bool draft_differs_from_release = 4;\n */\n draftDiffersFromRelease: boolean;\n};\n\n/**\n * Describes the message importhub.v1.ConfigurationState.\n * Use `create(ConfigurationStateSchema)` to create a new message.\n */\nexport const ConfigurationStateSchema: GenMessage<ConfigurationState> = /*@__PURE__*/\n messageDesc(file_importhub_v1_configuration, 4);\n\n/**\n * FieldComparison is how one top-level field of a configuration differs\n * between two of its Revisions.\n *\n * @generated from message importhub.v1.FieldComparison\n */\nexport type FieldComparison = Message<\"importhub.v1.FieldComparison\"> & {\n /**\n * The field's key in the content, such as `entities`.\n *\n * @generated from field: string field = 1;\n */\n field: string;\n\n /**\n * @generated from field: importhub.v1.FieldComparisonStatus status = 2;\n */\n status: FieldComparisonStatus;\n};\n\n/**\n * Describes the message importhub.v1.FieldComparison.\n * Use `create(FieldComparisonSchema)` to create a new message.\n */\nexport const FieldComparisonSchema: GenMessage<FieldComparison> = /*@__PURE__*/\n messageDesc(file_importhub_v1_configuration, 5);\n\n/**\n * ImportProfileRef names one Import Profile: where another configuration is\n * used (manage-mappings:AC3, release-a-configuration:AC4) or why it may not be\n * deleted (manage-mappings:AC4, manage-entity-sets:AC3).\n *\n * @generated from message importhub.v1.ImportProfileRef\n */\nexport type ImportProfileRef = Message<\"importhub.v1.ImportProfileRef\"> & {\n /**\n * The Import Profile's id.\n *\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Its name, as its draft has it.\n *\n * @generated from field: string name = 2;\n */\n name: string;\n};\n\n/**\n * Describes the message importhub.v1.ImportProfileRef.\n * Use `create(ImportProfileRefSchema)` to create a new message.\n */\nexport const ImportProfileRefSchema: GenMessage<ImportProfileRef> = /*@__PURE__*/\n messageDesc(file_importhub_v1_configuration, 6);\n\n/**\n * ConfigurationInUse is the detail of a FailedPrecondition delete of a\n * Mapping that Import Profiles include, or of an Entity Set they name: the\n * Profiles, by name. A Profile counts when its draft or its latest Release\n * includes or names it, since either may still run or be released.\n *\n * @generated from message importhub.v1.ConfigurationInUse\n */\nexport type ConfigurationInUse = Message<\"importhub.v1.ConfigurationInUse\"> & {\n /**\n * @generated from field: repeated importhub.v1.ImportProfileRef import_profiles = 1;\n */\n importProfiles: ImportProfileRef[];\n};\n\n/**\n * Describes the message importhub.v1.ConfigurationInUse.\n * Use `create(ConfigurationInUseSchema)` to create a new message.\n */\nexport const ConfigurationInUseSchema: GenMessage<ConfigurationInUse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_configuration, 7);\n\n/**\n * FieldComparisonStatus is how a field differs between two Revisions, from\n * the first to the second.\n *\n * @generated from enum importhub.v1.FieldComparisonStatus\n */\nexport enum FieldComparisonStatus {\n /**\n * @generated from enum value: FIELD_COMPARISON_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * The same value on both sides, or absent from both.\n *\n * @generated from enum value: FIELD_COMPARISON_STATUS_UNCHANGED = 1;\n */\n UNCHANGED = 1,\n\n /**\n * Absent from the first, present in the second.\n *\n * @generated from enum value: FIELD_COMPARISON_STATUS_ADDED = 2;\n */\n ADDED = 2,\n\n /**\n * Present in the first, absent from the second.\n *\n * @generated from enum value: FIELD_COMPARISON_STATUS_REMOVED = 3;\n */\n REMOVED = 3,\n\n /**\n * Present on both sides with different values.\n *\n * @generated from enum value: FIELD_COMPARISON_STATUS_CHANGED = 4;\n */\n CHANGED = 4,\n}\n\n/**\n * Describes the enum importhub.v1.FieldComparisonStatus.\n */\nexport const FieldComparisonStatusSchema: GenEnum<FieldComparisonStatus> = /*@__PURE__*/\n enumDesc(file_importhub_v1_configuration, 0);\n\n","// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts\"\n// @generated from file importhub/v1/entity_set.proto (package importhub.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { ConfigurationRelease, ConfigurationRevision, ConfigurationState, FieldComparison, Validity } from \"./configuration_pb\";\nimport { file_importhub_v1_configuration } from \"./configuration_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file importhub/v1/entity_set.proto.\n */\nexport const file_importhub_v1_entity_set: GenFile = /*@__PURE__*/\n fileDesc(\"Ch1pbXBvcnRodWIvdjEvZW50aXR5X3NldC5wcm90bxIMaW1wb3J0aHViLnYxIugBCglFbnRpdHlTZXQSCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkSLwoHY29udGVudBgDIAEoCzIeLmltcG9ydGh1Yi52MS5FbnRpdHlTZXRDb250ZW50EigKCHZhbGlkaXR5GAQgASgLMhYuaW1wb3J0aHViLnYxLlZh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0aHViLnYxLkxpc3RFbnRpdHlTZXRIaXN0b3J5UmVzcG9uc2USfAoZQ29tcGFyZUVudGl0eVNldFJldmlzaW9ucxIuLmltcG9ydGh1Yi52MS5Db21wYXJlRW50aXR5U2V0UmV2aXNpb25zUmVxdWVzdBovLmltcG9ydGh1Yi52MS5Db21wYXJlRW50aXR5U2V0UmV2aXNpb25zUmVzcG9uc2USeQoYUmVzdG9yZUVudGl0eVNldFJldmlzaW9uEi0uaW1wb3J0aHViLnYxLlJlc3RvcmVFbnRpdHlTZXRSZXZpc2lvblJlcXVlc3QaLi5pbXBvcnRodWIudjEuUmVzdG9yZUVudGl0eVNldFJldmlzaW9uUmVzcG9uc2VCOVo3Z2l0aHViLmNvbS9rbmtjcy9pbXBvcnRodWIvZ2VuL2ltcG9ydGh1Yi92MTtpbXBvcnRodWJ2MWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_importhub_v1_configuration]);\n\n/**\n * EntitySet is one Entity Set, at one of its Revisions.\n *\n * @generated from message importhub.v1.EntitySet\n */\nexport type EntitySet = Message<\"importhub.v1.EntitySet\"> & {\n /**\n * The Entity Set's id, a KSUID.\n *\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The Revision this content is from: the draft, unless an older one was\n * asked for.\n *\n * @generated from field: string revision_id = 2;\n */\n revisionId: string;\n\n /**\n * The content at that Revision.\n *\n * @generated from field: importhub.v1.EntitySetContent content = 3;\n */\n content?: EntitySetContent | undefined;\n\n /**\n * Whether that Revision may be released, as decided when it was saved.\n *\n * @generated from field: importhub.v1.Validity validity = 4;\n */\n validity?: Validity | undefined;\n\n /**\n * Where the Entity Set stands: its draft and latest Release.\n *\n * @generated from field: importhub.v1.ConfigurationState state = 5;\n */\n state?: ConfigurationState | undefined;\n\n /**\n * When the Entity Set was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 6;\n */\n createdAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message importhub.v1.EntitySet.\n * Use `create(EntitySetSchema)` to create a new message.\n */\nexport const EntitySetSchema: GenMessage<EntitySet> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 0);\n\n/**\n * EntitySetContent is what an admin edits, and what a Revision holds.\n *\n * @generated from message importhub.v1.EntitySetContent\n */\nexport type EntitySetContent = Message<\"importhub.v1.EntitySetContent\"> & {\n /**\n * The Entity Set's name, unique in the workspace. An Import Profile names\n * its Entity Set by id, so renaming it breaks no Profile.\n *\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * What the Entity Set is for; free text.\n *\n * @generated from field: string description = 2;\n */\n description: string;\n\n /**\n * The entities, by name without `&` and `;`: `auml` for `ä`, mapped\n * to the text each stands for, which may be empty.\n *\n * @generated from field: map<string, string> entities = 3;\n */\n entities: { [key: string]: string };\n};\n\n/**\n * Describes the message importhub.v1.EntitySetContent.\n * Use `create(EntitySetContentSchema)` to create a new message.\n */\nexport const EntitySetContentSchema: GenMessage<EntitySetContent> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 1);\n\n/**\n * @generated from message importhub.v1.ListEntitySetsRequest\n */\nexport type ListEntitySetsRequest = Message<\"importhub.v1.ListEntitySetsRequest\"> & {\n};\n\n/**\n * Describes the message importhub.v1.ListEntitySetsRequest.\n * Use `create(ListEntitySetsRequestSchema)` to create a new message.\n */\nexport const ListEntitySetsRequestSchema: GenMessage<ListEntitySetsRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 2);\n\n/**\n * @generated from message importhub.v1.ListEntitySetsResponse\n */\nexport type ListEntitySetsResponse = Message<\"importhub.v1.ListEntitySetsResponse\"> & {\n /**\n * @generated from field: repeated importhub.v1.EntitySet entity_sets = 1;\n */\n entitySets: EntitySet[];\n};\n\n/**\n * Describes the message importhub.v1.ListEntitySetsResponse.\n * Use `create(ListEntitySetsResponseSchema)` to create a new message.\n */\nexport const ListEntitySetsResponseSchema: GenMessage<ListEntitySetsResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 3);\n\n/**\n * @generated from message importhub.v1.GetEntitySetRequest\n */\nexport type GetEntitySetRequest = Message<\"importhub.v1.GetEntitySetRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * An older Revision to read the content of; empty for the draft.\n *\n * @generated from field: string revision_id = 2;\n */\n revisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.GetEntitySetRequest.\n * Use `create(GetEntitySetRequestSchema)` to create a new message.\n */\nexport const GetEntitySetRequestSchema: GenMessage<GetEntitySetRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 4);\n\n/**\n * @generated from message importhub.v1.GetEntitySetResponse\n */\nexport type GetEntitySetResponse = Message<\"importhub.v1.GetEntitySetResponse\"> & {\n /**\n * @generated from field: importhub.v1.EntitySet entity_set = 1;\n */\n entitySet?: EntitySet | undefined;\n};\n\n/**\n * Describes the message importhub.v1.GetEntitySetResponse.\n * Use `create(GetEntitySetResponseSchema)` to create a new message.\n */\nexport const GetEntitySetResponseSchema: GenMessage<GetEntitySetResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 5);\n\n/**\n * @generated from message importhub.v1.CreateEntitySetRequest\n */\nexport type CreateEntitySetRequest = Message<\"importhub.v1.CreateEntitySetRequest\"> & {\n /**\n * @generated from field: importhub.v1.EntitySetContent content = 1;\n */\n content?: EntitySetContent | undefined;\n};\n\n/**\n * Describes the message importhub.v1.CreateEntitySetRequest.\n * Use `create(CreateEntitySetRequestSchema)` to create a new message.\n */\nexport const CreateEntitySetRequestSchema: GenMessage<CreateEntitySetRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 6);\n\n/**\n * @generated from message importhub.v1.CreateEntitySetResponse\n */\nexport type CreateEntitySetResponse = Message<\"importhub.v1.CreateEntitySetResponse\"> & {\n /**\n * @generated from field: importhub.v1.EntitySet entity_set = 1;\n */\n entitySet?: EntitySet | undefined;\n};\n\n/**\n * Describes the message importhub.v1.CreateEntitySetResponse.\n * Use `create(CreateEntitySetResponseSchema)` to create a new message.\n */\nexport const CreateEntitySetResponseSchema: GenMessage<CreateEntitySetResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 7);\n\n/**\n * @generated from message importhub.v1.UpdateEntitySetRequest\n */\nexport type UpdateEntitySetRequest = Message<\"importhub.v1.UpdateEntitySetRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The whole new content; it replaces the draft's.\n *\n * @generated from field: importhub.v1.EntitySetContent content = 2;\n */\n content?: EntitySetContent | undefined;\n\n /**\n * The draft this edit was made on. Given, the save is refused if the\n * draft has moved since; empty, it saves on whatever the draft is.\n *\n * @generated from field: string draft_revision_id = 3;\n */\n draftRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.UpdateEntitySetRequest.\n * Use `create(UpdateEntitySetRequestSchema)` to create a new message.\n */\nexport const UpdateEntitySetRequestSchema: GenMessage<UpdateEntitySetRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 8);\n\n/**\n * @generated from message importhub.v1.UpdateEntitySetResponse\n */\nexport type UpdateEntitySetResponse = Message<\"importhub.v1.UpdateEntitySetResponse\"> & {\n /**\n * @generated from field: importhub.v1.EntitySet entity_set = 1;\n */\n entitySet?: EntitySet | undefined;\n};\n\n/**\n * Describes the message importhub.v1.UpdateEntitySetResponse.\n * Use `create(UpdateEntitySetResponseSchema)` to create a new message.\n */\nexport const UpdateEntitySetResponseSchema: GenMessage<UpdateEntitySetResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 9);\n\n/**\n * @generated from message importhub.v1.DeleteEntitySetRequest\n */\nexport type DeleteEntitySetRequest = Message<\"importhub.v1.DeleteEntitySetRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message importhub.v1.DeleteEntitySetRequest.\n * Use `create(DeleteEntitySetRequestSchema)` to create a new message.\n */\nexport const DeleteEntitySetRequestSchema: GenMessage<DeleteEntitySetRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 10);\n\n/**\n * @generated from message importhub.v1.DeleteEntitySetResponse\n */\nexport type DeleteEntitySetResponse = Message<\"importhub.v1.DeleteEntitySetResponse\"> & {\n};\n\n/**\n * Describes the message importhub.v1.DeleteEntitySetResponse.\n * Use `create(DeleteEntitySetResponseSchema)` to create a new message.\n */\nexport const DeleteEntitySetResponseSchema: GenMessage<DeleteEntitySetResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 11);\n\n/**\n * @generated from message importhub.v1.CutEntitySetReleaseRequest\n */\nexport type CutEntitySetReleaseRequest = Message<\"importhub.v1.CutEntitySetReleaseRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The draft the admin is releasing. Given, the cut is refused if the\n * draft has moved since, so what was reviewed is what is released.\n *\n * @generated from field: string draft_revision_id = 2;\n */\n draftRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.CutEntitySetReleaseRequest.\n * Use `create(CutEntitySetReleaseRequestSchema)` to create a new message.\n */\nexport const CutEntitySetReleaseRequestSchema: GenMessage<CutEntitySetReleaseRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 12);\n\n/**\n * @generated from message importhub.v1.CutEntitySetReleaseResponse\n */\nexport type CutEntitySetReleaseResponse = Message<\"importhub.v1.CutEntitySetReleaseResponse\"> & {\n /**\n * The Release cut.\n *\n * @generated from field: importhub.v1.ConfigurationRelease release = 1;\n */\n release?: ConfigurationRelease | undefined;\n\n /**\n * The Entity Set after the cut.\n *\n * @generated from field: importhub.v1.EntitySet entity_set = 2;\n */\n entitySet?: EntitySet | undefined;\n};\n\n/**\n * Describes the message importhub.v1.CutEntitySetReleaseResponse.\n * Use `create(CutEntitySetReleaseResponseSchema)` to create a new message.\n */\nexport const CutEntitySetReleaseResponseSchema: GenMessage<CutEntitySetReleaseResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 13);\n\n/**\n * @generated from message importhub.v1.ListEntitySetHistoryRequest\n */\nexport type ListEntitySetHistoryRequest = Message<\"importhub.v1.ListEntitySetHistoryRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Revisions per page; 0 means 100, and at most 1000.\n *\n * @generated from field: int32 page_size = 2;\n */\n pageSize: number;\n\n /**\n * The next_page_token of the previous page; empty for the first.\n *\n * @generated from field: string page_token = 3;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message importhub.v1.ListEntitySetHistoryRequest.\n * Use `create(ListEntitySetHistoryRequestSchema)` to create a new message.\n */\nexport const ListEntitySetHistoryRequestSchema: GenMessage<ListEntitySetHistoryRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 14);\n\n/**\n * @generated from message importhub.v1.ListEntitySetHistoryResponse\n */\nexport type ListEntitySetHistoryResponse = Message<\"importhub.v1.ListEntitySetHistoryResponse\"> & {\n /**\n * One page of Revisions, newest first.\n *\n * @generated from field: repeated importhub.v1.ConfigurationRevision revisions = 1;\n */\n revisions: ConfigurationRevision[];\n\n /**\n * Every Release, newest first, on every page.\n *\n * @generated from field: repeated importhub.v1.ConfigurationRelease releases = 2;\n */\n releases: ConfigurationRelease[];\n\n /**\n * The page_token of the next page; empty on the last.\n *\n * @generated from field: string next_page_token = 3;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message importhub.v1.ListEntitySetHistoryResponse.\n * Use `create(ListEntitySetHistoryResponseSchema)` to create a new message.\n */\nexport const ListEntitySetHistoryResponseSchema: GenMessage<ListEntitySetHistoryResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 15);\n\n/**\n * @generated from message importhub.v1.CompareEntitySetRevisionsRequest\n */\nexport type CompareEntitySetRevisionsRequest = Message<\"importhub.v1.CompareEntitySetRevisionsRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The Revision compared from.\n *\n * @generated from field: string from_revision_id = 2;\n */\n fromRevisionId: string;\n\n /**\n * The Revision compared to.\n *\n * @generated from field: string to_revision_id = 3;\n */\n toRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.CompareEntitySetRevisionsRequest.\n * Use `create(CompareEntitySetRevisionsRequestSchema)` to create a new message.\n */\nexport const CompareEntitySetRevisionsRequestSchema: GenMessage<CompareEntitySetRevisionsRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 16);\n\n/**\n * @generated from message importhub.v1.CompareEntitySetRevisionsResponse\n */\nexport type CompareEntitySetRevisionsResponse = Message<\"importhub.v1.CompareEntitySetRevisionsResponse\"> & {\n /**\n * The Entity Set at from_revision_id.\n *\n * @generated from field: importhub.v1.EntitySet from = 1;\n */\n from?: EntitySet | undefined;\n\n /**\n * The Entity Set at to_revision_id.\n *\n * @generated from field: importhub.v1.EntitySet to = 2;\n */\n to?: EntitySet | undefined;\n\n /**\n * Each field, and how it differs from `from` to `to`.\n *\n * @generated from field: repeated importhub.v1.FieldComparison fields = 3;\n */\n fields: FieldComparison[];\n};\n\n/**\n * Describes the message importhub.v1.CompareEntitySetRevisionsResponse.\n * Use `create(CompareEntitySetRevisionsResponseSchema)` to create a new message.\n */\nexport const CompareEntitySetRevisionsResponseSchema: GenMessage<CompareEntitySetRevisionsResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 17);\n\n/**\n * @generated from message importhub.v1.RestoreEntitySetRevisionRequest\n */\nexport type RestoreEntitySetRevisionRequest = Message<\"importhub.v1.RestoreEntitySetRevisionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The older Revision whose content becomes the new draft.\n *\n * @generated from field: string revision_id = 2;\n */\n revisionId: string;\n\n /**\n * As UpdateEntitySetRequest's.\n *\n * @generated from field: string draft_revision_id = 3;\n */\n draftRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.RestoreEntitySetRevisionRequest.\n * Use `create(RestoreEntitySetRevisionRequestSchema)` to create a new message.\n */\nexport const RestoreEntitySetRevisionRequestSchema: GenMessage<RestoreEntitySetRevisionRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 18);\n\n/**\n * @generated from message importhub.v1.RestoreEntitySetRevisionResponse\n */\nexport type RestoreEntitySetRevisionResponse = Message<\"importhub.v1.RestoreEntitySetRevisionResponse\"> & {\n /**\n * @generated from field: importhub.v1.EntitySet entity_set = 1;\n */\n entitySet?: EntitySet | undefined;\n};\n\n/**\n * Describes the message importhub.v1.RestoreEntitySetRevisionResponse.\n * Use `create(RestoreEntitySetRevisionResponseSchema)` to create a new message.\n */\nexport const RestoreEntitySetRevisionResponseSchema: GenMessage<RestoreEntitySetRevisionResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_entity_set, 19);\n\n/**\n * EntitySetService holds the workspace's Entity Sets: named tables of XML\n * character entities and what they stand for, with which an Import reads a\n * Source File that uses entities it does not declare (CONTEXT.md,\n * manage-entity-sets).\n *\n * An Entity Set is versioned configuration (ADR 0016): every create, update\n * and restore saves a draft Revision, and an admin cuts a Configuration\n * Release from a valid draft. A real Import runs only on a Release.\n *\n * Every RPC acts on the caller's workspace, which comes from the token's\n * active workspace and never from a request field. Reads need `viewer`;\n * every write needs `admin` (ADR 0010, control-who-may-import:AC3).\n *\n * The validity reason codes of an Entity Set:\n *\n * - `no_entities`: it defines no entity.\n * - `unreadable_name`: an entity's name is not a letter followed by\n * letters, digits, `.`, `_` or `-`, so no reference in a Source File\n * could ever name it.\n * - `predefined_entity`: it redefines one of XML's own entities (`amp`,\n * `lt`, `gt`, `quot`, `apos`), which would change how every file is\n * read.\n *\n * @generated from service importhub.v1.EntitySetService\n */\nexport const EntitySetService: GenService<{\n /**\n * ListEntitySets returns every Entity Set of the workspace, by name, each\n * with its draft. A workspace keeps a handful, so the list is not paged.\n *\n * @generated from rpc importhub.v1.EntitySetService.ListEntitySets\n */\n listEntitySets: {\n methodKind: \"unary\";\n input: typeof ListEntitySetsRequestSchema;\n output: typeof ListEntitySetsResponseSchema;\n },\n /**\n * GetEntitySet returns one Entity Set with its draft, or with an older\n * Revision of it when one is named.\n *\n * @generated from rpc importhub.v1.EntitySetService.GetEntitySet\n */\n getEntitySet: {\n methodKind: \"unary\";\n input: typeof GetEntitySetRequestSchema;\n output: typeof GetEntitySetResponseSchema;\n },\n /**\n * CreateEntitySet creates an Entity Set, its content the first draft. An\n * invalid table of entities is saved and marked invalid with its reasons;\n * a missing name, or one another Entity Set of the workspace has, is\n * refused (InvalidArgument, AlreadyExists).\n *\n * @generated from rpc importhub.v1.EntitySetService.CreateEntitySet\n */\n createEntitySet: {\n methodKind: \"unary\";\n input: typeof CreateEntitySetRequestSchema;\n output: typeof CreateEntitySetResponseSchema;\n },\n /**\n * UpdateEntitySet saves new content as a new draft Revision. It is\n * refused with FailedPrecondition when draft_revision_id is given and is\n * no longer the draft: somebody saved in between.\n *\n * @generated from rpc importhub.v1.EntitySetService.UpdateEntitySet\n */\n updateEntitySet: {\n methodKind: \"unary\";\n input: typeof UpdateEntitySetRequestSchema;\n output: typeof UpdateEntitySetResponseSchema;\n },\n /**\n * DeleteEntitySet deletes an Entity Set; it no longer appears in the list,\n * and its name is free again. It is refused with FailedPrecondition while\n * an Import Profile names it, naming the Profiles in the message and in a\n * ConfigurationInUse detail (manage-entity-sets:AC3).\n *\n * @generated from rpc importhub.v1.EntitySetService.DeleteEntitySet\n */\n deleteEntitySet: {\n methodKind: \"unary\";\n input: typeof DeleteEntitySetRequestSchema;\n output: typeof DeleteEntitySetResponseSchema;\n },\n /**\n * CutEntitySetRelease cuts a Configuration Release from the draft. It is\n * refused with FailedPrecondition when the draft is invalid (the error\n * carries the draft's Validity as a detail, with its reasons), when the\n * draft does not differ from the latest Release, or when\n * draft_revision_id is given and is no longer the draft.\n *\n * @generated from rpc importhub.v1.EntitySetService.CutEntitySetRelease\n */\n cutEntitySetRelease: {\n methodKind: \"unary\";\n input: typeof CutEntitySetReleaseRequestSchema;\n output: typeof CutEntitySetReleaseResponseSchema;\n },\n /**\n * ListEntitySetHistory lists an Entity Set's Revisions, newest first and\n * paged, with who saved each and when, and all its Releases, with who cut\n * each and when (release-a-configuration:AC6).\n *\n * @generated from rpc importhub.v1.EntitySetService.ListEntitySetHistory\n */\n listEntitySetHistory: {\n methodKind: \"unary\";\n input: typeof ListEntitySetHistoryRequestSchema;\n output: typeof ListEntitySetHistoryResponseSchema;\n },\n /**\n * CompareEntitySetRevisions compares two Revisions of one Entity Set: both\n * contents, for a side-by-side view, and how each field differs from the\n * first to the second. A Release is compared through the Revision it pins.\n *\n * @generated from rpc importhub.v1.EntitySetService.CompareEntitySetRevisions\n */\n compareEntitySetRevisions: {\n methodKind: \"unary\";\n input: typeof CompareEntitySetRevisionsRequestSchema;\n output: typeof CompareEntitySetRevisionsResponseSchema;\n },\n /**\n * RestoreEntitySetRevision saves an older Revision's content as a new\n * draft (release-a-configuration:AC7). Its validity is decided anew, by\n * the rules in force now. It is refused like UpdateEntitySet when the\n * draft moved, and with AlreadyExists when the old name is now another\n * Entity Set's.\n *\n * @generated from rpc importhub.v1.EntitySetService.RestoreEntitySetRevision\n */\n restoreEntitySetRevision: {\n methodKind: \"unary\";\n input: typeof RestoreEntitySetRevisionRequestSchema;\n output: typeof RestoreEntitySetRevisionResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_importhub_v1_entity_set, 0);\n\n","// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts\"\n// @generated from file importhub/v1/import_profile.proto (package importhub.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_struct, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { ConfigurationRelease, ConfigurationRevision, ConfigurationState, FieldComparison, Validity } from \"./configuration_pb\";\nimport { file_importhub_v1_configuration } from \"./configuration_pb\";\nimport type { JsonObject, Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file importhub/v1/import_profile.proto.\n */\nexport const file_importhub_v1_import_profile: GenFile = /*@__PURE__*/\n fileDesc(\"CiFpbXBvcnRodWIvdjEvaW1wb3J0X3Byb2ZpbGUucHJvdG8SDGltcG9ydGh1Yi52MSKiAgoNSW1wb3J0UHJvZmlsZRIKCgJpZBgBIAEoCRITCgtyZXZpc2lvbl9pZBgCIAEoCRIzCgdjb250ZW50GAMgASgLMiIuaW1wb3J0aHViLnYxLkltcG9ydFByb2ZpbGVDb250ZW50EigKCHZhbGlkaXR5GAQgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5Ei8KBXN0YXRlGAUgASgLMiAuaW1wb3J0aHViLnYxLkNvbmZpZ3VyYXRpb25TdGF0ZRIuCgpjcmVhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwChBjdXJyZW50X3ZhbGlkaXR5GAcgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5IowCChRJbXBvcnRQcm9maWxlQ29udGVudBIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEhUKDWVudGl0eV9zZXRfaWQYAyABKAkSMgoNcHJlcHJvY2Vzc29ycxgEIAMoCzIbLmltcG9ydGh1Yi52MS5Qcm9jZXNzb3JTdGVwEhMKC21hcHBpbmdfaWRzGAUgAygJEjQKD3Bvc3RfcHJvY2Vzc29ycxgGIAMoCzIbLmltcG9ydGh1Yi52MS5Qcm9jZXNzb3JTdGVwEhQKDGF1dG9fcHVibGlzaBgHIAEoCBIlCh1kZWxldGVfc291cmNlX2ZpbGVfb25fc3VjY2VzcxgIIAEoCCJNCg1Qcm9jZXNzb3JTdGVwEhEKCXByb2Nlc3NvchgBIAEoCRIpCghzZXR0aW5ncxgCIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiGwo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ydFByb2ZpbGVIaXN0b3J5UmVzcG9uc2USiAEKHUNvbXBhcmVJbXBvcnRQcm9maWxlUmV2aXNpb25zEjIuaW1wb3J0aHViLnYxLkNvbXBhcmVJbXBvcnRQcm9maWxlUmV2aXNpb25zUmVxdWVzdBozLmltcG9ydGh1Yi52MS5Db21wYXJlSW1wb3J0UHJvZmlsZVJldmlzaW9uc1Jlc3BvbnNlEoUBChxSZXN0b3JlSW1wb3J0UHJvZmlsZVJldmlzaW9uEjEuaW1wb3J0aHViLnYxLlJlc3RvcmVJbXBvcnRQcm9maWxlUmV2aXNpb25SZXF1ZXN0GjIuaW1wb3J0aHViLnYxLlJlc3RvcmVJbXBvcnRQcm9maWxlUmV2aXNpb25SZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM\", [file_google_protobuf_struct, file_google_protobuf_timestamp, file_importhub_v1_configuration]);\n\n/**\n * ImportProfile is one Import Profile, at one of its Revisions.\n *\n * @generated from message importhub.v1.ImportProfile\n */\nexport type ImportProfile = Message<\"importhub.v1.ImportProfile\"> & {\n /**\n * The Import Profile's id, a KSUID.\n *\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The Revision this content is from: the draft, unless an older one was\n * asked for.\n *\n * @generated from field: string revision_id = 2;\n */\n revisionId: string;\n\n /**\n * The content at that Revision.\n *\n * @generated from field: importhub.v1.ImportProfileContent content = 3;\n */\n content?: ImportProfileContent | undefined;\n\n /**\n * Whether that Revision may be released, as decided when it was saved.\n *\n * @generated from field: importhub.v1.Validity validity = 4;\n */\n validity?: Validity | undefined;\n\n /**\n * Where the Profile stands: its draft and latest Release.\n *\n * @generated from field: importhub.v1.ConfigurationState state = 5;\n */\n state?: ConfigurationState | undefined;\n\n /**\n * When the Profile was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 6;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * Whether the draft can be released now: its validity as saved, plus\n * what changed since without the Profile being saved, such as a Mapping\n * it includes becoming invalid (manage-import-profiles:AC6).\n *\n * @generated from field: importhub.v1.Validity current_validity = 7;\n */\n currentValidity?: Validity | undefined;\n};\n\n/**\n * Describes the message importhub.v1.ImportProfile.\n * Use `create(ImportProfileSchema)` to create a new message.\n */\nexport const ImportProfileSchema: GenMessage<ImportProfile> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 0);\n\n/**\n * ImportProfileContent is what an admin edits, and what a Revision holds.\n *\n * @generated from message importhub.v1.ImportProfileContent\n */\nexport type ImportProfileContent = Message<\"importhub.v1.ImportProfileContent\"> & {\n /**\n * The Profile's name, unique in the workspace.\n *\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * What the Profile is for; free text.\n *\n * @generated from field: string description = 2;\n */\n description: string;\n\n /**\n * The id of the Entity Set the Source File is read with; empty for none.\n *\n * @generated from field: string entity_set_id = 3;\n */\n entitySetId: string;\n\n /**\n * The Preprocessors, in the order they run on the Source File.\n *\n * @generated from field: repeated importhub.v1.ProcessorStep preprocessors = 4;\n */\n preprocessors: ProcessorStep[];\n\n /**\n * The ids of the Mappings it includes, in the order they run.\n *\n * @generated from field: repeated string mapping_ids = 5;\n */\n mappingIds: string[];\n\n /**\n * The Post-processors, in the order they run on the mapped Source\n * Versions.\n *\n * @generated from field: repeated importhub.v1.ProcessorStep post_processors = 6;\n */\n postProcessors: ProcessorStep[];\n\n /**\n * Publish the Change Set of an Import that Succeeds without Item\n * Problems (CONTEXT.md \"Auto-publish\").\n *\n * @generated from field: bool auto_publish = 7;\n */\n autoPublish: boolean;\n\n /**\n * Delete the Source File as soon as an Import Succeeds without Item\n * Problems, instead of after the retention period.\n *\n * @generated from field: bool delete_source_file_on_success = 8;\n */\n deleteSourceFileOnSuccess: boolean;\n};\n\n/**\n * Describes the message importhub.v1.ImportProfileContent.\n * Use `create(ImportProfileContentSchema)` to create a new message.\n */\nexport const ImportProfileContentSchema: GenMessage<ImportProfileContent> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 1);\n\n/**\n * ProcessorStep is one Processor in a Profile's pipeline, with its settings.\n *\n * @generated from message importhub.v1.ProcessorStep\n */\nexport type ProcessorStep = Message<\"importhub.v1.ProcessorStep\"> & {\n /**\n * The Processor, by its name in the catalogue.\n *\n * @generated from field: string processor = 1;\n */\n processor: string;\n\n /**\n * Its settings: one value per setting of its settings spec, by the\n * setting's `api_accessor`.\n *\n * @generated from field: google.protobuf.Struct settings = 2;\n */\n settings?: JsonObject | undefined;\n};\n\n/**\n * Describes the message importhub.v1.ProcessorStep.\n * Use `create(ProcessorStepSchema)` to create a new message.\n */\nexport const ProcessorStepSchema: GenMessage<ProcessorStep> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 2);\n\n/**\n * @generated from message importhub.v1.ListImportProfilesRequest\n */\nexport type ListImportProfilesRequest = Message<\"importhub.v1.ListImportProfilesRequest\"> & {\n};\n\n/**\n * Describes the message importhub.v1.ListImportProfilesRequest.\n * Use `create(ListImportProfilesRequestSchema)` to create a new message.\n */\nexport const ListImportProfilesRequestSchema: GenMessage<ListImportProfilesRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 3);\n\n/**\n * @generated from message importhub.v1.ListImportProfilesResponse\n */\nexport type ListImportProfilesResponse = Message<\"importhub.v1.ListImportProfilesResponse\"> & {\n /**\n * @generated from field: repeated importhub.v1.ImportProfile import_profiles = 1;\n */\n importProfiles: ImportProfile[];\n};\n\n/**\n * Describes the message importhub.v1.ListImportProfilesResponse.\n * Use `create(ListImportProfilesResponseSchema)` to create a new message.\n */\nexport const ListImportProfilesResponseSchema: GenMessage<ListImportProfilesResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 4);\n\n/**\n * @generated from message importhub.v1.GetImportProfileRequest\n */\nexport type GetImportProfileRequest = Message<\"importhub.v1.GetImportProfileRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * An older Revision to read the content of; empty for the draft.\n *\n * @generated from field: string revision_id = 2;\n */\n revisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.GetImportProfileRequest.\n * Use `create(GetImportProfileRequestSchema)` to create a new message.\n */\nexport const GetImportProfileRequestSchema: GenMessage<GetImportProfileRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 5);\n\n/**\n * @generated from message importhub.v1.GetImportProfileResponse\n */\nexport type GetImportProfileResponse = Message<\"importhub.v1.GetImportProfileResponse\"> & {\n /**\n * @generated from field: importhub.v1.ImportProfile import_profile = 1;\n */\n importProfile?: ImportProfile | undefined;\n};\n\n/**\n * Describes the message importhub.v1.GetImportProfileResponse.\n * Use `create(GetImportProfileResponseSchema)` to create a new message.\n */\nexport const GetImportProfileResponseSchema: GenMessage<GetImportProfileResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 6);\n\n/**\n * @generated from message importhub.v1.CreateImportProfileRequest\n */\nexport type CreateImportProfileRequest = Message<\"importhub.v1.CreateImportProfileRequest\"> & {\n /**\n * @generated from field: importhub.v1.ImportProfileContent content = 1;\n */\n content?: ImportProfileContent | undefined;\n};\n\n/**\n * Describes the message importhub.v1.CreateImportProfileRequest.\n * Use `create(CreateImportProfileRequestSchema)` to create a new message.\n */\nexport const CreateImportProfileRequestSchema: GenMessage<CreateImportProfileRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 7);\n\n/**\n * @generated from message importhub.v1.CreateImportProfileResponse\n */\nexport type CreateImportProfileResponse = Message<\"importhub.v1.CreateImportProfileResponse\"> & {\n /**\n * @generated from field: importhub.v1.ImportProfile import_profile = 1;\n */\n importProfile?: ImportProfile | undefined;\n};\n\n/**\n * Describes the message importhub.v1.CreateImportProfileResponse.\n * Use `create(CreateImportProfileResponseSchema)` to create a new message.\n */\nexport const CreateImportProfileResponseSchema: GenMessage<CreateImportProfileResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 8);\n\n/**\n * @generated from message importhub.v1.UpdateImportProfileRequest\n */\nexport type UpdateImportProfileRequest = Message<\"importhub.v1.UpdateImportProfileRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The whole new content; it replaces the draft's.\n *\n * @generated from field: importhub.v1.ImportProfileContent content = 2;\n */\n content?: ImportProfileContent | undefined;\n\n /**\n * The draft this edit was made on. Given, the save is refused if the\n * draft has moved since; empty, it saves on whatever the draft is.\n *\n * @generated from field: string draft_revision_id = 3;\n */\n draftRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.UpdateImportProfileRequest.\n * Use `create(UpdateImportProfileRequestSchema)` to create a new message.\n */\nexport const UpdateImportProfileRequestSchema: GenMessage<UpdateImportProfileRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 9);\n\n/**\n * @generated from message importhub.v1.UpdateImportProfileResponse\n */\nexport type UpdateImportProfileResponse = Message<\"importhub.v1.UpdateImportProfileResponse\"> & {\n /**\n * @generated from field: importhub.v1.ImportProfile import_profile = 1;\n */\n importProfile?: ImportProfile | undefined;\n};\n\n/**\n * Describes the message importhub.v1.UpdateImportProfileResponse.\n * Use `create(UpdateImportProfileResponseSchema)` to create a new message.\n */\nexport const UpdateImportProfileResponseSchema: GenMessage<UpdateImportProfileResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 10);\n\n/**\n * @generated from message importhub.v1.DeleteImportProfileRequest\n */\nexport type DeleteImportProfileRequest = Message<\"importhub.v1.DeleteImportProfileRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message importhub.v1.DeleteImportProfileRequest.\n * Use `create(DeleteImportProfileRequestSchema)` to create a new message.\n */\nexport const DeleteImportProfileRequestSchema: GenMessage<DeleteImportProfileRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 11);\n\n/**\n * @generated from message importhub.v1.DeleteImportProfileResponse\n */\nexport type DeleteImportProfileResponse = Message<\"importhub.v1.DeleteImportProfileResponse\"> & {\n};\n\n/**\n * Describes the message importhub.v1.DeleteImportProfileResponse.\n * Use `create(DeleteImportProfileResponseSchema)` to create a new message.\n */\nexport const DeleteImportProfileResponseSchema: GenMessage<DeleteImportProfileResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 12);\n\n/**\n * @generated from message importhub.v1.CutImportProfileReleaseRequest\n */\nexport type CutImportProfileReleaseRequest = Message<\"importhub.v1.CutImportProfileReleaseRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The draft the admin is releasing. Given, the cut is refused if the\n * draft has moved since.\n *\n * @generated from field: string draft_revision_id = 2;\n */\n draftRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.CutImportProfileReleaseRequest.\n * Use `create(CutImportProfileReleaseRequestSchema)` to create a new message.\n */\nexport const CutImportProfileReleaseRequestSchema: GenMessage<CutImportProfileReleaseRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 13);\n\n/**\n * @generated from message importhub.v1.CutImportProfileReleaseResponse\n */\nexport type CutImportProfileReleaseResponse = Message<\"importhub.v1.CutImportProfileReleaseResponse\"> & {\n /**\n * The Release cut.\n *\n * @generated from field: importhub.v1.ConfigurationRelease release = 1;\n */\n release?: ConfigurationRelease | undefined;\n\n /**\n * The Profile after the cut.\n *\n * @generated from field: importhub.v1.ImportProfile import_profile = 2;\n */\n importProfile?: ImportProfile | undefined;\n};\n\n/**\n * Describes the message importhub.v1.CutImportProfileReleaseResponse.\n * Use `create(CutImportProfileReleaseResponseSchema)` to create a new message.\n */\nexport const CutImportProfileReleaseResponseSchema: GenMessage<CutImportProfileReleaseResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 14);\n\n/**\n * @generated from message importhub.v1.ListImportProfileHistoryRequest\n */\nexport type ListImportProfileHistoryRequest = Message<\"importhub.v1.ListImportProfileHistoryRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * Revisions per page; 0 means 100, and at most 1000.\n *\n * @generated from field: int32 page_size = 2;\n */\n pageSize: number;\n\n /**\n * The next_page_token of the previous page; empty for the first.\n *\n * @generated from field: string page_token = 3;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message importhub.v1.ListImportProfileHistoryRequest.\n * Use `create(ListImportProfileHistoryRequestSchema)` to create a new message.\n */\nexport const ListImportProfileHistoryRequestSchema: GenMessage<ListImportProfileHistoryRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 15);\n\n/**\n * @generated from message importhub.v1.ListImportProfileHistoryResponse\n */\nexport type ListImportProfileHistoryResponse = Message<\"importhub.v1.ListImportProfileHistoryResponse\"> & {\n /**\n * One page of Revisions, newest first.\n *\n * @generated from field: repeated importhub.v1.ConfigurationRevision revisions = 1;\n */\n revisions: ConfigurationRevision[];\n\n /**\n * Every Release, newest first, on every page.\n *\n * @generated from field: repeated importhub.v1.ConfigurationRelease releases = 2;\n */\n releases: ConfigurationRelease[];\n\n /**\n * The page_token of the next page; empty on the last.\n *\n * @generated from field: string next_page_token = 3;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message importhub.v1.ListImportProfileHistoryResponse.\n * Use `create(ListImportProfileHistoryResponseSchema)` to create a new message.\n */\nexport const ListImportProfileHistoryResponseSchema: GenMessage<ListImportProfileHistoryResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 16);\n\n/**\n * @generated from message importhub.v1.CompareImportProfileRevisionsRequest\n */\nexport type CompareImportProfileRevisionsRequest = Message<\"importhub.v1.CompareImportProfileRevisionsRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string from_revision_id = 2;\n */\n fromRevisionId: string;\n\n /**\n * @generated from field: string to_revision_id = 3;\n */\n toRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.CompareImportProfileRevisionsRequest.\n * Use `create(CompareImportProfileRevisionsRequestSchema)` to create a new message.\n */\nexport const CompareImportProfileRevisionsRequestSchema: GenMessage<CompareImportProfileRevisionsRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 17);\n\n/**\n * @generated from message importhub.v1.CompareImportProfileRevisionsResponse\n */\nexport type CompareImportProfileRevisionsResponse = Message<\"importhub.v1.CompareImportProfileRevisionsResponse\"> & {\n /**\n * @generated from field: importhub.v1.ImportProfile from = 1;\n */\n from?: ImportProfile | undefined;\n\n /**\n * @generated from field: importhub.v1.ImportProfile to = 2;\n */\n to?: ImportProfile | undefined;\n\n /**\n * Each field, and how it differs from `from` to `to`.\n *\n * @generated from field: repeated importhub.v1.FieldComparison fields = 3;\n */\n fields: FieldComparison[];\n};\n\n/**\n * Describes the message importhub.v1.CompareImportProfileRevisionsResponse.\n * Use `create(CompareImportProfileRevisionsResponseSchema)` to create a new message.\n */\nexport const CompareImportProfileRevisionsResponseSchema: GenMessage<CompareImportProfileRevisionsResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 18);\n\n/**\n * @generated from message importhub.v1.RestoreImportProfileRevisionRequest\n */\nexport type RestoreImportProfileRevisionRequest = Message<\"importhub.v1.RestoreImportProfileRevisionRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * The older Revision whose content becomes the new draft.\n *\n * @generated from field: string revision_id = 2;\n */\n revisionId: string;\n\n /**\n * As UpdateImportProfileRequest's.\n *\n * @generated from field: string draft_revision_id = 3;\n */\n draftRevisionId: string;\n};\n\n/**\n * Describes the message importhub.v1.RestoreImportProfileRevisionRequest.\n * Use `create(RestoreImportProfileRevisionRequestSchema)` to create a new message.\n */\nexport const RestoreImportProfileRevisionRequestSchema: GenMessage<RestoreImportProfileRevisionRequest> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 19);\n\n/**\n * @generated from message importhub.v1.RestoreImportProfileRevisionResponse\n */\nexport type RestoreImportProfileRevisionResponse = Message<\"importhub.v1.RestoreImportProfileRevisionResponse\"> & {\n /**\n * @generated from field: importhub.v1.ImportProfile import_profile = 1;\n */\n importProfile?: ImportProfile | undefined;\n};\n\n/**\n * Describes the message importhub.v1.RestoreImportProfileRevisionResponse.\n * Use `create(RestoreImportProfileRevisionResponseSchema)` to create a new message.\n */\nexport const RestoreImportProfileRevisionResponseSchema: GenMessage<RestoreImportProfileRevisionResponse> = /*@__PURE__*/\n messageDesc(file_importhub_v1_import_profile, 20);\n\n/**\n * ImportProfileService holds the workspace's Import Profiles: the named\n * recipes an Import runs, one per kind of Source File (CONTEXT.md,\n * manage-import-profiles). A Profile names at most one Entity Set, its\n * Preprocessors, the Mappings it includes and its Post-processors, in order,\n * and what happens to the result.\n *\n * An Import Profile is versioned configuration (ADR 0016): every create,\n * update and restore saves a draft Revision, and an admin cuts a\n * Configuration Release from a valid draft. A Profile names its Mappings and\n * its Entity Set by id, not their Releases: an Import takes the latest\n * Release of each when it starts.\n *\n * Every RPC acts on the caller's workspace, which comes from the token's\n * active workspace and never from a request field. Reads need `viewer`;\n * every write needs `admin` (ADR 0010, control-who-may-import:AC3).\n *\n * The validity reason codes of an Import Profile, decided when it is saved:\n *\n * - `unknown_processor`: a step names a Processor the catalogue does not\n * list (ProcessorService).\n * - `wrong_processor_kind`: a Post-processor listed among the\n * Preprocessors, or the other way round.\n * - `rich_text_processor`: a Processor that works on one rich-text field,\n * which a Mapping's field configures, listed on the Profile.\n * - `invalid_processor_settings`: a setting the Processor does not take, a\n * required one left out, or a value of the wrong type.\n * - `no_mappings`: it includes no Mapping.\n * - `duplicate_mapping`: it includes one Mapping twice.\n * - `mapping_missing`: it includes a Mapping that does not exist.\n * - `entity_set_missing`: it names an Entity Set that does not exist.\n *\n * And the ones current_validity adds, decided at each read and when a Release\n * is cut, since they change without the Profile being saved\n * (manage-import-profiles:AC6):\n *\n * - `mapping_invalid`: what an Import would run of a Mapping it includes\n * is invalid now: its latest Release, when its Blueprint is gone, or,\n * while it has no Release, its draft. The message names the Mapping and\n * its reasons.\n * - `entity_set_invalid`: the Entity Set it names has no Release and an\n * invalid draft (a Release was valid when cut).\n * - `mapping_missing`, `entity_set_missing`, as above, once deleted.\n *\n * @generated from service importhub.v1.ImportProfileService\n */\nexport const ImportProfileService: GenService<{\n /**\n * ListImportProfiles returns every Import Profile of the workspace, by\n * name, each with its draft, its latest Release and whether it is valid\n * now. A workspace keeps a handful, so the list is not paged.\n *\n * @generated from rpc importhub.v1.ImportProfileService.ListImportProfiles\n */\n listImportProfiles: {\n methodKind: \"unary\";\n input: typeof ListImportProfilesRequestSchema;\n output: typeof ListImportProfilesResponseSchema;\n },\n /**\n * GetImportProfile returns one Import Profile with its draft, or with an\n * older Revision of it when one is named.\n *\n * @generated from rpc importhub.v1.ImportProfileService.GetImportProfile\n */\n getImportProfile: {\n methodKind: \"unary\";\n input: typeof GetImportProfileRequestSchema;\n output: typeof GetImportProfileResponseSchema;\n },\n /**\n * CreateImportProfile creates an Import Profile, its content the first\n * draft. Invalid settings are saved and marked invalid with their\n * reasons; a missing name, or one another Profile of the workspace has,\n * is refused (InvalidArgument, AlreadyExists).\n *\n * @generated from rpc importhub.v1.ImportProfileService.CreateImportProfile\n */\n createImportProfile: {\n methodKind: \"unary\";\n input: typeof CreateImportProfileRequestSchema;\n output: typeof CreateImportProfileResponseSchema;\n },\n /**\n * UpdateImportProfile saves new content as a new draft Revision. It is\n * refused with FailedPrecondition when draft_revision_id is given and is\n * no longer the draft.\n *\n * @generated from rpc importhub.v1.ImportProfileService.UpdateImportProfile\n */\n updateImportProfile: {\n methodKind: \"unary\";\n input: typeof UpdateImportProfileRequestSchema;\n output: typeof UpdateImportProfileResponseSchema;\n },\n /**\n * DeleteImportProfile deletes an Import Profile; it no longer appears in\n * the list, and its name is free again.\n *\n * @generated from rpc importhub.v1.ImportProfileService.DeleteImportProfile\n */\n deleteImportProfile: {\n methodKind: \"unary\";\n input: typeof DeleteImportProfileRequestSchema;\n output: typeof DeleteImportProfileResponseSchema;\n },\n /**\n * CutImportProfileRelease cuts a Configuration Release from the draft. It\n * is refused with FailedPrecondition, the Validity as a detail, when the\n * draft is not valid now (current_validity: an included Mapping that is\n * invalid refuses it too), when the draft does not differ from the latest\n * Release, or when draft_revision_id is given and is no longer the draft.\n *\n * @generated from rpc importhub.v1.ImportProfileService.CutImportProfileRelease\n */\n cutImportProfileRelease: {\n methodKind: \"unary\";\n input: typeof CutImportProfileReleaseRequestSchema;\n output: typeof CutImportProfileReleaseResponseSchema;\n },\n /**\n * ListImportProfileHistory lists an Import Profile's Revisions, newest\n * first and paged, and all its Releases (release-a-configuration:AC6).\n *\n * @generated from rpc importhub.v1.ImportProfileService.ListImportProfileHistory\n */\n listImportProfileHistory: {\n methodKind: \"unary\";\n input: typeof ListImportProfileHistoryRequestSchema;\n output: typeof ListImportProfileHistoryResponseSchema;\n },\n /**\n * CompareImportProfileRevisions compares two Revisions of one Import\n * Profile: both contents, and how each field differs.\n *\n * @generated from rpc importhub.v1.ImportProfileService.CompareImportProfileRevisions\n */\n compareImportProfileRevisions: {\n methodKind: \"unary\";\n input: typeof CompareImportProfileRevisionsRequestSchema;\n output: typeof CompareImportProfileRevisionsResponseSchema;\n },\n /**\n * RestoreImportProfileRevision saves an older Revision's content as a new\n * draft (release-a-configuration:AC7), its validity decided anew.\n *\n * @generated from rpc importhub.v1.ImportProfileService.RestoreImportProfileRevision\n */\n restoreImportProfileRevision: {\n methodKind: \"unary\";\n input: typeof RestoreImportProfileRevisionRequestSchema;\n output: typeof RestoreImportProfileRevisionResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_importhub_v1_import_profile, 0);\n\n","import { createClient, type Transport } from \"@connectrpc/connect\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport { EntitySetService } from \"../../../../gen/ts/importhub/v1/entity_set_pb\";\nimport { ImportProfileService } from \"../../../../gen/ts/importhub/v1/import_profile_pb\";\nimport type { ImporthubClient } from \"./importhub-client\";\n\nexport interface CreateConnectImporthubClientOptions {\n\t/**\n\t * Base URL on the host origin under which `/importhub.v1.…Service/…` is\n\t * served: \"\" when importhub serves the page itself (the Standalone App),\n\t * the mount prefix when a host proxies it.\n\t */\n\tbaseUrl: string;\n\t/**\n\t * The fetch the transport calls, e.g. one that adds `credentials:\n\t * \"include\"` so a session cookie travels, or a host's own token.\n\t */\n\tfetch?: typeof fetch;\n\t/** A pre-built transport (tests: `createRouterTransport`). Overrides baseUrl and fetch. */\n\ttransport?: Transport;\n}\n\n/**\n * The one call a host makes to talk to importhub (knkcms/core ADR 0003):\n * an `ImporthubClient` over Connect.\n */\nexport function createConnectImporthubClient(\n\toptions: CreateConnectImporthubClientOptions,\n): ImporthubClient {\n\tconst transport =\n\t\toptions.transport ?? createConnectTransport({ baseUrl: options.baseUrl, fetch: options.fetch });\n\tconst profiles = createClient(ImportProfileService, transport);\n\tconst entitySets = createClient(EntitySetService, transport);\n\treturn {\n\t\tasync listImportProfiles() {\n\t\t\tconst res = await profiles.listImportProfiles({});\n\t\t\treturn res.importProfiles.map((p) => ({ id: p.id, name: p.content?.name ?? \"\" }));\n\t\t},\n\t\tasync listEntitySets() {\n\t\t\tconst res = await entitySets.listEntitySets({});\n\t\t\treturn res.entitySets.map((e) => ({ id: e.id, name: e.content?.name ?? \"\" }));\n\t\t},\n\t};\n}\n","import de from \"./de.json\";\nimport en from \"./en.json\";\n\n/**\n * The i18next namespace every string in this package is looked up under. A\n * host merges `i18nResources` and lists this constant among its namespaces\n * (knkcms/core ADR 0005), never the literal, so a rename fails the host's\n * compile rather than rendering raw keys.\n */\nexport const IMPORTHUB_UI_NS = \"importhub-ui\";\n\n/** The package's bundled translations, keyed by language, then by namespace. */\nexport const i18nResources = {\n\ten: { [IMPORTHUB_UI_NS]: en },\n\tde: { [IMPORTHUB_UI_NS]: de },\n};\n","// importhub-ui's host contract: what a host decides that anker's own host\n// contract (@knkcs/anker/host) does not cover.\n//\n// anker's covers the page frame, the rail and identity: a screen reports its\n// title, breadcrumbs and actions, and reads the viewer and the active\n// workspace from `useHostIdentity()`, which the host provides once. What is\n// left is importhub's own: where the host mounts each section, for the links\n// a screen draws itself, and where a Change Set lives in contenthub, which\n// only the host knows (ADR 0005, amended: the contract has no seams only core\n// needed). Navigation a screen *asks* for (open an Import, start one) goes\n// through that screen's callbacks, since only the host knows its router.\nimport { createContext, type ReactNode, useContext } from \"react\";\n\n/**\n * importhub's sections: Imports, the host's own work, and the configuration\n * an admin manages (CONTEXT.md, \"Configuration\").\n */\nexport type ImporthubSection = \"imports\" | \"profiles\" | \"mappings\" | \"entitySets\";\n\n/** Every section, in the order a host lists them. */\nexport const IMPORTHUB_SECTIONS: readonly ImporthubSection[] = [\n\t\"imports\",\n\t\"profiles\",\n\t\"mappings\",\n\t\"entitySets\",\n];\n\n/** Where the host mounts each section's index. */\nexport type ImporthubPaths = Record<ImporthubSection, string>;\n\nexport interface ImporthubHost {\n\t/** Where the host mounts each section's index, for breadcrumbs and links. */\n\tpaths: ImporthubPaths;\n\t/**\n\t * The address of a Change Set in contenthub, which an Import's page links\n\t * out to (follow-an-import:AC5). null when the host has no contenthub to\n\t * link to: the screen then shows no link rather than a broken one.\n\t */\n\tchangeSetHref: (changeSetId: string) => string | null;\n}\n\n/**\n * The Standalone App's paths: Imports at the top, the configuration under\n * `/settings/<item>`, one page per item (odon's integration guide, \"Sidebar\n * layout\").\n */\nexport const STANDALONE_IMPORTHUB_PATHS: ImporthubPaths = {\n\timports: \"/imports\",\n\tprofiles: \"/settings/import-profiles\",\n\tmappings: \"/settings/mappings\",\n\tentitySets: \"/settings/entity-sets\",\n};\n\nconst DEFAULT_HOST: ImporthubHost = {\n\tpaths: STANDALONE_IMPORTHUB_PATHS,\n\tchangeSetHref: () => null,\n};\n\nconst HostContext = createContext<ImporthubHost>(DEFAULT_HOST);\n\nexport interface ImporthubHostProviderProps {\n\thost: ImporthubHost;\n\tchildren: ReactNode;\n}\n\n/** Provides the host's decisions to every importhub screen beneath it. */\nexport function ImporthubHostProvider({ host, children }: ImporthubHostProviderProps) {\n\treturn <HostContext.Provider value={host}>{children}</HostContext.Provider>;\n}\n\n/**\n * The host's decisions; outside a provider, the Standalone App's paths and\n * no Change Set links.\n */\nexport function useImporthubHost(): ImporthubHost {\n\treturn useContext(HostContext);\n}\n","import { Link } from \"@knkcs/anker/primitives\";\nimport { ExternalLink } from \"lucide-react\";\nimport { useTranslation } from \"react-i18next\";\nimport { IMPORTHUB_UI_NS } from \"../i18n/resources\";\nimport { useImporthubHost } from \"./host\";\n\nexport interface ChangeSetLinkProps {\n\tchangeSetId: string;\n}\n\n/**\n * The link out to a Change Set in contenthub, where the host says it is\n * (`ImporthubHost.changeSetHref`). Nothing when the host has no address for\n * it: a link to nowhere is worse than none.\n */\nexport function ChangeSetLink({ changeSetId }: ChangeSetLinkProps) {\n\tconst { t } = useTranslation(IMPORTHUB_UI_NS);\n\tconst href = useImporthubHost().changeSetHref(changeSetId);\n\tif (!href) return null;\n\treturn (\n\t\t<Link href={href} target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t{t(\"changeSet.open\")}\n\t\t\t<ExternalLink size={14} aria-hidden />\n\t\t</Link>\n\t);\n}\n","// Every query key starts with the active workspace, from the host's identity.\n// A host that switches workspace without remounting (an embedding solution's\n// picker, say) then reads the new workspace's data rather than the old one's\n// cache (use-the-importhub-standalone-app:AC3), and two workspaces' answers\n// never share an entry.\nexport const importhubKeys = {\n\tall: (workspaceId: string) => [\"importhub\", workspaceId] as const,\n\timportProfiles: (workspaceId: string) =>\n\t\t[...importhubKeys.all(workspaceId), \"importProfiles\"] as const,\n\tentitySets: (workspaceId: string) => [...importhubKeys.all(workspaceId), \"entitySets\"] as const,\n};\n","import { EmptyState } from \"@knkcs/anker/atoms\";\nimport { useHostIdentity } from \"@knkcs/anker/host\";\nimport { Box, Spinner } from \"@knkcs/anker/primitives\";\nimport { IndexPageTemplate } from \"@knkcs/anker/templates\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { Ampersand, FileCog, FileUp, type LucideIcon, Waypoints } from \"lucide-react\";\nimport { useTranslation } from \"react-i18next\";\nimport type { ImporthubClient } from \"../client/importhub-client\";\nimport { IMPORTHUB_UI_NS } from \"../i18n/resources\";\nimport type { ImporthubSection } from \"./host\";\nimport { importhubKeys } from \"./query-keys\";\n\nexport interface ImporthubStartPageProps {\n\tclient: ImporthubClient;\n\t/** The section whose start page this is. */\n\tsection: ImporthubSection;\n}\n\n/** Each section's icon, as the Standalone App's sidebar shows it too. */\nexport const IMPORTHUB_SECTION_ICONS: Record<ImporthubSection, LucideIcon> = {\n\timports: FileUp,\n\tprofiles: FileCog,\n\tmappings: Waypoints,\n\tentitySets: Ampersand,\n};\n\n/**\n * A section's start page, until its screens exist: the section's\n * title in the frame, and a body saying what the workspace holds of it. Where\n * importhub can already list a section (Import Profiles, Entity Sets) it\n * says how many there are, read for the host's active workspace; Imports and\n * Mappings have nothing to read yet.\n */\nexport function ImporthubStartPage({ client, section }: ImporthubStartPageProps) {\n\tconst { t } = useTranslation(IMPORTHUB_UI_NS);\n\tconst Icon = IMPORTHUB_SECTION_ICONS[section];\n\treturn (\n\t\t<IndexPageTemplate title={t(`section.${section}.title`)}>\n\t\t\t<Box px=\"8\" py=\"6\">\n\t\t\t\t<EmptyState\n\t\t\t\t\ticon={<Icon size={32} aria-hidden />}\n\t\t\t\t\theader={t(`section.${section}.title`)}\n\t\t\t\t\tdescription={<SectionSummary client={client} section={section} />}\n\t\t\t\t/>\n\t\t\t</Box>\n\t\t</IndexPageTemplate>\n\t);\n}\n\nfunction SectionSummary({ client, section }: ImporthubStartPageProps) {\n\tswitch (section) {\n\t\tcase \"profiles\":\n\t\t\treturn (\n\t\t\t\t<CountSummary\n\t\t\t\t\tsection={section}\n\t\t\t\t\tqueryKey={importhubKeys.importProfiles}\n\t\t\t\t\tread={() => client.listImportProfiles()}\n\t\t\t\t/>\n\t\t\t);\n\t\tcase \"entitySets\":\n\t\t\treturn (\n\t\t\t\t<CountSummary\n\t\t\t\t\tsection={section}\n\t\t\t\t\tqueryKey={importhubKeys.entitySets}\n\t\t\t\t\tread={() => client.listEntitySets()}\n\t\t\t\t/>\n\t\t\t);\n\t\tdefault:\n\t\t\treturn <NothingYet section={section} />;\n\t}\n}\n\nfunction NothingYet({ section }: { section: \"imports\" | \"mappings\" }) {\n\tconst { t } = useTranslation(IMPORTHUB_UI_NS);\n\treturn <>{t(`section.${section}.empty`)}</>;\n}\n\nfunction CountSummary({\n\tsection,\n\tqueryKey,\n\tread,\n}: {\n\tsection: \"profiles\" | \"entitySets\";\n\t/** The section's query key for a workspace (`importhubKeys`). */\n\tqueryKey: (workspaceId: string) => readonly unknown[];\n\tread: () => Promise<unknown[]>;\n}) {\n\tconst { t } = useTranslation(IMPORTHUB_UI_NS);\n\tconst { workspaceId } = useHostIdentity();\n\tconst query = useQuery({ queryKey: queryKey(workspaceId), queryFn: read });\n\tif (query.isPending) return <Spinner size=\"sm\" aria-label={t(\"startPage.loading\")} />;\n\t// Text, not an Alert: the summary is the EmptyState's description, a\n\t// paragraph, which can hold no block.\n\tif (query.isError) return <>{t(\"startPage.error\")}</>;\n\treturn <>{t(`section.${section}.summary`, { count: query.data.length })}</>;\n}\n"],"names":["file_importhub_v1_configuration","fileDesc","file_google_protobuf_timestamp","file_importhub_v1_entity_set","EntitySetService","serviceDesc","file_importhub_v1_import_profile","file_google_protobuf_struct","ImportProfileService","createConnectImporthubClient","options","transport","createConnectTransport","profiles","createClient","entitySets","p","e","IMPORTHUB_UI_NS","i18nResources","en","de","IMPORTHUB_SECTIONS","STANDALONE_IMPORTHUB_PATHS","DEFAULT_HOST","HostContext","createContext","ImporthubHostProvider","host","children","useImporthubHost","useContext","ChangeSetLink","changeSetId","t","useTranslation","href","Link","jsx","ExternalLink","importhubKeys","workspaceId","IMPORTHUB_SECTION_ICONS","FileUp","FileCog","Waypoints","Ampersand","ImporthubStartPage","client","section","Icon","IndexPageTemplate","Box","EmptyState","SectionSummary","CountSummary","NothingYet","Fragment","queryKey","read","useHostIdentity","query","useQuery","Spin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2B,EAAM,UAAgB,gBAAAvB,EAAAmB,GAAA,EAAG,UAAAvB,EAAE,iBAAiB,GAAE,IAC3C,gBAAAI,EAAAmB,GAAA,EAAG,UAAAvB,EAAE,WAAWe,CAAO,YAAY,EAAE,OAAOY,EAAM,KAAK,OAAA,CAAQ,GAAE;AACzE;"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { HostIdentity } from '@knkcs/anker/host';
|
|
2
|
+
|
|
3
|
+
export declare function createStubImporthubClient(options?: StubImporthubClientOptions): StubImporthubClient;
|
|
4
|
+
|
|
5
|
+
/** An Entity Set, as a list names it: its draft's name. */
|
|
6
|
+
declare interface EntitySetSummary {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* What the screens ask of importhub. Every call acts on the caller's
|
|
13
|
+
* workspace, which importhub takes from the token's active workspace and
|
|
14
|
+
* never from an argument: a host switches workspace by switching the token.
|
|
15
|
+
*/
|
|
16
|
+
declare interface ImporthubClient {
|
|
17
|
+
/** Every Import Profile of the workspace, by name. */
|
|
18
|
+
listImportProfiles(): Promise<ImportProfileSummary[]>;
|
|
19
|
+
/** Every Entity Set of the workspace, by name. */
|
|
20
|
+
listEntitySets(): Promise<EntitySetSummary[]>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** An Import Profile, as a list names it. */
|
|
24
|
+
declare interface ImportProfileSummary {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** A second workspace, for tests that switch to it. */
|
|
30
|
+
export declare const STUB_OTHER_WORKSPACE_ID = "ws_stub_other";
|
|
31
|
+
|
|
32
|
+
/** The stub viewer's id. */
|
|
33
|
+
export declare const STUB_USER_ID = "user_stub_ada";
|
|
34
|
+
|
|
35
|
+
/** The stub workspace's id. */
|
|
36
|
+
export declare const STUB_WORKSPACE_ID = "ws_stub_main";
|
|
37
|
+
|
|
38
|
+
/** The stub workspace's Entity Sets: one. */
|
|
39
|
+
export declare function stubEntitySets(): EntitySetSummary[];
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A `HostIdentity` for anker's `TestHost` or `HostProvider`: Ada, in the stub
|
|
43
|
+
* workspace unless another is named.
|
|
44
|
+
*/
|
|
45
|
+
export declare function stubIdentity(workspaceId?: string): HostIdentity;
|
|
46
|
+
|
|
47
|
+
export declare interface StubImporthubClient extends ImporthubClient {
|
|
48
|
+
/** Answer for another workspace from now on, as a host's new token would. */
|
|
49
|
+
switchWorkspace(workspaceId: string): void;
|
|
50
|
+
/** How many reads each method has answered, for tests that count reloads. */
|
|
51
|
+
readonly calls: Readonly<Record<keyof ImporthubClient, number>>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export declare interface StubImporthubClientOptions {
|
|
55
|
+
/**
|
|
56
|
+
* The workspaces by id. Without it, the stub workspace holds the
|
|
57
|
+
* fixtures' Import Profiles and Entity Sets.
|
|
58
|
+
*/
|
|
59
|
+
workspaces?: Record<string, StubWorkspace>;
|
|
60
|
+
/** The workspace answered for first; the stub workspace by default. */
|
|
61
|
+
activeWorkspaceId?: string;
|
|
62
|
+
/** Fail every read with this error, as an unreachable importhub would. */
|
|
63
|
+
fail?: Error;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** The stub workspace's Import Profiles: two, one per kind of Source File. */
|
|
67
|
+
export declare function stubImportProfiles(): ImportProfileSummary[];
|
|
68
|
+
|
|
69
|
+
/** What one stub workspace holds. */
|
|
70
|
+
export declare interface StubWorkspace {
|
|
71
|
+
importProfiles?: ImportProfileSummary[];
|
|
72
|
+
entitySets?: EntitySetSummary[];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { }
|
package/dist/testing.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { createHostMembers as m } from "@knkcs/anker/host";
|
|
2
|
+
const c = "user_stub_ada", r = "ws_stub_main", b = "ws_stub_other";
|
|
3
|
+
function f(e = r) {
|
|
4
|
+
return {
|
|
5
|
+
userId: c,
|
|
6
|
+
workspaceId: e,
|
|
7
|
+
members: m([
|
|
8
|
+
{ userId: c, displayName: "Ada Importer", email: "ada@example.com" }
|
|
9
|
+
])
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function u() {
|
|
13
|
+
return [
|
|
14
|
+
{ id: "ip_stub_gesetz", name: "Boorberg gesetz" },
|
|
15
|
+
{ id: "ip_stub_vrpml", name: "VRPML court decisions" }
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
function _() {
|
|
19
|
+
return [{ id: "es_stub_latin1", name: "ISO Latin 1" }];
|
|
20
|
+
}
|
|
21
|
+
function I(e = {}) {
|
|
22
|
+
const l = e.workspaces ?? {
|
|
23
|
+
[r]: { importProfiles: u(), entitySets: _() }
|
|
24
|
+
};
|
|
25
|
+
let i = e.activeWorkspaceId ?? r;
|
|
26
|
+
const o = {
|
|
27
|
+
listImportProfiles: 0,
|
|
28
|
+
listEntitySets: 0
|
|
29
|
+
}, n = () => l[i] ?? {}, a = async (t, s) => {
|
|
30
|
+
if (o[t]++, e.fail) throw e.fail;
|
|
31
|
+
return structuredClone(s());
|
|
32
|
+
};
|
|
33
|
+
return {
|
|
34
|
+
calls: o,
|
|
35
|
+
switchWorkspace(t) {
|
|
36
|
+
i = t;
|
|
37
|
+
},
|
|
38
|
+
listImportProfiles: () => a(
|
|
39
|
+
"listImportProfiles",
|
|
40
|
+
() => [...n().importProfiles ?? []].sort((t, s) => t.name.localeCompare(s.name))
|
|
41
|
+
),
|
|
42
|
+
listEntitySets: () => a(
|
|
43
|
+
"listEntitySets",
|
|
44
|
+
() => [...n().entitySets ?? []].sort((t, s) => t.name.localeCompare(s.name))
|
|
45
|
+
)
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as STUB_OTHER_WORKSPACE_ID,
|
|
50
|
+
c as STUB_USER_ID,
|
|
51
|
+
r as STUB_WORKSPACE_ID,
|
|
52
|
+
I as createStubImporthubClient,
|
|
53
|
+
_ as stubEntitySets,
|
|
54
|
+
f as stubIdentity,
|
|
55
|
+
u as stubImportProfiles
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.js","sources":["../src/testing/fixtures.ts","../src/testing/stub-client.ts"],"sourcesContent":["import { createHostMembers, type HostIdentity } from \"@knkcs/anker/host\";\nimport type { EntitySetSummary, ImportProfileSummary } from \"../client/importhub-client\";\n\n/** The stub viewer's id. */\nexport const STUB_USER_ID = \"user_stub_ada\";\n/** The stub workspace's id. */\nexport const STUB_WORKSPACE_ID = \"ws_stub_main\";\n/** A second workspace, for tests that switch to it. */\nexport const STUB_OTHER_WORKSPACE_ID = \"ws_stub_other\";\n\n/**\n * A `HostIdentity` for anker's `TestHost` or `HostProvider`: Ada, in the stub\n * workspace unless another is named.\n */\nexport function stubIdentity(workspaceId: string = STUB_WORKSPACE_ID): HostIdentity {\n\treturn {\n\t\tuserId: STUB_USER_ID,\n\t\tworkspaceId,\n\t\tmembers: createHostMembers([\n\t\t\t{ userId: STUB_USER_ID, displayName: \"Ada Importer\", email: \"ada@example.com\" },\n\t\t]),\n\t};\n}\n\n/** The stub workspace's Import Profiles: two, one per kind of Source File. */\nexport function stubImportProfiles(): ImportProfileSummary[] {\n\treturn [\n\t\t{ id: \"ip_stub_gesetz\", name: \"Boorberg gesetz\" },\n\t\t{ id: \"ip_stub_vrpml\", name: \"VRPML court decisions\" },\n\t];\n}\n\n/** The stub workspace's Entity Sets: one. */\nexport function stubEntitySets(): EntitySetSummary[] {\n\treturn [{ id: \"es_stub_latin1\", name: \"ISO Latin 1\" }];\n}\n","// An `ImporthubClient` over in-memory workspaces seeded from the fixtures.\n//\n// importhub takes the workspace from the caller's token, never from an\n// argument, so a real client answers for whichever workspace the host's\n// session is in. The stub does the same: it answers for its active\n// workspace, and a test switches it (`switchWorkspace`) where a host would\n// switch the token, which is how a host's test shows that switching reloads\n// the new workspace's data.\n//\n// Typed as the whole interface, so a method added to `ImporthubClient`\n// without an answer here fails this package's typecheck, not a host's test.\nimport type {\n\tEntitySetSummary,\n\tImporthubClient,\n\tImportProfileSummary,\n} from \"../client/importhub-client\";\nimport { STUB_WORKSPACE_ID, stubEntitySets, stubImportProfiles } from \"./fixtures\";\n\n/** What one stub workspace holds. */\nexport interface StubWorkspace {\n\timportProfiles?: ImportProfileSummary[];\n\tentitySets?: EntitySetSummary[];\n}\n\nexport interface StubImporthubClientOptions {\n\t/**\n\t * The workspaces by id. Without it, the stub workspace holds the\n\t * fixtures' Import Profiles and Entity Sets.\n\t */\n\tworkspaces?: Record<string, StubWorkspace>;\n\t/** The workspace answered for first; the stub workspace by default. */\n\tactiveWorkspaceId?: string;\n\t/** Fail every read with this error, as an unreachable importhub would. */\n\tfail?: Error;\n}\n\nexport interface StubImporthubClient extends ImporthubClient {\n\t/** Answer for another workspace from now on, as a host's new token would. */\n\tswitchWorkspace(workspaceId: string): void;\n\t/** How many reads each method has answered, for tests that count reloads. */\n\treadonly calls: Readonly<Record<keyof ImporthubClient, number>>;\n}\n\nexport function createStubImporthubClient(\n\toptions: StubImporthubClientOptions = {},\n): StubImporthubClient {\n\tconst workspaces = options.workspaces ?? {\n\t\t[STUB_WORKSPACE_ID]: { importProfiles: stubImportProfiles(), entitySets: stubEntitySets() },\n\t};\n\tlet active = options.activeWorkspaceId ?? STUB_WORKSPACE_ID;\n\tconst calls: Record<keyof ImporthubClient, number> = {\n\t\tlistImportProfiles: 0,\n\t\tlistEntitySets: 0,\n\t};\n\tconst current = (): StubWorkspace => workspaces[active] ?? {};\n\tconst answer = async <T>(method: keyof ImporthubClient, read: () => T): Promise<T> => {\n\t\tcalls[method]++;\n\t\tif (options.fail) throw options.fail;\n\t\treturn structuredClone(read());\n\t};\n\treturn {\n\t\tcalls,\n\t\tswitchWorkspace(workspaceId) {\n\t\t\tactive = workspaceId;\n\t\t},\n\t\tlistImportProfiles: () =>\n\t\t\tanswer(\"listImportProfiles\", () =>\n\t\t\t\t[...(current().importProfiles ?? [])].sort((a, b) => a.name.localeCompare(b.name)),\n\t\t\t),\n\t\tlistEntitySets: () =>\n\t\t\tanswer(\"listEntitySets\", () =>\n\t\t\t\t[...(current().entitySets ?? [])].sort((a, b) => a.name.localeCompare(b.name)),\n\t\t\t),\n\t};\n}\n"],"names":["STUB_USER_ID","STUB_WORKSPACE_ID","STUB_OTHER_WORKSPACE_ID","stubIdentity","workspaceId","createHostMembers","stubImportProfiles","stubEntitySets","createStubImporthubClient","options","workspaces","active","calls","current","answer","method","read","a","b"],"mappings":";AAIO,MAAMA,IAAe,iBAEfC,IAAoB,gBAEpBC,IAA0B;AAMhC,SAASC,EAAaC,IAAsBH,GAAiC;AACnF,SAAO;AAAA,IACN,QAAQD;AAAA,IACR,aAAAI;AAAA,IACA,SAASC,EAAkB;AAAA,MAC1B,EAAE,QAAQL,GAAc,aAAa,gBAAgB,OAAO,kBAAA;AAAA,IAAkB,CAC9E;AAAA,EAAA;AAEH;AAGO,SAASM,IAA6C;AAC5D,SAAO;AAAA,IACN,EAAE,IAAI,kBAAkB,MAAM,kBAAA;AAAA,IAC9B,EAAE,IAAI,iBAAiB,MAAM,wBAAA;AAAA,EAAwB;AAEvD;AAGO,SAASC,IAAqC;AACpD,SAAO,CAAC,EAAE,IAAI,kBAAkB,MAAM,eAAe;AACtD;ACQO,SAASC,EACfC,IAAsC,IAChB;AACtB,QAAMC,IAAaD,EAAQ,cAAc;AAAA,IACxC,CAACR,CAAiB,GAAG,EAAE,gBAAgBK,EAAA,GAAsB,YAAYC,EAAA,EAAe;AAAA,EAAE;AAE3F,MAAII,IAASF,EAAQ,qBAAqBR;AAC1C,QAAMW,IAA+C;AAAA,IACpD,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,EAAA,GAEXC,IAAU,MAAqBH,EAAWC,CAAM,KAAK,CAAA,GACrDG,IAAS,OAAUC,GAA+BC,MAA8B;AAErF,QADAJ,EAAMG,CAAM,KACRN,EAAQ,KAAM,OAAMA,EAAQ;AAChC,WAAO,gBAAgBO,GAAM;AAAA,EAC9B;AACA,SAAO;AAAA,IACN,OAAAJ;AAAA,IACA,gBAAgBR,GAAa;AAC5B,MAAAO,IAASP;AAAA,IACV;AAAA,IACA,oBAAoB,MACnBU;AAAA,MAAO;AAAA,MAAsB,MAC5B,CAAC,GAAID,IAAU,kBAAkB,CAAA,CAAG,EAAE,KAAK,CAACI,GAAGC,MAAMD,EAAE,KAAK,cAAcC,EAAE,IAAI,CAAC;AAAA,IAAA;AAAA,IAEnF,gBAAgB,MACfJ;AAAA,MAAO;AAAA,MAAkB,MACxB,CAAC,GAAID,IAAU,cAAc,CAAA,CAAG,EAAE,KAAK,CAACI,GAAGC,MAAMD,EAAE,KAAK,cAAcC,EAAE,IAAI,CAAC;AAAA,IAAA;AAAA,EAC9E;AAEH;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,94 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knkcs/importhub-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "importhub's screens for knk hosts: Imports, Import Profiles, Mappings and Entity Sets",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./testing": {
|
|
16
|
+
"types": "./dist/testing.d.ts",
|
|
17
|
+
"import": "./dist/testing.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"CHANGELOG.md",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/knkcs/importhub.git",
|
|
29
|
+
"directory": "packages/importhub-ui"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public",
|
|
33
|
+
"registry": "https://registry.npmjs.org/"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc --noEmit && vite build",
|
|
37
|
+
"prepublishOnly": "npm run build",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"pretest": "playwright install chromium",
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"test:watch": "vitest",
|
|
42
|
+
"lint": "biome check .",
|
|
43
|
+
"format": "biome format --write src/"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@bufbuild/protobuf": "^2.0.0",
|
|
47
|
+
"@connectrpc/connect": "^2.0.0",
|
|
48
|
+
"@connectrpc/connect-web": "^2.0.0",
|
|
49
|
+
"@knkcs/anker": "^5.20.0",
|
|
50
|
+
"@tanstack/react-query": "^5.0.0",
|
|
51
|
+
"i18next": "^26.0.0",
|
|
52
|
+
"lucide-react": ">=0.400.0",
|
|
53
|
+
"react": "^19.0.0",
|
|
54
|
+
"react-dom": "^19.0.0",
|
|
55
|
+
"react-i18next": "^17.0.0"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@biomejs/biome": "^2.6.10",
|
|
59
|
+
"@bufbuild/protobuf": "^2.17.0",
|
|
60
|
+
"@chakra-ui/react": "^3.38.0",
|
|
61
|
+
"@connectrpc/connect": "^2.3.0",
|
|
62
|
+
"@connectrpc/connect-web": "^2.3.0",
|
|
63
|
+
"@dnd-kit/core": "^6.3.1",
|
|
64
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
65
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
66
|
+
"@emotion/react": "^11.14.0",
|
|
67
|
+
"@hookform/resolvers": "^3.10.0",
|
|
68
|
+
"@knkcs/anker": "^5.20.0",
|
|
69
|
+
"@tanstack/react-query": "^5.108.4",
|
|
70
|
+
"@tanstack/react-table": "^8.21.3",
|
|
71
|
+
"@testing-library/dom": "^10.4.2",
|
|
72
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
73
|
+
"@testing-library/react": "^16.3.3",
|
|
74
|
+
"@types/node": "^22.20.7",
|
|
75
|
+
"@types/react": "^19.3.3",
|
|
76
|
+
"@types/react-dom": "^19.3.0",
|
|
77
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
78
|
+
"@vitest/browser": "^3.2.7",
|
|
79
|
+
"i18next": "^26.7.2",
|
|
80
|
+
"lucide-react": "^0.400.0",
|
|
81
|
+
"playwright": "^1.65.2",
|
|
82
|
+
"react": "^19.3.1",
|
|
83
|
+
"react-dom": "^19.3.1",
|
|
84
|
+
"react-hook-form": "^7.92.0",
|
|
85
|
+
"react-i18next": "^17.1.13",
|
|
86
|
+
"react-router": "^7.18.7",
|
|
87
|
+
"react-router-dom": "^7.18.7",
|
|
88
|
+
"typescript": "~5.9.0",
|
|
89
|
+
"vite": "^7.3.8",
|
|
90
|
+
"vite-plugin-dts": "^4.5.4",
|
|
91
|
+
"vitest": "^3.2.7",
|
|
92
|
+
"zod": "^3.25.76"
|
|
93
|
+
}
|
|
94
|
+
}
|