testaugnitosdk2 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +442 -0
  2. package/dist/Augnito.d.ts +130 -0
  3. package/dist/AugnitoMobile.d.ts +13 -0
  4. package/dist/api/BaseAPI.d.ts +32 -0
  5. package/dist/api/FactoryAPI.d.ts +25 -0
  6. package/dist/api/Formatting/FormattingAPI.d.ts +15 -0
  7. package/dist/api/Formatting/FormattingModels.d.ts +29 -0
  8. package/dist/api/Macros/MacrosAPI.d.ts +28 -0
  9. package/dist/api/Macros/MacrosModels.d.ts +32 -0
  10. package/dist/api/MedicineOrdering/MedicineOrderderingData.d.ts +6 -0
  11. package/dist/api/MedicineOrdering/MedicineOrderingAPI.d.ts +15 -0
  12. package/dist/api/MedicineOrdering/MedicineOrderingModels.d.ts +26 -0
  13. package/dist/api/Vocabulary/VocabularyAPI.d.ts +31 -0
  14. package/dist/api/Vocabulary/VocabularyModels.d.ts +38 -0
  15. package/dist/api/index.d.ts +9 -0
  16. package/dist/augnitosdk.js +11067 -0
  17. package/dist/client/MobileClient.d.ts +17 -0
  18. package/dist/client/NotificationClient.d.ts +25 -0
  19. package/dist/client/PhilipsMicClient.d.ts +17 -0
  20. package/dist/client/WebClient.d.ts +59 -0
  21. package/dist/commands/AugnitoCommands.d.ts +93 -0
  22. package/dist/commands/AugnitoCommandsRegex.d.ts +9 -0
  23. package/dist/commands/AugnitoCommandsStatic.d.ts +6 -0
  24. package/dist/commands/AugnitoCustomCommands.d.ts +8 -0
  25. package/dist/commands/index.d.ts +1 -0
  26. package/dist/commands/utils/CustomCommandModel.d.ts +5 -0
  27. package/dist/commands/utils/TextToWordInteger.d.ts +5 -0
  28. package/dist/config/AugnitoConfig.d.ts +113 -0
  29. package/dist/config/AugnitoFormattingConfig.d.ts +10 -0
  30. package/dist/config/AugnitoMobileConfig.d.ts +7 -0
  31. package/dist/config/AugnitoVocabularyConfig.d.ts +10 -0
  32. package/dist/config/ConfigValidator.d.ts +15 -0
  33. package/dist/config/IConfiguration .d.ts +35 -0
  34. package/dist/config/PhilipsMicConfig.d.ts +8 -0
  35. package/dist/config/SDKConfig.d.ts +40 -0
  36. package/dist/config/SDKConfigMobile.d.ts +21 -0
  37. package/dist/config/index.d.ts +4 -0
  38. package/dist/index.d.ts +10 -0
  39. package/dist/index.js +188 -0
  40. package/dist/interop/core/CommonEditorUtils.d.ts +10 -0
  41. package/dist/interop/core/EditorHandler.d.ts +35 -0
  42. package/dist/interop/core/EditorType.d.ts +8 -0
  43. package/dist/interop/core/PhilipsMicMode.d.ts +6 -0
  44. package/dist/interop/core/ProcessorFactory.d.ts +9 -0
  45. package/dist/interop/core/ProcessorHandler.d.ts +35 -0
  46. package/dist/interop/core/RichEditClientCommand.d.ts +416 -0
  47. package/dist/interop/core/TargetEditor.d.ts +7 -0
  48. package/dist/interop/index.d.ts +3 -0
  49. package/dist/interop/processors/BaseInteropProcessor.d.ts +10 -0
  50. package/dist/interop/processors/CKEditor4InteropProcessor.d.ts +14 -0
  51. package/dist/interop/processors/CKEditor5InteropProcessor.d.ts +17 -0
  52. package/dist/interop/processors/CommonContentEditableProcessor.d.ts +63 -0
  53. package/dist/interop/processors/DevExpressRichEditProcessor.d.ts +14 -0
  54. package/dist/interop/processors/GenericInteropProcessor.d.ts +11 -0
  55. package/dist/interop/processors/HTMLInteropProcessor.d.ts +41 -0
  56. package/dist/interop/processors/InteropProcessor.d.ts +11 -0
  57. package/dist/interop/processors/InteropProcessorCommon.d.ts +21 -0
  58. package/dist/interop/types/AnchoredEditorData.d.ts +4 -0
  59. package/dist/interop/types/CKEditorExtensions.d.ts +8 -0
  60. package/dist/interop/types/CommonTypes.d.ts +27 -0
  61. package/dist/interop/types/DynamicBadge.d.ts +5 -0
  62. package/dist/interop/types/DynamicSelect.d.ts +14 -0
  63. package/dist/recipe/ActionRecipe.d.ts +19 -0
  64. package/dist/recipe/index.d.ts +1 -0
  65. package/dist/support/AugnitoMobileSocketResponse.d.ts +19 -0
  66. package/dist/support/AugnitoNotificationMessage.d.ts +9 -0
  67. package/dist/support/AugnitoSDKErrorMessage.d.ts +7 -0
  68. package/dist/support/AugnitoSDKErrors.d.ts +7 -0
  69. package/dist/support/AugnitoSDKEvent.d.ts +11 -0
  70. package/dist/support/AugnitoServerStatusCode.d.ts +7 -0
  71. package/dist/support/AugnitoSocketResponse.d.ts +17 -0
  72. package/dist/support/AugnitoSource.d.ts +17 -0
  73. package/dist/support/AugnitoStatus.d.ts +27 -0
  74. package/dist/utils/AugnitoDomainUtils.d.ts +8 -0
  75. package/dist/utils/AugnitoUtils.d.ts +11 -0
  76. package/dist/utils/Guard.d.ts +11 -0
  77. package/dist/utils/Logger.d.ts +6 -0
  78. package/dist/utils/RichEditAction.d.ts +11 -0
  79. package/package.json +79 -0
