attlaz-client 1.35.1 → 1.36.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.
@@ -16,6 +16,8 @@ export declare class CodeDeploy {
16
16
  archiveSize: number | null;
17
17
  checksum: string | null;
18
18
  size: number | null;
19
+ storageBucketId: string | null;
20
+ storageItemId: string | null;
19
21
  commits: ProjectDeployCommit[];
20
22
  path: string | null;
21
23
  commitHash: string | null;
@@ -16,6 +16,8 @@ export class CodeDeploy {
16
16
  archiveSize = null;
17
17
  checksum = null;
18
18
  size = null;
19
+ storageBucketId = null;
20
+ storageItemId = null;
19
21
  commits = [];
20
22
  path = null;
21
23
  commitHash = null;
@@ -36,6 +38,8 @@ export class CodeDeploy {
36
38
  projectDeploy.archiveSize = rawCodeDeploy.archive_size === null ? null : Utils.parseInt(rawCodeDeploy.archive_size);
37
39
  projectDeploy.checksum = rawCodeDeploy.checksum;
38
40
  projectDeploy.size = rawCodeDeploy.size === null ? null : Utils.parseInt(rawCodeDeploy.size);
41
+ projectDeploy.storageBucketId = rawCodeDeploy.storage_bucket;
42
+ projectDeploy.storageItemId = rawCodeDeploy.storage_item;
39
43
  projectDeploy.commitHash = rawCodeDeploy.commit_hash;
40
44
  const rawProjectDeployCommits = rawCodeDeploy.commits;
41
45
  for (const rawProjectDeployCommit of rawProjectDeployCommits) {
@@ -10,6 +10,7 @@ export declare class StorageEndpoint extends Endpoint {
10
10
  clearPool(projectEnvironmentId: string, storageType: StorageType, poolKey: string): Promise<boolean>;
11
11
  getPoolItemsInformation(projectEnvironmentId: string, storageType: StorageType, poolKey: string, pagination?: CursorPagination | null): Promise<CollectionResult<StorageItemInformation>>;
12
12
  getItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItemKey: string): Promise<StorageItem | null>;
13
+ getBucketItem(storageBucketId: string, storageItemKey: string): Promise<StorageItem | null>;
13
14
  setItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItem: StorageItem): Promise<StorageItem>;
14
15
  deleteItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItemKey: string): Promise<boolean>;
15
16
  }
@@ -71,6 +71,19 @@ export class StorageEndpoint extends Endpoint {
71
71
  throw ex;
72
72
  }
73
73
  }
74
+ async getBucketItem(storageBucketId, storageItemKey) {
75
+ const cmd = '/storage/buckets/' + storageBucketId + '/items/' + storageItemKey;
76
+ try {
77
+ const result = await this.requestObject(cmd, null, StorageItem.parse, 'GET');
78
+ return result.getData();
79
+ }
80
+ catch (ex) {
81
+ if (this.httpClient.isDebugEnabled()) {
82
+ console.error('Failed to get storage item', ex);
83
+ }
84
+ throw ex;
85
+ }
86
+ }
74
87
  async setItem(projectEnvironmentId, storageType, poolKey, storageItem) {
75
88
  const cmd = '/projectenvironments/' + projectEnvironmentId + '/storage/' + storageType + '/' + poolKey + '/items/' + storageItem.key;
76
89
  try {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.35.0";
1
+ export declare const VERSION = "1.36.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.35.0";
1
+ export const VERSION = "1.36.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.35.1",
3
+ "version": "1.36.1",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",