attlaz-client 1.21.13 → 1.21.14

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.
@@ -6,7 +6,7 @@ export declare class DataValueCollection extends JsonSerializable implements Ite
6
6
  static fromObject(rawValues: {
7
7
  key: string;
8
8
  value: DataValueValue;
9
- }[]): DataValueCollection;
9
+ }[] | null): DataValueCollection;
10
10
  set(key: string, value: DataValueValue): void;
11
11
  has(key: string): boolean;
12
12
  get(key: string): DataValueValue | null;
@@ -7,7 +7,7 @@ export class DataValueCollection extends JsonSerializable {
7
7
  return this._values.length;
8
8
  }
9
9
  static fromObject(rawValues) {
10
- if (Utils.isNullOrUndefined(rawValues)) {
10
+ if (rawValues === null || rawValues === undefined) {
11
11
  return new DataValueCollection();
12
12
  }
13
13
  if (!Utils.isIterable(rawValues)) {
@@ -5,13 +5,13 @@ import { ChannelType } from './ChannelType.js';
5
5
  export declare class Channel extends MetaDataAware implements StateAware {
6
6
  id: string;
7
7
  ownerId: string;
8
- label: string;
8
+ name: string;
9
9
  type: ChannelType;
10
10
  data: any;
11
11
  state: State;
12
12
  workspaces: string[];
13
13
  isPrivate: boolean;
14
14
  singleUse: boolean;
15
- constructor(id: string, ownerId: string, label: string, type: ChannelType, data: any);
16
- static parse(rawChannel: any): Channel;
15
+ constructor(id: string, ownerId: string, name: string, type: ChannelType, data: any);
16
+ static parse(rawChannel: Record<string, unknown>): Channel;
17
17
  }
@@ -6,24 +6,24 @@ import { ChannelType } from './ChannelType.js';
6
6
  export class Channel extends MetaDataAware {
7
7
  id;
8
8
  ownerId;
9
- label;
9
+ name;
10
10
  type;
11
11
  data;
12
12
  state = State.Active;
13
13
  workspaces = [];
14
14
  isPrivate = false;
15
15
  singleUse = false;
16
- constructor(id, ownerId, label, type, data) {
16
+ constructor(id, ownerId, name, type, data) {
17
17
  super();
18
18
  this.id = id;
19
19
  this.ownerId = ownerId;
20
- this.label = label;
20
+ this.name = name;
21
21
  this.type = type;
22
22
  this.data = data;
23
23
  }
24
24
  static parse(rawChannel) {
25
25
  const type = ChannelType.fromString(rawChannel.type);
26
- const channel = new Channel(rawChannel.id, rawChannel.owner, rawChannel.label, type, rawChannel.data);
26
+ const channel = new Channel(rawChannel.id, rawChannel.owner, rawChannel.name, type, rawChannel.data);
27
27
  channel.state = State.fromString(rawChannel.state);
28
28
  channel.isPrivate = Utils.isTrue(rawChannel.is_private);
29
29
  channel.singleUse = Utils.isTrue(rawChannel.single_use);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.21.12";
1
+ export declare const VERSION = "1.21.13";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.21.12";
1
+ export const VERSION = "1.21.13";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.21.13",
3
+ "version": "1.21.14",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",