@ceramicnetwork/common 2.24.0 → 2.25.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.
|
@@ -4,6 +4,7 @@ export interface NodeStatusResponse {
|
|
|
4
4
|
network: string;
|
|
5
5
|
anchor: AnchorNodeStatus;
|
|
6
6
|
ipfs: IpfsNodeStatus;
|
|
7
|
+
composeDB?: ComposeDBStatus;
|
|
7
8
|
}
|
|
8
9
|
export interface IpfsNodeStatus {
|
|
9
10
|
peerId: string;
|
|
@@ -14,4 +15,34 @@ export interface AnchorNodeStatus {
|
|
|
14
15
|
ethereumRpcEndpoint: string | null;
|
|
15
16
|
chainId: string;
|
|
16
17
|
}
|
|
18
|
+
export interface ComposeDBStatus {
|
|
19
|
+
indexedModels: Array<string>;
|
|
20
|
+
syncs?: SyncStatus;
|
|
21
|
+
}
|
|
22
|
+
export interface SyncStatus {
|
|
23
|
+
activeSyncs: Array<ActiveSyncStatus>;
|
|
24
|
+
continuousSync: Array<ContinuousSyncStatus>;
|
|
25
|
+
pendingSyncs: Array<PendingSyncStatus>;
|
|
26
|
+
}
|
|
27
|
+
export interface ActiveSyncStatus {
|
|
28
|
+
startBlock: number;
|
|
29
|
+
currentBlock: number;
|
|
30
|
+
endBlock: number;
|
|
31
|
+
models: Array<string>;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
startedAt: Date;
|
|
34
|
+
}
|
|
35
|
+
export interface ContinuousSyncStatus {
|
|
36
|
+
startBlock: number;
|
|
37
|
+
latestBlock: number;
|
|
38
|
+
confirmations: number;
|
|
39
|
+
currentBlock: number;
|
|
40
|
+
models: Array<string>;
|
|
41
|
+
}
|
|
42
|
+
export interface PendingSyncStatus {
|
|
43
|
+
startBlock: number;
|
|
44
|
+
endBlock: number;
|
|
45
|
+
models: Array<string>;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
}
|
|
17
48
|
//# sourceMappingURL=node-status-interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-status-interface.d.ts","sourceRoot":"","sources":["../src/node-status-interface.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,kBAAkB;IAKjC,KAAK,EAAE,MAAM,CAAA;IAKb,QAAQ,EAAE,MAAM,CAAA;IAKhB,OAAO,EAAE,MAAM,CAAA;IAKf,MAAM,EAAE,gBAAgB,CAAA;IAKxB,IAAI,EAAE,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"node-status-interface.d.ts","sourceRoot":"","sources":["../src/node-status-interface.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,kBAAkB;IAKjC,KAAK,EAAE,MAAM,CAAA;IAKb,QAAQ,EAAE,MAAM,CAAA;IAKhB,OAAO,EAAE,MAAM,CAAA;IAKf,MAAM,EAAE,gBAAgB,CAAA;IAKxB,IAAI,EAAE,cAAc,CAAA;IAEpB,SAAS,CAAC,EAAE,eAAe,CAAA;CAC5B;AAKD,MAAM,WAAW,cAAc;IAI7B,MAAM,EAAE,MAAM,CAAA;IAKd,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CACzB;AAED,MAAM,WAAW,gBAAgB;IAI/B,gBAAgB,EAAE,MAAM,CAAA;IAMxB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAKlC,OAAO,EAAE,MAAM,CAAA;CAChB;AAKD,MAAM,WAAW,eAAe;IAI9B,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAI5B,KAAK,CAAC,EAAE,UAAU,CAAA;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAA;IACpC,cAAc,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAC3C,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAA;CACvC;AAGD,MAAM,WAAW,gBAAgB;IAE/B,UAAU,EAAE,MAAM,CAAA;IAElB,YAAY,EAAE,MAAM,CAAA;IAEpB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAErB,SAAS,EAAE,IAAI,CAAA;IAEf,SAAS,EAAE,IAAI,CAAA;CAChB;AACD,MAAM,WAAW,oBAAoB;IAEnC,UAAU,EAAE,MAAM,CAAA;IAElB,WAAW,EAAE,MAAM,CAAA;IAEnB,aAAa,EAAE,MAAM,CAAA;IAErB,YAAY,EAAE,MAAM,CAAA;IAEpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CACtB;AACD,MAAM,WAAW,iBAAiB;IAEhC,UAAU,EAAE,MAAM,CAAA;IAElB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAErB,SAAS,EAAE,IAAI,CAAA;CAChB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceramicnetwork/common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "Ceramic common types and utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ceramic",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"json-schema-to-typescript": "^10.1.5",
|
|
71
71
|
"typescript-json-schema": "^0.52.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "ef1cead2a4924ad924eb270a20ce1238658da5a9"
|
|
74
74
|
}
|