@fluidframework/driver-definitions 2.0.0-internal.3.2.2 → 2.0.0-internal.3.3.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/dist/storage.d.ts +6 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js.map +1 -1
- package/lib/storage.d.ts +6 -0
- package/lib/storage.d.ts.map +1 -1
- package/lib/storage.js.map +1 -1
- package/lib/test/types/validateDriverDefinitionsPrevious.generated.js +2 -2
- package/lib/test/types/validateDriverDefinitionsPrevious.generated.js.map +1 -1
- package/package.json +6 -10
- package/src/storage.ts +7 -0
package/dist/storage.d.ts
CHANGED
|
@@ -223,6 +223,10 @@ export interface IDocumentServicePolicies {
|
|
|
223
223
|
* Do not connect to delta stream
|
|
224
224
|
*/
|
|
225
225
|
readonly storageOnly?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Summarizer uploads the protocol tree too when summarizing.
|
|
228
|
+
*/
|
|
229
|
+
readonly summarizeProtocolTree?: boolean;
|
|
226
230
|
}
|
|
227
231
|
export interface IDocumentService {
|
|
228
232
|
resolvedUrl: IResolvedUrl;
|
|
@@ -257,6 +261,8 @@ export interface IDocumentService {
|
|
|
257
261
|
export interface IDocumentServiceFactory {
|
|
258
262
|
/**
|
|
259
263
|
* Name of the protocol used by factory
|
|
264
|
+
*
|
|
265
|
+
* @deprecated 2.0.0-internal.3.3.0 Document service factories should not be distinguished by unique non-standard protocols. To be removed in an upcoming release.
|
|
260
266
|
*/
|
|
261
267
|
protocolName: string;
|
|
262
268
|
/**
|
package/dist/storage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACN,cAAc,EACd,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C3B;AAED,MAAM,WAAW,uBAAuB;IACvC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;OAUG;IACH,qBAAqB,CACpB,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7B;;;;;;;;;;OAUG;IACH,eAAe,CACd,gBAAgB,EAAE,YAAY,GAAG,SAAS,EAC1C,oBAAoB,EAAE,YAAY,EAClC,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAEvC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;CACzC;AAED,oBAAY,WAAW;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;CACnB"}
|
package/dist/storage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA6RH,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC9B;;OAEG;IACH,uEAAS,CAAA;IAET;;OAEG;IACH,qEAAQ,CAAA;AACT,CAAC,EAVW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAU9B;AA2GD,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;AACpB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDisposable,\n\tIEventProvider,\n\tIErrorEvent,\n\tITelemetryBaseLogger,\n} from \"@fluidframework/common-definitions\";\nimport {\n\tConnectionMode,\n\tIClient,\n\tIClientConfiguration,\n\tICreateBlobResponse,\n\tIDocumentMessage,\n\tINack,\n\tISequencedDocumentMessage,\n\tISignalClient,\n\tISignalMessage,\n\tISnapshotTree,\n\tISummaryHandle,\n\tISummaryTree,\n\tITokenClaims,\n\tIVersion,\n} from \"@fluidframework/protocol-definitions\";\nimport { IAnyDriverError } from \"./driverError\";\nimport { IResolvedUrl } from \"./urlResolver\";\n\nexport interface IDeltasFetchResult {\n\t/**\n\t * Sequential set of messages starting from 'from' sequence number.\n\t * May be partial result, i.e. not fulfill original request in full.\n\t */\n\tmessages: ISequencedDocumentMessage[];\n\n\t/**\n\t * If true, storage only partially fulfilled request, but has more ops\n\t * If false, the request was fulfilled. If less ops were returned then\n\t * requested, then storage does not have more ops in this range.\n\t */\n\tpartialResult: boolean;\n}\n\n/**\n * Interface to provide access to stored deltas for a shared object\n */\nexport interface IDeltaStorageService {\n\t/**\n\t * Retrieves all the delta operations within the inclusive sequence number range\n\t * @param tenantId - Id of the tenant.\n\t * @param id - document id.\n\t * @param from - first op to retrieve (inclusive)\n\t * @param to - first op not to retrieve (exclusive end)\n\t * @param fetchReason - Reason for fetching the messages. Example, gap between seq number\n\t * of Op on wire and known seq number. It should not contain any PII. It can be logged by\n\t * spo which could help in debugging sessions if any issue occurs.\n\t */\n\tget(\n\t\ttenantId: string,\n\t\tid: string,\n\t\tfrom: number, // inclusive\n\t\tto: number, // exclusive\n\t\tfetchReason?: string,\n\t): Promise<IDeltasFetchResult>;\n}\n\nexport type IStreamResult<T> = { done: true } | { done: false; value: T };\n\n/**\n * Read interface for the Queue\n */\nexport interface IStream<T> {\n\tread(): Promise<IStreamResult<T>>;\n}\n\n/**\n * Interface to provide access to stored deltas for a shared object\n */\nexport interface IDocumentDeltaStorageService {\n\t/**\n\t * Retrieves all the delta operations within the exclusive sequence number range\n\t * @param from - first op to retrieve (inclusive)\n\t * @param to - first op not to retrieve (exclusive end)\n\t * @param abortSignal - signal that aborts operation\n\t * @param cachedOnly - return only cached ops, i.e. ops available locally on client.\n\t * @param fetchReason - Reason for fetching the messages. Example, gap between seq number\n\t * of Op on wire and known seq number. It should not contain any PII. It can be logged by\n\t * spo which could help in debugging sessions if any issue occurs.\n\t */\n\tfetchMessages(\n\t\tfrom: number,\n\t\tto: number | undefined,\n\t\tabortSignal?: AbortSignal,\n\t\tcachedOnly?: boolean,\n\t\tfetchReason?: string,\n\t): IStream<ISequencedDocumentMessage[]>;\n}\n\n// DO NOT INCREASE THIS TYPE'S VALUE\n// If a driver started using a larger value,\n// internal assumptions of the Runtime's GC feature will be violated\n// DO NOT INCREASE THIS TYPE'S VALUE\nexport type FiveDaysMs = 432_000_000; /* 5 days in milliseconds */\n\n/**\n * Policies describing attributes or characteristics of the driver's storage service,\n * to direct how other components interact with the driver\n */\nexport interface IDocumentStorageServicePolicies {\n\t/**\n\t * Should the Loader implement any sort of pre-fetching or caching mechanism?\n\t */\n\treadonly caching?: LoaderCachingPolicy;\n\n\t/**\n\t * If this policy is provided, it tells runtime on ideal size for blobs.\n\t * Blobs that are smaller than that size should be aggregated into bigger blobs.\n\t */\n\treadonly minBlobSize?: number;\n\n\t/**\n\t * IMPORTANT: This policy MUST be set to 5 days and PROPERLY ENFORCED for drivers that are used\n\t * in applications where Garbage Collection is enabled. Otherwise data loss may occur.\n\t *\n\t * This policy pertains to requests for the latest snapshot from the service.\n\t * If set, it means that the driver guarantees not to use a cached value that was fetched more than 5 days ago.\n\t * If undefined, the driver makes no guarantees about the age of snapshots used for loading.\n\t */\n\treadonly maximumCacheDurationMs?: FiveDaysMs;\n}\n\n/**\n * Interface to provide access to snapshots saved for a shared object\n */\nexport interface IDocumentStorageService extends Partial<IDisposable> {\n\trepositoryUrl: string;\n\n\t/**\n\t * Policies implemented/instructed by driver.\n\t */\n\treadonly policies?: IDocumentStorageServicePolicies;\n\n\t/**\n\t * Returns the snapshot tree.\n\t * @param version - Version of the snapshot to be fetched.\n\t * @param scenarioName - scenario in which this api is called. This will be recorded by server and would help\n\t * in debugging purposes to see why this call was made.\n\t */\n\t// TODO: use `undefined` instead.\n\t// eslint-disable-next-line @rushstack/no-new-null\n\tgetSnapshotTree(version?: IVersion, scenarioName?: string): Promise<ISnapshotTree | null>;\n\n\t/**\n\t * Retrieves all versions of the document starting at the specified versionId - or null if from the head\n\t * @param versionId - Version id of the requested version.\n\t * @param count - Number of the versions to be fetched.\n\t * @param scenarioName - scenario in which this api is called. This will be recorded by server and would help\n\t * in debugging purposes to see why this call was made.\n\t * @param fetchSource - Callers can specify the source of the response. For ex. Driver may choose to cache\n\t * requests and serve data from cache. That will result in stale info returned. Callers can disable this\n\t * functionality by passing fetchSource = noCache and ensuring that driver will return latest information\n\t * from storage.\n\t */\n\tgetVersions(\n\t\t// TODO: use `undefined` instead.\n\t\t// eslint-disable-next-line @rushstack/no-new-null\n\t\tversionId: string | null,\n\t\tcount: number,\n\t\tscenarioName?: string,\n\t\tfetchSource?: FetchSource,\n\t): Promise<IVersion[]>;\n\n\t/**\n\t * Creates a blob out of the given buffer\n\t */\n\tcreateBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;\n\n\t/**\n\t * Reads the object with the given ID, returns content in arrayBufferLike\n\t */\n\treadBlob(id: string): Promise<ArrayBufferLike>;\n\n\t/**\n\t * Uploads a summary tree to storage using the given context for reference of previous summary handle.\n\t * The ISummaryHandles in the uploaded tree should have paths to indicate which summary object they are\n\t * referencing from the previously acked summary.\n\t * Returns the uploaded summary handle.\n\t */\n\tuploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;\n\n\t/**\n\t * Retrieves the commit that matches the packfile handle. If the packfile has already been committed and the\n\t * server has deleted it this call may result in a broken promise.\n\t */\n\tdownloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;\n}\n\nexport interface IDocumentDeltaConnectionEvents extends IErrorEvent {\n\t(event: \"nack\", listener: (documentId: string, message: INack[]) => void);\n\t(event: \"disconnect\", listener: (reason: IAnyDriverError) => void);\n\t(event: \"op\", listener: (documentId: string, messages: ISequencedDocumentMessage[]) => void);\n\t(event: \"signal\", listener: (message: ISignalMessage) => void);\n\t(event: \"pong\", listener: (latency: number) => void);\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"error\", listener: (error: any) => void);\n}\n\nexport interface IDocumentDeltaConnection\n\textends IDisposable,\n\t\tIEventProvider<IDocumentDeltaConnectionEvents> {\n\t/**\n\t * ClientID for the connection\n\t */\n\tclientId: string;\n\n\t/**\n\t * Claims for the client\n\t */\n\tclaims: ITokenClaims;\n\n\t/**\n\t * Mode of the client\n\t */\n\tmode: ConnectionMode;\n\n\t/**\n\t * Whether the connection was made to a new or existing document\n\t */\n\texisting: boolean;\n\n\t/**\n\t * Protocol version being used with the service\n\t */\n\tversion: string;\n\n\t/**\n\t * Messages sent during the connection\n\t */\n\tinitialMessages: ISequencedDocumentMessage[];\n\n\t/**\n\t * Signals sent during the connection\n\t */\n\tinitialSignals: ISignalMessage[];\n\n\t/**\n\t * Prior clients already connected.\n\t */\n\tinitialClients: ISignalClient[];\n\n\t/**\n\t * Configuration details provided by the service\n\t */\n\tserviceConfiguration: IClientConfiguration;\n\n\t/**\n\t * Last known sequence number to ordering service at the time of connection\n\t * It may lap actual last sequence number (quite a bit, if container is very active).\n\t * But it's best information for client to figure out how far it is behind, at least\n\t * for \"read\" connections. \"write\" connections may use own \"join\" op to similar information,\n\t * that is likely to be more up-to-date.\n\t */\n\tcheckpointSequenceNumber?: number;\n\n\t/**\n\t * Properties that server can send to client to tell info about node that client is connected to. For ex, for spo\n\t * it could contain info like build version, environment, region etc. These properties can be logged by client\n\t * to better understand server environment etc. and use it in case error occurs.\n\t * Format: \"prop1:val1;prop2:val2;prop3:val3\"\n\t */\n\trelayServiceAgent?: string;\n\n\t/**\n\t * Submit a new message to the server\n\t */\n\tsubmit(messages: IDocumentMessage[]): void;\n\n\t/**\n\t * Submit a new signal to the server\n\t */\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tsubmitSignal(message: any): void;\n}\n\nexport enum LoaderCachingPolicy {\n\t/**\n\t * The loader should not implement any prefetching or caching policy.\n\t */\n\tNoCaching,\n\n\t/**\n\t * The loader should implement prefetching policy, i.e. it should prefetch resources from the latest snapshot.\n\t */\n\tPrefetch,\n}\n\nexport interface IDocumentServicePolicies {\n\t/**\n\t * Do not connect to delta stream\n\t */\n\treadonly storageOnly?: boolean;\n}\n\nexport interface IDocumentService {\n\tresolvedUrl: IResolvedUrl;\n\n\t/**\n\t * Policies implemented/instructed by driver.\n\t */\n\tpolicies?: IDocumentServicePolicies;\n\n\t/**\n\t * Access to storage associated with the document\n\t */\n\tconnectToStorage(): Promise<IDocumentStorageService>;\n\n\t/**\n\t * Access to delta storage associated with the document\n\t */\n\tconnectToDeltaStorage(): Promise<IDocumentDeltaStorageService>;\n\n\t/**\n\t * Subscribes to the document delta stream\n\t */\n\tconnectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection>;\n\n\t/**\n\t * Dispose storage. Called by storage consumer (Container) when it's done with storage (Container closed).\n\t * Useful for storage to commit any pending state if any (including any local caching).\n\t * Please note that it does not remove the need for caller to close all active delta connections,\n\t * as storage may not be tracking such objects.\n\t * @param error - tells if container (and storage) are closed due to critical error.\n\t * Error might be due to disconnect between client & server knowledge about file, like file being overwritten\n\t * in storage, but client having stale local cache.\n\t * If driver implements any kind of local caching, such caches needs to be cleared on on critical errors.\n\t */\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tdispose(error?: any): void;\n}\n\nexport interface IDocumentServiceFactory {\n\t/**\n\t * Name of the protocol used by factory\n\t */\n\tprotocolName: string;\n\n\t/**\n\t * Creates the document service after extracting different endpoints URLs from a resolved URL.\n\t *\n\t * @param resolvedUrl - Endpoint URL data. See {@link IResolvedUrl}.\n\t * @param logger - Optional telemetry logger to which telemetry events will be forwarded.\n\t * @param clientIsSummarizer - Whether or not the client is the\n\t * {@link https://fluidframework.com/docs/concepts/summarizer/ | summarizer}.\n\t * `undefined` =\\> false\n\t *\n\t * @returns An instance of {@link IDocumentService}.\n\t */\n\tcreateDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService>;\n\n\t/**\n\t * Creates a new document with the provided options. Returns the document service.\n\t *\n\t * @param createNewSummary - Summary used to create file. If undefined, an empty file will be created and a summary\n\t * should be posted later, before connecting to ordering service.\n\t * @param createNewResolvedUrl - Endpoint URL data. See {@link IResolvedUrl}.\n\t * @param logger - Optional telemetry logger to which telemetry events will be forwarded.\n\t * @param clientIsSummarizer - Whether or not the client is the\n\t * {@link https://fluidframework.com/docs/concepts/summarizer/ | summarizer}.\n\t * `undefined` =\\> false\n\t */\n\tcreateContainer(\n\t\tcreateNewSummary: ISummaryTree | undefined,\n\t\tcreateNewResolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService>;\n}\n\n/**\n * Context for uploading a summary to storage.\n * Indicates the previously acked summary.\n */\nexport interface ISummaryContext {\n\t/**\n\t * Parent summary proposed handle (from summary op)\n\t */\n\treadonly proposalHandle: string | undefined;\n\n\t/**\n\t * Parent summary acked handle (from summary ack)\n\t */\n\treadonly ackHandle: string | undefined;\n\n\treadonly referenceSequenceNumber: number;\n}\n\nexport enum FetchSource {\n\tdefault = \"default\",\n\tnoCache = \"noCache\",\n}\n"]}
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA6RH,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC9B;;OAEG;IACH,uEAAS,CAAA;IAET;;OAEG;IACH,qEAAQ,CAAA;AACT,CAAC,EAVW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAU9B;AAkHD,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;AACpB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDisposable,\n\tIEventProvider,\n\tIErrorEvent,\n\tITelemetryBaseLogger,\n} from \"@fluidframework/common-definitions\";\nimport {\n\tConnectionMode,\n\tIClient,\n\tIClientConfiguration,\n\tICreateBlobResponse,\n\tIDocumentMessage,\n\tINack,\n\tISequencedDocumentMessage,\n\tISignalClient,\n\tISignalMessage,\n\tISnapshotTree,\n\tISummaryHandle,\n\tISummaryTree,\n\tITokenClaims,\n\tIVersion,\n} from \"@fluidframework/protocol-definitions\";\nimport { IAnyDriverError } from \"./driverError\";\nimport { IResolvedUrl } from \"./urlResolver\";\n\nexport interface IDeltasFetchResult {\n\t/**\n\t * Sequential set of messages starting from 'from' sequence number.\n\t * May be partial result, i.e. not fulfill original request in full.\n\t */\n\tmessages: ISequencedDocumentMessage[];\n\n\t/**\n\t * If true, storage only partially fulfilled request, but has more ops\n\t * If false, the request was fulfilled. If less ops were returned then\n\t * requested, then storage does not have more ops in this range.\n\t */\n\tpartialResult: boolean;\n}\n\n/**\n * Interface to provide access to stored deltas for a shared object\n */\nexport interface IDeltaStorageService {\n\t/**\n\t * Retrieves all the delta operations within the inclusive sequence number range\n\t * @param tenantId - Id of the tenant.\n\t * @param id - document id.\n\t * @param from - first op to retrieve (inclusive)\n\t * @param to - first op not to retrieve (exclusive end)\n\t * @param fetchReason - Reason for fetching the messages. Example, gap between seq number\n\t * of Op on wire and known seq number. It should not contain any PII. It can be logged by\n\t * spo which could help in debugging sessions if any issue occurs.\n\t */\n\tget(\n\t\ttenantId: string,\n\t\tid: string,\n\t\tfrom: number, // inclusive\n\t\tto: number, // exclusive\n\t\tfetchReason?: string,\n\t): Promise<IDeltasFetchResult>;\n}\n\nexport type IStreamResult<T> = { done: true } | { done: false; value: T };\n\n/**\n * Read interface for the Queue\n */\nexport interface IStream<T> {\n\tread(): Promise<IStreamResult<T>>;\n}\n\n/**\n * Interface to provide access to stored deltas for a shared object\n */\nexport interface IDocumentDeltaStorageService {\n\t/**\n\t * Retrieves all the delta operations within the exclusive sequence number range\n\t * @param from - first op to retrieve (inclusive)\n\t * @param to - first op not to retrieve (exclusive end)\n\t * @param abortSignal - signal that aborts operation\n\t * @param cachedOnly - return only cached ops, i.e. ops available locally on client.\n\t * @param fetchReason - Reason for fetching the messages. Example, gap between seq number\n\t * of Op on wire and known seq number. It should not contain any PII. It can be logged by\n\t * spo which could help in debugging sessions if any issue occurs.\n\t */\n\tfetchMessages(\n\t\tfrom: number,\n\t\tto: number | undefined,\n\t\tabortSignal?: AbortSignal,\n\t\tcachedOnly?: boolean,\n\t\tfetchReason?: string,\n\t): IStream<ISequencedDocumentMessage[]>;\n}\n\n// DO NOT INCREASE THIS TYPE'S VALUE\n// If a driver started using a larger value,\n// internal assumptions of the Runtime's GC feature will be violated\n// DO NOT INCREASE THIS TYPE'S VALUE\nexport type FiveDaysMs = 432_000_000; /* 5 days in milliseconds */\n\n/**\n * Policies describing attributes or characteristics of the driver's storage service,\n * to direct how other components interact with the driver\n */\nexport interface IDocumentStorageServicePolicies {\n\t/**\n\t * Should the Loader implement any sort of pre-fetching or caching mechanism?\n\t */\n\treadonly caching?: LoaderCachingPolicy;\n\n\t/**\n\t * If this policy is provided, it tells runtime on ideal size for blobs.\n\t * Blobs that are smaller than that size should be aggregated into bigger blobs.\n\t */\n\treadonly minBlobSize?: number;\n\n\t/**\n\t * IMPORTANT: This policy MUST be set to 5 days and PROPERLY ENFORCED for drivers that are used\n\t * in applications where Garbage Collection is enabled. Otherwise data loss may occur.\n\t *\n\t * This policy pertains to requests for the latest snapshot from the service.\n\t * If set, it means that the driver guarantees not to use a cached value that was fetched more than 5 days ago.\n\t * If undefined, the driver makes no guarantees about the age of snapshots used for loading.\n\t */\n\treadonly maximumCacheDurationMs?: FiveDaysMs;\n}\n\n/**\n * Interface to provide access to snapshots saved for a shared object\n */\nexport interface IDocumentStorageService extends Partial<IDisposable> {\n\trepositoryUrl: string;\n\n\t/**\n\t * Policies implemented/instructed by driver.\n\t */\n\treadonly policies?: IDocumentStorageServicePolicies;\n\n\t/**\n\t * Returns the snapshot tree.\n\t * @param version - Version of the snapshot to be fetched.\n\t * @param scenarioName - scenario in which this api is called. This will be recorded by server and would help\n\t * in debugging purposes to see why this call was made.\n\t */\n\t// TODO: use `undefined` instead.\n\t// eslint-disable-next-line @rushstack/no-new-null\n\tgetSnapshotTree(version?: IVersion, scenarioName?: string): Promise<ISnapshotTree | null>;\n\n\t/**\n\t * Retrieves all versions of the document starting at the specified versionId - or null if from the head\n\t * @param versionId - Version id of the requested version.\n\t * @param count - Number of the versions to be fetched.\n\t * @param scenarioName - scenario in which this api is called. This will be recorded by server and would help\n\t * in debugging purposes to see why this call was made.\n\t * @param fetchSource - Callers can specify the source of the response. For ex. Driver may choose to cache\n\t * requests and serve data from cache. That will result in stale info returned. Callers can disable this\n\t * functionality by passing fetchSource = noCache and ensuring that driver will return latest information\n\t * from storage.\n\t */\n\tgetVersions(\n\t\t// TODO: use `undefined` instead.\n\t\t// eslint-disable-next-line @rushstack/no-new-null\n\t\tversionId: string | null,\n\t\tcount: number,\n\t\tscenarioName?: string,\n\t\tfetchSource?: FetchSource,\n\t): Promise<IVersion[]>;\n\n\t/**\n\t * Creates a blob out of the given buffer\n\t */\n\tcreateBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;\n\n\t/**\n\t * Reads the object with the given ID, returns content in arrayBufferLike\n\t */\n\treadBlob(id: string): Promise<ArrayBufferLike>;\n\n\t/**\n\t * Uploads a summary tree to storage using the given context for reference of previous summary handle.\n\t * The ISummaryHandles in the uploaded tree should have paths to indicate which summary object they are\n\t * referencing from the previously acked summary.\n\t * Returns the uploaded summary handle.\n\t */\n\tuploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;\n\n\t/**\n\t * Retrieves the commit that matches the packfile handle. If the packfile has already been committed and the\n\t * server has deleted it this call may result in a broken promise.\n\t */\n\tdownloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;\n}\n\nexport interface IDocumentDeltaConnectionEvents extends IErrorEvent {\n\t(event: \"nack\", listener: (documentId: string, message: INack[]) => void);\n\t(event: \"disconnect\", listener: (reason: IAnyDriverError) => void);\n\t(event: \"op\", listener: (documentId: string, messages: ISequencedDocumentMessage[]) => void);\n\t(event: \"signal\", listener: (message: ISignalMessage) => void);\n\t(event: \"pong\", listener: (latency: number) => void);\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"error\", listener: (error: any) => void);\n}\n\nexport interface IDocumentDeltaConnection\n\textends IDisposable,\n\t\tIEventProvider<IDocumentDeltaConnectionEvents> {\n\t/**\n\t * ClientID for the connection\n\t */\n\tclientId: string;\n\n\t/**\n\t * Claims for the client\n\t */\n\tclaims: ITokenClaims;\n\n\t/**\n\t * Mode of the client\n\t */\n\tmode: ConnectionMode;\n\n\t/**\n\t * Whether the connection was made to a new or existing document\n\t */\n\texisting: boolean;\n\n\t/**\n\t * Protocol version being used with the service\n\t */\n\tversion: string;\n\n\t/**\n\t * Messages sent during the connection\n\t */\n\tinitialMessages: ISequencedDocumentMessage[];\n\n\t/**\n\t * Signals sent during the connection\n\t */\n\tinitialSignals: ISignalMessage[];\n\n\t/**\n\t * Prior clients already connected.\n\t */\n\tinitialClients: ISignalClient[];\n\n\t/**\n\t * Configuration details provided by the service\n\t */\n\tserviceConfiguration: IClientConfiguration;\n\n\t/**\n\t * Last known sequence number to ordering service at the time of connection\n\t * It may lap actual last sequence number (quite a bit, if container is very active).\n\t * But it's best information for client to figure out how far it is behind, at least\n\t * for \"read\" connections. \"write\" connections may use own \"join\" op to similar information,\n\t * that is likely to be more up-to-date.\n\t */\n\tcheckpointSequenceNumber?: number;\n\n\t/**\n\t * Properties that server can send to client to tell info about node that client is connected to. For ex, for spo\n\t * it could contain info like build version, environment, region etc. These properties can be logged by client\n\t * to better understand server environment etc. and use it in case error occurs.\n\t * Format: \"prop1:val1;prop2:val2;prop3:val3\"\n\t */\n\trelayServiceAgent?: string;\n\n\t/**\n\t * Submit a new message to the server\n\t */\n\tsubmit(messages: IDocumentMessage[]): void;\n\n\t/**\n\t * Submit a new signal to the server\n\t */\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tsubmitSignal(message: any): void;\n}\n\nexport enum LoaderCachingPolicy {\n\t/**\n\t * The loader should not implement any prefetching or caching policy.\n\t */\n\tNoCaching,\n\n\t/**\n\t * The loader should implement prefetching policy, i.e. it should prefetch resources from the latest snapshot.\n\t */\n\tPrefetch,\n}\n\nexport interface IDocumentServicePolicies {\n\t/**\n\t * Do not connect to delta stream\n\t */\n\treadonly storageOnly?: boolean;\n\n\t/**\n\t * Summarizer uploads the protocol tree too when summarizing.\n\t */\n\treadonly summarizeProtocolTree?: boolean;\n}\n\nexport interface IDocumentService {\n\tresolvedUrl: IResolvedUrl;\n\n\t/**\n\t * Policies implemented/instructed by driver.\n\t */\n\tpolicies?: IDocumentServicePolicies;\n\n\t/**\n\t * Access to storage associated with the document\n\t */\n\tconnectToStorage(): Promise<IDocumentStorageService>;\n\n\t/**\n\t * Access to delta storage associated with the document\n\t */\n\tconnectToDeltaStorage(): Promise<IDocumentDeltaStorageService>;\n\n\t/**\n\t * Subscribes to the document delta stream\n\t */\n\tconnectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection>;\n\n\t/**\n\t * Dispose storage. Called by storage consumer (Container) when it's done with storage (Container closed).\n\t * Useful for storage to commit any pending state if any (including any local caching).\n\t * Please note that it does not remove the need for caller to close all active delta connections,\n\t * as storage may not be tracking such objects.\n\t * @param error - tells if container (and storage) are closed due to critical error.\n\t * Error might be due to disconnect between client & server knowledge about file, like file being overwritten\n\t * in storage, but client having stale local cache.\n\t * If driver implements any kind of local caching, such caches needs to be cleared on on critical errors.\n\t */\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tdispose(error?: any): void;\n}\n\nexport interface IDocumentServiceFactory {\n\t/**\n\t * Name of the protocol used by factory\n\t *\n\t * @deprecated 2.0.0-internal.3.3.0 Document service factories should not be distinguished by unique non-standard protocols. To be removed in an upcoming release.\n\t */\n\tprotocolName: string;\n\n\t/**\n\t * Creates the document service after extracting different endpoints URLs from a resolved URL.\n\t *\n\t * @param resolvedUrl - Endpoint URL data. See {@link IResolvedUrl}.\n\t * @param logger - Optional telemetry logger to which telemetry events will be forwarded.\n\t * @param clientIsSummarizer - Whether or not the client is the\n\t * {@link https://fluidframework.com/docs/concepts/summarizer/ | summarizer}.\n\t * `undefined` =\\> false\n\t *\n\t * @returns An instance of {@link IDocumentService}.\n\t */\n\tcreateDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService>;\n\n\t/**\n\t * Creates a new document with the provided options. Returns the document service.\n\t *\n\t * @param createNewSummary - Summary used to create file. If undefined, an empty file will be created and a summary\n\t * should be posted later, before connecting to ordering service.\n\t * @param createNewResolvedUrl - Endpoint URL data. See {@link IResolvedUrl}.\n\t * @param logger - Optional telemetry logger to which telemetry events will be forwarded.\n\t * @param clientIsSummarizer - Whether or not the client is the\n\t * {@link https://fluidframework.com/docs/concepts/summarizer/ | summarizer}.\n\t * `undefined` =\\> false\n\t */\n\tcreateContainer(\n\t\tcreateNewSummary: ISummaryTree | undefined,\n\t\tcreateNewResolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService>;\n}\n\n/**\n * Context for uploading a summary to storage.\n * Indicates the previously acked summary.\n */\nexport interface ISummaryContext {\n\t/**\n\t * Parent summary proposed handle (from summary op)\n\t */\n\treadonly proposalHandle: string | undefined;\n\n\t/**\n\t * Parent summary acked handle (from summary ack)\n\t */\n\treadonly ackHandle: string | undefined;\n\n\treadonly referenceSequenceNumber: number;\n}\n\nexport enum FetchSource {\n\tdefault = \"default\",\n\tnoCache = \"noCache\",\n}\n"]}
|
package/lib/storage.d.ts
CHANGED
|
@@ -223,6 +223,10 @@ export interface IDocumentServicePolicies {
|
|
|
223
223
|
* Do not connect to delta stream
|
|
224
224
|
*/
|
|
225
225
|
readonly storageOnly?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Summarizer uploads the protocol tree too when summarizing.
|
|
228
|
+
*/
|
|
229
|
+
readonly summarizeProtocolTree?: boolean;
|
|
226
230
|
}
|
|
227
231
|
export interface IDocumentService {
|
|
228
232
|
resolvedUrl: IResolvedUrl;
|
|
@@ -257,6 +261,8 @@ export interface IDocumentService {
|
|
|
257
261
|
export interface IDocumentServiceFactory {
|
|
258
262
|
/**
|
|
259
263
|
* Name of the protocol used by factory
|
|
264
|
+
*
|
|
265
|
+
* @deprecated 2.0.0-internal.3.3.0 Document service factories should not be distinguished by unique non-standard protocols. To be removed in an upcoming release.
|
|
260
266
|
*/
|
|
261
267
|
protocolName: string;
|
|
262
268
|
/**
|
package/lib/storage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACN,cAAc,EACd,OAAO,EACP,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB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AY,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;OAUG;IACH,qBAAqB,CACpB,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7B;;;;;;;;;;OAUG;IACH,eAAe,CACd,gBAAgB,EAAE,YAAY,GAAG,SAAS,EAC1C,oBAAoB,EAAE,YAAY,EAClC,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAEvC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;CACzC;AAED,oBAAY,WAAW;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;CACnB"}
|
package/lib/storage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6RH,MAAM,CAAN,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC9B;;OAEG;IACH,uEAAS,CAAA;IAET;;OAEG;IACH,qEAAQ,CAAA;AACT,CAAC,EAVW,mBAAmB,KAAnB,mBAAmB,QAU9B;AA2GD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;AACpB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDisposable,\n\tIEventProvider,\n\tIErrorEvent,\n\tITelemetryBaseLogger,\n} from \"@fluidframework/common-definitions\";\nimport {\n\tConnectionMode,\n\tIClient,\n\tIClientConfiguration,\n\tICreateBlobResponse,\n\tIDocumentMessage,\n\tINack,\n\tISequencedDocumentMessage,\n\tISignalClient,\n\tISignalMessage,\n\tISnapshotTree,\n\tISummaryHandle,\n\tISummaryTree,\n\tITokenClaims,\n\tIVersion,\n} from \"@fluidframework/protocol-definitions\";\nimport { IAnyDriverError } from \"./driverError\";\nimport { IResolvedUrl } from \"./urlResolver\";\n\nexport interface IDeltasFetchResult {\n\t/**\n\t * Sequential set of messages starting from 'from' sequence number.\n\t * May be partial result, i.e. not fulfill original request in full.\n\t */\n\tmessages: ISequencedDocumentMessage[];\n\n\t/**\n\t * If true, storage only partially fulfilled request, but has more ops\n\t * If false, the request was fulfilled. If less ops were returned then\n\t * requested, then storage does not have more ops in this range.\n\t */\n\tpartialResult: boolean;\n}\n\n/**\n * Interface to provide access to stored deltas for a shared object\n */\nexport interface IDeltaStorageService {\n\t/**\n\t * Retrieves all the delta operations within the inclusive sequence number range\n\t * @param tenantId - Id of the tenant.\n\t * @param id - document id.\n\t * @param from - first op to retrieve (inclusive)\n\t * @param to - first op not to retrieve (exclusive end)\n\t * @param fetchReason - Reason for fetching the messages. Example, gap between seq number\n\t * of Op on wire and known seq number. It should not contain any PII. It can be logged by\n\t * spo which could help in debugging sessions if any issue occurs.\n\t */\n\tget(\n\t\ttenantId: string,\n\t\tid: string,\n\t\tfrom: number, // inclusive\n\t\tto: number, // exclusive\n\t\tfetchReason?: string,\n\t): Promise<IDeltasFetchResult>;\n}\n\nexport type IStreamResult<T> = { done: true } | { done: false; value: T };\n\n/**\n * Read interface for the Queue\n */\nexport interface IStream<T> {\n\tread(): Promise<IStreamResult<T>>;\n}\n\n/**\n * Interface to provide access to stored deltas for a shared object\n */\nexport interface IDocumentDeltaStorageService {\n\t/**\n\t * Retrieves all the delta operations within the exclusive sequence number range\n\t * @param from - first op to retrieve (inclusive)\n\t * @param to - first op not to retrieve (exclusive end)\n\t * @param abortSignal - signal that aborts operation\n\t * @param cachedOnly - return only cached ops, i.e. ops available locally on client.\n\t * @param fetchReason - Reason for fetching the messages. Example, gap between seq number\n\t * of Op on wire and known seq number. It should not contain any PII. It can be logged by\n\t * spo which could help in debugging sessions if any issue occurs.\n\t */\n\tfetchMessages(\n\t\tfrom: number,\n\t\tto: number | undefined,\n\t\tabortSignal?: AbortSignal,\n\t\tcachedOnly?: boolean,\n\t\tfetchReason?: string,\n\t): IStream<ISequencedDocumentMessage[]>;\n}\n\n// DO NOT INCREASE THIS TYPE'S VALUE\n// If a driver started using a larger value,\n// internal assumptions of the Runtime's GC feature will be violated\n// DO NOT INCREASE THIS TYPE'S VALUE\nexport type FiveDaysMs = 432_000_000; /* 5 days in milliseconds */\n\n/**\n * Policies describing attributes or characteristics of the driver's storage service,\n * to direct how other components interact with the driver\n */\nexport interface IDocumentStorageServicePolicies {\n\t/**\n\t * Should the Loader implement any sort of pre-fetching or caching mechanism?\n\t */\n\treadonly caching?: LoaderCachingPolicy;\n\n\t/**\n\t * If this policy is provided, it tells runtime on ideal size for blobs.\n\t * Blobs that are smaller than that size should be aggregated into bigger blobs.\n\t */\n\treadonly minBlobSize?: number;\n\n\t/**\n\t * IMPORTANT: This policy MUST be set to 5 days and PROPERLY ENFORCED for drivers that are used\n\t * in applications where Garbage Collection is enabled. Otherwise data loss may occur.\n\t *\n\t * This policy pertains to requests for the latest snapshot from the service.\n\t * If set, it means that the driver guarantees not to use a cached value that was fetched more than 5 days ago.\n\t * If undefined, the driver makes no guarantees about the age of snapshots used for loading.\n\t */\n\treadonly maximumCacheDurationMs?: FiveDaysMs;\n}\n\n/**\n * Interface to provide access to snapshots saved for a shared object\n */\nexport interface IDocumentStorageService extends Partial<IDisposable> {\n\trepositoryUrl: string;\n\n\t/**\n\t * Policies implemented/instructed by driver.\n\t */\n\treadonly policies?: IDocumentStorageServicePolicies;\n\n\t/**\n\t * Returns the snapshot tree.\n\t * @param version - Version of the snapshot to be fetched.\n\t * @param scenarioName - scenario in which this api is called. This will be recorded by server and would help\n\t * in debugging purposes to see why this call was made.\n\t */\n\t// TODO: use `undefined` instead.\n\t// eslint-disable-next-line @rushstack/no-new-null\n\tgetSnapshotTree(version?: IVersion, scenarioName?: string): Promise<ISnapshotTree | null>;\n\n\t/**\n\t * Retrieves all versions of the document starting at the specified versionId - or null if from the head\n\t * @param versionId - Version id of the requested version.\n\t * @param count - Number of the versions to be fetched.\n\t * @param scenarioName - scenario in which this api is called. This will be recorded by server and would help\n\t * in debugging purposes to see why this call was made.\n\t * @param fetchSource - Callers can specify the source of the response. For ex. Driver may choose to cache\n\t * requests and serve data from cache. That will result in stale info returned. Callers can disable this\n\t * functionality by passing fetchSource = noCache and ensuring that driver will return latest information\n\t * from storage.\n\t */\n\tgetVersions(\n\t\t// TODO: use `undefined` instead.\n\t\t// eslint-disable-next-line @rushstack/no-new-null\n\t\tversionId: string | null,\n\t\tcount: number,\n\t\tscenarioName?: string,\n\t\tfetchSource?: FetchSource,\n\t): Promise<IVersion[]>;\n\n\t/**\n\t * Creates a blob out of the given buffer\n\t */\n\tcreateBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;\n\n\t/**\n\t * Reads the object with the given ID, returns content in arrayBufferLike\n\t */\n\treadBlob(id: string): Promise<ArrayBufferLike>;\n\n\t/**\n\t * Uploads a summary tree to storage using the given context for reference of previous summary handle.\n\t * The ISummaryHandles in the uploaded tree should have paths to indicate which summary object they are\n\t * referencing from the previously acked summary.\n\t * Returns the uploaded summary handle.\n\t */\n\tuploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;\n\n\t/**\n\t * Retrieves the commit that matches the packfile handle. If the packfile has already been committed and the\n\t * server has deleted it this call may result in a broken promise.\n\t */\n\tdownloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;\n}\n\nexport interface IDocumentDeltaConnectionEvents extends IErrorEvent {\n\t(event: \"nack\", listener: (documentId: string, message: INack[]) => void);\n\t(event: \"disconnect\", listener: (reason: IAnyDriverError) => void);\n\t(event: \"op\", listener: (documentId: string, messages: ISequencedDocumentMessage[]) => void);\n\t(event: \"signal\", listener: (message: ISignalMessage) => void);\n\t(event: \"pong\", listener: (latency: number) => void);\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"error\", listener: (error: any) => void);\n}\n\nexport interface IDocumentDeltaConnection\n\textends IDisposable,\n\t\tIEventProvider<IDocumentDeltaConnectionEvents> {\n\t/**\n\t * ClientID for the connection\n\t */\n\tclientId: string;\n\n\t/**\n\t * Claims for the client\n\t */\n\tclaims: ITokenClaims;\n\n\t/**\n\t * Mode of the client\n\t */\n\tmode: ConnectionMode;\n\n\t/**\n\t * Whether the connection was made to a new or existing document\n\t */\n\texisting: boolean;\n\n\t/**\n\t * Protocol version being used with the service\n\t */\n\tversion: string;\n\n\t/**\n\t * Messages sent during the connection\n\t */\n\tinitialMessages: ISequencedDocumentMessage[];\n\n\t/**\n\t * Signals sent during the connection\n\t */\n\tinitialSignals: ISignalMessage[];\n\n\t/**\n\t * Prior clients already connected.\n\t */\n\tinitialClients: ISignalClient[];\n\n\t/**\n\t * Configuration details provided by the service\n\t */\n\tserviceConfiguration: IClientConfiguration;\n\n\t/**\n\t * Last known sequence number to ordering service at the time of connection\n\t * It may lap actual last sequence number (quite a bit, if container is very active).\n\t * But it's best information for client to figure out how far it is behind, at least\n\t * for \"read\" connections. \"write\" connections may use own \"join\" op to similar information,\n\t * that is likely to be more up-to-date.\n\t */\n\tcheckpointSequenceNumber?: number;\n\n\t/**\n\t * Properties that server can send to client to tell info about node that client is connected to. For ex, for spo\n\t * it could contain info like build version, environment, region etc. These properties can be logged by client\n\t * to better understand server environment etc. and use it in case error occurs.\n\t * Format: \"prop1:val1;prop2:val2;prop3:val3\"\n\t */\n\trelayServiceAgent?: string;\n\n\t/**\n\t * Submit a new message to the server\n\t */\n\tsubmit(messages: IDocumentMessage[]): void;\n\n\t/**\n\t * Submit a new signal to the server\n\t */\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tsubmitSignal(message: any): void;\n}\n\nexport enum LoaderCachingPolicy {\n\t/**\n\t * The loader should not implement any prefetching or caching policy.\n\t */\n\tNoCaching,\n\n\t/**\n\t * The loader should implement prefetching policy, i.e. it should prefetch resources from the latest snapshot.\n\t */\n\tPrefetch,\n}\n\nexport interface IDocumentServicePolicies {\n\t/**\n\t * Do not connect to delta stream\n\t */\n\treadonly storageOnly?: boolean;\n}\n\nexport interface IDocumentService {\n\tresolvedUrl: IResolvedUrl;\n\n\t/**\n\t * Policies implemented/instructed by driver.\n\t */\n\tpolicies?: IDocumentServicePolicies;\n\n\t/**\n\t * Access to storage associated with the document\n\t */\n\tconnectToStorage(): Promise<IDocumentStorageService>;\n\n\t/**\n\t * Access to delta storage associated with the document\n\t */\n\tconnectToDeltaStorage(): Promise<IDocumentDeltaStorageService>;\n\n\t/**\n\t * Subscribes to the document delta stream\n\t */\n\tconnectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection>;\n\n\t/**\n\t * Dispose storage. Called by storage consumer (Container) when it's done with storage (Container closed).\n\t * Useful for storage to commit any pending state if any (including any local caching).\n\t * Please note that it does not remove the need for caller to close all active delta connections,\n\t * as storage may not be tracking such objects.\n\t * @param error - tells if container (and storage) are closed due to critical error.\n\t * Error might be due to disconnect between client & server knowledge about file, like file being overwritten\n\t * in storage, but client having stale local cache.\n\t * If driver implements any kind of local caching, such caches needs to be cleared on on critical errors.\n\t */\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tdispose(error?: any): void;\n}\n\nexport interface IDocumentServiceFactory {\n\t/**\n\t * Name of the protocol used by factory\n\t */\n\tprotocolName: string;\n\n\t/**\n\t * Creates the document service after extracting different endpoints URLs from a resolved URL.\n\t *\n\t * @param resolvedUrl - Endpoint URL data. See {@link IResolvedUrl}.\n\t * @param logger - Optional telemetry logger to which telemetry events will be forwarded.\n\t * @param clientIsSummarizer - Whether or not the client is the\n\t * {@link https://fluidframework.com/docs/concepts/summarizer/ | summarizer}.\n\t * `undefined` =\\> false\n\t *\n\t * @returns An instance of {@link IDocumentService}.\n\t */\n\tcreateDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService>;\n\n\t/**\n\t * Creates a new document with the provided options. Returns the document service.\n\t *\n\t * @param createNewSummary - Summary used to create file. If undefined, an empty file will be created and a summary\n\t * should be posted later, before connecting to ordering service.\n\t * @param createNewResolvedUrl - Endpoint URL data. See {@link IResolvedUrl}.\n\t * @param logger - Optional telemetry logger to which telemetry events will be forwarded.\n\t * @param clientIsSummarizer - Whether or not the client is the\n\t * {@link https://fluidframework.com/docs/concepts/summarizer/ | summarizer}.\n\t * `undefined` =\\> false\n\t */\n\tcreateContainer(\n\t\tcreateNewSummary: ISummaryTree | undefined,\n\t\tcreateNewResolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService>;\n}\n\n/**\n * Context for uploading a summary to storage.\n * Indicates the previously acked summary.\n */\nexport interface ISummaryContext {\n\t/**\n\t * Parent summary proposed handle (from summary op)\n\t */\n\treadonly proposalHandle: string | undefined;\n\n\t/**\n\t * Parent summary acked handle (from summary ack)\n\t */\n\treadonly ackHandle: string | undefined;\n\n\treadonly referenceSequenceNumber: number;\n}\n\nexport enum FetchSource {\n\tdefault = \"default\",\n\tnoCache = \"noCache\",\n}\n"]}
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6RH,MAAM,CAAN,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC9B;;OAEG;IACH,uEAAS,CAAA;IAET;;OAEG;IACH,qEAAQ,CAAA;AACT,CAAC,EAVW,mBAAmB,KAAnB,mBAAmB,QAU9B;AAkHD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;AACpB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDisposable,\n\tIEventProvider,\n\tIErrorEvent,\n\tITelemetryBaseLogger,\n} from \"@fluidframework/common-definitions\";\nimport {\n\tConnectionMode,\n\tIClient,\n\tIClientConfiguration,\n\tICreateBlobResponse,\n\tIDocumentMessage,\n\tINack,\n\tISequencedDocumentMessage,\n\tISignalClient,\n\tISignalMessage,\n\tISnapshotTree,\n\tISummaryHandle,\n\tISummaryTree,\n\tITokenClaims,\n\tIVersion,\n} from \"@fluidframework/protocol-definitions\";\nimport { IAnyDriverError } from \"./driverError\";\nimport { IResolvedUrl } from \"./urlResolver\";\n\nexport interface IDeltasFetchResult {\n\t/**\n\t * Sequential set of messages starting from 'from' sequence number.\n\t * May be partial result, i.e. not fulfill original request in full.\n\t */\n\tmessages: ISequencedDocumentMessage[];\n\n\t/**\n\t * If true, storage only partially fulfilled request, but has more ops\n\t * If false, the request was fulfilled. If less ops were returned then\n\t * requested, then storage does not have more ops in this range.\n\t */\n\tpartialResult: boolean;\n}\n\n/**\n * Interface to provide access to stored deltas for a shared object\n */\nexport interface IDeltaStorageService {\n\t/**\n\t * Retrieves all the delta operations within the inclusive sequence number range\n\t * @param tenantId - Id of the tenant.\n\t * @param id - document id.\n\t * @param from - first op to retrieve (inclusive)\n\t * @param to - first op not to retrieve (exclusive end)\n\t * @param fetchReason - Reason for fetching the messages. Example, gap between seq number\n\t * of Op on wire and known seq number. It should not contain any PII. It can be logged by\n\t * spo which could help in debugging sessions if any issue occurs.\n\t */\n\tget(\n\t\ttenantId: string,\n\t\tid: string,\n\t\tfrom: number, // inclusive\n\t\tto: number, // exclusive\n\t\tfetchReason?: string,\n\t): Promise<IDeltasFetchResult>;\n}\n\nexport type IStreamResult<T> = { done: true } | { done: false; value: T };\n\n/**\n * Read interface for the Queue\n */\nexport interface IStream<T> {\n\tread(): Promise<IStreamResult<T>>;\n}\n\n/**\n * Interface to provide access to stored deltas for a shared object\n */\nexport interface IDocumentDeltaStorageService {\n\t/**\n\t * Retrieves all the delta operations within the exclusive sequence number range\n\t * @param from - first op to retrieve (inclusive)\n\t * @param to - first op not to retrieve (exclusive end)\n\t * @param abortSignal - signal that aborts operation\n\t * @param cachedOnly - return only cached ops, i.e. ops available locally on client.\n\t * @param fetchReason - Reason for fetching the messages. Example, gap between seq number\n\t * of Op on wire and known seq number. It should not contain any PII. It can be logged by\n\t * spo which could help in debugging sessions if any issue occurs.\n\t */\n\tfetchMessages(\n\t\tfrom: number,\n\t\tto: number | undefined,\n\t\tabortSignal?: AbortSignal,\n\t\tcachedOnly?: boolean,\n\t\tfetchReason?: string,\n\t): IStream<ISequencedDocumentMessage[]>;\n}\n\n// DO NOT INCREASE THIS TYPE'S VALUE\n// If a driver started using a larger value,\n// internal assumptions of the Runtime's GC feature will be violated\n// DO NOT INCREASE THIS TYPE'S VALUE\nexport type FiveDaysMs = 432_000_000; /* 5 days in milliseconds */\n\n/**\n * Policies describing attributes or characteristics of the driver's storage service,\n * to direct how other components interact with the driver\n */\nexport interface IDocumentStorageServicePolicies {\n\t/**\n\t * Should the Loader implement any sort of pre-fetching or caching mechanism?\n\t */\n\treadonly caching?: LoaderCachingPolicy;\n\n\t/**\n\t * If this policy is provided, it tells runtime on ideal size for blobs.\n\t * Blobs that are smaller than that size should be aggregated into bigger blobs.\n\t */\n\treadonly minBlobSize?: number;\n\n\t/**\n\t * IMPORTANT: This policy MUST be set to 5 days and PROPERLY ENFORCED for drivers that are used\n\t * in applications where Garbage Collection is enabled. Otherwise data loss may occur.\n\t *\n\t * This policy pertains to requests for the latest snapshot from the service.\n\t * If set, it means that the driver guarantees not to use a cached value that was fetched more than 5 days ago.\n\t * If undefined, the driver makes no guarantees about the age of snapshots used for loading.\n\t */\n\treadonly maximumCacheDurationMs?: FiveDaysMs;\n}\n\n/**\n * Interface to provide access to snapshots saved for a shared object\n */\nexport interface IDocumentStorageService extends Partial<IDisposable> {\n\trepositoryUrl: string;\n\n\t/**\n\t * Policies implemented/instructed by driver.\n\t */\n\treadonly policies?: IDocumentStorageServicePolicies;\n\n\t/**\n\t * Returns the snapshot tree.\n\t * @param version - Version of the snapshot to be fetched.\n\t * @param scenarioName - scenario in which this api is called. This will be recorded by server and would help\n\t * in debugging purposes to see why this call was made.\n\t */\n\t// TODO: use `undefined` instead.\n\t// eslint-disable-next-line @rushstack/no-new-null\n\tgetSnapshotTree(version?: IVersion, scenarioName?: string): Promise<ISnapshotTree | null>;\n\n\t/**\n\t * Retrieves all versions of the document starting at the specified versionId - or null if from the head\n\t * @param versionId - Version id of the requested version.\n\t * @param count - Number of the versions to be fetched.\n\t * @param scenarioName - scenario in which this api is called. This will be recorded by server and would help\n\t * in debugging purposes to see why this call was made.\n\t * @param fetchSource - Callers can specify the source of the response. For ex. Driver may choose to cache\n\t * requests and serve data from cache. That will result in stale info returned. Callers can disable this\n\t * functionality by passing fetchSource = noCache and ensuring that driver will return latest information\n\t * from storage.\n\t */\n\tgetVersions(\n\t\t// TODO: use `undefined` instead.\n\t\t// eslint-disable-next-line @rushstack/no-new-null\n\t\tversionId: string | null,\n\t\tcount: number,\n\t\tscenarioName?: string,\n\t\tfetchSource?: FetchSource,\n\t): Promise<IVersion[]>;\n\n\t/**\n\t * Creates a blob out of the given buffer\n\t */\n\tcreateBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;\n\n\t/**\n\t * Reads the object with the given ID, returns content in arrayBufferLike\n\t */\n\treadBlob(id: string): Promise<ArrayBufferLike>;\n\n\t/**\n\t * Uploads a summary tree to storage using the given context for reference of previous summary handle.\n\t * The ISummaryHandles in the uploaded tree should have paths to indicate which summary object they are\n\t * referencing from the previously acked summary.\n\t * Returns the uploaded summary handle.\n\t */\n\tuploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;\n\n\t/**\n\t * Retrieves the commit that matches the packfile handle. If the packfile has already been committed and the\n\t * server has deleted it this call may result in a broken promise.\n\t */\n\tdownloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;\n}\n\nexport interface IDocumentDeltaConnectionEvents extends IErrorEvent {\n\t(event: \"nack\", listener: (documentId: string, message: INack[]) => void);\n\t(event: \"disconnect\", listener: (reason: IAnyDriverError) => void);\n\t(event: \"op\", listener: (documentId: string, messages: ISequencedDocumentMessage[]) => void);\n\t(event: \"signal\", listener: (message: ISignalMessage) => void);\n\t(event: \"pong\", listener: (latency: number) => void);\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"error\", listener: (error: any) => void);\n}\n\nexport interface IDocumentDeltaConnection\n\textends IDisposable,\n\t\tIEventProvider<IDocumentDeltaConnectionEvents> {\n\t/**\n\t * ClientID for the connection\n\t */\n\tclientId: string;\n\n\t/**\n\t * Claims for the client\n\t */\n\tclaims: ITokenClaims;\n\n\t/**\n\t * Mode of the client\n\t */\n\tmode: ConnectionMode;\n\n\t/**\n\t * Whether the connection was made to a new or existing document\n\t */\n\texisting: boolean;\n\n\t/**\n\t * Protocol version being used with the service\n\t */\n\tversion: string;\n\n\t/**\n\t * Messages sent during the connection\n\t */\n\tinitialMessages: ISequencedDocumentMessage[];\n\n\t/**\n\t * Signals sent during the connection\n\t */\n\tinitialSignals: ISignalMessage[];\n\n\t/**\n\t * Prior clients already connected.\n\t */\n\tinitialClients: ISignalClient[];\n\n\t/**\n\t * Configuration details provided by the service\n\t */\n\tserviceConfiguration: IClientConfiguration;\n\n\t/**\n\t * Last known sequence number to ordering service at the time of connection\n\t * It may lap actual last sequence number (quite a bit, if container is very active).\n\t * But it's best information for client to figure out how far it is behind, at least\n\t * for \"read\" connections. \"write\" connections may use own \"join\" op to similar information,\n\t * that is likely to be more up-to-date.\n\t */\n\tcheckpointSequenceNumber?: number;\n\n\t/**\n\t * Properties that server can send to client to tell info about node that client is connected to. For ex, for spo\n\t * it could contain info like build version, environment, region etc. These properties can be logged by client\n\t * to better understand server environment etc. and use it in case error occurs.\n\t * Format: \"prop1:val1;prop2:val2;prop3:val3\"\n\t */\n\trelayServiceAgent?: string;\n\n\t/**\n\t * Submit a new message to the server\n\t */\n\tsubmit(messages: IDocumentMessage[]): void;\n\n\t/**\n\t * Submit a new signal to the server\n\t */\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tsubmitSignal(message: any): void;\n}\n\nexport enum LoaderCachingPolicy {\n\t/**\n\t * The loader should not implement any prefetching or caching policy.\n\t */\n\tNoCaching,\n\n\t/**\n\t * The loader should implement prefetching policy, i.e. it should prefetch resources from the latest snapshot.\n\t */\n\tPrefetch,\n}\n\nexport interface IDocumentServicePolicies {\n\t/**\n\t * Do not connect to delta stream\n\t */\n\treadonly storageOnly?: boolean;\n\n\t/**\n\t * Summarizer uploads the protocol tree too when summarizing.\n\t */\n\treadonly summarizeProtocolTree?: boolean;\n}\n\nexport interface IDocumentService {\n\tresolvedUrl: IResolvedUrl;\n\n\t/**\n\t * Policies implemented/instructed by driver.\n\t */\n\tpolicies?: IDocumentServicePolicies;\n\n\t/**\n\t * Access to storage associated with the document\n\t */\n\tconnectToStorage(): Promise<IDocumentStorageService>;\n\n\t/**\n\t * Access to delta storage associated with the document\n\t */\n\tconnectToDeltaStorage(): Promise<IDocumentDeltaStorageService>;\n\n\t/**\n\t * Subscribes to the document delta stream\n\t */\n\tconnectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection>;\n\n\t/**\n\t * Dispose storage. Called by storage consumer (Container) when it's done with storage (Container closed).\n\t * Useful for storage to commit any pending state if any (including any local caching).\n\t * Please note that it does not remove the need for caller to close all active delta connections,\n\t * as storage may not be tracking such objects.\n\t * @param error - tells if container (and storage) are closed due to critical error.\n\t * Error might be due to disconnect between client & server knowledge about file, like file being overwritten\n\t * in storage, but client having stale local cache.\n\t * If driver implements any kind of local caching, such caches needs to be cleared on on critical errors.\n\t */\n\t// TODO: Use something other than `any`.\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tdispose(error?: any): void;\n}\n\nexport interface IDocumentServiceFactory {\n\t/**\n\t * Name of the protocol used by factory\n\t *\n\t * @deprecated 2.0.0-internal.3.3.0 Document service factories should not be distinguished by unique non-standard protocols. To be removed in an upcoming release.\n\t */\n\tprotocolName: string;\n\n\t/**\n\t * Creates the document service after extracting different endpoints URLs from a resolved URL.\n\t *\n\t * @param resolvedUrl - Endpoint URL data. See {@link IResolvedUrl}.\n\t * @param logger - Optional telemetry logger to which telemetry events will be forwarded.\n\t * @param clientIsSummarizer - Whether or not the client is the\n\t * {@link https://fluidframework.com/docs/concepts/summarizer/ | summarizer}.\n\t * `undefined` =\\> false\n\t *\n\t * @returns An instance of {@link IDocumentService}.\n\t */\n\tcreateDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService>;\n\n\t/**\n\t * Creates a new document with the provided options. Returns the document service.\n\t *\n\t * @param createNewSummary - Summary used to create file. If undefined, an empty file will be created and a summary\n\t * should be posted later, before connecting to ordering service.\n\t * @param createNewResolvedUrl - Endpoint URL data. See {@link IResolvedUrl}.\n\t * @param logger - Optional telemetry logger to which telemetry events will be forwarded.\n\t * @param clientIsSummarizer - Whether or not the client is the\n\t * {@link https://fluidframework.com/docs/concepts/summarizer/ | summarizer}.\n\t * `undefined` =\\> false\n\t */\n\tcreateContainer(\n\t\tcreateNewSummary: ISummaryTree | undefined,\n\t\tcreateNewResolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService>;\n}\n\n/**\n * Context for uploading a summary to storage.\n * Indicates the previously acked summary.\n */\nexport interface ISummaryContext {\n\t/**\n\t * Parent summary proposed handle (from summary op)\n\t */\n\treadonly proposalHandle: string | undefined;\n\n\t/**\n\t * Parent summary acked handle (from summary ack)\n\t */\n\treadonly ackHandle: string | undefined;\n\n\treadonly referenceSequenceNumber: number;\n}\n\nexport enum FetchSource {\n\tdefault = \"default\",\n\tnoCache = \"noCache\",\n}\n"]}
|
|
@@ -16,10 +16,10 @@ use_current_InterfaceDeclaration_IAuthorizationError(get_old_InterfaceDeclaratio
|
|
|
16
16
|
use_old_InterfaceDeclaration_IAuthorizationError(get_current_InterfaceDeclaration_IAuthorizationError());
|
|
17
17
|
use_current_InterfaceDeclaration_IContainerPackageInfo(get_old_InterfaceDeclaration_IContainerPackageInfo());
|
|
18
18
|
use_old_InterfaceDeclaration_IContainerPackageInfo(get_current_InterfaceDeclaration_IContainerPackageInfo());
|
|
19
|
-
use_current_InterfaceDeclaration_IDeltasFetchResult(get_old_InterfaceDeclaration_IDeltasFetchResult());
|
|
20
|
-
use_old_InterfaceDeclaration_IDeltasFetchResult(get_current_InterfaceDeclaration_IDeltasFetchResult());
|
|
21
19
|
use_current_InterfaceDeclaration_IDeltaStorageService(get_old_InterfaceDeclaration_IDeltaStorageService());
|
|
22
20
|
use_old_InterfaceDeclaration_IDeltaStorageService(get_current_InterfaceDeclaration_IDeltaStorageService());
|
|
21
|
+
use_current_InterfaceDeclaration_IDeltasFetchResult(get_old_InterfaceDeclaration_IDeltasFetchResult());
|
|
22
|
+
use_old_InterfaceDeclaration_IDeltasFetchResult(get_current_InterfaceDeclaration_IDeltasFetchResult());
|
|
23
23
|
use_current_InterfaceDeclaration_IDocumentDeltaConnection(get_old_InterfaceDeclaration_IDocumentDeltaConnection());
|
|
24
24
|
use_old_InterfaceDeclaration_IDocumentDeltaConnection(get_current_InterfaceDeclaration_IDocumentDeltaConnection());
|
|
25
25
|
use_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents(get_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateDriverDefinitionsPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateDriverDefinitionsPrevious.generated.ts"],"names":[],"mappings":"AAwBA,4CAA4C,CACxC,wCAAwC,EAAE,CAAC,CAAC;AAWhD,wCAAwC,CACpC,4CAA4C,EAAE,CAAC,CAAC;AAWpD,2CAA2C,CACvC,uCAAuC,EAAE,CAAC,CAAC;AAW/C,uCAAuC,CACnC,2CAA2C,EAAE,CAAC,CAAC;AAWnD,wCAAwC,CACpC,oCAAoC,EAAE,CAAC,CAAC;AAW5C,oCAAoC,CAChC,wCAAwC,EAAE,CAAC,CAAC;AAWhD,mDAAmD,CAC/C,+CAA+C,EAAE,CAAC,CAAC;AAWvD,+CAA+C,CAC3C,mDAAmD,EAAE,CAAC,CAAC;AAW3D,uCAAuC,CACnC,mCAAmC,EAAE,CAAC,CAAC;AAW3C,mCAAmC,CAC/B,uCAAuC,EAAE,CAAC,CAAC;AAW/C,2CAA2C,CACvC,uCAAuC,EAAE,CAAC,CAAC;AAW/C,uCAAuC,CACnC,2CAA2C,EAAE,CAAC,CAAC;AAWnD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,oDAAoD,CAChD,gDAAgD,EAAE,CAAC,CAAC;AAWxD,gDAAgD,CAC5C,oDAAoD,EAAE,CAAC,CAAC;AAW5D,sDAAsD,CAClD,kDAAkD,EAAE,CAAC,CAAC;AAW1D,kDAAkD,CAC9C,sDAAsD,EAAE,CAAC,CAAC;AAW9D,mDAAmD,CAC/C,+CAA+C,EAAE,CAAC,CAAC;AAWvD,+CAA+C,CAC3C,mDAAmD,EAAE,CAAC,CAAC;AAW3D,qDAAqD,CACjD,iDAAiD,EAAE,CAAC,CAAC;AAWzD,iDAAiD,CAC7C,qDAAqD,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AAWzD,iDAAiD,CAC7C,qDAAqD,EAAE,CAAC,CAAC;AAW7D,0DAA0D,CACtD,sDAAsD,EAAE,CAAC,CAAC;AAW9D,sDAAsD,CAClD,0DAA0D,EAAE,CAAC,CAAC;AAWlE,6CAA6C,CACzC,yCAAyC,EAAE,CAAC,CAAC;AAWjD,yCAAyC,CACrC,6CAA6C,EAAE,CAAC,CAAC;AAWrD,iDAAiD,CAC7C,6CAA6C,EAAE,CAAC,CAAC;AAWrD,6CAA6C,CACzC,iDAAiD,EAAE,CAAC,CAAC;AAWzD,wCAAwC,CACpC,oCAAoC,EAAE,CAAC,CAAC;AAW5C,oCAAoC,CAChC,wCAAwC,EAAE,CAAC,CAAC;AAWhD,8CAA8C,CAC1C,0CAA0C,EAAE,CAAC,CAAC;AAWlD,0CAA0C,CACtC,8CAA8C,EAAE,CAAC,CAAC;AAWtD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,mDAAmD,CAC/C,+CAA+C,EAAE,CAAC,CAAC;AAWvD,+CAA+C,CAC3C,mDAAmD,EAAE,CAAC,CAAC;AAW3D,6CAA6C,CACzC,yCAAyC,EAAE,CAAC,CAAC;AAWjD,yCAAyC,CACrC,6CAA6C,EAAE,CAAC,CAAC;AAWrD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,+CAA+C,CAC3C,2CAA2C,EAAE,CAAC,CAAC;AAWnD,2CAA2C,CACvC,+CAA+C,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-validator in @fluidframework/build-tools.\n */\nimport * as old from \"@fluidframework/driver-definitions-previous\";\nimport * as current from \"../../index\";\n\ntype TypeOnly<T> = {\n [P in keyof T]: TypeOnly<T[P]>;\n};\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* \"TypeAliasDeclaration_DriverError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_DriverError():\n TypeOnly<old.DriverError>;\ndeclare function use_current_TypeAliasDeclaration_DriverError(\n use: TypeOnly<current.DriverError>);\nuse_current_TypeAliasDeclaration_DriverError(\n get_old_TypeAliasDeclaration_DriverError());\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* \"TypeAliasDeclaration_DriverError\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_DriverError():\n TypeOnly<current.DriverError>;\ndeclare function use_old_TypeAliasDeclaration_DriverError(\n use: TypeOnly<old.DriverError>);\nuse_old_TypeAliasDeclaration_DriverError(\n get_current_TypeAliasDeclaration_DriverError());\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* \"EnumDeclaration_DriverErrorType\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_DriverErrorType():\n TypeOnly<old.DriverErrorType>;\ndeclare function use_current_EnumDeclaration_DriverErrorType(\n use: TypeOnly<current.DriverErrorType>);\nuse_current_EnumDeclaration_DriverErrorType(\n get_old_EnumDeclaration_DriverErrorType());\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* \"EnumDeclaration_DriverErrorType\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_DriverErrorType():\n TypeOnly<current.DriverErrorType>;\ndeclare function use_old_EnumDeclaration_DriverErrorType(\n use: TypeOnly<old.DriverErrorType>);\nuse_old_EnumDeclaration_DriverErrorType(\n get_current_EnumDeclaration_DriverErrorType());\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* \"EnumDeclaration_DriverHeader\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_DriverHeader():\n TypeOnly<old.DriverHeader>;\ndeclare function use_current_EnumDeclaration_DriverHeader(\n use: TypeOnly<current.DriverHeader>);\nuse_current_EnumDeclaration_DriverHeader(\n get_old_EnumDeclaration_DriverHeader());\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* \"EnumDeclaration_DriverHeader\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_DriverHeader():\n TypeOnly<current.DriverHeader>;\ndeclare function use_old_EnumDeclaration_DriverHeader(\n use: TypeOnly<old.DriverHeader>);\nuse_old_EnumDeclaration_DriverHeader(\n get_current_EnumDeclaration_DriverHeader());\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* \"InterfaceDeclaration_DriverPreCheckInfo\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_DriverPreCheckInfo():\n TypeOnly<old.DriverPreCheckInfo>;\ndeclare function use_current_InterfaceDeclaration_DriverPreCheckInfo(\n use: TypeOnly<current.DriverPreCheckInfo>);\nuse_current_InterfaceDeclaration_DriverPreCheckInfo(\n get_old_InterfaceDeclaration_DriverPreCheckInfo());\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* \"InterfaceDeclaration_DriverPreCheckInfo\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_DriverPreCheckInfo():\n TypeOnly<current.DriverPreCheckInfo>;\ndeclare function use_old_InterfaceDeclaration_DriverPreCheckInfo(\n use: TypeOnly<old.DriverPreCheckInfo>);\nuse_old_InterfaceDeclaration_DriverPreCheckInfo(\n get_current_InterfaceDeclaration_DriverPreCheckInfo());\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* \"EnumDeclaration_FetchSource\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_FetchSource():\n TypeOnly<old.FetchSource>;\ndeclare function use_current_EnumDeclaration_FetchSource(\n use: TypeOnly<current.FetchSource>);\nuse_current_EnumDeclaration_FetchSource(\n get_old_EnumDeclaration_FetchSource());\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* \"EnumDeclaration_FetchSource\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_FetchSource():\n TypeOnly<current.FetchSource>;\ndeclare function use_old_EnumDeclaration_FetchSource(\n use: TypeOnly<old.FetchSource>);\nuse_old_EnumDeclaration_FetchSource(\n get_current_EnumDeclaration_FetchSource());\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* \"TypeAliasDeclaration_FiveDaysMs\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_FiveDaysMs():\n TypeOnly<old.FiveDaysMs>;\ndeclare function use_current_TypeAliasDeclaration_FiveDaysMs(\n use: TypeOnly<current.FiveDaysMs>);\nuse_current_TypeAliasDeclaration_FiveDaysMs(\n get_old_TypeAliasDeclaration_FiveDaysMs());\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* \"TypeAliasDeclaration_FiveDaysMs\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_FiveDaysMs():\n TypeOnly<current.FiveDaysMs>;\ndeclare function use_old_TypeAliasDeclaration_FiveDaysMs(\n use: TypeOnly<old.FiveDaysMs>);\nuse_old_TypeAliasDeclaration_FiveDaysMs(\n get_current_TypeAliasDeclaration_FiveDaysMs());\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* \"InterfaceDeclaration_IAnyDriverError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IAnyDriverError():\n TypeOnly<old.IAnyDriverError>;\ndeclare function use_current_InterfaceDeclaration_IAnyDriverError(\n use: TypeOnly<current.IAnyDriverError>);\nuse_current_InterfaceDeclaration_IAnyDriverError(\n get_old_InterfaceDeclaration_IAnyDriverError());\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* \"InterfaceDeclaration_IAnyDriverError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IAnyDriverError():\n TypeOnly<current.IAnyDriverError>;\ndeclare function use_old_InterfaceDeclaration_IAnyDriverError(\n use: TypeOnly<old.IAnyDriverError>);\nuse_old_InterfaceDeclaration_IAnyDriverError(\n get_current_InterfaceDeclaration_IAnyDriverError());\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* \"InterfaceDeclaration_IAuthorizationError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IAuthorizationError():\n TypeOnly<old.IAuthorizationError>;\ndeclare function use_current_InterfaceDeclaration_IAuthorizationError(\n use: TypeOnly<current.IAuthorizationError>);\nuse_current_InterfaceDeclaration_IAuthorizationError(\n get_old_InterfaceDeclaration_IAuthorizationError());\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* \"InterfaceDeclaration_IAuthorizationError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IAuthorizationError():\n TypeOnly<current.IAuthorizationError>;\ndeclare function use_old_InterfaceDeclaration_IAuthorizationError(\n use: TypeOnly<old.IAuthorizationError>);\nuse_old_InterfaceDeclaration_IAuthorizationError(\n get_current_InterfaceDeclaration_IAuthorizationError());\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* \"InterfaceDeclaration_IContainerPackageInfo\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IContainerPackageInfo():\n TypeOnly<old.IContainerPackageInfo>;\ndeclare function use_current_InterfaceDeclaration_IContainerPackageInfo(\n use: TypeOnly<current.IContainerPackageInfo>);\nuse_current_InterfaceDeclaration_IContainerPackageInfo(\n get_old_InterfaceDeclaration_IContainerPackageInfo());\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* \"InterfaceDeclaration_IContainerPackageInfo\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IContainerPackageInfo():\n TypeOnly<current.IContainerPackageInfo>;\ndeclare function use_old_InterfaceDeclaration_IContainerPackageInfo(\n use: TypeOnly<old.IContainerPackageInfo>);\nuse_old_InterfaceDeclaration_IContainerPackageInfo(\n get_current_InterfaceDeclaration_IContainerPackageInfo());\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* \"InterfaceDeclaration_IDeltasFetchResult\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDeltasFetchResult():\n TypeOnly<old.IDeltasFetchResult>;\ndeclare function use_current_InterfaceDeclaration_IDeltasFetchResult(\n use: TypeOnly<current.IDeltasFetchResult>);\nuse_current_InterfaceDeclaration_IDeltasFetchResult(\n get_old_InterfaceDeclaration_IDeltasFetchResult());\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* \"InterfaceDeclaration_IDeltasFetchResult\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDeltasFetchResult():\n TypeOnly<current.IDeltasFetchResult>;\ndeclare function use_old_InterfaceDeclaration_IDeltasFetchResult(\n use: TypeOnly<old.IDeltasFetchResult>);\nuse_old_InterfaceDeclaration_IDeltasFetchResult(\n get_current_InterfaceDeclaration_IDeltasFetchResult());\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* \"InterfaceDeclaration_IDeltaStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDeltaStorageService():\n TypeOnly<old.IDeltaStorageService>;\ndeclare function use_current_InterfaceDeclaration_IDeltaStorageService(\n use: TypeOnly<current.IDeltaStorageService>);\nuse_current_InterfaceDeclaration_IDeltaStorageService(\n get_old_InterfaceDeclaration_IDeltaStorageService());\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* \"InterfaceDeclaration_IDeltaStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDeltaStorageService():\n TypeOnly<current.IDeltaStorageService>;\ndeclare function use_old_InterfaceDeclaration_IDeltaStorageService(\n use: TypeOnly<old.IDeltaStorageService>);\nuse_old_InterfaceDeclaration_IDeltaStorageService(\n get_current_InterfaceDeclaration_IDeltaStorageService());\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* \"InterfaceDeclaration_IDocumentDeltaConnection\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentDeltaConnection():\n TypeOnly<old.IDocumentDeltaConnection>;\ndeclare function use_current_InterfaceDeclaration_IDocumentDeltaConnection(\n use: TypeOnly<current.IDocumentDeltaConnection>);\nuse_current_InterfaceDeclaration_IDocumentDeltaConnection(\n get_old_InterfaceDeclaration_IDocumentDeltaConnection());\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* \"InterfaceDeclaration_IDocumentDeltaConnection\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentDeltaConnection():\n TypeOnly<current.IDocumentDeltaConnection>;\ndeclare function use_old_InterfaceDeclaration_IDocumentDeltaConnection(\n use: TypeOnly<old.IDocumentDeltaConnection>);\nuse_old_InterfaceDeclaration_IDocumentDeltaConnection(\n get_current_InterfaceDeclaration_IDocumentDeltaConnection());\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* \"InterfaceDeclaration_IDocumentDeltaConnectionEvents\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents():\n TypeOnly<old.IDocumentDeltaConnectionEvents>;\ndeclare function use_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents(\n use: TypeOnly<current.IDocumentDeltaConnectionEvents>);\nuse_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents(\n get_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents());\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* \"InterfaceDeclaration_IDocumentDeltaConnectionEvents\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents():\n TypeOnly<current.IDocumentDeltaConnectionEvents>;\ndeclare function use_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents(\n use: TypeOnly<old.IDocumentDeltaConnectionEvents>);\nuse_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents(\n get_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents());\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* \"InterfaceDeclaration_IDocumentDeltaStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentDeltaStorageService():\n TypeOnly<old.IDocumentDeltaStorageService>;\ndeclare function use_current_InterfaceDeclaration_IDocumentDeltaStorageService(\n use: TypeOnly<current.IDocumentDeltaStorageService>);\nuse_current_InterfaceDeclaration_IDocumentDeltaStorageService(\n get_old_InterfaceDeclaration_IDocumentDeltaStorageService());\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* \"InterfaceDeclaration_IDocumentDeltaStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentDeltaStorageService():\n TypeOnly<current.IDocumentDeltaStorageService>;\ndeclare function use_old_InterfaceDeclaration_IDocumentDeltaStorageService(\n use: TypeOnly<old.IDocumentDeltaStorageService>);\nuse_old_InterfaceDeclaration_IDocumentDeltaStorageService(\n get_current_InterfaceDeclaration_IDocumentDeltaStorageService());\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* \"InterfaceDeclaration_IDocumentService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentService():\n TypeOnly<old.IDocumentService>;\ndeclare function use_current_InterfaceDeclaration_IDocumentService(\n use: TypeOnly<current.IDocumentService>);\nuse_current_InterfaceDeclaration_IDocumentService(\n get_old_InterfaceDeclaration_IDocumentService());\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* \"InterfaceDeclaration_IDocumentService\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentService():\n TypeOnly<current.IDocumentService>;\ndeclare function use_old_InterfaceDeclaration_IDocumentService(\n use: TypeOnly<old.IDocumentService>);\nuse_old_InterfaceDeclaration_IDocumentService(\n get_current_InterfaceDeclaration_IDocumentService());\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* \"InterfaceDeclaration_IDocumentServiceFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentServiceFactory():\n TypeOnly<old.IDocumentServiceFactory>;\ndeclare function use_current_InterfaceDeclaration_IDocumentServiceFactory(\n use: TypeOnly<current.IDocumentServiceFactory>);\nuse_current_InterfaceDeclaration_IDocumentServiceFactory(\n get_old_InterfaceDeclaration_IDocumentServiceFactory());\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* \"InterfaceDeclaration_IDocumentServiceFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentServiceFactory():\n TypeOnly<current.IDocumentServiceFactory>;\ndeclare function use_old_InterfaceDeclaration_IDocumentServiceFactory(\n use: TypeOnly<old.IDocumentServiceFactory>);\nuse_old_InterfaceDeclaration_IDocumentServiceFactory(\n get_current_InterfaceDeclaration_IDocumentServiceFactory());\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* \"InterfaceDeclaration_IDocumentServicePolicies\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentServicePolicies():\n TypeOnly<old.IDocumentServicePolicies>;\ndeclare function use_current_InterfaceDeclaration_IDocumentServicePolicies(\n use: TypeOnly<current.IDocumentServicePolicies>);\nuse_current_InterfaceDeclaration_IDocumentServicePolicies(\n get_old_InterfaceDeclaration_IDocumentServicePolicies());\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* \"InterfaceDeclaration_IDocumentServicePolicies\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentServicePolicies():\n TypeOnly<current.IDocumentServicePolicies>;\ndeclare function use_old_InterfaceDeclaration_IDocumentServicePolicies(\n use: TypeOnly<old.IDocumentServicePolicies>);\nuse_old_InterfaceDeclaration_IDocumentServicePolicies(\n get_current_InterfaceDeclaration_IDocumentServicePolicies());\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* \"InterfaceDeclaration_IDocumentStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentStorageService():\n TypeOnly<old.IDocumentStorageService>;\ndeclare function use_current_InterfaceDeclaration_IDocumentStorageService(\n use: TypeOnly<current.IDocumentStorageService>);\nuse_current_InterfaceDeclaration_IDocumentStorageService(\n get_old_InterfaceDeclaration_IDocumentStorageService());\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* \"InterfaceDeclaration_IDocumentStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentStorageService():\n TypeOnly<current.IDocumentStorageService>;\ndeclare function use_old_InterfaceDeclaration_IDocumentStorageService(\n use: TypeOnly<old.IDocumentStorageService>);\nuse_old_InterfaceDeclaration_IDocumentStorageService(\n get_current_InterfaceDeclaration_IDocumentStorageService());\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* \"InterfaceDeclaration_IDocumentStorageServicePolicies\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentStorageServicePolicies():\n TypeOnly<old.IDocumentStorageServicePolicies>;\ndeclare function use_current_InterfaceDeclaration_IDocumentStorageServicePolicies(\n use: TypeOnly<current.IDocumentStorageServicePolicies>);\nuse_current_InterfaceDeclaration_IDocumentStorageServicePolicies(\n get_old_InterfaceDeclaration_IDocumentStorageServicePolicies());\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* \"InterfaceDeclaration_IDocumentStorageServicePolicies\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentStorageServicePolicies():\n TypeOnly<current.IDocumentStorageServicePolicies>;\ndeclare function use_old_InterfaceDeclaration_IDocumentStorageServicePolicies(\n use: TypeOnly<old.IDocumentStorageServicePolicies>);\nuse_old_InterfaceDeclaration_IDocumentStorageServicePolicies(\n get_current_InterfaceDeclaration_IDocumentStorageServicePolicies());\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* \"InterfaceDeclaration_IDriverBasicError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDriverBasicError():\n TypeOnly<old.IDriverBasicError>;\ndeclare function use_current_InterfaceDeclaration_IDriverBasicError(\n use: TypeOnly<current.IDriverBasicError>);\nuse_current_InterfaceDeclaration_IDriverBasicError(\n get_old_InterfaceDeclaration_IDriverBasicError());\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* \"InterfaceDeclaration_IDriverBasicError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDriverBasicError():\n TypeOnly<current.IDriverBasicError>;\ndeclare function use_old_InterfaceDeclaration_IDriverBasicError(\n use: TypeOnly<old.IDriverBasicError>);\nuse_old_InterfaceDeclaration_IDriverBasicError(\n get_current_InterfaceDeclaration_IDriverBasicError());\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* \"InterfaceDeclaration_IDriverErrorBase\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDriverErrorBase():\n TypeOnly<old.IDriverErrorBase>;\ndeclare function use_current_InterfaceDeclaration_IDriverErrorBase(\n use: TypeOnly<current.IDriverErrorBase>);\nuse_current_InterfaceDeclaration_IDriverErrorBase(\n get_old_InterfaceDeclaration_IDriverErrorBase());\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* \"InterfaceDeclaration_IDriverErrorBase\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDriverErrorBase():\n TypeOnly<current.IDriverErrorBase>;\ndeclare function use_old_InterfaceDeclaration_IDriverErrorBase(\n use: TypeOnly<old.IDriverErrorBase>);\nuse_old_InterfaceDeclaration_IDriverErrorBase(\n get_current_InterfaceDeclaration_IDriverErrorBase());\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* \"InterfaceDeclaration_IDriverHeader\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDriverHeader():\n TypeOnly<old.IDriverHeader>;\ndeclare function use_current_InterfaceDeclaration_IDriverHeader(\n use: TypeOnly<current.IDriverHeader>);\nuse_current_InterfaceDeclaration_IDriverHeader(\n get_old_InterfaceDeclaration_IDriverHeader());\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* \"InterfaceDeclaration_IDriverHeader\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDriverHeader():\n TypeOnly<current.IDriverHeader>;\ndeclare function use_old_InterfaceDeclaration_IDriverHeader(\n use: TypeOnly<old.IDriverHeader>);\nuse_old_InterfaceDeclaration_IDriverHeader(\n get_current_InterfaceDeclaration_IDriverHeader());\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* \"InterfaceDeclaration_IFluidResolvedUrl\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IFluidResolvedUrl():\n TypeOnly<old.IFluidResolvedUrl>;\ndeclare function use_current_InterfaceDeclaration_IFluidResolvedUrl(\n use: TypeOnly<current.IFluidResolvedUrl>);\nuse_current_InterfaceDeclaration_IFluidResolvedUrl(\n get_old_InterfaceDeclaration_IFluidResolvedUrl());\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* \"InterfaceDeclaration_IFluidResolvedUrl\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IFluidResolvedUrl():\n TypeOnly<current.IFluidResolvedUrl>;\ndeclare function use_old_InterfaceDeclaration_IFluidResolvedUrl(\n use: TypeOnly<old.IFluidResolvedUrl>);\nuse_old_InterfaceDeclaration_IFluidResolvedUrl(\n get_current_InterfaceDeclaration_IFluidResolvedUrl());\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* \"InterfaceDeclaration_IGenericNetworkError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IGenericNetworkError():\n TypeOnly<old.IGenericNetworkError>;\ndeclare function use_current_InterfaceDeclaration_IGenericNetworkError(\n use: TypeOnly<current.IGenericNetworkError>);\nuse_current_InterfaceDeclaration_IGenericNetworkError(\n get_old_InterfaceDeclaration_IGenericNetworkError());\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* \"InterfaceDeclaration_IGenericNetworkError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IGenericNetworkError():\n TypeOnly<current.IGenericNetworkError>;\ndeclare function use_old_InterfaceDeclaration_IGenericNetworkError(\n use: TypeOnly<old.IGenericNetworkError>);\nuse_old_InterfaceDeclaration_IGenericNetworkError(\n get_current_InterfaceDeclaration_IGenericNetworkError());\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* \"InterfaceDeclaration_ILocationRedirectionError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ILocationRedirectionError():\n TypeOnly<old.ILocationRedirectionError>;\ndeclare function use_current_InterfaceDeclaration_ILocationRedirectionError(\n use: TypeOnly<current.ILocationRedirectionError>);\nuse_current_InterfaceDeclaration_ILocationRedirectionError(\n get_old_InterfaceDeclaration_ILocationRedirectionError());\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* \"InterfaceDeclaration_ILocationRedirectionError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ILocationRedirectionError():\n TypeOnly<current.ILocationRedirectionError>;\ndeclare function use_old_InterfaceDeclaration_ILocationRedirectionError(\n use: TypeOnly<old.ILocationRedirectionError>);\nuse_old_InterfaceDeclaration_ILocationRedirectionError(\n get_current_InterfaceDeclaration_ILocationRedirectionError());\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* \"TypeAliasDeclaration_IResolvedUrl\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_IResolvedUrl():\n TypeOnly<old.IResolvedUrl>;\ndeclare function use_current_TypeAliasDeclaration_IResolvedUrl(\n use: TypeOnly<current.IResolvedUrl>);\nuse_current_TypeAliasDeclaration_IResolvedUrl(\n get_old_TypeAliasDeclaration_IResolvedUrl());\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* \"TypeAliasDeclaration_IResolvedUrl\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_IResolvedUrl():\n TypeOnly<current.IResolvedUrl>;\ndeclare function use_old_TypeAliasDeclaration_IResolvedUrl(\n use: TypeOnly<old.IResolvedUrl>);\nuse_old_TypeAliasDeclaration_IResolvedUrl(\n get_current_TypeAliasDeclaration_IResolvedUrl());\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* \"InterfaceDeclaration_IResolvedUrlBase\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IResolvedUrlBase():\n TypeOnly<old.IResolvedUrlBase>;\ndeclare function use_current_InterfaceDeclaration_IResolvedUrlBase(\n use: TypeOnly<current.IResolvedUrlBase>);\nuse_current_InterfaceDeclaration_IResolvedUrlBase(\n get_old_InterfaceDeclaration_IResolvedUrlBase());\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* \"InterfaceDeclaration_IResolvedUrlBase\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IResolvedUrlBase():\n TypeOnly<current.IResolvedUrlBase>;\ndeclare function use_old_InterfaceDeclaration_IResolvedUrlBase(\n use: TypeOnly<old.IResolvedUrlBase>);\nuse_old_InterfaceDeclaration_IResolvedUrlBase(\n get_current_InterfaceDeclaration_IResolvedUrlBase());\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* \"InterfaceDeclaration_IStream\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IStream():\n TypeOnly<old.IStream<any>>;\ndeclare function use_current_InterfaceDeclaration_IStream(\n use: TypeOnly<current.IStream<any>>);\nuse_current_InterfaceDeclaration_IStream(\n get_old_InterfaceDeclaration_IStream());\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* \"InterfaceDeclaration_IStream\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IStream():\n TypeOnly<current.IStream<any>>;\ndeclare function use_old_InterfaceDeclaration_IStream(\n use: TypeOnly<old.IStream<any>>);\nuse_old_InterfaceDeclaration_IStream(\n get_current_InterfaceDeclaration_IStream());\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* \"TypeAliasDeclaration_IStreamResult\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_IStreamResult():\n TypeOnly<old.IStreamResult<any>>;\ndeclare function use_current_TypeAliasDeclaration_IStreamResult(\n use: TypeOnly<current.IStreamResult<any>>);\nuse_current_TypeAliasDeclaration_IStreamResult(\n get_old_TypeAliasDeclaration_IStreamResult());\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* \"TypeAliasDeclaration_IStreamResult\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_IStreamResult():\n TypeOnly<current.IStreamResult<any>>;\ndeclare function use_old_TypeAliasDeclaration_IStreamResult(\n use: TypeOnly<old.IStreamResult<any>>);\nuse_old_TypeAliasDeclaration_IStreamResult(\n get_current_TypeAliasDeclaration_IStreamResult());\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* \"InterfaceDeclaration_ISummaryContext\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ISummaryContext():\n TypeOnly<old.ISummaryContext>;\ndeclare function use_current_InterfaceDeclaration_ISummaryContext(\n use: TypeOnly<current.ISummaryContext>);\nuse_current_InterfaceDeclaration_ISummaryContext(\n get_old_InterfaceDeclaration_ISummaryContext());\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* \"InterfaceDeclaration_ISummaryContext\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ISummaryContext():\n TypeOnly<current.ISummaryContext>;\ndeclare function use_old_InterfaceDeclaration_ISummaryContext(\n use: TypeOnly<old.ISummaryContext>);\nuse_old_InterfaceDeclaration_ISummaryContext(\n get_current_InterfaceDeclaration_ISummaryContext());\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* \"InterfaceDeclaration_IThrottlingWarning\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IThrottlingWarning():\n TypeOnly<old.IThrottlingWarning>;\ndeclare function use_current_InterfaceDeclaration_IThrottlingWarning(\n use: TypeOnly<current.IThrottlingWarning>);\nuse_current_InterfaceDeclaration_IThrottlingWarning(\n get_old_InterfaceDeclaration_IThrottlingWarning());\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* \"InterfaceDeclaration_IThrottlingWarning\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IThrottlingWarning():\n TypeOnly<current.IThrottlingWarning>;\ndeclare function use_old_InterfaceDeclaration_IThrottlingWarning(\n use: TypeOnly<old.IThrottlingWarning>);\nuse_old_InterfaceDeclaration_IThrottlingWarning(\n get_current_InterfaceDeclaration_IThrottlingWarning());\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* \"InterfaceDeclaration_IUrlResolver\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IUrlResolver():\n TypeOnly<old.IUrlResolver>;\ndeclare function use_current_InterfaceDeclaration_IUrlResolver(\n use: TypeOnly<current.IUrlResolver>);\nuse_current_InterfaceDeclaration_IUrlResolver(\n get_old_InterfaceDeclaration_IUrlResolver());\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* \"InterfaceDeclaration_IUrlResolver\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IUrlResolver():\n TypeOnly<current.IUrlResolver>;\ndeclare function use_old_InterfaceDeclaration_IUrlResolver(\n use: TypeOnly<old.IUrlResolver>);\nuse_old_InterfaceDeclaration_IUrlResolver(\n get_current_InterfaceDeclaration_IUrlResolver());\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* \"InterfaceDeclaration_IWebResolvedUrl\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IWebResolvedUrl():\n TypeOnly<old.IWebResolvedUrl>;\ndeclare function use_current_InterfaceDeclaration_IWebResolvedUrl(\n use: TypeOnly<current.IWebResolvedUrl>);\nuse_current_InterfaceDeclaration_IWebResolvedUrl(\n get_old_InterfaceDeclaration_IWebResolvedUrl());\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* \"InterfaceDeclaration_IWebResolvedUrl\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IWebResolvedUrl():\n TypeOnly<current.IWebResolvedUrl>;\ndeclare function use_old_InterfaceDeclaration_IWebResolvedUrl(\n use: TypeOnly<old.IWebResolvedUrl>);\nuse_old_InterfaceDeclaration_IWebResolvedUrl(\n get_current_InterfaceDeclaration_IWebResolvedUrl());\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* \"EnumDeclaration_LoaderCachingPolicy\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_LoaderCachingPolicy():\n TypeOnly<old.LoaderCachingPolicy>;\ndeclare function use_current_EnumDeclaration_LoaderCachingPolicy(\n use: TypeOnly<current.LoaderCachingPolicy>);\nuse_current_EnumDeclaration_LoaderCachingPolicy(\n get_old_EnumDeclaration_LoaderCachingPolicy());\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* \"EnumDeclaration_LoaderCachingPolicy\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_LoaderCachingPolicy():\n TypeOnly<current.LoaderCachingPolicy>;\ndeclare function use_old_EnumDeclaration_LoaderCachingPolicy(\n use: TypeOnly<old.LoaderCachingPolicy>);\nuse_old_EnumDeclaration_LoaderCachingPolicy(\n get_current_EnumDeclaration_LoaderCachingPolicy());\n"]}
|
|
1
|
+
{"version":3,"file":"validateDriverDefinitionsPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateDriverDefinitionsPrevious.generated.ts"],"names":[],"mappings":"AAwBA,4CAA4C,CACxC,wCAAwC,EAAE,CAAC,CAAC;AAWhD,wCAAwC,CACpC,4CAA4C,EAAE,CAAC,CAAC;AAWpD,2CAA2C,CACvC,uCAAuC,EAAE,CAAC,CAAC;AAW/C,uCAAuC,CACnC,2CAA2C,EAAE,CAAC,CAAC;AAWnD,wCAAwC,CACpC,oCAAoC,EAAE,CAAC,CAAC;AAW5C,oCAAoC,CAChC,wCAAwC,EAAE,CAAC,CAAC;AAWhD,mDAAmD,CAC/C,+CAA+C,EAAE,CAAC,CAAC;AAWvD,+CAA+C,CAC3C,mDAAmD,EAAE,CAAC,CAAC;AAW3D,uCAAuC,CACnC,mCAAmC,EAAE,CAAC,CAAC;AAW3C,mCAAmC,CAC/B,uCAAuC,EAAE,CAAC,CAAC;AAW/C,2CAA2C,CACvC,uCAAuC,EAAE,CAAC,CAAC;AAW/C,uCAAuC,CACnC,2CAA2C,EAAE,CAAC,CAAC;AAWnD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,oDAAoD,CAChD,gDAAgD,EAAE,CAAC,CAAC;AAWxD,gDAAgD,CAC5C,oDAAoD,EAAE,CAAC,CAAC;AAW5D,sDAAsD,CAClD,kDAAkD,EAAE,CAAC,CAAC;AAW1D,kDAAkD,CAC9C,sDAAsD,EAAE,CAAC,CAAC;AAW9D,qDAAqD,CACjD,iDAAiD,EAAE,CAAC,CAAC;AAWzD,iDAAiD,CAC7C,qDAAqD,EAAE,CAAC,CAAC;AAW7D,mDAAmD,CAC/C,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AC,CAAC;AAW1D,qDAAqD,CACjD,iDAAiD,EAAE,CAAC,CAAC;AAWzD,iDAAiD,CAC7C,qDAAqD,EAAE,CAAC,CAAC;AAW7D,0DAA0D,CACtD,sDAAsD,EAAE,CAAC,CAAC;AAW9D,sDAAsD,CAClD,0DAA0D,EAAE,CAAC,CAAC;AAWlE,6CAA6C,CACzC,yCAAyC,EAAE,CAAC,CAAC;AAWjD,yCAAyC,CACrC,6CAA6C,EAAE,CAAC,CAAC;AAWrD,iDAAiD,CAC7C,6CAA6C,EAAE,CAAC,CAAC;AAWrD,6CAA6C,CACzC,iDAAiD,EAAE,CAAC,CAAC;AAWzD,wCAAwC,CACpC,oCAAoC,EAAE,CAAC,CAAC;AAW5C,oCAAoC,CAChC,wCAAwC,EAAE,CAAC,CAAC;AAWhD,8CAA8C,CAC1C,0CAA0C,EAAE,CAAC,CAAC;AAWlD,0CAA0C,CACtC,8CAA8C,EAAE,CAAC,CAAC;AAWtD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,mDAAmD,CAC/C,+CAA+C,EAAE,CAAC,CAAC;AAWvD,+CAA+C,CAC3C,mDAAmD,EAAE,CAAC,CAAC;AAW3D,6CAA6C,CACzC,yCAAyC,EAAE,CAAC,CAAC;AAWjD,yCAAyC,CACrC,6CAA6C,EAAE,CAAC,CAAC;AAWrD,gDAAgD,CAC5C,4CAA4C,EAAE,CAAC,CAAC;AAWpD,4CAA4C,CACxC,gDAAgD,EAAE,CAAC,CAAC;AAWxD,+CAA+C,CAC3C,2CAA2C,EAAE,CAAC,CAAC;AAWnD,2CAA2C,CACvC,+CAA+C,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 * as old from \"@fluidframework/driver-definitions-previous\";\nimport * as current from \"../../index\";\n\ntype TypeOnly<T> = {\n [P in keyof T]: TypeOnly<T[P]>;\n};\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* \"TypeAliasDeclaration_DriverError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_DriverError():\n TypeOnly<old.DriverError>;\ndeclare function use_current_TypeAliasDeclaration_DriverError(\n use: TypeOnly<current.DriverError>);\nuse_current_TypeAliasDeclaration_DriverError(\n get_old_TypeAliasDeclaration_DriverError());\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* \"TypeAliasDeclaration_DriverError\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_DriverError():\n TypeOnly<current.DriverError>;\ndeclare function use_old_TypeAliasDeclaration_DriverError(\n use: TypeOnly<old.DriverError>);\nuse_old_TypeAliasDeclaration_DriverError(\n get_current_TypeAliasDeclaration_DriverError());\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* \"EnumDeclaration_DriverErrorType\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_DriverErrorType():\n TypeOnly<old.DriverErrorType>;\ndeclare function use_current_EnumDeclaration_DriverErrorType(\n use: TypeOnly<current.DriverErrorType>);\nuse_current_EnumDeclaration_DriverErrorType(\n get_old_EnumDeclaration_DriverErrorType());\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* \"EnumDeclaration_DriverErrorType\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_DriverErrorType():\n TypeOnly<current.DriverErrorType>;\ndeclare function use_old_EnumDeclaration_DriverErrorType(\n use: TypeOnly<old.DriverErrorType>);\nuse_old_EnumDeclaration_DriverErrorType(\n get_current_EnumDeclaration_DriverErrorType());\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* \"EnumDeclaration_DriverHeader\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_DriverHeader():\n TypeOnly<old.DriverHeader>;\ndeclare function use_current_EnumDeclaration_DriverHeader(\n use: TypeOnly<current.DriverHeader>);\nuse_current_EnumDeclaration_DriverHeader(\n get_old_EnumDeclaration_DriverHeader());\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* \"EnumDeclaration_DriverHeader\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_DriverHeader():\n TypeOnly<current.DriverHeader>;\ndeclare function use_old_EnumDeclaration_DriverHeader(\n use: TypeOnly<old.DriverHeader>);\nuse_old_EnumDeclaration_DriverHeader(\n get_current_EnumDeclaration_DriverHeader());\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* \"InterfaceDeclaration_DriverPreCheckInfo\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_DriverPreCheckInfo():\n TypeOnly<old.DriverPreCheckInfo>;\ndeclare function use_current_InterfaceDeclaration_DriverPreCheckInfo(\n use: TypeOnly<current.DriverPreCheckInfo>);\nuse_current_InterfaceDeclaration_DriverPreCheckInfo(\n get_old_InterfaceDeclaration_DriverPreCheckInfo());\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* \"InterfaceDeclaration_DriverPreCheckInfo\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_DriverPreCheckInfo():\n TypeOnly<current.DriverPreCheckInfo>;\ndeclare function use_old_InterfaceDeclaration_DriverPreCheckInfo(\n use: TypeOnly<old.DriverPreCheckInfo>);\nuse_old_InterfaceDeclaration_DriverPreCheckInfo(\n get_current_InterfaceDeclaration_DriverPreCheckInfo());\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* \"EnumDeclaration_FetchSource\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_FetchSource():\n TypeOnly<old.FetchSource>;\ndeclare function use_current_EnumDeclaration_FetchSource(\n use: TypeOnly<current.FetchSource>);\nuse_current_EnumDeclaration_FetchSource(\n get_old_EnumDeclaration_FetchSource());\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* \"EnumDeclaration_FetchSource\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_FetchSource():\n TypeOnly<current.FetchSource>;\ndeclare function use_old_EnumDeclaration_FetchSource(\n use: TypeOnly<old.FetchSource>);\nuse_old_EnumDeclaration_FetchSource(\n get_current_EnumDeclaration_FetchSource());\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* \"TypeAliasDeclaration_FiveDaysMs\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_FiveDaysMs():\n TypeOnly<old.FiveDaysMs>;\ndeclare function use_current_TypeAliasDeclaration_FiveDaysMs(\n use: TypeOnly<current.FiveDaysMs>);\nuse_current_TypeAliasDeclaration_FiveDaysMs(\n get_old_TypeAliasDeclaration_FiveDaysMs());\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* \"TypeAliasDeclaration_FiveDaysMs\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_FiveDaysMs():\n TypeOnly<current.FiveDaysMs>;\ndeclare function use_old_TypeAliasDeclaration_FiveDaysMs(\n use: TypeOnly<old.FiveDaysMs>);\nuse_old_TypeAliasDeclaration_FiveDaysMs(\n get_current_TypeAliasDeclaration_FiveDaysMs());\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* \"InterfaceDeclaration_IAnyDriverError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IAnyDriverError():\n TypeOnly<old.IAnyDriverError>;\ndeclare function use_current_InterfaceDeclaration_IAnyDriverError(\n use: TypeOnly<current.IAnyDriverError>);\nuse_current_InterfaceDeclaration_IAnyDriverError(\n get_old_InterfaceDeclaration_IAnyDriverError());\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* \"InterfaceDeclaration_IAnyDriverError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IAnyDriverError():\n TypeOnly<current.IAnyDriverError>;\ndeclare function use_old_InterfaceDeclaration_IAnyDriverError(\n use: TypeOnly<old.IAnyDriverError>);\nuse_old_InterfaceDeclaration_IAnyDriverError(\n get_current_InterfaceDeclaration_IAnyDriverError());\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* \"InterfaceDeclaration_IAuthorizationError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IAuthorizationError():\n TypeOnly<old.IAuthorizationError>;\ndeclare function use_current_InterfaceDeclaration_IAuthorizationError(\n use: TypeOnly<current.IAuthorizationError>);\nuse_current_InterfaceDeclaration_IAuthorizationError(\n get_old_InterfaceDeclaration_IAuthorizationError());\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* \"InterfaceDeclaration_IAuthorizationError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IAuthorizationError():\n TypeOnly<current.IAuthorizationError>;\ndeclare function use_old_InterfaceDeclaration_IAuthorizationError(\n use: TypeOnly<old.IAuthorizationError>);\nuse_old_InterfaceDeclaration_IAuthorizationError(\n get_current_InterfaceDeclaration_IAuthorizationError());\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* \"InterfaceDeclaration_IContainerPackageInfo\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IContainerPackageInfo():\n TypeOnly<old.IContainerPackageInfo>;\ndeclare function use_current_InterfaceDeclaration_IContainerPackageInfo(\n use: TypeOnly<current.IContainerPackageInfo>);\nuse_current_InterfaceDeclaration_IContainerPackageInfo(\n get_old_InterfaceDeclaration_IContainerPackageInfo());\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* \"InterfaceDeclaration_IContainerPackageInfo\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IContainerPackageInfo():\n TypeOnly<current.IContainerPackageInfo>;\ndeclare function use_old_InterfaceDeclaration_IContainerPackageInfo(\n use: TypeOnly<old.IContainerPackageInfo>);\nuse_old_InterfaceDeclaration_IContainerPackageInfo(\n get_current_InterfaceDeclaration_IContainerPackageInfo());\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* \"InterfaceDeclaration_IDeltaStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDeltaStorageService():\n TypeOnly<old.IDeltaStorageService>;\ndeclare function use_current_InterfaceDeclaration_IDeltaStorageService(\n use: TypeOnly<current.IDeltaStorageService>);\nuse_current_InterfaceDeclaration_IDeltaStorageService(\n get_old_InterfaceDeclaration_IDeltaStorageService());\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* \"InterfaceDeclaration_IDeltaStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDeltaStorageService():\n TypeOnly<current.IDeltaStorageService>;\ndeclare function use_old_InterfaceDeclaration_IDeltaStorageService(\n use: TypeOnly<old.IDeltaStorageService>);\nuse_old_InterfaceDeclaration_IDeltaStorageService(\n get_current_InterfaceDeclaration_IDeltaStorageService());\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* \"InterfaceDeclaration_IDeltasFetchResult\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDeltasFetchResult():\n TypeOnly<old.IDeltasFetchResult>;\ndeclare function use_current_InterfaceDeclaration_IDeltasFetchResult(\n use: TypeOnly<current.IDeltasFetchResult>);\nuse_current_InterfaceDeclaration_IDeltasFetchResult(\n get_old_InterfaceDeclaration_IDeltasFetchResult());\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* \"InterfaceDeclaration_IDeltasFetchResult\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDeltasFetchResult():\n TypeOnly<current.IDeltasFetchResult>;\ndeclare function use_old_InterfaceDeclaration_IDeltasFetchResult(\n use: TypeOnly<old.IDeltasFetchResult>);\nuse_old_InterfaceDeclaration_IDeltasFetchResult(\n get_current_InterfaceDeclaration_IDeltasFetchResult());\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* \"InterfaceDeclaration_IDocumentDeltaConnection\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentDeltaConnection():\n TypeOnly<old.IDocumentDeltaConnection>;\ndeclare function use_current_InterfaceDeclaration_IDocumentDeltaConnection(\n use: TypeOnly<current.IDocumentDeltaConnection>);\nuse_current_InterfaceDeclaration_IDocumentDeltaConnection(\n get_old_InterfaceDeclaration_IDocumentDeltaConnection());\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* \"InterfaceDeclaration_IDocumentDeltaConnection\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentDeltaConnection():\n TypeOnly<current.IDocumentDeltaConnection>;\ndeclare function use_old_InterfaceDeclaration_IDocumentDeltaConnection(\n use: TypeOnly<old.IDocumentDeltaConnection>);\nuse_old_InterfaceDeclaration_IDocumentDeltaConnection(\n get_current_InterfaceDeclaration_IDocumentDeltaConnection());\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* \"InterfaceDeclaration_IDocumentDeltaConnectionEvents\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents():\n TypeOnly<old.IDocumentDeltaConnectionEvents>;\ndeclare function use_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents(\n use: TypeOnly<current.IDocumentDeltaConnectionEvents>);\nuse_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents(\n get_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents());\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* \"InterfaceDeclaration_IDocumentDeltaConnectionEvents\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents():\n TypeOnly<current.IDocumentDeltaConnectionEvents>;\ndeclare function use_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents(\n use: TypeOnly<old.IDocumentDeltaConnectionEvents>);\nuse_old_InterfaceDeclaration_IDocumentDeltaConnectionEvents(\n get_current_InterfaceDeclaration_IDocumentDeltaConnectionEvents());\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* \"InterfaceDeclaration_IDocumentDeltaStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentDeltaStorageService():\n TypeOnly<old.IDocumentDeltaStorageService>;\ndeclare function use_current_InterfaceDeclaration_IDocumentDeltaStorageService(\n use: TypeOnly<current.IDocumentDeltaStorageService>);\nuse_current_InterfaceDeclaration_IDocumentDeltaStorageService(\n get_old_InterfaceDeclaration_IDocumentDeltaStorageService());\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* \"InterfaceDeclaration_IDocumentDeltaStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentDeltaStorageService():\n TypeOnly<current.IDocumentDeltaStorageService>;\ndeclare function use_old_InterfaceDeclaration_IDocumentDeltaStorageService(\n use: TypeOnly<old.IDocumentDeltaStorageService>);\nuse_old_InterfaceDeclaration_IDocumentDeltaStorageService(\n get_current_InterfaceDeclaration_IDocumentDeltaStorageService());\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* \"InterfaceDeclaration_IDocumentService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentService():\n TypeOnly<old.IDocumentService>;\ndeclare function use_current_InterfaceDeclaration_IDocumentService(\n use: TypeOnly<current.IDocumentService>);\nuse_current_InterfaceDeclaration_IDocumentService(\n get_old_InterfaceDeclaration_IDocumentService());\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* \"InterfaceDeclaration_IDocumentService\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentService():\n TypeOnly<current.IDocumentService>;\ndeclare function use_old_InterfaceDeclaration_IDocumentService(\n use: TypeOnly<old.IDocumentService>);\nuse_old_InterfaceDeclaration_IDocumentService(\n get_current_InterfaceDeclaration_IDocumentService());\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* \"InterfaceDeclaration_IDocumentServiceFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentServiceFactory():\n TypeOnly<old.IDocumentServiceFactory>;\ndeclare function use_current_InterfaceDeclaration_IDocumentServiceFactory(\n use: TypeOnly<current.IDocumentServiceFactory>);\nuse_current_InterfaceDeclaration_IDocumentServiceFactory(\n get_old_InterfaceDeclaration_IDocumentServiceFactory());\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* \"InterfaceDeclaration_IDocumentServiceFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentServiceFactory():\n TypeOnly<current.IDocumentServiceFactory>;\ndeclare function use_old_InterfaceDeclaration_IDocumentServiceFactory(\n use: TypeOnly<old.IDocumentServiceFactory>);\nuse_old_InterfaceDeclaration_IDocumentServiceFactory(\n get_current_InterfaceDeclaration_IDocumentServiceFactory());\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* \"InterfaceDeclaration_IDocumentServicePolicies\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentServicePolicies():\n TypeOnly<old.IDocumentServicePolicies>;\ndeclare function use_current_InterfaceDeclaration_IDocumentServicePolicies(\n use: TypeOnly<current.IDocumentServicePolicies>);\nuse_current_InterfaceDeclaration_IDocumentServicePolicies(\n get_old_InterfaceDeclaration_IDocumentServicePolicies());\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* \"InterfaceDeclaration_IDocumentServicePolicies\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentServicePolicies():\n TypeOnly<current.IDocumentServicePolicies>;\ndeclare function use_old_InterfaceDeclaration_IDocumentServicePolicies(\n use: TypeOnly<old.IDocumentServicePolicies>);\nuse_old_InterfaceDeclaration_IDocumentServicePolicies(\n get_current_InterfaceDeclaration_IDocumentServicePolicies());\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* \"InterfaceDeclaration_IDocumentStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentStorageService():\n TypeOnly<old.IDocumentStorageService>;\ndeclare function use_current_InterfaceDeclaration_IDocumentStorageService(\n use: TypeOnly<current.IDocumentStorageService>);\nuse_current_InterfaceDeclaration_IDocumentStorageService(\n get_old_InterfaceDeclaration_IDocumentStorageService());\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* \"InterfaceDeclaration_IDocumentStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentStorageService():\n TypeOnly<current.IDocumentStorageService>;\ndeclare function use_old_InterfaceDeclaration_IDocumentStorageService(\n use: TypeOnly<old.IDocumentStorageService>);\nuse_old_InterfaceDeclaration_IDocumentStorageService(\n get_current_InterfaceDeclaration_IDocumentStorageService());\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* \"InterfaceDeclaration_IDocumentStorageServicePolicies\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDocumentStorageServicePolicies():\n TypeOnly<old.IDocumentStorageServicePolicies>;\ndeclare function use_current_InterfaceDeclaration_IDocumentStorageServicePolicies(\n use: TypeOnly<current.IDocumentStorageServicePolicies>);\nuse_current_InterfaceDeclaration_IDocumentStorageServicePolicies(\n get_old_InterfaceDeclaration_IDocumentStorageServicePolicies());\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* \"InterfaceDeclaration_IDocumentStorageServicePolicies\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDocumentStorageServicePolicies():\n TypeOnly<current.IDocumentStorageServicePolicies>;\ndeclare function use_old_InterfaceDeclaration_IDocumentStorageServicePolicies(\n use: TypeOnly<old.IDocumentStorageServicePolicies>);\nuse_old_InterfaceDeclaration_IDocumentStorageServicePolicies(\n get_current_InterfaceDeclaration_IDocumentStorageServicePolicies());\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* \"InterfaceDeclaration_IDriverBasicError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDriverBasicError():\n TypeOnly<old.IDriverBasicError>;\ndeclare function use_current_InterfaceDeclaration_IDriverBasicError(\n use: TypeOnly<current.IDriverBasicError>);\nuse_current_InterfaceDeclaration_IDriverBasicError(\n get_old_InterfaceDeclaration_IDriverBasicError());\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* \"InterfaceDeclaration_IDriverBasicError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDriverBasicError():\n TypeOnly<current.IDriverBasicError>;\ndeclare function use_old_InterfaceDeclaration_IDriverBasicError(\n use: TypeOnly<old.IDriverBasicError>);\nuse_old_InterfaceDeclaration_IDriverBasicError(\n get_current_InterfaceDeclaration_IDriverBasicError());\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* \"InterfaceDeclaration_IDriverErrorBase\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDriverErrorBase():\n TypeOnly<old.IDriverErrorBase>;\ndeclare function use_current_InterfaceDeclaration_IDriverErrorBase(\n use: TypeOnly<current.IDriverErrorBase>);\nuse_current_InterfaceDeclaration_IDriverErrorBase(\n get_old_InterfaceDeclaration_IDriverErrorBase());\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* \"InterfaceDeclaration_IDriverErrorBase\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDriverErrorBase():\n TypeOnly<current.IDriverErrorBase>;\ndeclare function use_old_InterfaceDeclaration_IDriverErrorBase(\n use: TypeOnly<old.IDriverErrorBase>);\nuse_old_InterfaceDeclaration_IDriverErrorBase(\n get_current_InterfaceDeclaration_IDriverErrorBase());\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* \"InterfaceDeclaration_IDriverHeader\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IDriverHeader():\n TypeOnly<old.IDriverHeader>;\ndeclare function use_current_InterfaceDeclaration_IDriverHeader(\n use: TypeOnly<current.IDriverHeader>);\nuse_current_InterfaceDeclaration_IDriverHeader(\n get_old_InterfaceDeclaration_IDriverHeader());\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* \"InterfaceDeclaration_IDriverHeader\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IDriverHeader():\n TypeOnly<current.IDriverHeader>;\ndeclare function use_old_InterfaceDeclaration_IDriverHeader(\n use: TypeOnly<old.IDriverHeader>);\nuse_old_InterfaceDeclaration_IDriverHeader(\n get_current_InterfaceDeclaration_IDriverHeader());\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* \"InterfaceDeclaration_IFluidResolvedUrl\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IFluidResolvedUrl():\n TypeOnly<old.IFluidResolvedUrl>;\ndeclare function use_current_InterfaceDeclaration_IFluidResolvedUrl(\n use: TypeOnly<current.IFluidResolvedUrl>);\nuse_current_InterfaceDeclaration_IFluidResolvedUrl(\n get_old_InterfaceDeclaration_IFluidResolvedUrl());\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* \"InterfaceDeclaration_IFluidResolvedUrl\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IFluidResolvedUrl():\n TypeOnly<current.IFluidResolvedUrl>;\ndeclare function use_old_InterfaceDeclaration_IFluidResolvedUrl(\n use: TypeOnly<old.IFluidResolvedUrl>);\nuse_old_InterfaceDeclaration_IFluidResolvedUrl(\n get_current_InterfaceDeclaration_IFluidResolvedUrl());\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* \"InterfaceDeclaration_IGenericNetworkError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IGenericNetworkError():\n TypeOnly<old.IGenericNetworkError>;\ndeclare function use_current_InterfaceDeclaration_IGenericNetworkError(\n use: TypeOnly<current.IGenericNetworkError>);\nuse_current_InterfaceDeclaration_IGenericNetworkError(\n get_old_InterfaceDeclaration_IGenericNetworkError());\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* \"InterfaceDeclaration_IGenericNetworkError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IGenericNetworkError():\n TypeOnly<current.IGenericNetworkError>;\ndeclare function use_old_InterfaceDeclaration_IGenericNetworkError(\n use: TypeOnly<old.IGenericNetworkError>);\nuse_old_InterfaceDeclaration_IGenericNetworkError(\n get_current_InterfaceDeclaration_IGenericNetworkError());\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* \"InterfaceDeclaration_ILocationRedirectionError\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ILocationRedirectionError():\n TypeOnly<old.ILocationRedirectionError>;\ndeclare function use_current_InterfaceDeclaration_ILocationRedirectionError(\n use: TypeOnly<current.ILocationRedirectionError>);\nuse_current_InterfaceDeclaration_ILocationRedirectionError(\n get_old_InterfaceDeclaration_ILocationRedirectionError());\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* \"InterfaceDeclaration_ILocationRedirectionError\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ILocationRedirectionError():\n TypeOnly<current.ILocationRedirectionError>;\ndeclare function use_old_InterfaceDeclaration_ILocationRedirectionError(\n use: TypeOnly<old.ILocationRedirectionError>);\nuse_old_InterfaceDeclaration_ILocationRedirectionError(\n get_current_InterfaceDeclaration_ILocationRedirectionError());\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* \"TypeAliasDeclaration_IResolvedUrl\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_IResolvedUrl():\n TypeOnly<old.IResolvedUrl>;\ndeclare function use_current_TypeAliasDeclaration_IResolvedUrl(\n use: TypeOnly<current.IResolvedUrl>);\nuse_current_TypeAliasDeclaration_IResolvedUrl(\n get_old_TypeAliasDeclaration_IResolvedUrl());\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* \"TypeAliasDeclaration_IResolvedUrl\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_IResolvedUrl():\n TypeOnly<current.IResolvedUrl>;\ndeclare function use_old_TypeAliasDeclaration_IResolvedUrl(\n use: TypeOnly<old.IResolvedUrl>);\nuse_old_TypeAliasDeclaration_IResolvedUrl(\n get_current_TypeAliasDeclaration_IResolvedUrl());\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* \"InterfaceDeclaration_IResolvedUrlBase\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IResolvedUrlBase():\n TypeOnly<old.IResolvedUrlBase>;\ndeclare function use_current_InterfaceDeclaration_IResolvedUrlBase(\n use: TypeOnly<current.IResolvedUrlBase>);\nuse_current_InterfaceDeclaration_IResolvedUrlBase(\n get_old_InterfaceDeclaration_IResolvedUrlBase());\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* \"InterfaceDeclaration_IResolvedUrlBase\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IResolvedUrlBase():\n TypeOnly<current.IResolvedUrlBase>;\ndeclare function use_old_InterfaceDeclaration_IResolvedUrlBase(\n use: TypeOnly<old.IResolvedUrlBase>);\nuse_old_InterfaceDeclaration_IResolvedUrlBase(\n get_current_InterfaceDeclaration_IResolvedUrlBase());\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* \"InterfaceDeclaration_IStream\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IStream():\n TypeOnly<old.IStream<any>>;\ndeclare function use_current_InterfaceDeclaration_IStream(\n use: TypeOnly<current.IStream<any>>);\nuse_current_InterfaceDeclaration_IStream(\n get_old_InterfaceDeclaration_IStream());\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* \"InterfaceDeclaration_IStream\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IStream():\n TypeOnly<current.IStream<any>>;\ndeclare function use_old_InterfaceDeclaration_IStream(\n use: TypeOnly<old.IStream<any>>);\nuse_old_InterfaceDeclaration_IStream(\n get_current_InterfaceDeclaration_IStream());\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* \"TypeAliasDeclaration_IStreamResult\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_IStreamResult():\n TypeOnly<old.IStreamResult<any>>;\ndeclare function use_current_TypeAliasDeclaration_IStreamResult(\n use: TypeOnly<current.IStreamResult<any>>);\nuse_current_TypeAliasDeclaration_IStreamResult(\n get_old_TypeAliasDeclaration_IStreamResult());\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* \"TypeAliasDeclaration_IStreamResult\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_IStreamResult():\n TypeOnly<current.IStreamResult<any>>;\ndeclare function use_old_TypeAliasDeclaration_IStreamResult(\n use: TypeOnly<old.IStreamResult<any>>);\nuse_old_TypeAliasDeclaration_IStreamResult(\n get_current_TypeAliasDeclaration_IStreamResult());\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* \"InterfaceDeclaration_ISummaryContext\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ISummaryContext():\n TypeOnly<old.ISummaryContext>;\ndeclare function use_current_InterfaceDeclaration_ISummaryContext(\n use: TypeOnly<current.ISummaryContext>);\nuse_current_InterfaceDeclaration_ISummaryContext(\n get_old_InterfaceDeclaration_ISummaryContext());\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* \"InterfaceDeclaration_ISummaryContext\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ISummaryContext():\n TypeOnly<current.ISummaryContext>;\ndeclare function use_old_InterfaceDeclaration_ISummaryContext(\n use: TypeOnly<old.ISummaryContext>);\nuse_old_InterfaceDeclaration_ISummaryContext(\n get_current_InterfaceDeclaration_ISummaryContext());\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* \"InterfaceDeclaration_IThrottlingWarning\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IThrottlingWarning():\n TypeOnly<old.IThrottlingWarning>;\ndeclare function use_current_InterfaceDeclaration_IThrottlingWarning(\n use: TypeOnly<current.IThrottlingWarning>);\nuse_current_InterfaceDeclaration_IThrottlingWarning(\n get_old_InterfaceDeclaration_IThrottlingWarning());\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* \"InterfaceDeclaration_IThrottlingWarning\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IThrottlingWarning():\n TypeOnly<current.IThrottlingWarning>;\ndeclare function use_old_InterfaceDeclaration_IThrottlingWarning(\n use: TypeOnly<old.IThrottlingWarning>);\nuse_old_InterfaceDeclaration_IThrottlingWarning(\n get_current_InterfaceDeclaration_IThrottlingWarning());\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* \"InterfaceDeclaration_IUrlResolver\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IUrlResolver():\n TypeOnly<old.IUrlResolver>;\ndeclare function use_current_InterfaceDeclaration_IUrlResolver(\n use: TypeOnly<current.IUrlResolver>);\nuse_current_InterfaceDeclaration_IUrlResolver(\n get_old_InterfaceDeclaration_IUrlResolver());\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* \"InterfaceDeclaration_IUrlResolver\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IUrlResolver():\n TypeOnly<current.IUrlResolver>;\ndeclare function use_old_InterfaceDeclaration_IUrlResolver(\n use: TypeOnly<old.IUrlResolver>);\nuse_old_InterfaceDeclaration_IUrlResolver(\n get_current_InterfaceDeclaration_IUrlResolver());\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* \"InterfaceDeclaration_IWebResolvedUrl\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_IWebResolvedUrl():\n TypeOnly<old.IWebResolvedUrl>;\ndeclare function use_current_InterfaceDeclaration_IWebResolvedUrl(\n use: TypeOnly<current.IWebResolvedUrl>);\nuse_current_InterfaceDeclaration_IWebResolvedUrl(\n get_old_InterfaceDeclaration_IWebResolvedUrl());\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* \"InterfaceDeclaration_IWebResolvedUrl\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_IWebResolvedUrl():\n TypeOnly<current.IWebResolvedUrl>;\ndeclare function use_old_InterfaceDeclaration_IWebResolvedUrl(\n use: TypeOnly<old.IWebResolvedUrl>);\nuse_old_InterfaceDeclaration_IWebResolvedUrl(\n get_current_InterfaceDeclaration_IWebResolvedUrl());\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* \"EnumDeclaration_LoaderCachingPolicy\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_EnumDeclaration_LoaderCachingPolicy():\n TypeOnly<old.LoaderCachingPolicy>;\ndeclare function use_current_EnumDeclaration_LoaderCachingPolicy(\n use: TypeOnly<current.LoaderCachingPolicy>);\nuse_current_EnumDeclaration_LoaderCachingPolicy(\n get_old_EnumDeclaration_LoaderCachingPolicy());\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* \"EnumDeclaration_LoaderCachingPolicy\": {\"backCompat\": false}\n*/\ndeclare function get_current_EnumDeclaration_LoaderCachingPolicy():\n TypeOnly<current.LoaderCachingPolicy>;\ndeclare function use_old_EnumDeclaration_LoaderCachingPolicy(\n use: TypeOnly<old.LoaderCachingPolicy>);\nuse_old_EnumDeclaration_LoaderCachingPolicy(\n get_current_EnumDeclaration_LoaderCachingPolicy());\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/driver-definitions",
|
|
3
|
-
"version": "2.0.0-internal.3.
|
|
3
|
+
"version": "2.0.0-internal.3.3.0",
|
|
4
4
|
"description": "Fluid driver definitions",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
19
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.3.
|
|
19
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.3.3.0 <2.0.0-internal.4.0.0",
|
|
20
20
|
"@fluidframework/protocol-definitions": "^1.1.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@fluid-tools/build-cli": "^0.
|
|
23
|
+
"@fluid-tools/build-cli": "^0.12.0",
|
|
24
24
|
"@fluidframework/build-common": "^1.1.0",
|
|
25
|
-
"@fluidframework/build-tools": "^0.
|
|
26
|
-
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.0.0-internal.3.
|
|
25
|
+
"@fluidframework/build-tools": "^0.12.0",
|
|
26
|
+
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.0.0-internal.3.2.0",
|
|
27
27
|
"@fluidframework/eslint-config-fluid": "^2.0.0",
|
|
28
28
|
"@microsoft/api-extractor": "^7.22.2",
|
|
29
29
|
"@rushstack/eslint-config": "^2.5.1",
|
|
@@ -35,10 +35,6 @@
|
|
|
35
35
|
"typescript": "~4.5.5"
|
|
36
36
|
},
|
|
37
37
|
"typeValidation": {
|
|
38
|
-
"version": "2.0.0-internal.3.2.0",
|
|
39
|
-
"previousVersionStyle": "~previousMinor",
|
|
40
|
-
"baselineRange": ">=2.0.0-internal.3.1.0 <2.0.0-internal.3.2.0",
|
|
41
|
-
"baselineVersion": "2.0.0-internal.3.1.0",
|
|
42
38
|
"broken": {}
|
|
43
39
|
},
|
|
44
40
|
"scripts": {
|
|
@@ -62,7 +58,7 @@
|
|
|
62
58
|
"prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
|
|
63
59
|
"tsc": "tsc",
|
|
64
60
|
"tsc:watch": "tsc --watch",
|
|
65
|
-
"typetests:gen": "
|
|
61
|
+
"typetests:gen": "fluid-type-test-generator",
|
|
66
62
|
"typetests:prepare": "flub generate typetests --prepare --dir . --pin"
|
|
67
63
|
}
|
|
68
64
|
}
|
package/src/storage.ts
CHANGED
|
@@ -303,6 +303,11 @@ export interface IDocumentServicePolicies {
|
|
|
303
303
|
* Do not connect to delta stream
|
|
304
304
|
*/
|
|
305
305
|
readonly storageOnly?: boolean;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Summarizer uploads the protocol tree too when summarizing.
|
|
309
|
+
*/
|
|
310
|
+
readonly summarizeProtocolTree?: boolean;
|
|
306
311
|
}
|
|
307
312
|
|
|
308
313
|
export interface IDocumentService {
|
|
@@ -346,6 +351,8 @@ export interface IDocumentService {
|
|
|
346
351
|
export interface IDocumentServiceFactory {
|
|
347
352
|
/**
|
|
348
353
|
* Name of the protocol used by factory
|
|
354
|
+
*
|
|
355
|
+
* @deprecated 2.0.0-internal.3.3.0 Document service factories should not be distinguished by unique non-standard protocols. To be removed in an upcoming release.
|
|
349
356
|
*/
|
|
350
357
|
protocolName: string;
|
|
351
358
|
|