Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b80a6919

Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)

Document finalization

Zobrazit rozdíly:

webapp/api/api.ts
47 47
     */
48 48
    'note'?: string | null;
49 49
}
50
/**
51
 * 
52
 * @export
53
 * @interface Annotation
54
 */
55
export interface Annotation {
56
    /**
57
     * 
58
     * @type {string}
59
     * @memberof Annotation
60
     */
61
    'id'?: string;
62
    /**
63
     * 
64
     * @type {Document}
65
     * @memberof Annotation
66
     */
67
    'document'?: Document;
68
    /**
69
     * 
70
     * @type {User}
71
     * @memberof Annotation
72
     */
73
    'user'?: User;
74
    /**
75
     * 
76
     * @type {User}
77
     * @memberof Annotation
78
     */
79
    'userAssigned'?: User;
80
    /**
81
     * 
82
     * @type {string}
83
     * @memberof Annotation
84
     */
85
    'dateAssigned'?: string;
86
    /**
87
     * 
88
     * @type {EState}
89
     * @memberof Annotation
90
     */
91
    'state'?: EState;
92
    /**
93
     * 
94
     * @type {string}
95
     * @memberof Annotation
96
     */
97
    'dateLastChanged'?: string;
98
    /**
99
     * 
100
     * @type {string}
101
     * @memberof Annotation
102
     */
103
    'note'?: string | null;
104
    /**
105
     * 
106
     * @type {string}
107
     * @memberof Annotation
108
     */
109
    'cachedDocumentHTML'?: string | null;
110
    /**
111
     * 
112
     * @type {string}
113
     * @memberof Annotation
114
     */
115
    'cachedStartPositions'?: string | null;
116
    /**
117
     * 
118
     * @type {string}
119
     * @memberof Annotation
120
     */
121
    'cachedLengths'?: string | null;
122
    /**
123
     * 
124
     * @type {string}
125
     * @memberof Annotation
126
     */
127
    'cachedClosingPositions'?: string | null;
128
    /**
129
     * 
130
     * @type {string}
131
     * @memberof Annotation
132
     */
133
    'cachedClosingLengths'?: string | null;
134
    /**
135
     * 
136
     * @type {string}
137
     * @memberof Annotation
138
     */
139
    'cachedCSS'?: string | null;
140
    /**
141
     * 
142
     * @type {string}
143
     * @memberof Annotation
144
     */
145
    'lastModifiedTagId'?: string | null;
146
    /**
147
     * 
148
     * @type {EModified}
149
     * @memberof Annotation
150
     */
151
    'modifiedType'?: EModified;
152
    /**
153
     * 
154
     * @type {Array<Class>}
155
     * @memberof Annotation
156
     */
157
    'classes'?: Array<Class> | null;
158
    /**
159
     * 
160
     * @type {Array<FinalAnnotation>}
161
     * @memberof Annotation
162
     */
163
    'finalAnnotations'?: Array<FinalAnnotation> | null;
164
}
50 165
/**
51 166
 * 
52 167
 * @export
......
245 360
     */
246 361
    'role'?: ERole;
247 362
}
363
/**
364
 * 
365
 * @export
366
 * @interface Class
367
 */
368
export interface Class {
369
    /**
370
     * 
371
     * @type {string}
372
     * @memberof Class
373
     */
374
    'id'?: string;
375
    /**
376
     * 
377
     * @type {string}
378
     * @memberof Class
379
     */
380
    'name'?: string | null;
381
    /**
382
     * 
383
     * @type {string}
384
     * @memberof Class
385
     */
386
    'description'?: string | null;
387
    /**
388
     * 
389
     * @type {string}
390
     * @memberof Class
391
     */
392
    'color'?: string | null;
393
    /**
394
     * 
395
     * @type {Array<Annotation>}
396
     * @memberof Class
397
     */
398
    'annotations'?: Array<Annotation> | null;
399
}
248 400
/**
249 401
 * 
250 402
 * @export
......
419 571
     */
