@fluidframework/local-driver 2.0.0-dev-rc.2.0.0.246488 → 2.0.0-dev-rc.3.0.0.253463

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 (78) hide show
  1. package/api-report/local-driver.api.md +16 -16
  2. package/dist/local-driver-alpha.d.ts +15 -15
  3. package/dist/local-driver-beta.d.ts +15 -15
  4. package/dist/local-driver-public.d.ts +15 -15
  5. package/dist/local-driver-untrimmed.d.ts +16 -16
  6. package/dist/localCreateDocument.d.ts +1 -1
  7. package/dist/localCreateDocument.d.ts.map +1 -1
  8. package/dist/localCreateDocument.js +4 -4
  9. package/dist/localCreateDocument.js.map +1 -1
  10. package/dist/localDeltaStorageService.d.ts +1 -1
  11. package/dist/localDeltaStorageService.d.ts.map +1 -1
  12. package/dist/localDeltaStorageService.js +2 -2
  13. package/dist/localDeltaStorageService.js.map +1 -1
  14. package/dist/localDocumentDeltaConnection.d.ts +3 -3
  15. package/dist/localDocumentDeltaConnection.d.ts.map +1 -1
  16. package/dist/localDocumentDeltaConnection.js +4 -4
  17. package/dist/localDocumentDeltaConnection.js.map +1 -1
  18. package/dist/localDocumentService.d.ts +2 -2
  19. package/dist/localDocumentService.d.ts.map +1 -1
  20. package/dist/localDocumentService.js +2 -2
  21. package/dist/localDocumentService.js.map +1 -1
  22. package/dist/localDocumentServiceFactory.d.ts +2 -2
  23. package/dist/localDocumentServiceFactory.d.ts.map +1 -1
  24. package/dist/localDocumentServiceFactory.js +3 -3
  25. package/dist/localDocumentServiceFactory.js.map +1 -1
  26. package/dist/localDocumentStorageService.d.ts +2 -2
  27. package/dist/localDocumentStorageService.d.ts.map +1 -1
  28. package/dist/localDocumentStorageService.js +3 -3
  29. package/dist/localDocumentStorageService.js.map +1 -1
  30. package/dist/localResolver.d.ts +1 -1
  31. package/dist/localResolver.d.ts.map +1 -1
  32. package/dist/localResolver.js +4 -4
  33. package/dist/localResolver.js.map +1 -1
  34. package/lib/local-driver-alpha.d.ts +15 -15
  35. package/lib/local-driver-beta.d.ts +15 -15
  36. package/lib/local-driver-public.d.ts +15 -15
  37. package/lib/local-driver-untrimmed.d.ts +16 -16
  38. package/lib/localCreateDocument.d.ts +1 -1
  39. package/lib/localCreateDocument.d.ts.map +1 -1
  40. package/lib/localCreateDocument.js +1 -1
  41. package/lib/localCreateDocument.js.map +1 -1
  42. package/lib/localDeltaStorageService.d.ts +1 -1
  43. package/lib/localDeltaStorageService.d.ts.map +1 -1
  44. package/lib/localDeltaStorageService.js +1 -1
  45. package/lib/localDeltaStorageService.js.map +1 -1
  46. package/lib/localDocumentDeltaConnection.d.ts +3 -3
  47. package/lib/localDocumentDeltaConnection.d.ts.map +1 -1
  48. package/lib/localDocumentDeltaConnection.js +2 -2
  49. package/lib/localDocumentDeltaConnection.js.map +1 -1
  50. package/lib/localDocumentService.d.ts +2 -2
  51. package/lib/localDocumentService.d.ts.map +1 -1
  52. package/lib/localDocumentService.js +2 -2
  53. package/lib/localDocumentService.js.map +1 -1
  54. package/lib/localDocumentServiceFactory.d.ts +2 -2
  55. package/lib/localDocumentServiceFactory.d.ts.map +1 -1
  56. package/lib/localDocumentServiceFactory.js +2 -2
  57. package/lib/localDocumentServiceFactory.js.map +1 -1
  58. package/lib/localDocumentStorageService.d.ts +2 -2
  59. package/lib/localDocumentStorageService.d.ts.map +1 -1
  60. package/lib/localDocumentStorageService.js +2 -2
  61. package/lib/localDocumentStorageService.js.map +1 -1
  62. package/lib/localResolver.d.ts +1 -1
  63. package/lib/localResolver.d.ts.map +1 -1
  64. package/lib/localResolver.js +2 -2
  65. package/lib/localResolver.js.map +1 -1
  66. package/lib/tsdoc-metadata.json +11 -0
  67. package/package.json +17 -26
  68. package/src/localCreateDocument.ts +2 -2
  69. package/src/localDeltaStorageService.ts +2 -2
  70. package/src/localDocumentDeltaConnection.ts +4 -4
  71. package/src/localDocumentService.ts +6 -5
  72. package/src/localDocumentServiceFactory.ts +6 -5
  73. package/src/localDocumentStorageService.ts +9 -8
  74. package/src/localResolver.ts +7 -2
  75. package/lib/test/localResolverTest.spec.js +0 -47
  76. package/lib/test/localResolverTest.spec.js.map +0 -1
  77. package/lib/test/types/validateLocalDriverPrevious.generated.js +0 -26
  78. package/lib/test/types/validateLocalDriverPrevious.generated.js.map +0 -1
