@ever-works/mailchimp-transactional-plugin 1.0.9 → 1.0.11

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/index.cjs CHANGED
@@ -995,7 +995,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
995
995
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
996
996
  cli: "fleet desktop screenshot"
997
997
  }),
998
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
998
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
999
999
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
1000
1000
  cli: "fleet desktop displays"
1001
1001
  }),
@@ -1269,6 +1269,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1269
1269
  route: GET("/api/fleet/checkouts/{id}/changes"),
1270
1270
  cli: "fleet checkouts changes"
1271
1271
  }),
1272
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1273
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1274
+ }),
1272
1275
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1273
1276
  route: POST("/api/fleet/checkouts"),
1274
1277
  cli: "fleet checkouts create",
@@ -1349,9 +1352,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1349
1352
  waitable: true,
1350
1353
  alwaysHeld: true
1351
1354
  }),
1352
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1353
- // change and a destroy are held for the owner's approval by the Agent tools
1354
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1355
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1356
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1357
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1355
1358
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1356
1359
  phase: "P3",
1357
1360
  route: GET("/api/fleet/cloud"),
@@ -1390,18 +1393,20 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1390
1393
  waitable: true,
1391
1394
  alwaysHeld: true
1392
1395
  }),
1393
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1396
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1394
1397
  phase: "P3",
1395
1398
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1396
1399
  cli: "fleet cloud idle-policy"
1397
1400
  }),
1398
- // ── runners (FL-18) ──
1399
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1401
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1402
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1403
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1404
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1400
1405
  phase: "P3",
1401
1406
  route: GET("/api/fleet/nodes/{id}/runners"),
1402
1407
  cli: "fleet runners list"
1403
1408
  }),
1404
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1409
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1405
1410
  phase: "P3",
1406
1411
  route: GET("/api/fleet/runners/jobs"),
1407
1412
  cli: "fleet runners jobs"
@@ -1411,23 +1416,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1411
1416
  "machines",
1412
1417
  "FL-18",
1413
1418
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1414
- "planned",
1419
+ "live",
1415
1420
  confirm("machine.admin"),
1416
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1421
+ {
1422
+ phase: "P3",
1423
+ route: POST("/api/fleet/nodes/{id}/runners"),
1424
+ cli: "fleet runners install",
1425
+ waitable: true,
1426
+ alwaysHeld: true
1427
+ }
1417
1428
  ),
1418
1429
  act(
1419
1430
  "fleet_runners_action",
1420
1431
  "machines",
1421
1432
  "FL-18",
1422
1433
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1423
- "planned",
1434
+ "live",
1424
1435
  confirm("machine.admin"),
1425
1436
  {
1426
1437
  phase: "P3",
1427
1438
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1428
1439
  cli: "fleet runners action",
1429
1440
  waitable: true,
1430
- confirmationNote: "plain to start; confirm to stop and restart"
1441
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1431
1442
  }
1432
1443
  ),
1433
1444
  act(
@@ -1435,21 +1446,34 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1435
1446
  "machines",
1436
1447
  "FL-18",
1437
1448
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1438
- "planned",
1449
+ "live",
1439
1450
  typed("write.destructive"),
1440
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1451
+ {
1452
+ phase: "P3",
1453
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1454
+ cli: "fleet runners remove",
1455
+ waitable: true,
1456
+ alwaysHeld: true
1457
+ }
1441
1458
  ),
1442
1459
  act(
1443
1460
  "fleet_runners_cancel_run",
1444
1461
  "machines",
1445
1462
  "FL-18",
1446
1463
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1447
- "planned",
1464
+ "live",
1448
1465
  confirm("machine.admin"),
1449
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1466
+ {
1467
+ phase: "P3",
1468
+ route: POST("/api/fleet/runners/jobs/cancel"),
1469
+ cli: "fleet runners cancel-run",
1470
+ alwaysHeld: true
1471
+ }
1450
1472
  ),
1451
- // ── usage (FL-20) ──
1452
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1473
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1474
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1475
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1476
+ phase: "P3",
1453
1477
  route: GET("/api/fleet/usage"),
1454
1478
  cli: "fleet usage"
1455
1479
  }),
@@ -1567,7 +1591,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1567
1591
  approxDownloadGiB: 0.7
1568
1592
  }
1569
1593
  ];
1570
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1594
+ FLEET_VIRTUAL_SYSTEMS.map(
1595
+ (system) => system.id
1596
+ );
1571
1597
  var EMAIL_INBOX_CAP_FIELDS = [
1572
1598
  "inboxDailySends",
1573
1599
  "inboxBurstSends",
package/dist/index.js CHANGED
@@ -989,7 +989,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
989
989
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
990
990
  cli: "fleet desktop screenshot"
991
991
  }),
992
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
992
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
993
993
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
994
994
  cli: "fleet desktop displays"
995
995
  }),
@@ -1263,6 +1263,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1263
1263
  route: GET("/api/fleet/checkouts/{id}/changes"),
1264
1264
  cli: "fleet checkouts changes"
1265
1265
  }),
1266
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1267
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1268
+ }),
1266
1269
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1267
1270
  route: POST("/api/fleet/checkouts"),
1268
1271
  cli: "fleet checkouts create",
