attlaz-client 1.71.0 → 1.72.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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Endpoint } from './Endpoint.js';
|
|
2
2
|
import { Workspace } from '../Model/Workspace/Workspace.js';
|
|
3
3
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
4
|
+
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
4
5
|
export declare class WorkspaceEndpoint extends Endpoint {
|
|
5
|
-
getAll(): Promise<CollectionResult<Workspace>>;
|
|
6
|
+
getAll(pagination?: CursorPagination | null): Promise<CollectionResult<Workspace>>;
|
|
6
7
|
getById(workspaceId: string): Promise<Workspace | null>;
|
|
7
8
|
save(workspace: Workspace): Promise<Workspace>;
|
|
8
9
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Endpoint } from './Endpoint.js';
|
|
2
2
|
import { Workspace } from '../Model/Workspace/Workspace.js';
|
|
3
|
+
import { QueryString } from '../Http/Data/QueryString.js';
|
|
3
4
|
export class WorkspaceEndpoint extends Endpoint {
|
|
4
|
-
async getAll() {
|
|
5
|
+
async getAll(pagination = null) {
|
|
5
6
|
try {
|
|
6
|
-
const
|
|
7
|
+
const queryString = new QueryString('/workspaces');
|
|
8
|
+
queryString.addPagination(pagination);
|
|
9
|
+
const result = await this.requestCollection(queryString, Workspace.parse);
|
|
7
10
|
return result;
|
|
8
11
|
}
|
|
9
12
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.72.0",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/jest": "^30.0.0",
|
|
53
|
-
"@types/node": "^25.9.
|
|
53
|
+
"@types/node": "^25.9.3",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
55
55
|
"@typescript-eslint/parser": "^8.59.3",
|
|
56
56
|
"eslint": "^9.39.4",
|