@@ -4,6 +4,7 @@
4
4
  */
5
5
 
6
6
  import { TypedEventEmitter } from "@fluid-internal/client-utils";
7
+ import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
7
8
  import {
8
9
  IDocumentDeltaConnection,
9
10
  IDocumentDeltaStorageService,
@@ -12,16 +13,16 @@ import {
12
13
  IDocumentServicePolicies,
13
14
  IDocumentStorageService,
14
15
  IResolvedUrl,
15
- } from "@fluidframework/driver-definitions";
16
+ } from "@fluidframework/driver-definitions/internal";
16
17
  import { IClient } from "@fluidframework/protocol-definitions";
17
18
  import { ITokenProvider } from "@fluidframework/routerlicious-driver";
19
+ import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
18
20
  import { GitManager } from "@fluidframework/server-services-client";
19
21
  import { TestHistorian } from "@fluidframework/server-test-utils";
20
- import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
21
- import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
22
- import { LocalDocumentStorageService } from "./localDocumentStorageService.js";
23
- import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.js";
22
+
24
23
  import { LocalDeltaStorageService } from "./localDeltaStorageService.js";
24
+ import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.js";
25
+ import { LocalDocumentStorageService } from "./localDocumentStorageService.js";
25
26
 
26
27
  /**
27
28
  * Basic implementation of a document service for local use.
@@ -3,19 +3,20 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
+ import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
6
7
  import {
7
8
  IDocumentService,
8
9
  IDocumentServiceFactory,
9
10
  IDocumentServicePolicies,
10
11
  IResolvedUrl,
11
- } from "@fluidframework/driver-definitions";
12
- import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
13
- import { DefaultTokenProvider } from "@fluidframework/routerlicious-driver";
14
- import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
12
+ } from "@fluidframework/driver-definitions/internal";
15
13
  import { ISummaryTree, NackErrorType } from "@fluidframework/protocol-definitions";
14
+ import { DefaultTokenProvider } from "@fluidframework/routerlicious-driver/internal";
15
+ import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
16
+
17
+ import { createDocument } from "./localCreateDocument.js";
16
18
  import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.js";
17
19
  import { createLocalDocumentService } from "./localDocumentService.js";
18
- import { createDocument } from "./localCreateDocument.js";
19
20
 
20
21
  /**
21
22
  * Implementation of document service factory for local use.
@@ -4,19 +4,21 @@
4
4
  */
5
5
 
6
6
  import {
7
- bufferToString,
8
7
  IsoBuffer,
9
- stringToBuffer,
10
8
  Uint8ArrayToString,
9
+ bufferToString,
10
+ stringToBuffer,
11
11
  } from "@fluid-internal/client-utils";
