# Change log

## [6.1.1] - 2024-02-06

The well data layer is shut down. The SDK will no longer work for well data
layer (WDL) operations.

## [6.1.0] - 2023-03-20

Switched the base url from `playground` to `v1` with cdf-version set to
`20221206-beta`.


## [6.0.0] - 2023-02-21

We had some inconsitencies in our SDK that we wanted to clean up. For `topMeasuredDepth` we used four different terms:

- `holeStart` (NDS, deprecated since 2021)
- `holeTop` (NDS)
- `originalMeasuredDepthTop` (Casing assemblies)
- `topMeasuredDepth` (everything else)

In this major version, we have standardized on `topMeasuredDepth` and `baseMeasuredDepth`.

Renamed
-------
- `Nds.hole{Start,Top}` to `Nds.topMeasuredDepth`.
- `Nds.hole{End,Base}` to `Nds.baseMeasuredDepth`.
- `NdsIngestion.hole{Start,Top}` to `NdsIngestion.topMeasuredDepth`.
- `NdsIngestion.hole{End,Base}` to `NdsIngestion.baseMeasuredDepth`.
- `NdsFilter.hole{Start,Top}` to `NdsFilter.topMeasuredDepth`.
- `NdsFilter.hole{End,Base}` to `NdsFilter.baseMeasuredDepth`.
- `CasingAssembly.original_measured_depth_top` to `CasingAssembly.top_measured_depth`.
- `CasingAssembly.original_measured_depth_base` to `CasingAssembly.base_measured_depth`.

## [5.0.0] - 2023-02-09
- Renamed type `WellIngestion` to `WellSource`.
- Added new endpoint `wellSources.list(...)` for listing well sources.
- Added types `WellSourcesFilterRequest`, `WellSourcesFilter` and `WellSourceItems` for queries.
- Renamed type `WellboreIngestion` to `WellboreSource`.
- Added new endpoint `wellboreSources.list(...)` for listing wellbore sources.
- Added types `WellboreSourcesFilterRequest`, `WellboreSourcesFilter` and `WellboreSourceItems` for queries.

## [4.3.0] - 2022-12-06
- Added `CasingAssembly.cementing`.
- Added `Wellbore.kickoffMeasuredDepth`.
- Updated descriptions for the generated interfaces.

## [4.2.0] - 2022-11-18
- Added two default headers for monitoring: `X-CDP-APP` and `X-SDK-APP`.

## [4.1.0] - 2022-11-03
- Added `wells.delete()`.

## [4.0.0] - 2022-11-02
- Added `isDefinitive` to `CasingFilter`.
- Added `isDefinitive` to `CasingSchematic`.
- Added `isDefinitive` to `WellTopsFilter`.
- Removed `isDefinitive` from `HoleSectiongGroupIngestion`.
- Removed `isDefinitive` from `TrajectoryIngestion`.
- Removed `recursive` from `DeleteSources`. Please delete all well sources using
  the `wells.delete(...)` function first and then delete the sources.
- Removed the `SpudDateLimits` interface. It has been replaced by `DateRange`.

## [3.21.0] - 2022-10-21
- Added `totalDrillingDays` to `Wellbore` and `WellboreIngestion`.

## [3.20.0] - 2022-10-20
- Added `uniqueWellIdentifier` to `Well` and `WellIngestion`.
- Added `uniqueWellboreIdentifier` to `Wellbore` and `WellboreIngestion`.

## [3.19.0] - 2022-10-12
- Added `relationship` to `ExternalIdTypeEnum`.
- Added new endpoints `rigoperations` for rig names.
- Added types `RigOperation`, `RigOperationIngestion` types for ingestion and `RigOperationFilter` for queries.

## [3.18.0] - 2022-10-11
- Added `sectionTypeCode` to `CasingAssembly`.
- Added `components` to `CasingAssembly`. Each component is of type `CasingComponent`.

## [3.17.0] - 2022-09-12

