@opens/gateways 1.16.14 → 1.16.15
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/contact-list/contracts/index.d.mts +38 -3
- package/dist/contact-list/contracts/index.d.ts +38 -3
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -833,6 +833,15 @@ var ContactListGateway = class {
|
|
|
833
833
|
const { data } = await this.httpClient.get(`${this.baseUrl}/contact/category`);
|
|
834
834
|
return data;
|
|
835
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* Finds a contact by its unique identifier.
|
|
838
|
+
* @param contactId - The unique identifier of the contact.
|
|
839
|
+
* @returns The contact and its associated details.
|
|
840
|
+
*/
|
|
841
|
+
async findById(contactId) {
|
|
842
|
+
const { data } = await this.httpClient.get(`${this.baseUrl}/contact/${contactId}`);
|
|
843
|
+
return data;
|
|
844
|
+
}
|
|
836
845
|
/**
|
|
837
846
|
* Finds an existing contact or creates a new one.
|
|
838
847
|
* @param payload - The contact data sent as query parameters and in the request body.
|