@camstack/addon-smtp-nodemailer 1.2.105 → 1.2.106

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.
@@ -13299,6 +13299,70 @@ var LocationIconAssignmentSchema = object({
13299
13299
  locationKey: string(),
13300
13300
  icon: LocationIconIdSchema
13301
13301
  });
13302
+ /**
13303
+ * One (location, description) assignment as it travels.
13304
+ *
13305
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13306
+ * reason: this lived for a while in the post-analysis addon's own settings,
13307
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13308
+ * the Locations page carried the icon and silently orphaned the description —
13309
+ * two authorities for one thing, joined by two different rules. Now both hang
13310
+ * off the location itself, on `locationIconKey`.
13311
+ */
13312
+ var LocationDescriptionAssignmentSchema = object({
13313
+ locationKey: string(),
13314
+ description: string()
13315
+ });
13316
+ /**
13317
+ * A SITE ZONE — a named part of the property that several locations belong to.
13318
+ *
13319
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13320
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13321
+ * one zone, so a camera's zone is derived and never stored on the device: the
13322
+ * whole point of this entity is that grouping rooms touches no device row.
13323
+ *
13324
+ * ## Why not `zone`
13325
+ *
13326
+ * Because `zone` is already the most loaded word in this product: 612 source
13327
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13328
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13329
+ * set of rooms — and a reader who confuses them will look for a camera's
13330
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13331
+ * word by calling the drawn one what it actually is: a detection zone.
13332
+ *
13333
+ * ## The key
13334
+ *
13335
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13336
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13337
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13338
+ * silently-dropped location description.
13339
+ *
13340
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13341
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13342
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13343
+ */
13344
+ /**
13345
+ * One zone as it travels: its key, the label the operator typed, its icon and
13346
+ * the locations inside it.
13347
+ *
13348
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13349
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13350
+ * here, rather than left to a second call, because every consumer wants both
13351
+ * at once and a viewer that asked twice could render a zone whose membership
13352
+ * it has not fetched yet.
13353
+ *
13354
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13355
+ * of those two is a choice, and a picker has to draw them differently.
13356
+ */
13357
+ var SiteZoneSchema = object({
13358
+ zoneKey: string(),
13359
+ label: string(),
13360
+ icon: LocationIconIdSchema.nullable(),
13361
+ /** Folded location keys, sorted. A location listed here need not be
13362
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13363
+ * the ones that most want grouping. */
13364
+ locationKeys: array(string())
13365
+ });
13302
13366
  var ProviderStatusSchema = object({
13303
13367
  connected: boolean(),
13304
13368
  deviceCount: number(),
@@ -13816,6 +13880,33 @@ method(object({
13816
13880
  }), _void(), {
13817
13881
  kind: "mutation",
13818
13882
  auth: "admin"
13883
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
13884
+ location: string(),
13885
+ description: string().max(400).nullable()
13886
+ }), _void(), {
13887
+ kind: "mutation",
13888
+ auth: "admin"
13889
+ }), method(_void(), array(SiteZoneSchema)), method(object({
13890
+ name: string(),
13891
+ icon: LocationIconIdSchema.nullable().optional()
13892
+ }), _void(), {
13893
+ kind: "mutation",
13894
+ auth: "admin"
13895
+ }), method(object({ name: string() }), _void(), {
13896
+ kind: "mutation",
13897
+ auth: "admin"
13898
+ }), method(object({
13899
+ from: string(),
13900
+ to: string()
13901
+ }), _void(), {
13902
+ kind: "mutation",
13903
+ auth: "admin"
13904
+ }), method(object({
13905
+ location: string(),
13906
+ zone: string().nullable()
13907
+ }), _void(), {
13908
+ kind: "mutation",
13909
+ auth: "admin"
13819
13910
  }), method(object({
13820
13911
  deviceId: number(),
13821
13912
  disabled: boolean()
@@ -32652,6 +32743,12 @@ Object.freeze({
32652
32743
  addonId: null,
32653
32744
  access: "view"
32654
32745
  },
32746
+ "deviceManager.listLocationDescriptions": {
32747
+ capName: "device-manager",
32748
+ capScope: "system",
32749
+ addonId: null,
32750
+ access: "view"
32751
+ },
32655
32752
  "deviceManager.listLocationIcons": {
32656
32753
  capName: "device-manager",
32657
32754
  capScope: "system",
@@ -32670,6 +32767,12 @@ Object.freeze({
32670
32767
  addonId: null,
32671
32768
  access: "view"
32672
32769
  },
32770
+ "deviceManager.listSiteZones": {
32771
+ capName: "device-manager",
32772
+ capScope: "system",
32773
+ addonId: null,
32774
+ access: "view"
32775
+ },
32673
32776
  "deviceManager.listWrappersForCap": {
32674
32777
  capName: "device-manager",
32675
32778
  capScope: "system",
@@ -32754,12 +32857,24 @@ Object.freeze({
32754
32857
  addonId: null,
32755
32858
  access: "delete"
32756
32859
  },
32860
+ "deviceManager.removeSiteZone": {
32861
+ capName: "device-manager",
32862
+ capScope: "system",
32863
+ addonId: null,
32864
+ access: "delete"
32865
+ },
32757
32866
  "deviceManager.renameLocation": {
32758
32867
  capName: "device-manager",
32759
32868
  capScope: "system",
32760
32869
  addonId: null,
32761
32870
  access: "create"
32762
32871
  },
32872
+ "deviceManager.renameSiteZone": {
32873
+ capName: "device-manager",
32874
+ capScope: "system",
32875
+ addonId: null,
32876
+ access: "create"
32877
+ },
32763
32878
  "deviceManager.runDeviceAction": {
32764
32879
  capName: "device-manager",
32765
32880
  capScope: "system",
@@ -32802,12 +32917,24 @@ Object.freeze({
32802
32917
  addonId: null,
32803
32918
  access: "create"
32804
32919
  },
32920
+ "deviceManager.setLocationDescription": {
32921
+ capName: "device-manager",
32922
+ capScope: "system",
32923
+ addonId: null,
32924
+ access: "create"
32925
+ },
32805
32926
  "deviceManager.setLocationIcon": {
32806
32927
  capName: "device-manager",
32807
32928
  capScope: "system",
32808
32929
  addonId: null,
32809
32930
  access: "create"
32810
32931
  },
32932
+ "deviceManager.setLocationZone": {
32933
+ capName: "device-manager",
32934
+ capScope: "system",
32935
+ addonId: null,
32936
+ access: "create"
32937
+ },
32811
32938
  "deviceManager.setMetadata": {
32812
32939
  capName: "device-manager",
32813
32940
  capScope: "system",
@@ -32838,6 +32965,12 @@ Object.freeze({
32838
32965
  addonId: null,
32839
32966
  access: "create"
32840
32967
  },
32968
+ "deviceManager.setSiteZone": {
32969
+ capName: "device-manager",
32970
+ capScope: "system",
32971
+ addonId: null,
32972
+ access: "create"
32973
+ },
32841
32974
  "deviceManager.setStreamProfileMap": {
32842
32975
  capName: "device-manager",
32843
32976
  capScope: "system",
@@ -13297,6 +13297,70 @@ var LocationIconAssignmentSchema = object({
13297
13297
  locationKey: string(),
13298
13298
  icon: LocationIconIdSchema
13299
13299
  });
13300
+ /**
13301
+ * One (location, description) assignment as it travels.
13302
+ *
13303
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13304
+ * reason: this lived for a while in the post-analysis addon's own settings,
13305
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13306
+ * the Locations page carried the icon and silently orphaned the description —
13307
+ * two authorities for one thing, joined by two different rules. Now both hang
13308
+ * off the location itself, on `locationIconKey`.
13309
+ */
13310
+ var LocationDescriptionAssignmentSchema = object({
13311
+ locationKey: string(),
13312
+ description: string()
13313
+ });
13314
+ /**
13315
+ * A SITE ZONE — a named part of the property that several locations belong to.
13316
+ *
13317
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13318
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13319
+ * one zone, so a camera's zone is derived and never stored on the device: the
13320
+ * whole point of this entity is that grouping rooms touches no device row.
13321
+ *
13322
+ * ## Why not `zone`
13323
+ *
13324
+ * Because `zone` is already the most loaded word in this product: 612 source
13325
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13326
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13327
+ * set of rooms — and a reader who confuses them will look for a camera's
13328
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13329
+ * word by calling the drawn one what it actually is: a detection zone.
13330
+ *
13331
+ * ## The key
13332
+ *
13333
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13334
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13335
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13336
+ * silently-dropped location description.
13337
+ *
13338
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13339
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13340
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13341
+ */
13342
+ /**
13343
+ * One zone as it travels: its key, the label the operator typed, its icon and
13344
+ * the locations inside it.
13345
+ *
13346
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13347
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13348
+ * here, rather than left to a second call, because every consumer wants both
13349
+ * at once and a viewer that asked twice could render a zone whose membership
13350
+ * it has not fetched yet.
13351
+ *
13352
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13353
+ * of those two is a choice, and a picker has to draw them differently.
13354
+ */
13355
+ var SiteZoneSchema = object({
13356
+ zoneKey: string(),
13357
+ label: string(),
13358
+ icon: LocationIconIdSchema.nullable(),
13359
+ /** Folded location keys, sorted. A location listed here need not be
13360
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13361
+ * the ones that most want grouping. */
13362
+ locationKeys: array(string())
13363
+ });
13300
13364
  var ProviderStatusSchema = object({
13301
13365
  connected: boolean(),
13302
13366
  deviceCount: number(),
@@ -13814,6 +13878,33 @@ method(object({
13814
13878
  }), _void(), {
13815
13879
  kind: "mutation",
13816
13880
  auth: "admin"
13881
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
13882
+ location: string(),
13883
+ description: string().max(400).nullable()
13884
+ }), _void(), {
13885
+ kind: "mutation",
13886
+ auth: "admin"
13887
+ }), method(_void(), array(SiteZoneSchema)), method(object({
13888
+ name: string(),
13889
+ icon: LocationIconIdSchema.nullable().optional()
13890
+ }), _void(), {
13891
+ kind: "mutation",
13892
+ auth: "admin"
13893
+ }), method(object({ name: string() }), _void(), {
13894
+ kind: "mutation",
13895
+ auth: "admin"
13896
+ }), method(object({
13897
+ from: string(),
13898
+ to: string()
13899
+ }), _void(), {
13900
+ kind: "mutation",
13901
+ auth: "admin"
13902
+ }), method(object({
13903
+ location: string(),
13904
+ zone: string().nullable()
13905
+ }), _void(), {
13906
+ kind: "mutation",
13907
+ auth: "admin"
13817
13908
  }), method(object({
13818
13909
  deviceId: number(),
13819
13910
  disabled: boolean()
@@ -32650,6 +32741,12 @@ Object.freeze({
32650
32741
  addonId: null,
32651
32742
  access: "view"
32652
32743
  },
32744
+ "deviceManager.listLocationDescriptions": {
32745
+ capName: "device-manager",
32746
+ capScope: "system",
32747
+ addonId: null,
32748
+ access: "view"
32749
+ },
32653
32750
  "deviceManager.listLocationIcons": {
32654
32751
  capName: "device-manager",
32655
32752
  capScope: "system",
@@ -32668,6 +32765,12 @@ Object.freeze({
32668
32765
  addonId: null,
32669
32766
  access: "view"
32670
32767
  },
32768
+ "deviceManager.listSiteZones": {
32769
+ capName: "device-manager",
32770
+ capScope: "system",
32771
+ addonId: null,
32772
+ access: "view"
32773
+ },
32671
32774
  "deviceManager.listWrappersForCap": {
32672
32775
  capName: "device-manager",
32673
32776
  capScope: "system",
@@ -32752,12 +32855,24 @@ Object.freeze({
32752
32855
  addonId: null,
32753
32856
  access: "delete"
32754
32857
  },
32858
+ "deviceManager.removeSiteZone": {
32859
+ capName: "device-manager",
32860
+ capScope: "system",
32861
+ addonId: null,
32862
+ access: "delete"
32863
+ },
32755
32864
  "deviceManager.renameLocation": {
32756
32865
  capName: "device-manager",
32757
32866
  capScope: "system",
32758
32867
  addonId: null,
32759
32868
  access: "create"
32760
32869
  },
32870
+ "deviceManager.renameSiteZone": {
32871
+ capName: "device-manager",
32872
+ capScope: "system",
32873
+ addonId: null,
32874
+ access: "create"
32875
+ },
32761
32876
  "deviceManager.runDeviceAction": {
32762
32877
  capName: "device-manager",
32763
32878
  capScope: "system",
@@ -32800,12 +32915,24 @@ Object.freeze({
32800
32915
  addonId: null,
32801
32916
  access: "create"
32802
32917
  },
32918
+ "deviceManager.setLocationDescription": {
32919
+ capName: "device-manager",
32920
+ capScope: "system",
32921
+ addonId: null,
32922
+ access: "create"
32923
+ },
32803
32924
  "deviceManager.setLocationIcon": {
32804
32925
  capName: "device-manager",
32805
32926
  capScope: "system",
32806
32927
  addonId: null,
32807
32928
  access: "create"
32808
32929
  },
32930
+ "deviceManager.setLocationZone": {
32931
+ capName: "device-manager",
32932
+ capScope: "system",
32933
+ addonId: null,
32934
+ access: "create"
32935
+ },
32809
32936
  "deviceManager.setMetadata": {
32810
32937
  capName: "device-manager",
32811
32938
  capScope: "system",
@@ -32836,6 +32963,12 @@ Object.freeze({
32836
32963
  addonId: null,
32837
32964
  access: "create"
32838
32965
  },
32966
+ "deviceManager.setSiteZone": {
32967
+ capName: "device-manager",
32968
+ capScope: "system",
32969
+ addonId: null,
32970
+ access: "create"
32971
+ },
32839
32972
  "deviceManager.setStreamProfileMap": {
32840
32973
  capName: "device-manager",
32841
32974
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.105",
3
+ "version": "1.2.106",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",