@camstack/addon-provider-dreame 0.2.127 → 0.2.128

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
@@ -81694,6 +81694,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
81694
81694
  var RestartAddonResultSchema = unknown();
81695
81695
  var InstallPackageResultSchema = unknown();
81696
81696
  var ReloadPackagesResultSchema = unknown();
81697
+ /**
81698
+ * What an uninstall did on ONE node.
81699
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
81700
+ * - `not-installed` — the node did not have it (nothing to do).
81701
+ * - `refused` — protected / bootstrap package; nothing touched.
81702
+ * - `failed` — attempted and did not complete; `error` says why.
81703
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
81704
+ * back-fill never returns the package, and the stale-addon sweep removes the
81705
+ * copy when the node registers again (only once the hub no longer has it).
81706
+ */
81707
+ var UninstallNodeOutcomeSchema = _enum([
81708
+ "uninstalled",
81709
+ "not-installed",
81710
+ "refused",
81711
+ "failed",
81712
+ "pending-reconnect"
81713
+ ]);
81714
+ var UninstallNodeResultSchema = object({
81715
+ nodeId: string(),
81716
+ outcome: UninstallNodeOutcomeSchema,
81717
+ error: string().optional(),
81718
+ addonIds: array(string()).readonly(),
81719
+ runnersStopped: array(string()).readonly(),
81720
+ warnings: array(string()).readonly()
81721
+ });
81722
+ var UninstallPackageResultSchema = object({
81723
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
81724
+ success: boolean(),
81725
+ packageName: string(),
81726
+ results: array(UninstallNodeResultSchema).readonly()
81727
+ });
81728
+ /**
81729
+ * `unreachable` lists online agents whose status read FAILED — absence from
81730
+ * `installations` is only "not installed" for a node that answered (D315).
81731
+ */
81732
+ var PackageInstallationsSchema = object({
81733
+ installations: array(object({
81734
+ packageName: string(),
81735
+ nodeId: string(),
81736
+ nodeName: string(),
81737
+ isHub: boolean(),
81738
+ isOnline: boolean(),
81739
+ version: string().nullable(),
81740
+ addonIds: array(string()).readonly(),
81741
+ source: _enum(["live", "recorded"]),
81742
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
81743
+ onHub: boolean()
81744
+ })).readonly(),
81745
+ unreachable: array(object({
81746
+ nodeId: string(),
81747
+ error: string()
81748
+ })).readonly()
81749
+ });
81697
81750
  var BulkUpdateItemStatusSchema = _enum([
81698
81751
  "queued",
81699
81752
  "updating",
@@ -81776,10 +81829,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
81776
81829
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
81777
81830
  kind: "mutation",
81778
81831
  auth: "admin"
81779
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
81832
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
81833
+ packageName: string().min(1),
81834
+ nodeId: string().optional(),
81835
+ everywhere: boolean().optional()
81836
+ }), UninstallPackageResultSchema, {
81780
81837
  kind: "mutation",
81781
81838
  auth: "admin"
81782
- }), method(_void(), ReloadPackagesResultSchema, {
81839
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
81783
81840
  kind: "mutation",
81784
81841
  auth: "admin"
81785
81842
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -94385,6 +94442,12 @@ Object.freeze({
94385
94442
  addonId: null,
94386
94443
  access: "view"
94387
94444
  },
94445
+ "addons.listInstallations": {
94446
+ capName: "addons",
94447
+ capScope: "system",
94448
+ addonId: null,
94449
+ access: "view"
94450
+ },
94388
94451
  "addons.listJobs": {
94389
94452
  capName: "addons",
94390
94453
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -81691,6 +81691,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
81691
81691
  var RestartAddonResultSchema = unknown();
81692
81692
  var InstallPackageResultSchema = unknown();
81693
81693
  var ReloadPackagesResultSchema = unknown();
81694
+ /**
81695
+ * What an uninstall did on ONE node.
81696
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
81697
+ * - `not-installed` — the node did not have it (nothing to do).
81698
+ * - `refused` — protected / bootstrap package; nothing touched.
81699
+ * - `failed` — attempted and did not complete; `error` says why.
81700
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
81701
+ * back-fill never returns the package, and the stale-addon sweep removes the
81702
+ * copy when the node registers again (only once the hub no longer has it).
81703
+ */
81704
+ var UninstallNodeOutcomeSchema = _enum([
81705
+ "uninstalled",
81706
+ "not-installed",
81707
+ "refused",
81708
+ "failed",
81709
+ "pending-reconnect"
81710
+ ]);
81711
+ var UninstallNodeResultSchema = object({
81712
+ nodeId: string(),
81713
+ outcome: UninstallNodeOutcomeSchema,
81714
+ error: string().optional(),
81715
+ addonIds: array(string()).readonly(),
81716
+ runnersStopped: array(string()).readonly(),
81717
+ warnings: array(string()).readonly()
81718
+ });
81719
+ var UninstallPackageResultSchema = object({
81720
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
81721
+ success: boolean(),
81722
+ packageName: string(),
81723
+ results: array(UninstallNodeResultSchema).readonly()
81724
+ });
81725
+ /**
81726
+ * `unreachable` lists online agents whose status read FAILED — absence from
81727
+ * `installations` is only "not installed" for a node that answered (D315).
81728
+ */
81729
+ var PackageInstallationsSchema = object({
81730
+ installations: array(object({
81731
+ packageName: string(),
81732
+ nodeId: string(),
81733
+ nodeName: string(),
81734
+ isHub: boolean(),
81735
+ isOnline: boolean(),
81736
+ version: string().nullable(),
81737
+ addonIds: array(string()).readonly(),
81738
+ source: _enum(["live", "recorded"]),
81739
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
81740
+ onHub: boolean()
81741
+ })).readonly(),
81742
+ unreachable: array(object({
81743
+ nodeId: string(),
81744
+ error: string()
81745
+ })).readonly()
81746
+ });
81694
81747
  var BulkUpdateItemStatusSchema = _enum([
81695
81748
  "queued",
81696
81749
  "updating",
@@ -81773,10 +81826,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
81773
81826
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
81774
81827
  kind: "mutation",
81775
81828
  auth: "admin"
81776
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
81829
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
81830
+ packageName: string().min(1),
81831
+ nodeId: string().optional(),
81832
+ everywhere: boolean().optional()
81833
+ }), UninstallPackageResultSchema, {
81777
81834
  kind: "mutation",
81778
81835
  auth: "admin"
81779
- }), method(_void(), ReloadPackagesResultSchema, {
81836
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
81780
81837
  kind: "mutation",
81781
81838
  auth: "admin"
81782
81839
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -94382,6 +94439,12 @@ Object.freeze({
94382
94439
  addonId: null,
94383
94440
  access: "view"
94384
94441
  },
94442
+ "addons.listInstallations": {
94443
+ capName: "addons",
94444
+ capScope: "system",
94445
+ addonId: null,
94446
+ access: "view"
94447
+ },
94385
94448
  "addons.listJobs": {
94386
94449
  capName: "addons",
94387
94450
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreame",
3
- "version": "0.2.127",
3
+ "version": "0.2.128",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",