@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,32 +1,33 @@
1
1
  export * as authentication from './authentication';
2
2
  export { ChannelType, DialogDimension, FrameContexts, HostClientType, HostName, TaskModuleDimension, TeamType, UserTeamRole, } from './constants';
3
3
  export { ActionInfo, ActionObjectType, AdaptiveCardVersion, AdaptiveCardDialogInfo, BaseActionObject, BotAdaptiveCardDialogInfo, BotUrlDialogInfo, Context, DeepLinkParameters, DialogInfo, DialogSize, ErrorCode, FileOpenPreference, FrameContext, FrameInfo, LoadContext, LocaleInfo, M365ContentAction, ResumeContext, SdkError, SecondaryId, SecondaryM365ContentIdName, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters, TaskInfo, TeamInformation, UrlDialogInfo, } from './interfaces';
4
- export * as app from './app';
4
+ export * as app from './app/app';
5
5
  export { AppId } from './appId';
6
6
  export { EmailAddress } from './emailAddress';
7
7
  export * as appInstallDialog from './appInstallDialog';
8
8
  export * as barCode from './barCode';
9
- export { chat, OpenGroupChatRequest, OpenSingleChatRequest } from './chat';
9
+ export * as chat from './chat';
10
+ export { OpenGroupChatRequest, OpenSingleChatRequest } from './chat';
10
11
  export * as clipboard from './clipboard';
11
- export { dialog } from './dialog';
12
- export { nestedAppAuth } from './nestedAppAuth';
13
- export { geoLocation } from './geoLocation';
12
+ export * as dialog from './dialog/dialog';
13
+ export * as nestedAppAuth from './nestedAppAuth';
14
+ export * as geoLocation from './geoLocation/geoLocation';
14
15
  export { getAdaptiveCardSchemaVersion } from './adaptiveCards';
15
16
  export { pages } from './pages';
16
17
  export { addEventListnerFunctionType, ChildAppWindow, IAppWindow, onCompleteFunctionType, ParentAppWindow, } from './appWindow';
17
- export { menus } from './menus';
18
- export { media } from './media';
19
- export { secondaryBrowser } from './secondaryBrowser';
20
- export { location } from './location';
18
+ export * as menus from './menus';
19
+ export * as media from './media';
20
+ export * as secondaryBrowser from './secondaryBrowser';
21
+ export * as location from './location';
21
22
  export { meeting } from './meeting';
22
- export { monetization } from './monetization';
23
+ export * as monetization from './monetization';
23
24
  export * as calendar from './calendar';
24
- export { mail } from './mail';
25
- export { teamsCore } from './teamsAPIs';
26
- export { people } from './people';
25
+ export * as mail from './mail';
26
+ export * as teamsCore from './teamsAPIs';
27
+ export * as people from './people';
27
28
  export { profile } from './profile';
28
29
  export { videoEffects } from './videoEffects';
29
- export { search } from './search';
30
+ export * as search from './search';
30
31
  export { sharing } from './sharing';
31
32
  export { stageView } from './stageView';
32
33
  export { version } from './version';
@@ -34,11 +35,12 @@ export { visualMedia } from './visualMedia';
34
35
  export { webStorage } from './webStorage';
35
36
  export * as call from './call';
36
37
  export * as appInitialization from './appInitialization';
37
- export { thirdPartyCloudStorage } from './thirdPartyCloudStorage';
38
+ export * as thirdPartyCloudStorage from './thirdPartyCloudStorage';
38
39
  export { callbackFunctionType, enablePrintCapability, executeDeepLink, executeDeepLinkOnCompleteFunctionType, getContext, getContextCallbackFunctionType, getMruTabInstances, getTabInstances, getTabInstancesCallbackFunctionType, initialize, initializeWithFrameContext, print, registerAppButtonClickHandler, registerAppButtonHoverEnterHandler, registerAppButtonHoverLeaveHandler, registerBackButtonHandler, registerBackButtonHandlerFunctionType, registerBeforeUnloadHandler, registerChangeSettingsHandler, registerFocusEnterHandler, registerFullScreenHandler, registerFullScreenHandlerFunctionType, registerOnLoadHandler, registerOnThemeChangeHandler, registerOnThemeChangeHandlerFunctionType, setFrameContext, shareDeepLink, } from './publicAPIs';