- Updated descriptions on models.
- Added Phase `PhaseEnum` to `HoleSectionGroup`, `CasingSchematic`, `Trajectory`, and `WellTops`.

## [3.16.0] - 2022-09-12

- Updated descriptions on models.
- Added experimental `DepthMeasurementFilter.welltops`.

## [3.15.0] - 2022-08-17

- Made it possible to retrieve wells by identifiers in a specific coordinate
  reference system (CRS). The `wells.retrieveMultiple` function will now also
  accept a `WellByIdsRequest` object that contains an additional `outputCrs`
  field.

## [3.14.1] - 2022-08-02

- Added containsAny property to dataAvailability filter for wells.

```js
// To be able to use the dataAvailibility filter, you must first enable the
// experimental flag, which sets the "cdf-version" header value to "alpha".
client.experimental.enable();

// This query will only include wellbores that have at least one of the listed
// data types.
const wells = client.wells.list({
  dataAvailability: {
    containsAny: ["npt", "nds", "casings", "holeSections", "wellTops"]
  }
})
```

## [3.14.0] - 2022-07-26

- Added experimental feature: dataAvailability filter for wells. To enable,
  call `client.experimental.enable()`.

```js
// To be able to use the dataAvailibility filter, you must first enable the
// experimental flag, which sets the "cdf-version" header value to "alpha".
client.experimental.enable();

// This query will only include wellbores that have at least one of the listed
// data types.
const wells = client.wells.list({
  dataAvailibility: ["nds", "npt", "trajectories", "depthMeasurements"]
})
```

## [3.13.0] - 2022-06-28

- Updated models.
- Added new `summaries.trajectoriesMaximumInclinationLimits()`


## [3.12.0] - 2022-06-21

- Added new capabilities to well tops:
  - Added new optional `chronostratigraphic` property. For chronostratigraphic,
    you can set one of `era`, `period`, `epoch`, or `age` to a value in the
    international chronostratigraphic chart. The chronostratigraphic units that
    can be inferred will be automatically populated by the api. Eg. if you set
    `period` to `jurassic`, then `era` will be automatically set to `mesozoic`.
  - Added new optional `lithostratigraphic` property with a level that can be
    set to either `bed`, `member`, `formation` or `group`.
  - The validation rules have been relaxed. Well top surface names are no longer
    required to be unique.
  - For well top surfaces, `base` is no longer automatically set to the
    subsequent surface's `top`.


## [3.11.3] - 2022-06-03
- Updated models with descriptions.
- Removed `ContainsAll` from `WellDepthMeasurementFilter.measurementTypes`

## [3.11.2] - 2022-05-20

Renamed NDS hole start/end to hole top/base

- Deprecated `NdsIngestion.holeStart` in favor of `NdsIngestion.holeTop`.
- Deprecated `NdsIngestion.holeEnd` in favor of `NdsIngestion.holeBase`.
- Deprecated `Nds.holeStart` in favor of `Nds.holeTop`.
- Deprecated `Nds.holeEnd` in favor of `Nds.holeBase`.
- Deprecated `NdsFilter.holeStart` in favor of `NdsFilter.holeTop`.
- Deprecated `NdsFilter.holeEnd` in favor of `NdsFilter.holeBase`.

## [3.11.1] - 2022-05-13

- Deprecated `summaries.nptDetailCodes()` in favor of `summaries.nptCodeDetails()`.

## [3.11.0] - 2022-05-09
### Added
 - Support for Hole Sections
   - Ingest
   - List

## [3.10.3] - 2022-05-03

### Changed
- If you send an empty list of items to `trajectories.interpolate()` or
  `wellbores.retrieveMultiple`, we will now return an empty response directly
  without going to the API.

## [3.10.2] - 2022-05-02

### Changed
- Return real status code instead of 401 for `httpClientWithIntercept`


## [3.10.1] - 2022-04-25

### Added
- Support for NPT and NDS aggregation
