attlaz-client 1.4.19 → 1.4.22

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.
@@ -2,7 +2,7 @@ export declare enum StorageType {
2
2
  Cache = "cache",
3
3
  Persistent = "persistent",
4
4
  Vault = "vault",
5
- Workers = "workers"
5
+ Infrastructure = "infrastructure"
6
6
  }
7
7
  export declare namespace StorageType {
8
8
  function fromString(input: string): StorageType;
@@ -7,7 +7,7 @@ var StorageType;
7
7
  StorageType["Cache"] = "cache";
8
8
  StorageType["Persistent"] = "persistent";
9
9
  StorageType["Vault"] = "vault";
10
- StorageType["Workers"] = "workers";
10
+ StorageType["Infrastructure"] = "infrastructure";
11
11
  })(StorageType = exports.StorageType || (exports.StorageType = {}));
12
12
  (function (StorageType) {
13
13
  function fromString(input) {
@@ -55,7 +55,7 @@ class LogEndpoint extends Endpoint_1.Endpoint {
55
55
  return new Promise((resolve, reject) => {
56
56
  let cmd = '/logstreams/' + Utils_1.Utils.base64encode(log.logStream.id) + '/logs';
57
57
  this.httpClient.request(cmd, log, 'POST').then((rawSavedLog) => {
58
- resolve(Log_1.Log.parse(rawSavedLog));
58
+ resolve(Log_1.Log.parse(rawSavedLog.getData()));
59
59
  }).catch((reason) => {
60
60
  if (this.httpClient.isDebugEnabled()) {
61
61
  console.error('Failed to save log: ', reason);
@@ -7,7 +7,7 @@ class StorageEndpoint extends Endpoint_1.Endpoint {
7
7
  async getInformation(projectEnvironmentId, storageType) {
8
8
  let cmd = '/projectenvironments/' + projectEnvironmentId + '/storage/' + storageType;
9
9
  try {
10
- const result = await this.request(cmd, null, 'POST');
10
+ const result = await this.request(cmd, null, 'GET');
11
11
  if (Utils_1.Utils.isNullOrUndefined(result)) {
12
12
  return null;
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.4.19",
3
+ "version": "1.4.22",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",