Retrieves an overview of users and their status for a terms of service, including Whether they have accepted the terms and when.
This operation is performed by calling function getTermsOfServiceUserStatuses.
See the endpoint docs at API Reference.
await client.termsOfServiceUserStatuses.getTermsOfServiceUserStatuses({
tosId: tos.id,
userId: user.id,
} satisfies GetTermsOfServiceUserStatusesQueryParams);
GetTermsOfServiceUserStatusesQueryParams
GetTermsOfServiceUserStatusesOptionalsInputThis function returns a value of type TermsOfServiceUserStatuses.
Returns a list of terms of service statuses.
Sets the status for a terms of service for a user.
This operation is performed by calling function createTermsOfServiceStatusForUser.
See the endpoint docs at API Reference.
await client.termsOfServiceUserStatuses.createTermsOfServiceStatusForUser({
tos: new CreateTermsOfServiceStatusForUserRequestBodyTosField({ id: tos.id }),
user: new CreateTermsOfServiceStatusForUserRequestBodyUserField({
id: user.id,
}),
isAccepted: false,
} satisfies CreateTermsOfServiceStatusForUserRequestBody);
CreateTermsOfServiceStatusForUserRequestBody
CreateTermsOfServiceStatusForUserOptionalsInputThis function returns a value of type TermsOfServiceUserStatus.
Returns a terms of service status object.
Updates the status for a terms of service for a user.
This operation is performed by calling function updateTermsOfServiceStatusForUserById.
See the endpoint docs at API Reference.
await client.termsOfServiceUserStatuses.updateTermsOfServiceStatusForUserById(
createdTosUserStatus.id,
{
isAccepted: true,
} satisfies UpdateTermsOfServiceStatusForUserByIdRequestBody,
);
string
UpdateTermsOfServiceStatusForUserByIdRequestBody
UpdateTermsOfServiceStatusForUserByIdOptionalsInputThis function returns a value of type TermsOfServiceUserStatus.
Returns the updated terms of service status object.