pl-api: actually fix typo lmao
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -82,7 +82,7 @@ import {
|
||||
subscriptionOptionSchema,
|
||||
suggestionSchema,
|
||||
tagSchema,
|
||||
termfsOfServiceSchema,
|
||||
termsOfServiceSchema,
|
||||
tokenSchema,
|
||||
translationSchema,
|
||||
trendsLinkSchema,
|
||||
@ -3649,7 +3649,7 @@ class PlApiClient {
|
||||
getInstanceTermsOfService: async () => {
|
||||
const response = await this.request('/api/v1/instance/terms_of_service');
|
||||
|
||||
return v.parse(termfsOfServiceSchema, response.json);
|
||||
return v.parse(termsOfServiceSchema, response.json);
|
||||
},
|
||||
|
||||
/**
|
||||
@ -3660,7 +3660,7 @@ class PlApiClient {
|
||||
getInstanceTermsOfServiceForDate: async (date: string) => {
|
||||
const response = await this.request(`/api/v1/instance/terms_of_service/${date}`);
|
||||
|
||||
return v.parse(termfsOfServiceSchema, response.json);
|
||||
return v.parse(termsOfServiceSchema, response.json);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ import { dateSchema } from './utils';
|
||||
* @category Schemas
|
||||
* @see {@link https://docs.joinmastodon.org/entities/TermsOfService/}
|
||||
*/
|
||||
const termfsOfServiceSchema = v.object({
|
||||
const termsOfServiceSchema = v.object({
|
||||
effective_date: dateSchema,
|
||||
effective: v.boolean(),
|
||||
content: v.string(),
|
||||
@ -16,6 +16,6 @@ const termfsOfServiceSchema = v.object({
|
||||
/**
|
||||
* @category Entity types
|
||||
*/
|
||||
type TermfsOfService = v.InferOutput<typeof termfsOfServiceSchema>;
|
||||
type TermsOfService = v.InferOutput<typeof termsOfServiceSchema>;
|
||||
|
||||
export { termfsOfServiceSchema, type TermfsOfService };
|
||||
export { termsOfServiceSchema, type TermsOfService };
|
||||
|
||||
Reference in New Issue
Block a user