attlaz-client 1.18.3 → 1.18.4

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,17 +2,20 @@ import { Endpoint } from './Endpoint.js';
2
2
  import { CollectionResult } from '../Model/Result/CollectionResult.js';
3
3
  import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
4
4
  export type BlockedIp = {
5
+ id: string;
5
6
  ip: string;
6
7
  from: Date;
7
8
  to: Date;
8
9
  reason: string;
9
10
  };
10
11
  export type FlaggedIp = {
12
+ id: string;
11
13
  ip: string;
12
14
  date: Date;
13
15
  reason: string;
14
16
  };
15
17
  export type IpRule = {
18
+ id: string;
16
19
  ip: string;
17
20
  action: string;
18
21
  description: string;
@@ -5,6 +5,7 @@ export class FirewallEndpoint extends Endpoint {
5
5
  async getBlockedIps(pagination) {
6
6
  const parser = (raw) => {
7
7
  return {
8
+ id: raw.id,
8
9
  ip: raw.ip,
9
10
  from: Utils.parseRawDate(raw.from),
10
11
  to: Utils.parseRawDate(raw.to),
@@ -19,6 +20,7 @@ export class FirewallEndpoint extends Endpoint {
19
20
  async getFlaggedIps(pagination) {
20
21
  const parser = (raw) => {
21
22
  return {
23
+ id: raw.id,
22
24
  ip: raw.ip,
23
25
  date: Utils.parseRawDate(raw.date),
24
26
  reason: raw.reason,
@@ -32,6 +34,7 @@ export class FirewallEndpoint extends Endpoint {
32
34
  async getIpRules(pagination) {
33
35
  const parser = (raw) => {
34
36
  return {
37
+ id: raw.id,
35
38
  ip: raw.ip,
36
39
  action: raw.action,
37
40
  description: raw.description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.18.3",
3
+ "version": "1.18.4",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",