You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecate containerPackageInfo parameter in createOdspCreateContainerRequest (#23919)
## Description
As of PR #22849
(released in 2.23), preferred pattern to add "containerPackageName"
parameter to request is via URL resolver instead of
`createOdspCreateContainerRequest`'s last parameter.
Tag calling `createOdspCreateContainerRequest` with that parameter as
deprecated now, and then in the 2.40 release remove that form
altogether.
## Future Breaking Changes
See [issue
23882](#23882) for
more details.
## Reviewer Guidance
Please let me know if there's anything else I should be aware of or can
do better, thanks!
Fixes:
[AB#31450](https://dev.azure.com/fluidframework/235294da-091d-4c29-84fc-cdfc3d90890b/_workitems/edit/31450)
---------
Co-authored-by: Jatin Garg <48029724+jatgarg@users.noreply.github.com>
The containerPackageInfo parameter in createOdspCreateContainerRequest() is now deprecated
7
+
8
+
The `containerPackageInfo` parameter in `createOdspCreateContainerRequest()` is now deprecated and will be removed in version 2.40.0.
9
+
10
+
The name of the containerPackage can no longer be sent through the request. Instead, it can be added in the constructor of `OdspDriverUrlResolverForShareLink`.
11
+
12
+
See [issue #23882](https://github.com/microsoft/FluidFramework/issues/23882) for more details.
* @param fileName - name of the new file to be created
21
21
* @param createShareLinkType - type of sharing link you would like to create for this file. ShareLinkTypes
22
22
* will be deprecated soon, so for any new implementation please provide createShareLinkType of type ShareLink
23
-
* @param containerPackageInfo - container package information which will be used to extract the container package name.
23
+
* @legacy
24
+
* @alpha
25
+
*/
26
+
exportfunctioncreateOdspCreateContainerRequest(
27
+
siteUrl: string,
28
+
driveId: string,
29
+
filePath: string,
30
+
fileName: string,
31
+
createShareLinkType?: ISharingLinkKind,
32
+
): IRequest;
33
+
34
+
/**
35
+
* Create the request object with url and headers for creating a new file on OneDrive Sharepoint
36
+
* @param siteUrl - Base url for OneDrive
37
+
* @param driveId - drive identifier
38
+
* @param filePath - path where file needs to be created
39
+
* @param fileName - name of the new file to be created
40
+
* @param createShareLinkType - type of sharing link you would like to create for this file. ShareLinkTypes
41
+
* will be deprecated soon, so for any new implementation please provide createShareLinkType of type ShareLink
42
+
* @param containerPackageInfo - **Deprecated Parameter** - container package information which will be used to extract the container package name.
43
+
* If not given that means that the container package does not have a name.
44
+
* @legacy
45
+
* @alpha
46
+
* @deprecated To be removed in 2.40
47
+
* Add containerPackageInfo to the OdspDriverUrlResolverForShareLink constructor instead; see https://github.com/microsoft/FluidFramework/issues/23882 for more details.
48
+
* Deprecating overloaded function to remove containerPackageInfo
0 commit comments