Skip to content

Commit

Permalink
feat: merge in latest changes from master (#1244)
Browse files Browse the repository at this point in the history
* feat(simint): add sort property to filter queries (#1134)

* fix: add sort properties to filter queries

* fix: fix typo

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]

* test(beta): skip flaky alerts api test temporarily (#1133)

* test(alerts): skip flaky test temporarily

* chore(package): update yarn

* fix(units): correct external id type (#1137)

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]

* fix: dummy release to override a bad one (#1139)

* fix: release to override a bad release

* chore: skip validateDocLinks due to a bad release

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]

* chore: re-enable temporary disabled ci check (#1143)

* chore: re-enable temporary disabled ci check

* chore: update yarn.lock

* test: fix test for pagination cursor (#1138)

* fix: create 50 alerts for cursor pagination test

* linting

* use nextCursor

* remove comment

* linting

* use int for limit

* add client and cogniterrors in test file

* linting

* remove unnecessary expectation

* feat(simint): add and remove properties from simulators API (#1147)

* fix: remove deprecated labels properties

* feat: add active property to integrations

* fix: remove deprecated lastUpdatedTime property

* fix: add missing versionNumber property

* fix: make filter optional

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]

* chore: make JS SDK maintainers default codeowners (#1160)

* feat(files): move multipart functionality to stable [BND3D-4545] (#1132)

* feat(files): copy multipart functionality to stable

* feat(files): add tests

* fix(files): yarn

* fix(files): skip integration tests

* fix(files): tests

* fix(files): remove multipart code from beta

* fix(files): remove not needd types from beta

* fix(files): add missing packages

* fix(files): refactor

* fix(tests): some alertsAPi tests are failing

* fix(datamodel): tests

* fix(files): reformat with biome

* fix(files): tests

* fix(files): more reformating

* fix(files): more formating

* fix(files): reformating

* fix(files): reformat

* fix(files): tests

* fix(files): remove unnecessary file

* fix(files): run yarn

* fix(files): set correct mockable client

* fix(files): add missing type

* fix(files): reformat

* fix(files): add from correct folder

* fix(files): bring back beta functionality for multipart upload

* fix(files): remove beta code

* fix(files): fix docs

* Update packages/stable/src/api/files/filesApi.ts

Co-authored-by: Fredrik Anfinsen <[email protected]>

* fix(files): pr amends

* fix(files): tests

* fix(files): tests

* fix(files): final PR amends

* fix(files): fix error message

---------

Co-authored-by: Fredrik Anfinsen <[email protected]>

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]

* fix(files): arrange-imports for multipart session (#1171)

* fix(files): arrange-imports for multipart session

* fix: enable biome locally again

* fix(files): yarn

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]

* feat(alpha): multiple updates for simint APIs (#1174)

- removed labels
- support for `includeAllFields` on routine revision list endpoint.
- removed redundant async as we lose the original type due to it (e.g. CursorAndAsyncIterator in some cases)

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]

* feat: use enum for connector status (#1175)

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]

* chore: remove AirViz and DEG from code owners (#1176)

* Update CODEOWNERS

* chore: change alpha/beta codeowners

---------

Co-authored-by: Ivan Polomani <[email protected]>

* feat(stable): add support for sessions API (#1177)

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]

* feat: add aggregate to modelsApi (#1179)

* feat: add aggregate to modelsApi

* refactor: some names and casing

* fix: model aggregate types

* fix: make aggregate query required

* test: fix test

* chore: update yarn.lock

* fix: lint issues

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]

* fix: use correct type for aggregate query (#1180)

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]

* chore(deps): update dependency happy-dom to v15 [security] (#1169)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(simint): add simulation run example (#1188)

* chore(release): publish new package versions [skip ci]

 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]
 - @cognite/[email protected]

* chore: simplify and fix renovate config (#1193)

renovate was broken for a while and now we have numerous CVEs on the repo

* chore(deps): update dependency @rollup/plugin-alias to v4.0.4 (#1194)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @types/node to v12.20.55 (#1195)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @types/es6-promise to v3.3.2 (#1196)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency immer to v9.0.21 (#1197)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency jsonwebtoken to v9.0.2 (#1198)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): bump cross-spawn from 6.0.5 to 6.0.6 (#1173)

Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 6.0.5 to 6.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/v6.0.6/CHANGELOG.md)
- [Commits](moxystudio/node-cross-spawn@v6.0.5...v6.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ivan Polomani <[email protected]>

* fix(deps): update dependency @types/geojson to v7946.0.15 (#1199)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): bump http-proxy-middleware from 2.0.6 to 2.0.7 (#1167)

Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.7/CHANGELOG.md)
- [Commits](chimurai/http-proxy-middleware@v2.0.6...v2.0.7)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps-dev): bump rollup from 2.22.2 to 2.79.2 (#1162)

Bumps [rollup](https://github.com/rollup/rollup) from 2.22.2 to 2.79.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v2.22.2...v2.79.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(deps): update react monorepo (#1200)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#1096)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](webpack/webpack-dev-middleware@v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump axios from 1.3.2 to 1.7.4 (#1140)

Bumps [axios](https://github.com/axios/axios) from 1.3.2 to 1.7.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.3.2...v1.7.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps): bump braces from 3.0.2 to 3.0.3 (#1142)

Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): Bump semver from 5.6.0 to 5.7.2 (#1014)

Bumps [semver](https://github.com/npm/node-semver) from 5.6.0 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](npm/node-semver@v5.6.0...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump vite from 5.4.1 to 5.4.14 (#1204)

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.1 to 5.4.14.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.14/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.14/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): update dependency axios to v1.7.9 (#1205)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update commitlint monorepo to v17.8.1 (#1201)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): bump express from 4.18.2 to 4.21.2 (#1209)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.21.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.2/History.md)
- [Commits](expressjs/express@4.18.2...4.21.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps): bump micromatch from 4.0.2 to 4.0.8 (#1141)

Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.2 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md)
- [Commits](micromatch/micromatch@4.0.2...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps): update dependency @biomejs/biome to v1.9.4 (#1202)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): bump webpack from 5.78.0 to 5.97.1 (#1207)

Bumps [webpack](https://github.com/webpack/webpack) from 5.78.0 to 5.97.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.78.0...v5.97.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump nanoid from 3.3.4 to 3.3.8 (#1178)

Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.4 to 3.3.8.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.3.4...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps): update dependency @rollup/plugin-json to v6.1.0 (#1203)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency es-check to v7.2.1 (#1214)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): bump tar from 6.1.13 to 6.2.1 (#1090)

Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.13 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v6.1.13...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps): bump follow-redirects from 1.15.2 to 1.15.9 (#1213)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.9.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.2...v1.15.9)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps): bump tough-cookie from 4.0.0 to 4.1.4 (#1212)

Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.4.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](salesforce/tough-cookie@v4.0.0...v4.1.4)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps): update dependency eta to v2.2.0 (#1215)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>

* chore(deps): update dependency @rollup/plugin-typescript to v11.1.6 (#1206)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ivan Polomani <[email protected]>

* fix(deps): numerous dependency updates

* chore(deps): update dependency browserslist to v4.24.4 (#1211)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(core): security patch (#1219)

releasing updates to a number of deps

* chore(deps): update dependency husky to v3.1.0 (#1216)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency lerna to v6.6.2 (#1217)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency nock to v13.5.6 (#1221)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency node-fetch to v2.7.0 (#1222)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency openapi-types to v11.1.0 (#1223)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency qs to v6.14.0 (#1224)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency shell-quote to v1.8.2 (#1225)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ts-node to v10.9.2 (#1226)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update vitest monorepo to v2.1.8 (#1229)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update yarn to v4.6.0 (#1230)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update azure-ad-microsoft-authentication-library-for-js monorepo (#1231)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency cross-fetch to v3.2.0 (#1232)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency open to v8.4.2 (#1233)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency react-router-dom to v6.28.2 (#1236)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Brian Kuzma <[email protected]>
Co-authored-by: Cognite CICD <[email protected]>
Co-authored-by: Saagar Takhi <[email protected]>
Co-authored-by: Ivan Polomani <[email protected]>
Co-authored-by: Vebjørn Gilberg <[email protected]>
Co-authored-by: Gokhan Karasoglu <[email protected]>
Co-authored-by: Lucas Provensi <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>
  • Loading branch information
11 people authored Feb 3, 2025
1 parent 58e6ae6 commit c4edd96
Show file tree
Hide file tree
Showing 45 changed files with 1,853 additions and 1,371 deletions.
5 changes: 4 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
* @cognitedata/cdf-user-experience @BugGambit
* @cognitedata/javascript-sdk-maintainers

/packages/alpha @cognitedata/simulator-integration
/packages/beta @cognitedata/simulator-integration

/packages/stable/src/api/documents @cognitedata/matchmakers
/packages/stable/src/__tests__/api/documents* @cognitedata/matchmakers
Expand Down
925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.4.0.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.4.0.cjs
yarnPath: .yarn/releases/yarn-4.6.0.cjs
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Before you begin, ensure that you have the following:
- The redirect_uri registered with your OIDC IdP for your application.
- Our SDK installed and integrated into your application.


### Setting up OIDC Authentication

- Initialize the SDK: Import and initialize the SDK in your application, providing the necessary configuration options such as the client ID, client secret, and redirect URI obtained from your OIDC IdP.
Expand Down Expand Up @@ -105,7 +104,6 @@ Set the environment variable `REVISION_3D_INTEGRATION_TEST=true` to run 3D revis

We use `vitest` to run tests, see [their documentation](https://vitest.dev/) for more information.


### Versioning

The libraries follow [Semantic Versioning](https://semver.org/).
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"devDependencies": {
"@azure/msal-node": "^1.18.4",
"@biomejs/biome": "1.8.3",
"@biomejs/biome": "1.9.4",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@types/lodash": "^4.17.7",
Expand All @@ -66,7 +66,7 @@
"husky": "^3.0.2",
"lerna": "^6.0.0",
"markdown-link-check": "^3.10.3",
"nock": "13.3.1",
"nock": "13.5.6",
"openapi-types": "^11.0.1",
"swagger-typescript-api-nextgen": "^10.0.1",
"tmp-promise": "^3.0.3",
Expand Down Expand Up @@ -105,5 +105,5 @@
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"packageManager": "yarn@4.4.0"
"packageManager": "yarn@4.6.0"
}
81 changes: 60 additions & 21 deletions packages/alpha/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,82 +3,121 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0-rc.10](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@1.0.0-rc.9...@cognite/sdk-alpha@1.0.0-rc.10) (2025-01-31)
## [0.35.2](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@0.35.1...@cognite/sdk-alpha@0.35.2) (2025-01-17)

**Note:** Version bump only for package @cognite/sdk-alpha

### Bug Fixes

* **simint:** add simulation run example ([#1188](https://github.com/cognitedata/cognite-sdk-js/issues/1188)) ([a912037](https://github.com/cognitedata/cognite-sdk-js/commit/a912037c1c4afaddffef6d644decc4ec561b6def))



# [1.0.0-rc.9](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2025-01-31)

**Note:** Version bump only for package @cognite/sdk-alpha

## [0.35.1](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-12-18)


### Bug Fixes

* use correct type for aggregate query ([#1180](https://github.com/cognitedata/cognite-sdk-js/issues/1180)) ([f2e30c6](https://github.com/cognitedata/cognite-sdk-js/commit/f2e30c653324d9c991afa3c981494f33e4a42533))





# [0.35.0](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-12-18)


### Features

* add aggregate to modelsApi ([#1179](https://github.com/cognitedata/cognite-sdk-js/issues/1179)) ([7173057](https://github.com/cognitedata/cognite-sdk-js/commit/7173057b76e4ec6a7dc66a226eea864ba08e89f8))





# [1.0.0-rc.8](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@1.0.0-rc.7...@cognite/sdk-alpha@1.0.0-rc.8) (2025-01-21)
## [0.34.1](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@0.34.0...@cognite/sdk-alpha@0.34.1) (2024-12-12)

**Note:** Version bump only for package @cognite/sdk-alpha





# [1.0.0-rc.7](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@1.0.0-rc.4...@cognite/sdk-alpha@1.0.0-rc.7) (2025-01-20)
# [0.34.0](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@0.33.0...@cognite/sdk-alpha@0.34.0) (2024-12-05)


### Bug Fixes
### Features

* bump rc version due to jfrog conflict [release] ([#1190](https://github.com/cognitedata/cognite-sdk-js/issues/1190)) ([fe5f2fa](https://github.com/cognitedata/cognite-sdk-js/commit/fe5f2fa3a7746169ea5091a2f73e83a539ff318f))
* bump version due to git tag conflict [release] ([#1191](https://github.com/cognitedata/cognite-sdk-js/issues/1191)) ([5c9da8e](https://github.com/cognitedata/cognite-sdk-js/commit/5c9da8e89cb4b31bc726b7b67a4f4987c838c825))
* **vite:** adding common js as fallback [release] ([#1187](https://github.com/cognitedata/cognite-sdk-js/issues/1187)) ([85564e1](https://github.com/cognitedata/cognite-sdk-js/commit/85564e1430e0f721117269b7223b82ccabdf98eb))
* use enum for connector status ([#1175](https://github.com/cognitedata/cognite-sdk-js/issues/1175)) ([ad0d6d9](https://github.com/cognitedata/cognite-sdk-js/commit/ad0d6d9c3243cd1121d1c02f462e552107319fd4))





# [1.0.0-rc.4](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@1.0.0-rc.3...@cognite/sdk-alpha@1.0.0-rc.4) (2025-01-08)
# [0.33.0](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@0.32.2...@cognite/sdk-alpha@0.33.0) (2024-11-21)

**Note:** Version bump only for package @cognite/sdk-alpha

### Features

* **alpha:** multiple updates for simint APIs ([#1174](https://github.com/cognitedata/cognite-sdk-js/issues/1174)) ([96bddf1](https://github.com/cognitedata/cognite-sdk-js/commit/96bddf183eb46c3edb97be793edb8e8e8e5e857f))




# [1.0.0-rc.3](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-11-07)

## [0.32.2](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-11-07)

**Note:** Version bump only for package @cognite/sdk-alpha





# [1.0.0-rc.1](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@1.0.0-rc.0...@cognite/sdk-alpha@1.0.0-rc.1) (2024-09-18)
## [0.32.1](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-alpha@0.32.0...@cognite/sdk-alpha@0.32.1) (2024-10-07)

**Note:** Version bump only for package @cognite/sdk-alpha





# [1.0.0-rc.0](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-08-26)
# [0.32.0](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-09-17)


### Features

* **simint:** add and remove properties from simulators API ([#1147](https://github.com/cognitedata/cognite-sdk-js/issues/1147)) ([4cd6467](https://github.com/cognitedata/cognite-sdk-js/commit/4cd6467658fde491c20f274fbd8fa6af55610c60))





## [0.31.3](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-08-26)


### Bug Fixes

* dummy release to override a bad one ([#1139](https://github.com/cognitedata/cognite-sdk-js/issues/1139)) ([5b036da](https://github.com/cognitedata/cognite-sdk-js/commit/5b036dabd4630b45d51558ee7f95d951c7227137))


### chore

* upgrade to typescript 5 ([#1135](https://github.com/cognitedata/cognite-sdk-js/issues/1135)) ([1530809](https://github.com/cognitedata/cognite-sdk-js/commit/15308098e64ec27a6c33049b2712f9cbc49dac38))


### BREAKING CHANGES
## [0.31.1](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-08-26)

**Note:** Version bump only for package @cognite/sdk-alpha


* es6 module (vs es5) and typescript 3 -> 5

* chore: release pre-release from the release-v10 branch

* test: skip flaky alerts test

# [0.31.0](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/[email protected]...@cognite/[email protected]) (2024-08-22)


### Features

* **simint:** add sort property to filter queries ([#1134](https://github.com/cognitedata/cognite-sdk-js/issues/1134)) ([b293eee](https://github.com/cognitedata/cognite-sdk-js/commit/b293eee3fdf1a931c9ed5ef555db488c3e7fc10c))



Expand Down
1 change: 0 additions & 1 deletion packages/alpha/src/__tests__/api/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export const routineRevisionConfiguration: SimulatorRoutineRevisionConfiguration
schedule: { enabled: false },
dataSampling: {
enabled: true,
validationWindow: 0,
samplingWindow: 0,
granularity: 0,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ describeIf('simulator runs api', () => {
name: 'Test Simulator Model',
description: 'Test Simulator Model Desc',
dataSetId: 97552494921583,
labels: [{ externalId: 'air-quality-po-1' }],
type: 'WaterWell',
},
]);
Expand Down
12 changes: 11 additions & 1 deletion packages/alpha/src/__tests__/api/simulatorModelsApi.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,24 @@ describeIf('simulator models api', () => {
name: 'Test Simulator Model',
description: 'Test Simulator Model Desc',
dataSetId: 97552494921583,
labels: [{ externalId: 'air-quality-po-1' }],
type: 'WaterWell',
},
]);
expect(res.length).toBe(1);
expect(res[0].externalId).toBe(modelExternalId);
});

test('aggregate models', async () => {
const aggregateResponse = await client.simulators.aggregateModels({
filter: {
simulatorExternalIds: [simulatorExternalId],
},
aggregate: 'count',
});

expect(aggregateResponse[0].count).toBeGreaterThan(0);
});

test('list models', async () => {
const list_response = await client.simulators.listModels();
expect(list_response.items.length).toBeGreaterThan(0);
Expand Down
41 changes: 38 additions & 3 deletions packages/alpha/src/__tests__/api/simulatorRoutinesApi.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { describe, expect, test } from 'vitest';
import type CogniteClientAlpha from '../../cogniteClient';
import type { SimulatorRoutineRevision } from '../../types';
import { setupLoggedInClient } from '../testUtils';
import {
fileExtensionTypes,
Expand Down Expand Up @@ -69,7 +70,6 @@ describeIf('simulator routines api', () => {
name: 'Test Simulator Model',
description: 'Test Simulator Model Desc',
dataSetId: 97552494921583,
labels: [{ externalId: 'air-quality-po-1' }],
type: 'WaterWell',
},
]);
Expand Down Expand Up @@ -159,11 +159,46 @@ describeIf('simulator routines api', () => {
});

test('list routine revision', async () => {
const listResponse = await client.simulators.listRoutineRevisions();
const listResponse = await client.simulators.listRoutineRevisions({
sort: [
{
property: 'createdTime',
order: 'desc',
},
],
});
expect(listResponse.items.length).toBeGreaterThan(0);
const routineRevisionFound = listResponse.items.find(
const routineRevisionFound = listResponse.items.filter(
(item) => item.routineExternalId === routineExternalId
);
expect(routineRevisionFound.length).toBe(1);
expect(routineRevisionFound[0].externalId).toBe(
`${routineRevisionExternalId}_2`
);
});

test('list routine revision include all fields', async () => {
const listResponse = await client.simulators
.listRoutineRevisions<SimulatorRoutineRevision>({
filter: { allVersions: true },
includeAllFields: true,
sort: [
{
property: 'createdTime',
order: 'desc',
},
],
})
.autoPagingToArray();
expect(listResponse.length).toBeGreaterThan(0);
const routineRevisionFound = listResponse.find(
(item) => item.externalId === routineRevisionExternalId
);
expect(routineRevisionFound).toBeDefined();
expect(routineRevisionFound?.script).toEqual(routineRevisionScript);
expect(routineRevisionFound?.configuration).toEqual(
routineRevisionConfiguration
);
expect(routineRevisionFound?.externalId).toBe(routineRevisionExternalId);
});

Expand Down
6 changes: 3 additions & 3 deletions packages/alpha/src/api/simulators/integrationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import type {
} from '../../types';

export class IntegrationsAPI extends BaseResourceAPI<SimulatorIntegration> {
public create = async (items: SimulatorIntegrationCreate[]) => {
public create = (items: SimulatorIntegrationCreate[]) => {
return this.createEndpoint(items);
};

public list = async (filter?: SimulatorIntegrationFilterQuery) => {
public list = (filter?: SimulatorIntegrationFilterQuery) => {
return this.listEndpoint<SimulatorIntegrationFilterQuery>(
this.callListEndpointWithPost,
filter
);
};

public delete = async (ids: IdEither[]) => {
public delete = (ids: IdEither[]) => {
return this.deleteEndpoint(ids);
};
}
8 changes: 4 additions & 4 deletions packages/alpha/src/api/simulators/modelRevisionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export class ModelRevisionsAPI extends BaseResourceAPI<SimulatorModelRevision> {
return this.pickDateProps(['items'], ['createdTime', 'lastUpdatedTime']);
}

public create = async (items: SimulatorModelRevisionCreate[]) => {
public create = (items: SimulatorModelRevisionCreate[]) => {
return this.createEndpoint(items);
};

public list = async (filter?: SimulatorModelRevisionFilterQuery) => {
public list = (filter?: SimulatorModelRevisionFilterQuery) => {
return this.listEndpoint<SimulatorModelRevisionFilterQuery>(
this.callListEndpointWithPost,
filter
Expand All @@ -31,11 +31,11 @@ export class ModelRevisionsAPI extends BaseResourceAPI<SimulatorModelRevision> {
return this.retrieveEndpoint(items);
}

public update = async (changes: SimulatorModelRevisionChange[]) => {
public update = (changes: SimulatorModelRevisionChange[]) => {
return this.updateEndpoint(changes);
};

public delete = async (ids: IdEither[]) => {
public delete = (ids: IdEither[]) => {
return this.deleteEndpoint(ids);
};
}
16 changes: 12 additions & 4 deletions packages/alpha/src/api/simulators/modelsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import { BaseResourceAPI, type IdEither } from '@cognite/sdk-core';
import type {
SimulatorModel,
SimulatorModelAggregate,
SimulatorModelAggregateQuery,
SimulatorModelChange,
SimulatorModelCreate,
SimulatorModelFilterQuery,
Expand All @@ -16,11 +18,17 @@ export class ModelsAPI extends BaseResourceAPI<SimulatorModel> {
return this.pickDateProps(['items'], ['createdTime', 'lastUpdatedTime']);
}

public create = async (items: SimulatorModelCreate[]) => {
public create = (items: SimulatorModelCreate[]) => {
return this.createEndpoint(items);
};

public list = async (filter?: SimulatorModelFilterQuery) => {
public aggregate = (
query: SimulatorModelAggregateQuery
): Promise<SimulatorModelAggregate[]> => {
return this.aggregateEndpoint(query);
};

public list = (filter?: SimulatorModelFilterQuery) => {
return this.listEndpoint<SimulatorModelFilterQuery>(
this.callListEndpointWithPost,
filter
Expand All @@ -31,11 +39,11 @@ export class ModelsAPI extends BaseResourceAPI<SimulatorModel> {
return this.retrieveEndpoint(items);
}

public update = async (changes: SimulatorModelChange[]) => {
public update = (changes: SimulatorModelChange[]) => {
return this.updateEndpoint(changes);
};

public delete = async (ids: IdEither[]) => {
public delete = (ids: IdEither[]) => {
return this.deleteEndpoint(ids);
};
}
Loading

0 comments on commit c4edd96

Please sign in to comment.