@narrative.io/data-collaboration-sdk-ts 0.0.110 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,8 +16,11 @@ class AccessRulesApi extends BaseApi {
|
|
|
16
16
|
* console.log(rules);
|
|
17
17
|
* });
|
|
18
18
|
*/
|
|
19
|
-
async getAccessRules() {
|
|
20
|
-
|
|
19
|
+
async getAccessRules(datasetId) {
|
|
20
|
+
const resource = datasetId !== undefined
|
|
21
|
+
? `${resourceName}?dataset_id=${datasetId}`
|
|
22
|
+
: resourceName;
|
|
23
|
+
return await this.get(resource);
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* Deletes an access rule by ID.
|