@remit/data-ports 0.0.27 → 0.0.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/data-ports",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -61,14 +61,23 @@ export interface IAddressRepository {
61
61
  accountConfigId: string;
62
62
  limit?: number;
63
63
  }): Promise<AddressItem[]>;
64
+ /**
65
+ * The account's addresses, most worth suggesting first: where the search term
66
+ * hit — the start of a value before the middle of one, and the display name
67
+ * before the local part, the domain and the whole address — then the account's
68
+ * standing for the sender, how much it corresponds with it, how recently, and
69
+ * the stored compound and id last so the order is total. Without a term every
70
+ * row scores the same match, so the remaining keys decide and the listing comes
71
+ * back by standing, correspondence and recency rather than alphabetically.
72
+ */
64
73
  listByAccountConfig(input: {
65
74
  accountConfigId: string;
66
75
  /**
67
- * Prefix term matched against both the display-name compound
68
- * (`"<display name> <email>"`) and the normalized email. Matching the
69
- * email separately is what makes an exact-address lookup resolve: the
70
- * compound leads with the display name, so an email prefix never
71
- * matches it.
76
+ * Matched as a substring of the display name, the local part, the domain
77
+ * and the whole address, so `po`, `locatie`, `amsterdam`, `pocahondas.nl`
78
+ * and `amsterdam@pocahondas.nl` all resolve
79
+ * `Pocahondas locatie amsterdam <amsterdam@pocahondas.nl>`. A name outside
80
+ * ASCII (`Öz` for `Özcan Bakker`) resolves through the folded compound.
72
81
  */
73
82
  search?: string;
74
83
  cursor?: string;