Minor fixes (#2490)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-01-05 10:45:38 +06:00
committed by GitHub
parent 72eb5564e1
commit 396dd3e7f4
20 changed files with 192 additions and 67 deletions
+12 -2
View File
@@ -97,7 +97,8 @@ export interface BitrixEntityMapping extends Doc {
export enum MappingOperation {
CopyValue,
CreateTag, // Create tag
CreateChannel // Create channel
CreateChannel, // Create channel
DownloadAttachment
}
/**
* @public
@@ -149,6 +150,15 @@ export interface CreateChannelOperation {
fields: ChannelFieldMapping[]
}
/**
* @public
*/
export interface DownloadAttachmentOperation {
kind: MappingOperation.DownloadAttachment
fields: { field: string }[]
}
/**
* @public
*/
@@ -156,7 +166,7 @@ export interface BitrixFieldMapping extends AttachedDoc {
ofClass: Ref<Class<Doc>> // Specify mixin if applicable
attributeName: string
operation: CopyValueOperation | CreateTagOperation | CreateChannelOperation
operation: CopyValueOperation | CreateTagOperation | CreateChannelOperation | DownloadAttachmentOperation
}
/**