@superoffice/webapi 11.13.921 → 12.0.342
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/dist/cjs/Carriers.d.ts +563 -2
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +66 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +158 -0
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +18 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +296 -18
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/DashAgent.d.ts +7 -0
- package/dist/cjs/DashAgent.d.ts.map +1 -1
- package/dist/cjs/DashAgent.js +24 -0
- package/dist/cjs/DashAgent.js.map +1 -1
- package/dist/cjs/EMailAgent.d.ts +150 -30
- package/dist/cjs/EMailAgent.d.ts.map +1 -1
- package/dist/cjs/EMailAgent.js +260 -0
- package/dist/cjs/EMailAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +55 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +60 -2
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/LicenseAgent.d.ts +7 -0
- package/dist/cjs/LicenseAgent.d.ts.map +1 -1
- package/dist/cjs/LicenseAgent.js +24 -0
- package/dist/cjs/LicenseAgent.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +18 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +36 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/ProjectAgent.d.ts +7 -0
- package/dist/cjs/ProjectAgent.d.ts.map +1 -1
- package/dist/cjs/ProjectAgent.js +24 -0
- package/dist/cjs/ProjectAgent.js.map +1 -1
- package/dist/cjs/TicketAgent.d.ts +99 -0
- package/dist/cjs/TicketAgent.d.ts.map +1 -1
- package/dist/cjs/TicketAgent.js +207 -0
- package/dist/cjs/TicketAgent.js.map +1 -1
- package/dist/cjs/WorkflowAgent.d.ts +7 -0
- package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
- package/dist/cjs/WorkflowAgent.js +24 -0
- package/dist/cjs/WorkflowAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +563 -2
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +66 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +158 -0
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +18 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +260 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/DashAgent.d.ts +7 -0
- package/dist/esm/DashAgent.d.ts.map +1 -1
- package/dist/esm/DashAgent.js +24 -0
- package/dist/esm/DashAgent.js.map +1 -1
- package/dist/esm/EMailAgent.d.ts +150 -30
- package/dist/esm/EMailAgent.d.ts.map +1 -1
- package/dist/esm/EMailAgent.js +260 -0
- package/dist/esm/EMailAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +55 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +58 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/LicenseAgent.d.ts +7 -0
- package/dist/esm/LicenseAgent.d.ts.map +1 -1
- package/dist/esm/LicenseAgent.js +24 -0
- package/dist/esm/LicenseAgent.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +18 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +36 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/ProjectAgent.d.ts +7 -0
- package/dist/esm/ProjectAgent.d.ts.map +1 -1
- package/dist/esm/ProjectAgent.js +24 -0
- package/dist/esm/ProjectAgent.js.map +1 -1
- package/dist/esm/TicketAgent.d.ts +99 -0
- package/dist/esm/TicketAgent.d.ts.map +1 -1
- package/dist/esm/TicketAgent.js +207 -0
- package/dist/esm/TicketAgent.js.map +1 -1
- package/dist/esm/WorkflowAgent.d.ts +7 -0
- package/dist/esm/WorkflowAgent.d.ts.map +1 -1
- package/dist/esm/WorkflowAgent.js +24 -0
- package/dist/esm/WorkflowAgent.js.map +1 -1
- package/package.json +4 -4
- package/src/Carriers.ts +740 -2
- package/src/ConfigurationAgent.ts +216 -0
- package/src/Converters.ts +312 -0
- package/src/DashAgent.ts +30 -0
- package/src/EMailAgent.ts +470 -30
- package/src/Enums.ts +61 -0
- package/src/LicenseAgent.ts +30 -0
- package/src/ListAgent.ts +62 -0
- package/src/ProjectAgent.ts +30 -0
- package/src/TicketAgent.ts +354 -0
- package/src/WorkflowAgent.ts +30 -0
package/dist/cjs/EMailAgent.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ export interface IEMailAgent {
|
|
|
38
38
|
resolveEMailRecipientsAsync(emailAddress: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAddress[]>;
|
|
39
39
|
getEMailFromIdAsync(request: carriers.EMail_GetEMailFromIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
40
40
|
getEMailFromIdAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: number, lookupAddresses: boolean, flags: enums.EMailFlags, includeAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
41
|
+
getEMailFromServerIdentifierAsync(request: carriers.EMail_GetEMailFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
42
|
+
getEMailFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: string, lookupAddresses: boolean, flags: enums.EMailFlags, includeAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
41
43
|
sendEMailsAsync(request: carriers.EMail_SendEMailsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity[]>;
|
|
42
44
|
sendEMailsAsync(outgoingConnectionInfo: carriers.EMailConnectionInfo, emails: carriers.EMailEntity[], sentItemsConnectionInfo: carriers.EMailConnectionInfo, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity[]>;
|
|
43
45
|
saveEMailAsync(request: carriers.EMail_SaveEMailRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
@@ -50,18 +52,28 @@ export interface IEMailAgent {
|
|
|
50
52
|
getFolderListAsync(connectionInfo: carriers.EMailConnectionInfo, includeItemCount: boolean, webapi_options?: base.WebApiRequestOptions): Promise<string[]>;
|
|
51
53
|
getAttachmentAsync(request: carriers.EMail_GetAttachmentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAttachment>;
|
|
52
54
|
getAttachmentAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: number, attachmentId: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAttachment>;
|
|
55
|
+
getAttachmentFromServerIdentifierAsync(request: carriers.EMail_GetAttachmentFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAttachment>;
|
|
56
|
+
getAttachmentFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: string, attachmentId: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAttachment>;
|
|
53
57
|
markAsReadAsync(request: carriers.EMail_MarkAsReadRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
54
58
|
markAsReadAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: number[], read: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
59
|
+
markAsReadFromServerIdentifiersAsync(request: carriers.EMail_MarkAsReadFromServerIdentifiersRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
60
|
+
markAsReadFromServerIdentifiersAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: string[], read: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
55
61
|
getFolderEMailCountAsync(request: carriers.EMail_GetFolderEMailCountRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
|
|
56
62
|
getFolderEMailCountAsync(connectionInfo: carriers.EMailConnectionInfo, onlyUnread: boolean, webapi_options?: base.WebApiRequestOptions): Promise<number>;
|
|
57
63
|
deleteAsync(request: carriers.EMail_DeleteRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
58
64
|
deleteAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: number[], moveToFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
65
|
+
deleteFromServerIdentifierAsync(request: carriers.EMail_DeleteFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
66
|
+
deleteFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: string[], moveToFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
59
67
|
moveToFolderAsync(request: carriers.EMail_MoveToFolderRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
60
68
|
moveToFolderAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: number[], targetFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
69
|
+
moveToFolderFromServerIdentifierAsync(request: carriers.EMail_MoveToFolderFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
70
|
+
moveToFolderFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: string[], targetFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
61
71
|
emptyFolderAsync(request: carriers.EMail_EmptyFolderRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
62
72
|
emptyFolderAsync(connectionInfo: carriers.EMailConnectionInfo, moveToFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
63
73
|
getEMailAsStreamAsync(request: carriers.EMail_GetEMailAsStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
64
74
|
getEMailAsStreamAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: number, stripAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
75
|
+
getEMailAsStreamFromServerIdentifierAsync(request: carriers.EMail_GetEMailAsStreamFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
76
|
+
getEMailAsStreamFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: string, stripAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
65
77
|
findAddressAsync(request: carriers.EMail_FindAddressRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAddress[]>;
|
|
66
78
|
findAddressAsync(address: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAddress[]>;
|
|
67
79
|
getEMailFromDocumentIdAsync(request: carriers.EMail_GetEMailFromDocumentIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
@@ -78,6 +90,8 @@ export interface IEMailAgent {
|
|
|
78
90
|
getUnsanitizedEMailFromDocumentAttachmentIdAsync(docId: number, attachmentIds: string[], includeAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
79
91
|
getEMailEnvelopesAsync(request: carriers.EMail_GetEMailEnvelopesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEnvelope[]>;
|
|
80
92
|
getEMailEnvelopesAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEnvelope[]>;
|
|
93
|
+
getEMailEnvelopesFromServerIdsAsync(request: carriers.EMail_GetEMailEnvelopesFromServerIdsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEnvelope[]>;
|
|
94
|
+
getEMailEnvelopesFromServerIdsAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEnvelope[]>;
|
|
81
95
|
setSubscriptionAsync(request: carriers.EMail_SetSubscriptionRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
82
96
|
setSubscriptionAsync(connectionInfo: carriers.EMailConnectionInfo, folders: carriers.EMailFolder[], webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
83
97
|
createFolderAsync(request: carriers.EMail_CreateFolderRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
@@ -409,6 +423,23 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
409
423
|
* @returns The e-mail
|
|
410
424
|
*/
|
|
411
425
|
getEMailFromIdAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: number, lookupAddresses: boolean, flags: enums.EMailFlags, includeAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
426
|
+
private _getEMailFromServerIdentifierAsync;
|
|
427
|
+
/**
|
|
428
|
+
* Get en e-mail based on its unique id string
|
|
429
|
+
* @param request - ConnectionInfo, MessageServerId, LookupAddresses, Flags, IncludeAttachments
|
|
430
|
+
* @returns The e-mail
|
|
431
|
+
*/
|
|
432
|
+
getEMailFromServerIdentifierAsync(request: carriers.EMail_GetEMailFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
433
|
+
/**
|
|
434
|
+
* Get en e-mail based on its unique id string
|
|
435
|
+
* @param connectionInfo - All information needed to connect to the mailserver
|
|
436
|
+
* @param messageServerId - Unique ID for the e-mail to retrieve
|
|
437
|
+
* @param lookupAddresses - If true try to look up e-mail addresses in from/to/cc/bcc fields against superoffice contacts
|
|
438
|
+
* @param flags - Any flags to apply to the fetched item. Ex: Seen/Answered
|
|
439
|
+
* @param includeAttachments - Should we retrieve attachments embedded in the e-mail from the server
|
|
440
|
+
* @returns The e-mail
|
|
441
|
+
*/
|
|
442
|
+
getEMailFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: string, lookupAddresses: boolean, flags: enums.EMailFlags, includeAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEntity>;
|
|
412
443
|
private _sendEMailsAsync;
|
|
413
444
|
/**
|
|
414
445
|
* Send the provided e-mails
|
|
@@ -493,11 +524,26 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
493
524
|
* @returns The attachment
|
|
494
525
|
*/
|
|
495
526
|
getAttachmentAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: number, attachmentId: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAttachment>;
|
|
527
|
+
private _getAttachmentFromServerIdentifierAsync;
|
|
528
|
+
/**
|
|
529
|
+
* Retrieve an attachment from an e-mail
|
|
530
|
+
* @param request - ConnectionInfo, MessageServerId, AttachmentId
|
|
531
|
+
* @returns The attachment
|
|
532
|
+
*/
|
|
533
|
+
getAttachmentFromServerIdentifierAsync(request: carriers.EMail_GetAttachmentFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAttachment>;
|
|
534
|
+
/**
|
|
535
|
+
* Retrieve an attachment from an e-mail
|
|
536
|
+
* @param connectionInfo - All information needed to connect to the mailserver
|
|
537
|
+
* @param messageServerId - Unique ID for the e-mail to retrieve the attachment from
|
|
538
|
+
* @param attachmentId - Id of the attachment in the e-mail
|
|
539
|
+
* @returns The attachment
|
|
540
|
+
*/
|
|
541
|
+
getAttachmentFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: string, attachmentId: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailAttachment>;
|
|
496
542
|
private _markAsReadAsync;
|
|
497
543
|
/**
|
|
498
544
|
* Mark one or more e-mails as (un)read
|
|
499
545
|
* @param request - ConnectionInfo, MessageServerIds, Read
|
|
500
|
-
* @returns
|
|
546
|
+
* @returns This method has no return value
|
|
501
547
|
*/
|
|
502
548
|
markAsReadAsync(request: carriers.EMail_MarkAsReadRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
503
549
|
/**
|
|
@@ -505,9 +551,24 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
505
551
|
* @param connectionInfo - All information needed to connect to the mailserver
|
|
506
552
|
* @param messageServerIds - The e-mails to handle
|
|
507
553
|
* @param read - If true mails are marked as read. If false mails are marked as unread.
|
|
508
|
-
* @returns
|
|
554
|
+
* @returns This method has no return value
|
|
509
555
|
*/
|
|
510
556
|
markAsReadAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: number[], read: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
557
|
+
private _markAsReadFromServerIdentifiersAsync;
|
|
558
|
+
/**
|
|
559
|
+
* Mark one or more e-mails as (un)read
|
|
560
|
+
* @param request - ConnectionInfo, MessageServerIds, Read
|
|
561
|
+
* @returns This method has no return value
|
|
562
|
+
*/
|
|
563
|
+
markAsReadFromServerIdentifiersAsync(request: carriers.EMail_MarkAsReadFromServerIdentifiersRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
564
|
+
/**
|
|
565
|
+
* Mark one or more e-mails as (un)read
|
|
566
|
+
* @param connectionInfo - All information needed to connect to the mailserver
|
|
567
|
+
* @param messageServerIds - The e-mails to handle
|
|
568
|
+
* @param read - If true mails are marked as read. If false mails are marked as unread.
|
|
569
|
+
* @returns This method has no return value
|
|
570
|
+
*/
|
|
571
|
+
markAsReadFromServerIdentifiersAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: string[], read: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
511
572
|
private _getFolderEMailCountAsync;
|
|
512
573
|
/**
|
|
513
574
|
* Retrieve total/unread mail items in current folder
|
|
@@ -526,7 +587,7 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
526
587
|
/**
|
|
527
588
|
* Delete specified mail items
|
|
528
589
|
* @param request - ConnectionInfo, MessageServerIds, MoveToFolder
|
|
529
|
-
* @returns
|
|
590
|
+
* @returns This method has no return value
|
|
530
591
|
*/
|
|
531
592
|
deleteAsync(request: carriers.EMail_DeleteRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
532
593
|
/**
|
|
@@ -534,14 +595,29 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
534
595
|
* @param connectionInfo - All information needed to connect to the mailserver
|
|
535
596
|
* @param messageServerIds - The e-mails to handle
|
|
536
597
|
* @param moveToFolder - If set, move deleted items to this folder
|
|
537
|
-
* @returns
|
|
598
|
+
* @returns This method has no return value
|
|
538
599
|
*/
|
|
539
600
|
deleteAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: number[], moveToFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
601
|
+
private _deleteFromServerIdentifierAsync;
|
|
602
|
+
/**
|
|
603
|
+
* Delete specified mail items
|
|
604
|
+
* @param request - ConnectionInfo, MessageServerIds, MoveToFolder
|
|
605
|
+
* @returns This method has no return value
|
|
606
|
+
*/
|
|
607
|
+
deleteFromServerIdentifierAsync(request: carriers.EMail_DeleteFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
608
|
+
/**
|
|
609
|
+
* Delete specified mail items
|
|
610
|
+
* @param connectionInfo - All information needed to connect to the mailserver
|
|
611
|
+
* @param messageServerIds - The e-mails to handle
|
|
612
|
+
* @param moveToFolder - If set, move deleted items to this folder
|
|
613
|
+
* @returns This method has no return value
|
|
614
|
+
*/
|
|
615
|
+
deleteFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: string[], moveToFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
540
616
|
private _moveToFolderAsync;
|
|
541
617
|
/**
|
|
542
618
|
* Moved specified items from current folder to targetFolder
|
|
543
619
|
* @param request - ConnectionInfo, MessageServerIds, TargetFolder
|
|
544
|
-
* @returns
|
|
620
|
+
* @returns This method has no return value
|
|
545
621
|
*/
|
|
546
622
|
moveToFolderAsync(request: carriers.EMail_MoveToFolderRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
547
623
|
/**
|
|
@@ -549,21 +625,36 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
549
625
|
* @param connectionInfo - All information needed to connect to the mailserver
|
|
550
626
|
* @param messageServerIds - The e-mails to handle
|
|
551
627
|
* @param targetFolder - Name of folder to move items to
|
|
552
|
-
* @returns
|
|
628
|
+
* @returns This method has no return value
|
|
553
629
|
*/
|
|
554
630
|
moveToFolderAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: number[], targetFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
631
|
+
private _moveToFolderFromServerIdentifierAsync;
|
|
632
|
+
/**
|
|
633
|
+
* Moved specified items from current folder to targetFolder
|
|
634
|
+
* @param request - ConnectionInfo, MessageServerIds, TargetFolder
|
|
635
|
+
* @returns This method has no return value
|
|
636
|
+
*/
|
|
637
|
+
moveToFolderFromServerIdentifierAsync(request: carriers.EMail_MoveToFolderFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
638
|
+
/**
|
|
639
|
+
* Moved specified items from current folder to targetFolder
|
|
640
|
+
* @param connectionInfo - All information needed to connect to the mailserver
|
|
641
|
+
* @param messageServerIds - The e-mails to handle
|
|
642
|
+
* @param targetFolder - Name of folder to move items to
|
|
643
|
+
* @returns This method has no return value
|
|
644
|
+
*/
|
|
645
|
+
moveToFolderFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: string[], targetFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
555
646
|
private _emptyFolderAsync;
|
|
556
647
|
/**
|
|
557
648
|
* Delete all items in folder specified in the connection object
|
|
558
649
|
* @param request - ConnectionInfo, MoveToFolder
|
|
559
|
-
* @returns
|
|
650
|
+
* @returns This method has no return value
|
|
560
651
|
*/
|
|
561
652
|
emptyFolderAsync(request: carriers.EMail_EmptyFolderRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
562
653
|
/**
|
|
563
654
|
* Delete all items in folder specified in the connection object
|
|
564
655
|
* @param connectionInfo - All information needed to connect to the mailserver
|
|
565
656
|
* @param moveToFolder - If set, move deleted items to this folder
|
|
566
|
-
* @returns
|
|
657
|
+
* @returns This method has no return value
|
|
567
658
|
*/
|
|
568
659
|
emptyFolderAsync(connectionInfo: carriers.EMailConnectionInfo, moveToFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
569
660
|
private _getEMailAsStreamAsync;
|
|
@@ -581,6 +672,21 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
581
672
|
* @returns The attachment as a stream
|
|
582
673
|
*/
|
|
583
674
|
getEMailAsStreamAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: number, stripAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
675
|
+
private _getEMailAsStreamFromServerIdentifierAsync;
|
|
676
|
+
/**
|
|
677
|
+
* Retrieve an e-mail optionally stripping attachments as a stream
|
|
678
|
+
* @param request - ConnectionInfo, MessageServerId, StripAttachments
|
|
679
|
+
* @returns The attachment as a stream
|
|
680
|
+
*/
|
|
681
|
+
getEMailAsStreamFromServerIdentifierAsync(request: carriers.EMail_GetEMailAsStreamFromServerIdentifierRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
682
|
+
/**
|
|
683
|
+
* Retrieve an e-mail optionally stripping attachments as a stream
|
|
684
|
+
* @param connectionInfo - All information needed to connect to the mailserver
|
|
685
|
+
* @param messageServerId - Unique ID for the e-mail to retrieve
|
|
686
|
+
* @param stripAttachments - If true, do not include attachments in stream
|
|
687
|
+
* @returns The attachment as a stream
|
|
688
|
+
*/
|
|
689
|
+
getEMailAsStreamFromServerIdentifierAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerId: string, stripAttachments: boolean, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
584
690
|
private _findAddressAsync;
|
|
585
691
|
/**
|
|
586
692
|
* Search for contacts and persons with the specified e-mail address (exact match on the email address string required)
|
|
@@ -694,44 +800,58 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
694
800
|
* @returns The e-mail envelope objects
|
|
695
801
|
*/
|
|
696
802
|
getEMailEnvelopesAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEnvelope[]>;
|
|
803
|
+
private _getEMailEnvelopesFromServerIdsAsync;
|
|
804
|
+
/**
|
|
805
|
+
* Retrieve a set of e-mail envelopes
|
|
806
|
+
* @param request - ConnectionInfo, MessageServerIds
|
|
807
|
+
* @returns The e-mail envelope objects
|
|
808
|
+
*/
|
|
809
|
+
getEMailEnvelopesFromServerIdsAsync(request: carriers.EMail_GetEMailEnvelopesFromServerIdsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEnvelope[]>;
|
|
810
|
+
/**
|
|
811
|
+
* Retrieve a set of e-mail envelopes
|
|
812
|
+
* @param connectionInfo - All information needed to connect to the mailserver
|
|
813
|
+
* @param messageServerIds - Unique identitifiers for the e-mails to retrieve envelopes for
|
|
814
|
+
* @returns The e-mail envelope objects
|
|
815
|
+
*/
|
|
816
|
+
getEMailEnvelopesFromServerIdsAsync(connectionInfo: carriers.EMailConnectionInfo, messageServerIds: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.EMailEnvelope[]>;
|
|
697
817
|
private _setSubscriptionAsync;
|
|
698
818
|
/**
|
|
699
819
|
* Set subscription on or off on a set of folders
|
|
700
820
|
* @param request - ConnectionInfo, Folders
|
|
701
|
-
* @returns
|
|
821
|
+
* @returns This method has no return value
|
|
702
822
|
*/
|
|
703
823
|
setSubscriptionAsync(request: carriers.EMail_SetSubscriptionRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
704
824
|
/**
|
|
705
825
|
* Set subscription on or off on a set of folders
|
|
706
826
|
* @param connectionInfo - All information needed to connect to the mailserver
|
|
707
827
|
* @param folders - Folders to set subscription value on
|
|
708
|
-
* @returns
|
|
828
|
+
* @returns This method has no return value
|
|
709
829
|
*/
|
|
710
830
|
setSubscriptionAsync(connectionInfo: carriers.EMailConnectionInfo, folders: carriers.EMailFolder[], webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
711
831
|
private _createFolderAsync;
|
|
712
832
|
/**
|
|
713
833
|
* Create a new folder on the server
|
|
714
834
|
* @param request - ConnectionInfo
|
|
715
|
-
* @returns
|
|
835
|
+
* @returns This method has no return value
|
|
716
836
|
*/
|
|
717
837
|
createFolderAsync(request: carriers.EMail_CreateFolderRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
718
838
|
/**
|
|
719
839
|
* Create a new folder on the server
|
|
720
840
|
* @param connectionInfo - All information needed to connect to the mailserver
|
|
721
|
-
* @returns
|
|
841
|
+
* @returns This method has no return value
|
|
722
842
|
*/
|
|
723
843
|
createFolderAsync(connectionInfo: carriers.EMailConnectionInfo, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
724
844
|
private _deleteFolderAsync;
|
|
725
845
|
/**
|
|
726
846
|
* Delete a folder from the server
|
|
727
847
|
* @param request - ConnectionInfo
|
|
728
|
-
* @returns
|
|
848
|
+
* @returns This method has no return value
|
|
729
849
|
*/
|
|
730
850
|
deleteFolderAsync(request: carriers.EMail_DeleteFolderRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
731
851
|
/**
|
|
732
852
|
* Delete a folder from the server
|
|
733
853
|
* @param connectionInfo - All information needed to connect to the mailserver
|
|
734
|
-
* @returns
|
|
854
|
+
* @returns This method has no return value
|
|
735
855
|
*/
|
|
736
856
|
deleteFolderAsync(connectionInfo: carriers.EMailConnectionInfo, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
737
857
|
private _createEMailFromDocumentEntityAsync;
|
|
@@ -884,21 +1004,21 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
884
1004
|
/**
|
|
885
1005
|
*
|
|
886
1006
|
* @param request - ConnectionInfoExtended, MessageIds
|
|
887
|
-
* @returns
|
|
1007
|
+
* @returns This method has no return value
|
|
888
1008
|
*/
|
|
889
1009
|
deleteExtendedAsync(request: carriers.EMail_DeleteExtendedRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
890
1010
|
/**
|
|
891
1011
|
*
|
|
892
1012
|
* @param connectionInfoExtended -
|
|
893
1013
|
* @param messageIds -
|
|
894
|
-
* @returns
|
|
1014
|
+
* @returns This method has no return value
|
|
895
1015
|
*/
|
|
896
1016
|
deleteExtendedAsync(connectionInfoExtended: carriers.EMailConnectionInfoExtended, messageIds: string[], webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
897
1017
|
private _relayMessageAsync;
|
|
898
1018
|
/**
|
|
899
1019
|
*
|
|
900
1020
|
* @param request - ConnectionInfoExtended, Rfc822, From, Recipients
|
|
901
|
-
* @returns
|
|
1021
|
+
* @returns This method has no return value
|
|
902
1022
|
*/
|
|
903
1023
|
relayMessageAsync(request: carriers.EMail_RelayMessageRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
904
1024
|
/**
|
|
@@ -907,7 +1027,7 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
907
1027
|
* @param rfc822 -
|
|
908
1028
|
* @param from -
|
|
909
1029
|
* @param recipients -
|
|
910
|
-
* @returns
|
|
1030
|
+
* @returns This method has no return value
|
|
911
1031
|
*/
|
|
912
1032
|
relayMessageAsync(connectionInfoExtended: carriers.EMailConnectionInfoExtended, rfc822: string, from: string, recipients: string[], webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
913
1033
|
private _getEMailAsync;
|
|
@@ -942,41 +1062,41 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
942
1062
|
/**
|
|
943
1063
|
* Mark one or more e-mails as (un)read
|
|
944
1064
|
* @param request - Ids, Read
|
|
945
|
-
* @returns
|
|
1065
|
+
* @returns This method has no return value
|
|
946
1066
|
*/
|
|
947
1067
|
markEmailsAsReadAsync(request: carriers.EMail_MarkEmailsAsReadRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
948
1068
|
/**
|
|
949
1069
|
* Mark one or more e-mails as (un)read
|
|
950
1070
|
* @param ids - The e-mails to handle
|
|
951
1071
|
* @param read - If true mails are marked as read. If false mails are marked as unread.
|
|
952
|
-
* @returns
|
|
1072
|
+
* @returns This method has no return value
|
|
953
1073
|
*/
|
|
954
1074
|
markEmailsAsReadAsync(ids: number[], read: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
955
1075
|
private _deleteEmailsAsync;
|
|
956
1076
|
/**
|
|
957
1077
|
* Delete specified mail items and optionally move to the specified folder
|
|
958
1078
|
* @param request - Ids, MoveToFolder
|
|
959
|
-
* @returns
|
|
1079
|
+
* @returns This method has no return value
|
|
960
1080
|
*/
|
|
961
1081
|
deleteEmailsAsync(request: carriers.EMail_DeleteEmailsRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
962
1082
|
/**
|
|
963
1083
|
* Delete specified mail items and optionally move to the specified folder
|
|
964
1084
|
* @param ids - The e-mails to handle
|
|
965
1085
|
* @param moveToFolder - If set, move deleted items to this folder
|
|
966
|
-
* @returns
|
|
1086
|
+
* @returns This method has no return value
|
|
967
1087
|
*/
|
|
968
1088
|
deleteEmailsAsync(ids: number[], moveToFolder: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
969
1089
|
private _moveEmailsToTrashAsync;
|
|
970
1090
|
/**
|
|
971
1091
|
* Delete specified mail items and move to the Trash folder
|
|
972
1092
|
* @param request - Ids
|
|
973
|
-
* @returns
|
|
1093
|
+
* @returns This method has no return value
|
|
974
1094
|
*/
|
|
975
1095
|
moveEmailsToTrashAsync(request: carriers.EMail_MoveEmailsToTrashRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
976
1096
|
/**
|
|
977
1097
|
* Delete specified mail items and move to the Trash folder
|
|
978
1098
|
* @param ids - The e-mails to handle
|
|
979
|
-
* @returns
|
|
1099
|
+
* @returns This method has no return value
|
|
980
1100
|
*/
|
|
981
1101
|
moveEmailsToTrashAsync(ids: number[], webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
982
1102
|
private _saveAsync;
|
|
@@ -1097,14 +1217,14 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
1097
1217
|
/**
|
|
1098
1218
|
* Move one or more emails to the specified folder in the DB, and on the server
|
|
1099
1219
|
* @param request - FolderId, EmailItemIds
|
|
1100
|
-
* @returns
|
|
1220
|
+
* @returns This method has no return value
|
|
1101
1221
|
*/
|
|
1102
1222
|
moveEmailsToFolderAsync(request: carriers.EMail_MoveEmailsToFolderRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
1103
1223
|
/**
|
|
1104
1224
|
* Move one or more emails to the specified folder in the DB, and on the server
|
|
1105
1225
|
* @param folderId - The EmailFolderId of the folder to move to
|
|
1106
1226
|
* @param emailItemIds - The emails to move
|
|
1107
|
-
* @returns
|
|
1227
|
+
* @returns This method has no return value
|
|
1108
1228
|
*/
|
|
1109
1229
|
moveEmailsToFolderAsync(folderId: number, emailItemIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
1110
1230
|
private _getMailFromMessageIdAsync;
|
|
@@ -1208,13 +1328,13 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
1208
1328
|
/**
|
|
1209
1329
|
* Set the replied_at field based on the MessageID
|
|
1210
1330
|
* @param request - MessageId
|
|
1211
|
-
* @returns
|
|
1331
|
+
* @returns This method has no return value
|
|
1212
1332
|
*/
|
|
1213
1333
|
setRepliedAtAsync(request: carriers.EMail_SetRepliedAtRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
1214
1334
|
/**
|
|
1215
1335
|
* Set the replied_at field based on the MessageID
|
|
1216
1336
|
* @param messageId - The MessageID
|
|
1217
|
-
* @returns
|
|
1337
|
+
* @returns This method has no return value
|
|
1218
1338
|
*/
|
|
1219
1339
|
setRepliedAtAsync(messageId: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
1220
1340
|
private _getEMailFromDocumentIdWithoutAttachmentStreamAsync;
|
|
@@ -1327,14 +1447,14 @@ export declare class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
1327
1447
|
/**
|
|
1328
1448
|
* Set subscription on or off on a set of folders
|
|
1329
1449
|
* @param request - FolderId, SubscriptionStatus
|
|
1330
|
-
* @returns
|
|
1450
|
+
* @returns This method has no return value
|
|
1331
1451
|
*/
|
|
1332
1452
|
toggleSubscriptionAsync(request: carriers.EMail_ToggleSubscriptionRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
1333
1453
|
/**
|
|
1334
1454
|
* Set subscription on or off on a set of folders
|
|
1335
1455
|
* @param folderId - The folder id to set subscription value on
|
|
1336
1456
|
* @param subscriptionStatus - The subscription status to set
|
|
1337
|
-
* @returns
|
|
1457
|
+
* @returns This method has no return value
|
|
1338
1458
|
*/
|
|
1339
1459
|
toggleSubscriptionAsync(folderId: number, subscriptionStatus: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
1340
1460
|
private _hasNewMailAsync;
|