@semantha/product-sdk 10.1.1 → 10.4.1
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/dist/chunk-BE73RDIS.mjs.map +1 -1
- package/dist/chunk-CA66WME5.js.map +1 -1
- package/dist/chunk-CS7BBFY4.mjs.map +1 -1
- package/dist/chunk-DURTIKAP.mjs.map +1 -1
- package/dist/chunk-ECNCZBI6.js.map +1 -1
- package/dist/chunk-J6MTVURL.js.map +1 -1
- package/dist/chunk-JCDJ3B7Q.js.map +1 -1
- package/dist/chunk-KFGKXHFV.js.map +1 -1
- package/dist/chunk-OFG4XO3Z.mjs.map +1 -1
- package/dist/chunk-OHHE5EHF.mjs.map +1 -1
- package/dist/chunk-SJNRBLAC.mjs.map +1 -1
- package/dist/chunk-WFUCUDFC.js.map +1 -1
- package/dist/chunk-YXKZIGLW.mjs.map +1 -1
- package/dist/chunk-ZSFNB534.js.map +1 -1
- package/dist/requirements/api/index.d.mts +71 -38
- package/dist/requirements/api/index.d.ts +71 -38
- package/dist/requirements/api/index.js +1 -1
- package/dist/requirements/api/index.js.map +1 -1
- package/dist/requirements/api/index.mjs +1 -1
- package/dist/requirements/api/index.mjs.map +1 -1
- package/dist/requirements/model/index.d.mts +80 -66
- package/dist/requirements/model/index.d.ts +80 -66
- package/dist/requirements/model/index.js +1 -1
- package/dist/requirements/model/index.js.map +1 -1
- package/dist/requirements/model/index.mjs +1 -1
- package/dist/requirements/model/index.mjs.map +1 -1
- package/dist/table-extractor/api/index.js.map +1 -1
- package/dist/table-extractor/api/index.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,68 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author semantha
|
|
3
|
-
*
|
|
4
|
-
* This is a generated file do not change manually!
|
|
5
|
-
*/
|
|
6
|
-
interface AnalysisStats {
|
|
7
|
-
countIdenticalMatches?: number;
|
|
8
|
-
countTotalResults?: number;
|
|
9
|
-
countGoodMatches?: number;
|
|
10
|
-
countSimilarMatches?: number;
|
|
11
|
-
countNoMatches?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @author semantha
|
|
16
|
-
*
|
|
17
|
-
* This is a generated file do not change manually!
|
|
18
|
-
*/
|
|
19
|
-
interface AnalysisReport {
|
|
20
|
-
id?: string;
|
|
21
|
-
name?: string;
|
|
22
|
-
created?: number;
|
|
23
|
-
type?: AnalysisReportTypeEnum;
|
|
24
|
-
stats?: AnalysisStats;
|
|
25
|
-
tags?: string;
|
|
26
|
-
documentClassIds?: string[];
|
|
27
|
-
projectId?: string;
|
|
28
|
-
space?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @author semantha
|
|
33
|
-
*
|
|
34
|
-
* This is a generated file do not change manually!
|
|
35
|
-
*/
|
|
36
|
-
interface AnalysesReport {
|
|
37
|
-
analysisReports?: AnalysisReport[];
|
|
38
|
-
statsSummary?: AnalysisStats;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @author semantha
|
|
43
|
-
*
|
|
44
|
-
* This is a generated file do not change manually!
|
|
45
|
-
*/
|
|
46
|
-
interface Analysis {
|
|
47
|
-
id?: string;
|
|
48
|
-
name?: string;
|
|
49
|
-
strategy?: string;
|
|
50
|
-
maxReferences?: number;
|
|
51
|
-
similarityThreshold?: number;
|
|
52
|
-
created?: number;
|
|
53
|
-
tags?: string;
|
|
54
|
-
documentClassIds?: string[];
|
|
55
|
-
status?: AnalysisStatusEnum;
|
|
56
|
-
progressState?: number;
|
|
57
|
-
goodMatchesThreshold?: number;
|
|
58
|
-
matchAllReferences?: boolean;
|
|
59
|
-
showDocumentScore?: boolean;
|
|
60
|
-
minDocumentScore?: number;
|
|
61
|
-
source?: AnalysisSourceEnum;
|
|
62
|
-
type?: AnalysisTypeEnum;
|
|
63
|
-
stats?: AnalysisStats;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
1
|
/**
|
|
67
2
|
* @author semantha
|
|
68
3
|
*
|
|
@@ -345,6 +280,85 @@ interface AnalysisInput {
|
|
|
345
280
|
documentClassId?: string;
|
|
346
281
|
}
|
|
347
282
|
|
|
283
|
+
/**
|
|
284
|
+
* @author semantha
|
|
285
|
+
*
|
|
286
|
+
* This is a generated file do not change manually!
|
|
287
|
+
*/
|
|
288
|
+
interface AiTaskInput {
|
|
289
|
+
content: AnalysisInput[];
|
|
290
|
+
promptId: string;
|
|
291
|
+
name: string;
|
|
292
|
+
args?: {
|
|
293
|
+
[key: string]: string;
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @author semantha
|
|
299
|
+
*
|
|
300
|
+
* This is a generated file do not change manually!
|
|
301
|
+
*/
|
|
302
|
+
interface AnalysisStats {
|
|
303
|
+
countIdenticalMatches?: number;
|
|
304
|
+
countTotalResults?: number;
|
|
305
|
+
countGoodMatches?: number;
|
|
306
|
+
countSimilarMatches?: number;
|
|
307
|
+
countNoMatches?: number;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @author semantha
|
|
312
|
+
*
|
|
313
|
+
* This is a generated file do not change manually!
|
|
314
|
+
*/
|
|
315
|
+
interface AnalysisReport {
|
|
316
|
+
id?: string;
|
|
317
|
+
name?: string;
|
|
318
|
+
created?: number;
|
|
319
|
+
type?: AnalysisReportTypeEnum;
|
|
320
|
+
stats?: AnalysisStats;
|
|
321
|
+
tags?: string;
|
|
322
|
+
documentClassIds?: string[];
|
|
323
|
+
projectId?: string;
|
|
324
|
+
space?: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @author semantha
|
|
329
|
+
*
|
|
330
|
+
* This is a generated file do not change manually!
|
|
331
|
+
*/
|
|
332
|
+
interface AnalysesReport {
|
|
333
|
+
analysisReports?: AnalysisReport[];
|
|
334
|
+
statsSummary?: AnalysisStats;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @author semantha
|
|
339
|
+
*
|
|
340
|
+
* This is a generated file do not change manually!
|
|
341
|
+
*/
|
|
342
|
+
interface Analysis {
|
|
343
|
+
id?: string;
|
|
344
|
+
name?: string;
|
|
345
|
+
strategy?: string;
|
|
346
|
+
maxReferences?: number;
|
|
347
|
+
similarityThreshold?: number;
|
|
348
|
+
created?: number;
|
|
349
|
+
tags?: string;
|
|
350
|
+
documentClassIds?: string[];
|
|
351
|
+
status?: AnalysisStatusEnum;
|
|
352
|
+
progressState?: number;
|
|
353
|
+
goodMatchesThreshold?: number;
|
|
354
|
+
matchAllReferences?: boolean;
|
|
355
|
+
showDocumentScore?: boolean;
|
|
356
|
+
minDocumentScore?: number;
|
|
357
|
+
source?: AnalysisSourceEnum;
|
|
358
|
+
type?: AnalysisTypeEnum;
|
|
359
|
+
stats?: AnalysisStats;
|
|
360
|
+
}
|
|
361
|
+
|
|
348
362
|
/**
|
|
349
363
|
* @author semantha
|
|
350
364
|
*
|
|
@@ -733,4 +747,4 @@ interface PromptResult {
|
|
|
733
747
|
customAttributes?: Attribute[];
|
|
734
748
|
}
|
|
735
749
|
|
|
736
|
-
export { type AnalysesReport, type Analysis, type AnalysisCreation, type AnalysisInput, type AnalysisReport, type AnalysisReportTypeEnum, AnalysisReportTypeEnumValues, type AnalysisResult, type AnalysisResultComment, type AnalysisResultOverview, type AnalysisResultsResponseContainer, type AnalysisResultsStats, type AnalysisResultsStatsResponseContainer, type AnalysisSourceEnum, AnalysisSourceEnumValues, type AnalysisStats, type AnalysisStatusEnum, AnalysisStatusEnumValues, type AnalysisTypeEnum, AnalysisTypeEnumValues, type AnnotationCell, type AnnotationPage, type Attachment, type Attribute, type Char, type Classification, type ClassificationStats, type CurrentUser, type Distance, type Document, type DocumentNamedEntity, type DocumentTable, type Entity, type Evaluation, type EvaluationOverview, type ExcelTemplateColumnConfig, type ExcelTemplateColumnConfigHeaderTypeEnum, ExcelTemplateColumnConfigHeaderTypeEnumValues, type ExcelTemplateDetails, type ExtendedReference, type Features, type FormDataContentDisposition, type FormatInformation, type Link, type MetaInfoPage, type ModeEnum, ModeEnumValues, type Page, type PageContent, type Paragraph, type PromptResult, type Rect, type Reference, type ResponseMetaInfo, type Row, type Sentence, type StatusStats, type TableCell, isAnalysisReportTypeEnumValue, isAnalysisSourceEnumValue, isAnalysisStatusEnumValue, isAnalysisTypeEnumValue, isExcelTemplateColumnConfigHeaderTypeEnumValue, isModeEnumValue };
|
|
750
|
+
export { type AiTaskInput, type AnalysesReport, type Analysis, type AnalysisCreation, type AnalysisInput, type AnalysisReport, type AnalysisReportTypeEnum, AnalysisReportTypeEnumValues, type AnalysisResult, type AnalysisResultComment, type AnalysisResultOverview, type AnalysisResultsResponseContainer, type AnalysisResultsStats, type AnalysisResultsStatsResponseContainer, type AnalysisSourceEnum, AnalysisSourceEnumValues, type AnalysisStats, type AnalysisStatusEnum, AnalysisStatusEnumValues, type AnalysisTypeEnum, AnalysisTypeEnumValues, type AnnotationCell, type AnnotationPage, type Attachment, type Attribute, type Char, type Classification, type ClassificationStats, type CurrentUser, type Distance, type Document, type DocumentNamedEntity, type DocumentTable, type Entity, type Evaluation, type EvaluationOverview, type ExcelTemplateColumnConfig, type ExcelTemplateColumnConfigHeaderTypeEnum, ExcelTemplateColumnConfigHeaderTypeEnumValues, type ExcelTemplateDetails, type ExtendedReference, type Features, type FormDataContentDisposition, type FormatInformation, type Link, type MetaInfoPage, type ModeEnum, ModeEnumValues, type Page, type PageContent, type Paragraph, type PromptResult, type Rect, type Reference, type ResponseMetaInfo, type Row, type Sentence, type StatusStats, type TableCell, isAnalysisReportTypeEnumValue, isAnalysisSourceEnumValue, isAnalysisStatusEnumValue, isAnalysisTypeEnumValue, isExcelTemplateColumnConfigHeaderTypeEnumValue, isModeEnumValue };
|
|
@@ -1,68 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author semantha
|
|
3
|
-
*
|
|
4
|
-
* This is a generated file do not change manually!
|
|
5
|
-
*/
|
|
6
|
-
interface AnalysisStats {
|
|
7
|
-
countIdenticalMatches?: number;
|
|
8
|
-
countTotalResults?: number;
|
|
9
|
-
countGoodMatches?: number;
|
|
10
|
-
countSimilarMatches?: number;
|
|
11
|
-
countNoMatches?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @author semantha
|
|
16
|
-
*
|
|
17
|
-
* This is a generated file do not change manually!
|
|
18
|
-
*/
|
|
19
|
-
interface AnalysisReport {
|
|
20
|
-
id?: string;
|
|
21
|
-
name?: string;
|
|
22
|
-
created?: number;
|
|
23
|
-
type?: AnalysisReportTypeEnum;
|
|
24
|
-
stats?: AnalysisStats;
|
|
25
|
-
tags?: string;
|
|
26
|
-
documentClassIds?: string[];
|
|
27
|
-
projectId?: string;
|
|
28
|
-
space?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @author semantha
|
|
33
|
-
*
|
|
34
|
-
* This is a generated file do not change manually!
|
|
35
|
-
*/
|
|
36
|
-
interface AnalysesReport {
|
|
37
|
-
analysisReports?: AnalysisReport[];
|
|
38
|
-
statsSummary?: AnalysisStats;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @author semantha
|
|
43
|
-
*
|
|
44
|
-
* This is a generated file do not change manually!
|
|
45
|
-
*/
|
|
46
|
-
interface Analysis {
|
|
47
|
-
id?: string;
|
|
48
|
-
name?: string;
|
|
49
|
-
strategy?: string;
|
|
50
|
-
maxReferences?: number;
|
|
51
|
-
similarityThreshold?: number;
|
|
52
|
-
created?: number;
|
|
53
|
-
tags?: string;
|
|
54
|
-
documentClassIds?: string[];
|
|
55
|
-
status?: AnalysisStatusEnum;
|
|
56
|
-
progressState?: number;
|
|
57
|
-
goodMatchesThreshold?: number;
|
|
58
|
-
matchAllReferences?: boolean;
|
|
59
|
-
showDocumentScore?: boolean;
|
|
60
|
-
minDocumentScore?: number;
|
|
61
|
-
source?: AnalysisSourceEnum;
|
|
62
|
-
type?: AnalysisTypeEnum;
|
|
63
|
-
stats?: AnalysisStats;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
1
|
/**
|
|
67
2
|
* @author semantha
|
|
68
3
|
*
|
|
@@ -345,6 +280,85 @@ interface AnalysisInput {
|
|
|
345
280
|
documentClassId?: string;
|
|
346
281
|
}
|
|
347
282
|
|
|
283
|
+
/**
|
|
284
|
+
* @author semantha
|
|
285
|
+
*
|
|
286
|
+
* This is a generated file do not change manually!
|
|
287
|
+
*/
|
|
288
|
+
interface AiTaskInput {
|
|
289
|
+
content: AnalysisInput[];
|
|
290
|
+
promptId: string;
|
|
291
|
+
name: string;
|
|
292
|
+
args?: {
|
|
293
|
+
[key: string]: string;
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @author semantha
|
|
299
|
+
*
|
|
300
|
+
* This is a generated file do not change manually!
|
|
301
|
+
*/
|
|
302
|
+
interface AnalysisStats {
|
|
303
|
+
countIdenticalMatches?: number;
|
|
304
|
+
countTotalResults?: number;
|
|
305
|
+
countGoodMatches?: number;
|
|
306
|
+
countSimilarMatches?: number;
|
|
307
|
+
countNoMatches?: number;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @author semantha
|
|
312
|
+
*
|
|
313
|
+
* This is a generated file do not change manually!
|
|
314
|
+
*/
|
|
315
|
+
interface AnalysisReport {
|
|
316
|
+
id?: string;
|
|
317
|
+
name?: string;
|
|
318
|
+
created?: number;
|
|
319
|
+
type?: AnalysisReportTypeEnum;
|
|
320
|
+
stats?: AnalysisStats;
|
|
321
|
+
tags?: string;
|
|
322
|
+
documentClassIds?: string[];
|
|
323
|
+
projectId?: string;
|
|
324
|
+
space?: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @author semantha
|
|
329
|
+
*
|
|
330
|
+
* This is a generated file do not change manually!
|
|
331
|
+
*/
|
|
332
|
+
interface AnalysesReport {
|
|
333
|
+
analysisReports?: AnalysisReport[];
|
|
334
|
+
statsSummary?: AnalysisStats;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @author semantha
|
|
339
|
+
*
|
|
340
|
+
* This is a generated file do not change manually!
|
|
341
|
+
*/
|
|
342
|
+
interface Analysis {
|
|
343
|
+
id?: string;
|
|
344
|
+
name?: string;
|
|
345
|
+
strategy?: string;
|
|
346
|
+
maxReferences?: number;
|
|
347
|
+
similarityThreshold?: number;
|
|
348
|
+
created?: number;
|
|
349
|
+
tags?: string;
|
|
350
|
+
documentClassIds?: string[];
|
|
351
|
+
status?: AnalysisStatusEnum;
|
|
352
|
+
progressState?: number;
|
|
353
|
+
goodMatchesThreshold?: number;
|
|
354
|
+
matchAllReferences?: boolean;
|
|
355
|
+
showDocumentScore?: boolean;
|
|
356
|
+
minDocumentScore?: number;
|
|
357
|
+
source?: AnalysisSourceEnum;
|
|
358
|
+
type?: AnalysisTypeEnum;
|
|
359
|
+
stats?: AnalysisStats;
|
|
360
|
+
}
|
|
361
|
+
|
|
348
362
|
/**
|
|
349
363
|
* @author semantha
|
|
350
364
|
*
|
|
@@ -733,4 +747,4 @@ interface PromptResult {
|
|
|
733
747
|
customAttributes?: Attribute[];
|
|
734
748
|
}
|
|
735
749
|
|
|
736
|
-
export { type AnalysesReport, type Analysis, type AnalysisCreation, type AnalysisInput, type AnalysisReport, type AnalysisReportTypeEnum, AnalysisReportTypeEnumValues, type AnalysisResult, type AnalysisResultComment, type AnalysisResultOverview, type AnalysisResultsResponseContainer, type AnalysisResultsStats, type AnalysisResultsStatsResponseContainer, type AnalysisSourceEnum, AnalysisSourceEnumValues, type AnalysisStats, type AnalysisStatusEnum, AnalysisStatusEnumValues, type AnalysisTypeEnum, AnalysisTypeEnumValues, type AnnotationCell, type AnnotationPage, type Attachment, type Attribute, type Char, type Classification, type ClassificationStats, type CurrentUser, type Distance, type Document, type DocumentNamedEntity, type DocumentTable, type Entity, type Evaluation, type EvaluationOverview, type ExcelTemplateColumnConfig, type ExcelTemplateColumnConfigHeaderTypeEnum, ExcelTemplateColumnConfigHeaderTypeEnumValues, type ExcelTemplateDetails, type ExtendedReference, type Features, type FormDataContentDisposition, type FormatInformation, type Link, type MetaInfoPage, type ModeEnum, ModeEnumValues, type Page, type PageContent, type Paragraph, type PromptResult, type Rect, type Reference, type ResponseMetaInfo, type Row, type Sentence, type StatusStats, type TableCell, isAnalysisReportTypeEnumValue, isAnalysisSourceEnumValue, isAnalysisStatusEnumValue, isAnalysisTypeEnumValue, isExcelTemplateColumnConfigHeaderTypeEnumValue, isModeEnumValue };
|
|
750
|
+
export { type AiTaskInput, type AnalysesReport, type Analysis, type AnalysisCreation, type AnalysisInput, type AnalysisReport, type AnalysisReportTypeEnum, AnalysisReportTypeEnumValues, type AnalysisResult, type AnalysisResultComment, type AnalysisResultOverview, type AnalysisResultsResponseContainer, type AnalysisResultsStats, type AnalysisResultsStatsResponseContainer, type AnalysisSourceEnum, AnalysisSourceEnumValues, type AnalysisStats, type AnalysisStatusEnum, AnalysisStatusEnumValues, type AnalysisTypeEnum, AnalysisTypeEnumValues, type AnnotationCell, type AnnotationPage, type Attachment, type Attribute, type Char, type Classification, type ClassificationStats, type CurrentUser, type Distance, type Document, type DocumentNamedEntity, type DocumentTable, type Entity, type Evaluation, type EvaluationOverview, type ExcelTemplateColumnConfig, type ExcelTemplateColumnConfigHeaderTypeEnum, ExcelTemplateColumnConfigHeaderTypeEnumValues, type ExcelTemplateDetails, type ExtendedReference, type Features, type FormDataContentDisposition, type FormatInformation, type Link, type MetaInfoPage, type ModeEnum, ModeEnumValues, type Page, type PageContent, type Paragraph, type PromptResult, type Rect, type Reference, type ResponseMetaInfo, type Row, type Sentence, type StatusStats, type TableCell, isAnalysisReportTypeEnumValue, isAnalysisSourceEnumValue, isAnalysisStatusEnumValue, isAnalysisTypeEnumValue, isExcelTemplateColumnConfigHeaderTypeEnumValue, isModeEnumValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var o=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function u(e){return o.includes(e)}var r=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function x(e){return r.includes(e)}var t=["INITIALIZING","QUEUED","IN_PROGRESS","FINISHED","UPDATING_RESULTS","ERROR","UNKNOWN","CANCELLED","EMPTY","LIMIT_EXCEEDED"];function
|
|
1
|
+
'use strict';var o=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function u(e){return o.includes(e)}var r=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function x(e){return r.includes(e)}var t=["INITIALIZING","QUEUED","IN_PROGRESS","FINISHED","UPDATING_RESULTS","ERROR","UNKNOWN","CANCELLED","EMPTY","LIMIT_EXCEEDED"];function a(e){return t.includes(e)}var n=["SIMILARITY","PROMPT"];function E(e){return n.includes(e)}var p=["DEFAULT_COLUMN","PLACEHOLDER_COLUMN","EDITABLE_PLACEHOLDER_COLUMN"];function y(e){return p.includes(e)}var m=["fingerprint","keyword","document","document_fingerprint","fingerprint_keyword","auto"];function T(e){return m.includes(e)}exports.AnalysisReportTypeEnumValues=o;exports.AnalysisSourceEnumValues=r;exports.AnalysisStatusEnumValues=t;exports.AnalysisTypeEnumValues=n;exports.ExcelTemplateColumnConfigHeaderTypeEnumValues=p;exports.ModeEnumValues=m;exports.isAnalysisReportTypeEnumValue=u;exports.isAnalysisSourceEnumValue=x;exports.isAnalysisStatusEnumValue=a;exports.isAnalysisTypeEnumValue=E;exports.isExcelTemplateColumnConfigHeaderTypeEnumValue=y;exports.isModeEnumValue=T;//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"aAKO,IAAMA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA8BC,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAAA,CAASE,CAAK,CACpD,CCVO,IAAMC,CAAAA,CAA2B,CACtC,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,EAA0BF,CAAAA,CAAyC,CACjF,OAAOC,CAAAA,CAAyB,QAAA,CAASD,CAAK,CAChD,CCVO,IAAMG,CAAAA,CAA2B,CACtC,cAAA,CACA,QAAA,CACA,cACA,UAAA,CACA,kBAAA,CACA,OAAA,CACA,SAAA,CACA,WAAA,CACA,OAAA,CACA,gBACF,EAGO,SAASC,CAAAA,CAA0BJ,CAAAA,CAAyC,CACjF,OAAOG,CAAAA,CAAyB,SAASH,CAAK,CAChD,CChBO,IAAMK,CAAAA,CAAyB,CACpC,aACA,QACF,EAGO,SAASC,CAAAA,CAAwBN,CAAAA,CAAuC,CAC7E,OAAOK,CAAAA,CAAuB,QAAA,CAASL,CAAK,CAC9C,CCRO,IAAMO,EAAgD,CAC3D,gBAAA,CACA,oBAAA,CACA,6BACF,EAGO,SAASC,EAA+CR,CAAAA,CAA8D,CAC3H,OAAOO,CAAAA,CAA8C,QAAA,CAASP,CAAK,CACrE,CCTO,IAAMS,CAAAA,CAAiB,CAC5B,aAAA,CACA,SAAA,CACA,WACA,sBAAA,CACA,qBAAA,CACA,MACF,EAGO,SAASC,CAAAA,CAAgBV,CAAAA,CAA+B,CAC7D,OAAOS,CAAAA,CAAe,QAAA,CAAST,CAAK,CACtC","file":"index.js","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisReportTypeEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisReportTypeEnum = (typeof AnalysisReportTypeEnumValues)[number];\n\nexport function isAnalysisReportTypeEnumValue(value: any): value is AnalysisReportTypeEnum {\n return AnalysisReportTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisSourceEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisSourceEnum = (typeof AnalysisSourceEnumValues)[number];\n\nexport function isAnalysisSourceEnumValue(value: any): value is AnalysisSourceEnum {\n return AnalysisSourceEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisStatusEnumValues = [\n 'INITIALIZING',\n 'QUEUED',\n 'IN_PROGRESS',\n 'FINISHED',\n 'UPDATING_RESULTS',\n 'ERROR',\n 'UNKNOWN',\n 'CANCELLED',\n 'EMPTY',\n 'LIMIT_EXCEEDED'\n] as const;\nexport type AnalysisStatusEnum = (typeof AnalysisStatusEnumValues)[number];\n\nexport function isAnalysisStatusEnumValue(value: any): value is AnalysisStatusEnum {\n return AnalysisStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisTypeEnumValues = [\n 'SIMILARITY',\n 'PROMPT'\n] as const;\nexport type AnalysisTypeEnum = (typeof AnalysisTypeEnumValues)[number];\n\nexport function isAnalysisTypeEnumValue(value: any): value is AnalysisTypeEnum {\n return AnalysisTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ExcelTemplateColumnConfigHeaderTypeEnumValues = [\n 'DEFAULT_COLUMN',\n 'PLACEHOLDER_COLUMN',\n 'EDITABLE_PLACEHOLDER_COLUMN'\n] as const;\nexport type ExcelTemplateColumnConfigHeaderTypeEnum = (typeof ExcelTemplateColumnConfigHeaderTypeEnumValues)[number];\n\nexport function isExcelTemplateColumnConfigHeaderTypeEnumValue(value: any): value is ExcelTemplateColumnConfigHeaderTypeEnum {\n return ExcelTemplateColumnConfigHeaderTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ModeEnumValues = [\n 'fingerprint',\n 'keyword',\n 'document',\n 'document_fingerprint',\n 'fingerprint_keyword',\n 'auto'\n] as const;\nexport type ModeEnum = (typeof ModeEnumValues)[number];\n\nexport function isModeEnumValue(value: any): value is ModeEnum {\n return ModeEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var o=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function u(e){return o.includes(e)}var r=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function x(e){return r.includes(e)}var t=["INITIALIZING","QUEUED","IN_PROGRESS","FINISHED","UPDATING_RESULTS","ERROR","UNKNOWN","CANCELLED","EMPTY","LIMIT_EXCEEDED"];function
|
|
1
|
+
var o=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function u(e){return o.includes(e)}var r=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function x(e){return r.includes(e)}var t=["INITIALIZING","QUEUED","IN_PROGRESS","FINISHED","UPDATING_RESULTS","ERROR","UNKNOWN","CANCELLED","EMPTY","LIMIT_EXCEEDED"];function a(e){return t.includes(e)}var n=["SIMILARITY","PROMPT"];function E(e){return n.includes(e)}var p=["DEFAULT_COLUMN","PLACEHOLDER_COLUMN","EDITABLE_PLACEHOLDER_COLUMN"];function y(e){return p.includes(e)}var m=["fingerprint","keyword","document","document_fingerprint","fingerprint_keyword","auto"];function T(e){return m.includes(e)}export{o as AnalysisReportTypeEnumValues,r as AnalysisSourceEnumValues,t as AnalysisStatusEnumValues,n as AnalysisTypeEnumValues,p as ExcelTemplateColumnConfigHeaderTypeEnumValues,m as ModeEnumValues,u as isAnalysisReportTypeEnumValue,x as isAnalysisSourceEnumValue,a as isAnalysisStatusEnumValue,E as isAnalysisTypeEnumValue,y as isExcelTemplateColumnConfigHeaderTypeEnumValue,T as isModeEnumValue};//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"AAKO,IAAMA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA8BC,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAAA,CAASE,CAAK,CACpD,CCVO,IAAMC,CAAAA,CAA2B,CACtC,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,EAA0BF,CAAAA,CAAyC,CACjF,OAAOC,CAAAA,CAAyB,QAAA,CAASD,CAAK,CAChD,CCVO,IAAMG,CAAAA,CAA2B,CACtC,cAAA,CACA,QAAA,CACA,cACA,UAAA,CACA,kBAAA,CACA,OAAA,CACA,SAAA,CACA,WAAA,CACA,OAAA,CACA,gBACF,EAGO,SAASC,CAAAA,CAA0BJ,CAAAA,CAAyC,CACjF,OAAOG,CAAAA,CAAyB,SAASH,CAAK,CAChD,CChBO,IAAMK,CAAAA,CAAyB,CACpC,aACA,QACF,EAGO,SAASC,CAAAA,CAAwBN,CAAAA,CAAuC,CAC7E,OAAOK,CAAAA,CAAuB,QAAA,CAASL,CAAK,CAC9C,CCRO,IAAMO,EAAgD,CAC3D,gBAAA,CACA,oBAAA,CACA,6BACF,EAGO,SAASC,EAA+CR,CAAAA,CAA8D,CAC3H,OAAOO,CAAAA,CAA8C,QAAA,CAASP,CAAK,CACrE,CCTO,IAAMS,CAAAA,CAAiB,CAC5B,aAAA,CACA,SAAA,CACA,WACA,sBAAA,CACA,qBAAA,CACA,MACF,EAGO,SAASC,CAAAA,CAAgBV,CAAAA,CAA+B,CAC7D,OAAOS,CAAAA,CAAe,QAAA,CAAST,CAAK,CACtC","file":"index.mjs","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisReportTypeEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisReportTypeEnum = (typeof AnalysisReportTypeEnumValues)[number];\n\nexport function isAnalysisReportTypeEnumValue(value: any): value is AnalysisReportTypeEnum {\n return AnalysisReportTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisSourceEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisSourceEnum = (typeof AnalysisSourceEnumValues)[number];\n\nexport function isAnalysisSourceEnumValue(value: any): value is AnalysisSourceEnum {\n return AnalysisSourceEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisStatusEnumValues = [\n 'INITIALIZING',\n 'QUEUED',\n 'IN_PROGRESS',\n 'FINISHED',\n 'UPDATING_RESULTS',\n 'ERROR',\n 'UNKNOWN',\n 'CANCELLED',\n 'EMPTY',\n 'LIMIT_EXCEEDED'\n] as const;\nexport type AnalysisStatusEnum = (typeof AnalysisStatusEnumValues)[number];\n\nexport function isAnalysisStatusEnumValue(value: any): value is AnalysisStatusEnum {\n return AnalysisStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisTypeEnumValues = [\n 'SIMILARITY',\n 'PROMPT'\n] as const;\nexport type AnalysisTypeEnum = (typeof AnalysisTypeEnumValues)[number];\n\nexport function isAnalysisTypeEnumValue(value: any): value is AnalysisTypeEnum {\n return AnalysisTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ExcelTemplateColumnConfigHeaderTypeEnumValues = [\n 'DEFAULT_COLUMN',\n 'PLACEHOLDER_COLUMN',\n 'EDITABLE_PLACEHOLDER_COLUMN'\n] as const;\nexport type ExcelTemplateColumnConfigHeaderTypeEnum = (typeof ExcelTemplateColumnConfigHeaderTypeEnumValues)[number];\n\nexport function isExcelTemplateColumnConfigHeaderTypeEnumValue(value: any): value is ExcelTemplateColumnConfigHeaderTypeEnum {\n return ExcelTemplateColumnConfigHeaderTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ModeEnumValues = [\n 'fingerprint',\n 'keyword',\n 'document',\n 'document_fingerprint',\n 'fingerprint_keyword',\n 'auto'\n] as const;\nexport type ModeEnum = (typeof ModeEnumValues)[number];\n\nexport function isModeEnumValue(value: any): value is ModeEnum {\n return ModeEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../semantha-product-sdk/table-extractor/api/values.ts","../../../semantha-product-sdk/table-extractor/api/tableextractor.ts","../../../semantha-product-sdk/table-extractor/api/tableExtractorAPI.ts"],"names":["ValuesEndpoint","restClient","parentEndpoint","data","TableextractorEndpoint","PARENT_ENDPOINT","TableExtractorAPI","_TableExtractorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","d","line","searchKey"],"mappings":"2bAUO,IAAMA,CAAN,
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/table-extractor/api/values.ts","../../../semantha-product-sdk/table-extractor/api/tableextractor.ts","../../../semantha-product-sdk/table-extractor/api/tableExtractorAPI.ts"],"names":["ValuesEndpoint","restClient","parentEndpoint","data","TableextractorEndpoint","PARENT_ENDPOINT","TableExtractorAPI","_TableExtractorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","d","line","searchKey"],"mappings":"2bAUO,IAAMA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,oBAAAC,CAAAA,CAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,eAAiB,UACxC,CAPiB,QAAA,CAejB,MAAM,IAAA,CAAKC,CAAAA,CAGU,CACnB,OAAA,CACE,MAAM,IAAA,CAAK,UAAA,CAAW,IAAA,CACpB,IAAA,CAAK,SACL,EAAC,CACD,IAAA,CAAK,UAAA,CAAW,2BAAuB,CAAA,CACvCA,CACF,CAAA,EACA,OAAA,EACJ,CACF,EC9BO,IAAMC,EAAN,KAA6B,CAGlC,WAAA,CACmBH,CAAAA,CACAC,EACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,EAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,cAAA,CAAiB,kBACxC,CAPiB,QAAA,CASjB,MAAA,EAAyB,CACvB,OAAO,IAAIF,CAAAA,CAAe,IAAA,CAAK,UAAA,CAAY,KAAK,QAAQ,CAC1D,CACF,ECjBA,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CAAYI,CAAK,CAAA,CAC5DH,CAAAA,CAAe,KAAK,0BAAA,CAA2B,cAAA,CAAgBG,CAAK,CAAA,CACpEF,EAAW,IAAA,CAAK,0BAAA,CAA2B,UAAA,CAAYE,CAAK,EAClE,OAAOR,CAAAA,CAAkB,oBAAA,CAAqBC,CAAAA,CAAWG,EAAUC,CAAAA,CAAcC,CAAQ,CAC3F,CACG,MAAM,IAAI,KAAA,CAAM,6DAA6D,CAC/E,CAEA,OAAe,cAAA,CAAeL,CAAAA,CAA2B,CACvD,OAAIA,CAAAA,CAAU,QAAA,CAAS,GAAG,IACxBA,CAAAA,CAAYA,CAAAA,CAAU,KAAA,CAAM,CAAA,CAAG,EAAE,CAAA,CAAA,CAE/BA,CAAAA,CAAU,QAAA,CAAS,sBAAsB,EAC3CA,CAAAA,CAAYA,CAAAA,CAAU,OAAA,CAAQ,sBAAA,CAAwB,oBAAoB,CAAA,CAChEA,CAAAA,CAAU,QAAA,CAAS,oBAAoB,IACjDA,CAAAA,EAAa,oBAAA,CAAA,CAERA,CACT,CAEA,OAAe,0BAAA,CAA2BU,CAAAA,CAAmBH,CAAAA,CAA2B,CACtF,QAAWE,CAAAA,IAAQF,CAAAA,CACjB,GAAIE,CAAAA,CAAK,CAAC,CAAA,GAAMC,CAAAA,CACd,OAAOD,EAAK,CAAC,CAAA,CAAE,OAAA,CAAQ,KAAA,CAAO,GAAG,CAAA,CAGrC,MAAM,KAAA,CAAM,CAAA,8BAAA,EAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,gBAAyC,CACvC,OAAO,IAAId,CAAAA,CAAuB,KAAK,UAAA,CAAY,IAAA,CAAK,QAAA,EAAU,CACpE,CAEF","file":"index.js","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { XlRow } from '../model';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor/values\"\n * This is a generated file do not change manually!\n */\nexport class ValuesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/values\";\n }\n\n /**\n * Extracts values from a sheet and returns them\n *\n * @param file Blob? - Xlsx file to extract values from.\n * @param language string? - Locale used to format dates in the sheet on reading values.\n */\n async post(data: {\n file?: Blob,\n language?: string,\n }): Promise<XlRow[]> {\n return (\n await this.restClient.post<XlRow[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\nimport { ValuesEndpoint } from './values';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor\"\n * This is a generated file do not change manually!\n */\nexport class TableextractorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/tableextractor\";\n }\n\n values(): ValuesEndpoint {\n return new ValuesEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import * as fs from 'fs';\n\nimport { TableextractorEndpoint } from './tableextractor';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the TableExtractor API.\n *\n * @author semantha\n * Calls the /tableextractor, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class TableExtractorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): TableExtractorAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new TableExtractorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): TableExtractorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new TableExtractorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the TableExtractor API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : TableExtractorAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return TableExtractorAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n tableextractor(): TableextractorEndpoint {\n return new TableextractorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../semantha-product-sdk/table-extractor/api/values.ts","../../../semantha-product-sdk/table-extractor/api/tableextractor.ts","../../../semantha-product-sdk/table-extractor/api/tableExtractorAPI.ts"],"names":["ValuesEndpoint","restClient","parentEndpoint","data","TableextractorEndpoint","PARENT_ENDPOINT","TableExtractorAPI","_TableExtractorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"qEAUO,IAAMA,CAAN,
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/table-extractor/api/values.ts","../../../semantha-product-sdk/table-extractor/api/tableextractor.ts","../../../semantha-product-sdk/table-extractor/api/tableExtractorAPI.ts"],"names":["ValuesEndpoint","restClient","parentEndpoint","data","TableextractorEndpoint","PARENT_ENDPOINT","TableExtractorAPI","_TableExtractorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"qEAUO,IAAMA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,oBAAAC,CAAAA,CAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,eAAiB,UACxC,CAPiB,QAAA,CAejB,MAAM,IAAA,CAAKC,CAAAA,CAGU,CACnB,OAAA,CACE,MAAM,IAAA,CAAK,UAAA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,CAAAA,CACd,OAAOD,EAAK,CAAC,CAAA,CAAE,OAAA,CAAQ,KAAA,CAAO,GAAG,CAAA,CAGrC,MAAM,KAAA,CAAM,CAAA,8BAAA,EAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,gBAAyC,CACvC,OAAO,IAAIb,CAAAA,CAAuB,KAAK,UAAA,CAAY,IAAA,CAAK,QAAA,EAAU,CACpE,CAEF","file":"index.mjs","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { XlRow } from '../model';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor/values\"\n * This is a generated file do not change manually!\n */\nexport class ValuesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/values\";\n }\n\n /**\n * Extracts values from a sheet and returns them\n *\n * @param file Blob? - Xlsx file to extract values from.\n * @param language string? - Locale used to format dates in the sheet on reading values.\n */\n async post(data: {\n file?: Blob,\n language?: string,\n }): Promise<XlRow[]> {\n return (\n await this.restClient.post<XlRow[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\nimport { ValuesEndpoint } from './values';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor\"\n * This is a generated file do not change manually!\n */\nexport class TableextractorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/tableextractor\";\n }\n\n values(): ValuesEndpoint {\n return new ValuesEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import * as fs from 'fs';\n\nimport { TableextractorEndpoint } from './tableextractor';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the TableExtractor API.\n *\n * @author semantha\n * Calls the /tableextractor, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class TableExtractorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): TableExtractorAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new TableExtractorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): TableExtractorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new TableExtractorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the TableExtractor API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : TableExtractorAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return TableExtractorAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n tableextractor(): TableextractorEndpoint {\n return new TableextractorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantha/product-sdk",
|
|
3
3
|
"description": "SDK for semantha products",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.4.1",
|
|
5
|
+
"packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195",
|
|
5
6
|
"files": [
|
|
6
7
|
"./dist"
|
|
7
8
|
],
|
|
@@ -22,15 +23,14 @@
|
|
|
22
23
|
"@types/node": "^20.17.50",
|
|
23
24
|
"eslint": "^9.32.0",
|
|
24
25
|
"jest": "^30.0.0",
|
|
25
|
-
"prettier": "3.
|
|
26
|
+
"prettier": "3.7.4",
|
|
26
27
|
"ts-jest": "^29.3.4",
|
|
27
28
|
"tsup": "^8.5.0",
|
|
28
29
|
"typescript": "^5.5.3",
|
|
29
30
|
"typescript-eslint": "^8.32.1"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"axios": "^1.11.0"
|
|
33
|
-
"dotenv": "^17.2.1"
|
|
33
|
+
"axios": "^1.11.0"
|
|
34
34
|
},
|
|
35
35
|
"browser": {
|
|
36
36
|
"fs": false
|