# @theorchard/neighbouring-rights-common

## 9.0.1

### Patch Changes

-   SEC: lodash from 4.17.23 to 4.18.1

## 9.0.0

### Major Changes

-   Use lodash instead of lodash-es which causing errors to KNR lambdas

## 8.4.1

### Patch Changes

-   Update `@aws-sdk/client-s3`, `@aws-sdk/lib-storage` dependencies.

## 8.4.0

### Minor Changes

-   Set node minimum version to v20

## 8.3.3

### Patch Changes

-   Migrate lodash dependency to lodash-es

## 8.3.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/countries@3.0.0

## 8.3.1

### Patch Changes

-   Bump lodash to 4.17.23 to fix vulnerabilities

## 8.3.0

### Minor Changes

-   Remove originalFilename to reporter type

## 8.2.0

### Minor Changes

-   Add originalFilename to reporter type

## 8.1.1

### Patch Changes

-   Minor upgrade to @aws-sdk/client-s3

## 8.1.0

### Minor Changes

-   Add optional isOrchard property to OwnershipIngestReport type

## 8.0.0

### Major Changes

-   Add nullable evidence field to Contribution type.

## 7.1.3

### Patch Changes

-   Updated dependencies
    -   graphql@16.8.1

## 7.1.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/countries@2.1.1

## 7.1.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/countries@2.1.0

## 7.1.0

### Minor Changes

-   Add new LoggerAWSStepFunctionContext type and add this as union type to stepFnContext property in InitLoggerOptions interface.

## 7.0.0

### Major Changes

-   Revert changes to AWSStepFunctionContext type

## 6.0.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/field-validator@1.5.4

## 6.0.3

### Patch Changes

-   Updated dependencies
    -   @theorchard/field-validator@1.5.3

## 6.0.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/field-validator@1.5.2

## 6.0.1

### Patch Changes

-   Updated to support the new countries library version.
-   Updated dependencies
    -   @theorchard/countries@2.0.0

## 6.0.0

### Major Changes

-   Update AWSStepFunctionContext type to remove unused properties. Any objects of this type must be updated.

## 5.2.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.4.1
    -   @theorchard/countries@1.2.1
    -   @theorchard/field-validator@1.5.1

## 5.2.0

### Minor Changes

-   add `name` property to DontRetryException, to be used in step function flows

## 5.1.0

### Minor Changes

-   Updated contributorType validation error message.

## 5.0.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/countries@1.2.0

## 5.0.0

### Major Changes

-   refactored api contract for reporting ownership ingestion errors. You can now add a vendorId but you must use a ReportContext object

## 4.9.0

### Minor Changes

-   Extend error report message with ISRC and UPC codes

## 4.8.4

### Patch Changes

-   Fix typo in enum

## 4.8.3

### Patch Changes

-   Add Track enum

## 4.8.2

### Patch Changes

-   Export type file

## 4.8.1

### Patch Changes

-   Add new Product enums

## 4.8.0

### Minor Changes

-   adding optional original filename representing the filename on the user's computer prior to uploading for ownership

## 4.7.0

### Minor Changes

-   New report type FINISHED and associated function

## 4.6.1

### Patch Changes

-   Add a new status enum

## 4.6.0

### Minor Changes

-   refactoring ownership-ingest logger

## 4.5.1

### Patch Changes

-   refactoring to fix import issue released in 4.5.0

## 4.5.0

### Minor Changes

-   Adding a reporter for use during ownership ingest

## 4.4.0

### Minor Changes

-   Deprecate usage of ProfileType type in favour of Identity type from graphql-constants

## 4.3.0

### Minor Changes

-   Reworking logging for ownership-ingest

## 4.2.0

### Minor Changes

-   -   adds type for AWS Step Function Context
    -   adds helper function for building common logging context object for step function lambdas

## 4.1.0

### Minor Changes

-   Add parseCsv util

## 4.0.1

### Patch Changes

-   soundrecording.contributions is now always available

## 4.0.0

### Major Changes

-   Change parseContribution to not include stores data

## 3.3.0

### Minor Changes

-   Added contributions fields to SoundRecording type

## 3.2.0

### Minor Changes

-   Added CSV file metadata checks

## 3.1.0

### Minor Changes

-   Added recordingType to validation scope

## 3.0.1

### Patch Changes

-   Add claiming step function event type.

## 3.0.0

### Major Changes

-   Remove S3Connector.

## 2.3.0

### Minor Changes

-   Return objects with type `DeleteMarker` in listObjectVersions

## 2.2.0

### Minor Changes

-   Allow options to paginate results of listBucketByPrefix. It returns a max of 1000 items.

## 2.1.6

### Patch Changes

-   Update getGraphqlHeaders to use constants and send roles.

## 2.1.5

### Patch Changes

-   Remove Case Sensitivity for Mandatory Fields validation.

## 2.1.4

### Patch Changes

-   Adding 3 additional new contributor types to validation

## 2.1.3

### Patch Changes

-   Add useCountryCodes option to validate based on country code instead of country names and durationInSeconds to
    accept duration in number of seconds.

## 2.1.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/countries@1.1.0

## 2.1.1

### Patch Changes

-   Ingest validator should take array of primaryArtistIds, featururingArtistIds and countriesOfRecording.

## 2.1.0

### Minor Changes

-   Export ingestion functions.

## 2.0.2

### Patch Changes

-   Add ingest validator.

## 2.0.1

### Patch Changes

-   Fix parsing for albumName and catalogNumber.

## 2.0.0

### Major Changes

-   Introducing a breaking change to contributor store statuses

## 1.2.6

### Patch Changes

-   Add a new status enum

## 1.2.5

### Patch Changes

-   Allow countriesOfRecording and instruments to be null

## 1.2.4

### Patch Changes

-   Remove storeId from Contribution type.

## 1.2.3

### Patch Changes

-   Add function to load fully parsed contribution object with child objects.

## 1.2.2

### Patch Changes

-   Add Redable type to writeStreamFile.

## 1.2.1

### Patch Changes

-   getObject to support streaming data.

## 1.2.0

### Minor Changes

-   You can now send an array of s3 keys in a single bucket to be zipped into a desintation zip file in that bucket

## 1.1.0

### Minor Changes

-   list a bucket contents using a prefix

## 1.0.8

### Patch Changes

-   Add optional versionId to getObject. change input type to getObject

## 1.0.7

### Patch Changes

-   Added s3 list object verions

## 1.0.6

### Patch Changes

-   Add executeMutationBatchRequest to run same mutation for multiple ids.

## 1.0.5

### Patch Changes

-   Export Apollo ClientError

## 1.0.4

### Patch Changes

-   Support Buffered getObject result from S3.

## 1.0.3

### Patch Changes

-   Export NoSuchKey exception

## 1.0.2

### Patch Changes

-   Add writeStream function and return version from getObject function.

## 1.0.1

### Patch Changes

-   Add getGraphqlHeaders and minor S3 fixes.

## 1.0.0

### Major Changes

-   Common functions for neighbouring rights.
