Skip to content

Commit

Permalink
fix domainId as constant
Browse files Browse the repository at this point in the history
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
  • Loading branch information
ianmuchyri committed Nov 19, 2024
1 parent 412c34e commit 144a82c
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions examples/domains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mySdk.domains
});

mySdk.domains
.UpdateDomain({ name: "<domainName>", id: "<domainID>" }, token)
.UpdateDomain({ name: "<domainName>", id: domainId }, token)
.then((response: any) => {
console.log("response: ", response);
})
Expand All @@ -29,7 +29,7 @@ mySdk.domains
});

mySdk.domains
.Domain("<domainID>", token)
.Domain(domainId, token)
.then((response: any) => {
console.log("response: ", response);
})
Expand All @@ -38,7 +38,7 @@ mySdk.domains
});

mySdk.domains
.DomainPermissions("<domainID>", token)
.DomainPermissions(domainId, token)
.then((response: any) => {
console.log("response: ", response);
})
Expand All @@ -65,7 +65,7 @@ mySdk.domains
});

mySdk.domains
.ListDomainUsers("<domainID>", { offset: 0, limit: 10 }, token)
.ListDomainUsers(domainId, { offset: 0, limit: 10 }, token)
.then((response: any) => {
console.log("response: ", response);
})
Expand All @@ -74,7 +74,7 @@ mySdk.domains
});

mySdk.domains
.EnableDomain("<domainID>", token)
.EnableDomain(domainId, token)
.then((response: any) => {
console.log("response: ", response);
})
Expand All @@ -83,7 +83,7 @@ mySdk.domains
});

mySdk.domains
.DisableDomain("<domainID>", token)
.DisableDomain(domainId, token)
.then((response: any) => {
console.log("response: ", response);
})
Expand All @@ -92,12 +92,7 @@ mySdk.domains
});

mySdk.domains
.AddUsertoDomain(
"<domainID>",
["<userID>", "<userID>"],
"administrator",
token
)
.AddUsertoDomain(domainId, ["<userID>", "<userID>"], "administrator", token)
.then((response: any) => {
console.log("response: ", response);
})
Expand All @@ -106,7 +101,7 @@ mySdk.domains
});

mySdk.domains
.RemoveUserfromDomain("<domainID>", "<userID>", token)
.RemoveUserfromDomain(domainId, "<userID>", token)
.then((response: any) => {
console.log("response: ", response);
})
Expand Down

0 comments on commit 144a82c

Please sign in to comment.