@microsoft/teams-js 1.10.1-dev.0 → 1.10.1-dev.1

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.
Files changed (40) hide show
  1. package/dist/MicrosoftTeams.js +1 -1
  2. package/dist/MicrosoftTeams.js.map +1 -1
  3. package/dist/MicrosoftTeams.min.js +1 -1
  4. package/dist/microsoftteams.d.ts +2834 -0
  5. package/dts/index.d.ts +2 -0
  6. package/dts/internal/communication.d.ts +23 -0
  7. package/dts/internal/constants.d.ts +42 -0
  8. package/dts/internal/globalVars.d.ts +15 -0
  9. package/dts/internal/handlers.d.ts +10 -0
  10. package/dts/internal/interfaces.d.ts +44 -0
  11. package/dts/internal/internalAPIs.d.ts +12 -0
  12. package/dts/internal/mediaUtil.d.ts +31 -0
  13. package/dts/internal/utils.d.ts +22 -0
  14. package/dts/private/appEntity.d.ts +49 -0
  15. package/dts/private/bot.d.ts +77 -0
  16. package/dts/private/conversations.d.ts +20 -0
  17. package/dts/private/files.d.ts +169 -0
  18. package/dts/private/index.d.ts +10 -0
  19. package/dts/private/interfaces.d.ts +141 -0
  20. package/dts/private/logs.d.ts +17 -0
  21. package/dts/private/meetingRoom.d.ts +157 -0
  22. package/dts/private/menus.d.ts +117 -0
  23. package/dts/private/privateAPIs.d.ts +104 -0
  24. package/dts/private/remoteCamera.d.ts +196 -0
  25. package/dts/public/appInitialization.d.ts +44 -0
  26. package/dts/public/appWindow.d.ts +14 -0
  27. package/dts/public/authentication.d.ts +177 -0
  28. package/dts/public/constants.d.ts +53 -0
  29. package/dts/public/index.d.ts +13 -0
  30. package/dts/public/interfaces.d.ts +557 -0
  31. package/dts/public/location.d.ts +47 -0
  32. package/dts/public/media.d.ts +219 -0
  33. package/dts/public/meeting.d.ts +158 -0
  34. package/dts/public/navigation.d.ts +28 -0
  35. package/dts/public/people.d.ts +53 -0
  36. package/dts/public/publicAPIs.d.ts +117 -0
  37. package/dts/public/settings.d.ts +95 -0
  38. package/dts/public/tasks.d.ts +25 -0
  39. package/package.json +1 -1
  40. package/dist/MicrosoftTeams.d.ts +0 -5
