@attlaz/client 1.125.0 → 1.126.0
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.
- package/dist/MarketPulse/Model/CrawlJob.d.ts +8 -1
- package/dist/MarketPulse/Model/CrawlJob.js +9 -1
- package/dist/Model/InfrastructureStatus/QueueStatus.d.ts +19 -1
- package/dist/Model/InfrastructureStatus/QueueStatus.js +2 -0
- package/dist/Model/Project/CodeDeploy.d.ts +9 -5
- package/dist/Model/Project/CodeDeploy.js +17 -10
- package/dist/index.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -17,9 +17,16 @@ export declare class CrawlJob {
|
|
|
17
17
|
* it never looked for most products, so its silence about them proves nothing.
|
|
18
18
|
*/
|
|
19
19
|
isPartial: boolean;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Progress (populated by list endpoints): total pages and how many reached a terminal state.
|
|
22
|
+
*
|
|
23
|
+
* `failed` is part of `processed`, not separate from it — a finished crawl has
|
|
24
|
+
* `processed === total` whether or not pages failed, so `failed > 0` is the only thing that
|
|
25
|
+
* distinguishes a crawl that lost pages from a clean one.
|
|
26
|
+
*/
|
|
21
27
|
total: number;
|
|
22
28
|
processed: number;
|
|
29
|
+
failed: number;
|
|
23
30
|
constructor(id: string, vendorId: string);
|
|
24
31
|
static parse(raw: ApiRecord): CrawlJob;
|
|
25
32
|
}
|
|
@@ -15,9 +15,16 @@ export class CrawlJob {
|
|
|
15
15
|
* it never looked for most products, so its silence about them proves nothing.
|
|
16
16
|
*/
|
|
17
17
|
isPartial = false;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Progress (populated by list endpoints): total pages and how many reached a terminal state.
|
|
20
|
+
*
|
|
21
|
+
* `failed` is part of `processed`, not separate from it — a finished crawl has
|
|
22
|
+
* `processed === total` whether or not pages failed, so `failed > 0` is the only thing that
|
|
23
|
+
* distinguishes a crawl that lost pages from a clean one.
|
|
24
|
+
*/
|
|
19
25
|
total = 0;
|
|
20
26
|
processed = 0;
|
|
27
|
+
failed = 0;
|
|
21
28
|
constructor(id, vendorId) {
|
|
22
29
|
this.id = id;
|
|
23
30
|
this.vendorId = vendorId;
|
|
@@ -35,6 +42,7 @@ export class CrawlJob {
|
|
|
35
42
|
job.isPartial = raw.is_partial === true;
|
|
36
43
|
job.total = Number(raw.total ?? 0);
|
|
37
44
|
job.processed = Number(raw.processed ?? 0);
|
|
45
|
+
job.failed = Number(raw.failed ?? 0);
|
|
38
46
|
return job;
|
|
39
47
|
}
|
|
40
48
|
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Our vocabulary, not RabbitMQ's — `rabbit_state` carries what it actually said. Keeping the union
|
|
3
|
+
* small is what lets a consumer switch on it exhaustively; keeping the raw value is what stops the
|
|
4
|
+
* mapping from losing information.
|
|
5
|
+
*/
|
|
6
|
+
export type QueueState =
|
|
7
|
+
/** The queue exists and is serving. RabbitMQ's running, idle and flow all land here. */
|
|
8
|
+
'running'
|
|
9
|
+
/** The queue exists but RabbitMQ reports it as down, crashed, stopped, minority or terminated. */
|
|
10
|
+
| 'degraded'
|
|
11
|
+
/** The queue exists and RabbitMQ reported a state we don't recognise. See `rabbit_state`. */
|
|
12
|
+
| 'unknown'
|
|
13
|
+
/** RabbitMQ answered, and there is no such queue. */
|
|
14
|
+
| 'nonexisting'
|
|
15
|
+
/** We could not ask RabbitMQ, or could not read its answer. Not the same as nonexisting. */
|
|
16
|
+
| 'unreachable';
|
|
1
17
|
export declare class QueueStatus {
|
|
2
18
|
name: string;
|
|
3
|
-
state:
|
|
19
|
+
state: QueueState;
|
|
20
|
+
/** Verbatim RabbitMQ state; null when it never answered. */
|
|
21
|
+
rabbit_state: string | null;
|
|
4
22
|
vhost: string;
|
|
5
23
|
messages_ready: number;
|
|
6
24
|
messages_handling: number;
|
|
@@ -11,11 +11,15 @@ export declare class CodeDeploy {
|
|
|
11
11
|
started: Date | null;
|
|
12
12
|
finished: Date | null;
|
|
13
13
|
status: CodeDeployStatus;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
/** The deliverable — the archive today, possibly an image later. */
|
|
15
|
+
artifactChecksum: string | null;
|
|
16
|
+
artifactFormat: string | null;
|
|
17
|
+
artifactSize: number | null;
|
|
18
|
+
/** Null while the artifact is still served; set once it is withdrawn. */
|
|
19
|
+
artifactRetiredAt: Date | null;
|
|
20
|
+
/** The built directory the artifact was made from. */
|
|
21
|
+
buildChecksum: string | null;
|
|
22
|
+
buildSize: number | null;
|
|
19
23
|
storageBucketId: string | null;
|
|
20
24
|
storageItemId: string | null;
|
|
21
25
|
commits: ProjectDeployCommit[];
|
|
@@ -11,11 +11,15 @@ export class CodeDeploy {
|
|
|
11
11
|
started = null;
|
|
12
12
|
finished = null;
|
|
13
13
|
status = CodeDeployStatus.Unknown;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
/** The deliverable — the archive today, possibly an image later. */
|
|
15
|
+
artifactChecksum = null;
|
|
16
|
+
artifactFormat = null;
|
|
17
|
+
artifactSize = null;
|
|
18
|
+
/** Null while the artifact is still served; set once it is withdrawn. */
|
|
19
|
+
artifactRetiredAt = null;
|
|
20
|
+
/** The built directory the artifact was made from. */
|
|
21
|
+
buildChecksum = null;
|
|
22
|
+
buildSize = null;
|
|
19
23
|
storageBucketId = null;
|
|
20
24
|
storageItemId = null;
|
|
21
25
|
commits = [];
|
|
@@ -33,11 +37,14 @@ export class CodeDeploy {
|
|
|
33
37
|
projectDeploy.started = rawCodeDeploy.started === null ? null : Utils.parseRawDate(rawCodeDeploy.started);
|
|
34
38
|
projectDeploy.finished = rawCodeDeploy.finished === null ? null : Utils.parseRawDate(rawCodeDeploy.finished);
|
|
35
39
|
projectDeploy.status = CodeDeployStatus.fromString(rawCodeDeploy.status);
|
|
36
|
-
projectDeploy.
|
|
37
|
-
projectDeploy.
|
|
38
|
-
|
|
39
|
-
projectDeploy.
|
|
40
|
-
projectDeploy.
|
|
40
|
+
projectDeploy.artifactChecksum = rawCodeDeploy.artifact_checksum;
|
|
41
|
+
projectDeploy.artifactFormat = rawCodeDeploy.artifact_format;
|
|
42
|
+
const rawArtifactSize = rawCodeDeploy.artifact_size;
|
|
43
|
+
projectDeploy.artifactSize = rawArtifactSize === null || rawArtifactSize === undefined ? null : Utils.parseInt(rawArtifactSize);
|
|
44
|
+
projectDeploy.artifactRetiredAt = rawCodeDeploy.artifact_retired_at === null || rawCodeDeploy.artifact_retired_at === undefined ? null : new Date(rawCodeDeploy.artifact_retired_at);
|
|
45
|
+
projectDeploy.buildChecksum = rawCodeDeploy.build_checksum;
|
|
46
|
+
const rawBuildSize = rawCodeDeploy.build_size;
|
|
47
|
+
projectDeploy.buildSize = rawBuildSize === null || rawBuildSize === undefined ? null : Utils.parseInt(rawBuildSize);
|
|
41
48
|
projectDeploy.storageBucketId = rawCodeDeploy.storage_bucket;
|
|
42
49
|
projectDeploy.storageItemId = rawCodeDeploy.storage_item;
|
|
43
50
|
projectDeploy.commitHash = rawCodeDeploy.commit_hash;
|
package/dist/index.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ export { DataValueCollection } from './Model/DataValueCollection.js';
|
|
|
194
194
|
export { EntityType } from './Model/EntityType.js';
|
|
195
195
|
export { InboxMessage } from './Model/Inbox/InboxMessage.js';
|
|
196
196
|
/** Infrastructure Status **/
|
|
197
|
-
export { QueueStatus } from './Model/InfrastructureStatus/QueueStatus.js';
|
|
197
|
+
export { QueueState, QueueStatus } from './Model/InfrastructureStatus/QueueStatus.js';
|
|
198
198
|
export { RunnersStatus } from './Model/InfrastructureStatus/RunnersStatus.js';
|
|
199
199
|
export { StorageStatus } from './Model/InfrastructureStatus/StorageStatus.js';
|
|
200
200
|
export { State } from './Model/State.js';
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.126.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.126.0";
|