@corto-ai/integrations-messenger 0.0.10-test.6 → 0.0.10-test.7

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 CHANGED
@@ -68,7 +68,7 @@ messenger.registerChild(iframe.contentWindow, 'my-integration-app');
68
68
  | `matter` | `sendOpenDocumentStatus` / `handleOpenDocumentStatus` | Open the document status view for a matter. |
69
69
  | `matter` | `sendOpenPrompt` / `handleOpenPrompt` | Open a specific prompt (`promptId`) on a matter. |
70
70
  | `matter` | `sendOpenPromptLibrary` / `handleOpenPromptLibrary` | Open the prompt library for a matter. |
71
- | `matter` | `sendPreviewDocument` / `handlePreviewDocument` | Preview a document (`documentId`, `documentName`) on a matter. |
71
+ | `matter` | `sendPreviewDocument` / `handlePreviewDocument` | Preview a document by `documentId` or `presignedUrl`. `documentName` is required. |
72
72
  | `matter` | `sendSetFullscreen` / `handleSetFullscreen` | Show/hide the matter nav and list. Clear automatically on navigation in the host application |
73
73
  | `contact` | `sendOpenContact` / `handleOpenContact` | Open a contact by `contactId`. |
74
74
  | `contact` | `sendOpenEditContact` / `handleOpenEditContact` | Open the edit view for a contact. |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@corto-ai/integrations-messenger",
3
- "version": "0.0.10-test.6",
4
- "devVersion": "6",
3
+ "version": "0.0.10-test.7",
4
+ "devVersion": "7",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "main": "./src/index.js",
@@ -2,10 +2,18 @@ import { type ActionResponseBaseDTO } from '../../models';
2
2
  import { ActionTypeEnum } from '../base';
3
3
  import { type ActionDataTypeDTO } from '../utils';
4
4
  import { type MatterRequestBaseDTO } from './base';
5
- type PreviewDocumentDTO = MatterRequestBaseDTO & {
6
- documentId: string;
5
+ type PreviewDocumentBaseDTO = MatterRequestBaseDTO & {
7
6
  documentName: string;
8
7
  };
8
+ type PreviewDocumentByIdDTO = PreviewDocumentBaseDTO & {
9
+ documentId: string;
10
+ presignedUrl?: never;
11
+ };
12
+ type PreviewDocumentByUrlDTO = PreviewDocumentBaseDTO & {
13
+ presignedUrl: string;
14
+ documentId?: never;
15
+ };
16
+ type PreviewDocumentDTO = PreviewDocumentByIdDTO | PreviewDocumentByUrlDTO;
9
17
  type PreviewDocumentResponseDTO = ActionResponseBaseDTO;
10
18
  export type MatterPreviewDocumentDataTypeDTO = ActionDataTypeDTO<PreviewDocumentDTO, PreviewDocumentResponseDTO>;
11
19
  declare const _default: {
@@ -1 +1 @@
1
- {"version":3,"file":"preview-document.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/matter/preview-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAY9F,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC;AACvF,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC;AAEzF,eAAe,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"preview-document.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/matter/preview-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAuB9F,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC;AACvF,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC;AAEzF,eAAe,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}