mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 20:14:57 +02:00
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user