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