tycho-components 0.15.11 → 0.15.12

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.
@@ -1,6 +1,6 @@
1
- import { CorpusImage } from "./CorpusImage";
2
- import { CorpusStatus } from "./CorpusStatus";
3
- import { User } from "./User";
1
+ import { CorpusImage } from './CorpusImage';
2
+ import { CorpusStatus } from './CorpusStatus';
3
+ import { User } from './User';
4
4
  export type Corpus = {
5
5
  id?: number;
6
6
  uid: string;
@@ -20,12 +20,30 @@ export type Corpus = {
20
20
  parser?: string;
21
21
  udparser?: string;
22
22
  lexicon?: string;
23
+ request?: CorpusRequest;
23
24
  };
24
25
  type CorpusNumbers = {
25
26
  documents: number;
26
27
  words: number;
27
28
  users: number;
28
29
  };
30
+ export type CorpusRequest = {
31
+ email: string;
32
+ description: string;
33
+ reason: string;
34
+ /** Present on some API payloads (e.g. embedded corpus.request). */
35
+ type?: string;
36
+ /** Present when backend exposes an explicit workflow status. */
37
+ status?: string;
38
+ createNewParser: boolean;
39
+ createNewLexicon: boolean;
40
+ approved: boolean;
41
+ rejected: boolean;
42
+ emailConfirmed: boolean;
43
+ approvedDate: string | null;
44
+ rejectedDate: string | null;
45
+ confirmedDate: string | null;
46
+ };
29
47
  export type Github = {
30
48
  username: string;
31
49
  token: string;
@@ -1,10 +1,10 @@
1
1
  export const EMPTY_CORPUS = {
2
- uid: "",
3
- name: "",
4
- picture: "",
5
- uploadDir: "",
6
- parameters: { "": "" },
7
- status: "ACTIVE",
2
+ uid: '',
3
+ name: '',
4
+ picture: '',
5
+ uploadDir: '',
6
+ parameters: { '': '' },
7
+ status: 'ACTIVE',
8
8
  opened: false,
9
- keyboardLayout: "",
9
+ keyboardLayout: '',
10
10
  };
package/dist/index.d.ts CHANGED
@@ -43,7 +43,7 @@ export { default as CookieStorage } from './configs/CookieStorage';
43
43
  export { commonResources } from './configs/Localization';
44
44
  export { default as LexiconListService } from './configs/services/LexiconListService';
45
45
  export { default as ParserListService } from './configs/services/ParserListService';
46
- export type { Corpus, Github } from './configs/types/Corpus';
46
+ export type { Corpus, CorpusRequest, Github } from './configs/types/Corpus';
47
47
  export { CorpusStatusNames } from './configs/types/CorpusStatus';
48
48
  export type { CorpusStatus } from './configs/types/CorpusStatus';
49
49
  export { CorpusImageTypeNames } from './configs/types/CorpusImage';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.15.11",
4
+ "version": "0.15.12",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {