@basis-theory/basis-theory-js 2.3.1 → 2.4.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/basis-theory-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"repository": "https://github.com/Basis-Theory/basis-theory-js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"!*.bundle.js"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"axios": "^1.
|
|
18
|
+
"axios": "^1.6.0",
|
|
19
19
|
"camelcase-keys": "^6.2.2",
|
|
20
20
|
"csstype": "^3.0.11",
|
|
21
21
|
"os": "^0.1.2",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"resolutions": {
|
|
27
27
|
"glob-parent": "^5.1.2",
|
|
28
|
-
"postcss": "^8.
|
|
28
|
+
"postcss": "^8.4.31",
|
|
29
29
|
"normalize-url": "^5.3.1",
|
|
30
30
|
"is-svg": "^4.2.2",
|
|
31
31
|
"yargs-parser": "^21.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BasisTheoryService } from '../service';
|
|
2
2
|
import type { Permission } from '../types/models';
|
|
3
|
-
import type { RequestOptions } from '../types/sdk';
|
|
3
|
+
import type { ListPermissionsQuery, RequestOptions } from '../types/sdk';
|
|
4
4
|
export declare class BasisTheoryPermissions extends BasisTheoryService {
|
|
5
|
-
list(options?: RequestOptions): Promise<Permission[]>;
|
|
5
|
+
list(query?: ListPermissionsQuery, options?: RequestOptions): Promise<Permission[]>;
|
|
6
6
|
}
|
|
@@ -10,8 +10,9 @@ var _common = require("./../common");
|
|
|
10
10
|
var _service = require("./../service");
|
|
11
11
|
|
|
12
12
|
class BasisTheoryPermissions extends _service.BasisTheoryService {
|
|
13
|
-
list(options) {
|
|
14
|
-
|
|
13
|
+
list(query, options) {
|
|
14
|
+
const url = `/${(0, _common.getQueryParams)(query)}`;
|
|
15
|
+
return this.client.get(url, (0, _common.createRequestConfig)(options)).then(_common.dataExtractor);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { Permission } from '../../../types/models';
|
|
2
|
+
import { ApplicationType } from '../../../types/models';
|
|
2
3
|
import type { RequestOptions } from './shared';
|
|
4
|
+
interface ListPermissionsQuery {
|
|
5
|
+
applicationType?: ApplicationType;
|
|
6
|
+
}
|
|
3
7
|
interface Permissions {
|
|
4
|
-
list(options?: RequestOptions): Promise<Permission[]>;
|
|
8
|
+
list(query?: ListPermissionsQuery, options?: RequestOptions): Promise<Permission[]>;
|
|
5
9
|
}
|
|
6
|
-
export type { Permissions };
|
|
10
|
+
export type { Permissions, ListPermissionsQuery };
|