@dpuse/dpuse-shared 1.0.145 → 1.0.147
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/README.md +43 -43
- package/dist/dpuse-shared.es.js +84 -84
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/dataView/index.d.ts +4 -4
- package/dist/types/src/component/module/connector/index.d.ts +8 -3
- package/dist/types/src/encoding/index.d.ts +84 -84
- package/package.json +1 -1
|
@@ -62,11 +62,11 @@ type ValueTrimMethodId = 'both' | 'left' | 'right' | 'none';
|
|
|
62
62
|
export interface ContentAuditConfig {
|
|
63
63
|
asAt: number;
|
|
64
64
|
columns: ObjectColumnConfig[];
|
|
65
|
-
commentLineCount: number;
|
|
66
|
-
emptyLineCount: number;
|
|
67
|
-
invalidFieldLengthCount: number;
|
|
65
|
+
commentLineCount: number | undefined;
|
|
66
|
+
emptyLineCount: number | undefined;
|
|
67
|
+
invalidFieldLengthCount: number | undefined;
|
|
68
68
|
duration: number;
|
|
69
|
-
lineCount: number;
|
|
69
|
+
lineCount: number | undefined;
|
|
70
70
|
recordCount: number;
|
|
71
71
|
}
|
|
72
72
|
interface RelationshipsAuditConfig {
|
|
@@ -5,7 +5,7 @@ import { LocalisedConfig } from '../../../locale';
|
|
|
5
5
|
import { ToolConfig } from '../tool';
|
|
6
6
|
import { ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig } from '../../connection';
|
|
7
7
|
import { connectorActionNameSchema, connectorCategoryConfigSchema, connectorConfigSchema, connectorItemTypeConfigSchema, connectorItemTypeIdSchema, connectorUsageConfigSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
8
|
-
import { DataFormatId, InferenceRecord, InferenceSummary, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
|
|
8
|
+
import { ContentAuditConfig, DataFormatId, InferenceRecord, InferenceSummary, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
|
|
9
9
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
10
10
|
export interface ConnectorInterface extends Component {
|
|
11
11
|
abortController: AbortController | undefined;
|
|
@@ -30,10 +30,15 @@ export interface ConnectorInterface extends Component {
|
|
|
30
30
|
export type ConnectorActionName = InferOutput<typeof connectorActionNameSchema>;
|
|
31
31
|
export type ConnectorConstructor = new (connectorUtilities: ConnectorUtilities, toolConfigs: ToolConfig[]) => ConnectorInterface;
|
|
32
32
|
export interface ConnectorUtilities {
|
|
33
|
+
constructColumnAuditor: (hasHeaders: boolean) => ColumnAuditor;
|
|
33
34
|
hasReadableStreamTransferSupport(): boolean;
|
|
34
35
|
inferValues: (parsedRecord: ParsingRecord, columnConfigs: ObjectColumnConfig[], hasLeadingRecord: boolean) => InferenceRecord;
|
|
35
36
|
inferDataTypes: (parsedRecords: ParsingRecord[]) => InferenceSummary;
|
|
36
37
|
}
|
|
38
|
+
export interface ColumnAuditor {
|
|
39
|
+
auditRecords: (parsedRecords: ParsingRecord[]) => void;
|
|
40
|
+
completeAudit: () => ObjectColumnConfig[];
|
|
41
|
+
}
|
|
37
42
|
export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
38
43
|
type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
|
|
39
44
|
type ConnectorItemTypeConfig = InferOutput<typeof connectorItemTypeConfigSchema>;
|
|
@@ -42,14 +47,14 @@ type ConnectorUsageConfig = InferOutput<typeof connectorUsageConfigSchema>;
|
|
|
42
47
|
export interface AuditObjectContentOptions extends EngineConnectorActionOptions {
|
|
43
48
|
chunkSize: number | undefined;
|
|
44
49
|
encodingId: string;
|
|
50
|
+
hasHeaders: boolean;
|
|
45
51
|
parsingToolName: string | undefined;
|
|
46
52
|
path: string;
|
|
47
53
|
supportsTransferableStreams: boolean;
|
|
48
54
|
valueDelimiterId: ValueDelimiterId;
|
|
49
55
|
}
|
|
50
56
|
export interface AuditObjectContentResult {
|
|
51
|
-
|
|
52
|
-
durationMs: number;
|
|
57
|
+
contentAuditConfig: ContentAuditConfig;
|
|
53
58
|
}
|
|
54
59
|
export interface CreateObjectOptions extends EngineConnectorActionOptions {
|
|
55
60
|
path: string;
|
|
@@ -176,8 +176,8 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
176
176
|
readonly groupId: null;
|
|
177
177
|
readonly decoderId: "windows-1252";
|
|
178
178
|
};
|
|
179
|
-
readonly
|
|
180
|
-
readonly id: "
|
|
179
|
+
readonly big5: {
|
|
180
|
+
readonly id: "big5";
|
|
181
181
|
readonly groupId: "chineseTraditional";
|
|
182
182
|
readonly decoderId: "big5";
|
|
183
183
|
};
|
|
@@ -276,8 +276,8 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
276
276
|
readonly groupId: "greek";
|
|
277
277
|
readonly decoderId: null;
|
|
278
278
|
};
|
|
279
|
-
readonly
|
|
280
|
-
readonly id: "
|
|
279
|
+
readonly cp874: {
|
|
280
|
+
readonly id: "cp874";
|
|
281
281
|
readonly groupId: "thai";
|
|
282
282
|
readonly decoderId: "windows-874";
|
|
283
283
|
};
|
|
@@ -286,13 +286,13 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
286
286
|
readonly groupId: "greek";
|
|
287
287
|
readonly decoderId: null;
|
|
288
288
|
};
|
|
289
|
-
readonly
|
|
290
|
-
readonly id: "
|
|
289
|
+
readonly cp932: {
|
|
290
|
+
readonly id: "cp932";
|
|
291
291
|
readonly groupId: "japanese";
|
|
292
292
|
readonly decoderId: "shift_jis";
|
|
293
293
|
};
|
|
294
|
-
readonly
|
|
295
|
-
readonly id: "
|
|
294
|
+
readonly cp949: {
|
|
295
|
+
readonly id: "cp949";
|
|
296
296
|
readonly groupId: "korean";
|
|
297
297
|
readonly decoderId: "euc-kr";
|
|
298
298
|
};
|
|
@@ -321,18 +321,18 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
321
321
|
readonly groupId: "vietnamese";
|
|
322
322
|
readonly decoderId: "windows-1258";
|
|
323
323
|
};
|
|
324
|
-
readonly '
|
|
325
|
-
readonly id: "
|
|
324
|
+
readonly 'euc-jp': {
|
|
325
|
+
readonly id: "euc-jp";
|
|
326
326
|
readonly groupId: "japanese";
|
|
327
327
|
readonly decoderId: "euc-jp";
|
|
328
328
|
};
|
|
329
|
-
readonly '
|
|
330
|
-
readonly id: "
|
|
329
|
+
readonly 'euc-kr': {
|
|
330
|
+
readonly id: "euc-kr";
|
|
331
331
|
readonly groupId: "korean";
|
|
332
332
|
readonly decoderId: "euc-kr";
|
|
333
333
|
};
|
|
334
|
-
readonly
|
|
335
|
-
readonly id: "
|
|
334
|
+
readonly gb18030: {
|
|
335
|
+
readonly id: "gb18030";
|
|
336
336
|
readonly groupId: "chineseSimplified";
|
|
337
337
|
readonly decoderId: "gb18030";
|
|
338
338
|
};
|
|
@@ -341,68 +341,68 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
341
341
|
readonly groupId: "western";
|
|
342
342
|
readonly decoderId: null;
|
|
343
343
|
};
|
|
344
|
-
readonly '
|
|
345
|
-
readonly id: "
|
|
344
|
+
readonly 'hz-gb-2312': {
|
|
345
|
+
readonly id: "hz-gb-2312";
|
|
346
346
|
readonly groupId: "chineseSimplified";
|
|
347
347
|
readonly decoderId: null;
|
|
348
348
|
};
|
|
349
|
-
readonly
|
|
350
|
-
readonly id: "
|
|
349
|
+
readonly ibm855: {
|
|
350
|
+
readonly id: "ibm855";
|
|
351
351
|
readonly groupId: "cyrillic";
|
|
352
352
|
readonly decoderId: null;
|
|
353
353
|
};
|
|
354
|
-
readonly
|
|
355
|
-
readonly id: "
|
|
354
|
+
readonly ibm866: {
|
|
355
|
+
readonly id: "ibm866";
|
|
356
356
|
readonly groupId: "cyrillic";
|
|
357
357
|
readonly decoderId: "ibm866";
|
|
358
358
|
};
|
|
359
|
-
readonly '
|
|
360
|
-
readonly id: "
|
|
359
|
+
readonly 'iso-2022-jp': {
|
|
360
|
+
readonly id: "iso-2022-jp";
|
|
361
361
|
readonly groupId: "japanese";
|
|
362
362
|
readonly decoderId: "iso-2022-jp";
|
|
363
363
|
};
|
|
364
|
-
readonly '
|
|
365
|
-
readonly id: "
|
|
364
|
+
readonly 'iso-2022-kr': {
|
|
365
|
+
readonly id: "iso-2022-kr";
|
|
366
366
|
readonly groupId: "korean";
|
|
367
367
|
readonly decoderId: null;
|
|
368
368
|
};
|
|
369
|
-
readonly '
|
|
370
|
-
readonly id: "
|
|
369
|
+
readonly 'iso-8859-1': {
|
|
370
|
+
readonly id: "iso-8859-1";
|
|
371
371
|
readonly groupId: "western";
|
|
372
372
|
readonly decoderId: "windows-1252";
|
|
373
373
|
};
|
|
374
|
-
readonly '
|
|
375
|
-
readonly id: "
|
|
374
|
+
readonly 'iso-8859-2': {
|
|
375
|
+
readonly id: "iso-8859-2";
|
|
376
376
|
readonly groupId: "centralEuropean";
|
|
377
377
|
readonly decoderId: "iso-8859-2";
|
|
378
378
|
};
|
|
379
|
-
readonly '
|
|
380
|
-
readonly id: "
|
|
379
|
+
readonly 'iso-8859-5': {
|
|
380
|
+
readonly id: "iso-8859-5";
|
|
381
381
|
readonly groupId: "cyrillic";
|
|
382
382
|
readonly decoderId: "iso-8859-5";
|
|
383
383
|
};
|
|
384
|
-
readonly '
|
|
385
|
-
readonly id: "
|
|
384
|
+
readonly 'iso-8859-6': {
|
|
385
|
+
readonly id: "iso-8859-6";
|
|
386
386
|
readonly groupId: "arabic";
|
|
387
387
|
readonly decoderId: "iso-8859-6";
|
|
388
388
|
};
|
|
389
|
-
readonly '
|
|
390
|
-
readonly id: "
|
|
389
|
+
readonly 'iso-8859-7': {
|
|
390
|
+
readonly id: "iso-8859-7";
|
|
391
391
|
readonly groupId: "greek";
|
|
392
392
|
readonly decoderId: "iso-8859-7";
|
|
393
393
|
};
|
|
394
|
-
readonly '
|
|
395
|
-
readonly id: "
|
|
394
|
+
readonly 'iso-8859-8': {
|
|
395
|
+
readonly id: "iso-8859-8";
|
|
396
396
|
readonly groupId: "hebrew";
|
|
397
397
|
readonly decoderId: "iso-8859-8-i";
|
|
398
398
|
};
|
|
399
|
-
readonly '
|
|
400
|
-
readonly id: "
|
|
399
|
+
readonly 'iso-8859-9': {
|
|
400
|
+
readonly id: "iso-8859-9";
|
|
401
401
|
readonly groupId: "turkish";
|
|
402
402
|
readonly decoderId: "windows-1254";
|
|
403
403
|
};
|
|
404
|
-
readonly '
|
|
405
|
-
readonly id: "
|
|
404
|
+
readonly 'iso-8859-13': {
|
|
405
|
+
readonly id: "iso-8859-13";
|
|
406
406
|
readonly groupId: "baltic";
|
|
407
407
|
readonly decoderId: "iso-8859-13";
|
|
408
408
|
};
|
|
@@ -446,13 +446,13 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
446
446
|
readonly groupId: "romanian";
|
|
447
447
|
readonly decoderId: "iso-8859-16";
|
|
448
448
|
};
|
|
449
|
-
readonly
|
|
450
|
-
readonly id: "
|
|
449
|
+
readonly johab: {
|
|
450
|
+
readonly id: "johab";
|
|
451
451
|
readonly groupId: "korean";
|
|
452
452
|
readonly decoderId: null;
|
|
453
453
|
};
|
|
454
|
-
readonly '
|
|
455
|
-
readonly id: "
|
|
454
|
+
readonly 'koi8-r': {
|
|
455
|
+
readonly id: "koi8-r";
|
|
456
456
|
readonly groupId: "cyrillic";
|
|
457
457
|
readonly decoderId: "koi8-r";
|
|
458
458
|
};
|
|
@@ -466,38 +466,38 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
466
466
|
readonly groupId: "cyrillic";
|
|
467
467
|
readonly decoderId: "koi8-u";
|
|
468
468
|
};
|
|
469
|
-
readonly
|
|
470
|
-
readonly id: "
|
|
469
|
+
readonly kz1048: {
|
|
470
|
+
readonly id: "kz1048";
|
|
471
471
|
readonly groupId: "cyrillic";
|
|
472
472
|
readonly decoderId: null;
|
|
473
473
|
};
|
|
474
|
-
readonly
|
|
475
|
-
readonly id: "
|
|
474
|
+
readonly maccyrillic: {
|
|
475
|
+
readonly id: "maccyrillic";
|
|
476
476
|
readonly groupId: "cyrillic";
|
|
477
477
|
readonly decoderId: "x-mac-cyrillic";
|
|
478
478
|
};
|
|
479
|
-
readonly
|
|
480
|
-
readonly id: "
|
|
479
|
+
readonly macgreek: {
|
|
480
|
+
readonly id: "macgreek";
|
|
481
481
|
readonly groupId: "greek";
|
|
482
482
|
readonly decoderId: null;
|
|
483
483
|
};
|
|
484
|
-
readonly
|
|
485
|
-
readonly id: "
|
|
484
|
+
readonly maciceland: {
|
|
485
|
+
readonly id: "maciceland";
|
|
486
486
|
readonly groupId: "nordic";
|
|
487
487
|
readonly decoderId: null;
|
|
488
488
|
};
|
|
489
|
-
readonly
|
|
490
|
-
readonly id: "
|
|
489
|
+
readonly maclatin2: {
|
|
490
|
+
readonly id: "maclatin2";
|
|
491
491
|
readonly groupId: "centralEuropean";
|
|
492
492
|
readonly decoderId: null;
|
|
493
493
|
};
|
|
494
|
-
readonly
|
|
495
|
-
readonly id: "
|
|
494
|
+
readonly macroman: {
|
|
495
|
+
readonly id: "macroman";
|
|
496
496
|
readonly groupId: "western";
|
|
497
497
|
readonly decoderId: "macintosh";
|
|
498
498
|
};
|
|
499
|
-
readonly
|
|
500
|
-
readonly id: "
|
|
499
|
+
readonly macturkish: {
|
|
500
|
+
readonly id: "macturkish";
|
|
501
501
|
readonly groupId: "turkish";
|
|
502
502
|
readonly decoderId: null;
|
|
503
503
|
};
|
|
@@ -506,13 +506,13 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
506
506
|
readonly groupId: "cyrillic";
|
|
507
507
|
readonly decoderId: null;
|
|
508
508
|
};
|
|
509
|
-
readonly
|
|
510
|
-
readonly id: "
|
|
509
|
+
readonly shift_jis: {
|
|
510
|
+
readonly id: "shift_jis";
|
|
511
511
|
readonly groupId: "japanese";
|
|
512
512
|
readonly decoderId: "shift_jis";
|
|
513
513
|
};
|
|
514
|
-
readonly '
|
|
515
|
-
readonly id: "
|
|
514
|
+
readonly 'tis-620': {
|
|
515
|
+
readonly id: "tis-620";
|
|
516
516
|
readonly groupId: "thai";
|
|
517
517
|
readonly decoderId: "windows-874";
|
|
518
518
|
};
|
|
@@ -526,13 +526,13 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
526
526
|
readonly groupId: null;
|
|
527
527
|
readonly decoderId: "utf-8";
|
|
528
528
|
};
|
|
529
|
-
readonly '
|
|
530
|
-
readonly id: "
|
|
529
|
+
readonly 'utf-8-sig': {
|
|
530
|
+
readonly id: "utf-8-sig";
|
|
531
531
|
readonly groupId: null;
|
|
532
532
|
readonly decoderId: "utf-8";
|
|
533
533
|
};
|
|
534
|
-
readonly '
|
|
535
|
-
readonly id: "
|
|
534
|
+
readonly 'utf-16': {
|
|
535
|
+
readonly id: "utf-16";
|
|
536
536
|
readonly groupId: "unicode16";
|
|
537
537
|
readonly decoderId: null;
|
|
538
538
|
};
|
|
@@ -546,8 +546,8 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
546
546
|
readonly groupId: "unicode16";
|
|
547
547
|
readonly decoderId: "utf-16le";
|
|
548
548
|
};
|
|
549
|
-
readonly '
|
|
550
|
-
readonly id: "
|
|
549
|
+
readonly 'utf-32': {
|
|
550
|
+
readonly id: "utf-32";
|
|
551
551
|
readonly groupId: "unicode32";
|
|
552
552
|
readonly decoderId: null;
|
|
553
553
|
};
|
|
@@ -561,43 +561,43 @@ declare const ENCODING_TYPE_CONFIG_DATA: {
|
|
|
561
561
|
readonly groupId: "unicode32";
|
|
562
562
|
readonly decoderId: null;
|
|
563
563
|
};
|
|
564
|
-
readonly '
|
|
565
|
-
readonly id: "
|
|
564
|
+
readonly 'windows-1250': {
|
|
565
|
+
readonly id: "windows-1250";
|
|
566
566
|
readonly groupId: "centralEuropean";
|
|
567
567
|
readonly decoderId: "windows-1250";
|
|
568
568
|
};
|
|
569
|
-
readonly '
|
|
570
|
-
readonly id: "
|
|
569
|
+
readonly 'windows-1251': {
|
|
570
|
+
readonly id: "windows-1251";
|
|
571
571
|
readonly groupId: "cyrillic";
|
|
572
572
|
readonly decoderId: "windows-1251";
|
|
573
573
|
};
|
|
574
|
-
readonly '
|
|
575
|
-
readonly id: "
|
|
574
|
+
readonly 'windows-1252': {
|
|
575
|
+
readonly id: "windows-1252";
|
|
576
576
|
readonly groupId: "western";
|
|
577
577
|
readonly decoderId: "windows-1252";
|
|
578
578
|
};
|
|
579
|
-
readonly '
|
|
580
|
-
readonly id: "
|
|
579
|
+
readonly 'windows-1253': {
|
|
580
|
+
readonly id: "windows-1253";
|
|
581
581
|
readonly groupId: "greek";
|
|
582
582
|
readonly decoderId: "windows-1253";
|
|
583
583
|
};
|
|
584
|
-
readonly '
|
|
585
|
-
readonly id: "
|
|
584
|
+
readonly 'windows-1254': {
|
|
585
|
+
readonly id: "windows-1254";
|
|
586
586
|
readonly groupId: "turkish";
|
|
587
587
|
readonly decoderId: "windows-1254";
|
|
588
588
|
};
|
|
589
|
-
readonly '
|
|
590
|
-
readonly id: "
|
|
589
|
+
readonly 'windows-1255': {
|
|
590
|
+
readonly id: "windows-1255";
|
|
591
591
|
readonly groupId: "hebrew";
|
|
592
592
|
readonly decoderId: "windows-1255";
|
|
593
593
|
};
|
|
594
|
-
readonly '
|
|
595
|
-
readonly id: "
|
|
594
|
+
readonly 'windows-1256': {
|
|
595
|
+
readonly id: "windows-1256";
|
|
596
596
|
readonly groupId: "arabic";
|
|
597
597
|
readonly decoderId: "windows-1256";
|
|
598
598
|
};
|
|
599
|
-
readonly '
|
|
600
|
-
readonly id: "
|
|
599
|
+
readonly 'windows-1257': {
|
|
600
|
+
readonly id: "windows-1257";
|
|
601
601
|
readonly groupId: "baltic";
|
|
602
602
|
readonly decoderId: "windows-1257";
|
|
603
603
|
};
|