420 572
    'role'?: ERole;
421 573
}
574
/**
575
 * 
576
 * @export
577
 * @interface Document
578
 */
579
export interface Document {
580
    /**
581
     * 
582
     * @type {string}
583
     * @memberof Document
584
     */
585
    'id'?: string;
586
    /**
587
     * 
588
     * @type {string}
589
     * @memberof Document
590
     */
591
    'name'?: string | null;
592
    /**
593
     * 
594
     * @type {number}
595
     * @memberof Document
596
     */
597
    'length'?: number;
598
    /**
599
     * 
600
     * @type {DocumentContent}
601
     * @memberof Document
602
     */
603
    'content'?: DocumentContent;
604
    /**
605
     * 
606
     * @type {string}
607
     * @memberof Document
608
     */
609
    'dateAdded'?: string;
610
    /**
611
     * 
612
     * @type {User}
613
     * @memberof Document
614
     */
615
    'userAdded'?: User;
616
    /**
617
     * 
618
     * @type {number}
619
     * @memberof Document
620
     */
621
    'requiredAnnotations'?: number;
622
}
422 623
/**
423 624
 * 
424 625
 * @export
......
494 695
     */
495 696
    'username'?: string | null;
496 697
}
698
/**
699
 * 
700
 * @export
701
 * @interface DocumentContent
702
 */
703
export interface DocumentContent {
704
    /**
705
     * 
706
     * @type {string}
707
     * @memberof DocumentContent
708
     */
709
    'id'?: string;
710
    /**
711
     * 
712
     * @type {string}
713
     * @memberof DocumentContent
714
     */
715
    'content'?: string | null;
716
}
497 717
/**
498 718
 * 
499 719
 * @export
......
664 884
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
665 885

  
666 886

  
887
/**
888
 * 
889
 * @export
890
 * @enum {string}
891
 */
892

  
893
export const EModified = {
894
    Added: 'ADDED',
895
    Removed: 'REMOVED',
896
    None: 'NONE'
897
} as const;
898

  
899
export type EModified = typeof EModified[keyof typeof EModified];
900

  
901

  
667 902
/**
668 903
 * 
669 904
 * @export
......
722 957
export type ETagType = typeof ETagType[keyof typeof ETagType];
723 958

  
724 959

  
960
/**
961
 * 
962
 * @export
963
 * @interface FinalAnnotation
964
 */
