mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-07 12:37:45 +00:00
Normalized imports, regenerated
This commit is contained in:
@@ -15,11 +15,12 @@ import {
|
||||
RequestAbortedError,
|
||||
RequestTimeoutError,
|
||||
UnexpectedClientError,
|
||||
} from "../models/httpclienterrors.js";
|
||||
import * as models from "../models/index.js";
|
||||
import { SDKError } from "../models/sdkerror.js";
|
||||
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
||||
import { Result } from "../types/fp.js";
|
||||
} from "../sdk/models/errors/httpclienterrors.js";
|
||||
import * as errors from "../sdk/models/errors/index.js";
|
||||
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
||||
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
||||
import * as operations from "../sdk/models/operations/index.js";
|
||||
import { Result } from "../sdk/types/fp.js";
|
||||
|
||||
/**
|
||||
* Delete Library Section
|
||||
@@ -33,8 +34,8 @@ export async function libraryDeleteLibrary(
|
||||
options?: RequestOptions
|
||||
): Promise<
|
||||
Result<
|
||||
models.DeleteLibraryResponse,
|
||||
| models.DeleteLibraryResponseBody
|
||||
operations.DeleteLibraryResponse,
|
||||
| errors.DeleteLibraryResponseBody
|
||||
| SDKError
|
||||
| SDKValidationError
|
||||
| UnexpectedClientError
|
||||
@@ -44,13 +45,13 @@ export async function libraryDeleteLibrary(
|
||||
| ConnectionError
|
||||
>
|
||||
> {
|
||||
const input$: models.DeleteLibraryRequest = {
|
||||
const input$: operations.DeleteLibraryRequest = {
|
||||
sectionKey: sectionKey,
|
||||
};
|
||||
|
||||
const parsed$ = schemas$.safeParse(
|
||||
input$,
|
||||
(value$) => models.DeleteLibraryRequest$outboundSchema.parse(value$),
|
||||
(value$) => operations.DeleteLibraryRequest$outboundSchema.parse(value$),
|
||||
"Input validation failed"
|
||||
);
|
||||
if (!parsed$.ok) {
|
||||
@@ -117,8 +118,8 @@ export async function libraryDeleteLibrary(
|
||||
};
|
||||
|
||||
const [result$] = await m$.match<
|
||||
models.DeleteLibraryResponse,
|
||||
| models.DeleteLibraryResponseBody
|
||||
operations.DeleteLibraryResponse,
|
||||
| errors.DeleteLibraryResponseBody
|
||||
| SDKError
|
||||
| SDKValidationError
|
||||
| UnexpectedClientError
|
||||
@@ -127,9 +128,9 @@ export async function libraryDeleteLibrary(
|
||||
| RequestTimeoutError
|
||||
| ConnectionError
|
||||
>(
|
||||
m$.nil(200, models.DeleteLibraryResponse$inboundSchema),
|
||||
m$.nil(200, operations.DeleteLibraryResponse$inboundSchema),
|
||||
m$.fail([400, "4XX", "5XX"]),
|
||||
m$.jsonErr(401, models.DeleteLibraryResponseBody$inboundSchema)
|
||||
m$.jsonErr(401, errors.DeleteLibraryResponseBody$inboundSchema)
|
||||
)(response, { extraFields: responseFields$ });
|
||||
if (!result$.ok) {
|
||||
return result$;
|
||||
|
||||
Reference in New Issue
Block a user