@superoffice/webapi 12.1.1412 → 12.2.2072
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 +219 -4
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Converters.d.ts +6 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +129 -1
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/EMailAgent.d.ts +16 -0
- package/dist/cjs/EMailAgent.d.ts.map +1 -1
- package/dist/cjs/EMailAgent.js +48 -0
- package/dist/cjs/EMailAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +71 -1
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +75 -2
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/NewsFeedAgent.d.ts +141 -0
- package/dist/cjs/NewsFeedAgent.d.ts.map +1 -0
- package/dist/cjs/NewsFeedAgent.js +292 -0
- package/dist/cjs/NewsFeedAgent.js.map +1 -0
- package/dist/cjs/WebApi.d.ts +6 -0
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +10 -1
- package/dist/cjs/WebApi.js.map +1 -1
- package/dist/esm/Carriers.d.ts +219 -4
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Converters.d.ts +6 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +122 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/EMailAgent.d.ts +16 -0
- package/dist/esm/EMailAgent.d.ts.map +1 -1
- package/dist/esm/EMailAgent.js +48 -0
- package/dist/esm/EMailAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +71 -1
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +74 -1
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/NewsFeedAgent.d.ts +141 -0
- package/dist/esm/NewsFeedAgent.d.ts.map +1 -0
- package/dist/esm/NewsFeedAgent.js +287 -0
- package/dist/esm/NewsFeedAgent.js.map +1 -0
- package/dist/esm/WebApi.d.ts +6 -0
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +9 -0
- package/dist/esm/WebApi.js.map +1 -1
- package/package.json +4 -4
- package/src/Carriers.ts +287 -4
- package/src/Converters.ts +142 -0
- package/src/EMailAgent.ts +76 -0
- package/src/Enums.ts +77 -1
- package/src/NewsFeedAgent.ts +481 -0
- package/src/WebApi.ts +12 -0
package/dist/cjs/Carriers.d.ts
CHANGED
|
@@ -15175,7 +15175,7 @@ export interface ConsentPurpose extends Carrier {
|
|
|
15175
15175
|
*/
|
|
15176
15176
|
deleted?: boolean;
|
|
15177
15177
|
/**
|
|
15178
|
-
* Rank
|
|
15178
|
+
* Rank order
|
|
15179
15179
|
*/
|
|
15180
15180
|
rank?: number;
|
|
15181
15181
|
/**
|
|
@@ -15243,7 +15243,7 @@ export interface ConsentSource extends Carrier {
|
|
|
15243
15243
|
*/
|
|
15244
15244
|
key?: string;
|
|
15245
15245
|
/**
|
|
15246
|
-
* The
|
|
15246
|
+
* The document template to be used for sending 'You have been added to our system, is this ok' emails when a new person is registered using this source
|
|
15247
15247
|
*/
|
|
15248
15248
|
mailTemplateId?: number;
|
|
15249
15249
|
/**
|
|
@@ -16284,11 +16284,11 @@ export interface LegalBase extends Carrier {
|
|
|
16284
16284
|
*/
|
|
16285
16285
|
name?: string;
|
|
16286
16286
|
/**
|
|
16287
|
-
* Tooltip for this
|
|
16287
|
+
* Tooltip for this legal base
|
|
16288
16288
|
*/
|
|
16289
16289
|
tooltip?: string;
|
|
16290
16290
|
/**
|
|
16291
|
-
* Rank of this
|
|
16291
|
+
* Rank of this legal base
|
|
16292
16292
|
*/
|
|
16293
16293
|
rank?: number;
|
|
16294
16294
|
/**
|
|
@@ -23653,6 +23653,20 @@ export interface EMail_RelayMessageRequest {
|
|
|
23653
23653
|
*/
|
|
23654
23654
|
recipients: string[];
|
|
23655
23655
|
}
|
|
23656
|
+
/**
|
|
23657
|
+
* Get an inbox e-mail (by its EmailItemId) serialized as an Outlook-openable RFC822 (.eml) stream. Works for both IMAP and Graph/Exchange-Online mailboxes because it serializes the loaded entity instead of re-fetching the raw message by server id.
|
|
23658
|
+
* Returns Blob
|
|
23659
|
+
*/
|
|
23660
|
+
export interface EMail_GetEMailAsEmlStreamRequest {
|
|
23661
|
+
/**
|
|
23662
|
+
* The EmailItemId of the e-mail to retrieve as stream
|
|
23663
|
+
*/
|
|
23664
|
+
emailItemId: number;
|
|
23665
|
+
/**
|
|
23666
|
+
* Should attachments be included in the stream
|
|
23667
|
+
*/
|
|
23668
|
+
includeAttachments: boolean;
|
|
23669
|
+
}
|
|
23656
23670
|
/**
|
|
23657
23671
|
* Get en e-mail based on its primary key in the DB
|
|
23658
23672
|
* Returns EMailEntity
|
|
@@ -40614,6 +40628,207 @@ export interface WorkflowWaitForAction extends Carrier {
|
|
|
40614
40628
|
*/
|
|
40615
40629
|
restrictionGroups?: ArchiveRestrictionGroup[];
|
|
40616
40630
|
}
|
|
40631
|
+
/**
|
|
40632
|
+
* News feed CTAs are created by agents or other services for display on the start page and other relevant places in the UI.
|
|
40633
|
+
*/
|
|
40634
|
+
export interface NewsFeedCTA {
|
|
40635
|
+
/**
|
|
40636
|
+
* An identifier for the CTA, which will be sent back to the application when the user clicks the CTA button. E.g. 'approve_button/234', 'reject/53fw1', '5235faq143='. Where to route is determined by the ApplicationId on the NewsFeedItem
|
|
40637
|
+
*/
|
|
40638
|
+
identifier?: string;
|
|
40639
|
+
/**
|
|
40640
|
+
* The title of the CTA button. E.g. 'Approve', 'Reject', 'View details'. Multi-language string supported: 'US:"english";NO:"norsk"'.
|
|
40641
|
+
*/
|
|
40642
|
+
title?: string;
|
|
40643
|
+
/**
|
|
40644
|
+
* The type of the CTA, which determines how the CTA button renders. Primary/Secondary/Link
|
|
40645
|
+
*/
|
|
40646
|
+
ctaType?: enums.CtaType;
|
|
40647
|
+
/**
|
|
40648
|
+
* The flavor of the CTA, which determines the style the CTA button renders its type. Info/Warning/Error/Accept/Reject
|
|
40649
|
+
*/
|
|
40650
|
+
ctaFlavor?: enums.CtaFlavor;
|
|
40651
|
+
}
|
|
40652
|
+
/**
|
|
40653
|
+
* News feed items are created by agents or other services for display on the start page and other relevant places in the UI.
|
|
40654
|
+
*/
|
|
40655
|
+
export interface NewsFeedItem {
|
|
40656
|
+
/**
|
|
40657
|
+
* Primary key
|
|
40658
|
+
*/
|
|
40659
|
+
newsFeedItemId?: number;
|
|
40660
|
+
/**
|
|
40661
|
+
* Short, descriptive headline. Plain text title. Multi-language string supported: 'US:"english";NO:"norsk"'.
|
|
40662
|
+
*/
|
|
40663
|
+
title?: string;
|
|
40664
|
+
/**
|
|
40665
|
+
* Short, descriptive summary. Plain text summary. Multi-language string supported: 'US:"english";NO:"norsk"'.
|
|
40666
|
+
*/
|
|
40667
|
+
summary?: string;
|
|
40668
|
+
/**
|
|
40669
|
+
* Multi-language descriptions for the news feed item, where the key is an ISO 2 letter language code (e.g. 'en', 'no', 'de') and the value is the description in that language. Styling via pre-defined CSS classes. No SCRIPT or STYLE tags allowed. The 'current' value is set based on the Accept-Language/SO-Language header.
|
|
40670
|
+
*/
|
|
40671
|
+
description?: StringDictionary;
|
|
40672
|
+
/**
|
|
40673
|
+
* Call to action items for the news feed item. Each item contains a title, an identifier, a type and flavor.
|
|
40674
|
+
*/
|
|
40675
|
+
actions?: NewsFeedCTA[];
|
|
40676
|
+
/**
|
|
40677
|
+
* URL Link to an image associated with the news item.
|
|
40678
|
+
*/
|
|
40679
|
+
imageLink?: string;
|
|
40680
|
+
/**
|
|
40681
|
+
* URL Link to the source of the news item, or an SOProtocol link to a SuperOffice item
|
|
40682
|
+
*/
|
|
40683
|
+
sourceLink?: string;
|
|
40684
|
+
/**
|
|
40685
|
+
* Preview hint for the news item. e.g. `{contact_id=123}`
|
|
40686
|
+
*/
|
|
40687
|
+
previewHint?: string;
|
|
40688
|
+
/**
|
|
40689
|
+
* Name of the instance that published this item. e.g. `Pete the prospector`
|
|
40690
|
+
*/
|
|
40691
|
+
fromName?: string;
|
|
40692
|
+
/**
|
|
40693
|
+
* Type of the instance that published this item. e.g. `Prospector Agent`
|
|
40694
|
+
*/
|
|
40695
|
+
fromCategoryName?: string;
|
|
40696
|
+
/**
|
|
40697
|
+
* Importance of the news item. Low to High. Higher priority items may be shown more prominently in the feed.
|
|
40698
|
+
*/
|
|
40699
|
+
priority?: enums.EMailPriority;
|
|
40700
|
+
/**
|
|
40701
|
+
* Registered when
|
|
40702
|
+
*/
|
|
40703
|
+
registered?: Date;
|
|
40704
|
+
/**
|
|
40705
|
+
* Last updated when
|
|
40706
|
+
*/
|
|
40707
|
+
updated?: Date;
|
|
40708
|
+
/**
|
|
40709
|
+
* When the news item expires and should no longer be shown in feeds (UTC)
|
|
40710
|
+
*/
|
|
40711
|
+
expiresAt?: Date;
|
|
40712
|
+
/**
|
|
40713
|
+
* Indicates if the item is being handled by a CTA. (normal, processing, processed)
|
|
40714
|
+
*/
|
|
40715
|
+
status?: enums.NewsFeedItemStatus;
|
|
40716
|
+
/**
|
|
40717
|
+
* Set to true when the recipient user has read the news feed item.
|
|
40718
|
+
*/
|
|
40719
|
+
isRead?: boolean;
|
|
40720
|
+
/**
|
|
40721
|
+
* When the recipient user read the news feed item (UTC)
|
|
40722
|
+
*/
|
|
40723
|
+
readAt?: Date;
|
|
40724
|
+
/**
|
|
40725
|
+
* Company that is mentioned in the news feed item - null if not applicable
|
|
40726
|
+
*/
|
|
40727
|
+
contact?: Contact;
|
|
40728
|
+
/**
|
|
40729
|
+
* Person that is mentioned in the news feed item - null if not applicable
|
|
40730
|
+
*/
|
|
40731
|
+
person?: Person;
|
|
40732
|
+
/**
|
|
40733
|
+
* Project that is mentioned in the news feed item - null if not applicable
|
|
40734
|
+
*/
|
|
40735
|
+
project?: Project;
|
|
40736
|
+
/**
|
|
40737
|
+
* Sale that is mentioned in the news feed item - null if not applicable
|
|
40738
|
+
*/
|
|
40739
|
+
sale?: Sale;
|
|
40740
|
+
/**
|
|
40741
|
+
* The id of the application that registered this news item. Used to resolve where any CTA should be posted when clicked.
|
|
40742
|
+
*/
|
|
40743
|
+
applicationId?: string;
|
|
40744
|
+
}
|
|
40745
|
+
/**
|
|
40746
|
+
* Saves a new item to the newsfeed, publishing it to the specified users.
|
|
40747
|
+
* Returns NewsFeedItem
|
|
40748
|
+
*/
|
|
40749
|
+
export interface NewsFeed_PostNewsFeedItemRequest {
|
|
40750
|
+
/**
|
|
40751
|
+
* The news feed item to post. NewsFeedItemId is ignored, as a new id will be generated when posting to the newsfeed.
|
|
40752
|
+
*/
|
|
40753
|
+
newsFeedItem: NewsFeedItem;
|
|
40754
|
+
/**
|
|
40755
|
+
* List of associate ids that this news feed item is sent to.
|
|
40756
|
+
*/
|
|
40757
|
+
toAssociateIds: number[];
|
|
40758
|
+
/**
|
|
40759
|
+
* List of group ids that this news feed item is sent to. This gets resolved to associate ids when posted.
|
|
40760
|
+
*/
|
|
40761
|
+
toGroupIds: number[];
|
|
40762
|
+
/**
|
|
40763
|
+
* Indicates if this news feed item is sent to all users. Gets resolved into all users when posted.
|
|
40764
|
+
*/
|
|
40765
|
+
toAll: boolean;
|
|
40766
|
+
}
|
|
40767
|
+
/**
|
|
40768
|
+
* Get an array of items from the newsfeed by id. If the current user cannot access a particular item, it will be excluded from the results.
|
|
40769
|
+
* Returns NewsFeedItem[]
|
|
40770
|
+
*/
|
|
40771
|
+
export interface NewsFeed_GetNewsFeedItemsByIdRequest {
|
|
40772
|
+
/**
|
|
40773
|
+
* Ids of the news feed items to mark as seen for this user.
|
|
40774
|
+
*/
|
|
40775
|
+
newsFeedItemIds: number[];
|
|
40776
|
+
}
|
|
40777
|
+
/**
|
|
40778
|
+
* Get a list of newsfeed items for a particular user between two dates. If the current user cannot access a particular item, it will be excluded from the results.
|
|
40779
|
+
* Returns NewsFeedItem[]
|
|
40780
|
+
*/
|
|
40781
|
+
export interface NewsFeed_GetNewsItemsForUserRequest {
|
|
40782
|
+
/**
|
|
40783
|
+
* Id of the associate to fetch news feed items for. 0 = current user
|
|
40784
|
+
*/
|
|
40785
|
+
associateId: number;
|
|
40786
|
+
/**
|
|
40787
|
+
* Start date for fetching news feed items.
|
|
40788
|
+
*/
|
|
40789
|
+
fromDate: Date;
|
|
40790
|
+
/**
|
|
40791
|
+
* End date for fetching news feed items.
|
|
40792
|
+
*/
|
|
40793
|
+
toDate: Date;
|
|
40794
|
+
/**
|
|
40795
|
+
* Maximum number of news feed items to return.
|
|
40796
|
+
*/
|
|
40797
|
+
top: number;
|
|
40798
|
+
/**
|
|
40799
|
+
* Number of news feed items to skip for paging.
|
|
40800
|
+
*/
|
|
40801
|
+
skip: number;
|
|
40802
|
+
}
|
|
40803
|
+
/**
|
|
40804
|
+
* Marks the news feed item as read, so it can be un-bolded in the current user's feed.
|
|
40805
|
+
*/
|
|
40806
|
+
export interface NewsFeed_MarkAsReadRequest {
|
|
40807
|
+
/**
|
|
40808
|
+
* Id of the news feed item to mark as seen for this user.
|
|
40809
|
+
*/
|
|
40810
|
+
newsFeedItemId: number;
|
|
40811
|
+
}
|
|
40812
|
+
/**
|
|
40813
|
+
* Marks the news feed item as being handled, that CTA processing has started. i.e. other users should not start handling it also.
|
|
40814
|
+
* Returns boolean
|
|
40815
|
+
*/
|
|
40816
|
+
export interface NewsFeed_StartHandlingRequest {
|
|
40817
|
+
/**
|
|
40818
|
+
* Id of the news feed item to mark as handled for all users.
|
|
40819
|
+
*/
|
|
40820
|
+
newsFeedItemId: number;
|
|
40821
|
+
}
|
|
40822
|
+
/**
|
|
40823
|
+
* Marks the news feed item as handled, so it can be removed from the feed.
|
|
40824
|
+
* Returns boolean
|
|
40825
|
+
*/
|
|
40826
|
+
export interface NewsFeed_MarkAsHandledRequest {
|
|
40827
|
+
/**
|
|
40828
|
+
* Id of the news feed item to mark as handled for all users.
|
|
40829
|
+
*/
|
|
40830
|
+
newsFeedItemId: number;
|
|
40831
|
+
}
|
|
40617
40832
|
export interface DSAParameters {
|
|
40618
40833
|
Counter: number;
|
|
40619
40834
|
G: any;
|