Esri / arcgis-rest-js

compact, modular JavaScript wrappers for the ArcGIS REST API
https://developers.arcgis.com/arcgis-rest-js/
Apache License 2.0
347 stars 119 forks source link

Add support for `permanentDelete` option #1131

Closed MikeTschudi closed 11 months ago

codecov[bot] commented 11 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (33aba89) 100.00% compared to head (2d81295) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1131 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 177 177 Lines 3245 3249 +4 Branches 550 552 +2 ========================================= + Hits 3245 3249 +4 ``` | [Files](https://app.codecov.io/gh/Esri/arcgis-rest-js/pull/1131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Esri) | Coverage Δ | | |---|---|---| | [packages/arcgis-rest-portal/src/items/helpers.ts](https://app.codecov.io/gh/Esri/arcgis-rest-js/pull/1131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Esri#diff-cGFja2FnZXMvYXJjZ2lzLXJlc3QtcG9ydGFsL3NyYy9pdGVtcy9oZWxwZXJzLnRz) | `100.00% <ø> (ø)` | | | [packages/arcgis-rest-portal/src/items/remove.ts](https://app.codecov.io/gh/Esri/arcgis-rest-js/pull/1131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Esri#diff-cGFja2FnZXMvYXJjZ2lzLXJlc3QtcG9ydGFsL3NyYy9pdGVtcy9yZW1vdmUudHM=) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

MikeTschudi commented 11 months ago

Handleable via the standard request as @patrickarlt suggested:

const requestOptions: IUserItemOptions = {
  id,
  authentication,
  params: {
    permanentDelete: true
  }
};