@@ -0,0 +1,29 @@
1
+ import { BaseResult, Edge } from '../BaseAPI';
2
+ export interface UserFormattingRequest {
3
+ PageId?: Edge;
4
+ Limit?: number;
5
+ }
6
+ export interface UpsertFormattingRequest {
7
+ SpokenForm: string;
8
+ DisplayForm: string;
9
+ ID?: string;
10
+ }
11
+ export interface RemoveFormattingRequest {
12
+ ID: string;
13
+ }
14
+ export interface FormattingResult extends BaseResult {
15
+ Data: {
16
+ StatusMessage: string;
17
+ FormattingPreferenceItems?: {
18
+ PageSize: number;
19
+ PageIdNext?: Edge;
20
+ PageIdPrevious?: Edge;
21
+ Items: Array<FormattingItem>;
22
+ };
23
+ };
24
+ }
25
+ export interface FormattingItem {
26
+ SpokenForm: string;
27
+ DisplayForm: string;
28
+ ID: string;
29
+ }
@@ -0,0 +1,28 @@
1
+ import { BaseAPI } from '../BaseAPI';
2
+ import { DeleteMacroRequest, MacroResult, UpsertMacroRequest, UserMacroRequest } from './MacrosModels';
3
+ export declare class MacrosAPI extends BaseAPI {
4
+ private _accountCode;
5
+ private _accessKey;
6
+ private _baseUrl;
7
+ constructor(_accountCode: string, _accessKey: string, server: string);
8
+ /**
9
+ * Returns a list of macros for the specified user.
10
+ * @param request UserMacroRequest
11
+ * @returns The list of Macros
12
+ */
13
+ getMacros(request: UserMacroRequest): Promise<MacroResult | string>;
14
+ /**
15
+ * Creates or Updates a Macro for the specified user.
16
+ * @param request UpsertMacroRequest
17
+ * @returns The result of the operation
18
+ */
19
+ upsertMacro(request: UpsertMacroRequest): Promise<MacroResult | string>;
20
+ /**
21
+ * Deletes a Macro for the specified user.
22
+ * @param request DeleteMacroRequest
23
+ * @returns The result of the operation
24
+ */
25
+ deleteMacro(request: DeleteMacroRequest): Promise<MacroResult | string>;
26
+ private getURL;
27
+ private getAccountModel;
28
+ }
@@ -0,0 +1,32 @@
1
+ import { BaseResult } from '../BaseAPI';
2
+ export interface UserMacroRequest {
3
+ UserTag: string;
4
+ }
5
+ export interface AccountMacroRequest {
6
+ AccountCode: string;
7
+ AccessKey: string;
8
+ }
9
+ export interface UpsertMacroRequest extends UserMacroRequest {
10
+ ID?: string;
11
+ MacroKey: string;
12
+ MacroValue: string;
13
+ }
14
+ export interface DeleteMacroRequest extends UserMacroRequest {
15
+ ID: string;
16
+ }
17
+ export interface MacroResult extends BaseResult {
18
+ Data: {
19
+ StatusMessage: string;
20
+ MacroItems?: {
21
+ Items: Array<MacroItems> | null;
22
+ PageId: number | null;
23
+ PageSize: number | null;
24
+ HashValue: string | null;
25
+ };
26
+ };
27
+ }
28
+ export interface MacroItems {
29
+ MacroValue: string;
30
+ MacroKey: string;
31
+ ID: string;
32
+ }
@@ -0,0 +1,6 @@
1
+ export declare const Frequency: string[];
2
+ export declare const MealsRelation: string[];
3
+ export declare const DurationType: string[];
4
+ export declare const QuantityUnit: string[];
5
+ export declare const Route: string[];
6
+ export declare const Drug: string[];
@@ -0,0 +1,15 @@
1
+ import { BaseAPI } from '../BaseAPI';
2
+ import { MedicineOrderRequestData, MedicineOrderingResult } from './MedicineOrderingModels';
3
+ export declare class MedicineOrderingAPI extends BaseAPI {
4
+ private _accountCode;
5
+ private _accessKey;
6
+ private _userTag;
7
+ private _enableLogs;
8
+ private _logTag;
9
+ private _baseUrl;
10
+ constructor(_accountCode: string, _accessKey: string, _userTag: string, _enableLogs: boolean, server: string);
11
+ getMedicineOrderData(request: MedicineOrderRequestData): Promise<MedicineOrderingResult | string>;
12
+ private getCommonModel;
13
+ private getURL;
14
+ private log;
15
+ }
@@ -0,0 +1,26 @@
1
+ import { BaseResult } from '../BaseAPI';
2
+ export interface MedicineOrderingResult extends BaseResult {
3
+ Data: {
4
+ StatusMessage: string;
5
+ Result?: Array<MedEntities>;
6
+ };
7
+ }
8
+ export interface MedEntities {
9
+ MedEntities: MedEntitiesData;
10
+ }
11
+ export interface MedEntitiesData {
12
+ Drug: string;
13
+ Sentence: string;
14
+ DrugStrength: string;
15
+ QuantityUnit: string;
16
+ Quantity: string;
17
+ Duration: string;
18
+ Comments: string;
19
+ Frequency: string;
20
+ MealsRelation: string;
21
+ DurationType: string;
22
+ Route: string;
23
+ }
24
+ export interface MedicineOrderRequestData {
25
+ Text: string;
26
+ }
@@ -0,0 +1,31 @@
1
+ import { BaseAPI } from '../BaseAPI';
2
+ import { UserVocabularyRequest, UpsertVocabularyRequest, VocabularyResult, RemoveVocabularyRequest } from './VocabularyModels';
3
+ import { NotificationClient } from '../../client/NotificationClient';
4
+ import { AugnitoAppNotification } from '../../support/AugnitoMobileSocketResponse';
5
+ import { AugnitoVocabularyConfig } from '../../config/AugnitoVocabularyConfig';
6
+ export declare class VocabularyAPI extends BaseAPI {
7
+ private _config;
8
+ private _notificationClient;
9
+ private _notifSubscribedInOtherWindow;
10
+ private _logTag;
11
+ private _baseUrl;
12
+ private _recorder;
13
+ private _preventOverrun;
14
+ private _overrunRecording;
15
+ private _recordingStart;
16
+ private _isRecording;
17
+ private _stream;
18
+ onVocabularyAdded?: (notification: AugnitoAppNotification) => void;
19
+ constructor(_config: AugnitoVocabularyConfig, _notificationClient: NotificationClient, _notifSubscribedInOtherWindow: boolean);
20
+ getVocabulary(request: UserVocabularyRequest): Promise<VocabularyResult | string>;
21
+ removeVocabulary(request: RemoveVocabularyRequest): Promise<VocabularyResult | string>;
22
+ upsertVocabulary(request: UpsertVocabularyRequest): Promise<VocabularyResult | string>;
23
+ startRecording(): Promise<void>;
24
+ stopRecording(): Promise<Blob>;
25
+ private getURL;
26
+ private getGetCommonModel;
27
+ private getUpsertCommonModel;
28
+ private onVocabularyAddedCallback;
29
+ private log;
30
+ private makePostFormRequest;
31
+ }
@@ -0,0 +1,38 @@
1
+ import { BaseResult, Edge, GetCommonPersonalisationRequest } from '../BaseAPI';
2
+ export interface RemoveVocabularyRequest {
3
+ Word: string;
4
+ }
5
+ export interface UpsertCommonVocabularyRequest extends GetCommonPersonalisationRequest {
6
+ DeviceCode: string;
7
+ SourceApp: string;
8
+ }
9
+ export interface UserVocabularyRequest {
10
+ PageId?: Edge;
11
+ Limit?: number;
12
+ }
13
+ export interface VocabularyResult extends BaseResult {
14
+ Data: {
15
+ StatusMessage: string;
16
+ WordItems?: {
17
+ SubscriptionCode: string;
18
+ UserCode: string;
19
+ PageSize: number;
20
+ PageIdNext?: Edge;
21
+ PageIdPrevious?: Edge;
22
+ Items: Array<VocabularyItem>;
23
+ };
24
+ };
25
+ }
26
+ export interface VocabularyItem {
27
+ Word: string;
28
+ SpokenWord: string | null;
29
+ IsAbbreviation: boolean;
30
+ CreatedAt: Date;
31
+ Status: string;
32
+ }
33
+ export interface UpsertVocabularyRequest {
34
+ file: File;
35
+ Word: string;
36
+ SpokenWord: string;
37
+ IsAbbreviation: boolean;
38
+ }
@@ -0,0 +1,9 @@
1
+ export * from './Macros/MacrosAPI';
2
+ export * from './Macros/MacrosModels';
3
+ export * from './Vocabulary/VocabularyAPI';
4
+ export * from './Vocabulary/VocabularyModels';
5
+ export * from './Formatting/FormattingAPI';
6
+ export * from './Formatting/FormattingModels';
7
+ export * from './MedicineOrdering/MedicineOrderderingData';
8
+ export * from './MedicineOrdering/MedicineOrderingModels';
9
+ export { FactoryAPI } from './FactoryAPI';