39
40
  export { navigateBack, navigateCrossDomain, navigateToTab, onCompleteHandlerFunctionType, returnFocus, } from './navigation';
40
41
  export * as settings from './settings';
41
- export { tasks } from './tasks';
42
- export { liveShare, LiveShareHost } from './liveShareHost';
43
- export { marketplace } from './marketplace';
42
+ export * as tasks from './tasks';
43
+ export * as liveShare from './liveShareHost';
44
+ export { LiveShareHost } from './liveShareHost';
45
+ export * as marketplace from './marketplace';
44
46
  export { ISerializable } from './serializable.interface';
@@ -622,9 +622,20 @@ export interface Context {
622
622
  * @deprecated
623
623
  * As of TeamsJS v2.0.0, please use {@link app.AppInfo.userClickTime | app.Context.app.userClickTime} instead
624
624
  *
625
- * Time when the user clicked on the tab
625
+ * Time when the user clicked on the tab using the date.
626
+ *
627
+ * For measuring elapsed time between the moment the user click the tab, use {@link app.AppInfo.userClickTimeV2 | app.Context.app.userClickTimeV2} instead as it uses the performance timer API.
626
628
  */
627
629
  userClickTime?: number;
630
+ /**
631
+ * @deprecated
632
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.userClickTimeV2 | app.Context.app.userClickTimeV2} instead
633
+ *
634
+ * Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.
635
+ *
636
+ * For displaying the time when the user clicked on the app, please use {@link app.AppInfo.userClickTime | app.Context.app.userClickTime} as it uses the date.
637
+ */
638
+ userClickTimeV2?: number;
628
639
  /**
629
640
  * @deprecated
630
641
  * As of TeamsJS v2.0.0, please use {@link app.TeamInfo.templateId | app.Context.team.templateId} instead
@@ -4,143 +4,141 @@
4
4
  *
5
5
  * @see LiveShareHost
6
6
  */
7
- export declare namespace liveShare {
7
+ /**
8
+ * @hidden
9
+ * The meeting roles of a user.
10
+ * Used in Live Share for its role verification feature.
11
+ * For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
12
+ */
13
+ export declare enum UserMeetingRole {
8
14
  /**
9
- * @hidden
10
- * The meeting roles of a user.
11
- * Used in Live Share for its role verification feature.
12
- * For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
13
- */
14
- enum UserMeetingRole {
15
- /**
16
- * Guest role.
17
- */
18
- guest = "Guest",
19
- /**
20
- * Attendee role.
21
- */
22
- attendee = "Attendee",
23
- /**
24
- * Presenter role.
25
- */
26
- presenter = "Presenter",
27
- /**
28
- * Organizer role.
29
- */
30
- organizer = "Organizer"
31
- }
15
+ * Guest role.
16
+ */
17
+ guest = "Guest",
32
18
  /**
33
- * @hidden
34
- * State of the current Live Share session's Fluid container.
35
- * This is used internally by the `LiveShareClient` when joining a Live Share session.
36
- */
37
- enum ContainerState {
38
- /**
39
- * The call to `LiveShareHost.setContainerId()` successfully created the container mapping
40
- * for the current Live Share session.
41
- */
42
- added = "Added",
43
- /**
44
- * A container mapping for the current Live Share session already exists.
45
- * This indicates to Live Share that a new container does not need be created.
46
- */
47
- alreadyExists = "AlreadyExists",
48
- /**
49
- * The call to `LiveShareHost.setContainerId()` failed to create the container mapping.
50
- * This happens when another client has already set the container ID for the session.
51
- */
52
- conflict = "Conflict",
53
- /**
54
- * A container mapping for the current Live Share session does not yet exist.
55
- * This indicates to Live Share that a new container should be created.
56
- */
57
- notFound = "NotFound"
58
- }
19
+ * Attendee role.
20
+ */
21
+ attendee = "Attendee",
59
22
  /**
60
- * @hidden
61
- * Returned from `LiveShareHost.getFluidContainerId()` and `LiveShareHost.setFluidContainerId`.
62
- * This response specifies the container mapping information for the current Live Share session.
63
- */
64
- interface IFluidContainerInfo {
65
- /**
66
- * State of the containerId mapping.
67
- */
68
- containerState: ContainerState;
69
- /**
70
- * ID of the container to join for the meeting. Undefined if the container hasn't been
71
- * created yet.
72
- */
73
- containerId: string | undefined;
74
- /**
75
- * If true, the local client should create the container and then save the created containers
76
- * ID to the mapping service.
77
- */
78
- shouldCreate: boolean;
79
- /**
80
- * If `containerId` is undefined and `shouldCreate` is false, the container isn't ready
81
- * but another client is creating it. In this case, the local client should wait the specified
82
- * amount of time before calling `LiveShareHost.getFluidContainerId()` again.
83
- */
84
- retryAfter: number;
85
- }
23
+ * Presenter role.
24
+ */
25
+ presenter = "Presenter",
86
26
  /**
87
- * @hidden
88
- * Returned from `LiveShareHost.getNtpTime()` to specify the global timestamp for the current
89
- * Live Share session.
90
- */
91
- interface INtpTimeInfo {
92
- /**
93
- * ISO 8601 formatted server time. For example: '2019-09-07T15:50-04:00'
94
- */
95
- ntpTime: string;
96
- /**
97
- * Server time expressed as the number of milliseconds since the ECMAScript epoch.
98
- */
99
- ntpTimeInUTC: number;
100
- }
27
+ * Organizer role.
28
+ */
29
+ organizer = "Organizer"
30
+ }
31
+ /**
32
+ * @hidden
33
+ * State of the current Live Share session's Fluid container.
34
+ * This is used internally by the `LiveShareClient` when joining a Live Share session.
35
+ */
36
+ export declare enum ContainerState {
101
37
  /**
102
- * @hidden
103
- * Returned from `LiveShareHost.getFluidTenantInfo()` to specify the Fluid service to use for the
104
- * current Live Share session.
105
- */
106
- interface IFluidTenantInfo {
107
- /**
108
- * The Fluid Tenant ID Live Share should use.
109
- */
110
- tenantId: string;
111
- /**
112
- * The Fluid service endpoint Live Share should use.
113
- */
114
- serviceEndpoint: string;
115
- }
38
+ * The call to `LiveShareHost.setContainerId()` successfully created the container mapping
39
+ * for the current Live Share session.
40
+ */
41
+ added = "Added",
116
42
  /**
117
- * @hidden
118
- * Returned from `LiveShareHost.getClientInfo()` to specify the client info for a
119
- * particular client in a Live Share session.
120
- */
121
- interface IClientInfo {
122
- /**
123
- * The host user's `userId` associated with a given `clientId`
124
- */
125
- userId: string;
126
- /**
127
- * User's meeting roles associated with a given `clientId`
128
- */
129
- roles: UserMeetingRole[];
130
- /**
131
- * The user's display name associated with a given `clientId`.
132
- * If this returns as `undefined`, the user may need to update their host client.
133
- */
134
- displayName?: string;
135
- }
136
- /**
137
- * Checks if the interactive capability is supported by the host
138
- * @returns boolean to represent whether the interactive capability is supported
139
- *
140
- * @throws Error if {@linkcode app.initialize} has not successfully completed
43
+ * A container mapping for the current Live Share session already exists.
44
+ * This indicates to Live Share that a new container does not need be created.
45
+ */
46
+ alreadyExists = "AlreadyExists",
47
+ /**
48
+ * The call to `LiveShareHost.setContainerId()` failed to create the container mapping.
49
+ * This happens when another client has already set the container ID for the session.
50
+ */
51
+ conflict = "Conflict",
52
+ /**
53
+ * A container mapping for the current Live Share session does not yet exist.
54
+ * This indicates to Live Share that a new container should be created.
55
+ */
56
+ notFound = "NotFound"
57
+ }
58
+ /**
59
+ * @hidden
60
+ * Returned from `LiveShareHost.getFluidContainerId()` and `LiveShareHost.setFluidContainerId`.
61
+ * This response specifies the container mapping information for the current Live Share session.
62
+ */
63
+ export interface IFluidContainerInfo {
64
+ /**
65
+ * State of the containerId mapping.
66
+ */
67
+ containerState: ContainerState;
68
+ /**
69
+ * ID of the container to join for the meeting. Undefined if the container hasn't been
70
+ * created yet.
71
+ */
72
+ containerId: string | undefined;
73
+ /**
74
+ * If true, the local client should create the container and then save the created containers
75
+ * ID to the mapping service.
76
+ */
77
+ shouldCreate: boolean;
78
+ /**
79
+ * If `containerId` is undefined and `shouldCreate` is false, the container isn't ready
80
+ * but another client is creating it. In this case, the local client should wait the specified
81
+ * amount of time before calling `LiveShareHost.getFluidContainerId()` again.
141
82
  */
142
- function isSupported(): boolean;
83
+ retryAfter: number;
143
84
  }
85
+ /**
86
+ * @hidden
87
+ * Returned from `LiveShareHost.getNtpTime()` to specify the global timestamp for the current
88
+ * Live Share session.
89
+ */
90
+ export interface INtpTimeInfo {
91
+ /**
92
+ * ISO 8601 formatted server time. For example: '2019-09-07T15:50-04:00'
93
+ */
94
+ ntpTime: string;
95
+ /**
96
+ * Server time expressed as the number of milliseconds since the ECMAScript epoch.
97
+ */
98
+ ntpTimeInUTC: number;
99
+ }
100
+ /**
101
+ * @hidden
102
+ * Returned from `LiveShareHost.getFluidTenantInfo()` to specify the Fluid service to use for the
103
+ * current Live Share session.
104
+ */
105
+ export interface IFluidTenantInfo {
106
+ /**
107
+ * The Fluid Tenant ID Live Share should use.
108
+ */
109
+ tenantId: string;
110
+ /**
111
+ * The Fluid service endpoint Live Share should use.
112
+ */
113
+ serviceEndpoint: string;
114
+ }
115
+ /**
116
+ * @hidden
117
+ * Returned from `LiveShareHost.getClientInfo()` to specify the client info for a
118
+ * particular client in a Live Share session.
119
+ */
120
+ export interface IClientInfo {
121
+ /**
122
+ * The host user's `userId` associated with a given `clientId`
123
+ */
124
+ userId: string;
125
+ /**
126
+ * User's meeting roles associated with a given `clientId`
127
+ */
128
+ roles: UserMeetingRole[];
129
+ /**
130
+ * The user's display name associated with a given `clientId`.
131
+ * If this returns as `undefined`, the user may need to update their host client.
132
+ */
133
+ displayName?: string;
134
+ }
135
+ /**
136
+ * Checks if the interactive capability is supported by the host
137
+ * @returns boolean to represent whether the interactive capability is supported
138
+ *
139
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
140
+ */
141
+ export declare function isSupported(): boolean;
144
142
  /**
145
143
  * Live Share host implementation for connecting to real-time collaborative sessions.
146
144
  * Designed for use with the `LiveShareClient` class in the `@microsoft/live-share` package.
@@ -155,7 +153,7 @@ export declare class LiveShareHost {
155
153
  * @hidden
156
154
  * Returns the Fluid Tenant connection info for user's current context.
157
155
  */
158
- getFluidTenantInfo(): Promise<liveShare.IFluidTenantInfo>;
156
+ getFluidTenantInfo(): Promise<IFluidTenantInfo>;
159
157
  /**
160
158
  * @hidden
161
159
  * Returns the fluid access token for mapped container Id.
@@ -168,7 +166,7 @@ export declare class LiveShareHost {
168
166
  * @hidden
169
167
  * Returns the ID of the fluid container associated with the user's current context.
170
168
  */
171
- getFluidContainerId(): Promise<liveShare.IFluidContainerInfo>;
169
+ getFluidContainerId(): Promise<IFluidContainerInfo>;
172
170
  /**
173
171
  * @hidden
174
172
  * Sets the ID of the fluid container associated with the current context.
@@ -179,12 +177,12 @@ export declare class LiveShareHost {
179
177
  * @param containerId ID of the fluid container the client created.
180
178
  * @returns A data structure with a `containerState` indicating the success or failure of the request.
181
179
  */
182
- setFluidContainerId(containerId: string): Promise<liveShare.IFluidContainerInfo>;
180
+ setFluidContainerId(containerId: string): Promise<IFluidContainerInfo>;
183
181
  /**
184
182
  * @hidden
185
183
  * Returns the shared clock server's current time.
186
184
  */
187
- getNtpTime(): Promise<liveShare.INtpTimeInfo>;
185
+ getNtpTime(): Promise<INtpTimeInfo>;
188
186
  /**
189
187
  * @hidden
190
188
  * Associates the fluid client ID with a set of user roles.
@@ -192,7 +190,7 @@ export declare class LiveShareHost {
192
190
  * @param clientId The ID for the current user's Fluid client. Changes on reconnects.
193
191
  * @returns The roles for the current user.
194
192
  */
195
- registerClientId(clientId: string): Promise<liveShare.UserMeetingRole[]>;
193
+ registerClientId(clientId: string): Promise<UserMeetingRole[]>;
196
194
  /**
197
195
  * @hidden
198
196
  * Returns the roles associated with a client ID.
@@ -200,7 +198,7 @@ export declare class LiveShareHost {
200
198
  * @param clientId The Client ID the message was received from.
201
199
  * @returns The roles for a given client. Returns `undefined` if the client ID hasn't been registered yet.
202
200
  */
203
- getClientRoles(clientId: string): Promise<liveShare.UserMeetingRole[] | undefined>;
201
+ getClientRoles(clientId: string): Promise<UserMeetingRole[] | undefined>;
204
202
  /**
205
203
  * @hidden
206
204
  * Returns the `IClientInfo` associated with a client ID.
@@ -208,7 +206,7 @@ export declare class LiveShareHost {
208
206
  * @param clientId The Client ID the message was received from.
209
207
  * @returns The info for a given client. Returns `undefined` if the client ID hasn't been registered yet.
210
208
  */
211
- getClientInfo(clientId: string): Promise<liveShare.IClientInfo | undefined>;
209
+ getClientInfo(clientId: string): Promise<IClientInfo | undefined>;
212
210
  /**
213
211
  * Factories a new `LiveShareHost` instance for use with the `LiveShareClient` class
214
212
  * in the `@microsoft/live-share` package.
@@ -3,84 +3,82 @@ import { SdkError } from './interfaces';
3
3
  * @deprecated
4
4
  * As of 2.1.0, please use geoLocation namespace.
5
5
  *
6
- * Namespace to interact with the location module-specific part of the SDK.
6
+ * Module to interact with the location module-specific part of the SDK.
7
7
  */
8
- export declare namespace location {
9
- /** Get location callback function type */
10
- type getLocationCallbackFunctionType = (error: SdkError, location: Location) => void;
11
- /** Show location callback function type */
12
- type showLocationCallbackFunctionType = (error: SdkError, status: boolean) => void;
8
+ /** Get location callback function type */
9
+ export type getLocationCallbackFunctionType = (error: SdkError, location: Location) => void;
10
+ /** Show location callback function type */
11
+ export type showLocationCallbackFunctionType = (error: SdkError, status: boolean) => void;
12
+ /**
13
+ * @deprecated
14
+ * Data Structure to set the location properties in getLocation call.
15
+ */
16
+ export interface LocationProps {
13
17
  /**
14
- * @deprecated
15
- * Data Structure to set the location properties in getLocation call.
16
- */
17
- interface LocationProps {
18
- /**
19
- whether user can alter location or not
20
- if false, user will be shown current location
21
- and wouldn't be allowed to alter it
22
- */
23
- allowChooseLocation: boolean;
24
- /**
25
- whether selected location should be shown to user on map or not.
26
- If allowChooseLocation is true, this parameter will be ignored by platform.
27
- If allowChooseLocation is false, and this parameter is not provided, default
28
- value will be false.
29
- */
30
- showMap?: boolean;
31
- }
18
+ whether user can alter location or not
19
+ if false, user will be shown current location
20
+ and wouldn't be allowed to alter it
21
+ */
22
+ allowChooseLocation: boolean;
23
+ /**
24
+ whether selected location should be shown to user on map or not.
25
+ If allowChooseLocation is true, this parameter will be ignored by platform.
26
+ If allowChooseLocation is false, and this parameter is not provided, default
27
+ value will be false.
28
+ */
29
+ showMap?: boolean;
30
+ }
31
+ /**
32
+ * @deprecated
33
+ * Data struture to represent the location information
34
+ */
35
+ export interface Location {
32
36
  /**
33
- * @deprecated
34
- * Data struture to represent the location information
35
- */
36
- interface Location {
37
- /**
38
- Latitude of the location
39
- */
40
- latitude: number;
41
- /**
42
- Longitude of the location
43
- */
44
- longitude: number;
45
- /**
46
- Accuracy of the coordinates captured
47
- */
48
- accuracy?: number;
49
- /**
50
- Time stamp when the location was captured
51
- */
52
- timestamp?: number;
53
- }
37
+ Latitude of the location
38
+ */
39
+ latitude: number;
54
40
  /**
55
- * @deprecated
56
- * As of 2.1.0, please use one of the following functions:
57
- * - {@link geoLocation.getCurrentLocation geoLocation.getCurrentLocation(): Promise\<Location\>} to get the current location.
58
- * - {@link geoLocation.map.chooseLocation geoLocation.map.chooseLocation(): Promise\<Location\>} to choose location on map.
59
- *
60
- * Fetches user location
61
- * @param props {@link LocationProps} - Specifying how the location request is handled
62
- * @param callback - Callback to invoke when current user location is fetched
63
- */
64
- function getLocation(props: LocationProps, callback: getLocationCallbackFunctionType): void;
41
+ Longitude of the location
42
+ */
43
+ longitude: number;
65
44
  /**
66
- * @deprecated
67
- * As of 2.1.0, please use {@link geoLocation.map.showLocation geoLocation.map.showLocation(location: Location): Promise\<void\>} instead.
68
- *
69
- * Shows the location on map corresponding to the given coordinates
70
- *
71
- * @param location - Location to be shown on the map
72
- * @param callback - Callback to invoke when the location is opened on map
73
- */
74
- function showLocation(location: Location, callback: showLocationCallbackFunctionType): void;
45
+ Accuracy of the coordinates captured
46
+ */
47
+ accuracy?: number;
75
48
  /**
76
- * @deprecated
77
- * As of 2.1.0, please use geoLocation namespace, and use {@link geoLocation.isSupported geoLocation.isSupported: boolean} to check if geoLocation is supported.
78
- *
79
- * Checks if Location capability is supported by the host
80
- *
81
- * @throws Error if {@linkcode app.initialize} has not successfully completed
82
- *
83
- * @returns boolean to represent whether Location is supported
84
- */
85
- function isSupported(): boolean;
49
+ Time stamp when the location was captured
50
+ */
51
+ timestamp?: number;
86
52
  }
53
+ /**
54
+ * @deprecated
55
+ * As of 2.1.0, please use one of the following functions:
56
+ * - {@link geoLocation.getCurrentLocation geoLocation.getCurrentLocation(): Promise\<Location\>} to get the current location.
57
+ * - {@link geoLocation.map.chooseLocation geoLocation.map.chooseLocation(): Promise\<Location\>} to choose location on map.
58
+ *
59
+ * Fetches user location
60
+ * @param props {@link LocationProps} - Specifying how the location request is handled
61
+ * @param callback - Callback to invoke when current user location is fetched
62
+ */
63
+ export declare function getLocation(props: LocationProps, callback: getLocationCallbackFunctionType): void;
64
+ /**
65
+ * @deprecated
66
+ * As of 2.1.0, please use {@link geoLocation.map.showLocation geoLocation.map.showLocation(location: Location): Promise\<void\>} instead.
67
+ *
68
+ * Shows the location on map corresponding to the given coordinates
69
+ *
70
+ * @param location - Location to be shown on the map
71
+ * @param callback - Callback to invoke when the location is opened on map
72
+ */
73
+ export declare function showLocation(location: Location, callback: showLocationCallbackFunctionType): void;
74
+ /**
75
+ * @deprecated
76
+ * As of 2.1.0, please use geoLocation namespace, and use {@link geoLocation.isSupported geoLocation.isSupported: boolean} to check if geoLocation is supported.
77
+ *
78
+ * Checks if Location capability is supported by the host
79
+ *
80
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
81
+ *
82
+ * @returns boolean to represent whether Location is supported
83
+ */
84
+ export declare function isSupported(): boolean;