Skip to content

Commit

Permalink
merge release/0.30.0 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed May 23, 2024
2 parents 8316c53 + c75d7f0 commit 38bc899
Show file tree
Hide file tree
Showing 13 changed files with 358 additions and 70 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## 0.30.0 (2024-05-23)

* release version 0.30.0 ([c75d7f0](https://github.com/entrecode/ec.sdk/commit/c75d7f0))
* feat: nativePermissions support in GroupResource and AccountResource ([4f6c11d](https://github.com/entrecode/ec.sdk/commit/4f6c11d))


### BREAKING CHANGE

* This commit adds support for nativePermissions property. The setter for previously used permissions property has been removed.

before:
```js
const account = await api.account(id);
account.permissions = generateNewPermissionArray();
```

after:
```js
const account = await api.account(id);
account.nativePermissions = generateNewPermissionArray();
```


## <small>0.29.2 (2024-05-14)</small>

* fix typings for fileOptions ([b6d80b8](https://github.com/entrecode/ec.sdk/commit/b6d80b8))
Expand Down
200 changes: 194 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<title>ec.sdk 0.29.2 | Documentation</title>
<title>ec.sdk 0.30.0 | Documentation</title>
<meta name='description' content='SDK for ec.api'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>ec.sdk</h3>
<div class='mb1'><code>0.29.2</code></div>
<div class='mb1'><code>0.30.0</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down Expand Up @@ -1368,6 +1368,18 @@ <h3 class='mb0 no-anchor'>ec.sdk</h3>
#addPermissions
</a></li>

<li><a
href='#accountresourceremovepermission'
class='regular pre-open'>
#removePermission
</a></li>

<li><a
href='#accountresourceremovepermissions'
class='regular pre-open'>
#removePermissions
</a></li>

<li><a
href='#accountresourcecheckpermission'
class='regular pre-open'>
Expand Down Expand Up @@ -16890,7 +16902,14 @@ <h3 class='fl m0' id='accountresource'>

<div class='space-bottom0'>
<span class='code bold'>permissions</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>>)</code>
: Array of permissions
: Array of all permissions


</div>

<div class='space-bottom0'>
<span class='code bold'>nativePermissions</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>>)</code>
: Array of native permissions


</div>
Expand Down Expand Up @@ -17065,6 +17084,148 @@ <h3 class='fl m0' id='accountresource'>



</section>

</div>
</div>

<div class='border-bottom' id='accountresourceremovepermission'>
<div class="clearfix small pointer toggle-sibling">
<div class="py1 contain">
<a class='icon pin-right py1 dark-link caret-right'>▸</a>
<span class='code strong strong truncate'>removePermission(value)</span>
</div>
</div>
<div class="clearfix display-none toggle-target">
<section class='p2 mb2 clearfix bg-white minishadow'>



<p>Remove a single permission from this account.</p>

<div class='pre p1 fill-light mt0'>removePermission(value: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="#accountresource">AccountResource</a></div>











<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>

<div class='space-bottom0'>
<div>
<span class='code bold'>value</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>)</code>
the permission to remove

</div>

</div>

</div>






<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="#accountresource">AccountResource</a></code>:
returns this account resource


















</section>

</div>
</div>

<div class='border-bottom' id='accountresourceremovepermissions'>
<div class="clearfix small pointer toggle-sibling">
<div class="py1 contain">
<a class='icon pin-right py1 dark-link caret-right'>▸</a>
<span class='code strong strong truncate'>removePermissions(value)</span>
</div>
</div>
<div class="clearfix display-none toggle-target">
<section class='p2 mb2 clearfix bg-white minishadow'>



<p>Remove multiple permissions from this account.</p>

<div class='pre p1 fill-light mt0'>removePermissions(value: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>>): <a href="#accountresource">AccountResource</a></div>











<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>

<div class='space-bottom0'>
<div>
<span class='code bold'>value</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>>)</code>
the permissions to remove

</div>

</div>

</div>






<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="#accountresource">AccountResource</a></code>:
returns this account resource


















</section>

</div>
Expand Down Expand Up @@ -17231,7 +17392,9 @@ <h3 class='fl m0' id='accountresource'>




<div>Deprecated: Since Account Server 1.2.0 this is the same as
<a href="AccountResource#permissions">AccountResource#permissions</a>
</div>



Expand Down Expand Up @@ -18244,7 +18407,21 @@ <h3 class='fl m0' id='groupresource'>

<div class='space-bottom0'>
<span class='code bold'>permissions</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>>)</code>
: Array of permissions
: Array of all permissions


</div>

<div class='space-bottom0'>
<span class='code bold'>subgroups</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>>)</code>
: Array of all subgroups


</div>

<div class='space-bottom0'>
<span class='code bold'>nativePermissions</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>>)</code>
: Array of native permissions


</div>
Expand Down Expand Up @@ -32572,7 +32749,18 @@ <h2 id='changelog' class='mt0'>
</h2>


<h2>0.29.2 (2024-05-14)</h2>
<h2>0.30.0 (2024-05-23)</h2>
<ul>
<li>release version 0.30.0 (<a href="https://github.com/entrecode/ec.sdk/commit/c75d7f0">c75d7f0</a>)</li>
<li>feat: nativePermissions support in GroupResource and AccountResource (<a href="https://github.com/entrecode/ec.sdk/commit/4f6c11d">4f6c11d</a>)</li>
</ul>
<h3>BREAKING CHANGE</h3>
<ul>
<li>This commit adds support for nativePermissions property. The setter for previously used permissions property has been removed.</li>
</ul>
<p>before:</p>
<p>after:</p>
<h2>0.29.2 (2024-05-14)</h2>
<ul>
<li>fix typings for fileOptions (<a href="https://github.com/entrecode/ec.sdk/commit/b6d80b8">b6d80b8</a>)</li>
<li>release version 0.29.2 (<a href="https://github.com/entrecode/ec.sdk/commit/a80401a">a80401a</a>)</li>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ec.sdk",
"version": "0.29.2",
"version": "0.30.0",
"description": "SDK for ec.api",
"repository": "entrecode/ec.sdk",
"author": "Simon Scherzinger <scherzinger@entrecode.de>",
Expand Down
Loading

0 comments on commit 38bc899

Please sign in to comment.