@fluidframework/odsp-driver-definitions 2.0.0-dev-rc.1.0.0.228517 → 2.0.0-dev-rc.1.0.0.232845
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/api-report/odsp-driver-definitions.api.md +3 -24
- package/dist/errors.d.ts +1 -55
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +1 -56
- package/dist/errors.js.map +1 -1
- package/dist/factory.d.ts +7 -0
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/odsp-driver-definitions-alpha.d.ts +19 -74
- package/dist/odsp-driver-definitions-beta.d.ts +4 -5
- package/dist/odsp-driver-definitions-public.d.ts +0 -4
- package/dist/odsp-driver-definitions-untrimmed.d.ts +19 -74
- package/dist/resolvedUrl.d.ts +1 -16
- package/dist/resolvedUrl.d.ts.map +1 -1
- package/dist/resolvedUrl.js +1 -10
- package/dist/resolvedUrl.js.map +1 -1
- package/dist/sessionProvider.d.ts +6 -0
- package/dist/sessionProvider.d.ts.map +1 -1
- package/dist/sessionProvider.js.map +1 -1
- package/dist/tokenFetch.d.ts +4 -1
- package/dist/tokenFetch.d.ts.map +1 -1
- package/dist/tokenFetch.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/errors.d.mts +1 -55
- package/lib/errors.d.mts.map +1 -1
- package/lib/errors.mjs +0 -55
- package/lib/errors.mjs.map +1 -1
- package/lib/factory.d.mts +7 -0
- package/lib/factory.d.mts.map +1 -1
- package/lib/factory.mjs.map +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/index.d.mts.map +1 -1
- package/lib/index.mjs +2 -2
- package/lib/index.mjs.map +1 -1
- package/lib/odsp-driver-definitions-alpha.d.mts +19 -74
- package/lib/odsp-driver-definitions-beta.d.mts +4 -5
- package/lib/odsp-driver-definitions-public.d.mts +0 -4
- package/lib/odsp-driver-definitions-untrimmed.d.mts +19 -74
- package/lib/resolvedUrl.d.mts +1 -16
- package/lib/resolvedUrl.d.mts.map +1 -1
- package/lib/resolvedUrl.mjs +0 -9
- package/lib/resolvedUrl.mjs.map +1 -1
- package/lib/sessionProvider.d.mts +6 -0
- package/lib/sessionProvider.d.mts.map +1 -1
- package/lib/sessionProvider.mjs.map +1 -1
- package/lib/tokenFetch.d.mts +4 -1
- package/lib/tokenFetch.d.mts.map +1 -1
- package/lib/tokenFetch.mjs.map +1 -1
- package/package.json +15 -6
- package/src/errors.ts +1 -64
- package/src/factory.ts +5 -2
- package/src/index.ts +1 -8
- package/src/resolvedUrl.ts +1 -18
- package/src/sessionProvider.ts +7 -0
- package/src/tokenFetch.ts +4 -1
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/src/index.ts
CHANGED
|
@@ -3,13 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export {
|
|
7
|
-
IOdspError,
|
|
8
|
-
IOdspErrorAugmentations,
|
|
9
|
-
OdspError,
|
|
10
|
-
OdspErrorType,
|
|
11
|
-
OdspErrorTypes,
|
|
12
|
-
} from "./errors";
|
|
6
|
+
export { IOdspError, IOdspErrorAugmentations, OdspError, OdspErrorTypes } from "./errors";
|
|
13
7
|
export {
|
|
14
8
|
HostStoragePolicy,
|
|
15
9
|
ICollabSessionOptions,
|
|
@@ -31,7 +25,6 @@ export {
|
|
|
31
25
|
ISharingLink,
|
|
32
26
|
ISharingLinkKind,
|
|
33
27
|
ShareLinkInfoType,
|
|
34
|
-
ShareLinkTypes,
|
|
35
28
|
SharingLinkRole,
|
|
36
29
|
SharingLinkScope,
|
|
37
30
|
} from "./resolvedUrl";
|
package/src/resolvedUrl.ts
CHANGED
|
@@ -14,15 +14,6 @@ export interface IOdspUrlParts {
|
|
|
14
14
|
itemId: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use ISharingLinkKind type instead.
|
|
19
|
-
* Type of shareLink requested/created when creating the file for the first time.
|
|
20
|
-
* @alpha
|
|
21
|
-
*/
|
|
22
|
-
export enum ShareLinkTypes {
|
|
23
|
-
csl = "csl",
|
|
24
|
-
}
|
|
25
|
-
|
|
26
17
|
/**
|
|
27
18
|
* Sharing scope of the share links created for a file.
|
|
28
19
|
* @alpha
|
|
@@ -80,18 +71,10 @@ export interface ShareLinkInfoType {
|
|
|
80
71
|
* from the /snapshot api response.
|
|
81
72
|
*/
|
|
82
73
|
createLink?: {
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated
|
|
85
|
-
* Type of shareLink requested/created when creating the file for the first time. The 'type' property here
|
|
86
|
-
* represents the type of sharing link requested.
|
|
87
|
-
* Will be deprecated soon. Type of sharing link will be present in the link:ISharingLink property below.
|
|
88
|
-
*/
|
|
89
|
-
type?: ShareLinkTypes | ISharingLinkKind;
|
|
90
|
-
|
|
91
74
|
/**
|
|
92
75
|
* Share link created when the file is created for the first time with /snapshot api call.
|
|
93
76
|
*/
|
|
94
|
-
link?:
|
|
77
|
+
link?: ISharingLink;
|
|
95
78
|
|
|
96
79
|
/**
|
|
97
80
|
* Error message if creation of sharing link fails with /snapshot api call
|
package/src/sessionProvider.ts
CHANGED
|
@@ -38,6 +38,13 @@ export interface ISocketStorageDiscovery {
|
|
|
38
38
|
* This is the time within which client has to refresh the session on (ODSP) relay service.
|
|
39
39
|
*/
|
|
40
40
|
refreshSessionDurationSeconds?: number;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Represent the sensitivity labels info for the file. Keeping it optional for back-compat. The
|
|
44
|
+
* response will contain empty labels when the file has no labels, so this field will be there
|
|
45
|
+
* even if file has no labels when the service will implement this contract.
|
|
46
|
+
*/
|
|
47
|
+
sensitivityLabelsInfo?: string;
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
/**
|
package/src/tokenFetch.ts
CHANGED
|
@@ -11,7 +11,10 @@ export interface TokenResponse {
|
|
|
11
11
|
/** Token value */
|
|
12
12
|
token: string;
|
|
13
13
|
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not the token was obtained from local cache.
|
|
16
|
+
* @remarks `undefined` indicates that it could not be determined whether or not the token was obtained this way.
|
|
17
|
+
*/
|
|
15
18
|
fromCache?: boolean;
|
|
16
19
|
}
|
|
17
20
|
|
|
File without changes
|