package/dts/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './private/index';
2
+ export * from './public/index';
@@ -0,0 +1,23 @@
1
+ export declare class Communication {
2
+ static currentWindow: Window | any;
3
+ static parentOrigin: string;
4
+ static parentWindow: Window | any;
5
+ static childWindow: Window;
6
+ static childOrigin: string;
7
+ }
8
+ export declare function initializeCommunication(callback: Function, validMessageOrigins: string[] | undefined): void;
9
+ export declare function uninitializeCommunication(): void;
10
+ /**
11
+ * Send a message to parent. Uses nativeInterface on mobile to communicate with parent context
12
+ */
13
+ export declare function sendMessageToParent(actionName: string, callback?: Function): void;
14
+ /**
15
+ * Send a message to parent. Uses nativeInterface on mobile to communicate with parent context
16
+ */
17
+ export declare function sendMessageToParent(actionName: string, args: any[], callback?: Function): void;
18
+ export declare function waitForMessageQueue(targetWindow: Window, callback: () => void): void;
19
+ /**
20
+ * Send a custom message object that can be sent to child window,
21
+ * instead of a response message to a child
22
+ */
23
+ export declare function sendMessageEventToChild(actionName: string, args?: any[]): void;
@@ -0,0 +1,42 @@
1
+ export declare const version = "1.10.1-dev.1";
2
+ /**
3
+ * This is the SDK version when all SDK APIs started to check platform compatibility for the APIs.
4
+ */
5
+ export declare const defaultSDKVersionForCompatCheck = "1.6.0";
6
+ /**
7
+ * Minimum required client supported version for {@link getUserJoinedTeams} to be supported on {@link HostClientType.android}
8
+ */
9
+ export declare const getUserJoinedTeamsSupportedAndroidClientVersion = "2.0.1";
10
+ /**
11
+ * This is the SDK version when location APIs (getLocation and showLocation) are supported.
12
+ */
13
+ export declare const locationAPIsRequiredVersion = "1.9.0";
14
+ /**
15
+ * This is the SDK version when people picker API is supported on mobile.
16
+ */
17
+ export declare const peoplePickerRequiredVersion = "2.0.0";
18
+ /**
19
+ * This is the SDK version when captureImage API is supported on mobile.
20
+ */
21
+ export declare const captureImageMobileSupportVersion = "1.7.0";
22
+ /**
23
+ * This is the SDK version when media APIs are supported on all three platforms ios, android and web.
24
+ */
25
+ export declare const mediaAPISupportVersion = "1.8.0";
26
+ /**
27
+ * This is the SDK version when getMedia API is supported via Callbacks on all three platforms ios, android and web.
28
+ */
29
+ export declare const getMediaCallbackSupportVersion = "2.0.0";
30
+ /**
31
+ * This is the SDK version when scanBarCode API is supported on mobile.
32
+ */
33
+ export declare const scanBarCodeAPIMobileSupportVersion = "1.9.0";
34
+ /**
35
+ * List of supported Host origins
36
+ */
37
+ export declare const validOrigins: string[];
38
+ export declare const validOriginRegExp: RegExp;
39
+ /**
40
+ * USer specified message origins should satisfy this test
41
+ */
42
+ export declare const userOriginUrlValidationRegExp: RegExp;
@@ -0,0 +1,15 @@
1
+ import { FrameContexts } from '../public';
2
+ export declare class GlobalVars {
3
+ static initializeCalled: boolean;
4
+ static initializeCompleted: boolean;
5
+ static additionalValidOrigins: string[];
6
+ static additionalValidOriginsRegexp: RegExp;
7
+ static initializeCallbacks: {
8
+ (): void;
9
+ }[];
10
+ static isFramelessWindow: boolean;
11
+ static frameContext: FrameContexts;
12
+ static hostClientType: string;
13
+ static clientSupportedSDKVersion: string;
14
+ static printCapabilityEnabled: boolean;
15
+ }
@@ -0,0 +1,10 @@
1
+ import { LoadContext } from '../public';
2
+ export declare function initializeHandlers(): void;
3
+ export declare function callHandler(name: string, args?: any[]): [true, any] | [false, undefined];
4
+ export declare function registerHandler(name: string, handler: Function, sendMessage?: boolean, args?: any[]): void;
5
+ export declare function removeHandler(name: string): void;
6
+ export declare function registerOnThemeChangeHandler(handler: (theme: string) => void): void;
7
+ export declare function handleThemeChange(theme: string): void;
8
+ export declare function registerBackButtonHandler(handler: () => boolean): void;
9
+ export declare function registerOnLoadHandler(handler: (context: LoadContext) => void): void;
10
+ export declare function registerBeforeUnloadHandler(handler: (readyToUnload: () => void) => boolean): void;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @private
3
+ * Hide from docs
4
+ * Shim in definitions used for browser-compat
5
+ */
6
+ export interface DOMMessageEvent {
7
+ origin?: any;
8
+ source?: any;
9
+ data?: any;
10
+ originalEvent: DOMMessageEvent;
11
+ }
12
+ /**
13
+ * @private
14
+ * Hide from docs
15
+ */
16
+ export interface TeamsNativeClient {
17
+ framelessPostMessage(msg: string): void;
18
+ }
19
+ /**
20
+ * @private
21
+ * Hide from docs
22
+ */
23
+ export interface ExtendedWindow extends Window {
24
+ nativeInterface: TeamsNativeClient;
25
+ onNativeMessage(evt: DOMMessageEvent): void;
26
+ }
27
+ export interface MessageRequest {
28
+ id?: number;
29
+ func: string;
30
+ timestamp?: number;
31
+ args?: any[];
32
+ }
33
+ export interface MessageResponse {
34
+ id: number;
35
+ args?: any[];
36
+ isPartialResponse?: boolean;
37
+ }
38
+ /**
39
+ * Meant for Message objects that are sent to children without id
40
+ */
41
+ export interface DOMMessageEvent {
42
+ func: string;
43
+ args?: any[];
44
+ }
@@ -0,0 +1,12 @@
1
+ export declare function ensureInitialized(...expectedFrameContexts: string[]): void;
2
+ /**
3
+ * Checks whether the platform has knowledge of this API by doing a comparison
4
+ * on API required version and platform supported version of the SDK
5
+ * @param requiredVersion SDK version required by the API
6
+ */
7
+ export declare function isAPISupportedByPlatform(requiredVersion?: string): boolean;
8
+ /**
9
+ * Processes the valid origins specifuied by the user, de-duplicates and converts them into a regexp
10
+ * which is used later for message source/origin validation
11
+ */
12
+ export declare function processAdditionalValidOrigins(validMessageOrigins: string[]): void;
@@ -0,0 +1,31 @@
1
+ import { people } from '../public/people';
2
+ import { media } from '../public/media';
3
+ /**
4
+ * Helper function to create a blob from media chunks based on their sequence
5
+ */
6
+ export declare function createFile(assembleAttachment: media.AssembleAttachment[], mimeType: string): Blob;
7
+ /**
8
+ * Helper function to convert Media chunks into another object type which can be later assemebled
9
+ * Converts base 64 encoded string to byte array and then into an array of blobs
10
+ */
11
+ export declare function decodeAttachment(attachment: media.MediaChunk, mimeType: string): media.AssembleAttachment;
12
+ /**
13
+ * Returns true if the mediaInput params are valid and false otherwise
14
+ */
15
+ export declare function validateSelectMediaInputs(mediaInputs: media.MediaInputs): boolean;
16
+ /**
17
+ * Returns true if the get Media params are valid and false otherwise
18
+ */
19
+ export declare function validateGetMediaInputs(mimeType: string, format: media.FileFormat, content: string): boolean;
20
+ /**
21
+ * Returns true if the view images param is valid and false otherwise
22
+ */
23
+ export declare function validateViewImagesInput(uriList: media.ImageUri[]): boolean;
24
+ /**
25
+ * Returns true if the scan barcode param is valid and false otherwise
26
+ */
27
+ export declare function validateScanBarCodeInput(barCodeConfig: media.BarCodeConfig): boolean;
28
+ /**
29
+ * Returns true if the people picker params are valid and false otherwise
30
+ */
31
+ export declare function validatePeoplePickerInput(peoplePickerInputs: people.PeoplePickerInputs): boolean;
@@ -0,0 +1,22 @@
1
+ export declare function generateRegExpFromUrls(urls: string[]): RegExp;
2
+ export declare function getGenericOnCompleteHandler(errorMessage?: string): (success: boolean, reason?: string) => void;
3
+ /**
4
+ * Compares SDK versions.
5
+ * @param v1 first version
6
+ * @param v2 second version
7
+ * returns NaN in case inputs are not in right format
8
+ * -1 if v1 < v2
9
+ * 1 if v1 > v2
10
+ * 0 otherwise
11
+ * For example,
12
+ * compareSDKVersions('1.2', '1.2.0') returns 0
13
+ * compareSDKVersions('1.2a', '1.2b') returns NaN
14
+ * compareSDKVersions('1.2', '1.3') returns -1
15
+ * compareSDKVersions('2.0', '1.3.2') returns 1
16
+ * compareSDKVersions('2.0', 2.0) returns NaN
17
+ */
18
+ export declare function compareSDKVersions(v1: string, v2: string): number;
19
+ /**
20
+ * Generates a GUID
21
+ */
22
+ export declare function generateGUID(): string;
@@ -0,0 +1,49 @@
1
+ import { SdkError } from '../public';
2
+ /**
3
+ * Namespace to interact with the application entities specific part of the SDK.
4
+ *
5
+ * @private
6
+ * Hide from docs
7
+ */
8
+ export declare namespace appEntity {
9
+ /**
10
+ * @private
11
+ * Hide from docs
12
+ * --------
13
+ * Information on an app entity
14
+ */
15
+ interface AppEntity {
16
+ /**
17
+ * App ID of the application
18
+ */
19
+ appId: string;
20
+ /**
21
+ * URL for the application's icon
22
+ */
23
+ appIconUrl: string;
24
+ /**
25
+ * Content URL for the app entity
26
+ */
27
+ contentUrl: string;
28
+ /**
29
+ * The display name for the app entity
30
+ */
31
+ displayName: string;
32
+ /**
33
+ * Website URL for the app entity. It is meant to be opened by the user in a browser.
34
+ */
35
+ websiteUrl: string;
36
+ }
37
+ /**
38
+ * @private
39
+ * Hide from docs
40
+ *
41
+ * Open the Tab Gallery and retrieve the app entity
42
+ * @param threadId ID of the thread where the app entity will be created
43
+ * @param categories A list of app categories that will be displayed in the open tab gallery
44
+ * @param callback Callback that will be triggered once the app entity information is available.
45
+ * The callback takes two arguments: the app entity configuration, if available and
46
+ * an optional SdkError in case something happened (i.e. the window was closed)
47
+ */
48
+ function selectAppEntity(threadId: string, categories: string[], callback: (appEntity: AppEntity, sdkError?: SdkError) => void): void;
49
+ }
@@ -0,0 +1,77 @@
1
+ /**
2
+ * @private
3
+ * Namespace to interact with bots using the SDK.
4
+ */
5
+ export declare namespace bot {
6
+ /**
7
+ * @private
8
+ * Hide from docs until release.
9
+ * ------
10
+ * Sends query to bot in order to retrieve data.
11
+ * @param botRequest query to send to bot.
12
+ * @param onSuccess callback to invoke when data is retrieved from bot
13
+ * @param onError callback to invoke should an error occur
14
+ */
15
+ function sendQuery(botRequest: QueryRequest, onSuccess?: (data: QueryResponse) => void, onError?: (error: string) => void): void;
16
+ /**
17
+ * @private
18
+ * Hide from docs until release.
19
+ * -----
20
+ * Retrieves list of support commands from bot
21
+ * @param onSuccess callback to invoke when data is retrieved from bot
22
+ * @param onError callback to invoke should an error occur
23
+ */
24
+ function getSupportedCommands(onSuccess?: (response: Command[]) => void, onError?: (error: string) => void): void;
25
+ /**
26
+ * @private
27
+ * Hide from docs until release.
28
+ * -----
29
+ * Authenticates a user for json tab
30
+ * @param authRequest callback to invoke when data is retrieved from bot
31
+ * @param onSuccess callback to invoke when user is authenticated
32
+ * @param onError callback to invoke should an error occur
33
+ */
34
+ function authenticate(authRequest: AuthQueryRequest, onSuccess?: (results: Results) => void, onError?: (error: string) => void): void;
35
+ interface QueryRequest {
36
+ /**
37
+ * Query to search for
38
+ */
39
+ query: string;
40
+ commandId?: string;
41
+ option?: {
42
+ skip: number;
43
+ count: number;
44
+ };
45
+ }
46
+ interface QueryResponse {
47
+ data: Results | Auth;
48
+ type: ResponseType;
49
+ }
50
+ interface Results {
51
+ attachments: Attachment[];
52
+ layout: any;
53
+ botId: string;
54
+ }
55
+ interface Auth {
56
+ url: string;
57
+ title: string;
58
+ }
59
+ interface AuthQueryRequest extends QueryRequest {
60
+ url: string;
61
+ }
62
+ interface Attachment {
63
+ card: any;
64
+ previewCard: any;
65
+ previewRawPayload: any;
66
+ rawPayload: any;
67
+ }
68
+ interface Command {
69
+ title: string;
70
+ id: string;
71
+ initialRun: boolean;
72
+ }
73
+ enum ResponseType {
74
+ Results = "Results",
75
+ Auth = "Auth"
76
+ }
77
+ }
@@ -0,0 +1,20 @@
1
+ import { OpenConversationRequest } from '../public/interfaces';
2
+ /**
3
+ * Namespace to interact with the conversational subEntities inside the tab
4
+ */
5
+ export declare namespace conversations {
6
+ /**
7
+ * @private
8
+ * Hide from docs
9
+ * --------------
10
+ * Allows the user to start or continue a conversation with each subentity inside the tab
11
+ */
12
+ function openConversation(openConversationRequest: OpenConversationRequest): void;
13
+ /**
14
+ * @private
15
+ * Hide from docs
16
+ * --------------
17
+ * Allows the user to close the conversation in the right pane
18
+ */
19
+ function closeConversation(): void;
20
+ }
@@ -0,0 +1,169 @@
1
+ import { FileOpenPreference, SdkError } from '../public';
2
+ /**
3
+ * Namespace to interact with the files specific part of the SDK.
4
+ *
5
+ * @private
6
+ * Hide from docs
7
+ */
8
+ export declare namespace files {
9
+ /**
10
+ * @private
11
+ * Hide from docs
12
+ *
13
+ * Cloud storage providers registered with Microsoft Teams
14
+ */
15
+ enum CloudStorageProvider {
16
+ Dropbox = "DROPBOX",
17
+ Box = "BOX",
18
+ Sharefile = "SHAREFILE",
19
+ GoogleDrive = "GOOGLEDRIVE",
20
+ Egnyte = "EGNYTE"
21
+ }
22
+ /**
23
+ * @private
24
+ * Hide from docs
25
+ *
26
+ * Cloud storage provider integration type
27
+ */
28
+ enum CloudStorageProviderType {
29
+ Sharepoint = 0,
30
+ WopiIntegration = 1,
31
+ Google = 2
32
+ }
33
+ /**
34
+ * @private
35
+ * Hide from docs
36
+ *
37
+ * Cloud storage folder interface
38
+ */
39
+ interface CloudStorageFolder {
40
+ /**
41
+ * ID of the cloud storage folder
42
+ */
43
+ id: string;
44
+ /**
45
+ * Display Name/Title of the cloud storage folder
46
+ */
47
+ title: string;
48
+ /**
49
+ * ID of the cloud storage folder in the provider
50
+ */
51
+ folderId: string;
52
+ /**
53
+ * Type of the cloud storage folder provider integration
54
+ */
55
+ providerType: CloudStorageProviderType;
56
+ /**
57
+ * Code of the supported cloud storage folder provider
58
+ */
59
+ providerCode: CloudStorageProvider;
60
+ /**
61
+ * Display name of the owner of the cloud storage folder provider
62
+ */
63
+ ownerDisplayName: string;
64
+ /**
65
+ * Sharepoint specific siteURL of the folder
66
+ */
67
+ siteUrl?: string;
68
+ /**
69
+ * Sharepoint specific serverRelativeUrl of the folder
70
+ */
71
+ serverRelativeUrl?: string;
72
+ /**
73
+ * Sharepoint specific libraryType of the folder
74
+ */
75
+ libraryType?: string;
76
+ /**
77
+ * Sharepoint specific accessType of the folder
78
+ */
79
+ accessType?: string;
80
+ }
81
+ /**
82
+ * @private
83
+ * Hide from docs
84
+ *
85
+ * Cloud storage item interface
86
+ */
87
+ interface CloudStorageFolderItem {
88
+ /**
89
+ * ID of the item in the provider
90
+ */
91
+ id: string;
92
+ /**
93
+ * Display name/title
94
+ */
95
+ title: string;
96
+ /**
97
+ * Key to differentiate files and subdirectory
98
+ */
99
+ isSubdirectory: boolean;
100
+ /**
101
+ * File extension
102
+ */
103
+ type: string;
104
+ /**
105
+ * Last modifed time of the item
106
+ */
107
+ lastModifiedTime: string;
108
+ /**
109
+ * Display size of the items in bytes
110
+ */
111
+ size: number;
112
+ /**
113
+ * URL of the file
114
+ */
115
+ objectUrl: string;
116
+ /**
117
+ * Temporary access token for the item
118
+ */
119
+ accessToken?: string;
120
+ }
121
+ /**
122
+ * @private
123
+ * Hide from docs
124
+ *
125
+ * Gets a list of cloud storage folders added to the channel
126
+ * @param channelId ID of the channel whose cloud storage folders should be retrieved
127
+ * @param callback Callback that will be triggered post folders load
128
+ */
129
+ function getCloudStorageFolders(channelId: string, callback: (error: SdkError, folders: CloudStorageFolder[]) => void): void;
130
+ /**
131
+ * @private
132
+ * Hide from docs
133
+ *
134
+ * Initiates the add cloud storage folder flow
135
+ * @param channelId ID of the channel to add cloud storage folder
136
+ * @param callback Callback that will be triggered post add folder flow is compelete
137
+ */
138
+ function addCloudStorageFolder(channelId: string, callback: (error: SdkError, isFolderAdded: boolean, folders: CloudStorageFolder[]) => void): void;
139
+ /**
140
+ * @private
141
+ * Hide from docs
142
+ *
143
+ * Deletes a cloud storage folder from channel
144
+ * @param channelId ID of the channel where folder is to be deleted
145
+ * @param folderToDelete cloud storage folder to be deleted
146
+ * @param callback Callback that will be triggered post delete
147
+ */
148
+ function deleteCloudStorageFolder(channelId: string, folderToDelete: CloudStorageFolder, callback: (error: SdkError, isFolderDeleted: boolean) => void): void;
149
+ /**
150
+ * @private
151
+ * Hide from docs
152
+ *
153
+ * Fetches the contents of a Cloud storage folder (CloudStorageFolder) / sub directory
154
+ * @param folder Cloud storage folder (CloudStorageFolder) / sub directory (CloudStorageFolderItem)
155
+ * @param providerCode Code of the cloud storage folder provider
156
+ * @param callback Callback that will be triggered post contents are loaded
157
+ */
158
+ function getCloudStorageFolderContents(folder: CloudStorageFolder | CloudStorageFolderItem, providerCode: CloudStorageProvider, callback: (error: SdkError, items: CloudStorageFolderItem[]) => void): void;
159
+ /**
160
+ * @private
161
+ * Hide from docs
162
+ *
163
+ * Open a cloud storage file in teams
164
+ * @param file cloud storage file that should be opened
165
+ * @param providerCode Code of the cloud storage folder provider
166
+ * @param fileOpenPreference Whether file should be opened in web/inline
167
+ */
168
+ function openCloudStorageFile(file: CloudStorageFolderItem, providerCode: CloudStorageProvider, fileOpenPreference?: FileOpenPreference.Web | FileOpenPreference.Inline): void;
169
+ }
@@ -0,0 +1,10 @@
1
+ export { bot } from './bot';
2
+ export { menus } from './menus';
3
+ export { logs } from './logs';
4
+ export { ChatMembersInformation, FilePreviewParameters, NotificationTypes, ShowNotificationParameters, TeamInstanceParameters, ThreadMember, UserJoinedTeamsInformation, ViewerActionTypes, UserSettingTypes, } from './interfaces';
5
+ export { enterFullscreen, exitFullscreen, getChatMembers, getConfigSetting, getUserJoinedTeams, openFilePreview, sendCustomMessage, showNotification, sendCustomEvent, registerCustomHandler, uploadCustomApp, registerUserSettingsChangeHandler, } from './privateAPIs';
6
+ export { conversations } from './conversations';
7
+ export { meetingRoom } from './meetingRoom';
8
+ export { remoteCamera } from './remoteCamera';
9
+ export { files } from './files';
10
+ export { appEntity } from './appEntity';
@@ -0,0 +1,141 @@
1
+ import { FileOpenPreference, TeamInformation } from '../public/interfaces';
2
+ /**
3
+ * @private
4
+ * Hide from docs
5
+ * --------
6
+ * Information about all members in a chat
7
+ */
8
+ export interface ChatMembersInformation {
9
+ members: ThreadMember[];
10
+ }
11
+ /**
12
+ * @private
13
+ * Hide from docs
14
+ * --------
15
+ * Information about a chat member
16
+ */
17
+ export interface ThreadMember {
18
+ /**
19
+ * The member's user principal name in the current tenant.
20
+ */
21
+ upn: string;
22
+ }
23
+ export declare enum NotificationTypes {
24
+ fileDownloadStart = "fileDownloadStart",
25
+ fileDownloadComplete = "fileDownloadComplete"
26
+ }
27
+ export interface ShowNotificationParameters {
28
+ message: string;
29
+ notificationType: NotificationTypes;
30
+ }
31
+ /**
32
+ * @private
33
+ * Hide from docs.
34
+ * ------
35
+ */
36
+ export declare enum ViewerActionTypes {
37
+ view = "view",
38
+ edit = "edit",
39
+ editNew = "editNew"
40
+ }
41
+ /**
42
+ * * @private
43
+ * Hide from docs.
44
+ * ------
45
+ * User setting changes that can be subscribed to,
46
+ */
47
+ export declare enum UserSettingTypes {
48
+ /**
49
+ * Use this key to subscribe to changes in user's file open preference
50
+ */
51
+ fileOpenPreference = "fileOpenPreference",
52
+ /**
53
+ * Use this key to subscribe to theme changes
54
+ */
55
+ theme = "theme"
56
+ }
57
+ /**
58
+ * @private
59
+ * Hide from docs.
60
+ * ------
61
+ */
62
+ export interface FilePreviewParameters {
63
+ /**
64
+ * The developer-defined unique ID for the file.
65
+ */
66
+ entityId: string;
67
+ /**
68
+ * The display name of the file.
69
+ */
70
+ title: string;
71
+ /**
72
+ * An optional description of the file.
73
+ */
74
+ description?: string;
75
+ /**
76
+ * The file extension; e.g. pptx, docx, etc.
77
+ */
78
+ type: string;
79
+ /**
80
+ * A url to the source of the file, used to open the content in the user's default browser
81
+ */
82
+ objectUrl: string;
83
+ /**
84
+ * Optional; an alternate self-authenticating url used to preview the file in Mobile clients and offer it for download by the user
85
+ */
86
+ downloadUrl?: string;
87
+ /**
88
+ * Optional; an alternate url optimized for previewing the file in Teams web and desktop clients
89
+ */
90
+ webPreviewUrl?: string;
91
+ /**
92
+ * Optional; an alternate url that allows editing of the file in Teams web and desktop clients
93
+ */
94
+ webEditUrl?: string;
95
+ /**
96
+ * Optional; the base url of the site where the file is hosted
97
+ */
98
+ baseUrl?: string;
99
+ /**
100
+ * Deprecated; prefer using viewerAction instead
101
+ * Optional; indicates whether the file should be opened in edit mode
102
+ */
103
+ editFile?: boolean;
104
+ /**
105
+ * Optional; the developer-defined unique ID for the sub-entity to return to when the file stage closes.
106
+ * This field should be used to restore to a specific state within an entity, such as scrolling to or activating a specific piece of content.
107
+ */
108
+ subEntityId?: string;
109
+ /**
110
+ * Optional; indicates the mode in which file should be opened. Takes precedence over edit mode.
111
+ */
112
+ viewerAction?: ViewerActionTypes;
113
+ /**
114
+ * Optional; indicates how user prefers to open the file
115
+ */
116
+ fileOpenPreference?: FileOpenPreference;
117
+ }
118
+ /**
119
+ * @private
120
+ * Hide from docs
121
+ * --------
122
+ * Query parameters used when fetching team information
123
+ */
124
+ export interface TeamInstanceParameters {
125
+ /**
126
+ * Flag allowing to select favorite teams only
127
+ */
128
+ favoriteTeamsOnly?: boolean;
129
+ }
130
+ /**
131
+ * @private
132
+ * Hide from docs
133
+ * --------
134
+ * Information on userJoined Teams
135
+ */
136
+ export interface UserJoinedTeamsInformation {
137
+ /**
138
+ * List of team information
139
+ */
140
+ userJoinedTeams: TeamInformation[];
141
+ }