965
export interface FinalAnnotation {
966
    /**
967
     * 
968
     * @type {string}
969
     * @memberof FinalAnnotation
970
     */
971
    'id'?: string;
972
    /**
973
     * 
974
     * @type {Document}
975
     * @memberof FinalAnnotation
976
     */
977
    'document'?: Document;
978
    /**
979
     * 
980
     * @type {User}
981
     * @memberof FinalAnnotation
982
     */
983
    'user'?: User;
984
    /**
985
     * 
986
     * @type {User}
987
     * @memberof FinalAnnotation
988
     */
989
    'userAssigned'?: User;
990
    /**
991
     * 
992
     * @type {string}
993
     * @memberof FinalAnnotation
994
     */
995
    'dateAssigned'?: string;
996
    /**
997
     * 
998
     * @type {EState}
999
     * @memberof FinalAnnotation
1000
     */
1001
    'state'?: EState;
1002
    /**
1003
     * 
1004
     * @type {string}
1005
     * @memberof FinalAnnotation
1006
     */
1007
    'dateLastChanged'?: string;
1008
    /**
1009
     * 
1010
     * @type {string}
1011
     * @memberof FinalAnnotation
1012
     */
1013
    'note'?: string | null;
1014
    /**
1015
     * 
1016
     * @type {string}
1017
     * @memberof FinalAnnotation
1018
     */
1019
    'cachedDocumentHTML'?: string | null;
1020
    /**
1021
     * 
1022
     * @type {string}
1023
     * @memberof FinalAnnotation
1024
     */
1025
    'cachedStartPositions'?: string | null;
1026
    /**
1027
     * 
1028
     * @type {string}
1029
     * @memberof FinalAnnotation
1030
     */
1031
    'cachedLengths'?: string | null;
1032
    /**
1033
     * 
1034
     * @type {string}
1035
     * @memberof FinalAnnotation
1036
     */
1037
    'cachedClosingPositions'?: string | null;
1038
    /**
1039
     * 
1040
     * @type {string}
1041
     * @memberof FinalAnnotation
1042
     */
1043
    'cachedClosingLengths'?: string | null;
1044
    /**
1045
     * 
1046
     * @type {string}
1047
     * @memberof FinalAnnotation
1048
     */
1049
    'cachedCSS'?: string | null;
1050
    /**
1051
     * 
1052
     * @type {string}
1053
     * @memberof FinalAnnotation
1054
     */
1055
    'lastModifiedTagId'?: string | null;
1056
    /**
1057
     * 
1058
     * @type {EModified}
1059
     * @memberof FinalAnnotation
1060
     */
1061
    'modifiedType'?: EModified;
1062
    /**
1063
     * 
1064
     * @type {Array<Class>}
1065
     * @memberof FinalAnnotation
1066
     */
1067
    'classes'?: Array<Class> | null;
1068
    /**
1069
     * 
1070
     * @type {Array<FinalAnnotation>}
1071
     * @memberof FinalAnnotation
1072
     */
1073
    'finalAnnotations'?: Array<FinalAnnotation> | null;
1074
    /**
1075
     * 
1076
     * @type {Array<Annotation>}
1077
     * @memberof FinalAnnotation
1078
     */
1079
    'annotations'?: Array<Annotation> | null;
1080
}
1081
/**
1082
 * 
1083
 * @export
1084
 * @interface FinalAnnotationTag
1085
 */
1086
export interface FinalAnnotationTag {
1087
    /**
1088
     * 
1089
     * @type {string}
1090
     * @memberof FinalAnnotationTag
1091
     */
1092
    'id'?: string;
1093
    /**
1094
     * 
1095
     * @type {Tag}
1096
     * @memberof FinalAnnotationTag
1097
     */
1098
    'tag'?: Tag;
1099
    /**
1100
     * 
1101
     * @type {SubTag}
1102
     * @memberof FinalAnnotationTag
1103
     */
1104
    'subTag'?: SubTag;
1105
    /**
1106
     * 
1107
     * @type {string}
1108
     * @memberof FinalAnnotationTag
1109
     */
1110
    'instance'?: string;
1111
    /**
1112
     * 
1113
     * @type {string}
1114
     * @memberof FinalAnnotationTag
1115
     */
1116
    'note'?: string | null;
1117
    /**
1118
     * 
1119
     * @type {number}
1120
     * @memberof FinalAnnotationTag
1121
     */
1122
    'position'?: number;
1123
    /**
1124
     * 
1125
     * @type {number}
1126
     * @memberof FinalAnnotationTag
1127
     */
1128
    'length'?: number;
1129
    /**
1130
     * 
1131
     * @type {ETagSentiment}
1132
     * @memberof FinalAnnotationTag
1133
     */
1134
    'sentiment'?: ETagSentiment;
1135
    /**
1136
     * 
1137
     * @type {string}
1138
     * @memberof FinalAnnotationTag
1139
     */
1140
    'selectedText'?: string | null;
1141
    /**
1142
     * 
1143
     * @type {FinalAnnotation}
1144
     * @memberof FinalAnnotationTag
1145
     */
1146
    'annotation'?: FinalAnnotation;
1147
    /**
1148
     * 
1149
     * @type {boolean}
1150
     * @memberof FinalAnnotationTag
1151
     */
1152
    'isFinal'?: boolean;
1153
    /**
1154
     * 
1155
     * @type {Array<User>}
1156
     * @memberof FinalAnnotationTag
1157
     */
1158
    'users'?: Array<User> | null;
1159
}
725 1160
/**
726 1161
 * 
727 1162
 * @export
......
924 1359
     */
