-
Notifications
You must be signed in to change notification settings - Fork 245
Expand file tree
/
Copy pathendpoint.ts
More file actions
40 lines (34 loc) · 1.1 KB
/
endpoint.ts
File metadata and controls
40 lines (34 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// this file is @generated
import {
type EndpointTransformationIn,
EndpointTransformationInSerializer,
} from "../models/endpointTransformationIn";
import { EndpointAutoConfig } from "./endpointAutoConfig";
import { HttpMethod, SvixRequest, type SvixRequestContext } from "../request";
export class Endpoint {
public constructor(private readonly requestCtx: SvixRequestContext) {}
public get auto_config() {
return new EndpointAutoConfig(this.requestCtx);
}
/**
* This operation was renamed to `set-transformation`.
*
* @deprecated
*/
public transformationPartialUpdate(
appId: string,
endpointId: string,
endpointTransformationIn: EndpointTransformationIn
): Promise<void> {
const request = new SvixRequest(
HttpMethod.PATCH,
"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation"
);
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(
EndpointTransformationInSerializer._toJsonObject(endpointTransformationIn)
);
return request.sendNoResponseBody(this.requestCtx);
}
}