@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 +1 -1
- package/src/interfaces/address.ts +14 -5
package/package.json
CHANGED
|
@@ -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
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
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;
|