925 1360
    'instance'?: string | null;
926 1361
}
1362
/**
1363
 * 
1364
 * @export
1365
 * @interface SetInstanceIsFinalRequest
1366
 */
1367
export interface SetInstanceIsFinalRequest {
1368
    /**
1369
     * 
1370
     * @type {boolean}
1371
     * @memberof SetInstanceIsFinalRequest
1372
     */
1373
    'isFinal'?: boolean;
1374
}
927 1375
/**
928 1376
 * 
929 1377
 * @export
......
969 1417
     */
970 1418
    'documentIds'?: Array<string> | null;
971 1419
}
1420
/**
1421
 * 
1422
 * @export
1423
 * @interface SubTag
1424
 */
1425
export interface SubTag {
1426
    /**
1427
     * 
1428
     * @type {string}
1429
     * @memberof SubTag
1430
     */
1431
    'id'?: string;
1432
    /**
1433
     * 
1434
     * @type {string}
1435
     * @memberof SubTag
1436
     */
1437
    'name'?: string | null;
1438
    /**
1439
     * 
1440
     * @type {string}
1441
     * @memberof SubTag
1442
     */
1443
    'description'?: string | null;
1444
    /**
1445
     * 
1446
     * @type {Tag}
1447
     * @memberof SubTag
1448
     */
1449
    'tag'?: Tag;
1450
    /**
1451
     * 
1452
     * @type {boolean}
1453
     * @memberof SubTag
1454
     */
1455
    'sentimentEnabled'?: boolean;
1456
}
972 1457
/**
973 1458
 * 
974 1459
 * @export
......
994 1479
     */
995 1480
    'description'?: string | null;
996 1481
}
1482
/**
1483
 * 
1484
 * @export
1485
 * @interface Tag
1486
 */
1487
export interface Tag {
1488
    /**
1489
     * 
1490
     * @type {string}
1491
     * @memberof Tag
1492
     */
1493
    'id'?: string;
1494
    /**
1495
     * 
1496
     * @type {TagCategory}
1497
     * @memberof Tag
1498
     */
1499
    'category'?: TagCategory;
1500
    /**
1501
     * 
1502
     * @type {string}
1503
     * @memberof Tag
1504
     */
1505
    'name'?: string | null;
1506
    /**
1507
     * 
1508
     * @type {string}
1509
     * @memberof Tag
1510
     */
1511
    'description'?: string | null;
1512
    /**
1513
     * 
1514
     * @type {string}
1515
     * @memberof Tag
1516
     */
1517
    'color'?: string | null;
1518
    /**
1519
     * 
1520
     * @type {boolean}
1521
     * @memberof Tag
1522
     */
1523
    'sentimentEnabled'?: boolean;
1524
}
1525
/**
1526
 * 
1527
 * @export
1528
 * @interface TagCategory
1529
 */
1530
export interface TagCategory {
1531
    /**
1532
     * 
1533
     * @type {string}
1534
     * @memberof TagCategory
1535
     */
1536
    'id'?: string;
1537
    /**
1538
     * 
1539
     * @type {string}
1540
     * @memberof TagCategory
1541
     */
1542
    'name'?: string | null;
1543
    /**
1544
     * 
1545
     * @type {string}
1546
     * @memberof TagCategory
1547
     */
1548
    'color'?: string | null;
1549
    /**
1550
     * 
1551
     * @type {string}
1552
     * @memberof TagCategory
1553
     */
1554
    'description'?: string | null;
1555
    /**
1556
     * 
1557
     * @type {boolean}
1558
     * @memberof TagCategory
1559
     */
1560
    'disabledForAnnotators'?: boolean;
1561
}
997 1562
/**
998 1563
 * 
999 1564
 * @export
......
1183 1748
     * @memberof TagInstanceInfo
1184 1749
     */
1185 1750
    'selectedText'?: string | null;
