diff --git a/samples/MultiRegionWrite/MultiRegionWriteScenario.ts b/samples/MultiRegionWrite/MultiRegionWriteScenario.ts index 3770814..98d3e0f 100644 --- a/samples/MultiRegionWrite/MultiRegionWriteScenario.ts +++ b/samples/MultiRegionWrite/MultiRegionWriteScenario.ts @@ -17,7 +17,7 @@ export class MultiRegionWriteScenario { for (const region of config.regions) { const client = new CosmosClient({ endpoint: config.endpoint, - auth: { masterKey: config.key }, + key: config.key, connectionPolicy: { preferredLocations: [region] }, diff --git a/src/index.ts b/src/index.ts index 28d0a63..c640e76 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,7 +23,6 @@ export { export { UniqueKeyPolicy, UniqueKey } from "./client/Container/UniqueKeyPolicy"; export { Constants, OperationType } from "./common"; -export { StatusCodes } from "./common/statusCodes"; export { RetryOptions } from "./retry"; export { Response, RequestOptions, FeedOptions, ErrorResponse, ResourceResponse } from "./request"; export { FeedResponse } from "./request/FeedResponse";