@arrowsphere/api-client 3.195.0 → 3.196.0-rc-bdj-2

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.
@@ -30,4 +30,9 @@ export declare class ContactClient extends AbstractRestfulClient {
30
30
  listContact(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<ContactList>>;
31
31
  getContact(contactReference: string, parameters?: Parameters): Promise<GetResult<Contact>>;
32
32
  updateContact(contactReference: string, patchData: ContactRequestType, parameters?: Parameters): Promise<GetResult<Contact>>;
33
+ lockContact(contactId: number, parameters?: Parameters): Promise<void>;
34
+ unlockContact(contactId: number, parameters?: Parameters): Promise<void>;
35
+ disableMfaContact(contactId: number, parameters?: Parameters): Promise<void>;
36
+ disableAliasContact(contactId: number, aliasUsername: string, providerName?: string, parameters?: Parameters): Promise<void>;
37
+ unlockInsecureLoginContact(contactId: number, parameters?: Parameters): Promise<void>;
33
38
  }
@@ -40,6 +40,26 @@ class ContactClient extends abstractRestfulClient_1.AbstractRestfulClient {
40
40
  this.path = `/${contactReference}`;
41
41
  return new getResult_1.GetResult(contact_1.Contact, await this.patch(patchData, parameters));
42
42
  }
43
+ async lockContact(contactId, parameters = {}) {
44
+ this.path = `/${contactId}/status`;
45
+ return await this.patch({ locked: true }, parameters);
46
+ }
47
+ async unlockContact(contactId, parameters = {}) {
48
+ this.path = `/${contactId}/status`;
49
+ return await this.patch({ locked: false }, parameters);
50
+ }
51
+ async disableMfaContact(contactId, parameters = {}) {
52
+ this.path = `/${contactId}/disable-mfa`;
53
+ return await this.patch({}, parameters);
54
+ }
55
+ async disableAliasContact(contactId, aliasUsername, providerName, parameters = {}) {
56
+ this.path = `/${contactId}/disable-alias`;
57
+ return await this.patch({ aliasUsername, providerName }, parameters);
58
+ }
59
+ async unlockInsecureLoginContact(contactId, parameters = {}) {
60
+ this.path = `/${contactId}/unlock-insecure-login`;
61
+ return await this.patch({}, parameters);
62
+ }
43
63
  }
44
64
  exports.ContactClient = ContactClient;
45
65
  //# sourceMappingURL=contactClient.js.map
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.195.0",
7
+ "version": "3.196.0-rc-bdj-2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",