attlaz-client 1.22.0 → 1.22.1
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.
|
@@ -3,11 +3,12 @@ import { StorageInformation } from '../Model/Storage/StorageInformation.js';
|
|
|
3
3
|
import { StorageItem } from '../Model/Storage/StorageItem.js';
|
|
4
4
|
import { StorageItemInformation } from '../Model/Storage/StorageItemInformation.js';
|
|
5
5
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
6
|
+
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
6
7
|
import { Endpoint } from './Endpoint.js';
|
|
7
8
|
export declare class StorageEndpoint extends Endpoint {
|
|
8
9
|
getInformation(projectEnvironmentId: string, storageType: StorageType): Promise<StorageInformation | null>;
|
|
9
10
|
clearPool(projectEnvironmentId: string, storageType: StorageType, poolKey: string): Promise<boolean>;
|
|
10
|
-
getPoolItemsInformation(projectEnvironmentId: string, storageType: StorageType, poolKey: string): Promise<CollectionResult<StorageItemInformation>>;
|
|
11
|
+
getPoolItemsInformation(projectEnvironmentId: string, storageType: StorageType, poolKey: string, pagination?: CursorPagination | null): Promise<CollectionResult<StorageItemInformation>>;
|
|
11
12
|
getItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItemKey: string): Promise<StorageItem | null>;
|
|
12
13
|
setItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItem: StorageItem): Promise<StorageItem>;
|
|
13
14
|
deleteItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItemKey: string): Promise<boolean>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StorageInformation } from '../Model/Storage/StorageInformation.js';
|
|
2
2
|
import { StorageItem } from '../Model/Storage/StorageItem.js';
|
|
3
3
|
import { StorageItemInformation } from '../Model/Storage/StorageItemInformation.js';
|
|
4
|
+
import { QueryString } from '../Http/Data/QueryString.js';
|
|
4
5
|
import { Endpoint } from './Endpoint.js';
|
|
5
6
|
export class StorageEndpoint extends Endpoint {
|
|
6
7
|
async getInformation(projectEnvironmentId, storageType) {
|
|
@@ -43,10 +44,11 @@ export class StorageEndpoint extends Endpoint {
|
|
|
43
44
|
throw ex;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
|
-
async getPoolItemsInformation(projectEnvironmentId, storageType, poolKey) {
|
|
47
|
-
const
|
|
47
|
+
async getPoolItemsInformation(projectEnvironmentId, storageType, poolKey, pagination = null) {
|
|
48
|
+
const qs = new QueryString('/projectenvironments/' + projectEnvironmentId + '/storage/' + storageType + '/' + poolKey + '/items');
|
|
49
|
+
qs.addPagination(pagination);
|
|
48
50
|
try {
|
|
49
|
-
const result = await this.requestCollection(
|
|
51
|
+
const result = await this.requestCollection(qs, StorageItemInformation.parse, null, 'GET');
|
|
50
52
|
return result;
|
|
51
53
|
}
|
|
52
54
|
catch (ex) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.1",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jest": "^29.5.14",
|
|
50
|
-
"@types/node": "^22.10.
|
|
50
|
+
"@types/node": "^22.10.5",
|
|
51
51
|
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
52
52
|
"@typescript-eslint/parser": "^8.1.0",
|
|
53
53
|
"dotenv": "^16.4.7",
|