1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "payload": {
12 "baseline": {
13 "integrityCheck": "ok",
14 "restoreTest": "passed",
15 "rowCounts": {
16 "books": 10,
17 "archives": 1
18 },
19 "blobs": 0,
20 "archiveSha256": "037de4bf8749e6be125fceae49d0c50383a3a1a00bd46756a247f1ee8ddf3ba5"
21 },
22 "candidate": {
23 "integrityCheck": "ok",
24 "restoreTest": "passed",
25 "rowCounts": {
26 "books": 8,
27 "orders": 1
28 },
29 "blobs": 0,
30 "archiveSha256": "d9574431d26872cec4d2cf6536ab69492cea31f0effab2917272029c17340590"
31 },
32 "allowDropPercent": 10
33 }
34};
35
36
37const run = await client.actor("autosecurelogin/sqlite-backup-restore-workbench").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47