@@ -1343,9 +1346,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1343
1346
  waitable: true,
1344
1347
  alwaysHeld: true
1345
1348
  }),
1346
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1347
- // change and a destroy are held for the owner's approval by the Agent tools
1348
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1349
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1350
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1351
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1349
1352
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1350
1353
  phase: "P3",
1351
1354
  route: GET("/api/fleet/cloud"),
@@ -1384,18 +1387,20 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1384
1387
  waitable: true,
1385
1388
  alwaysHeld: true
1386
1389
  }),
1387
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1390
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1388
1391
  phase: "P3",
1389
1392
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1390
1393
  cli: "fleet cloud idle-policy"
1391
1394
  }),
1392
- // ── runners (FL-18) ──
1393
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1395
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1396
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1397
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1398
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1394
1399
  phase: "P3",
1395
1400
  route: GET("/api/fleet/nodes/{id}/runners"),
1396
1401
  cli: "fleet runners list"
1397
1402
  }),
1398
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1403
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1399
1404
  phase: "P3",
1400
1405
  route: GET("/api/fleet/runners/jobs"),
1401
1406
  cli: "fleet runners jobs"
@@ -1405,23 +1410,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1405
1410
  "machines",
1406
1411
  "FL-18",
1407
1412
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1408
- "planned",
1413
+ "live",
1409
1414
  confirm("machine.admin"),
1410
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1415
+ {
1416
+ phase: "P3",
1417
+ route: POST("/api/fleet/nodes/{id}/runners"),
1418
+ cli: "fleet runners install",
1419
+ waitable: true,
1420
+ alwaysHeld: true
1421
+ }
1411
1422
  ),
1412
1423
  act(
1413
1424
  "fleet_runners_action",
1414
1425
  "machines",
1415
1426
  "FL-18",
1416
1427
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1417
- "planned",
1428
+ "live",
1418
1429
  confirm("machine.admin"),
1419
1430
  {
1420
1431
  phase: "P3",
1421
1432
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1422
1433
  cli: "fleet runners action",
1423
1434
  waitable: true,
1424
- confirmationNote: "plain to start; confirm to stop and restart"
1435
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1425
1436
  }
1426
1437
  ),
1427
1438
  act(
@@ -1429,21 +1440,34 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1429
1440
  "machines",
1430
1441
  "FL-18",
1431
1442
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1432
- "planned",
1443
+ "live",
1433
1444
  typed("write.destructive"),
1434
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1445
+ {
1446
+ phase: "P3",
1447
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1448
+ cli: "fleet runners remove",
1449
+ waitable: true,
1450
+ alwaysHeld: true
1451
+ }
1435
1452
  ),
1436
1453
  act(
1437
1454
  "fleet_runners_cancel_run",
1438
1455
  "machines",
1439
1456
  "FL-18",
1440
1457
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1441
- "planned",
1458
+ "live",
1442
1459
  confirm("machine.admin"),
1443
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1460
+ {
1461
+ phase: "P3",
1462
+ route: POST("/api/fleet/runners/jobs/cancel"),
1463
+ cli: "fleet runners cancel-run",
1464
+ alwaysHeld: true
1465
+ }
1444
1466
  ),
1445
- // ── usage (FL-20) ──
1446
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1467
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1468
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1469
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1470
+ phase: "P3",
1447
1471
  route: GET("/api/fleet/usage"),
1448
1472
  cli: "fleet usage"
1449
1473
  }),
@@ -1561,7 +1585,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1561
1585
  approxDownloadGiB: 0.7
1562
1586
  }
1563
1587
  ];
1564
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1588
+ FLEET_VIRTUAL_SYSTEMS.map(
1589
+ (system) => system.id
1590
+ );
1565
1591
  var EMAIL_INBOX_CAP_FIELDS = [
1566
1592
  "inboxDailySends",
1567
1593
  "inboxBurstSends",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/mailchimp-transactional-plugin",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Mailchimp Transactional (Mandrill) email provider plugin (outbound) for Ever Works platform",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -32,7 +32,7 @@
32
32
  "test:watch": "vitest"
33
33
  },
34
34
  "dependencies": {
35
- "@ever-works/plugin": "^1.2.10",
35
+ "@ever-works/plugin": "^1.2.12",
36
36
  "@mailchimp/mailchimp_transactional": "^1.0.59"
37
37
  },
38
38
  "devDependencies": {
@@ -82,8 +82,8 @@
82
82
  "url": "https://github.com/ever-works/ever-works/issues"
83
83
  },
84
84
  "everworksRelease": {
85
- "contentHash": "sha256:b1a868e186656abf74c4bb6011ed9cf96a8168b0dfc2c9512be36873dd610ac7",
86
- "commit": "f5cb0350637a564ce68449b6607a6f8f83ccce9c",
87
- "source": "https://github.com/ever-works/ever-works/tree/f5cb0350637a564ce68449b6607a6f8f83ccce9c/packages/plugins/mailchimp-transactional"
85
+ "contentHash": "sha256:b138e1fbea348d3f42c75b8ed15eed96b74186fd799e4da9cb56fdf8143c12a2",
86
+ "commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
87
+ "source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/mailchimp-transactional"
88
88
  }
89
89
  }