@arrowsphere/api-client 3.248.0 → 3.248.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.248.1] - 2026.02.26
7
+
8
+ ### Updated
9
+ - [Contact] Fix type of the get and patch contact endpoint payload
10
+
6
11
  ## [3.248.0] - 2026.02.26
7
12
 
8
13
  ### Added
@@ -36,8 +36,8 @@ export declare class ContactClient extends AbstractRestfulClient {
36
36
  protected basePath: string;
37
37
  createContact(postData: ContactRequestType, parameters?: Parameters): Promise<GetResult<ContactCreate>>;
38
38
  listContact(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<ContactList>>;
39
- getContact(contactReference: string, parameters?: Parameters): Promise<GetResult<Contact>>;
40
- updateContact(contactReference: string, patchData: ContactRequestType, parameters?: Parameters): Promise<GetResult<Contact>>;
39
+ getContact(contactId: number, parameters?: Parameters): Promise<GetResult<Contact>>;
40
+ updateContact(contactId: number, patchData: ContactRequestType, parameters?: Parameters): Promise<GetResult<Contact>>;
41
41
  lockContact(contactId: number, parameters?: Parameters): Promise<void>;
42
42
  unlockContact(contactId: number, parameters?: Parameters): Promise<void>;
43
43
  disableMfaContact(contactId: number, parameters?: Parameters): Promise<void>;
@@ -37,12 +37,12 @@ class ContactClient extends abstractRestfulClient_1.AbstractRestfulClient {
37
37
  this.setPage(page);
38
38
  return new getResult_1.GetResult(contactList_1.ContactList, await this.get(parameters));
39
39
  }
40
- async getContact(contactReference, parameters = {}) {
41
- this.path = `/${contactReference}`;
40
+ async getContact(contactId, parameters = {}) {
41
+ this.path = `/${contactId}`;
42
42
  return new getResult_1.GetResult(contact_1.Contact, await this.get(parameters));
43
43
  }
44
- async updateContact(contactReference, patchData, parameters = {}) {
45
- this.path = `/${contactReference}`;
44
+ async updateContact(contactId, patchData, parameters = {}) {
45
+ this.path = `/${contactId}`;
46
46
  return new getResult_1.GetResult(contact_1.Contact, await this.patch(patchData, parameters));
47
47
  }
48
48
  async lockContact(contactId, parameters = {}) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.248.0",
7
+ "version": "3.248.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",