@fluidframework/odsp-driver-definitions 2.0.0-internal.6.4.0 → 2.0.0-internal.7.1.0
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/CHANGELOG.md +66 -0
- package/api-extractor.json +9 -1
- package/api-report/odsp-driver-definitions.api.md +320 -0
- package/dist/errors.d.ts +13 -10
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -5
- package/dist/errors.js.map +1 -1
- package/dist/odsp-driver-definitions-alpha.d.ts +592 -0
- package/dist/odsp-driver-definitions-beta.d.ts +592 -0
- package/dist/odsp-driver-definitions-public.d.ts +592 -0
- package/dist/odsp-driver-definitions.d.ts +592 -0
- package/dist/odspCache.d.ts +1 -1
- package/dist/odspCache.d.ts.map +1 -1
- package/dist/resolvedUrl.js +3 -3
- package/dist/resolvedUrl.js.map +1 -1
- package/dist/tokenFetch.d.ts +3 -3
- package/dist/tokenFetch.d.ts.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/errors.d.ts +13 -10
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +8 -4
- package/lib/errors.js.map +1 -1
- package/lib/odspCache.d.ts +1 -1
- package/lib/odspCache.d.ts.map +1 -1
- package/lib/tokenFetch.d.ts +3 -3
- package/lib/tokenFetch.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/errors.ts +11 -6
package/dist/tokenFetch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenFetch.d.ts","sourceRoot":"","sources":["../src/tokenFetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IAEd,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;IACvE,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAEhB,wGAAwG;IACxG,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,sGAAsG;IACtG,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,
|
|
1
|
+
{"version":3,"file":"tokenFetch.d.ts","sourceRoot":"","sources":["../src/tokenFetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IAEd,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;IACvE,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAEhB,wGAAwG;IACxG,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,sGAAsG;IACtG,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,kBACd,MAAM,GAAG,aAAa,GAAG,IAAI,GAAG,SAAS,KACtD,MAAM,GAAG,IAKW,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,kBACb,MAAM,GAAG,aAAa,GAAG,IAAI,KAC1C,OAAO,GAAG,SAGc,CAAC;AAE5B;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC;AAErD,MAAM,MAAM,+BAA+B,GAAG,CAC7C,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,EACZ,+BAA+B,CAAC,EAAE,OAAO,KACrC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC"}
|
package/dist/tsdoc-metadata.json
CHANGED
package/lib/errors.d.ts
CHANGED
|
@@ -8,10 +8,6 @@ import { DriverError, IDriverErrorBase } from "@fluidframework/driver-definition
|
|
|
8
8
|
* Different error types that may be thrown by the ODSP driver.
|
|
9
9
|
*/
|
|
10
10
|
export declare const OdspErrorTypes: {
|
|
11
|
-
/**
|
|
12
|
-
* Storage is out of space
|
|
13
|
-
*/
|
|
14
|
-
readonly outOfStorageError: "outOfStorageError";
|
|
15
11
|
/**
|
|
16
12
|
* Invalid file name (at creation of the file)
|
|
17
13
|
*/
|
|
@@ -45,6 +41,10 @@ export declare const OdspErrorTypes: {
|
|
|
45
41
|
* So to preserve integrity of the data, the data becomes readonly.
|
|
46
42
|
*/
|
|
47
43
|
readonly serviceReadOnly: "serviceReadOnly";
|
|
44
|
+
/**
|
|
45
|
+
* Due to organizational policies, you can't access server resources from the current network location.
|
|
46
|
+
*/
|
|
47
|
+
readonly blockedIPAddress: "blockedIPAddress";
|
|
48
48
|
readonly genericNetworkError: "genericNetworkError";
|
|
49
49
|
readonly authorizationError: "authorizationError";
|
|
50
50
|
readonly fileNotFoundOrAccessDeniedError: "fileNotFoundOrAccessDeniedError";
|
|
@@ -56,16 +56,15 @@ export declare const OdspErrorTypes: {
|
|
|
56
56
|
readonly incorrectServerResponse: "incorrectServerResponse";
|
|
57
57
|
readonly fileOverwrittenInStorage: "fileOverwrittenInStorage";
|
|
58
58
|
readonly deltaStreamConnectionForbidden: "deltaStreamConnectionForbidden";
|
|
59
|
-
readonly locationRedirection: "locationRedirection";
|
|
60
|
-
* SPO admin toggle: fluid service is not enabled.
|
|
61
|
-
*/
|
|
59
|
+
readonly locationRedirection: "locationRedirection";
|
|
62
60
|
readonly fluidInvalidSchema: "fluidInvalidSchema";
|
|
63
61
|
readonly fileIsLocked: "fileIsLocked";
|
|
62
|
+
readonly outOfStorageError: "outOfStorageError";
|
|
64
63
|
readonly genericError: "genericError";
|
|
65
64
|
readonly throttlingError: "throttlingError";
|
|
66
65
|
readonly usageError: "usageError";
|
|
67
66
|
};
|
|
68
|
-
export
|
|
67
|
+
export type OdspErrorTypes = (typeof OdspErrorTypes)[keyof typeof OdspErrorTypes];
|
|
69
68
|
/**
|
|
70
69
|
* ODSP Error types.
|
|
71
70
|
* Different error types that may be thrown by the ODSP driver.
|
|
@@ -113,7 +112,11 @@ export declare enum OdspErrorType {
|
|
|
113
112
|
* SPO can occasionally return 403 for r/w operations on document when there is a fail over to another data center.
|
|
114
113
|
* So to preserve integrity of the data, the data becomes readonly.
|
|
115
114
|
*/
|
|
116
|
-
serviceReadOnly = "serviceReadOnly"
|
|
115
|
+
serviceReadOnly = "serviceReadOnly",
|
|
116
|
+
/**
|
|
117
|
+
* Due to organizational policies, you can't access server resources from the current network location.
|
|
118
|
+
*/
|
|
119
|
+
blockedIPAddress = "blockedIPAddress"
|
|
117
120
|
}
|
|
118
121
|
export interface IOdspErrorAugmentations {
|
|
119
122
|
/**
|
|
@@ -138,5 +141,5 @@ export interface IOdspErrorAugmentations {
|
|
|
138
141
|
export interface IOdspError extends Omit<IDriverErrorBase, "errorType">, IOdspErrorAugmentations {
|
|
139
142
|
readonly errorType: OdspErrorType;
|
|
140
143
|
}
|
|
141
|
-
export
|
|
144
|
+
export type OdspError = IOdspError | (DriverError & IOdspErrorAugmentations);
|
|
142
145
|
//# sourceMappingURL=errors.d.ts.map
|
package/lib/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACN,WAAW,EACX,gBAAgB,EAEhB,MAAM,oCAAoC,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc;IAI1B;;OAEG;;IAGH
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACN,WAAW,EACX,gBAAgB,EAEhB,MAAM,oCAAoC,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc;IAI1B;;OAEG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;OAEG;;IAGH;;;;;;OAMG;;IAGH;;;OAGG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;CAEM,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF;;;;;GAKG;AACH,oBAAY,aAAa;IACxB;;OAEG;IACH,iBAAiB,sBAAsB;IAEvC;;OAEG;IACH,oBAAoB,yBAAyB;IAE7C;;;;OAIG;IACH,cAAc,mBAAmB;IAEjC;;;;OAIG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,eAAe,oBAAoB;IAEnC;;OAEG;IACH,eAAe,oBAAoB;IAEnC;;;;;;OAMG;IACH,aAAa,kBAAkB;IAE/B;;;OAGG;IACH,eAAe,oBAAoB;IAEnC;;OAEG;IACH,gBAAgB,qBAAqB;CACrC;AAED,MAAM,WAAW,uBAAuB;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,EAAE,uBAAuB;IAC/F,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;CAClC;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,CAAC,WAAW,GAAG,uBAAuB,CAAC,CAAC"}
|
package/lib/errors.js
CHANGED
|
@@ -10,10 +10,6 @@ import { DriverErrorTypes, } from "@fluidframework/driver-definitions";
|
|
|
10
10
|
export const OdspErrorTypes = {
|
|
11
11
|
// Inherit base driver error types
|
|
12
12
|
...DriverErrorTypes,
|
|
13
|
-
/**
|
|
14
|
-
* Storage is out of space
|
|
15
|
-
*/
|
|
16
|
-
outOfStorageError: "outOfStorageError",
|
|
17
13
|
/**
|
|
18
14
|
* Invalid file name (at creation of the file)
|
|
19
15
|
*/
|
|
@@ -47,6 +43,10 @@ export const OdspErrorTypes = {
|
|
|
47
43
|
* So to preserve integrity of the data, the data becomes readonly.
|
|
48
44
|
*/
|
|
49
45
|
serviceReadOnly: "serviceReadOnly",
|
|
46
|
+
/**
|
|
47
|
+
* Due to organizational policies, you can't access server resources from the current network location.
|
|
48
|
+
*/
|
|
49
|
+
blockedIPAddress: "blockedIPAddress",
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
52
|
* ODSP Error types.
|
|
@@ -97,5 +97,9 @@ export var OdspErrorType;
|
|
|
97
97
|
* So to preserve integrity of the data, the data becomes readonly.
|
|
98
98
|
*/
|
|
99
99
|
OdspErrorType["serviceReadOnly"] = "serviceReadOnly";
|
|
100
|
+
/**
|
|
101
|
+
* Due to organizational policies, you can't access server resources from the current network location.
|
|
102
|
+
*/
|
|
103
|
+
OdspErrorType["blockedIPAddress"] = "blockedIPAddress";
|
|
100
104
|
})(OdspErrorType || (OdspErrorType = {}));
|
|
101
105
|
//# sourceMappingURL=errors.js.map
|
package/lib/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAGN,gBAAgB,GAChB,MAAM,oCAAoC,CAAC;AAE5C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,kCAAkC;IAClC,GAAG,gBAAgB;IAEnB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAGN,gBAAgB,GAChB,MAAM,oCAAoC,CAAC;AAE5C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,kCAAkC;IAClC,GAAG,gBAAgB;IAEnB;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;;;OAIG;IACH,cAAc,EAAE,gBAAgB;IAEhC;;;;OAIG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;;;;;OAMG;IACH,aAAa,EAAE,eAAe;IAE9B;;;OAGG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;CAC3B,CAAC;AAGX;;;;;GAKG;AACH,MAAM,CAAN,IAAY,aAsDX;AAtDD,WAAY,aAAa;IACxB;;OAEG;IACH,wDAAuC,CAAA;IAEvC;;OAEG;IACH,8DAA6C,CAAA;IAE7C;;;;OAIG;IACH,kDAAiC,CAAA;IAEjC;;;;OAIG;IACH,8CAA6B,CAAA;IAE7B;;OAEG;IACH,oDAAmC,CAAA;IAEnC;;OAEG;IACH,oDAAmC,CAAA;IAEnC;;;;;;OAMG;IACH,gDAA+B,CAAA;IAE/B;;;OAGG;IACH,oDAAmC,CAAA;IAEnC;;OAEG;IACH,sDAAqC,CAAA;AACtC,CAAC,EAtDW,aAAa,KAAb,aAAa,QAsDxB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport {\n\tDriverError,\n\tIDriverErrorBase,\n\tDriverErrorTypes,\n} from \"@fluidframework/driver-definitions\";\n\n/**\n * ODSP Error types.\n * Different error types that may be thrown by the ODSP driver.\n */\nexport const OdspErrorTypes = {\n\t// Inherit base driver error types\n\t...DriverErrorTypes,\n\n\t/**\n\t * Invalid file name (at creation of the file)\n\t */\n\tinvalidFileNameError: \"invalidFileNameError\",\n\n\t/**\n\t * Snapshot is too big. Host application specified limit for snapshot size, and snapshot was bigger\n\t * that that limit, thus request failed. Hosting application is expected to have fall-back behavior for\n\t * such case.\n\t */\n\tsnapshotTooBig: \"snapshotTooBig\",\n\n\t/**\n\t * Maximum time limit to fetch reached. Host application specified limit for fetching of snapshot, when\n\t * that limit is reached, request fails. Hosting application is expected to have fall-back behavior for\n\t * such case.\n\t */\n\tfetchTimeout: \"fetchTimeout\",\n\n\t/**\n\t * SPO admin toggle: fluid service is not enabled.\n\t */\n\tfluidNotEnabled: \"fluidNotEnabled\",\n\n\t/**\n\t * This error will be raised when client is too behind with no way to catch up.\n\t * This condition will happen when user was offline for too long, resulting in old ops / blobs being deleted\n\t * by storage, and thus removing an ability for client to catch up.\n\t * This condition will result in any local changes being lost (i.e. only way to save state is by user\n\t * copying it over manually)\n\t */\n\tcannotCatchUp: \"cannotCatchUp\",\n\n\t/**\n\t * SPO can occasionally return 403 for r/w operations on document when there is a fail over to another data center.\n\t * So to preserve integrity of the data, the data becomes readonly.\n\t */\n\tserviceReadOnly: \"serviceReadOnly\",\n\n\t/**\n\t * Due to organizational policies, you can't access server resources from the current network location.\n\t */\n\tblockedIPAddress: \"blockedIPAddress\",\n} as const;\nexport type OdspErrorTypes = (typeof OdspErrorTypes)[keyof typeof OdspErrorTypes];\n\n/**\n * ODSP Error types.\n * Different error types that may be thrown by the ODSP driver.\n *\n * @deprecated Use {@link (OdspErrorTypes:variable)} instead.\n */\nexport enum OdspErrorType {\n\t/**\n\t * Storage is out of space\n\t */\n\toutOfStorageError = \"outOfStorageError\",\n\n\t/**\n\t * Invalid file name (at creation of the file)\n\t */\n\tinvalidFileNameError = \"invalidFileNameError\",\n\n\t/**\n\t * Snapshot is too big. Host application specified limit for snapshot size, and snapshot was bigger\n\t * that that limit, thus request failed. Hosting application is expected to have fall-back behavior for\n\t * such case.\n\t */\n\tsnapshotTooBig = \"snapshotTooBig\",\n\n\t/**\n\t * Maximum time limit to fetch reached. Host application specified limit for fetching of snapshot, when\n\t * that limit is reached, request fails. Hosting application is expected to have fall-back behavior for\n\t * such case.\n\t */\n\tfetchTimeout = \"fetchTimeout\",\n\n\t/**\n\t * SPO admin toggle: fluid service is not enabled.\n\t */\n\tfluidNotEnabled = \"fluidNotEnabled\",\n\n\t/**\n\t * {@inheritDoc @fluidframework/driver-definitions#FluidErrorType.fetchTokenError}\n\t */\n\tfetchTokenError = \"fetchTokenError\",\n\n\t/**\n\t * This error will be raised when client is too behind with no way to catch up.\n\t * This condition will happen when user was offline for too long, resulting in old ops / blobs being deleted\n\t * by storage, and thus removing an ability for client to catch up.\n\t * This condition will result in any local changes being lost (i.e. only way to save state is by user\n\t * copying it over manually)\n\t */\n\tcannotCatchUp = \"cannotCatchUp\",\n\n\t/**\n\t * SPO can occasionally return 403 for r/w operations on document when there is a fail over to another data center.\n\t * So to preserve integrity of the data, the data becomes readonly.\n\t */\n\tserviceReadOnly = \"serviceReadOnly\",\n\n\t/**\n\t * Due to organizational policies, you can't access server resources from the current network location.\n\t */\n\tblockedIPAddress = \"blockedIPAddress\",\n}\n\nexport interface IOdspErrorAugmentations {\n\t/**\n\t * Server epoch indicates when the file was last modified.\n\t * Used to detect modifications outside Fluid's services\n\t */\n\tserverEpoch?: string;\n\n\t/**\n\t * It is the redirection url at which the network call should have been made. It is due to change\n\t * in site domain of the file on server.\n\t */\n\tredirectLocation?: string;\n\n\t/**\n\t * It is array of error codes included in error response from server.\n\t */\n\tfacetCodes?: string[];\n}\n\n/**\n * Base interface for all errors and warnings\n * Superset of IDriverErrorBase, but with Odsp-specific errorType and properties\n */\nexport interface IOdspError extends Omit<IDriverErrorBase, \"errorType\">, IOdspErrorAugmentations {\n\treadonly errorType: OdspErrorType;\n}\n\nexport type OdspError = IOdspError | (DriverError & IOdspErrorAugmentations);\n"]}
|
package/lib/odspCache.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { IResolvedUrl } from "@fluidframework/driver-definitions";
|
|
|
7
7
|
* Describes what kind of content is stored in cache entry.
|
|
8
8
|
*/
|
|
9
9
|
export declare const snapshotKey = "snapshot";
|
|
10
|
-
export
|
|
10
|
+
export type CacheContentType = "snapshot" | "ops";
|
|
11
11
|
export interface IFileEntry {
|
|
12
12
|
/**
|
|
13
13
|
* Unique and stable ID of the document.
|
package/lib/odspCache.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspCache.d.ts","sourceRoot":"","sources":["../src/odspCache.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,
|
|
1
|
+
{"version":3,"file":"odspCache.d.ts","sourceRoot":"","sources":["../src/odspCache.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,KAAK,CAAC;AAOlD,MAAM,WAAW,UAAU;IAC1B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,EAAE,YAAY,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACtB;;;;OAIG;IACH,IAAI,EAAE,gBAAgB,CAAC;IAEvB;;;;;;;OAOG;IACH,GAAG,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,MAAM;IAC1C;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC/B;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAEtC;;;;;OAKG;IACH,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;OAGG;IACH,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAE9D"}
|
package/lib/tokenFetch.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface OdspResourceTokenFetchOptions extends TokenFetchOptions {
|
|
|
50
50
|
* whether token came from cache. Legacy implementation may return a string for token value;
|
|
51
51
|
* in this case it should be assumes that fromCache signal is undefined. Null is returned in case of failure.
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export type TokenFetcher<T> = (options: T) => Promise<string | TokenResponse | null>;
|
|
54
54
|
/**
|
|
55
55
|
* Helper method which transforms return value for TokenFetcher method to token string
|
|
56
56
|
* @param tokenResponse - return value for TokenFetcher method
|
|
@@ -69,6 +69,6 @@ export declare const isTokenFromCache: (tokenResponse: string | TokenResponse |
|
|
|
69
69
|
* `Consumer` represents user authenticated with Microsoft Account (MSA).
|
|
70
70
|
* `Enterprise` represents user authenticated with M365 tenant account.
|
|
71
71
|
*/
|
|
72
|
-
export
|
|
73
|
-
export
|
|
72
|
+
export type IdentityType = "Consumer" | "Enterprise";
|
|
73
|
+
export type InstrumentedStorageTokenFetcher = (options: TokenFetchOptions, name: string, alwaysRecordTokenFetchTelemetry?: boolean) => Promise<string | null>;
|
|
74
74
|
//# sourceMappingURL=tokenFetch.d.ts.map
|
package/lib/tokenFetch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenFetch.d.ts","sourceRoot":"","sources":["../src/tokenFetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IAEd,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;IACvE,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAEhB,wGAAwG;IACxG,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,sGAAsG;IACtG,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,
|
|
1
|
+
{"version":3,"file":"tokenFetch.d.ts","sourceRoot":"","sources":["../src/tokenFetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IAEd,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;IACvE,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAEhB,wGAAwG;IACxG,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,sGAAsG;IACtG,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,kBACd,MAAM,GAAG,aAAa,GAAG,IAAI,GAAG,SAAS,KACtD,MAAM,GAAG,IAKW,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,kBACb,MAAM,GAAG,aAAa,GAAG,IAAI,KAC1C,OAAO,GAAG,SAGc,CAAC;AAE5B;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC;AAErD,MAAM,MAAM,+BAA+B,GAAG,CAC7C,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,EACZ,+BAA+B,CAAC,EAAE,OAAO,KACrC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/odsp-driver-definitions",
|
|
3
|
-
"version": "2.0.0-internal.
|
|
3
|
+
"version": "2.0.0-internal.7.1.0",
|
|
4
4
|
"description": "Socket storage implementation for SPO and ODC",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
"module": "lib/index.js",
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@fluidframework/driver-definitions": ">=2.0.0-internal.
|
|
18
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.7.1.0 <2.0.0-internal.7.2.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@fluid-tools/build-cli": "^0.
|
|
22
|
-
"@fluidframework/build-common": "^2.0.
|
|
23
|
-
"@fluidframework/build-tools": "^0.
|
|
24
|
-
"@fluidframework/eslint-config-fluid": "^
|
|
25
|
-
"@fluidframework/odsp-driver-definitions-previous": "npm:@fluidframework/odsp-driver-definitions@2.0.0-internal.
|
|
26
|
-
"@fluidframework/protocol-definitions": "^
|
|
27
|
-
"@microsoft/api-extractor": "^7.
|
|
21
|
+
"@fluid-tools/build-cli": "^0.25.0",
|
|
22
|
+
"@fluidframework/build-common": "^2.0.1",
|
|
23
|
+
"@fluidframework/build-tools": "^0.25.0",
|
|
24
|
+
"@fluidframework/eslint-config-fluid": "^3.0.0",
|
|
25
|
+
"@fluidframework/odsp-driver-definitions-previous": "npm:@fluidframework/odsp-driver-definitions@2.0.0-internal.7.0.0",
|
|
26
|
+
"@fluidframework/protocol-definitions": "^3.0.0",
|
|
27
|
+
"@microsoft/api-extractor": "^7.37.0",
|
|
28
28
|
"copyfiles": "^2.4.1",
|
|
29
29
|
"cross-env": "^7.0.3",
|
|
30
|
-
"eslint": "~8.
|
|
31
|
-
"prettier": "~
|
|
30
|
+
"eslint": "~8.50.0",
|
|
31
|
+
"prettier": "~3.0.3",
|
|
32
32
|
"rimraf": "^4.4.0",
|
|
33
|
-
"typescript": "~
|
|
33
|
+
"typescript": "~5.1.6"
|
|
34
34
|
},
|
|
35
35
|
"typeValidation": {
|
|
36
36
|
"broken": {}
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"build": "fluid-build . --task build",
|
|
40
40
|
"build:commonjs": "fluid-build . --task commonjs",
|
|
41
41
|
"build:compile": "fluid-build . --task compile",
|
|
42
|
-
"build:docs": "api-extractor run --local
|
|
42
|
+
"build:docs": "api-extractor run --local",
|
|
43
43
|
"build:esnext": "tsc --project ./tsconfig.esnext.json",
|
|
44
44
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
45
|
-
"ci:build:docs": "api-extractor run
|
|
45
|
+
"ci:build:docs": "api-extractor run",
|
|
46
46
|
"clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp'",
|
|
47
47
|
"eslint": "eslint --format stylish src",
|
|
48
48
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
package/src/errors.ts
CHANGED
|
@@ -16,11 +16,6 @@ export const OdspErrorTypes = {
|
|
|
16
16
|
// Inherit base driver error types
|
|
17
17
|
...DriverErrorTypes,
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* Storage is out of space
|
|
21
|
-
*/
|
|
22
|
-
outOfStorageError: "outOfStorageError",
|
|
23
|
-
|
|
24
19
|
/**
|
|
25
20
|
* Invalid file name (at creation of the file)
|
|
26
21
|
*/
|
|
@@ -59,8 +54,13 @@ export const OdspErrorTypes = {
|
|
|
59
54
|
* So to preserve integrity of the data, the data becomes readonly.
|
|
60
55
|
*/
|
|
61
56
|
serviceReadOnly: "serviceReadOnly",
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Due to organizational policies, you can't access server resources from the current network location.
|
|
60
|
+
*/
|
|
61
|
+
blockedIPAddress: "blockedIPAddress",
|
|
62
62
|
} as const;
|
|
63
|
-
export type OdspErrorTypes = typeof OdspErrorTypes[keyof typeof OdspErrorTypes];
|
|
63
|
+
export type OdspErrorTypes = (typeof OdspErrorTypes)[keyof typeof OdspErrorTypes];
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* ODSP Error types.
|
|
@@ -117,6 +117,11 @@ export enum OdspErrorType {
|
|
|
117
117
|
* So to preserve integrity of the data, the data becomes readonly.
|
|
118
118
|
*/
|
|
119
119
|
serviceReadOnly = "serviceReadOnly",
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Due to organizational policies, you can't access server resources from the current network location.
|
|
123
|
+
*/
|
|
124
|
+
blockedIPAddress = "blockedIPAddress",
|
|
120
125
|
}
|
|
121
126
|
|
|
122
127
|
export interface IOdspErrorAugmentations {
|