attlaz-client 1.11.10 → 1.11.11

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,5 +1,4 @@
1
1
  export declare class StorageItem {
2
- id: string;
3
2
  key: string;
4
3
  bytes: number;
5
4
  created: Date | null;
@@ -1,6 +1,6 @@
1
1
  import { Utils } from '../../Utils.js';
2
2
  export class StorageItem {
3
- id;
3
+ // public id: string | null = null;
4
4
  key;
5
5
  bytes;
6
6
  created;
@@ -9,12 +9,12 @@ export class StorageItem {
9
9
  value;
10
10
  static parse(raw) {
11
11
  const storageItem = new StorageItem();
12
- storageItem.id = raw.id;
12
+ // storageItem.id = raw.id === null || raw.id === undefined ? null : raw.id;
13
13
  storageItem.key = raw.key;
14
14
  storageItem.bytes = raw.bytes;
15
15
  storageItem.value = raw.value;
16
- storageItem.created = raw.expiration === null ? null : Utils.parseRawDate(raw.created);
17
- storageItem.updated = raw.expiration === null ? null : Utils.parseRawDate(raw.updated);
16
+ storageItem.created = raw.created === null ? null : Utils.parseRawDate(raw.created);
17
+ storageItem.updated = raw.updated === null ? null : Utils.parseRawDate(raw.updated);
18
18
  storageItem.expiration = raw.expiration === null ? null : Utils.parseRawDate(raw.expiration);
19
19
  return storageItem;
20
20
  }
@@ -1,5 +1,4 @@
1
1
  export declare class StorageItemInformation {
2
- id: string;
3
2
  key: string;
4
3
  bytes: number;
5
4
  created: Date | null;
@@ -1,6 +1,6 @@
1
1
  import { Utils } from '../../Utils.js';
2
2
  export class StorageItemInformation {
3
- id;
3
+ // public id: string | null = null;
4
4
  key;
5
5
  bytes;
6
6
  created;
@@ -8,11 +8,11 @@ export class StorageItemInformation {
8
8
  expiration;
9
9
  static parse(raw) {
10
10
  const storageItemInformation = new StorageItemInformation();
11
- storageItemInformation.id = raw.id;
11
+ // storageItemInformation.id = raw.id;
12
12
  storageItemInformation.key = raw.key;
13
13
  storageItemInformation.bytes = raw.bytes;
14
- storageItemInformation.created = raw.expiration === null ? null : Utils.parseRawDate(raw.created);
15
- storageItemInformation.updated = raw.expiration === null ? null : Utils.parseRawDate(raw.updated);
14
+ storageItemInformation.created = raw.created === null ? null : Utils.parseRawDate(raw.created);
15
+ storageItemInformation.updated = raw.updated === null ? null : Utils.parseRawDate(raw.updated);
16
16
  storageItemInformation.expiration = raw.expiration === null ? null : Utils.parseRawDate(raw.expiration);
17
17
  return storageItemInformation;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.11.10",
3
+ "version": "1.11.11",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",