diff --git a/sdk/cosmosdb/cosmos/src/utils/batch.ts b/sdk/cosmosdb/cosmos/src/utils/batch.ts index 4f9bff419cbc..15274fa93725 100644 --- a/sdk/cosmosdb/cosmos/src/utils/batch.ts +++ b/sdk/cosmosdb/cosmos/src/utils/batch.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { JSONObject } from "../queryExecutionContext"; import { extractPartitionKey } from "../extractPartitionKey"; import { PartitionKeyDefinition } from "../documents"; diff --git a/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts b/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts index 288e14030e0f..40e5a938d5d6 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import JSBI from "jsbi"; import { BytePrefix } from "./prefix"; diff --git a/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/prefix.ts b/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/prefix.ts index 1d07e6318234..56db50c005ae 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/prefix.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/prefix.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + export const BytePrefix = { Undefined: "00", Null: "01", diff --git a/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/string.ts b/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/string.ts index 1b1618de8296..39d34025872f 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/string.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/string.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { BytePrefix } from "./prefix"; export function writeStringForBinaryEncoding(payload: string) { diff --git a/sdk/cosmosdb/cosmos/src/utils/hashing/v1.ts b/sdk/cosmosdb/cosmos/src/utils/hashing/v1.ts index b7d26a3173f7..30babcca147b 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hashing/v1.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hashing/v1.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { doubleToByteArrayJSBI, writeNumberForBinaryEncodingJSBI } from "./encoding/number"; import { writeStringForBinaryEncoding } from "./encoding/string"; import { BytePrefix } from "./encoding/prefix"; diff --git a/sdk/cosmosdb/cosmos/src/utils/hashing/v2.ts b/sdk/cosmosdb/cosmos/src/utils/hashing/v2.ts index 3696a8767667..45398b7ee891 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hashing/v2.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hashing/v2.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { doubleToByteArrayJSBI } from "./encoding/number"; import { BytePrefix } from "./encoding/prefix"; import MurmurHash from "./murmurHash"; diff --git a/sdk/cosmosdb/cosmos/src/utils/offers.ts b/sdk/cosmosdb/cosmos/src/utils/offers.ts index f35c6cc6c243..443212bd9e48 100644 --- a/sdk/cosmosdb/cosmos/src/utils/offers.ts +++ b/sdk/cosmosdb/cosmos/src/utils/offers.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { ContainerRequest } from "../client/Container/ContainerRequest"; export function validateOffer(body: ContainerRequest): void { diff --git a/sdk/cosmosdb/cosmos/test/unit/hashing/v1.spec.ts b/sdk/cosmosdb/cosmos/test/unit/hashing/v1.spec.ts index 0cdca97d21f1..290fe74aa8e2 100644 --- a/sdk/cosmosdb/cosmos/test/unit/hashing/v1.spec.ts +++ b/sdk/cosmosdb/cosmos/test/unit/hashing/v1.spec.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import assert from "assert"; import { hashV1PartitionKey } from "../../../src/utils/hashing/v1"; diff --git a/sdk/cosmosdb/cosmos/test/unit/hashing/v2.spec.ts b/sdk/cosmosdb/cosmos/test/unit/hashing/v2.spec.ts index 784768a03a29..3620376f6ed6 100644 --- a/sdk/cosmosdb/cosmos/test/unit/hashing/v2.spec.ts +++ b/sdk/cosmosdb/cosmos/test/unit/hashing/v2.spec.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import assert from "assert"; import { hashV2PartitionKey } from "../../../src/utils/hashing/v2";