attlaz-client 1.22.0 → 1.22.2

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.
@@ -9,6 +9,8 @@ export declare class Flow extends MetaDataAware implements StateAware {
9
9
  projectId: string;
10
10
  isDirect: boolean;
11
11
  state: State;
12
+ createdAt: Date;
13
+ updatedAt: Date;
12
14
  /** The maximum number of flows to run at any time (0 = no limit) * */
13
15
  parallelLimit: number;
14
16
  codeSource: string | null;
@@ -10,6 +10,8 @@ export class Flow extends MetaDataAware {
10
10
  projectId;
11
11
  isDirect = false;
12
12
  state = State.Active;
13
+ createdAt;
14
+ updatedAt;
13
15
  /** The maximum number of flows to run at any time (0 = no limit) * */
14
16
  parallelLimit = 0;
15
17
  codeSource = null;
@@ -23,6 +25,8 @@ export class Flow extends MetaDataAware {
23
25
  flow.description = rawFlow.description;
24
26
  flow.isDirect = Utils.isTrue(rawFlow.is_direct);
25
27
  flow.state = State.fromString(rawFlow.state);
28
+ flow.updatedAt = rawFlow.updated;
29
+ flow.createdAt = rawFlow.created;
26
30
  flow.parallelLimit = Utils.parseInt(rawFlow.parallel_limit);
27
31
  flow.codeSource = rawFlow.code_source;
28
32
  flow.runStrategy = rawFlow.run_strategy;
@@ -12,5 +12,7 @@ export declare class FlowRun extends MetaDataAware {
12
12
  deployId: string;
13
13
  logLevelCount: Map<LogLevel, number>;
14
14
  logsPurged: boolean;
15
+ createdAt: Date;
16
+ updatedAt: Date;
15
17
  static parse(rawFlowRun: any): FlowRun;
16
18
  }
@@ -15,6 +15,8 @@ export class FlowRun extends MetaDataAware {
15
15
  deployId;
16
16
  logLevelCount;
17
17
  logsPurged = false;
18
+ createdAt;
19
+ updatedAt;
18
20
  static parse(rawFlowRun) {
19
21
  const flowRun = new FlowRun();
20
22
  flowRun.id = rawFlowRun.id;
@@ -26,6 +28,8 @@ export class FlowRun extends MetaDataAware {
26
28
  flowRun.deployId = rawFlowRun.deploy;
27
29
  flowRun.logLevelCount = rawFlowRun.log_level_count;
28
30
  flowRun.logsPurged = Utils.isTrue(rawFlowRun.logs_purged);
31
+ flowRun.createdAt = rawFlowRun.created;
32
+ flowRun.updatedAt = rawFlowRun.updated;
29
33
  if (Object.prototype.hasOwnProperty.call(rawFlowRun, 'metadata')) {
30
34
  flowRun.metadata = DataValueCollection.fromObject(rawFlowRun.metadata);
31
35
  }
@@ -4,5 +4,5 @@ export declare class StorageItemInformation {
4
4
  created: Date | null;
5
5
  updated: Date | null;
6
6
  expiration: Date | null;
7
- static parse(raw: any): StorageItemInformation;
7
+ static parse(raw: Record<string, unknown>): StorageItemInformation;
8
8
  }
@@ -3,11 +3,12 @@ import { StorageInformation } from '../Model/Storage/StorageInformation.js';
3
3
  import { StorageItem } from '../Model/Storage/StorageItem.js';
4
4
  import { StorageItemInformation } from '../Model/Storage/StorageItemInformation.js';
5
5
  import { CollectionResult } from '../Model/Result/CollectionResult.js';
6
+ import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
6
7
  import { Endpoint } from './Endpoint.js';
7
8
  export declare class StorageEndpoint extends Endpoint {
8
9
  getInformation(projectEnvironmentId: string, storageType: StorageType): Promise<StorageInformation | null>;
9
10
  clearPool(projectEnvironmentId: string, storageType: StorageType, poolKey: string): Promise<boolean>;
10
- getPoolItemsInformation(projectEnvironmentId: string, storageType: StorageType, poolKey: string): Promise<CollectionResult<StorageItemInformation>>;
11
+ getPoolItemsInformation(projectEnvironmentId: string, storageType: StorageType, poolKey: string, pagination?: CursorPagination | null): Promise<CollectionResult<StorageItemInformation>>;
11
12
  getItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItemKey: string): Promise<StorageItem | null>;
12
13
  setItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItem: StorageItem): Promise<StorageItem>;
13
14
  deleteItem(projectEnvironmentId: string, storageType: StorageType, poolKey: string, storageItemKey: string): Promise<boolean>;
@@ -1,6 +1,7 @@
1
1
  import { StorageInformation } from '../Model/Storage/StorageInformation.js';
2
2
  import { StorageItem } from '../Model/Storage/StorageItem.js';
3
3
  import { StorageItemInformation } from '../Model/Storage/StorageItemInformation.js';
4
+ import { QueryString } from '../Http/Data/QueryString.js';
4
5
  import { Endpoint } from './Endpoint.js';
5
6
  export class StorageEndpoint extends Endpoint {
6
7
  async getInformation(projectEnvironmentId, storageType) {
@@ -43,10 +44,11 @@ export class StorageEndpoint extends Endpoint {
43
44
  throw ex;
44
45
  }
45
46
  }
46
- async getPoolItemsInformation(projectEnvironmentId, storageType, poolKey) {
47
- const cmd = '/projectenvironments/' + projectEnvironmentId + '/storage/' + storageType + '/' + poolKey + '/items';
47
+ async getPoolItemsInformation(projectEnvironmentId, storageType, poolKey, pagination = null) {
48
+ const qs = new QueryString('/projectenvironments/' + projectEnvironmentId + '/storage/' + storageType + '/' + poolKey + '/items');
49
+ qs.addPagination(pagination);
48
50
  try {
49
- const result = await this.requestCollection(cmd, StorageItemInformation.parse, null, 'GET');
51
+ const result = await this.requestCollection(qs, StorageItemInformation.parse, null, 'GET');
50
52
  return result;
51
53
  }
52
54
  catch (ex) {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.22.0";
1
+ export declare const VERSION = "1.22.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.22.0";
1
+ export const VERSION = "1.22.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.22.0",
3
+ "version": "1.22.2",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^29.5.14",
50
- "@types/node": "^22.10.2",
50
+ "@types/node": "^22.10.5",
51
51
  "@typescript-eslint/eslint-plugin": "^8.1.0",
52
52
  "@typescript-eslint/parser": "^8.1.0",
53
53
  "dotenv": "^16.4.7",