-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathfeedback.ts
More file actions
32 lines (27 loc) · 979 Bytes
/
feedback.ts
File metadata and controls
32 lines (27 loc) · 979 Bytes
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
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../core/resource';
import * as StepsAPI from './steps';
import { APIPromise } from '../../core/api-promise';
import { RequestOptions } from '../../internal/request-options';
import { path } from '../../internal/utils/path';
export class Feedback extends APIResource {
/**
* Modify feedback for a given step.
*/
create(stepID: string, body: FeedbackCreateParams, options?: RequestOptions): APIPromise<StepsAPI.Step> {
return this._client.patch(path`/v1/steps/${stepID}/feedback`, { body, ...options });
}
}
export interface FeedbackCreateParams {
/**
* Whether this feedback is positive or negative
*/
feedback?: 'positive' | 'negative' | null;
/**
* Feedback tags to add to the step
*/
tags?: Array<string> | null;
}
export declare namespace Feedback {
export { type FeedbackCreateParams as FeedbackCreateParams };
}