attlaz-client 1.20.0 → 1.21.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.
@@ -21,7 +21,7 @@ export class SearchResult {
21
21
  searchResult.object = rawResult.object;
22
22
  searchResult.label = rawResult.label;
23
23
  searchResult.description = rawResult.description;
24
- switch (rawResult.type) {
24
+ switch (rawResult.entity_type) {
25
25
  case EntityType.Workspace:
26
26
  searchResult.object = Workspace.parse(rawResult.object);
27
27
  break;
@@ -4,8 +4,8 @@ export declare class UserAction {
4
4
  userId: string;
5
5
  workspaceId: string;
6
6
  action: string;
7
- resourceId: string;
8
- resourceType: string;
7
+ entityId: string;
8
+ entityType: string;
9
9
  description: string;
10
10
  ip: string;
11
11
  time: Date;
@@ -3,8 +3,8 @@ export class UserAction {
3
3
  userId;
4
4
  workspaceId;
5
5
  action;
6
- resourceId;
7
- resourceType;
6
+ entityId;
7
+ entityType;
8
8
  description;
9
9
  ip;
10
10
  time;
@@ -1,8 +1,8 @@
1
- import { Endpoint } from './Endpoint.js';
2
1
  import { Project } from '../Model/Project/Project.js';
3
2
  import { CollectionResult } from '../Model/Result/CollectionResult.js';
4
3
  import { State } from '../Model/State.js';
5
4
  import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
5
+ import { Endpoint } from './Endpoint.js';
6
6
  export declare class ProjectEndpoint extends Endpoint {
7
7
  getAll(): Promise<CollectionResult<Project>>;
8
8
  getByWorkspace(workspaceId: string, pagination?: CursorPagination | null, states?: State[] | null): Promise<CollectionResult<Project>>;
@@ -1,6 +1,6 @@
1
- import { Endpoint } from './Endpoint.js';
2
1
  import { Project } from '../Model/Project/Project.js';
3
2
  import { QueryString } from '../Http/Data/QueryString.js';
3
+ import { Endpoint } from './Endpoint.js';
4
4
  export class ProjectEndpoint extends Endpoint {
5
5
  async getAll() {
6
6
  try {
@@ -52,8 +52,8 @@ export class UserActionEndpoint extends Endpoint {
52
52
  userAction.userId = rawUserEvent.user;
53
53
  userAction.workspaceId = rawUserEvent.workspace;
54
54
  userAction.action = rawUserEvent.action;
55
- userAction.resourceId = rawUserEvent.resource;
56
- userAction.resourceType = rawUserEvent.resource_type;
55
+ userAction.entityId = rawUserEvent.entity;
56
+ userAction.entityType = rawUserEvent.entity_type;
57
57
  userAction.description = rawUserEvent.description;
58
58
  userAction.ip = rawUserEvent.ip;
59
59
  userAction.time = Utils.parseRawDate(rawUserEvent.time);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.19.9";
1
+ export declare const VERSION = "1.21.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.19.9";
1
+ export const VERSION = "1.21.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.20.0",
3
+ "version": "1.21.1",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",