@rhc-office/sdk 6.6.264 → 6.6.268
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 +3 -4
- package/dist/api/callbacks.d.ts +0 -1
- package/dist/api/callbacks.d.ts.map +1 -1
- package/dist/api/crypto-tool.d.ts +12 -1
- package/dist/api/crypto-tool.d.ts.map +1 -1
- package/dist/api/document-sdk.d.ts +0 -6
- package/dist/api/document-sdk.d.ts.map +1 -1
- package/dist/api/sign-tool.d.ts +43 -1
- package/dist/api/sign-tool.d.ts.map +1 -1
- package/dist/browser/document-viewer.js +1 -1
- package/dist/browser/document-viewer.js.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +670 -556
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/tools/AnnotationToolImpl.d.ts +47 -0
- package/dist/tools/AnnotationToolImpl.d.ts.map +1 -0
- package/dist/tools/CryptoToolImpl.d.ts +9 -0
- package/dist/tools/CryptoToolImpl.d.ts.map +1 -0
- package/dist/tools/DigitalSignToolImpl.d.ts +27 -0
- package/dist/tools/DigitalSignToolImpl.d.ts.map +1 -0
- package/dist/tools/DocumentToolImpl.d.ts +1 -0
- package/dist/tools/DocumentToolImpl.d.ts.map +1 -1
- package/dist/tools/SignServerToolImpl.d.ts +19 -0
- package/dist/tools/SignServerToolImpl.d.ts.map +1 -0
- package/dist/tools/SymbologyToolImpl.d.ts +8 -0
- package/dist/tools/SymbologyToolImpl.d.ts.map +1 -0
- package/dist/tools/TemplateSignToolImpl.d.ts +13 -0
- package/dist/tools/TemplateSignToolImpl.d.ts.map +1 -0
- package/dist/tools/index.d.ts +6 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/viewer/DocumentSDK.d.ts +0 -8
- package/dist/viewer/DocumentSDK.d.ts.map +1 -1
- package/dist/viewer/ReaderStateStore.d.ts +0 -1
- package/dist/viewer/ReaderStateStore.d.ts.map +1 -1
- package/dist/viewer/SdkCallbackRegistry.d.ts +4 -2
- package/dist/viewer/SdkCallbackRegistry.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/callbacks.ts +4 -17
- package/src/api/crypto-tool.ts +13 -1
- package/src/api/document-sdk.ts +0 -9
- package/src/api/sign-tool.ts +62 -1
- package/src/index.ts +1 -3
- package/src/tools/AnnotationToolImpl.ts +263 -0
- package/src/tools/CryptoToolImpl.ts +27 -0
- package/src/tools/DigitalSignToolImpl.ts +155 -0
- package/src/tools/DocumentToolImpl.ts +24 -2
- package/src/tools/SignServerToolImpl.ts +92 -0
- package/src/tools/SymbologyToolImpl.ts +34 -0
- package/src/tools/TemplateSignToolImpl.ts +51 -0
- package/src/tools/index.ts +6 -0
- package/src/viewer/DocumentSDK.ts +13 -157
- package/src/viewer/ReaderBridgeClient.ts +1 -1
- package/src/viewer/ReaderStateStore.ts +0 -2
- package/src/viewer/SdkCallbackRegistry.ts +8 -8
- package/dist/api/ekey-tool.d.ts +0 -8
- package/dist/api/ekey-tool.d.ts.map +0 -1
- package/dist/api/extension-tool.d.ts +0 -5
- package/dist/api/extension-tool.d.ts.map +0 -1
- package/dist/api/review-tool.d.ts +0 -71
- package/dist/api/review-tool.d.ts.map +0 -1
- package/src/api/ekey-tool.ts +0 -11
- package/src/api/extension-tool.ts +0 -5
- package/src/api/review-tool.ts +0 -105
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
import type { AnnotationTool } from '../api/annotation-tool';
|
|
2
|
-
import type { IDigitalAnnotationInfo } from '../api/annotation-tool';
|
|
3
2
|
import type { CryptoTool } from '../api/crypto-tool';
|
|
4
|
-
import type {
|
|
5
|
-
AnnotationEventCallback,
|
|
6
|
-
ExtensionStateChangedCallback,
|
|
7
|
-
ReaderReadyCallback,
|
|
8
|
-
ReaderUnloadCallback,
|
|
9
|
-
} from '../api/callbacks';
|
|
3
|
+
import type { ReaderReadyCallback, ReaderUnloadCallback } from '../api/callbacks';
|
|
10
4
|
import type { IDocumentSDK, IReaderEmbedOptions } from '../api/document-sdk';
|
|
11
5
|
import type { DocumentTool } from '../api/document-tool';
|
|
12
|
-
import type { EkeyTool } from '../api/ekey-tool';
|
|
13
|
-
import type { ExtensionTool } from '../api/extension-tool';
|
|
14
6
|
import type { FindTool } from '../api/find-tool';
|
|
15
7
|
import type { NetworkingTool } from '../api/networking-tool';
|
|
16
8
|
import type { PageTool } from '../api/page-tool';
|
|
17
9
|
import type { PdfFormFiller } from '../api/pdf-formfiller';
|
|
18
|
-
import type { ReviewTool } from '../api/review-tool';
|
|
19
10
|
import type { SignServerTool } from '../api/sign-server';
|
|
20
11
|
import type { DigitalSignTool } from '../api/sign-tool';
|
|
21
12
|
import type { SymbologyTool } from '../api/symbology-tool';
|
|
22
13
|
import type { TemplateSignTool } from '../api/template-sign';
|
|
23
14
|
import type { UITool } from '../api/ui-tool';
|
|
15
|
+
import { AnnotationToolImpl } from '../tools/AnnotationToolImpl';
|
|
16
|
+
import { CryptoToolImpl } from '../tools/CryptoToolImpl';
|
|
17
|
+
import { DigitalSignToolImpl } from '../tools/DigitalSignToolImpl';
|
|
24
18
|
import { DocumentToolImpl } from '../tools/DocumentToolImpl';
|
|
25
19
|
import { FindToolImpl } from '../tools/FindToolImpl';
|
|
26
20
|
import { NetworkingToolImpl } from '../tools/NetworkingToolImpl';
|
|
27
21
|
import { PageToolImpl } from '../tools/PageToolImpl';
|
|
28
22
|
import { PdfFormFillerImpl } from '../tools/PdfFormFillerImpl';
|
|
29
23
|
import { DigitalSignOptions, KVField } from '../tools/SDKValueObjects';
|
|
24
|
+
import { SignServerToolImpl } from '../tools/SignServerToolImpl';
|
|
25
|
+
import { SymbologyToolImpl } from '../tools/SymbologyToolImpl';
|
|
26
|
+
import { TemplateSignToolImpl } from '../tools/TemplateSignToolImpl';
|
|
30
27
|
import { UIToolImpl } from '../tools/UIToolImpl';
|
|
31
28
|
import type { NormalizedReaderEmbedOptions } from './ReaderConfiguration';
|
|
32
29
|
import { normalizeAppUrl, normalizeReaderEmbedOptions } from './ReaderConfiguration';
|
|
@@ -40,7 +37,6 @@ import {
|
|
|
40
37
|
RHC_OFFICE_READER_ID_ATTRIBUTE,
|
|
41
38
|
type AdapterEvent,
|
|
42
39
|
} from './AdapterProtocol';
|
|
43
|
-
import { createBridgeToolAdapter, createNotImplementedBridgeTool } from './BridgeToolAdapter';
|
|
44
40
|
import { ReaderBridgeClient } from './ReaderBridgeClient';
|
|
45
41
|
import { ReaderStateStore } from './ReaderStateStore';
|
|
46
42
|
import { SdkCallbackRegistry } from './SdkCallbackRegistry';
|
|
@@ -235,38 +231,14 @@ export class DocumentSDK implements IDocumentSDK {
|
|
|
235
231
|
private readonly uiTool = new UIToolImpl(this.bridgeToolContext);
|
|
236
232
|
private readonly pageTool = new PageToolImpl(this.bridgeToolContext);
|
|
237
233
|
private readonly findTool = new FindToolImpl(this.bridgeToolContext);
|
|
238
|
-
private readonly signServerTool =
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
);
|
|
242
|
-
private readonly
|
|
243
|
-
'digitalSign',
|
|
244
|
-
this.bridgeToolContext,
|
|
245
|
-
);
|
|
246
|
-
private readonly reviewTool = createNotImplementedBridgeTool<ReviewTool>(
|
|
247
|
-
'review',
|
|
248
|
-
this.bridgeToolContext,
|
|
249
|
-
);
|
|
250
|
-
private readonly ekeyTool = createNotImplementedBridgeTool<EkeyTool>(
|
|
251
|
-
'ekey',
|
|
252
|
-
this.bridgeToolContext,
|
|
253
|
-
);
|
|
254
|
-
private readonly symbologyTool = createNotImplementedBridgeTool<SymbologyTool>(
|
|
255
|
-
'symbology',
|
|
256
|
-
this.bridgeToolContext,
|
|
257
|
-
);
|
|
258
|
-
private readonly annotationTool = this.createAnnotationTool();
|
|
259
|
-
private readonly templateSignTool = createNotImplementedBridgeTool<TemplateSignTool>(
|
|
260
|
-
'templateSign',
|
|
261
|
-
this.bridgeToolContext,
|
|
262
|
-
);
|
|
234
|
+
private readonly signServerTool = new SignServerToolImpl(this.bridgeToolContext);
|
|
235
|
+
private readonly digitalSignTool = new DigitalSignToolImpl(this.bridgeToolContext);
|
|
236
|
+
private readonly symbologyTool = new SymbologyToolImpl(this.bridgeToolContext);
|
|
237
|
+
private readonly annotationTool = new AnnotationToolImpl(this.bridgeToolContext);
|
|
238
|
+
private readonly templateSignTool = new TemplateSignToolImpl(this.bridgeToolContext);
|
|
263
239
|
private readonly pdfFormFiller = new PdfFormFillerImpl(this.bridgeToolContext);
|
|
264
|
-
private readonly extensionTool = this.createExtensionTool();
|
|
265
240
|
private readonly networkingTool = new NetworkingToolImpl(this.bridgeToolContext);
|
|
266
|
-
private readonly cryptoTool =
|
|
267
|
-
'crypto',
|
|
268
|
-
this.bridgeToolContext,
|
|
269
|
-
);
|
|
241
|
+
private readonly cryptoTool = new CryptoToolImpl(this.bridgeToolContext);
|
|
270
242
|
|
|
271
243
|
private readonly readyCallbacks: ReaderReadyCallback[] = [];
|
|
272
244
|
private readonly unloadCallbacks: ReaderUnloadCallback[] = [];
|
|
@@ -420,14 +392,6 @@ export class DocumentSDK implements IDocumentSDK {
|
|
|
420
392
|
return this.digitalSignTool;
|
|
421
393
|
};
|
|
422
394
|
|
|
423
|
-
readonly getReviewTool: IDocumentSDK['getReviewTool'] = (): ReviewTool => {
|
|
424
|
-
return this.reviewTool;
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
readonly getEkeyTool: IDocumentSDK['getEkeyTool'] = (): EkeyTool => {
|
|
428
|
-
return this.ekeyTool;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
395
|
readonly getSymbologyTool: IDocumentSDK['getSymbologyTool'] = (): SymbologyTool => {
|
|
432
396
|
return this.symbologyTool;
|
|
433
397
|
};
|
|
@@ -444,10 +408,6 @@ export class DocumentSDK implements IDocumentSDK {
|
|
|
444
408
|
return this.pdfFormFiller;
|
|
445
409
|
};
|
|
446
410
|
|
|
447
|
-
readonly getExtensionTool: IDocumentSDK['getExtensionTool'] = (): ExtensionTool => {
|
|
448
|
-
return this.extensionTool;
|
|
449
|
-
};
|
|
450
|
-
|
|
451
411
|
readonly getNetworkingTool: IDocumentSDK['getNetworkingTool'] = (): NetworkingTool => {
|
|
452
412
|
return this.networkingTool;
|
|
453
413
|
};
|
|
@@ -464,110 +424,6 @@ export class DocumentSDK implements IDocumentSDK {
|
|
|
464
424
|
return new KVField(key, value, description);
|
|
465
425
|
};
|
|
466
426
|
|
|
467
|
-
private createAnnotationTool(): AnnotationTool {
|
|
468
|
-
return createBridgeToolAdapter<AnnotationTool>(
|
|
469
|
-
'annotation',
|
|
470
|
-
{
|
|
471
|
-
addAnnotationEventCallback: {
|
|
472
|
-
kind: 'callbackRegister',
|
|
473
|
-
callback: (callbacks, args) => {
|
|
474
|
-
const callback = args[0];
|
|
475
|
-
if (typeof callback === 'function') {
|
|
476
|
-
callbacks.annotationEvents.push(callback as AnnotationEventCallback);
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
},
|
|
480
|
-
addAnnotationPersistCallback: {
|
|
481
|
-
kind: 'callbackRegister',
|
|
482
|
-
callback: (callbacks, args) => {
|
|
483
|
-
const callback = args[0];
|
|
484
|
-
if (typeof callback === 'function') {
|
|
485
|
-
callbacks.annotationPersist.push(callback as (event: unknown) => void);
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
addAnnotationRetrieveCallback: {
|
|
490
|
-
kind: 'callbackRegister',
|
|
491
|
-
callback: (callbacks, args) => {
|
|
492
|
-
const callback = args[0];
|
|
493
|
-
if (typeof callback === 'function') {
|
|
494
|
-
callbacks.annotationRetrieve.push(callback as (event: unknown) => void);
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
},
|
|
498
|
-
addDigitalAnnotationRetrieveCallback: {
|
|
499
|
-
kind: 'callbackRegister',
|
|
500
|
-
callback: (callbacks, args) => {
|
|
501
|
-
const callback = args[0];
|
|
502
|
-
if (typeof callback === 'function') {
|
|
503
|
-
callbacks.digitalAnnotationRetrieve.push(
|
|
504
|
-
callback as (annotations: IDigitalAnnotationInfo[]) => void,
|
|
505
|
-
);
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
},
|
|
509
|
-
isInAnnotationMode: {
|
|
510
|
-
kind: 'stateGetter',
|
|
511
|
-
state: (state) => state.annotationEnabled,
|
|
512
|
-
},
|
|
513
|
-
getAnnotations: { kind: 'stateGetter', state: () => [] },
|
|
514
|
-
getAnnotationsCount: { kind: 'stateGetter', state: () => 0 },
|
|
515
|
-
queryAnnotationsBy: { kind: 'stateGetter', state: () => [] },
|
|
516
|
-
setToolSource: { kind: 'command' },
|
|
517
|
-
openAnnotationView: { kind: 'command' },
|
|
518
|
-
closeAnnotationView: { kind: 'command' },
|
|
519
|
-
openTextAnnotationView: { kind: 'command' },
|
|
520
|
-
setTextAnnotationFontColor: { kind: 'command' },
|
|
521
|
-
setTextAnnotationFontSize: { kind: 'command' },
|
|
522
|
-
closeTextAnnotationView: { kind: 'command' },
|
|
523
|
-
createTextAnnotation: { kind: 'command' },
|
|
524
|
-
setPersistToDocument: { kind: 'command' },
|
|
525
|
-
saveAnnotations: { kind: 'callbackQuery' },
|
|
526
|
-
saveTextAnnotations: { kind: 'command' },
|
|
527
|
-
clearAnnotations: { kind: 'command' },
|
|
528
|
-
clearTextAnnotations: { kind: 'command' },
|
|
529
|
-
undoAnnotation: { kind: 'command' },
|
|
530
|
-
redoAnnotation: { kind: 'command' },
|
|
531
|
-
selectAnnotationTool: { kind: 'command' },
|
|
532
|
-
showAnnotationColorPicker: { kind: 'command' },
|
|
533
|
-
setAnnotationPenType: { kind: 'command' },
|
|
534
|
-
appendAnnotations: { kind: 'callbackQuery' },
|
|
535
|
-
batchAppendAnnotations: { kind: 'callbackQuery' },
|
|
536
|
-
setAnnotationPenColor: { kind: 'command' },
|
|
537
|
-
setAnnotationPenWidth: { kind: 'command' },
|
|
538
|
-
setAnnotationPenThickness: { kind: 'command' },
|
|
539
|
-
enableAnnotationsInfoView: { kind: 'command' },
|
|
540
|
-
enableAnnotationsDeletion: { kind: 'command' },
|
|
541
|
-
enableAnnotationsDeletionOnlyByAuthor: { kind: 'command' },
|
|
542
|
-
listDigitalStamps: { kind: 'command' },
|
|
543
|
-
listAnnotations: { kind: 'command' },
|
|
544
|
-
deleteAnnotationsBy: { kind: 'command' },
|
|
545
|
-
deleteAnnotationsById: { kind: 'command' },
|
|
546
|
-
addDigitalAnnotation: { kind: 'command' },
|
|
547
|
-
addInkAnnotationCallback: { kind: 'callbackRegister' },
|
|
548
|
-
},
|
|
549
|
-
this.bridgeToolContext,
|
|
550
|
-
);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
private createExtensionTool(): ExtensionTool {
|
|
554
|
-
return createBridgeToolAdapter<ExtensionTool>(
|
|
555
|
-
'extension',
|
|
556
|
-
{
|
|
557
|
-
addExtensionStateChangedCallback: {
|
|
558
|
-
kind: 'callbackRegister',
|
|
559
|
-
callback: (callbacks, args) => {
|
|
560
|
-
const callback = args[0];
|
|
561
|
-
if (typeof callback === 'function') {
|
|
562
|
-
callbacks.extensionStateChanged.push(callback as ExtensionStateChangedCallback);
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
},
|
|
566
|
-
},
|
|
567
|
-
this.bridgeToolContext,
|
|
568
|
-
);
|
|
569
|
-
}
|
|
570
|
-
|
|
571
427
|
private readonly mountReader = async (
|
|
572
428
|
hostContainer: HTMLDivElement,
|
|
573
429
|
configuration: NormalizedReaderEmbedOptions,
|
|
@@ -151,7 +151,7 @@ export class ReaderBridgeClient {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
return new Promise<AdapterGlobal | null>((resolve) => {
|
|
154
|
-
let timeoutId: ReturnType<typeof setTimeout> | undefined;
|
|
154
|
+
let timeoutId: ReturnType<typeof setTimeout> | undefined = undefined;
|
|
155
155
|
|
|
156
156
|
const cleanup = (): void => {
|
|
157
157
|
if (timeoutId) {
|
|
@@ -6,7 +6,6 @@ export interface ReaderStateSnapshot {
|
|
|
6
6
|
documentModified: boolean;
|
|
7
7
|
documentOpened: boolean;
|
|
8
8
|
documentType?: string;
|
|
9
|
-
extensionState: 'connected' | 'disconnected';
|
|
10
9
|
pageCount: number;
|
|
11
10
|
pageIndex: number;
|
|
12
11
|
pageMode: number;
|
|
@@ -17,7 +16,6 @@ const DEFAULT_READER_STATE: ReaderStateSnapshot = {
|
|
|
17
16
|
annotationEnabled: false,
|
|
18
17
|
documentModified: false,
|
|
19
18
|
documentOpened: false,
|
|
20
|
-
extensionState: 'disconnected',
|
|
21
19
|
pageCount: 0,
|
|
22
20
|
pageIndex: 1,
|
|
23
21
|
pageMode: 0,
|
|
@@ -3,25 +3,26 @@ import type {
|
|
|
3
3
|
DigitalSignatureRetrieveCallback,
|
|
4
4
|
DocumentClosedCallback,
|
|
5
5
|
DocumentSavedCallback,
|
|
6
|
-
ExtensionStateChangedCallback,
|
|
7
6
|
PageChangeCallback,
|
|
8
7
|
PageModeChangeCallback,
|
|
9
8
|
} from '../api/callbacks';
|
|
10
9
|
import type { IDigitalAnnotationInfo } from '../api/annotation-tool';
|
|
10
|
+
import type { ISignServerAuthorization, SignServerAuthCallback } from '../api/sign-server';
|
|
11
11
|
|
|
12
12
|
export class SdkCallbackRegistry {
|
|
13
13
|
readonly annotationEvents: AnnotationEventCallback[] = [];
|
|
14
14
|
readonly annotationPersist: Array<(event: unknown) => void> = [];
|
|
15
15
|
readonly annotationRetrieve: Array<(event: unknown) => void> = [];
|
|
16
16
|
readonly digitalAnnotationRetrieve: Array<(annotations: IDigitalAnnotationInfo[]) => void> = [];
|
|
17
|
+
readonly digitalSign: Array<(response: unknown) => void> = [];
|
|
17
18
|
readonly digitalSignatureParse: DigitalSignatureRetrieveCallback[] = [];
|
|
18
19
|
readonly digitalSignatureRetrieve: DigitalSignatureRetrieveCallback[] = [];
|
|
19
20
|
readonly documentClosed: DocumentClosedCallback[] = [];
|
|
20
21
|
readonly documentOpened: Array<(status: string, error: string) => void> = [];
|
|
21
22
|
readonly documentSaved: DocumentSavedCallback[] = [];
|
|
22
|
-
readonly extensionStateChanged: ExtensionStateChangedCallback[] = [];
|
|
23
23
|
readonly pageChange: PageChangeCallback[] = [];
|
|
24
24
|
readonly pageModeChange: PageModeChangeCallback[] = [];
|
|
25
|
+
readonly signServerAuth: SignServerAuthCallback[] = [];
|
|
25
26
|
|
|
26
27
|
emit(event: string, payload: unknown): void {
|
|
27
28
|
switch (event) {
|
|
@@ -65,6 +66,9 @@ export class SdkCallbackRegistry {
|
|
|
65
66
|
callback(Array.isArray(payload) ? (payload as IDigitalAnnotationInfo[]) : []),
|
|
66
67
|
);
|
|
67
68
|
return;
|
|
69
|
+
case 'digitalSign':
|
|
70
|
+
this.digitalSign.forEach((callback) => callback(payload));
|
|
71
|
+
return;
|
|
68
72
|
case 'digitalSignatureRetrieve':
|
|
69
73
|
this.digitalSignatureRetrieve.forEach((callback) =>
|
|
70
74
|
callback(Array.isArray(payload) ? payload : []),
|
|
@@ -75,13 +79,9 @@ export class SdkCallbackRegistry {
|
|
|
75
79
|
callback(Array.isArray(payload) ? payload : []),
|
|
76
80
|
);
|
|
77
81
|
return;
|
|
78
|
-
case '
|
|
79
|
-
|
|
80
|
-
this.extensionStateChanged.forEach((callback) =>
|
|
81
|
-
callback(extensionPayload.state ?? 'disconnected'),
|
|
82
|
-
);
|
|
82
|
+
case 'signServerAuth':
|
|
83
|
+
this.signServerAuth.forEach((callback) => callback(payload as ISignServerAuthorization));
|
|
83
84
|
return;
|
|
84
|
-
}
|
|
85
85
|
default:
|
|
86
86
|
return;
|
|
87
87
|
}
|
package/dist/api/ekey-tool.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type OnLoadEkeyCallback = (ekeyList: string[]) => void;
|
|
2
|
-
export interface EkeyTool {
|
|
3
|
-
setOperationTimeout(timeout: number): void;
|
|
4
|
-
isEkeyConnected(callback: OnLoadEkeyCallback): void;
|
|
5
|
-
setDefaultEKEYPassword(ekeyPassword: string): void;
|
|
6
|
-
setDefaultEKEYAuthentication(ekeyLogin: boolean): void;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=ekey-tool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ekey-tool.d.ts","sourceRoot":"","sources":["../../src/api/ekey-tool.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;AAE9D,MAAM,WAAW,QAAQ;IACvB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C,eAAe,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAEpD,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnD,4BAA4B,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;CACxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension-tool.d.ts","sourceRoot":"","sources":["../../src/api/extension-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAE5D,MAAM,WAAW,aAAa;IAC5B,gCAAgC,CAAC,QAAQ,EAAE,6BAA6B,GAAG,IAAI,CAAC;CACjF"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
export interface SessionView {
|
|
2
|
-
sessionId?: string;
|
|
3
|
-
}
|
|
4
|
-
export interface RawReviewParticipant extends SessionView {
|
|
5
|
-
userName: string;
|
|
6
|
-
userTitle: string;
|
|
7
|
-
password?: string;
|
|
8
|
-
themeColor?: string;
|
|
9
|
-
isHost?: boolean;
|
|
10
|
-
isSpeaker?: boolean;
|
|
11
|
-
isOrganizer?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface ReviewParticipant {
|
|
14
|
-
userId: number;
|
|
15
|
-
userName: string;
|
|
16
|
-
userTitle: string;
|
|
17
|
-
themeColor: string;
|
|
18
|
-
id: number;
|
|
19
|
-
agentInfo: string;
|
|
20
|
-
ipAddress: string;
|
|
21
|
-
roomHost: boolean;
|
|
22
|
-
roomOrganizer: boolean;
|
|
23
|
-
following?: number;
|
|
24
|
-
roomId: number;
|
|
25
|
-
online?: boolean;
|
|
26
|
-
idle?: boolean;
|
|
27
|
-
onPresentation?: boolean;
|
|
28
|
-
annotationAbiLocked?: boolean;
|
|
29
|
-
nameTag: string;
|
|
30
|
-
englishName: boolean;
|
|
31
|
-
inAnnotation?: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface ReviewFile extends SessionView {
|
|
34
|
-
fileName: string;
|
|
35
|
-
downloadURL: string;
|
|
36
|
-
}
|
|
37
|
-
export interface ReviewSession extends SessionView {
|
|
38
|
-
sessionId: string;
|
|
39
|
-
sessionURL: string;
|
|
40
|
-
sessionName: string;
|
|
41
|
-
addParticipants(participants: RawReviewParticipant[]): void;
|
|
42
|
-
getParticipants(): Promise<RawReviewParticipant[]>;
|
|
43
|
-
addParticipantCreatedCallback(callback: (participant: ReviewParticipant) => void): void;
|
|
44
|
-
notifyParticipantCreated(participant: ReviewParticipant): void;
|
|
45
|
-
notifyParticipantsFetched(questKey: string, participant: ReviewParticipant[]): void;
|
|
46
|
-
addDocuments(documents: ReviewFile[]): void;
|
|
47
|
-
showDocumentsUploader(): void;
|
|
48
|
-
showDocumentsExplorer(): void;
|
|
49
|
-
getDocuments(): Promise<ReviewFile[]>;
|
|
50
|
-
addParticipantOnlineCallback(callback: (participant: ReviewParticipant) => void): void;
|
|
51
|
-
addParticipantOfflineCallback(callback: (participant: ReviewParticipant) => void): void;
|
|
52
|
-
enableAnnotation(): void;
|
|
53
|
-
disableAnnotation(): void;
|
|
54
|
-
isAnnotationEnabled(): Promise<boolean>;
|
|
55
|
-
enableAnnotationForParticipant(participant: RawReviewParticipant): void;
|
|
56
|
-
disableAnnotationForParticipant(participant: RawReviewParticipant): void;
|
|
57
|
-
isAnnotationEnabledForParticipant(participant: RawReviewParticipant): Promise<boolean>;
|
|
58
|
-
isSpeaker(participant: RawReviewParticipant): Promise<boolean>;
|
|
59
|
-
getSpeaker(): Promise<RawReviewParticipant | undefined>;
|
|
60
|
-
setSpeaker(participant: RawReviewParticipant): void;
|
|
61
|
-
removeSpeaker(): void;
|
|
62
|
-
}
|
|
63
|
-
export interface ReviewTool {
|
|
64
|
-
startSession(sessionName: string, sessionPassword?: string, organizer?: RawReviewParticipant): Promise<ReviewSession | undefined>;
|
|
65
|
-
getSessions(): Promise<ReviewSession[]>;
|
|
66
|
-
getSession(sessionId: string): Promise<ReviewSession | undefined>;
|
|
67
|
-
endSession(session: ReviewSession): Promise<ReviewSession | undefined>;
|
|
68
|
-
openSession(session: ReviewSession): Promise<ReviewSession | undefined>;
|
|
69
|
-
embedReviewer(session: ReviewSession, domIdOrDomElement: string | HTMLDivElement): Promise<ReviewSession | undefined>;
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=review-tool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"review-tool.d.ts","sourceRoot":"","sources":["../../src/api/review-tool.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EA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AAC;IAExE,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;CACvH"}
|
package/src/api/ekey-tool.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type OnLoadEkeyCallback = (ekeyList: string[]) => void;
|
|
2
|
-
|
|
3
|
-
export interface EkeyTool {
|
|
4
|
-
setOperationTimeout(timeout: number): void;
|
|
5
|
-
|
|
6
|
-
isEkeyConnected(callback: OnLoadEkeyCallback): void;
|
|
7
|
-
|
|
8
|
-
setDefaultEKEYPassword(ekeyPassword: string): void;
|
|
9
|
-
|
|
10
|
-
setDefaultEKEYAuthentication(ekeyLogin: boolean): void;
|
|
11
|
-
}
|
package/src/api/review-tool.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
export interface SessionView {
|
|
2
|
-
sessionId?: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface RawReviewParticipant extends SessionView {
|
|
6
|
-
userName: string;
|
|
7
|
-
userTitle: string;
|
|
8
|
-
password?: string;
|
|
9
|
-
themeColor?: string;
|
|
10
|
-
|
|
11
|
-
isHost?: boolean;
|
|
12
|
-
isSpeaker?: boolean;
|
|
13
|
-
isOrganizer?: boolean;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ReviewParticipant {
|
|
17
|
-
userId: number;
|
|
18
|
-
userName: string;
|
|
19
|
-
userTitle: string;
|
|
20
|
-
themeColor: string;
|
|
21
|
-
|
|
22
|
-
id: number;
|
|
23
|
-
agentInfo: string;
|
|
24
|
-
ipAddress: string;
|
|
25
|
-
roomHost: boolean;
|
|
26
|
-
roomOrganizer: boolean;
|
|
27
|
-
following?: number;
|
|
28
|
-
|
|
29
|
-
roomId: number;
|
|
30
|
-
online?: boolean;
|
|
31
|
-
idle?: boolean;
|
|
32
|
-
onPresentation?: boolean;
|
|
33
|
-
annotationAbiLocked?: boolean;
|
|
34
|
-
|
|
35
|
-
nameTag: string;
|
|
36
|
-
englishName: boolean;
|
|
37
|
-
inAnnotation?: boolean;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface ReviewFile extends SessionView {
|
|
41
|
-
fileName: string;
|
|
42
|
-
downloadURL: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface ReviewSession extends SessionView {
|
|
46
|
-
sessionId: string;
|
|
47
|
-
sessionURL: string;
|
|
48
|
-
sessionName: string;
|
|
49
|
-
|
|
50
|
-
addParticipants(participants: RawReviewParticipant[]): void;
|
|
51
|
-
|
|
52
|
-
getParticipants(): Promise<RawReviewParticipant[]>;
|
|
53
|
-
|
|
54
|
-
addParticipantCreatedCallback(callback: (participant: ReviewParticipant) => void): void;
|
|
55
|
-
|
|
56
|
-
notifyParticipantCreated(participant: ReviewParticipant): void;
|
|
57
|
-
|
|
58
|
-
notifyParticipantsFetched(questKey: string, participant: ReviewParticipant[]): void;
|
|
59
|
-
|
|
60
|
-
addDocuments(documents: ReviewFile[]): void;
|
|
61
|
-
|
|
62
|
-
showDocumentsUploader(): void;
|
|
63
|
-
|
|
64
|
-
showDocumentsExplorer(): void;
|
|
65
|
-
|
|
66
|
-
getDocuments(): Promise<ReviewFile[]>;
|
|
67
|
-
|
|
68
|
-
addParticipantOnlineCallback(callback: (participant: ReviewParticipant) => void): void;
|
|
69
|
-
|
|
70
|
-
addParticipantOfflineCallback(callback: (participant: ReviewParticipant) => void): void;
|
|
71
|
-
|
|
72
|
-
enableAnnotation(): void;
|
|
73
|
-
|
|
74
|
-
disableAnnotation(): void;
|
|
75
|
-
|
|
76
|
-
isAnnotationEnabled(): Promise<boolean>;
|
|
77
|
-
|
|
78
|
-
enableAnnotationForParticipant(participant: RawReviewParticipant): void;
|
|
79
|
-
|
|
80
|
-
disableAnnotationForParticipant(participant: RawReviewParticipant): void;
|
|
81
|
-
|
|
82
|
-
isAnnotationEnabledForParticipant(participant: RawReviewParticipant): Promise<boolean>;
|
|
83
|
-
|
|
84
|
-
isSpeaker(participant: RawReviewParticipant): Promise<boolean>;
|
|
85
|
-
|
|
86
|
-
getSpeaker(): Promise<RawReviewParticipant | undefined>;
|
|
87
|
-
|
|
88
|
-
setSpeaker(participant: RawReviewParticipant): void;
|
|
89
|
-
|
|
90
|
-
removeSpeaker(): void;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface ReviewTool {
|
|
94
|
-
startSession(sessionName: string, sessionPassword?: string, organizer?: RawReviewParticipant): Promise<ReviewSession | undefined>;
|
|
95
|
-
|
|
96
|
-
getSessions(): Promise<ReviewSession[]>;
|
|
97
|
-
|
|
98
|
-
getSession(sessionId: string): Promise<ReviewSession | undefined>;
|
|
99
|
-
|
|
100
|
-
endSession(session: ReviewSession): Promise<ReviewSession | undefined>;
|
|
101
|
-
|
|
102
|
-
openSession(session: ReviewSession): Promise<ReviewSession | undefined>;
|
|
103
|
-
|
|
104
|
-
embedReviewer(session: ReviewSession, domIdOrDomElement: string | HTMLDivElement): Promise<ReviewSession | undefined>;
|
|
105
|
-
}
|