@camstack/addon-provider-rademacher 0.2.121 → 0.2.122

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/addon.js CHANGED
@@ -29860,6 +29860,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29860
29860
  var RestartAddonResultSchema = unknown();
29861
29861
  var InstallPackageResultSchema = unknown();
29862
29862
  var ReloadPackagesResultSchema = unknown();
29863
+ /**
29864
+ * What an uninstall did on ONE node.
29865
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29866
+ * - `not-installed` — the node did not have it (nothing to do).
29867
+ * - `refused` — protected / bootstrap package; nothing touched.
29868
+ * - `failed` — attempted and did not complete; `error` says why.
29869
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29870
+ * back-fill never returns the package, and the stale-addon sweep removes the
29871
+ * copy when the node registers again (only once the hub no longer has it).
29872
+ */
29873
+ var UninstallNodeOutcomeSchema = _enum([
29874
+ "uninstalled",
29875
+ "not-installed",
29876
+ "refused",
29877
+ "failed",
29878
+ "pending-reconnect"
29879
+ ]);
29880
+ var UninstallNodeResultSchema = object({
29881
+ nodeId: string(),
29882
+ outcome: UninstallNodeOutcomeSchema,
29883
+ error: string().optional(),
29884
+ addonIds: array(string()).readonly(),
29885
+ runnersStopped: array(string()).readonly(),
29886
+ warnings: array(string()).readonly()
29887
+ });
29888
+ var UninstallPackageResultSchema = object({
29889
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29890
+ success: boolean(),
29891
+ packageName: string(),
29892
+ results: array(UninstallNodeResultSchema).readonly()
29893
+ });
29894
+ /**
29895
+ * `unreachable` lists online agents whose status read FAILED — absence from
29896
+ * `installations` is only "not installed" for a node that answered (D315).
29897
+ */
29898
+ var PackageInstallationsSchema = object({
29899
+ installations: array(object({
29900
+ packageName: string(),
29901
+ nodeId: string(),
29902
+ nodeName: string(),
29903
+ isHub: boolean(),
29904
+ isOnline: boolean(),
29905
+ version: string().nullable(),
29906
+ addonIds: array(string()).readonly(),
29907
+ source: _enum(["live", "recorded"]),
29908
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29909
+ onHub: boolean()
29910
+ })).readonly(),
29911
+ unreachable: array(object({
29912
+ nodeId: string(),
29913
+ error: string()
29914
+ })).readonly()
29915
+ });
29863
29916
  var BulkUpdateItemStatusSchema = _enum([
29864
29917
  "queued",
29865
29918
  "updating",
@@ -29942,10 +29995,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29942
29995
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29943
29996
  kind: "mutation",
29944
29997
  auth: "admin"
29945
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29998
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29999
+ packageName: string().min(1),
30000
+ nodeId: string().optional(),
30001
+ everywhere: boolean().optional()
30002
+ }), UninstallPackageResultSchema, {
29946
30003
  kind: "mutation",
29947
30004
  auth: "admin"
29948
- }), method(_void(), ReloadPackagesResultSchema, {
30005
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29949
30006
  kind: "mutation",
29950
30007
  auth: "admin"
29951
30008
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -42378,6 +42435,12 @@ Object.freeze({
42378
42435
  addonId: null,
42379
42436
  access: "view"
42380
42437
  },
42438
+ "addons.listInstallations": {
42439
+ capName: "addons",
42440
+ capScope: "system",
42441
+ addonId: null,
42442
+ access: "view"
42443
+ },
42381
42444
  "addons.listJobs": {
42382
42445
  capName: "addons",
42383
42446
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -29859,6 +29859,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29859
29859
  var RestartAddonResultSchema = unknown();
29860
29860
  var InstallPackageResultSchema = unknown();
29861
29861
  var ReloadPackagesResultSchema = unknown();
29862
+ /**
29863
+ * What an uninstall did on ONE node.
29864
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29865
+ * - `not-installed` — the node did not have it (nothing to do).
29866
+ * - `refused` — protected / bootstrap package; nothing touched.
29867
+ * - `failed` — attempted and did not complete; `error` says why.
29868
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29869
+ * back-fill never returns the package, and the stale-addon sweep removes the
29870
+ * copy when the node registers again (only once the hub no longer has it).
29871
+ */
29872
+ var UninstallNodeOutcomeSchema = _enum([
29873
+ "uninstalled",
29874
+ "not-installed",
29875
+ "refused",
29876
+ "failed",
29877
+ "pending-reconnect"
29878
+ ]);
29879
+ var UninstallNodeResultSchema = object({
29880
+ nodeId: string(),
29881
+ outcome: UninstallNodeOutcomeSchema,
29882
+ error: string().optional(),
29883
+ addonIds: array(string()).readonly(),
29884
+ runnersStopped: array(string()).readonly(),
29885
+ warnings: array(string()).readonly()
29886
+ });
29887
+ var UninstallPackageResultSchema = object({
29888
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29889
+ success: boolean(),
29890
+ packageName: string(),
29891
+ results: array(UninstallNodeResultSchema).readonly()
29892
+ });
29893
+ /**
29894
+ * `unreachable` lists online agents whose status read FAILED — absence from
29895
+ * `installations` is only "not installed" for a node that answered (D315).
29896
+ */
29897
+ var PackageInstallationsSchema = object({
29898
+ installations: array(object({
29899
+ packageName: string(),
29900
+ nodeId: string(),
29901
+ nodeName: string(),
29902
+ isHub: boolean(),
29903
+ isOnline: boolean(),
29904
+ version: string().nullable(),
29905
+ addonIds: array(string()).readonly(),
29906
+ source: _enum(["live", "recorded"]),
29907
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29908
+ onHub: boolean()
29909
+ })).readonly(),
29910
+ unreachable: array(object({
29911
+ nodeId: string(),
29912
+ error: string()
29913
+ })).readonly()
29914
+ });
29862
29915
  var BulkUpdateItemStatusSchema = _enum([
29863
29916
  "queued",
29864
29917
  "updating",
@@ -29941,10 +29994,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29941
29994
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29942
29995
  kind: "mutation",
29943
29996
  auth: "admin"
29944
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29997
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29998
+ packageName: string().min(1),
29999
+ nodeId: string().optional(),
30000
+ everywhere: boolean().optional()
30001
+ }), UninstallPackageResultSchema, {
29945
30002
  kind: "mutation",
29946
30003
  auth: "admin"
29947
- }), method(_void(), ReloadPackagesResultSchema, {
30004
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29948
30005
  kind: "mutation",
29949
30006
  auth: "admin"
29950
30007
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -42377,6 +42434,12 @@ Object.freeze({
42377
42434
  addonId: null,
42378
42435
  access: "view"
42379
42436
  },
42437
+ "addons.listInstallations": {
42438
+ capName: "addons",
42439
+ capScope: "system",
42440
+ addonId: null,
42441
+ access: "view"
42442
+ },
42380
42443
  "addons.listJobs": {
42381
42444
  capName: "addons",
42382
42445
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rademacher",
3
- "version": "0.2.121",
3
+ "version": "0.2.122",
4
4
  "description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
5
5
  "keywords": [
6
6
  "camstack",