@microsoft/teams-js 2.31.0-beta.0 → 2.31.0-beta.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.
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/internal/dialogHelpers.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +2 -2
- package/dist/esm/packages/teams-js/dts/public/{app.d.ts → app/app.d.ts} +13 -44
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +40 -0
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +26 -28
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +26 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +69 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +23 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +29 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +60 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +67 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +27 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +20 -18
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +12 -1
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +134 -136
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +72 -74
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +79 -81
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +314 -316
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +425 -427
- package/dist/esm/packages/teams-js/dts/public/menus.d.ts +164 -166
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +48 -50
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +9 -11
- package/dist/esm/packages/teams-js/dts/public/people.d.ts +61 -63
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +76 -86
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +25 -27
- package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +52 -54
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +74 -76
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +96 -98
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/dialogHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/mediaUtil.js +1 -1
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -0
- package/dist/esm/packages/teams-js/src/public/app/lifecycle.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/chat.js +1 -1
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/adaptiveCard.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/dialog.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/update.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/parentCommunication.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/url.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/geoLocation.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/map.js +1 -0
- package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -1
- package/dist/esm/packages/teams-js/src/public/location.js +1 -1
- package/dist/esm/packages/teams-js/src/public/mail.js +1 -1
- package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -1
- package/dist/esm/packages/teams-js/src/public/media.js +1 -1
- package/dist/esm/packages/teams-js/src/public/menus.js +1 -1
- package/dist/esm/packages/teams-js/src/public/monetization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -1
- package/dist/esm/packages/teams-js/src/public/people.js +1 -1
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/search.js +1 -1
- package/dist/esm/packages/teams-js/src/public/secondaryBrowser.js +1 -1
- package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
- package/dist/esm/packages/teams-js/src/public/teamsAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
- package/dist/umd/MicrosoftTeams.d.ts +2219 -2022
- package/dist/umd/MicrosoftTeams.js +2397 -2244
- package/dist/umd/MicrosoftTeams.js.map +1 -1
- package/dist/umd/MicrosoftTeams.min.js +1 -1
- package/dist/umd/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/packages/teams-js/dts/public/dialog.d.ts +0 -286
- package/dist/esm/packages/teams-js/dts/public/geoLocation.d.ts +0 -100
- package/dist/esm/packages/teams-js/src/public/app.js +0 -1
- package/dist/esm/packages/teams-js/src/public/dialog.js +0 -1
- package/dist/esm/packages/teams-js/src/public/geoLocation.js +0 -1
|
@@ -1,95 +1,93 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Used to interact with mail capability, including opening and composing mail.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Opens a mail message in the host.
|
|
6
|
+
*
|
|
7
|
+
* @param openMailItemParams - Object that specifies the ID of the mail message.
|
|
8
|
+
*/
|
|
9
|
+
export declare function openMailItem(openMailItemParams: OpenMailItemParams): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Compose a new email in the user's mailbox.
|
|
12
|
+
*
|
|
13
|
+
* @param composeMailParams - Object that specifies the type of mail item to compose and the details of the mail item.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare function composeMail(composeMailParams: ComposeMailParams): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Checks if the mail capability is supported by the host
|
|
19
|
+
* @returns boolean to represent whether the mail capability is supported
|
|
20
|
+
*
|
|
21
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
22
|
+
*/
|
|
23
|
+
export declare function isSupported(): boolean;
|
|
24
|
+
/** Defines the parameters used to open a mail item in the user's mailbox */
|
|
25
|
+
export interface OpenMailItemParams {
|
|
26
|
+
/** An unique base64-encoded string id that represents the itemId or messageId. */
|
|
27
|
+
itemId: string;
|
|
28
|
+
}
|
|
29
|
+
/** Defines compose mail types. */
|
|
30
|
+
export declare enum ComposeMailType {
|
|
31
|
+
/** Compose a new mail message. */
|
|
32
|
+
New = "new",
|
|
33
|
+
/** Compose a reply to the sender of an existing mail message. */
|
|
34
|
+
Reply = "reply",
|
|
35
|
+
/** Compose a reply to all recipients of an existing mail message. */
|
|
36
|
+
ReplyAll = "replyAll",
|
|
37
|
+
/** Compose a new mail message with the content of an existing mail message forwarded to a new recipient. */
|
|
38
|
+
Forward = "forward"
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Foundational interface for all other mail compose interfaces
|
|
42
|
+
* Used for holding the type of mail item being composed
|
|
43
|
+
*
|
|
44
|
+
* @typeParam T - the identity type.
|
|
45
|
+
* @see {@link mail.ComposeMailType}
|
|
46
|
+
*/
|
|
47
|
+
interface ComposeMailBase<T extends ComposeMailType> {
|
|
48
|
+
/** Type of the mail item being composed. */
|
|
49
|
+
type: T;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Parameters supplied when composing a new mail item
|
|
53
|
+
*/
|
|
54
|
+
export interface ComposeNewParams extends ComposeMailBase<ComposeMailType.New> {
|
|
18
55
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @returns boolean to represent whether the mail capability is supported
|
|
21
|
-
*
|
|
22
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
56
|
+
* The To: recipients for the message
|
|
23
57
|
*/
|
|
24
|
-
|
|
25
|
-
/** Defines the parameters used to open a mail item in the user's mailbox */
|
|
26
|
-
export interface OpenMailItemParams {
|
|
27
|
-
/** An unique base64-encoded string id that represents the itemId or messageId. */
|
|
28
|
-
itemId: string;
|
|
29
|
-
}
|
|
30
|
-
/** Defines compose mail types. */
|
|
31
|
-
export enum ComposeMailType {
|
|
32
|
-
/** Compose a new mail message. */
|
|
33
|
-
New = "new",
|
|
34
|
-
/** Compose a reply to the sender of an existing mail message. */
|
|
35
|
-
Reply = "reply",
|
|
36
|
-
/** Compose a reply to all recipients of an existing mail message. */
|
|
37
|
-
ReplyAll = "replyAll",
|
|
38
|
-
/** Compose a new mail message with the content of an existing mail message forwarded to a new recipient. */
|
|
39
|
-
Forward = "forward"
|
|
40
|
-
}
|
|
58
|
+
toRecipients?: string[];
|
|
41
59
|
/**
|
|
42
|
-
*
|
|
43
|
-
* Used for holding the type of mail item being composed
|
|
44
|
-
*
|
|
45
|
-
* @typeParam T - the identity type.
|
|
46
|
-
* @see {@link mail.ComposeMailType}
|
|
60
|
+
* The Cc: recipients for the message
|
|
47
61
|
*/
|
|
48
|
-
|
|
49
|
-
/** Type of the mail item being composed. */
|
|
50
|
-
type: T;
|
|
51
|
-
}
|
|
62
|
+
ccRecipients?: string[];
|
|
52
63
|
/**
|
|
53
|
-
*
|
|
64
|
+
* The Bcc: recipients for the message
|
|
54
65
|
*/
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The To: recipients for the message
|
|
58
|
-
*/
|
|
59
|
-
toRecipients?: string[];
|
|
60
|
-
/**
|
|
61
|
-
* The Cc: recipients for the message
|
|
62
|
-
*/
|
|
63
|
-
ccRecipients?: string[];
|
|
64
|
-
/**
|
|
65
|
-
* The Bcc: recipients for the message
|
|
66
|
-
*/
|
|
67
|
-
bccRecipients?: string[];
|
|
68
|
-
/**
|
|
69
|
-
* The subject of the message
|
|
70
|
-
*/
|
|
71
|
-
subject?: string;
|
|
72
|
-
/**
|
|
73
|
-
* The body of the message
|
|
74
|
-
*/
|
|
75
|
-
message?: string;
|
|
76
|
-
}
|
|
66
|
+
bccRecipients?: string[];
|
|
77
67
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* @see {@link ComposeMailType}
|
|
68
|
+
* The subject of the message
|
|
81
69
|
*/
|
|
82
|
-
|
|
83
|
-
/** An unique base64-encoded string id that represents the mail message. */
|
|
84
|
-
itemid: string;
|
|
85
|
-
}
|
|
70
|
+
subject?: string;
|
|
86
71
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* @see {@link ComposeNewParams}
|
|
90
|
-
* @see {@link ComposeReplyOrForwardParams}
|
|
91
|
-
* @see {@link ComposeMailType}
|
|
72
|
+
* The body of the message
|
|
92
73
|
*/
|
|
93
|
-
|
|
94
|
-
export {};
|
|
74
|
+
message?: string;
|
|
95
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Parameters supplied when composing a reply to or forward of a message
|
|
78
|
+
*
|
|
79
|
+
* @see {@link ComposeMailType}
|
|
80
|
+
*/
|
|
81
|
+
export interface ComposeReplyOrForwardParams<T extends ComposeMailType> extends ComposeMailBase<T> {
|
|
82
|
+
/** An unique base64-encoded string id that represents the mail message. */
|
|
83
|
+
itemid: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Parameters supplied to {@link composeMail} when composing a new mail item
|
|
87
|
+
*
|
|
88
|
+
* @see {@link ComposeNewParams}
|
|
89
|
+
* @see {@link ComposeReplyOrForwardParams}
|
|
90
|
+
* @see {@link ComposeMailType}
|
|
91
|
+
*/
|
|
92
|
+
export type ComposeMailParams = ComposeNewParams | ComposeReplyOrForwardParams<ComposeMailType.Reply> | ComposeReplyOrForwardParams<ComposeMailType.ReplyAll> | ComposeReplyOrForwardParams<ComposeMailType.Forward>;
|
|
93
|
+
export {};
|