@veltdev/sdk-staging 4.4.0-beta.29 → 4.4.0-beta.3

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.
@@ -1,52 +0,0 @@
1
- import { ResolverActions } from "../../utils/enums";
2
- import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
3
- export interface AttachmentDataProvider {
4
- save: (request: SaveAttachmentResolverRequest) => Promise<ResolverResponse<SaveAttachmentResolverData>>;
5
- delete: (request: DeleteAttachmentResolverRequest) => Promise<ResolverResponse<undefined>>;
6
- config?: ResolverConfig;
7
- }
8
- export interface DeleteAttachmentResolverRequest {
9
- attachmentId: number;
10
- metadata?: AttachmentResolverMetadata;
11
- event?: ResolverActions;
12
- }
13
- export interface SaveAttachmentResolverRequest {
14
- attachment: ResolverAttachment;
15
- metadata?: AttachmentResolverMetadata;
16
- event?: ResolverActions;
17
- }
18
- export interface PartialAttachment {
19
- url: string;
20
- name: string;
21
- attachmentId: number;
22
- }
23
- export interface ResolverAttachment {
24
- attachmentId: number;
25
- /**
26
- * File to be uploaded
27
- */
28
- file: File;
29
- /**
30
- * File name
31
- */
32
- name?: string;
33
- /**
34
- * Metadata of an attachment
35
- */
36
- metadata?: AttachmentResolverMetadata;
37
- /**
38
- * Mime type of an attachment
39
- */
40
- mimeType?: string;
41
- }
42
- export interface AttachmentResolverMetadata {
43
- organizationId: string | null;
44
- documentId: string | null;
45
- folderId?: string | null;
46
- attachmentId: number | null;
47
- commentAnnotationId: string | null;
48
- apiKey: string | null;
49
- }
50
- export interface SaveAttachmentResolverData {
51
- url: string;
52
- }