12
+ import { assert } from "@fluidframework/core-utils/internal";
12
13
  import {
13
14
  IDocumentStorageService,
14
15
  IDocumentStorageServicePolicies,
15
16
  IResolvedUrl,
16
- ISummaryContext,
17
- type ISnapshotFetchOptions,
18
17
  type ISnapshot,
19
- } from "@fluidframework/driver-definitions";
18
+ type ISnapshotFetchOptions,
19
+ ISummaryContext,
20
+ } from "@fluidframework/driver-definitions/internal";
21
+ import { buildGitTreeHierarchy } from "@fluidframework/protocol-base";
20
22
  import {
21
23
  ICreateBlobResponse,
22
24
  ISnapshotTreeEx,
@@ -24,14 +26,13 @@ import {
24
26
  ISummaryTree,
25
27
  IVersion,
26
28
  } from "@fluidframework/protocol-definitions";
27
- import { buildGitTreeHierarchy } from "@fluidframework/protocol-base";
29
+ import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
28
30
  import {
29
31
  GitManager,
30
32
  ISummaryUploadManager,
31
33
  SummaryTreeUploadManager,
32
34
  } from "@fluidframework/server-services-client";
33
- import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
34
- import { assert } from "@fluidframework/core-utils";
35
+
35
36
  import { createDocument } from "./localCreateDocument.js";
36
37
 
37
38
  const minTTLInSeconds = 24 * 60 * 60; // Same TTL as ODSP
@@ -3,10 +3,15 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { assert } from "@fluidframework/core-utils";
7
6
  import { IRequest } from "@fluidframework/core-interfaces";
8
- import { IResolvedUrl, IUrlResolver, DriverHeader } from "@fluidframework/driver-definitions";
7
+ import { assert } from "@fluidframework/core-utils/internal";
8
+ import {
9
+ DriverHeader,
10
+ IResolvedUrl,
11
+ IUrlResolver,
12
+ } from "@fluidframework/driver-definitions/internal";
9
13
  import { ScopeType } from "@fluidframework/protocol-definitions";
14
+
10
15
  import { generateToken } from "./auth.js";
11
16
 
12
17
  /**
@@ -1,47 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { strict as assert } from "assert";
6
- import { DriverHeader } from "@fluidframework/driver-definitions";
7
- import { LocalResolver } from "../localResolver.js";
8
- describe("Local Driver Resolver", () => {
9
- const documentId = "localResolverTest";
10
- let resolver;
11
- describe("CreateNew Flow", () => {
12
- let request;
13
- beforeEach(() => {
14
- resolver = new LocalResolver();
15
- request = resolver.createCreateNewRequest(documentId);
16
- });
17
- it("should successfully create a creatNewRequest", async () => {
18
- assert(!!request.headers?.[DriverHeader.createNew], "Request should contain create new header");
19
- const expectedUrl = `http://localhost:3000/${documentId}`;
20
- assert.equal(request.url, expectedUrl, "The url in createNewRequest should match");
21
- });
22
- it("should successfully resolve a createNewRequest", async () => {
23
- const resolvedUrl = await resolver.resolve(request);
24
- const expectedUrl = `https://localhost:3000/tenantId/${documentId}`;
25
- assert.equal(resolvedUrl.url, expectedUrl, "The resolved url should match");
26
- });
27
- it("should successfully create requestUrl for a data store from resolvedUrl", async () => {
28
- const resolvedUrl = await resolver.resolve(request);
29
- const dataStoreId = "datastore";
30
- const response = await resolver.getAbsoluteUrl(resolvedUrl, dataStoreId);
31
- const expectedUrl = `http://localhost:3000/${documentId}/${dataStoreId}`;
32
- assert.equal(response, expectedUrl, "The requestUrl should match");
33
- });
34
- });
35
- describe("Container Request Resolution", () => {
36
- beforeEach(() => {
37
- resolver = new LocalResolver();
38
- });
39
- it("should successfully resolve request for a container url", async () => {
40
- const url = `http://localhost/${documentId}`;
41
- const resolvedUrl = await resolver.resolve({ url });
42
- const expectedUrl = `https://localhost:3000/tenantId/${documentId}`;
43
- assert.equal(resolvedUrl.url, expectedUrl, "The resolved container url should match");
44
- });
45
- });
46
- });
47
- //# sourceMappingURL=localResolverTest.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localResolverTest.spec.js","sourceRoot":"","sources":["../../src/test/localResolverTest.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACtC,MAAM,UAAU,GAAG,mBAAmB,CAAC;IACvC,IAAI,QAAuB,CAAC;IAE5B,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC/B,IAAI,OAAiB,CAAC;QAEtB,UAAU,CAAC,GAAG,EAAE;YACf,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;YAC/B,OAAO,GAAG,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;YAC7D,MAAM,CACL,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,EAC3C,0CAA0C,CAC1C,CAAC;YACF,MAAM,WAAW,GAAG,yBAAyB,UAAU,EAAE,CAAC;YAC1D,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,0CAA0C,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gDAAgD,EAAE,KAAK,IAAI,EAAE;YAC/D,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACpD,MAAM,WAAW,GAAG,mCAAmC,UAAU,EAAE,CAAC;YACpE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,+BAA+B,CAAC,CAAC;QAC7E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yEAAyE,EAAE,KAAK,IAAI,EAAE;YACxF,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACpD,MAAM,WAAW,GAAG,WAAW,CAAC;YAChC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACzE,MAAM,WAAW,GAAG,yBAAyB,UAAU,IAAI,WAAW,EAAE,CAAC;YACzE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,6BAA6B,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;QAC7C,UAAU,CAAC,GAAG,EAAE;YACf,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;QAChC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yDAAyD,EAAE,KAAK,IAAI,EAAE;YACxE,MAAM,GAAG,GAAG,oBAAoB,UAAU,EAAE,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YACpD,MAAM,WAAW,GAAG,mCAAmC,UAAU,EAAE,CAAC;YACpE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,yCAAyC,CAAC,CAAC;QACvF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { strict as assert } from \"assert\";\nimport { DriverHeader } from \"@fluidframework/driver-definitions\";\nimport { IRequest } from \"@fluidframework/core-interfaces\";\nimport { LocalResolver } from \"../localResolver.js\";\n\ndescribe(\"Local Driver Resolver\", () => {\n\tconst documentId = \"localResolverTest\";\n\tlet resolver: LocalResolver;\n\n\tdescribe(\"CreateNew Flow\", () => {\n\t\tlet request: IRequest;\n\n\t\tbeforeEach(() => {\n\t\t\tresolver = new LocalResolver();\n\t\t\trequest = resolver.createCreateNewRequest(documentId);\n\t\t});\n\n\t\tit(\"should successfully create a creatNewRequest\", async () => {\n\t\t\tassert(\n\t\t\t\t!!request.headers?.[DriverHeader.createNew],\n\t\t\t\t\"Request should contain create new header\",\n\t\t\t);\n\t\t\tconst expectedUrl = `http://localhost:3000/${documentId}`;\n\t\t\tassert.equal(request.url, expectedUrl, \"The url in createNewRequest should match\");\n\t\t});\n\n\t\tit(\"should successfully resolve a createNewRequest\", async () => {\n\t\t\tconst resolvedUrl = await resolver.resolve(request);\n\t\t\tconst expectedUrl = `https://localhost:3000/tenantId/${documentId}`;\n\t\t\tassert.equal(resolvedUrl.url, expectedUrl, \"The resolved url should match\");\n\t\t});\n\n\t\tit(\"should successfully create requestUrl for a data store from resolvedUrl\", async () => {\n\t\t\tconst resolvedUrl = await resolver.resolve(request);\n\t\t\tconst dataStoreId = \"datastore\";\n\t\t\tconst response = await resolver.getAbsoluteUrl(resolvedUrl, dataStoreId);\n\t\t\tconst expectedUrl = `http://localhost:3000/${documentId}/${dataStoreId}`;\n\t\t\tassert.equal(response, expectedUrl, \"The requestUrl should match\");\n\t\t});\n\t});\n\n\tdescribe(\"Container Request Resolution\", () => {\n\t\tbeforeEach(() => {\n\t\t\tresolver = new LocalResolver();\n\t\t});\n\n\t\tit(\"should successfully resolve request for a container url\", async () => {\n\t\t\tconst url = `http://localhost/${documentId}`;\n\t\t\tconst resolvedUrl = await resolver.resolve({ url });\n\t\t\tconst expectedUrl = `https://localhost:3000/tenantId/${documentId}`;\n\t\t\tassert.equal(resolvedUrl.url, expectedUrl, \"The resolved container url should match\");\n\t\t});\n\t});\n});\n"]}
@@ -1,26 +0,0 @@
1
- use_current_ClassDeclaration_LocalDeltaStorageService(get_old_ClassDeclaration_LocalDeltaStorageService());
2
- use_old_ClassDeclaration_LocalDeltaStorageService(get_current_ClassDeclaration_LocalDeltaStorageService());
3
- use_current_ClassDeclaration_LocalDocumentDeltaConnection(get_old_ClassDeclaration_LocalDocumentDeltaConnection());
4
- use_old_ClassDeclaration_LocalDocumentDeltaConnection(get_current_ClassDeclaration_LocalDocumentDeltaConnection());
5
- use_current_ClassDeclaration_LocalDocumentService(
6
- // @ts-expect-error compatibility expected to be broken
7
- get_old_ClassDeclaration_LocalDocumentService());
8
- use_old_ClassDeclaration_LocalDocumentService(get_current_ClassDeclaration_LocalDocumentService());
9
- use_current_ClassDeclaration_LocalDocumentServiceFactory(get_old_ClassDeclaration_LocalDocumentServiceFactory());
10
- use_old_ClassDeclaration_LocalDocumentServiceFactory(get_current_ClassDeclaration_LocalDocumentServiceFactory());
11
- use_current_ClassDeclaration_LocalDocumentStorageService(
12
- // @ts-expect-error compatibility expected to be broken
13
- get_old_ClassDeclaration_LocalDocumentStorageService());
14
- use_old_ClassDeclaration_LocalDocumentStorageService(
15
- // @ts-expect-error compatibility expected to be broken
16
- get_current_ClassDeclaration_LocalDocumentStorageService());
17
- use_current_ClassDeclaration_LocalResolver(get_old_ClassDeclaration_LocalResolver());
18
- use_old_ClassDeclaration_LocalResolver(get_current_ClassDeclaration_LocalResolver());
19
- use_current_ClassDeclaration_LocalSessionStorageDbFactory(get_old_ClassDeclaration_LocalSessionStorageDbFactory());
20
- use_old_ClassDeclaration_LocalSessionStorageDbFactory(get_current_ClassDeclaration_LocalSessionStorageDbFactory());
21
- use_current_FunctionDeclaration_createLocalDocumentService(get_old_FunctionDeclaration_createLocalDocumentService());
22
- use_old_FunctionDeclaration_createLocalDocumentService(get_current_FunctionDeclaration_createLocalDocumentService());
23
- use_current_FunctionDeclaration_createLocalResolverCreateNewRequest(get_old_FunctionDeclaration_createLocalResolverCreateNewRequest());
24
- use_old_FunctionDeclaration_createLocalResolverCreateNewRequest(get_current_FunctionDeclaration_createLocalResolverCreateNewRequest());
25
- export {};
26
- //# sourceMappingURL=validateLocalDriverPrevious.generated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateLocalDriverPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateLocalDriverPrevious.generated.ts"],"names":[],"mappings":"AAgCA,qDAAqD,CACjD,iDAAiD,EAAE,CAAC,CAAC;AAWzD,iDAAiD,CAC7C,qDAAqD,EAAE,CAAC,CAAC;AAW7D,yDAAyD,CACrD,qDAAqD,EAAE,CAAC,CAAC;AAW7D,qDAAqD,CACjD,yDAAyD,EAAE,CAAC,CAAC;AAWjE,iDAAiD;AAC7C,uDAAuD;AACvD,6CAA6C,EAAE,CAAC,CAAC;AAWrD,6CAA6C,CACzC,iDAAiD,EAAE,CAAC,CAAC;AAWzD,wDAAwD,CACpD,oDAAoD,EAAE,CAAC,CAAC;AAW5D,oDAAoD,CAChD,wDAAwD,EAAE,CAAC,CAAC;AAWhE,wDAAwD;AACpD,uDAAuD;AACvD,oDAAoD,EAAE,CAAC,CAAC;AAW5D,oDAAoD;AAChD,uDAAuD;AACvD,wDAAwD,EAAE,CAAC,CAAC;AAWhE,0CAA0C,CACtC,sCAAsC,EAAE,CAAC,CAAC;AAW9C,sCAAsC,CAClC,0CAA0C,EAAE,CAAC,CAAC;AAWlD,yDAAyD,CACrD,qDAAqD,EAAE,CAAC,CAAC;AAW7D,qDAAqD,CACjD,yDAAyD,EAAE,CAAC,CAAC;AAWjE,0DAA0D,CACtD,sDAAsD,EAAE,CAAC,CAAC;AAW9D,sDAAsD,CAClD,0DAA0D,EAAE,CAAC,CAAC;AAWlE,mEAAmE,CAC/D,+DAA+D,EAAE,CAAC,CAAC;AAWvE,+DAA+D,CAC3D,mEAAmE,EAAE,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/*\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n * Generated by fluid-type-test-generator in @fluidframework/build-tools.\n */\nimport type * as old from \"@fluidframework/local-driver-previous\";\nimport type * as current from \"../../index.js\";\n\n\n// See 'build-tools/src/type-test-generator/compatibility.ts' for more information.\ntype TypeOnly<T> = T extends number\n\t? number\n\t: T extends string\n\t? string\n\t: T extends boolean | bigint | symbol\n\t? T\n\t: {\n\t\t\t[P in keyof T]: TypeOnly<T[P]>;\n\t };\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDeltaStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDeltaStorageService():\n TypeOnly<old.LocalDeltaStorageService>;\ndeclare function use_current_ClassDeclaration_LocalDeltaStorageService(\n use: TypeOnly<current.LocalDeltaStorageService>): void;\nuse_current_ClassDeclaration_LocalDeltaStorageService(\n get_old_ClassDeclaration_LocalDeltaStorageService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDeltaStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDeltaStorageService():\n TypeOnly<current.LocalDeltaStorageService>;\ndeclare function use_old_ClassDeclaration_LocalDeltaStorageService(\n use: TypeOnly<old.LocalDeltaStorageService>): void;\nuse_old_ClassDeclaration_LocalDeltaStorageService(\n get_current_ClassDeclaration_LocalDeltaStorageService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentDeltaConnection\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDocumentDeltaConnection():\n TypeOnly<old.LocalDocumentDeltaConnection>;\ndeclare function use_current_ClassDeclaration_LocalDocumentDeltaConnection(\n use: TypeOnly<current.LocalDocumentDeltaConnection>): void;\nuse_current_ClassDeclaration_LocalDocumentDeltaConnection(\n get_old_ClassDeclaration_LocalDocumentDeltaConnection());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentDeltaConnection\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDocumentDeltaConnection():\n TypeOnly<current.LocalDocumentDeltaConnection>;\ndeclare function use_old_ClassDeclaration_LocalDocumentDeltaConnection(\n use: TypeOnly<old.LocalDocumentDeltaConnection>): void;\nuse_old_ClassDeclaration_LocalDocumentDeltaConnection(\n get_current_ClassDeclaration_LocalDocumentDeltaConnection());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDocumentService():\n TypeOnly<old.LocalDocumentService>;\ndeclare function use_current_ClassDeclaration_LocalDocumentService(\n use: TypeOnly<current.LocalDocumentService>): void;\nuse_current_ClassDeclaration_LocalDocumentService(\n // @ts-expect-error compatibility expected to be broken\n get_old_ClassDeclaration_LocalDocumentService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentService\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDocumentService():\n TypeOnly<current.LocalDocumentService>;\ndeclare function use_old_ClassDeclaration_LocalDocumentService(\n use: TypeOnly<old.LocalDocumentService>): void;\nuse_old_ClassDeclaration_LocalDocumentService(\n get_current_ClassDeclaration_LocalDocumentService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentServiceFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDocumentServiceFactory():\n TypeOnly<old.LocalDocumentServiceFactory>;\ndeclare function use_current_ClassDeclaration_LocalDocumentServiceFactory(\n use: TypeOnly<current.LocalDocumentServiceFactory>): void;\nuse_current_ClassDeclaration_LocalDocumentServiceFactory(\n get_old_ClassDeclaration_LocalDocumentServiceFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentServiceFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDocumentServiceFactory():\n TypeOnly<current.LocalDocumentServiceFactory>;\ndeclare function use_old_ClassDeclaration_LocalDocumentServiceFactory(\n use: TypeOnly<old.LocalDocumentServiceFactory>): void;\nuse_old_ClassDeclaration_LocalDocumentServiceFactory(\n get_current_ClassDeclaration_LocalDocumentServiceFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDocumentStorageService():\n TypeOnly<old.LocalDocumentStorageService>;\ndeclare function use_current_ClassDeclaration_LocalDocumentStorageService(\n use: TypeOnly<current.LocalDocumentStorageService>): void;\nuse_current_ClassDeclaration_LocalDocumentStorageService(\n // @ts-expect-error compatibility expected to be broken\n get_old_ClassDeclaration_LocalDocumentStorageService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDocumentStorageService():\n TypeOnly<current.LocalDocumentStorageService>;\ndeclare function use_old_ClassDeclaration_LocalDocumentStorageService(\n use: TypeOnly<old.LocalDocumentStorageService>): void;\nuse_old_ClassDeclaration_LocalDocumentStorageService(\n // @ts-expect-error compatibility expected to be broken\n get_current_ClassDeclaration_LocalDocumentStorageService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalResolver\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalResolver():\n TypeOnly<old.LocalResolver>;\ndeclare function use_current_ClassDeclaration_LocalResolver(\n use: TypeOnly<current.LocalResolver>): void;\nuse_current_ClassDeclaration_LocalResolver(\n get_old_ClassDeclaration_LocalResolver());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalResolver\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalResolver():\n TypeOnly<current.LocalResolver>;\ndeclare function use_old_ClassDeclaration_LocalResolver(\n use: TypeOnly<old.LocalResolver>): void;\nuse_old_ClassDeclaration_LocalResolver(\n get_current_ClassDeclaration_LocalResolver());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalSessionStorageDbFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalSessionStorageDbFactory():\n TypeOnly<old.LocalSessionStorageDbFactory>;\ndeclare function use_current_ClassDeclaration_LocalSessionStorageDbFactory(\n use: TypeOnly<current.LocalSessionStorageDbFactory>): void;\nuse_current_ClassDeclaration_LocalSessionStorageDbFactory(\n get_old_ClassDeclaration_LocalSessionStorageDbFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalSessionStorageDbFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalSessionStorageDbFactory():\n TypeOnly<current.LocalSessionStorageDbFactory>;\ndeclare function use_old_ClassDeclaration_LocalSessionStorageDbFactory(\n use: TypeOnly<old.LocalSessionStorageDbFactory>): void;\nuse_old_ClassDeclaration_LocalSessionStorageDbFactory(\n get_current_ClassDeclaration_LocalSessionStorageDbFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_createLocalDocumentService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_createLocalDocumentService():\n TypeOnly<typeof old.createLocalDocumentService>;\ndeclare function use_current_FunctionDeclaration_createLocalDocumentService(\n use: TypeOnly<typeof current.createLocalDocumentService>): void;\nuse_current_FunctionDeclaration_createLocalDocumentService(\n get_old_FunctionDeclaration_createLocalDocumentService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_createLocalDocumentService\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_createLocalDocumentService():\n TypeOnly<typeof current.createLocalDocumentService>;\ndeclare function use_old_FunctionDeclaration_createLocalDocumentService(\n use: TypeOnly<typeof old.createLocalDocumentService>): void;\nuse_old_FunctionDeclaration_createLocalDocumentService(\n get_current_FunctionDeclaration_createLocalDocumentService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_createLocalResolverCreateNewRequest\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_createLocalResolverCreateNewRequest():\n TypeOnly<typeof old.createLocalResolverCreateNewRequest>;\ndeclare function use_current_FunctionDeclaration_createLocalResolverCreateNewRequest(\n use: TypeOnly<typeof current.createLocalResolverCreateNewRequest>): void;\nuse_current_FunctionDeclaration_createLocalResolverCreateNewRequest(\n get_old_FunctionDeclaration_createLocalResolverCreateNewRequest());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_createLocalResolverCreateNewRequest\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_createLocalResolverCreateNewRequest():\n TypeOnly<typeof current.createLocalResolverCreateNewRequest>;\ndeclare function use_old_FunctionDeclaration_createLocalResolverCreateNewRequest(\n use: TypeOnly<typeof old.createLocalResolverCreateNewRequest>): void;\nuse_old_FunctionDeclaration_createLocalResolverCreateNewRequest(\n get_current_FunctionDeclaration_createLocalResolverCreateNewRequest());\n"]}