1751
    /**
1752
     * 
1753
     * @type {Array<UserInfo>}
1754
     * @memberof TagInstanceInfo
1755
     */
1756
    'users'?: Array<UserInfo> | null;
1757
    /**
1758
     * 
1759
     * @type {boolean}
1760
     * @memberof TagInstanceInfo
1761
     */
1762
    'isFinal'?: boolean | null;
1186 1763
}
1187 1764
/**
1188 1765
 * 
......
1233 1810
     * @memberof User
1234 1811
     */
1235 1812
    'role'?: ERole;
1813
    /**
1814
     * 
1815
     * @type {Array<FinalAnnotationTag>}
1816
     * @memberof User
1817
     */
1818
    'finalAnnotationTags'?: Array<FinalAnnotationTag> | null;
1236 1819
}
1237 1820
/**
1238 1821
 * 
......
1507 2090
                options: localVarRequestOptions,
1508 2091
            };
1509 2092
        },
2093
        /**
2094
         * 
2095
         * @param {string} annotationId 
2096
         * @param {string} occurenceId 
2097
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2098
         * @param {*} [options] Override http request option.
2099
         * @throws {RequiredError}
2100
         */
2101
        annotationAnnotationIdOccurenceIdFinalPut: async (annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2102
            // verify required parameter 'annotationId' is not null or undefined
2103
            assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'annotationId', annotationId)
2104
            // verify required parameter 'occurenceId' is not null or undefined
2105
            assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'occurenceId', occurenceId)
2106
            const localVarPath = `/annotation/{annotationId}/{occurenceId}/final`
2107
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2108
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2109
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2110
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2111
            let baseOptions;
2112
            if (configuration) {
2113
                baseOptions = configuration.baseOptions;
2114
            }
2115

  
2116
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2117
            const localVarHeaderParameter = {} as any;
2118
            const localVarQueryParameter = {} as any;
2119

  
2120

  
2121
    
2122
            localVarHeaderParameter['Content-Type'] = 'application/json';
2123

  
2124
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2125
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2126
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2127
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceIsFinalRequest, localVarRequestOptions, configuration)
2128

  
2129
            return {
2130
                url: toPathString(localVarUrlObj),
2131
                options: localVarRequestOptions,
2132
            };
2133
        },
1510 2134
        /**
1511 2135
         * 
1512 2136
         * @param {string} annotationId 
......
1698 2322
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options);
1699 2323
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1700 2324
        },
2325
        /**
2326
         * 
2327
         * @param {string} annotationId 
2328
         * @param {string} occurenceId 
2329
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2330
         * @param {*} [options] Override http request option.
2331
         * @throws {RequiredError}
2332
         */
2333
        async annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2334
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options);
2335
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2336
        },
1701 2337
        /**
1702 2338
         * 
1703 2339
         * @param {string} annotationId 
......
1798 2434
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: any): AxiosPromise<void> {
1799 2435
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(axios, basePath));
1800 2436
        },
2437
        /**
2438
         * 
2439
         * @param {string} annotationId 
2440
         * @param {string} occurenceId 
2441
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2442
         * @param {*} [options] Override http request option.
2443
         * @throws {RequiredError}
2444
         */
2445
        annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: any): AxiosPromise<void> {
2446
            return localVarFp.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(axios, basePath));
2447
        },
1801 2448
        /**
1802 2449
         * 
1803 2450
         * @param {string} annotationId 
......
1905 2552
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(this.axios, this.basePath));
1906 2553
    }
1907 2554

  
2555
    /**
2556
     * 
2557
     * @param {string} annotationId 
2558
     * @param {string} occurenceId 
2559
     * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2560
     * @param {*} [options] Override http request option.
2561
     * @throws {RequiredError}
2562
     * @memberof AnnotationApi
2563
     */
2564
    public annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig) {
2565
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(this.axios, this.basePath));
2566
    }
2567

  
1908 2568
    /**
1909 2569
     * 
1910 2570
     * @param {string} annotationId 

Také k dispozici: Unified diff